@pubinfo/module-rbac 2.0.8-beta.3 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/dist/ComponentSelect-ZLey_5w7.js +4 -0
  2. package/dist/ComponentSelect.vue_vue_type_style_index_0_lang-CMEO08Uz.js +3981 -0
  3. package/dist/DynamicRoutesForm-DzOGoyf3.js +4 -0
  4. package/dist/DynamicRoutesForm.vue_vue_type_script_setup_true_lang-lpCaLpPL.js +179 -0
  5. package/dist/HCheckList-Dkxhu1br.js +4 -0
  6. package/dist/HCheckList.vue_vue_type_script_setup_true_lang-n_QczT28.js +41 -0
  7. package/dist/HoverCard-DASfDgI1.js +4 -0
  8. package/dist/HoverCard.vue_vue_type_script_setup_true_lang-BqEarhzP.js +62 -0
  9. package/dist/IconSelect-CkqLR5Dg.js +4 -0
  10. package/dist/IconSelect.css +1 -1
  11. package/dist/IconSelect.vue_vue_type_script_setup_true_lang-BoGxAoNd.js +703 -0
  12. package/dist/ImportExport-BD8o7IvB.js +4 -0
  13. package/dist/ImportExport.vue_vue_type_script_setup_true_lang-BzdP0ADd.js +456 -0
  14. package/dist/MetaForm-DtlyvzoM.js +364 -0
  15. package/dist/OrgAndPosition-DjF_gcp6.js +4 -0
  16. package/dist/OrgAndPosition.vue_vue_type_script_setup_true_lang-CFSDHn40.js +195 -0
  17. package/dist/ResourceEdit-WpEdbzaw.js +4 -0
  18. package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-id6jZAko.js +392 -0
  19. package/dist/ResourceRelation-26FnHEfU.js +112 -0
  20. package/dist/ResourceRelation-DGiGYy6V.js +91 -0
  21. package/dist/ResourceRelation.css +1 -1
  22. package/dist/ResourceRelation2.css +1 -1
  23. package/dist/RoleRelation-BuqK0cnl.js +4 -0
  24. package/dist/RoleRelation.vue_vue_type_script_setup_true_lang-BjEOlM2g.js +93 -0
  25. package/dist/RoleSelector.vue_vue_type_script_setup_true_lang-ZwsINUBu.js +352 -0
  26. package/dist/TenantEdit-B24X5nND.js +4 -0
  27. package/dist/TenantEdit.vue_vue_type_script_setup_true_lang-Bu5HcJJv.js +307 -0
  28. package/dist/UserAuthorization-Co6JV0py.js +274 -0
  29. package/dist/UserEdit-DkNVPVA4.js +4 -0
  30. package/dist/UserEdit.vue_vue_type_script_setup_true_lang-CFs0SxVJ.js +330 -0
  31. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  32. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  33. package/dist/add-child-B9gDBQjZ.js +4 -0
  34. package/dist/animation_item-BZ1HNA6o.js +4 -0
  35. package/dist/animation_item.vue_vue_type_script_setup_true_lang-CmwThjHB.js +4858 -0
  36. package/dist/authority-B-0S66Fv.js +4 -0
  37. package/dist/authorize-DnyYvAo3.js +4 -0
  38. package/dist/blacklist-disable-DzVU8JLV.js +4 -0
  39. package/dist/blacklist-enable-BmWQR1i4.js +4 -0
  40. package/dist/browser-chrome-O9MASusF.js +4 -0
  41. package/dist/browser-edge-Dk6N_uRy.js +4 -0
  42. package/dist/browser-ie-Dtz7hQTC.js +4 -0
  43. package/dist/browser-other-Crzi8vov.js +4 -0
  44. package/dist/browser-safari-DF0pVlrn.js +4 -0
  45. package/dist/browserType-DQySszjD.js +4 -0
  46. package/dist/browserType.vue_vue_type_script_setup_true_lang-od1-AmrS.js +32 -0
  47. package/dist/cloneDeep-BOLZdR62.js +8 -0
  48. package/dist/createAndEditDataPermission-BhOLGGna.js +4 -0
  49. package/dist/createAndEditDataPermission.css +1 -1
  50. package/dist/createAndEditDataPermission.vue_vue_type_script_setup_true_lang-D5wInKwO.js +531 -0
  51. package/dist/dayjs.min-B2Yn1Frg.js +284 -0
  52. package/dist/drawerBlackWhiteList-Cr16yNs8.js +4 -0
  53. package/dist/drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-BR6Yeiie.js +172 -0
  54. package/dist/drawerDictionary-BRGmcIFT.js +4 -0
  55. package/dist/drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js +146 -0
  56. package/dist/drawerDictionaryItem-CFBfyhEw.js +4 -0
  57. package/dist/drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js +158 -0
  58. package/dist/drawerGroup-Bs1Z8XPo.js +4 -0
  59. package/dist/drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js +202 -0
  60. package/dist/drawerOrganization-Bs0YtPuo.js +4 -0
  61. package/dist/drawerOrganization.vue_vue_type_script_setup_true_lang-5YJaULAh.js +250 -0
  62. package/dist/drawerPosition-BYypSGoF.js +4 -0
  63. package/dist/drawerPosition.vue_vue_type_script_setup_true_lang-DcZ48XJV.js +181 -0
  64. package/dist/drawerRegion-BiIlYQ0Z.js +4 -0
  65. package/dist/drawerRegion.vue_vue_type_script_setup_true_lang-BwAj_RKw.js +233 -0
  66. package/dist/drawerRole-DHLv47_z.js +4 -0
  67. package/dist/drawerRole-DUWRM43j.js +4 -0
  68. package/dist/drawerRole-nmMTIQYS.js +4 -0
  69. package/dist/drawerRole.vue_vue_type_script_setup_true_lang-BET5ukoo.js +244 -0
  70. package/dist/drawerRole.vue_vue_type_script_setup_true_lang-BK3zjhop.js +197 -0
  71. package/dist/drawerRole.vue_vue_type_script_setup_true_lang-Surpf3ov.js +191 -0
  72. package/dist/edit-B69fMWPH.js +4 -0
  73. package/dist/enum-C9ihxJe7.js +4 -0
  74. package/dist/enum-CTUzwCYG.js +4 -0
  75. package/dist/enum-CjyX3J0o.js +18 -0
  76. package/dist/enum-DDKThkSw.js +24 -0
  77. package/dist/enum-DkSNwGbC.js +74 -0
  78. package/dist/gangweijiekou-Cs016LjQ.js +46 -0
  79. package/dist/icard-C4FaIC0V.js +4 -0
  80. package/dist/icon_animation-CfRxn8ne.js +4 -0
  81. package/dist/icon_breadcrumb-CAPCH16K.js +4 -0
  82. package/dist/icon_copyright-T9HuRtib.js +4 -0
  83. package/dist/icon_jt-BZgxEG_D.js +4 -0
  84. package/dist/icon_layout-BynQzkfn.js +4 -0
  85. package/dist/icon_mainpage-Bu_lyj_6.js +4 -0
  86. package/dist/icon_menu-D41hl_4p.js +4 -0
  87. package/dist/icon_page_size-Bioi61il.js +4 -0
  88. package/dist/icon_position_type-QpezzPDJ.js +4 -0
  89. package/dist/icon_safe_manage-ByWMOnwf.js +4 -0
  90. package/dist/icon_screen_scale-CuPyb7Ni.js +4 -0
  91. package/dist/icon_system_manage-BxRLv7Nw.js +4 -0
  92. package/dist/icon_tabbar-CetwmJHN.js +4 -0
  93. package/dist/icon_toolbar-DXt_LXp8.js +4 -0
  94. package/dist/icon_topbar-C186yIiC.js +4 -0
  95. package/dist/icon_watermark-DhaloO3m.js +4 -0
  96. package/dist/index-53oBz1jp.js +299 -0
  97. package/dist/index-B2tTTlBE.js +17698 -0
  98. package/dist/{toolbar_setting-rv8EGChc.js → index-BFx8F5lO.js} +144 -144
  99. package/dist/index-BIpmC999.js +169 -0
  100. package/dist/index-BUmMaC21.js +227 -0
  101. package/dist/index-BwWrE3dY.js +89 -0
  102. package/dist/index-C9hHp4Iw.js +197 -0
  103. package/dist/{watermark_setting-B_jC4rjv.js → index-CCw3ZJgQ.js} +254 -199
  104. package/dist/index-CJQB8KAz.js +186 -0
  105. package/dist/index-CLnFLvHy.js +193 -0
  106. package/dist/index-COWUocfL.js +119 -0
  107. package/dist/index-Cqkr8Rvk.js +189 -0
  108. package/dist/index-Csfu3kAr.js +171 -0
  109. package/dist/index-DECno0gv.js +196 -0
  110. package/dist/index-DVt5k9xh.js +145 -0
  111. package/dist/index-DdoOaWs-.js +269 -0
  112. package/dist/index-DfuGXjYh.js +169 -0
  113. package/dist/index-DoFuRlsc.js +181 -0
  114. package/dist/index-DwpOyfRe.js +152 -0
  115. package/dist/index-ZQuRR9fG.js +257 -0
  116. package/dist/index-ioZh8Qom.js +98 -0
  117. package/dist/index-rNYtJ7Om.js +195 -0
  118. package/dist/index-x9Iim2eD.js +247 -0
  119. package/dist/index-y9CQTo95.js +351 -0
  120. package/dist/index.css +1 -1
  121. package/dist/index.d.ts +1 -0
  122. package/dist/index.js +7193 -7042
  123. package/dist/index10.css +1 -0
  124. package/dist/index11.css +1 -0
  125. package/dist/index14.css +1 -0
  126. package/dist/index17.css +1 -0
  127. package/dist/index18.css +1 -0
  128. package/dist/index4.css +1 -0
  129. package/dist/index5.css +1 -0
  130. package/dist/index6.css +1 -0
  131. package/dist/index8.css +1 -0
  132. package/dist/index9.css +1 -0
  133. package/dist/itemlist-zTYJtoSs.js +172 -0
  134. package/dist/jiaosejiekou-p42Hm9h3.js +58 -0
  135. package/dist/log-center-Bw9UlmOq.js +4 -0
  136. package/dist/loginHistoryDetail-B6eI-TmJ.js +105 -0
  137. package/dist/login_history-B4Q1NCJn.js +222 -0
  138. package/dist/login_history.css +1 -1
  139. package/dist/not-data-BDuvYboz.js +4 -0
  140. package/dist/operateHistoryDetail-CLZ9lyua.js +123 -0
  141. package/dist/operate_history-KASZ7_JO.js +218 -0
  142. package/dist/operate_history.css +1 -1
  143. package/dist/org-main-DfWpX8Wv.js +4 -0
  144. package/dist/org-unmain-DrX63NH5.js +4 -0
  145. package/dist/remove-D2ES5tEr.js +4 -0
  146. package/dist/resource-app-1lqF6C6F.js +4 -0
  147. package/dist/resource-btn-Cfo6ddAY.js +4 -0
  148. package/dist/resource-dynamic-BAwkCWS4.js +4 -0
  149. package/dist/resource-index-BS4V5uy8.js +4 -0
  150. package/dist/resource-menu-CEWU8Iis.js +4 -0
  151. package/dist/resource-micro-9S0h5AlK.js +4 -0
  152. package/dist/resource-nonmenu-BZ9e4ynT.js +4 -0
  153. package/dist/setItem-BwMHXOUm.js +87 -0
  154. package/dist/setItem.css +1 -1
  155. package/dist/setting-manage-Xj_s0OoK.js +4 -0
  156. package/dist/shujuquanxianzhubiaokongzhiqi-SpN37fyO.js +65 -0
  157. package/dist/theme-check-mark-D58efagJ.js +4 -0
  158. package/dist/theme-title-CYUX2SBW.js +4 -0
  159. package/dist/useAppAndResource-38HCqYKa.js +55 -0
  160. package/dist/utils/dict.d.ts +6 -0
  161. package/dist/view-BCWU0JWM.js +4 -0
  162. package/dist/views/tenant/components/TenantEdit.vue.d.ts +1 -37
  163. package/dist/views/tenant/index.vue.d.ts +1 -37
  164. package/dist/xitongpeizhifuwu-BoCbGEk7.js +23 -0
  165. package/dist/zddata-DQP5Kx3c.js +4 -0
  166. package/dist/ziyuanjiekou-BC65-bFK.js +69 -0
  167. package/dist/zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js +28 -0
  168. package/dist/zy_checked-Bb6zRsYe.js +4 -0
  169. package/dist/zy_default-BGjhoury.js +4 -0
  170. package/package.json +3 -3
  171. package/src/index.ts +1 -0
  172. package/src/utils/dict.ts +21 -0
  173. package/dist/ComponentSelect-HWE3OTC2.js +0 -2
  174. package/dist/ComponentSelect-lvLZA7v3.js +0 -3686
  175. package/dist/DynamicRoutesForm--yCRC-TS.js +0 -4
  176. package/dist/DynamicRoutesForm-CjrPnJvX.js +0 -169
  177. package/dist/HCheckList-CmS0Zgjk.js +0 -37
  178. package/dist/HCheckList-Cze_TkQp.js +0 -2
  179. package/dist/HoverCard-B79q5sly.js +0 -43
  180. package/dist/HoverCard-U5WTpvFy.js +0 -2
  181. package/dist/IconSelect-B0CeuV_a.js +0 -4
  182. package/dist/IconSelect-BRVj6gBy.js +0 -681
  183. package/dist/ImportExport-BNLVq0fU.js +0 -4
  184. package/dist/ImportExport-HsLm0AJH.js +0 -354
  185. package/dist/MetaForm-BSGuZXgj.js +0 -5
  186. package/dist/MetaForm-DErrpELP.js +0 -300
  187. package/dist/OrgAndPosition-CF7ZJtNB.js +0 -2
  188. package/dist/OrgAndPosition-vnBrq-fn.js +0 -188
  189. package/dist/ResourceEdit-DGiYedP0.js +0 -349
  190. package/dist/ResourceEdit-DZP72kyb.js +0 -11
  191. package/dist/ResourceRelation-BxGFnyVc.js +0 -78
  192. package/dist/ResourceRelation-DCjMjLpg.js +0 -3
  193. package/dist/ResourceRelation-DhML3AFe.js +0 -93
  194. package/dist/ResourceSelector-BAZ-oIRV.js +0 -247
  195. package/dist/ResourceSelector.css +0 -1
  196. package/dist/RoleRelation-Bxyd5aMn.js +0 -2
  197. package/dist/RoleRelation-CcgE6TEG.js +0 -79
  198. package/dist/RoleSelector-QpcO4KoV.js +0 -279
  199. package/dist/TenantEdit-CRhsWhhw.js +0 -253
  200. package/dist/TenantEdit-egH6GbbS.js +0 -6
  201. package/dist/UserAuthorization-B0lHeayD.js +0 -4
  202. package/dist/UserAuthorization-D-LcHhsj.js +0 -238
  203. package/dist/UserEdit-6MPOr7VK.js +0 -336
  204. package/dist/UserEdit-DGefh7mk.js +0 -4
  205. package/dist/_plugin-vue_export-helper-DziIhCOI.js +0 -6
  206. package/dist/add-child-BqjLtFNF.js +0 -2
  207. package/dist/animation_item-C3pkH-cB.js +0 -2
  208. package/dist/animation_item-Cg-CB3zX.js +0 -4536
  209. package/dist/authority-BCFCPQkb.js +0 -2
  210. package/dist/authorize-BykMzt1r.js +0 -2
  211. package/dist/blackWhiteList-CFnWvnIK.js +0 -213
  212. package/dist/blackWhiteList.css +0 -1
  213. package/dist/blacklist-disable-COoLZMSA.js +0 -2
  214. package/dist/blacklist-enable-LZep1trj.js +0 -2
  215. package/dist/breadcrumb_setting-BbdvbC4M.js +0 -111
  216. package/dist/browser-chrome-D0rex7Ir.js +0 -2
  217. package/dist/browser-edge-KCb_AIL5.js +0 -2
  218. package/dist/browser-ie-C1znjJM-.js +0 -2
  219. package/dist/browser-other-C4er8PkV.js +0 -2
  220. package/dist/browser-safari-BPRC1TV-.js +0 -2
  221. package/dist/browserType-BGl2j5RW.js +0 -2
  222. package/dist/browserType-E4RCiZfN.js +0 -26
  223. package/dist/chunk-B3eAFu3c.js +0 -11
  224. package/dist/cloneDeep-BnvyNhik.js +0 -7
  225. package/dist/components/OrgTree/index.vue.d.ts +0 -5
  226. package/dist/configData-DQOHeFW2.js +0 -86
  227. package/dist/createAndEditDataPermission-39GKHtzB.js +0 -443
  228. package/dist/createAndEditDataPermission-BBSBwjG4.js +0 -8
  229. package/dist/data-permission-35wTSMh2.js +0 -156
  230. package/dist/dayjs.min-CdDcH50N.js +0 -297
  231. package/dist/dictionary-BOuYUlfU.js +0 -180
  232. package/dist/drawerBlackWhiteList-BZccd_CZ.js +0 -125
  233. package/dist/drawerBlackWhiteList-Bz2trn-w.js +0 -3
  234. package/dist/drawerDictionary-C2tWu1lt.js +0 -130
  235. package/dist/drawerDictionary-Cx-QoHn4.js +0 -4
  236. package/dist/drawerDictionaryItem-C4mPbQEA.js +0 -142
  237. package/dist/drawerDictionaryItem-DhwinX1a.js +0 -4
  238. package/dist/drawerGroup-BUx0cx6i.js +0 -3
  239. package/dist/drawerGroup-DFeiJOBA.js +0 -188
  240. package/dist/drawerOrganization-BEdhq7Z2.js +0 -251
  241. package/dist/drawerOrganization-ijhmuc8a.js +0 -3
  242. package/dist/drawerPosition-shL7hfwJ.js +0 -3
  243. package/dist/drawerPosition-xI2PyE2x.js +0 -170
  244. package/dist/drawerRegion-BwWGUHaY.js +0 -187
  245. package/dist/drawerRegion-Dl1qXPXz.js +0 -3
  246. package/dist/drawerRole-C1I6-hhT.js +0 -159
  247. package/dist/drawerRole-CZpTYFS3.js +0 -172
  248. package/dist/drawerRole-CgTIHRCA.js +0 -3
  249. package/dist/drawerRole-Cmrob1UJ.js +0 -5
  250. package/dist/drawerRole-D2UxgYXQ.js +0 -215
  251. package/dist/drawerRole-DynkfVMp.js +0 -6
  252. package/dist/edit-C9HH0bNg.js +0 -2
  253. package/dist/enum-B1DCzyaW.js +0 -4
  254. package/dist/enum-BMY6bmPA.js +0 -54
  255. package/dist/enum-BWzxzuim.js +0 -23
  256. package/dist/enum-CYW8g64p.js +0 -61
  257. package/dist/enum-VH4_jOj5.js +0 -4
  258. package/dist/group-DOmpCW1J.js +0 -174
  259. package/dist/group.css +0 -1
  260. package/dist/icard-FW0Ro50-.js +0 -2
  261. package/dist/icon_animation-DuNUKCIP.js +0 -2
  262. package/dist/icon_breadcrumb-DrPNYW5B.js +0 -2
  263. package/dist/icon_copyright-Di3Yr0PZ.js +0 -2
  264. package/dist/icon_jt-C4rQLl9Y.js +0 -2
  265. package/dist/icon_layout-5L9E7uN2.js +0 -2
  266. package/dist/icon_mainpage-DMKqRgmE.js +0 -2
  267. package/dist/icon_menu-Cp7-Zght.js +0 -2
  268. package/dist/icon_page_size-Dc0zqT2W.js +0 -2
  269. package/dist/icon_position_type-DH2qxQQE.js +0 -2
  270. package/dist/icon_safe_manage-DXYWl1y-.js +0 -2
  271. package/dist/icon_screen_scale-DwC6qqx2.js +0 -2
  272. package/dist/icon_system_manage-BYTldLly.js +0 -2
  273. package/dist/icon_tabbar-CxffARwI.js +0 -2
  274. package/dist/icon_toolbar-CsxnTrNJ.js +0 -2
  275. package/dist/icon_topbar-DS-oEZFA.js +0 -2
  276. package/dist/icon_watermark-DDXsHlfQ.js +0 -2
  277. package/dist/itemlist-QBWRLjTd.js +0 -157
  278. package/dist/layout_setting-BZt_X9vU.js +0 -74
  279. package/dist/layout_setting.css +0 -1
  280. package/dist/log-center-BFjZ4IE1.js +0 -2
  281. package/dist/log-hgUXTuhy.js +0 -14
  282. package/dist/loginHistoryDetail-BAYuSqvw.js +0 -78
  283. package/dist/loginHistoryDetail-DiuNa6Sv.js +0 -4
  284. package/dist/login_history-NTSjr6e5.js +0 -196
  285. package/dist/menu_setting-CkoDAYJD.js +0 -158
  286. package/dist/not-data-Bw8FlpyB.js +0 -2
  287. package/dist/not-data-OpiacaSk.js +0 -2
  288. package/dist/operateHistoryDetail-DiuqMTkN.js +0 -90
  289. package/dist/operateHistoryDetail-r30ZBNqw.js +0 -4
  290. package/dist/operate_history-CXoZlYaT.js +0 -191
  291. package/dist/org-main-D5Isevbc.js +0 -2
  292. package/dist/org-unmain-BHBqSuCz.js +0 -2
  293. package/dist/organization-DmGbwqHI.js +0 -15605
  294. package/dist/organization.css +0 -1
  295. package/dist/other_setting-BqWwlJ2u.js +0 -220
  296. package/dist/other_setting.css +0 -1
  297. package/dist/page_animation_setting-g3bkn7vf.js +0 -117
  298. package/dist/page_animation_setting.css +0 -1
  299. package/dist/page_w_setting-Db9pP86g.js +0 -69
  300. package/dist/page_w_setting.css +0 -1
  301. package/dist/position-Bq4B3_PK.js +0 -168
  302. package/dist/region-DfxAE8eK.js +0 -185
  303. package/dist/remove-DKMMsJNq.js +0 -2
  304. package/dist/resource-app-DZwdNG6F.js +0 -2
  305. package/dist/resource-btn-DPX0oM2L.js +0 -2
  306. package/dist/resource-dynamic-Cb_vjMjt.js +0 -2
  307. package/dist/resource-index-ah4NpEob.js +0 -2
  308. package/dist/resource-menu-CzWI03EU.js +0 -2
  309. package/dist/resource-micro-Ca0NS7j_.js +0 -2
  310. package/dist/resource-nonmenu-Deitjo_5.js +0 -2
  311. package/dist/resource-rP8m6eP_.js +0 -273
  312. package/dist/role-DfWw95NS.js +0 -196
  313. package/dist/role_group-B4J4RWQt.js +0 -172
  314. package/dist/routeSystem-Dg0b6mAl.js +0 -2
  315. package/dist/safe_setting-uj9p_wW0.js +0 -232
  316. package/dist/setItem-C_jx_5fd.js +0 -5
  317. package/dist/setItem-DnJuD3C0.js +0 -77
  318. package/dist/setting-manage-B3vaM0w1.js +0 -2
  319. package/dist/stores-D6JJmBEU.js +0 -2
  320. package/dist/tabbar_setting-DBPggZ6Q.js +0 -142
  321. package/dist/tenant-Dbydqvrz.js +0 -183
  322. package/dist/theme-check-mark-BK7E8lqd.js +0 -2
  323. package/dist/theme-title-aqbHq846.js +0 -2
  324. package/dist/theme_setting-3l5L7tXt.js +0 -117
  325. package/dist/theme_setting.css +0 -1
  326. package/dist/useAppAndResource-CeMCjg2v.js +0 -57
  327. package/dist/user-DQE6N5EP.js +0 -345
  328. package/dist/view-C6Eo1zRL.js +0 -2
  329. package/dist/watermark_setting.css +0 -1
  330. package/dist/zddata-fjEtQ3lZ.js +0 -2
  331. package/dist/zy_checked-DTsDCC94.js +0 -2
  332. package/dist/zy_default-BaIuMKw-.js +0 -2
  333. /package/dist/{safe_setting.css → index12.css} +0 -0
  334. /package/dist/{tabbar_setting.css → index13.css} +0 -0
  335. /package/dist/{toolbar_setting.css → index15.css} +0 -0
  336. /package/dist/{user.css → index16.css} +0 -0
  337. /package/dist/{breadcrumb_setting.css → index2.css} +0 -0
  338. /package/dist/{data-permission.css → index3.css} +0 -0
  339. /package/dist/{menu_setting.css → index7.css} +0 -0
@@ -1,4536 +0,0 @@
1
- import { b as e, c as t } from "./chunk-B3eAFu3c.js";
2
- import { al as n } from "./index.js";
3
- import { useTheme as r } from "pubinfo";
4
- import { computed as i, createElementBlock as a, defineComponent as o, onMounted as s, onUnmounted as c, openBlock as l, ref as u, unref as d, watch as f } from "vue";
5
- var p = /* @__PURE__ */ e(((exports, t) => {
6
- typeof document < "u" && typeof navigator < "u" && (function(n, r) {
7
- typeof exports == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.lottie = r());
8
- })(exports, (function() {
9
- var n = "http://www.w3.org/2000/svg", r = "", i = !1, a = -999999, o = function(e) {
10
- i = !!e;
11
- }, s = function() {
12
- return i;
13
- }, c = function(e) {
14
- r = e;
15
- }, l = function() {
16
- return r;
17
- };
18
- function u(e) {
19
- return document.createElement(e);
20
- }
21
- function d(e, t) {
22
- var n, r = e.length, i;
23
- for (n = 0; n < r; n += 1) for (var a in i = e[n].prototype, i) Object.prototype.hasOwnProperty.call(i, a) && (t.prototype[a] = i[a]);
24
- }
25
- function f(e) {
26
- function t() {}
27
- return t.prototype = e, t;
28
- }
29
- var p = function() {
30
- function e(e) {
31
- this.audios = [], this.audioFactory = e, this._volume = 1, this._isMuted = !1;
32
- }
33
- return e.prototype = {
34
- addAudio: function(e) {
35
- this.audios.push(e);
36
- },
37
- pause: function() {
38
- var e, t = this.audios.length;
39
- for (e = 0; e < t; e += 1) this.audios[e].pause();
40
- },
41
- resume: function() {
42
- var e, t = this.audios.length;
43
- for (e = 0; e < t; e += 1) this.audios[e].resume();
44
- },
45
- setRate: function(e) {
46
- var t, n = this.audios.length;
47
- for (t = 0; t < n; t += 1) this.audios[t].setRate(e);
48
- },
49
- createAudio: function(e) {
50
- return this.audioFactory ? this.audioFactory(e) : window.Howl ? new window.Howl({ src: [e] }) : {
51
- isPlaying: !1,
52
- play: function() {
53
- this.isPlaying = !0;
54
- },
55
- seek: function() {
56
- this.isPlaying = !1;
57
- },
58
- playing: function() {},
59
- rate: function() {},
60
- setVolume: function() {}
61
- };
62
- },
63
- setAudioFactory: function(e) {
64
- this.audioFactory = e;
65
- },
66
- setVolume: function(e) {
67
- this._volume = e, this._updateVolume();
68
- },
69
- mute: function() {
70
- this._isMuted = !0, this._updateVolume();
71
- },
72
- unmute: function() {
73
- this._isMuted = !1, this._updateVolume();
74
- },
75
- getVolume: function() {
76
- return this._volume;
77
- },
78
- _updateVolume: function() {
79
- var e, t = this.audios.length;
80
- for (e = 0; e < t; e += 1) this.audios[e].volume(this._volume * (this._isMuted ? 0 : 1));
81
- }
82
- }, function() {
83
- return new e();
84
- };
85
- }(), m = function() {
86
- function e(e, t) {
87
- var n = 0, r = [], i;
88
- switch (e) {
89
- case "int16":
90
- case "uint8c":
91
- i = 1;
92
- break;
93
- default:
94
- i = 1.1;
95
- break;
96
- }
97
- for (n = 0; n < t; n += 1) r.push(i);
98
- return r;
99
- }
100
- function t(t, n) {
101
- return t === "float32" ? new Float32Array(n) : t === "int16" ? new Int16Array(n) : t === "uint8c" ? new Uint8ClampedArray(n) : e(t, n);
102
- }
103
- return typeof Uint8ClampedArray == "function" && typeof Float32Array == "function" ? t : e;
104
- }();
105
- function h(e) {
106
- return Array.apply(null, { length: e });
107
- }
108
- function g(e) {
109
- "@babel/helpers - typeof";
110
- return g = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
111
- return typeof e;
112
- } : function(e) {
113
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
114
- }, g(e);
115
- }
116
- var _ = !0, v = null, y = null, b = "", x = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), S = !1, C = Math.pow, w = Math.sqrt, T = Math.floor;
117
- Math.max;
118
- var E = Math.min, D = {};
119
- (function() {
120
- var e = "abs.acos.acosh.asin.asinh.atan.atanh.atan2.ceil.cbrt.expm1.clz32.cos.cosh.exp.floor.fround.hypot.imul.log.log1p.log2.log10.max.min.pow.random.round.sign.sin.sinh.sqrt.tan.tanh.trunc.E.LN10.LN2.LOG10E.LOG2E.PI.SQRT1_2.SQRT2".split("."), t, n = e.length;
121
- for (t = 0; t < n; t += 1) D[e[t]] = Math[e[t]];
122
- })(), D.random = Math.random, D.abs = function(e) {
123
- var t = g(e);
124
- if (t === "object" && e.length) {
125
- var n = h(e.length), r, i = e.length;
126
- for (r = 0; r < i; r += 1) n[r] = Math.abs(e[r]);
127
- return n;
128
- }
129
- return Math.abs(e);
130
- };
131
- var O = 150, k = Math.PI / 180, A = .5519;
132
- function j(e) {
133
- S = !!e;
134
- }
135
- function M(e, t, n, r) {
136
- this.type = e, this.currentTime = t, this.totalTime = n, this.direction = r < 0 ? -1 : 1;
137
- }
138
- function N(e, t) {
139
- this.type = e, this.direction = t < 0 ? -1 : 1;
140
- }
141
- function P(e, t, n, r) {
142
- this.type = e, this.currentLoop = n, this.totalLoops = t, this.direction = r < 0 ? -1 : 1;
143
- }
144
- function F(e, t, n) {
145
- this.type = e, this.firstFrame = t, this.totalFrames = n;
146
- }
147
- function ee(e, t) {
148
- this.type = e, this.target = t;
149
- }
150
- function I(e, t) {
151
- this.type = "renderFrameError", this.nativeError = e, this.currentTime = t;
152
- }
153
- function te(e) {
154
- this.type = "configError", this.nativeError = e;
155
- }
156
- var L = function() {
157
- var e = 0;
158
- return function() {
159
- return e += 1, b + "__lottie_element_" + e;
160
- };
161
- }();
162
- function ne(e, t, n) {
163
- var r, i, a, o, s, c, l, u;
164
- switch (o = Math.floor(e * 6), s = e * 6 - o, c = n * (1 - t), l = n * (1 - s * t), u = n * (1 - (1 - s) * t), o % 6) {
165
- case 0:
166
- r = n, i = u, a = c;
167
- break;
168
- case 1:
169
- r = l, i = n, a = c;
170
- break;
171
- case 2:
172
- r = c, i = n, a = u;
173
- break;
174
- case 3:
175
- r = c, i = l, a = n;
176
- break;
177
- case 4:
178
- r = u, i = c, a = n;
179
- break;
180
- case 5:
181
- r = n, i = c, a = l;
182
- break;
183
- default: break;
184
- }
185
- return [
186
- r,
187
- i,
188
- a
189
- ];
190
- }
191
- function re(e, t, n) {
192
- var r = Math.max(e, t, n), i = Math.min(e, t, n), a = r - i, o, s = r === 0 ? 0 : a / r, c = r / 255;
193
- switch (r) {
194
- case i:
195
- o = 0;
196
- break;
197
- case e:
198
- o = t - n + a * (t < n ? 6 : 0), o /= 6 * a;
199
- break;
200
- case t:
201
- o = n - e + a * 2, o /= 6 * a;
202
- break;
203
- case n:
204
- o = e - t + a * 4, o /= 6 * a;
205
- break;
206
- default: break;
207
- }
208
- return [
209
- o,
210
- s,
211
- c
212
- ];
213
- }
214
- function ie(e, t) {
215
- var n = re(e[0] * 255, e[1] * 255, e[2] * 255);
216
- return n[1] += t, n[1] > 1 ? n[1] = 1 : n[1] <= 0 && (n[1] = 0), ne(n[0], n[1], n[2]);
217
- }
218
- function ae(e, t) {
219
- var n = re(e[0] * 255, e[1] * 255, e[2] * 255);
220
- return n[2] += t, n[2] > 1 ? n[2] = 1 : n[2] < 0 && (n[2] = 0), ne(n[0], n[1], n[2]);
221
- }
222
- function oe(e, t) {
223
- var n = re(e[0] * 255, e[1] * 255, e[2] * 255);
224
- return n[0] += t / 360, n[0] > 1 ? --n[0] : n[0] < 0 && (n[0] += 1), ne(n[0], n[1], n[2]);
225
- }
226
- (function() {
227
- var e = [], t, n;
228
- for (t = 0; t < 256; t += 1) n = t.toString(16), e[t] = n.length === 1 ? "0" + n : n;
229
- return function(t, n, r) {
230
- return t < 0 && (t = 0), n < 0 && (n = 0), r < 0 && (r = 0), "#" + e[t] + e[n] + e[r];
231
- };
232
- })();
233
- var se = function(e) {
234
- _ = !!e;
235
- }, ce = function() {
236
- return _;
237
- }, le = function(e) {
238
- v = e;
239
- }, ue = function() {
240
- return v;
241
- }, de = function() {
242
- return y;
243
- }, fe = function(e) {
244
- O = e;
245
- }, pe = function() {
246
- return O;
247
- }, R = function(e) {
248
- b = e;
249
- };
250
- function z(e) {
251
- return document.createElementNS(n, e);
252
- }
253
- function me(e) {
254
- "@babel/helpers - typeof";
255
- return me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
256
- return typeof e;
257
- } : function(e) {
258
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
259
- }, me(e);
260
- }
261
- var he = function() {
262
- var e = 1, t = [], n, r, i = {
263
- onmessage: function() {},
264
- postMessage: function(e) {
265
- n({ data: e });
266
- }
267
- }, a = { postMessage: function(e) {
268
- i.onmessage({ data: e });
269
- } };
270
- function o(e) {
271
- if (window.Worker && window.Blob && s()) {
272
- var t = new Blob(["var _workerSelf = self; self.onmessage = ", e.toString()], { type: "text/javascript" }), r = URL.createObjectURL(t);
273
- return new Worker(r);
274
- }
275
- return n = e, i;
276
- }
277
- function c() {
278
- r || (r = o(function(e) {
279
- function t() {
280
- function e(t, n) {
281
- var o, s, c = t.length, l, u, d, f;
282
- for (s = 0; s < c; s += 1) if (o = t[s], "ks" in o && !o.completed) {
283
- if (o.completed = !0, o.hasMask) {
284
- var m = o.masksProperties;
285
- for (u = m.length, l = 0; l < u; l += 1) if (m[l].pt.k.i) a(m[l].pt.k);
286
- else for (f = m[l].pt.k.length, d = 0; d < f; d += 1) m[l].pt.k[d].s && a(m[l].pt.k[d].s[0]), m[l].pt.k[d].e && a(m[l].pt.k[d].e[0]);
287
- }
288
- o.ty === 0 ? (o.layers = r(o.refId, n), e(o.layers, n)) : o.ty === 4 ? i(o.shapes) : o.ty === 5 && p(o);
289
- }
290
- }
291
- function t(t, n) {
292
- if (t) {
293
- var i = 0, a = t.length;
294
- for (i = 0; i < a; i += 1) t[i].t === 1 && (t[i].data.layers = r(t[i].data.refId, n), e(t[i].data.layers, n));
295
- }
296
- }
297
- function n(e, t) {
298
- for (var n = 0, r = t.length; n < r;) {
299
- if (t[n].id === e) return t[n];
300
- n += 1;
301
- }
302
- return null;
303
- }
304
- function r(e, t) {
305
- var r = n(e, t);
306
- return r ? r.layers.__used ? JSON.parse(JSON.stringify(r.layers)) : (r.layers.__used = !0, r.layers) : null;
307
- }
308
- function i(e) {
309
- var t, n = e.length, r, o;
310
- for (t = n - 1; t >= 0; --t) if (e[t].ty === "sh") if (e[t].ks.k.i) a(e[t].ks.k);
311
- else for (o = e[t].ks.k.length, r = 0; r < o; r += 1) e[t].ks.k[r].s && a(e[t].ks.k[r].s[0]), e[t].ks.k[r].e && a(e[t].ks.k[r].e[0]);
312
- else e[t].ty === "gr" && i(e[t].it);
313
- }
314
- function a(e) {
315
- var t, n = e.i.length;
316
- for (t = 0; t < n; t += 1) e.i[t][0] += e.v[t][0], e.i[t][1] += e.v[t][1], e.o[t][0] += e.v[t][0], e.o[t][1] += e.v[t][1];
317
- }
318
- function o(e, t) {
319
- var n = t ? t.split(".") : [
320
- 100,
321
- 100,
322
- 100
323
- ];
324
- return e[0] > n[0] ? !0 : n[0] > e[0] ? !1 : e[1] > n[1] ? !0 : n[1] > e[1] ? !1 : e[2] > n[2] ? !0 : n[2] > e[2] ? !1 : null;
325
- }
326
- var s = function() {
327
- var e = [
328
- 4,
329
- 4,
330
- 14
331
- ];
332
- function t(e) {
333
- var t = e.t.d;
334
- e.t.d = { k: [{
335
- s: t,
336
- t: 0
337
- }] };
338
- }
339
- function n(e) {
340
- var n, r = e.length;
341
- for (n = 0; n < r; n += 1) e[n].ty === 5 && t(e[n]);
342
- }
343
- return function(t) {
344
- if (o(e, t.v) && (n(t.layers), t.assets)) {
345
- var r, i = t.assets.length;
346
- for (r = 0; r < i; r += 1) t.assets[r].layers && n(t.assets[r].layers);
347
- }
348
- };
349
- }(), c = function() {
350
- var e = [
351
- 4,
352
- 7,
353
- 99
354
- ];
355
- return function(t) {
356
- if (t.chars && !o(e, t.v)) {
357
- var n, r = t.chars.length;
358
- for (n = 0; n < r; n += 1) {
359
- var a = t.chars[n];
360
- a.data && a.data.shapes && (i(a.data.shapes), a.data.ip = 0, a.data.op = 99999, a.data.st = 0, a.data.sr = 1, a.data.ks = {
361
- p: {
362
- k: [0, 0],
363
- a: 0
364
- },
365
- s: {
366
- k: [100, 100],
367
- a: 0
368
- },
369
- a: {
370
- k: [0, 0],
371
- a: 0
372
- },
373
- r: {
374
- k: 0,
375
- a: 0
376
- },
377
- o: {
378
- k: 100,
379
- a: 0
380
- }
381
- }, t.chars[n].t || (a.data.shapes.push({ ty: "no" }), a.data.shapes[0].it.push({
382
- p: {
383
- k: [0, 0],
384
- a: 0
385
- },
386
- s: {
387
- k: [100, 100],
388
- a: 0
389
- },
390
- a: {
391
- k: [0, 0],
392
- a: 0
393
- },
394
- r: {
395
- k: 0,
396
- a: 0
397
- },
398
- o: {
399
- k: 100,
400
- a: 0
401
- },
402
- sk: {
403
- k: 0,
404
- a: 0
405
- },
406
- sa: {
407
- k: 0,
408
- a: 0
409
- },
410
- ty: "tr"
411
- })));
412
- }
413
- }
414
- };
415
- }(), l = function() {
416
- var e = [
417
- 5,
418
- 7,
419
- 15
420
- ];
421
- function t(e) {
422
- var t = e.t.p;
423
- typeof t.a == "number" && (t.a = {
424
- a: 0,
425
- k: t.a
426
- }), typeof t.p == "number" && (t.p = {
427
- a: 0,
428
- k: t.p
429
- }), typeof t.r == "number" && (t.r = {
430
- a: 0,
431
- k: t.r
432
- });
433
- }
434
- function n(e) {
435
- var n, r = e.length;
436
- for (n = 0; n < r; n += 1) e[n].ty === 5 && t(e[n]);
437
- }
438
- return function(t) {
439
- if (o(e, t.v) && (n(t.layers), t.assets)) {
440
- var r, i = t.assets.length;
441
- for (r = 0; r < i; r += 1) t.assets[r].layers && n(t.assets[r].layers);
442
- }
443
- };
444
- }(), u = function() {
445
- var e = [
446
- 4,
447
- 1,
448
- 9
449
- ];
450
- function t(e) {
451
- var n, r = e.length, i, a;
452
- for (n = 0; n < r; n += 1) if (e[n].ty === "gr") t(e[n].it);
453
- else if (e[n].ty === "fl" || e[n].ty === "st") if (e[n].c.k && e[n].c.k[0].i) for (a = e[n].c.k.length, i = 0; i < a; i += 1) e[n].c.k[i].s && (e[n].c.k[i].s[0] /= 255, e[n].c.k[i].s[1] /= 255, e[n].c.k[i].s[2] /= 255, e[n].c.k[i].s[3] /= 255), e[n].c.k[i].e && (e[n].c.k[i].e[0] /= 255, e[n].c.k[i].e[1] /= 255, e[n].c.k[i].e[2] /= 255, e[n].c.k[i].e[3] /= 255);
454
- else e[n].c.k[0] /= 255, e[n].c.k[1] /= 255, e[n].c.k[2] /= 255, e[n].c.k[3] /= 255;
455
- }
456
- function n(e) {
457
- var n, r = e.length;
458
- for (n = 0; n < r; n += 1) e[n].ty === 4 && t(e[n].shapes);
459
- }
460
- return function(t) {
461
- if (o(e, t.v) && (n(t.layers), t.assets)) {
462
- var r, i = t.assets.length;
463
- for (r = 0; r < i; r += 1) t.assets[r].layers && n(t.assets[r].layers);
464
- }
465
- };
466
- }(), d = function() {
467
- var e = [
468
- 4,
469
- 4,
470
- 18
471
- ];
472
- function t(e) {
473
- var n, r = e.length, i, a;
474
- for (n = r - 1; n >= 0; --n) if (e[n].ty === "sh") if (e[n].ks.k.i) e[n].ks.k.c = e[n].closed;
475
- else for (a = e[n].ks.k.length, i = 0; i < a; i += 1) e[n].ks.k[i].s && (e[n].ks.k[i].s[0].c = e[n].closed), e[n].ks.k[i].e && (e[n].ks.k[i].e[0].c = e[n].closed);
476
- else e[n].ty === "gr" && t(e[n].it);
477
- }
478
- function n(e) {
479
- var n, r, i = e.length, a, o, s, c;
480
- for (r = 0; r < i; r += 1) {
481
- if (n = e[r], n.hasMask) {
482
- var l = n.masksProperties;
483
- for (o = l.length, a = 0; a < o; a += 1) if (l[a].pt.k.i) l[a].pt.k.c = l[a].cl;
484
- else for (c = l[a].pt.k.length, s = 0; s < c; s += 1) l[a].pt.k[s].s && (l[a].pt.k[s].s[0].c = l[a].cl), l[a].pt.k[s].e && (l[a].pt.k[s].e[0].c = l[a].cl);
485
- }
486
- n.ty === 4 && t(n.shapes);
487
- }
488
- }
489
- return function(t) {
490
- if (o(e, t.v) && (n(t.layers), t.assets)) {
491
- var r, i = t.assets.length;
492
- for (r = 0; r < i; r += 1) t.assets[r].layers && n(t.assets[r].layers);
493
- }
494
- };
495
- }();
496
- function f(n) {
497
- n.__complete || (u(n), s(n), c(n), l(n), d(n), e(n.layers, n.assets), t(n.chars, n.assets), n.__complete = !0);
498
- }
499
- function p(e) {
500
- e.t.a.length === 0 && "m" in e.t.p;
501
- }
502
- var m = {};
503
- return m.completeData = f, m.checkColors = u, m.checkChars = c, m.checkPathProperties = l, m.checkShapes = d, m.completeLayers = e, m;
504
- }
505
- if (a.dataManager ||= t(), a.assetLoader ||= function() {
506
- function e(e) {
507
- var t = e.getResponseHeader("content-type");
508
- return t && e.responseType === "json" && t.indexOf("json") !== -1 || e.response && me(e.response) === "object" ? e.response : e.response && typeof e.response == "string" ? JSON.parse(e.response) : e.responseText ? JSON.parse(e.responseText) : null;
509
- }
510
- function t(t, n, r, i) {
511
- var a, o = new XMLHttpRequest();
512
- try {
513
- o.responseType = "json";
514
- } catch {}
515
- o.onreadystatechange = function() {
516
- if (o.readyState === 4) if (o.status === 200) a = e(o), r(a);
517
- else try {
518
- a = e(o), r(a);
519
- } catch (e) {
520
- i && i(e);
521
- }
522
- };
523
- try {
524
- o.open([
525
- "G",
526
- "E",
527
- "T"
528
- ].join(""), t, !0);
529
- } catch {
530
- o.open([
531
- "G",
532
- "E",
533
- "T"
534
- ].join(""), n + "/" + t, !0);
535
- }
536
- o.send();
537
- }
538
- return { load: t };
539
- }(), e.data.type === "loadAnimation") a.assetLoader.load(e.data.path, e.data.fullPath, function(t) {
540
- a.dataManager.completeData(t), a.postMessage({
541
- id: e.data.id,
542
- payload: t,
543
- status: "success"
544
- });
545
- }, function() {
546
- a.postMessage({
547
- id: e.data.id,
548
- status: "error"
549
- });
550
- });
551
- else if (e.data.type === "complete") {
552
- var n = e.data.animation;
553
- a.dataManager.completeData(n), a.postMessage({
554
- id: e.data.id,
555
- payload: n,
556
- status: "success"
557
- });
558
- } else e.data.type === "loadData" && a.assetLoader.load(e.data.path, e.data.fullPath, function(t) {
559
- a.postMessage({
560
- id: e.data.id,
561
- payload: t,
562
- status: "success"
563
- });
564
- }, function() {
565
- a.postMessage({
566
- id: e.data.id,
567
- status: "error"
568
- });
569
- });
570
- }), r.onmessage = function(e) {
571
- var n = e.data, r = n.id, i = t[r];
572
- t[r] = null, n.status === "success" ? i.onComplete(n.payload) : i.onError && i.onError();
573
- });
574
- }
575
- function l(n, r) {
576
- e += 1;
577
- var i = "processId_" + e;
578
- return t[i] = {
579
- onComplete: n,
580
- onError: r
581
- }, i;
582
- }
583
- function u(e, t, n) {
584
- c();
585
- var i = l(t, n);
586
- r.postMessage({
587
- type: "loadAnimation",
588
- path: e,
589
- fullPath: window.location.origin + window.location.pathname,
590
- id: i
591
- });
592
- }
593
- function d(e, t, n) {
594
- c();
595
- var i = l(t, n);
596
- r.postMessage({
597
- type: "loadData",
598
- path: e,
599
- fullPath: window.location.origin + window.location.pathname,
600
- id: i
601
- });
602
- }
603
- function f(e, t, n) {
604
- c();
605
- var i = l(t, n);
606
- r.postMessage({
607
- type: "complete",
608
- animation: e,
609
- id: i
610
- });
611
- }
612
- return {
613
- loadAnimation: u,
614
- loadData: d,
615
- completeAnimation: f
616
- };
617
- }(), ge = function() {
618
- var e = function() {
619
- var e = u("canvas");
620
- e.width = 1, e.height = 1;
621
- var t = e.getContext("2d");
622
- return t.fillStyle = "rgba(0,0,0,0)", t.fillRect(0, 0, 1, 1), e;
623
- }();
624
- function t() {
625
- this.loadedAssets += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
626
- }
627
- function n() {
628
- this.loadedFootagesCount += 1, this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb && this.imagesLoadedCb(null);
629
- }
630
- function r(e, t, n) {
631
- var r = "";
632
- if (e.e) r = e.p;
633
- else if (t) {
634
- var i = e.p;
635
- i.indexOf("images/") !== -1 && (i = i.split("/")[1]), r = t + i;
636
- } else r = n, r += e.u ? e.u : "", r += e.p;
637
- return r;
638
- }
639
- function i(e) {
640
- var t = 0, n = setInterval(function() {
641
- var r = e.getBBox();
642
- (r.width || t > 500) && (this._imageLoaded(), clearInterval(n)), t += 1;
643
- }.bind(this), 50);
644
- }
645
- function a(t) {
646
- var n = r(t, this.assetsPath, this.path), i = z("image");
647
- x ? this.testImageLoaded(i) : i.addEventListener("load", this._imageLoaded, !1), i.addEventListener("error", function() {
648
- a.img = e, this._imageLoaded();
649
- }.bind(this), !1), i.setAttributeNS("http://www.w3.org/1999/xlink", "href", n), this._elementHelper.append ? this._elementHelper.append(i) : this._elementHelper.appendChild(i);
650
- var a = {
651
- img: i,
652
- assetData: t
653
- };
654
- return a;
655
- }
656
- function o(t) {
657
- var n = r(t, this.assetsPath, this.path), i = u("img");
658
- i.crossOrigin = "anonymous", i.addEventListener("load", this._imageLoaded, !1), i.addEventListener("error", function() {
659
- a.img = e, this._imageLoaded();
660
- }.bind(this), !1), i.src = n;
661
- var a = {
662
- img: i,
663
- assetData: t
664
- };
665
- return a;
666
- }
667
- function s(e) {
668
- var t = { assetData: e }, n = r(e, this.assetsPath, this.path);
669
- return he.loadData(n, function(e) {
670
- t.img = e, this._footageLoaded();
671
- }.bind(this), function() {
672
- t.img = {}, this._footageLoaded();
673
- }.bind(this)), t;
674
- }
675
- function c(e, t) {
676
- this.imagesLoadedCb = t;
677
- var n, r = e.length;
678
- for (n = 0; n < r; n += 1) e[n].layers || (!e[n].t || e[n].t === "seq" ? (this.totalImages += 1, this.images.push(this._createImageData(e[n]))) : e[n].t === 3 && (this.totalFootages += 1, this.images.push(this.createFootageData(e[n]))));
679
- }
680
- function l(e) {
681
- this.path = e || "";
682
- }
683
- function d(e) {
684
- this.assetsPath = e || "";
685
- }
686
- function f(e) {
687
- for (var t = 0, n = this.images.length; t < n;) {
688
- if (this.images[t].assetData === e) return this.images[t].img;
689
- t += 1;
690
- }
691
- return null;
692
- }
693
- function p() {
694
- this.imagesLoadedCb = null, this.images.length = 0;
695
- }
696
- function m() {
697
- return this.totalImages === this.loadedAssets;
698
- }
699
- function h() {
700
- return this.totalFootages === this.loadedFootagesCount;
701
- }
702
- function g(e, t) {
703
- e === "svg" ? (this._elementHelper = t, this._createImageData = this.createImageData.bind(this)) : this._createImageData = this.createImgData.bind(this);
704
- }
705
- function _() {
706
- this._imageLoaded = t.bind(this), this._footageLoaded = n.bind(this), this.testImageLoaded = i.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 = [];
707
- }
708
- return _.prototype = {
709
- loadAssets: c,
710
- setAssetsPath: d,
711
- setPath: l,
712
- loadedImages: m,
713
- loadedFootages: h,
714
- destroy: p,
715
- getAsset: f,
716
- createImgData: o,
717
- createImageData: a,
718
- imageLoaded: t,
719
- footageLoaded: n,
720
- setCacheType: g
721
- }, _;
722
- }();
723
- function _e() {}
724
- _e.prototype = {
725
- triggerEvent: function(e, t) {
726
- if (this._cbs[e]) for (var n = this._cbs[e], r = 0; r < n.length; r += 1) n[r](t);
727
- },
728
- addEventListener: function(e, t) {
729
- return this._cbs[e] || (this._cbs[e] = []), this._cbs[e].push(t), function() {
730
- this.removeEventListener(e, t);
731
- }.bind(this);
732
- },
733
- removeEventListener: function(e, t) {
734
- if (!t) this._cbs[e] = null;
735
- else if (this._cbs[e]) {
736
- for (var n = 0, r = this._cbs[e].length; n < r;) this._cbs[e][n] === t && (this._cbs[e].splice(n, 1), --n, --r), n += 1;
737
- this._cbs[e].length || (this._cbs[e] = null);
738
- }
739
- }
740
- };
741
- var ve = function() {
742
- function e(e) {
743
- for (var t = e.split("\r\n"), n = {}, r, i = 0, a = 0; a < t.length; a += 1) r = t[a].split(":"), r.length === 2 && (n[r[0]] = r[1].trim(), i += 1);
744
- if (i === 0) throw Error();
745
- return n;
746
- }
747
- return function(t) {
748
- for (var n = [], r = 0; r < t.length; r += 1) {
749
- var i = t[r], a = {
750
- time: i.tm,
751
- duration: i.dr
752
- };
753
- try {
754
- a.payload = JSON.parse(t[r].cm);
755
- } catch {
756
- try {
757
- a.payload = e(t[r].cm);
758
- } catch {
759
- a.payload = { name: t[r].cm };
760
- }
761
- }
762
- n.push(a);
763
- }
764
- return n;
765
- };
766
- }(), ye = function() {
767
- function e(e) {
768
- this.compositions.push(e);
769
- }
770
- return function() {
771
- function t(e) {
772
- for (var t = 0, n = this.compositions.length; t < n;) {
773
- if (this.compositions[t].data && this.compositions[t].data.nm === e) return this.compositions[t].prepareFrame && this.compositions[t].data.xt && this.compositions[t].prepareFrame(this.currentFrame), this.compositions[t].compInterface;
774
- t += 1;
775
- }
776
- return null;
777
- }
778
- return t.compositions = [], t.currentFrame = 0, t.registerComposition = e, t;
779
- };
780
- }(), B = {}, be = function(e, t) {
781
- B[e] = t;
782
- };
783
- function xe(e) {
784
- return B[e];
785
- }
786
- function Se() {
787
- if (B.canvas) return "canvas";
788
- for (var e in B) if (B[e]) return e;
789
- return "";
790
- }
791
- function Ce(e) {
792
- "@babel/helpers - typeof";
793
- return Ce = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
794
- return typeof e;
795
- } : function(e) {
796
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
797
- }, Ce(e);
798
- }
799
- var V = function() {
800
- this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = L(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = ce(), this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = ye(), this.imagePreloader = new ge(), this.audioController = p(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new M("drawnFrame", 0, 0, 0), this.expressionsPlugin = ue();
801
- };
802
- d([_e], V), V.prototype.setParams = function(e) {
803
- (e.wrapper || e.container) && (this.wrapper = e.wrapper || e.container);
804
- var t = "svg";
805
- e.animType ? t = e.animType : e.renderer && (t = e.renderer);
806
- var n = xe(t);
807
- this.renderer = new n(this, e.rendererSettings), this.imagePreloader.setCacheType(t, this.renderer.globalData.defs), this.renderer.setProjectInterface(this.projectInterface), this.animType = t, e.loop === "" || e.loop === null || e.loop === void 0 || e.loop === !0 ? this.loop = !0 : e.loop === !1 ? this.loop = !1 : this.loop = parseInt(e.loop, 10), this.autoplay = "autoplay" in e ? e.autoplay : !0, this.name = e.name ? e.name : "", this.autoloadSegments = Object.prototype.hasOwnProperty.call(e, "autoloadSegments") ? e.autoloadSegments : !0, this.assetsPath = e.assetsPath, this.initialSegment = e.initialSegment, e.audioFactory && this.audioController.setAudioFactory(e.audioFactory), e.animationData ? this.setupAnimation(e.animationData) : e.path && (e.path.lastIndexOf("\\") === -1 ? this.path = e.path.substr(0, e.path.lastIndexOf("/") + 1) : this.path = e.path.substr(0, e.path.lastIndexOf("\\") + 1), this.fileName = e.path.substr(e.path.lastIndexOf("/") + 1), this.fileName = this.fileName.substr(0, this.fileName.lastIndexOf(".json")), he.loadAnimation(e.path, this.configAnimation, this.onSetupError));
808
- }, V.prototype.onSetupError = function() {
809
- this.trigger("data_failed");
810
- }, V.prototype.setupAnimation = function(e) {
811
- he.completeAnimation(e, this.configAnimation);
812
- }, V.prototype.setData = function(e, t) {
813
- t && Ce(t) !== "object" && (t = JSON.parse(t));
814
- var n = {
815
- wrapper: e,
816
- animationData: t
817
- }, r = e.attributes;
818
- n.path = r.getNamedItem("data-animation-path") ? r.getNamedItem("data-animation-path").value : r.getNamedItem("data-bm-path") ? r.getNamedItem("data-bm-path").value : r.getNamedItem("bm-path") ? r.getNamedItem("bm-path").value : "", n.animType = r.getNamedItem("data-anim-type") ? r.getNamedItem("data-anim-type").value : r.getNamedItem("data-bm-type") ? r.getNamedItem("data-bm-type").value : r.getNamedItem("bm-type") ? r.getNamedItem("bm-type").value : r.getNamedItem("data-bm-renderer") ? r.getNamedItem("data-bm-renderer").value : r.getNamedItem("bm-renderer") ? r.getNamedItem("bm-renderer").value : Se() || "canvas";
819
- var i = r.getNamedItem("data-anim-loop") ? r.getNamedItem("data-anim-loop").value : r.getNamedItem("data-bm-loop") ? r.getNamedItem("data-bm-loop").value : r.getNamedItem("bm-loop") ? r.getNamedItem("bm-loop").value : "";
820
- i === "false" ? n.loop = !1 : i === "true" ? n.loop = !0 : i !== "" && (n.loop = parseInt(i, 10));
821
- var a = r.getNamedItem("data-anim-autoplay") ? r.getNamedItem("data-anim-autoplay").value : r.getNamedItem("data-bm-autoplay") ? r.getNamedItem("data-bm-autoplay").value : r.getNamedItem("bm-autoplay") ? r.getNamedItem("bm-autoplay").value : !0;
822
- n.autoplay = a !== "false", n.name = r.getNamedItem("data-name") ? r.getNamedItem("data-name").value : r.getNamedItem("data-bm-name") ? r.getNamedItem("data-bm-name").value : r.getNamedItem("bm-name") ? r.getNamedItem("bm-name").value : "";
823
- var o = r.getNamedItem("data-anim-prerender") ? r.getNamedItem("data-anim-prerender").value : r.getNamedItem("data-bm-prerender") ? r.getNamedItem("data-bm-prerender").value : r.getNamedItem("bm-prerender") ? r.getNamedItem("bm-prerender").value : "";
824
- o === "false" && (n.prerender = !1), n.path ? this.setParams(n) : this.trigger("destroy");
825
- }, V.prototype.includeLayers = function(e) {
826
- e.op > this.animationData.op && (this.animationData.op = e.op, this.totalFrames = Math.floor(e.op - this.animationData.ip));
827
- var t = this.animationData.layers, n, r = t.length, i = e.layers, a, o = i.length;
828
- for (a = 0; a < o; a += 1) for (n = 0; n < r;) {
829
- if (t[n].id === i[a].id) {
830
- t[n] = i[a];
831
- break;
832
- }
833
- n += 1;
834
- }
835
- if ((e.chars || e.fonts) && (this.renderer.globalData.fontManager.addChars(e.chars), this.renderer.globalData.fontManager.addFonts(e.fonts, this.renderer.globalData.defs)), e.assets) for (r = e.assets.length, n = 0; n < r; n += 1) this.animationData.assets.push(e.assets[n]);
836
- this.animationData.__complete = !1, he.completeAnimation(this.animationData, this.onSegmentComplete);
837
- }, V.prototype.onSegmentComplete = function(e) {
838
- this.animationData = e;
839
- var t = ue();
840
- t && t.initExpressions(this), this.loadNextSegment();
841
- }, V.prototype.loadNextSegment = function() {
842
- var e = this.animationData.segments;
843
- if (!e || e.length === 0 || !this.autoloadSegments) {
844
- this.trigger("data_ready"), this.timeCompleted = this.totalFrames;
845
- return;
846
- }
847
- var t = e.shift();
848
- this.timeCompleted = t.time * this.frameRate;
849
- var n = this.path + this.fileName + "_" + this.segmentPos + ".json";
850
- this.segmentPos += 1, he.loadData(n, this.includeLayers.bind(this), function() {
851
- this.trigger("data_failed");
852
- }.bind(this));
853
- }, V.prototype.loadSegments = function() {
854
- var e = this.animationData.segments;
855
- e || (this.timeCompleted = this.totalFrames), this.loadNextSegment();
856
- }, V.prototype.imagesLoaded = function() {
857
- this.trigger("loaded_images"), this.checkLoaded();
858
- }, V.prototype.preloadImages = function() {
859
- this.imagePreloader.setAssetsPath(this.assetsPath), this.imagePreloader.setPath(this.path), this.imagePreloader.loadAssets(this.animationData.assets, this.imagesLoaded.bind(this));
860
- }, V.prototype.configAnimation = function(e) {
861
- if (this.renderer) try {
862
- this.animationData = e, this.initialSegment ? (this.totalFrames = Math.floor(this.initialSegment[1] - this.initialSegment[0]), this.firstFrame = Math.round(this.initialSegment[0])) : (this.totalFrames = Math.floor(this.animationData.op - this.animationData.ip), this.firstFrame = Math.round(this.animationData.ip)), this.renderer.configAnimation(e), e.assets ||= [], this.assets = this.animationData.assets, this.frameRate = this.animationData.fr, this.frameMult = this.animationData.fr / 1e3, this.renderer.searchExtraCompositions(e.assets), this.markers = ve(e.markers || []), this.trigger("config_ready"), this.preloadImages(), this.loadSegments(), this.updaFrameModifier(), this.waitForFontsLoaded(), this.isPaused && this.audioController.pause();
863
- } catch (e) {
864
- this.triggerConfigError(e);
865
- }
866
- }, V.prototype.waitForFontsLoaded = function() {
867
- this.renderer && (this.renderer.globalData.fontManager.isLoaded ? this.checkLoaded() : setTimeout(this.waitForFontsLoaded.bind(this), 20));
868
- }, V.prototype.checkLoaded = function() {
869
- if (!this.isLoaded && this.renderer.globalData.fontManager.isLoaded && (this.imagePreloader.loadedImages() || this.renderer.rendererType !== "canvas") && this.imagePreloader.loadedFootages()) {
870
- this.isLoaded = !0;
871
- var e = ue();
872
- e && e.initExpressions(this), this.renderer.initItems(), setTimeout(function() {
873
- this.trigger("DOMLoaded");
874
- }.bind(this), 0), this.gotoFrame(), this.autoplay && this.play();
875
- }
876
- }, V.prototype.resize = function(e, t) {
877
- var n = typeof e == "number" ? e : void 0, r = typeof t == "number" ? t : void 0;
878
- this.renderer.updateContainerSize(n, r);
879
- }, V.prototype.setSubframe = function(e) {
880
- this.isSubframeEnabled = !!e;
881
- }, V.prototype.gotoFrame = function() {
882
- this.currentFrame = this.isSubframeEnabled ? this.currentRawFrame : ~~this.currentRawFrame, this.timeCompleted !== this.totalFrames && this.currentFrame > this.timeCompleted && (this.currentFrame = this.timeCompleted), this.trigger("enterFrame"), this.renderFrame(), this.trigger("drawnFrame");
883
- }, V.prototype.renderFrame = function() {
884
- if (!(this.isLoaded === !1 || !this.renderer)) try {
885
- this.expressionsPlugin && this.expressionsPlugin.resetFrame(), this.renderer.renderFrame(this.currentFrame + this.firstFrame);
886
- } catch (e) {
887
- this.triggerRenderFrameError(e);
888
- }
889
- }, V.prototype.play = function(e) {
890
- e && this.name !== e || this.isPaused === !0 && (this.isPaused = !1, this.trigger("_play"), this.audioController.resume(), this._idle && (this._idle = !1, this.trigger("_active")));
891
- }, V.prototype.pause = function(e) {
892
- e && this.name !== e || this.isPaused === !1 && (this.isPaused = !0, this.trigger("_pause"), this._idle = !0, this.trigger("_idle"), this.audioController.pause());
893
- }, V.prototype.togglePause = function(e) {
894
- e && this.name !== e || (this.isPaused === !0 ? this.play() : this.pause());
895
- }, V.prototype.stop = function(e) {
896
- e && this.name !== e || (this.pause(), this.playCount = 0, this._completedLoop = !1, this.setCurrentRawFrameValue(0));
897
- }, V.prototype.getMarkerData = function(e) {
898
- for (var t, n = 0; n < this.markers.length; n += 1) if (t = this.markers[n], t.payload && t.payload.name === e) return t;
899
- return null;
900
- }, V.prototype.goToAndStop = function(e, t, n) {
901
- if (!(n && this.name !== n)) {
902
- var r = Number(e);
903
- if (isNaN(r)) {
904
- var i = this.getMarkerData(e);
905
- i && this.goToAndStop(i.time, !0);
906
- } else t ? this.setCurrentRawFrameValue(e) : this.setCurrentRawFrameValue(e * this.frameModifier);
907
- this.pause();
908
- }
909
- }, V.prototype.goToAndPlay = function(e, t, n) {
910
- if (!(n && this.name !== n)) {
911
- var r = Number(e);
912
- if (isNaN(r)) {
913
- var i = this.getMarkerData(e);
914
- i && (i.duration ? this.playSegments([i.time, i.time + i.duration], !0) : this.goToAndStop(i.time, !0));
915
- } else this.goToAndStop(r, t, n);
916
- this.play();
917
- }
918
- }, V.prototype.advanceTime = function(e) {
919
- if (!(this.isPaused === !0 || this.isLoaded === !1)) {
920
- var t = this.currentRawFrame + e * this.frameModifier, n = !1;
921
- t >= this.totalFrames - 1 && this.frameModifier > 0 ? !this.loop || this.playCount === this.loop ? this.checkSegments(t > this.totalFrames ? t % this.totalFrames : 0) || (n = !0, t = this.totalFrames - 1) : t >= this.totalFrames ? (this.playCount += 1, this.checkSegments(t % this.totalFrames) || (this.setCurrentRawFrameValue(t % this.totalFrames), this._completedLoop = !0, this.trigger("loopComplete"))) : this.setCurrentRawFrameValue(t) : t < 0 ? this.checkSegments(t % this.totalFrames) || (this.loop && !(this.playCount-- <= 0 && this.loop !== !0) ? (this.setCurrentRawFrameValue(this.totalFrames + t % this.totalFrames), this._completedLoop ? this.trigger("loopComplete") : this._completedLoop = !0) : (n = !0, t = 0)) : this.setCurrentRawFrameValue(t), n && (this.setCurrentRawFrameValue(t), this.pause(), this.trigger("complete"));
922
- }
923
- }, V.prototype.adjustSegment = function(e, t) {
924
- this.playCount = 0, e[1] < e[0] ? (this.frameModifier > 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 - t)) : 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 + t)), this.trigger("segmentStart");
925
- }, V.prototype.setSegment = function(e, t) {
926
- var n = -1;
927
- this.isPaused && (this.currentRawFrame + this.firstFrame < e ? n = e : this.currentRawFrame + this.firstFrame > t && (n = t - e)), this.firstFrame = e, this.totalFrames = t - e, this.timeCompleted = this.totalFrames, n !== -1 && this.goToAndStop(n, !0);
928
- }, V.prototype.playSegments = function(e, t) {
929
- if (t && (this.segments.length = 0), Ce(e[0]) === "object") {
930
- var n, r = e.length;
931
- for (n = 0; n < r; n += 1) this.segments.push(e[n]);
932
- } else this.segments.push(e);
933
- this.segments.length && t && this.adjustSegment(this.segments.shift(), 0), this.isPaused && this.play();
934
- }, V.prototype.resetSegments = function(e) {
935
- this.segments.length = 0, this.segments.push([this.animationData.ip, this.animationData.op]), e && this.checkSegments(0);
936
- }, V.prototype.checkSegments = function(e) {
937
- return this.segments.length ? (this.adjustSegment(this.segments.shift(), e), !0) : !1;
938
- }, V.prototype.destroy = function(e) {
939
- e && this.name !== e || !this.renderer || (this.renderer.destroy(), this.imagePreloader.destroy(), this.trigger("destroy"), this._cbs = null, this.onEnterFrame = null, this.onLoopComplete = null, this.onComplete = null, this.onSegmentStart = null, this.onDestroy = null, this.renderer = null, this.expressionsPlugin = null, this.imagePreloader = null, this.projectInterface = null);
940
- }, V.prototype.setCurrentRawFrameValue = function(e) {
941
- this.currentRawFrame = e, this.gotoFrame();
942
- }, V.prototype.setSpeed = function(e) {
943
- this.playSpeed = e, this.updaFrameModifier();
944
- }, V.prototype.setDirection = function(e) {
945
- this.playDirection = e < 0 ? -1 : 1, this.updaFrameModifier();
946
- }, V.prototype.setLoop = function(e) {
947
- this.loop = e;
948
- }, V.prototype.setVolume = function(e, t) {
949
- t && this.name !== t || this.audioController.setVolume(e);
950
- }, V.prototype.getVolume = function() {
951
- return this.audioController.getVolume();
952
- }, V.prototype.mute = function(e) {
953
- e && this.name !== e || this.audioController.mute();
954
- }, V.prototype.unmute = function(e) {
955
- e && this.name !== e || this.audioController.unmute();
956
- }, V.prototype.updaFrameModifier = function() {
957
- this.frameModifier = this.frameMult * this.playSpeed * this.playDirection, this.audioController.setRate(this.playSpeed * this.playDirection);
958
- }, V.prototype.getPath = function() {
959
- return this.path;
960
- }, V.prototype.getAssetsPath = function(e) {
961
- var t = "";
962
- if (e.e) t = e.p;
963
- else if (this.assetsPath) {
964
- var n = e.p;
965
- n.indexOf("images/") !== -1 && (n = n.split("/")[1]), t = this.assetsPath + n;
966
- } else t = this.path, t += e.u ? e.u : "", t += e.p;
967
- return t;
968
- }, V.prototype.getAssetData = function(e) {
969
- for (var t = 0, n = this.assets.length; t < n;) {
970
- if (e === this.assets[t].id) return this.assets[t];
971
- t += 1;
972
- }
973
- return null;
974
- }, V.prototype.hide = function() {
975
- this.renderer.hide();
976
- }, V.prototype.show = function() {
977
- this.renderer.show();
978
- }, V.prototype.getDuration = function(e) {
979
- return e ? this.totalFrames : this.totalFrames / this.frameRate;
980
- }, V.prototype.updateDocumentData = function(e, t, n) {
981
- try {
982
- var r = this.renderer.getElementByPath(e);
983
- r.updateDocumentData(t, n);
984
- } catch {}
985
- }, V.prototype.trigger = function(e) {
986
- if (this._cbs && this._cbs[e]) switch (e) {
987
- case "enterFrame":
988
- this.triggerEvent(e, new M(e, this.currentFrame, this.totalFrames, this.frameModifier));
989
- break;
990
- case "drawnFrame":
991
- this.drawnFrameEvent.currentTime = this.currentFrame, this.drawnFrameEvent.totalTime = this.totalFrames, this.drawnFrameEvent.direction = this.frameModifier, this.triggerEvent(e, this.drawnFrameEvent);
992
- break;
993
- case "loopComplete":
994
- this.triggerEvent(e, new P(e, this.loop, this.playCount, this.frameMult));
995
- break;
996
- case "complete":
997
- this.triggerEvent(e, new N(e, this.frameMult));
998
- break;
999
- case "segmentStart":
1000
- this.triggerEvent(e, new F(e, this.firstFrame, this.totalFrames));
1001
- break;
1002
- case "destroy":
1003
- this.triggerEvent(e, new ee(e, this));
1004
- break;
1005
- default: this.triggerEvent(e);
1006
- }
1007
- e === "enterFrame" && this.onEnterFrame && this.onEnterFrame.call(this, new M(e, this.currentFrame, this.totalFrames, this.frameMult)), e === "loopComplete" && this.onLoopComplete && this.onLoopComplete.call(this, new P(e, this.loop, this.playCount, this.frameMult)), e === "complete" && this.onComplete && this.onComplete.call(this, new N(e, this.frameMult)), e === "segmentStart" && this.onSegmentStart && this.onSegmentStart.call(this, new F(e, this.firstFrame, this.totalFrames)), e === "destroy" && this.onDestroy && this.onDestroy.call(this, new ee(e, this));
1008
- }, V.prototype.triggerRenderFrameError = function(e) {
1009
- var t = new I(e, this.currentFrame);
1010
- this.triggerEvent("error", t), this.onError && this.onError.call(this, t);
1011
- }, V.prototype.triggerConfigError = function(e) {
1012
- var t = new te(e, this.currentFrame);
1013
- this.triggerEvent("error", t), this.onError && this.onError.call(this, t);
1014
- };
1015
- var H = function() {
1016
- var e = {}, t = [], n = 0, r = 0, i = 0, a = !0, o = !1;
1017
- function s(e) {
1018
- for (var n = 0, i = e.target; n < r;) t[n].animation === i && (t.splice(n, 1), --n, --r, i.isPaused || f()), n += 1;
1019
- }
1020
- function c(e, n) {
1021
- if (!e) return null;
1022
- for (var i = 0; i < r;) {
1023
- if (t[i].elem === e && t[i].elem !== null) return t[i].animation;
1024
- i += 1;
1025
- }
1026
- var a = new V();
1027
- return p(a, e), a.setData(e, n), a;
1028
- }
1029
- function l() {
1030
- var e, n = t.length, r = [];
1031
- for (e = 0; e < n; e += 1) r.push(t[e].animation);
1032
- return r;
1033
- }
1034
- function d() {
1035
- i += 1, D();
1036
- }
1037
- function f() {
1038
- --i;
1039
- }
1040
- function p(e, n) {
1041
- e.addEventListener("destroy", s), e.addEventListener("_active", d), e.addEventListener("_idle", f), t.push({
1042
- elem: n,
1043
- animation: e
1044
- }), r += 1;
1045
- }
1046
- function m(e) {
1047
- var t = new V();
1048
- return p(t, null), t.setParams(e), t;
1049
- }
1050
- function h(e, n) {
1051
- var i;
1052
- for (i = 0; i < r; i += 1) t[i].animation.setSpeed(e, n);
1053
- }
1054
- function g(e, n) {
1055
- var i;
1056
- for (i = 0; i < r; i += 1) t[i].animation.setDirection(e, n);
1057
- }
1058
- function _(e) {
1059
- var n;
1060
- for (n = 0; n < r; n += 1) t[n].animation.play(e);
1061
- }
1062
- function v(e) {
1063
- var s = e - n, c;
1064
- for (c = 0; c < r; c += 1) t[c].animation.advanceTime(s);
1065
- n = e, i && !o ? window.requestAnimationFrame(v) : a = !0;
1066
- }
1067
- function y(e) {
1068
- n = e, window.requestAnimationFrame(v);
1069
- }
1070
- function b(e) {
1071
- var n;
1072
- for (n = 0; n < r; n += 1) t[n].animation.pause(e);
1073
- }
1074
- function x(e, n, i) {
1075
- var a;
1076
- for (a = 0; a < r; a += 1) t[a].animation.goToAndStop(e, n, i);
1077
- }
1078
- function S(e) {
1079
- var n;
1080
- for (n = 0; n < r; n += 1) t[n].animation.stop(e);
1081
- }
1082
- function C(e) {
1083
- var n;
1084
- for (n = 0; n < r; n += 1) t[n].animation.togglePause(e);
1085
- }
1086
- function w(e) {
1087
- var n;
1088
- for (n = r - 1; n >= 0; --n) t[n].animation.destroy(e);
1089
- }
1090
- function T(e, t, n) {
1091
- var r = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), i, a = r.length;
1092
- for (i = 0; i < a; i += 1) n && r[i].setAttribute("data-bm-type", n), c(r[i], e);
1093
- if (t && a === 0) {
1094
- n ||= "svg";
1095
- var o = document.getElementsByTagName("body")[0];
1096
- o.innerText = "";
1097
- var s = u("div");
1098
- s.style.width = "100%", s.style.height = "100%", s.setAttribute("data-bm-type", n), o.appendChild(s), c(s, e);
1099
- }
1100
- }
1101
- function E() {
1102
- var e;
1103
- for (e = 0; e < r; e += 1) t[e].animation.resize();
1104
- }
1105
- function D() {
1106
- !o && i && a && (window.requestAnimationFrame(y), a = !1);
1107
- }
1108
- function O() {
1109
- o = !0;
1110
- }
1111
- function k() {
1112
- o = !1, D();
1113
- }
1114
- function A(e, n) {
1115
- var i;
1116
- for (i = 0; i < r; i += 1) t[i].animation.setVolume(e, n);
1117
- }
1118
- function j(e) {
1119
- var n;
1120
- for (n = 0; n < r; n += 1) t[n].animation.mute(e);
1121
- }
1122
- function M(e) {
1123
- var n;
1124
- for (n = 0; n < r; n += 1) t[n].animation.unmute(e);
1125
- }
1126
- return e.registerAnimation = c, e.loadAnimation = m, e.setSpeed = h, e.setDirection = g, e.play = _, e.pause = b, e.stop = S, e.togglePause = C, e.searchAnimations = T, e.resize = E, e.goToAndStop = x, e.destroy = w, e.freeze = O, e.unfreeze = k, e.setVolume = A, e.mute = j, e.unmute = M, e.getRegisteredAnimations = l, e;
1127
- }(), we = function() {
1128
- var e = {};
1129
- e.getBezierEasing = n;
1130
- var t = {};
1131
- function n(e, n, r, i, a) {
1132
- var o = a || ("bez_" + e + "_" + n + "_" + r + "_" + i).replace(/\./g, "p");
1133
- if (t[o]) return t[o];
1134
- var s = new _([
1135
- e,
1136
- n,
1137
- r,
1138
- i
1139
- ]);
1140
- return t[o] = s, s;
1141
- }
1142
- var r = 4, i = .001, a = 1e-7, o = 10, s = 11, c = 1 / (s - 1), l = typeof Float32Array == "function";
1143
- function u(e, t) {
1144
- return 1 - 3 * t + 3 * e;
1145
- }
1146
- function d(e, t) {
1147
- return 3 * t - 6 * e;
1148
- }
1149
- function f(e) {
1150
- return 3 * e;
1151
- }
1152
- function p(e, t, n) {
1153
- return ((u(t, n) * e + d(t, n)) * e + f(t)) * e;
1154
- }
1155
- function m(e, t, n) {
1156
- return 3 * u(t, n) * e * e + 2 * d(t, n) * e + f(t);
1157
- }
1158
- function h(e, t, n, r, i) {
1159
- var s, c, l = 0;
1160
- do
1161
- c = t + (n - t) / 2, s = p(c, r, i) - e, s > 0 ? n = c : t = c;
1162
- while (Math.abs(s) > a && ++l < o);
1163
- return c;
1164
- }
1165
- function g(e, t, n, i) {
1166
- for (var a = 0; a < r; ++a) {
1167
- var o = m(t, n, i);
1168
- if (o === 0) return t;
1169
- var s = p(t, n, i) - e;
1170
- t -= s / o;
1171
- }
1172
- return t;
1173
- }
1174
- function _(e) {
1175
- this._p = e, this._mSampleValues = l ? new Float32Array(s) : Array(s), this._precomputed = !1, this.get = this.get.bind(this);
1176
- }
1177
- return _.prototype = {
1178
- get: function(e) {
1179
- var t = this._p[0], n = this._p[1], r = this._p[2], i = this._p[3];
1180
- return this._precomputed || this._precompute(), t === n && r === i ? e : e === 0 ? 0 : e === 1 ? 1 : p(this._getTForX(e), n, i);
1181
- },
1182
- _precompute: function() {
1183
- var e = this._p[0], t = this._p[1], n = this._p[2], r = this._p[3];
1184
- this._precomputed = !0, (e !== t || n !== r) && this._calcSampleValues();
1185
- },
1186
- _calcSampleValues: function() {
1187
- for (var e = this._p[0], t = this._p[2], n = 0; n < s; ++n) this._mSampleValues[n] = p(n * c, e, t);
1188
- },
1189
- _getTForX: function(e) {
1190
- for (var t = this._p[0], n = this._p[2], r = this._mSampleValues, a = 0, o = 1, l = s - 1; o !== l && r[o] <= e; ++o) a += c;
1191
- --o;
1192
- var u = (e - r[o]) / (r[o + 1] - r[o]), d = a + u * c, f = m(d, t, n);
1193
- return f >= i ? g(e, d, t, n) : f === 0 ? d : h(e, a, a + c, t, n);
1194
- }
1195
- }, e;
1196
- }(), Te = function() {
1197
- function e(e) {
1198
- return e.concat(h(e.length));
1199
- }
1200
- return { double: e };
1201
- }(), Ee = function() {
1202
- return function(e, t, n) {
1203
- var r = 0, i = e, a = h(i), o = {
1204
- newElement: s,
1205
- release: c
1206
- };
1207
- function s() {
1208
- var e;
1209
- return r ? (--r, e = a[r]) : e = t(), e;
1210
- }
1211
- function c(e) {
1212
- r === i && (a = Te.double(a), i *= 2), n && n(e), a[r] = e, r += 1;
1213
- }
1214
- return o;
1215
- };
1216
- }(), De = function() {
1217
- function e() {
1218
- return {
1219
- addedLength: 0,
1220
- percents: m("float32", pe()),
1221
- lengths: m("float32", pe())
1222
- };
1223
- }
1224
- return Ee(8, e);
1225
- }(), Oe = function() {
1226
- function e() {
1227
- return {
1228
- lengths: [],
1229
- totalLength: 0
1230
- };
1231
- }
1232
- function t(e) {
1233
- var t, n = e.lengths.length;
1234
- for (t = 0; t < n; t += 1) De.release(e.lengths[t]);
1235
- e.lengths.length = 0;
1236
- }
1237
- return Ee(8, e, t);
1238
- }();
1239
- function ke() {
1240
- var e = Math;
1241
- function t(e, t, n, r, i, a) {
1242
- var o = e * r + t * i + n * a - i * r - a * e - n * t;
1243
- return o > -.001 && o < .001;
1244
- }
1245
- function n(n, r, i, a, o, s, c, l, u) {
1246
- if (i === 0 && s === 0 && u === 0) return t(n, r, a, o, c, l);
1247
- var d = e.sqrt(e.pow(a - n, 2) + e.pow(o - r, 2) + e.pow(s - i, 2)), f = e.sqrt(e.pow(c - n, 2) + e.pow(l - r, 2) + e.pow(u - i, 2)), p = e.sqrt(e.pow(c - a, 2) + e.pow(l - o, 2) + e.pow(u - s, 2)), m;
1248
- return m = d > f ? d > p ? d - f - p : p - f - d : p > f ? p - f - d : f - d - p, m > -1e-4 && m < 1e-4;
1249
- }
1250
- var r = function() {
1251
- return function(e, t, n, r) {
1252
- var i = pe(), a, o, s, c, l, u = 0, d, f = [], p = [], m = De.newElement();
1253
- for (s = n.length, a = 0; a < i; a += 1) {
1254
- for (l = a / (i - 1), d = 0, o = 0; o < s; o += 1) c = C(1 - l, 3) * e[o] + 3 * C(1 - l, 2) * l * n[o] + 3 * (1 - l) * C(l, 2) * r[o] + C(l, 3) * t[o], f[o] = c, p[o] !== null && (d += C(f[o] - p[o], 2)), p[o] = f[o];
1255
- d && (d = w(d), u += d), m.percents[a] = l, m.lengths[a] = u;
1256
- }
1257
- return m.addedLength = u, m;
1258
- };
1259
- }();
1260
- function i(e) {
1261
- var t = Oe.newElement(), n = e.c, i = e.v, a = e.o, o = e.i, s, c = e._length, l = t.lengths, u = 0;
1262
- for (s = 0; s < c - 1; s += 1) l[s] = r(i[s], i[s + 1], a[s], o[s + 1]), u += l[s].addedLength;
1263
- return n && c && (l[s] = r(i[s], i[0], a[s], o[0]), u += l[s].addedLength), t.totalLength = u, t;
1264
- }
1265
- function a(e) {
1266
- this.segmentLength = 0, this.points = Array(e);
1267
- }
1268
- function o(e, t) {
1269
- this.partialLength = e, this.point = t;
1270
- }
1271
- var s = function() {
1272
- var e = {};
1273
- return function(n, r, i, s) {
1274
- var c = (n[0] + "_" + n[1] + "_" + r[0] + "_" + r[1] + "_" + i[0] + "_" + i[1] + "_" + s[0] + "_" + s[1]).replace(/\./g, "p");
1275
- if (!e[c]) {
1276
- var l = pe(), u, d, f, p, m, g = 0, _, v, y = null;
1277
- n.length === 2 && (n[0] !== r[0] || n[1] !== r[1]) && t(n[0], n[1], r[0], r[1], n[0] + i[0], n[1] + i[1]) && t(n[0], n[1], r[0], r[1], r[0] + s[0], r[1] + s[1]) && (l = 2);
1278
- var b = new a(l);
1279
- for (f = i.length, u = 0; u < l; u += 1) {
1280
- for (v = h(f), m = u / (l - 1), _ = 0, d = 0; d < f; d += 1) p = C(1 - m, 3) * n[d] + 3 * C(1 - m, 2) * m * (n[d] + i[d]) + 3 * (1 - m) * C(m, 2) * (r[d] + s[d]) + C(m, 3) * r[d], v[d] = p, y !== null && (_ += C(v[d] - y[d], 2));
1281
- _ = w(_), g += _, b.points[u] = new o(_, v), y = v;
1282
- }
1283
- b.segmentLength = g, e[c] = b;
1284
- }
1285
- return e[c];
1286
- };
1287
- }();
1288
- function c(e, t) {
1289
- var n = t.percents, r = t.lengths, i = n.length, a = T((i - 1) * e), o = e * t.addedLength, s = 0;
1290
- if (a === i - 1 || a === 0 || o === r[a]) return n[a];
1291
- for (var c = r[a] > o ? -1 : 1, l = !0; l;) if (r[a] <= o && r[a + 1] > o ? (s = (o - r[a]) / (r[a + 1] - r[a]), l = !1) : a += c, a < 0 || a >= i - 1) {
1292
- if (a === i - 1) return n[a];
1293
- l = !1;
1294
- }
1295
- return n[a] + (n[a + 1] - n[a]) * s;
1296
- }
1297
- function l(t, n, r, i, a, o) {
1298
- var s = c(a, o), l = 1 - s, u = e.round((l * l * l * t[0] + (s * l * l + l * s * l + l * l * s) * r[0] + (s * s * l + l * s * s + s * l * s) * i[0] + s * s * s * n[0]) * 1e3) / 1e3, d = e.round((l * l * l * t[1] + (s * l * l + l * s * l + l * l * s) * r[1] + (s * s * l + l * s * s + s * l * s) * i[1] + s * s * s * n[1]) * 1e3) / 1e3;
1299
- return [u, d];
1300
- }
1301
- var u = m("float32", 8);
1302
- function d(t, n, r, i, a, o, s) {
1303
- a < 0 ? a = 0 : a > 1 && (a = 1);
1304
- var l = c(a, s);
1305
- o = o > 1 ? 1 : o;
1306
- var d = c(o, s), f, p = t.length, m = 1 - l, h = 1 - d, g = m * m * m, _ = l * m * m * 3, v = l * l * m * 3, y = l * l * l, b = m * m * h, x = l * m * h + m * l * h + m * m * d, S = l * l * h + m * l * d + l * m * d, C = l * l * d, w = m * h * h, T = l * h * h + m * d * h + m * h * d, E = l * d * h + m * d * d + l * h * d, D = l * d * d, O = h * h * h, k = d * h * h + h * d * h + h * h * d, A = d * d * h + h * d * d + d * h * d, j = d * d * d;
1307
- for (f = 0; f < p; f += 1) u[f * 4] = e.round((g * t[f] + _ * r[f] + v * i[f] + y * n[f]) * 1e3) / 1e3, u[f * 4 + 1] = e.round((b * t[f] + x * r[f] + S * i[f] + C * n[f]) * 1e3) / 1e3, u[f * 4 + 2] = e.round((w * t[f] + T * r[f] + E * i[f] + D * n[f]) * 1e3) / 1e3, u[f * 4 + 3] = e.round((O * t[f] + k * r[f] + A * i[f] + j * n[f]) * 1e3) / 1e3;
1308
- return u;
1309
- }
1310
- return {
1311
- getSegmentsLength: i,
1312
- getNewSegment: d,
1313
- getPointInSegment: l,
1314
- buildBezierData: s,
1315
- pointOnLine2D: t,
1316
- pointOnLine3D: n
1317
- };
1318
- }
1319
- var Ae = ke(), je = a, Me = Math.abs;
1320
- function Ne(e, t) {
1321
- var n = this.offsetTime, r;
1322
- this.propType === "multidimensional" && (r = m("float32", this.pv.length));
1323
- for (var i = t.lastIndex, a = i, o = this.keyframes.length - 1, s = !0, c, l, u; s;) {
1324
- if (c = this.keyframes[a], l = this.keyframes[a + 1], a === o - 1 && e >= l.t - n) {
1325
- c.h && (c = l), i = 0;
1326
- break;
1327
- }
1328
- if (l.t - n > e) {
1329
- i = a;
1330
- break;
1331
- }
1332
- a < o - 1 ? a += 1 : (i = 0, s = !1);
1333
- }
1334
- u = this.keyframesMetadata[a] || {};
1335
- var d, f, p, h, g, _, v = l.t - n, y = c.t - n, b;
1336
- if (c.to) {
1337
- u.bezierData ||= Ae.buildBezierData(c.s, l.s || c.e, c.to, c.ti);
1338
- var x = u.bezierData;
1339
- if (e >= v || e < y) {
1340
- var S = e >= v ? x.points.length - 1 : 0;
1341
- for (f = x.points[S].point.length, d = 0; d < f; d += 1) r[d] = x.points[S].point[d];
1342
- } else {
1343
- u.__fnct ? _ = u.__fnct : (_ = we.getBezierEasing(c.o.x, c.o.y, c.i.x, c.i.y, c.n).get, u.__fnct = _), p = _((e - y) / (v - y));
1344
- var C = x.segmentLength * p, w, T = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastAddedLength : 0;
1345
- for (g = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastPoint : 0, s = !0, h = x.points.length; s;) {
1346
- if (T += x.points[g].partialLength, C === 0 || p === 0 || g === x.points.length - 1) {
1347
- for (f = x.points[g].point.length, d = 0; d < f; d += 1) r[d] = x.points[g].point[d];
1348
- break;
1349
- } else if (C >= T && C < T + x.points[g + 1].partialLength) {
1350
- for (w = (C - T) / x.points[g + 1].partialLength, f = x.points[g].point.length, d = 0; d < f; d += 1) r[d] = x.points[g].point[d] + (x.points[g + 1].point[d] - x.points[g].point[d]) * w;
1351
- break;
1352
- }
1353
- g < h - 1 ? g += 1 : s = !1;
1354
- }
1355
- t._lastPoint = g, t._lastAddedLength = T - x.points[g].partialLength, t._lastKeyframeIndex = a;
1356
- }
1357
- } else {
1358
- var E, D, O, k, A;
1359
- if (o = c.s.length, b = l.s || c.e, this.sh && c.h !== 1) if (e >= v) r[0] = b[0], r[1] = b[1], r[2] = b[2];
1360
- else if (e <= y) r[0] = c.s[0], r[1] = c.s[1], r[2] = c.s[2];
1361
- else {
1362
- var j = Ie(c.s), M = Ie(b), N = (e - y) / (v - y);
1363
- Fe(r, Pe(j, M, N));
1364
- }
1365
- else for (a = 0; a < o; a += 1) c.h !== 1 && (e >= v ? p = 1 : e < y ? p = 0 : (c.o.x.constructor === Array ? (u.__fnct ||= [], u.__fnct[a] ? _ = u.__fnct[a] : (E = c.o.x[a] === void 0 ? c.o.x[0] : c.o.x[a], D = c.o.y[a] === void 0 ? c.o.y[0] : c.o.y[a], O = c.i.x[a] === void 0 ? c.i.x[0] : c.i.x[a], k = c.i.y[a] === void 0 ? c.i.y[0] : c.i.y[a], _ = we.getBezierEasing(E, D, O, k).get, u.__fnct[a] = _)) : u.__fnct ? _ = u.__fnct : (E = c.o.x, D = c.o.y, O = c.i.x, k = c.i.y, _ = we.getBezierEasing(E, D, O, k).get, c.keyframeMetadata = _), p = _((e - y) / (v - y)))), b = l.s || c.e, A = c.h === 1 ? c.s[a] : c.s[a] + (b[a] - c.s[a]) * p, this.propType === "multidimensional" ? r[a] = A : r = A;
1366
- }
1367
- return t.lastIndex = i, r;
1368
- }
1369
- function Pe(e, t, n) {
1370
- var r = [], i = e[0], a = e[1], o = e[2], s = e[3], c = t[0], l = t[1], u = t[2], d = t[3], f, p, m, h, g;
1371
- return p = i * c + a * l + o * u + s * d, p < 0 && (p = -p, c = -c, l = -l, u = -u, d = -d), 1 - p > 1e-6 ? (f = Math.acos(p), m = Math.sin(f), h = Math.sin((1 - n) * f) / m, g = Math.sin(n * f) / m) : (h = 1 - n, g = n), r[0] = h * i + g * c, r[1] = h * a + g * l, r[2] = h * o + g * u, r[3] = h * s + g * d, r;
1372
- }
1373
- function Fe(e, t) {
1374
- var n = t[0], r = t[1], i = t[2], a = t[3], o = Math.atan2(2 * r * a - 2 * n * i, 1 - 2 * r * r - 2 * i * i), s = Math.asin(2 * n * r + 2 * i * a), c = Math.atan2(2 * n * a - 2 * r * i, 1 - 2 * n * n - 2 * i * i);
1375
- e[0] = o / k, e[1] = s / k, e[2] = c / k;
1376
- }
1377
- function Ie(e) {
1378
- var t = e[0] * k, n = e[1] * k, r = e[2] * k, i = Math.cos(t / 2), a = Math.cos(n / 2), o = Math.cos(r / 2), s = Math.sin(t / 2), c = Math.sin(n / 2), l = Math.sin(r / 2), u = i * a * o - s * c * l, d = s * c * o + i * a * l, f = s * a * o + i * c * l, p = i * c * o - s * a * l;
1379
- return [
1380
- d,
1381
- f,
1382
- p,
1383
- u
1384
- ];
1385
- }
1386
- function Le() {
1387
- var e = this.comp.renderedFrame - this.offsetTime, t = this.keyframes[0].t - this.offsetTime, n = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
1388
- if (!(e === this._caching.lastFrame || this._caching.lastFrame !== je && (this._caching.lastFrame >= n && e >= n || this._caching.lastFrame < t && e < t))) {
1389
- this._caching.lastFrame >= e && (this._caching._lastKeyframeIndex = -1, this._caching.lastIndex = 0);
1390
- var r = this.interpolateValue(e, this._caching);
1391
- this.pv = r;
1392
- }
1393
- return this._caching.lastFrame = e, this.pv;
1394
- }
1395
- function Re(e) {
1396
- var t;
1397
- if (this.propType === "unidimensional") t = e * this.mult, Me(this.v - t) > 1e-5 && (this.v = t, this._mdf = !0);
1398
- else for (var n = 0, r = this.v.length; n < r;) t = e[n] * this.mult, Me(this.v[n] - t) > 1e-5 && (this.v[n] = t, this._mdf = !0), n += 1;
1399
- }
1400
- function ze() {
1401
- if (!(this.elem.globalData.frameId === this.frameId || !this.effectsSequence.length)) {
1402
- if (this.lock) {
1403
- this.setVValue(this.pv);
1404
- return;
1405
- }
1406
- this.lock = !0, this._mdf = this._isFirstFrame;
1407
- var e, t = this.effectsSequence.length, n = this.kf ? this.pv : this.data.k;
1408
- for (e = 0; e < t; e += 1) n = this.effectsSequence[e](n);
1409
- this.setVValue(n), this._isFirstFrame = !1, this.lock = !1, this.frameId = this.elem.globalData.frameId;
1410
- }
1411
- }
1412
- function Be(e) {
1413
- this.effectsSequence.push(e), this.container.addDynamicProperty(this);
1414
- }
1415
- function Ve(e, t, n, r) {
1416
- this.propType = "unidimensional", this.mult = n || 1, this.data = t, this.v = n ? t.k * n : t.k, this.pv = t.k, this._mdf = !1, this.elem = e, this.container = r, this.comp = e.comp, this.k = !1, this.kf = !1, this.vel = 0, this.effectsSequence = [], this._isFirstFrame = !0, this.getValue = ze, this.setVValue = Re, this.addEffect = Be;
1417
- }
1418
- function He(e, t, n, r) {
1419
- this.propType = "multidimensional", this.mult = n || 1, this.data = t, this._mdf = !1, this.elem = e, this.container = r, this.comp = e.comp, this.k = !1, this.kf = !1, this.frameId = -1;
1420
- var i, a = t.k.length;
1421
- for (this.v = m("float32", a), this.pv = m("float32", a), this.vel = m("float32", a), i = 0; i < a; i += 1) this.v[i] = t.k[i] * this.mult, this.pv[i] = t.k[i];
1422
- this._isFirstFrame = !0, this.effectsSequence = [], this.getValue = ze, this.setVValue = Re, this.addEffect = Be;
1423
- }
1424
- function Ue(e, t, n, r) {
1425
- this.propType = "unidimensional", this.keyframes = t.k, this.keyframesMetadata = [], this.offsetTime = e.data.st, this.frameId = -1, this._caching = {
1426
- lastFrame: je,
1427
- lastIndex: 0,
1428
- value: 0,
1429
- _lastKeyframeIndex: -1
1430
- }, this.k = !0, this.kf = !0, this.data = t, this.mult = n || 1, this.elem = e, this.container = r, this.comp = e.comp, this.v = je, this.pv = je, this._isFirstFrame = !0, this.getValue = ze, this.setVValue = Re, this.interpolateValue = Ne, this.effectsSequence = [Le.bind(this)], this.addEffect = Be;
1431
- }
1432
- function We(e, t, n, r) {
1433
- this.propType = "multidimensional";
1434
- var i, a = t.k.length, o, s, c, l;
1435
- for (i = 0; i < a - 1; i += 1) t.k[i].to && t.k[i].s && t.k[i + 1] && t.k[i + 1].s && (o = t.k[i].s, s = t.k[i + 1].s, c = t.k[i].to, l = t.k[i].ti, (o.length === 2 && !(o[0] === s[0] && o[1] === s[1]) && Ae.pointOnLine2D(o[0], o[1], s[0], s[1], o[0] + c[0], o[1] + c[1]) && Ae.pointOnLine2D(o[0], o[1], s[0], s[1], s[0] + l[0], s[1] + l[1]) || o.length === 3 && !(o[0] === s[0] && o[1] === s[1] && o[2] === s[2]) && Ae.pointOnLine3D(o[0], o[1], o[2], s[0], s[1], s[2], o[0] + c[0], o[1] + c[1], o[2] + c[2]) && Ae.pointOnLine3D(o[0], o[1], o[2], s[0], s[1], s[2], s[0] + l[0], s[1] + l[1], s[2] + l[2])) && (t.k[i].to = null, t.k[i].ti = null), o[0] === s[0] && o[1] === s[1] && c[0] === 0 && c[1] === 0 && l[0] === 0 && l[1] === 0 && (o.length === 2 || o[2] === s[2] && c[2] === 0 && l[2] === 0) && (t.k[i].to = null, t.k[i].ti = null));
1436
- this.effectsSequence = [Le.bind(this)], this.data = t, this.keyframes = t.k, this.keyframesMetadata = [], this.offsetTime = e.data.st, this.k = !0, this.kf = !0, this._isFirstFrame = !0, this.mult = n || 1, this.elem = e, this.container = r, this.comp = e.comp, this.getValue = ze, this.setVValue = Re, this.interpolateValue = Ne, this.frameId = -1;
1437
- var u = t.k[0].s.length;
1438
- for (this.v = m("float32", u), this.pv = m("float32", u), i = 0; i < u; i += 1) this.v[i] = je, this.pv[i] = je;
1439
- this._caching = {
1440
- lastFrame: je,
1441
- lastIndex: 0,
1442
- value: m("float32", u)
1443
- }, this.addEffect = Be;
1444
- }
1445
- var U = function() {
1446
- function e(e, t, n, r, i) {
1447
- t.sid && (t = e.globalData.slotManager.getProp(t));
1448
- var a;
1449
- if (!t.k.length) a = new Ve(e, t, r, i);
1450
- else if (typeof t.k[0] == "number") a = new He(e, t, r, i);
1451
- else switch (n) {
1452
- case 0:
1453
- a = new Ue(e, t, r, i);
1454
- break;
1455
- case 1:
1456
- a = new We(e, t, r, i);
1457
- break;
1458
- default: break;
1459
- }
1460
- return a.effectsSequence.length && i.addDynamicProperty(a), a;
1461
- }
1462
- var t = { getProp: e };
1463
- return t;
1464
- }();
1465
- function W() {}
1466
- W.prototype = {
1467
- addDynamicProperty: function(e) {
1468
- this.dynamicProperties.indexOf(e) === -1 && (this.dynamicProperties.push(e), this.container.addDynamicProperty(this), this._isAnimated = !0);
1469
- },
1470
- iterateDynamicProperties: function() {
1471
- this._mdf = !1;
1472
- var e, t = this.dynamicProperties.length;
1473
- for (e = 0; e < t; e += 1) this.dynamicProperties[e].getValue(), this.dynamicProperties[e]._mdf && (this._mdf = !0);
1474
- },
1475
- initDynamicPropertyContainer: function(e) {
1476
- this.container = e, this.dynamicProperties = [], this._mdf = !1, this._isAnimated = !1;
1477
- }
1478
- };
1479
- var Ge = function() {
1480
- function e() {
1481
- return m("float32", 2);
1482
- }
1483
- return Ee(8, e);
1484
- }();
1485
- function Ke() {
1486
- this.c = !1, this._length = 0, this._maxLength = 8, this.v = h(this._maxLength), this.o = h(this._maxLength), this.i = h(this._maxLength);
1487
- }
1488
- Ke.prototype.setPathData = function(e, t) {
1489
- this.c = e, this.setLength(t);
1490
- for (var n = 0; n < t;) this.v[n] = Ge.newElement(), this.o[n] = Ge.newElement(), this.i[n] = Ge.newElement(), n += 1;
1491
- }, Ke.prototype.setLength = function(e) {
1492
- for (; this._maxLength < e;) this.doubleArrayLength();
1493
- this._length = e;
1494
- }, Ke.prototype.doubleArrayLength = function() {
1495
- this.v = this.v.concat(h(this._maxLength)), this.i = this.i.concat(h(this._maxLength)), this.o = this.o.concat(h(this._maxLength)), this._maxLength *= 2;
1496
- }, Ke.prototype.setXYAt = function(e, t, n, r, i) {
1497
- var a;
1498
- switch (this._length = Math.max(this._length, r + 1), this._length >= this._maxLength && this.doubleArrayLength(), n) {
1499
- case "v":
1500
- a = this.v;
1501
- break;
1502
- case "i":
1503
- a = this.i;
1504
- break;
1505
- case "o":
1506
- a = this.o;
1507
- break;
1508
- default:
1509
- a = [];
1510
- break;
1511
- }
1512
- (!a[r] || a[r] && !i) && (a[r] = Ge.newElement()), a[r][0] = e, a[r][1] = t;
1513
- }, Ke.prototype.setTripleAt = function(e, t, n, r, i, a, o, s) {
1514
- this.setXYAt(e, t, "v", o, s), this.setXYAt(n, r, "o", o, s), this.setXYAt(i, a, "i", o, s);
1515
- }, Ke.prototype.reverse = function() {
1516
- var e = new Ke();
1517
- e.setPathData(this.c, this._length);
1518
- var t = this.v, n = this.o, r = this.i, i = 0;
1519
- this.c && (e.setTripleAt(t[0][0], t[0][1], r[0][0], r[0][1], n[0][0], n[0][1], 0, !1), i = 1);
1520
- var a = this._length - 1, o = this._length, s;
1521
- for (s = i; s < o; s += 1) e.setTripleAt(t[a][0], t[a][1], r[a][0], r[a][1], n[a][0], n[a][1], s, !1), --a;
1522
- return e;
1523
- }, Ke.prototype.length = function() {
1524
- return this._length;
1525
- };
1526
- var G = function() {
1527
- function e() {
1528
- return new Ke();
1529
- }
1530
- function t(e) {
1531
- var t = e._length, n;
1532
- for (n = 0; n < t; n += 1) Ge.release(e.v[n]), Ge.release(e.i[n]), Ge.release(e.o[n]), e.v[n] = null, e.i[n] = null, e.o[n] = null;
1533
- e._length = 0, e.c = !1;
1534
- }
1535
- function n(e) {
1536
- var t = r.newElement(), n, i = e._length === void 0 ? e.v.length : e._length;
1537
- for (t.setLength(i), t.c = e.c, n = 0; n < i; n += 1) t.setTripleAt(e.v[n][0], e.v[n][1], e.o[n][0], e.o[n][1], e.i[n][0], e.i[n][1], n);
1538
- return t;
1539
- }
1540
- var r = Ee(4, e, t);
1541
- return r.clone = n, r;
1542
- }();
1543
- function qe() {
1544
- this._length = 0, this._maxLength = 4, this.shapes = h(this._maxLength);
1545
- }
1546
- qe.prototype.addShape = function(e) {
1547
- this._length === this._maxLength && (this.shapes = this.shapes.concat(h(this._maxLength)), this._maxLength *= 2), this.shapes[this._length] = e, this._length += 1;
1548
- }, qe.prototype.releaseShapes = function() {
1549
- var e;
1550
- for (e = 0; e < this._length; e += 1) G.release(this.shapes[e]);
1551
- this._length = 0;
1552
- };
1553
- var Je = function() {
1554
- var e = {
1555
- newShapeCollection: i,
1556
- release: a
1557
- }, t = 0, n = 4, r = h(n);
1558
- function i() {
1559
- var e;
1560
- return t ? (--t, e = r[t]) : e = new qe(), e;
1561
- }
1562
- function a(e) {
1563
- var i, a = e._length;
1564
- for (i = 0; i < a; i += 1) G.release(e.shapes[i]);
1565
- e._length = 0, t === n && (r = Te.double(r), n *= 2), r[t] = e, t += 1;
1566
- }
1567
- return e;
1568
- }(), Ye = function() {
1569
- var e = -999999;
1570
- function t(e, t, n) {
1571
- var r = n.lastIndex, i, a, o, s, c, l, u, d, f, p = this.keyframes;
1572
- if (e < p[0].t - this.offsetTime) i = p[0].s[0], o = !0, r = 0;
1573
- else if (e >= p[p.length - 1].t - this.offsetTime) i = p[p.length - 1].s ? p[p.length - 1].s[0] : p[p.length - 2].e[0], o = !0;
1574
- else {
1575
- for (var m = r, h = p.length - 1, g = !0, _, v, y; g && (_ = p[m], v = p[m + 1], !(v.t - this.offsetTime > e));) m < h - 1 ? m += 1 : g = !1;
1576
- if (y = this.keyframesMetadata[m] || {}, o = _.h === 1, r = m, !o) {
1577
- if (e >= v.t - this.offsetTime) d = 1;
1578
- else if (e < _.t - this.offsetTime) d = 0;
1579
- else {
1580
- var b;
1581
- y.__fnct ? b = y.__fnct : (b = we.getBezierEasing(_.o.x, _.o.y, _.i.x, _.i.y).get, y.__fnct = b), d = b((e - (_.t - this.offsetTime)) / (v.t - this.offsetTime - (_.t - this.offsetTime)));
1582
- }
1583
- a = v.s ? v.s[0] : _.e[0];
1584
- }
1585
- i = _.s[0];
1586
- }
1587
- for (l = t._length, u = i.i[0].length, n.lastIndex = r, s = 0; s < l; s += 1) for (c = 0; c < u; c += 1) f = o ? i.i[s][c] : i.i[s][c] + (a.i[s][c] - i.i[s][c]) * d, t.i[s][c] = f, f = o ? i.o[s][c] : i.o[s][c] + (a.o[s][c] - i.o[s][c]) * d, t.o[s][c] = f, f = o ? i.v[s][c] : i.v[s][c] + (a.v[s][c] - i.v[s][c]) * d, t.v[s][c] = f;
1588
- }
1589
- function n() {
1590
- var t = this.comp.renderedFrame - this.offsetTime, n = this.keyframes[0].t - this.offsetTime, r = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, i = this._caching.lastFrame;
1591
- return i !== e && (i < n && t < n || i > r && t > r) || (this._caching.lastIndex = i < t ? this._caching.lastIndex : 0, this.interpolateShape(t, this.pv, this._caching)), this._caching.lastFrame = t, this.pv;
1592
- }
1593
- function r() {
1594
- this.paths = this.localShapeCollection;
1595
- }
1596
- function i(e, t) {
1597
- if (e._length !== t._length || e.c !== t.c) return !1;
1598
- var n, r = e._length;
1599
- for (n = 0; n < r; n += 1) if (e.v[n][0] !== t.v[n][0] || e.v[n][1] !== t.v[n][1] || e.o[n][0] !== t.o[n][0] || e.o[n][1] !== t.o[n][1] || e.i[n][0] !== t.i[n][0] || e.i[n][1] !== t.i[n][1]) return !1;
1600
- return !0;
1601
- }
1602
- function a(e) {
1603
- i(this.v, e) || (this.v = G.clone(e), this.localShapeCollection.releaseShapes(), this.localShapeCollection.addShape(this.v), this._mdf = !0, this.paths = this.localShapeCollection);
1604
- }
1605
- function o() {
1606
- if (this.elem.globalData.frameId !== this.frameId) {
1607
- if (!this.effectsSequence.length) {
1608
- this._mdf = !1;
1609
- return;
1610
- }
1611
- if (this.lock) {
1612
- this.setVValue(this.pv);
1613
- return;
1614
- }
1615
- this.lock = !0, this._mdf = !1;
1616
- var e;
1617
- e = this.kf ? this.pv : this.data.ks ? this.data.ks.k : this.data.pt.k;
1618
- var t, n = this.effectsSequence.length;
1619
- for (t = 0; t < n; t += 1) e = this.effectsSequence[t](e);
1620
- this.setVValue(e), this.lock = !1, this.frameId = this.elem.globalData.frameId;
1621
- }
1622
- }
1623
- function s(e, t, n) {
1624
- this.propType = "shape", this.comp = e.comp, this.container = e, this.elem = e, this.data = t, this.k = !1, this.kf = !1, this._mdf = !1;
1625
- var i = n === 3 ? t.pt.k : t.ks.k;
1626
- this.v = G.clone(i), this.pv = G.clone(this.v), this.localShapeCollection = Je.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.reset = r, this.effectsSequence = [];
1627
- }
1628
- function c(e) {
1629
- this.effectsSequence.push(e), this.container.addDynamicProperty(this);
1630
- }
1631
- s.prototype.interpolateShape = t, s.prototype.getValue = o, s.prototype.setVValue = a, s.prototype.addEffect = c;
1632
- function l(t, i, a) {
1633
- this.propType = "shape", this.comp = t.comp, this.elem = t, this.container = t, this.offsetTime = t.data.st, this.keyframes = a === 3 ? i.pt.k : i.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0;
1634
- var o = this.keyframes[0].s[0].i.length;
1635
- this.v = G.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, o), this.pv = G.clone(this.v), this.localShapeCollection = Je.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = e, this.reset = r, this._caching = {
1636
- lastFrame: e,
1637
- lastIndex: 0
1638
- }, this.effectsSequence = [n.bind(this)];
1639
- }
1640
- l.prototype.getValue = o, l.prototype.interpolateShape = t, l.prototype.setVValue = a, l.prototype.addEffect = c;
1641
- var u = function() {
1642
- var e = A;
1643
- function t(e, t) {
1644
- this.v = G.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = Je.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = t.d, this.elem = e, this.comp = e.comp, this.frameId = -1, this.initDynamicPropertyContainer(e), this.p = U.getProp(e, t.p, 1, 0, this), this.s = U.getProp(e, t.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath());
1645
- }
1646
- return t.prototype = {
1647
- reset: r,
1648
- getValue: function() {
1649
- this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
1650
- },
1651
- convertEllToPath: function() {
1652
- var t = this.p.v[0], n = this.p.v[1], r = this.s.v[0] / 2, i = this.s.v[1] / 2, a = this.d !== 3, o = this.v;
1653
- o.v[0][0] = t, o.v[0][1] = n - i, o.v[1][0] = a ? t + r : t - r, o.v[1][1] = n, o.v[2][0] = t, o.v[2][1] = n + i, o.v[3][0] = a ? t - r : t + r, o.v[3][1] = n, o.i[0][0] = a ? t - r * e : t + r * e, o.i[0][1] = n - i, o.i[1][0] = a ? t + r : t - r, o.i[1][1] = n - i * e, o.i[2][0] = a ? t + r * e : t - r * e, o.i[2][1] = n + i, o.i[3][0] = a ? t - r : t + r, o.i[3][1] = n + i * e, o.o[0][0] = a ? t + r * e : t - r * e, o.o[0][1] = n - i, o.o[1][0] = a ? t + r : t - r, o.o[1][1] = n + i * e, o.o[2][0] = a ? t - r * e : t + r * e, o.o[2][1] = n + i, o.o[3][0] = a ? t - r : t + r, o.o[3][1] = n - i * e;
1654
- }
1655
- }, d([W], t), t;
1656
- }(), f = function() {
1657
- function e(e, t) {
1658
- this.v = G.newElement(), this.v.setPathData(!0, 0), this.elem = e, this.comp = e.comp, this.data = t, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), t.sy === 1 ? (this.ir = U.getProp(e, t.ir, 0, 0, this), this.is = U.getProp(e, t.is, 0, .01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = U.getProp(e, t.pt, 0, 0, this), this.p = U.getProp(e, t.p, 1, 0, this), this.r = U.getProp(e, t.r, 0, k, this), this.or = U.getProp(e, t.or, 0, 0, this), this.os = U.getProp(e, t.os, 0, .01, this), this.localShapeCollection = Je.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath());
1659
- }
1660
- return e.prototype = {
1661
- reset: r,
1662
- getValue: function() {
1663
- this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
1664
- },
1665
- convertStarToPath: function() {
1666
- var e = Math.floor(this.pt.v) * 2, t = Math.PI * 2 / e, n = !0, r = this.or.v, i = this.ir.v, a = this.os.v, o = this.is.v, s = 2 * Math.PI * r / (e * 2), c = 2 * Math.PI * i / (e * 2), l, u, d, f, p = -Math.PI / 2;
1667
- p += this.r.v;
1668
- var m = this.data.d === 3 ? -1 : 1;
1669
- for (this.v._length = 0, l = 0; l < e; l += 1) {
1670
- u = n ? r : i, d = n ? a : o, f = n ? s : c;
1671
- var h = u * Math.cos(p), g = u * Math.sin(p), _ = h === 0 && g === 0 ? 0 : g / Math.sqrt(h * h + g * g), v = h === 0 && g === 0 ? 0 : -h / Math.sqrt(h * h + g * g);
1672
- h += +this.p.v[0], g += +this.p.v[1], this.v.setTripleAt(h, g, h - _ * f * d * m, g - v * f * d * m, h + _ * f * d * m, g + v * f * d * m, l, !0), n = !n, p += t * m;
1673
- }
1674
- },
1675
- convertPolygonToPath: function() {
1676
- var e = Math.floor(this.pt.v), t = Math.PI * 2 / e, n = this.or.v, r = this.os.v, i = 2 * Math.PI * n / (e * 4), a, o = -Math.PI * .5, s = this.data.d === 3 ? -1 : 1;
1677
- for (o += this.r.v, this.v._length = 0, a = 0; a < e; a += 1) {
1678
- var c = n * Math.cos(o), l = n * Math.sin(o), u = c === 0 && l === 0 ? 0 : l / Math.sqrt(c * c + l * l), d = c === 0 && l === 0 ? 0 : -c / Math.sqrt(c * c + l * l);
1679
- c += +this.p.v[0], l += +this.p.v[1], this.v.setTripleAt(c, l, c - u * i * r * s, l - d * i * r * s, c + u * i * r * s, l + d * i * r * s, a, !0), o += t * s;
1680
- }
1681
- this.paths.length = 0, this.paths[0] = this.v;
1682
- }
1683
- }, d([W], e), e;
1684
- }(), p = function() {
1685
- function e(e, t) {
1686
- this.v = G.newElement(), this.v.c = !0, this.localShapeCollection = Je.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = e, this.comp = e.comp, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), this.p = U.getProp(e, t.p, 1, 0, this), this.s = U.getProp(e, t.s, 1, 0, this), this.r = U.getProp(e, t.r, 0, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertRectToPath());
1687
- }
1688
- return e.prototype = {
1689
- convertRectToPath: function() {
1690
- var e = this.p.v[0], t = this.p.v[1], n = this.s.v[0] / 2, r = this.s.v[1] / 2, i = E(n, r, this.r.v), a = i * (1 - A);
1691
- this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(e + n, t - r + i, e + n, t - r + i, e + n, t - r + a, 0, !0), this.v.setTripleAt(e + n, t + r - i, e + n, t + r - a, e + n, t + r - i, 1, !0), i === 0 ? (this.v.setTripleAt(e - n, t + r, e - n + a, t + r, e - n, t + r, 2), this.v.setTripleAt(e - n, t - r, e - n, t - r + a, e - n, t - r, 3)) : (this.v.setTripleAt(e + n - i, t + r, e + n - i, t + r, e + n - a, t + r, 2, !0), this.v.setTripleAt(e - n + i, t + r, e - n + a, t + r, e - n + i, t + r, 3, !0), this.v.setTripleAt(e - n, t + r - i, e - n, t + r - i, e - n, t + r - a, 4, !0), this.v.setTripleAt(e - n, t - r + i, e - n, t - r + a, e - n, t - r + i, 5, !0), this.v.setTripleAt(e - n + i, t - r, e - n + i, t - r, e - n + a, t - r, 6, !0), this.v.setTripleAt(e + n - i, t - r, e + n - a, t - r, e + n - i, t - r, 7, !0))) : (this.v.setTripleAt(e + n, t - r + i, e + n, t - r + a, e + n, t - r + i, 0, !0), i === 0 ? (this.v.setTripleAt(e - n, t - r, e - n + a, t - r, e - n, t - r, 1, !0), this.v.setTripleAt(e - n, t + r, e - n, t + r - a, e - n, t + r, 2, !0), this.v.setTripleAt(e + n, t + r, e + n - a, t + r, e + n, t + r, 3, !0)) : (this.v.setTripleAt(e + n - i, t - r, e + n - i, t - r, e + n - a, t - r, 1, !0), this.v.setTripleAt(e - n + i, t - r, e - n + a, t - r, e - n + i, t - r, 2, !0), this.v.setTripleAt(e - n, t - r + i, e - n, t - r + i, e - n, t - r + a, 3, !0), this.v.setTripleAt(e - n, t + r - i, e - n, t + r - a, e - n, t + r - i, 4, !0), this.v.setTripleAt(e - n + i, t + r, e - n + i, t + r, e - n + a, t + r, 5, !0), this.v.setTripleAt(e + n - i, t + r, e + n - a, t + r, e + n - i, t + r, 6, !0), this.v.setTripleAt(e + n, t + r - i, e + n, t + r - i, e + n, t + r - a, 7, !0)));
1692
- },
1693
- getValue: function() {
1694
- this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
1695
- },
1696
- reset: r
1697
- }, d([W], e), e;
1698
- }();
1699
- function m(e, t, n) {
1700
- var r;
1701
- if (n === 3 || n === 4) {
1702
- var i = n === 3 ? t.pt : t.ks, a = i.k;
1703
- r = a.length ? new l(e, t, n) : new s(e, t, n);
1704
- } else n === 5 ? r = new p(e, t) : n === 6 ? r = new u(e, t) : n === 7 && (r = new f(e, t));
1705
- return r.k && e.addDynamicProperty(r), r;
1706
- }
1707
- function h() {
1708
- return s;
1709
- }
1710
- function g() {
1711
- return l;
1712
- }
1713
- var _ = {};
1714
- return _.getShapeProp = m, _.getConstructorFunction = h, _.getKeyframedConstructorFunction = g, _;
1715
- }(), K = function() {
1716
- var e = Math.cos, t = Math.sin, n = Math.tan, r = Math.round;
1717
- function i() {
1718
- return this.props[0] = 1, this.props[1] = 0, this.props[2] = 0, this.props[3] = 0, this.props[4] = 0, this.props[5] = 1, this.props[6] = 0, this.props[7] = 0, this.props[8] = 0, this.props[9] = 0, this.props[10] = 1, this.props[11] = 0, this.props[12] = 0, this.props[13] = 0, this.props[14] = 0, this.props[15] = 1, this;
1719
- }
1720
- function a(n) {
1721
- if (n === 0) return this;
1722
- var r = e(n), i = t(n);
1723
- return this._t(r, -i, 0, 0, i, r, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1724
- }
1725
- function o(n) {
1726
- if (n === 0) return this;
1727
- var r = e(n), i = t(n);
1728
- return this._t(1, 0, 0, 0, 0, r, -i, 0, 0, i, r, 0, 0, 0, 0, 1);
1729
- }
1730
- function s(n) {
1731
- if (n === 0) return this;
1732
- var r = e(n), i = t(n);
1733
- return this._t(r, 0, i, 0, 0, 1, 0, 0, -i, 0, r, 0, 0, 0, 0, 1);
1734
- }
1735
- function c(n) {
1736
- if (n === 0) return this;
1737
- var r = e(n), i = t(n);
1738
- return this._t(r, -i, 0, 0, i, r, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1739
- }
1740
- function l(e, t) {
1741
- return this._t(1, t, e, 1, 0, 0);
1742
- }
1743
- function u(e, t) {
1744
- return this.shear(n(e), n(t));
1745
- }
1746
- function d(r, i) {
1747
- var a = e(i), o = t(i);
1748
- return this._t(a, o, 0, 0, -o, a, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, n(r), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(a, -o, 0, 0, o, a, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1749
- }
1750
- function f(e, t, n) {
1751
- return !n && n !== 0 && (n = 1), e === 1 && t === 1 && n === 1 ? this : this._t(e, 0, 0, 0, 0, t, 0, 0, 0, 0, n, 0, 0, 0, 0, 1);
1752
- }
1753
- function p(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
1754
- return this.props[0] = e, this.props[1] = t, this.props[2] = n, this.props[3] = r, this.props[4] = i, this.props[5] = a, this.props[6] = o, this.props[7] = s, this.props[8] = c, this.props[9] = l, this.props[10] = u, this.props[11] = d, this.props[12] = f, this.props[13] = p, this.props[14] = m, this.props[15] = h, this;
1755
- }
1756
- function h(e, t, n) {
1757
- return n ||= 0, e !== 0 || t !== 0 || n !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, e, t, n, 1) : this;
1758
- }
1759
- function g(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
1760
- var g = this.props;
1761
- if (e === 1 && t === 0 && n === 0 && r === 0 && i === 0 && a === 1 && o === 0 && s === 0 && c === 0 && l === 0 && u === 1 && d === 0) return g[12] = g[12] * e + g[15] * f, g[13] = g[13] * a + g[15] * p, g[14] = g[14] * u + g[15] * m, g[15] *= h, this._identityCalculated = !1, this;
1762
- var _ = g[0], v = g[1], y = g[2], b = g[3], x = g[4], S = g[5], C = g[6], w = g[7], T = g[8], E = g[9], D = g[10], O = g[11], k = g[12], A = g[13], j = g[14], M = g[15];
1763
- return g[0] = _ * e + v * i + y * c + b * f, g[1] = _ * t + v * a + y * l + b * p, g[2] = _ * n + v * o + y * u + b * m, g[3] = _ * r + v * s + y * d + b * h, g[4] = x * e + S * i + C * c + w * f, g[5] = x * t + S * a + C * l + w * p, g[6] = x * n + S * o + C * u + w * m, g[7] = x * r + S * s + C * d + w * h, g[8] = T * e + E * i + D * c + O * f, g[9] = T * t + E * a + D * l + O * p, g[10] = T * n + E * o + D * u + O * m, g[11] = T * r + E * s + D * d + O * h, g[12] = k * e + A * i + j * c + M * f, g[13] = k * t + A * a + j * l + M * p, g[14] = k * n + A * o + j * u + M * m, g[15] = k * r + A * s + j * d + M * h, this._identityCalculated = !1, this;
1764
- }
1765
- function _(e) {
1766
- var t = e.props;
1767
- return this.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]);
1768
- }
1769
- function v() {
1770
- return this._identityCalculated || (this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1), this._identityCalculated = !0), this._identity;
1771
- }
1772
- function y(e) {
1773
- for (var t = 0; t < 16;) {
1774
- if (e.props[t] !== this.props[t]) return !1;
1775
- t += 1;
1776
- }
1777
- return !0;
1778
- }
1779
- function b(e) {
1780
- var t;
1781
- for (t = 0; t < 16; t += 1) e.props[t] = this.props[t];
1782
- return e;
1783
- }
1784
- function x(e) {
1785
- var t;
1786
- for (t = 0; t < 16; t += 1) this.props[t] = e[t];
1787
- }
1788
- function S(e, t, n) {
1789
- return {
1790
- x: e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12],
1791
- y: e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13],
1792
- z: e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14]
1793
- };
1794
- }
1795
- function C(e, t, n) {
1796
- return e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12];
1797
- }
1798
- function w(e, t, n) {
1799
- return e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13];
1800
- }
1801
- function T(e, t, n) {
1802
- return e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14];
1803
- }
1804
- function E() {
1805
- var e = this.props[0] * this.props[5] - this.props[1] * this.props[4], t = this.props[5] / e, n = -this.props[1] / e, r = -this.props[4] / e, i = this.props[0] / e, a = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / e, o = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / e, s = new K();
1806
- return s.props[0] = t, s.props[1] = n, s.props[4] = r, s.props[5] = i, s.props[12] = a, s.props[13] = o, s;
1807
- }
1808
- function D(e) {
1809
- var t = this.getInverseMatrix();
1810
- return t.applyToPointArray(e[0], e[1], e[2] || 0);
1811
- }
1812
- function O(e) {
1813
- var t, n = e.length, r = [];
1814
- for (t = 0; t < n; t += 1) r[t] = D(e[t]);
1815
- return r;
1816
- }
1817
- function k(e, t, n) {
1818
- var r = m("float32", 6);
1819
- if (this.isIdentity()) r[0] = e[0], r[1] = e[1], r[2] = t[0], r[3] = t[1], r[4] = n[0], r[5] = n[1];
1820
- else {
1821
- var i = this.props[0], a = this.props[1], o = this.props[4], s = this.props[5], c = this.props[12], l = this.props[13];
1822
- r[0] = e[0] * i + e[1] * o + c, r[1] = e[0] * a + e[1] * s + l, r[2] = t[0] * i + t[1] * o + c, r[3] = t[0] * a + t[1] * s + l, r[4] = n[0] * i + n[1] * o + c, r[5] = n[0] * a + n[1] * s + l;
1823
- }
1824
- return r;
1825
- }
1826
- function A(e, t, n) {
1827
- var r;
1828
- return r = this.isIdentity() ? [
1829
- e,
1830
- t,
1831
- n
1832
- ] : [
1833
- e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12],
1834
- e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13],
1835
- e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14]
1836
- ], r;
1837
- }
1838
- function j(e, t) {
1839
- if (this.isIdentity()) return e + "," + t;
1840
- var n = this.props;
1841
- return Math.round((e * n[0] + t * n[4] + n[12]) * 100) / 100 + "," + Math.round((e * n[1] + t * n[5] + n[13]) * 100) / 100;
1842
- }
1843
- function M() {
1844
- for (var e = 0, t = this.props, n = "matrix3d(", i = 1e4; e < 16;) n += r(t[e] * i) / i, n += e === 15 ? ")" : ",", e += 1;
1845
- return n;
1846
- }
1847
- function N(e) {
1848
- var t = 1e4;
1849
- return e < 1e-6 && e > 0 || e > -1e-6 && e < 0 ? r(e * t) / t : e;
1850
- }
1851
- function P() {
1852
- var e = this.props, t = N(e[0]), n = N(e[1]), r = N(e[4]), i = N(e[5]), a = N(e[12]), o = N(e[13]);
1853
- return "matrix(" + t + "," + n + "," + r + "," + i + "," + a + "," + o + ")";
1854
- }
1855
- return function() {
1856
- this.reset = i, this.rotate = a, this.rotateX = o, this.rotateY = s, this.rotateZ = c, this.skew = u, this.skewFromAxis = d, this.shear = l, this.scale = f, this.setTransform = p, this.translate = h, this.transform = g, this.multiply = _, this.applyToPoint = S, this.applyToX = C, this.applyToY = w, this.applyToZ = T, this.applyToPointArray = A, this.applyToTriplePoints = k, this.applyToPointStringified = j, this.toCSS = M, this.to2dCSS = P, this.clone = b, this.cloneFromProps = x, this.equals = y, this.inversePoints = O, this.inversePoint = D, this.getInverseMatrix = E, this._t = this.transform, this.isIdentity = v, this._identity = !0, this._identityCalculated = !1, this.props = m("float32", 16), this.reset();
1857
- };
1858
- }();
1859
- function Xe(e) {
1860
- "@babel/helpers - typeof";
1861
- return Xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1862
- return typeof e;
1863
- } : function(e) {
1864
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1865
- }, Xe(e);
1866
- }
1867
- var q = {}, Ze = "__[STANDALONE]__", Qe = "__[ANIMATIONDATA]__", $e = "";
1868
- function et(e) {
1869
- c(e);
1870
- }
1871
- function tt() {
1872
- Ze === !0 ? H.searchAnimations(Qe, Ze, $e) : H.searchAnimations();
1873
- }
1874
- function nt(e) {
1875
- se(e);
1876
- }
1877
- function rt(e) {
1878
- R(e);
1879
- }
1880
- function it(e) {
1881
- return Ze === !0 && (e.animationData = JSON.parse(Qe)), H.loadAnimation(e);
1882
- }
1883
- function at(e) {
1884
- if (typeof e == "string") switch (e) {
1885
- case "high":
1886
- fe(200);
1887
- break;
1888
- default:
1889
- case "medium":
1890
- fe(50);
1891
- break;
1892
- case "low":
1893
- fe(10);
1894
- break;
1895
- }
1896
- else !isNaN(e) && e > 1 && fe(e);
1897
- pe() >= 50 ? j(!1) : j(!0);
1898
- }
1899
- function ot() {
1900
- return typeof navigator < "u";
1901
- }
1902
- function st(e, t) {
1903
- e === "expressions" && le(t);
1904
- }
1905
- function ct(e) {
1906
- switch (e) {
1907
- case "propertyFactory": return U;
1908
- case "shapePropertyFactory": return Ye;
1909
- case "matrix": return K;
1910
- default: return null;
1911
- }
1912
- }
1913
- q.play = H.play, q.pause = H.pause, q.setLocationHref = et, q.togglePause = H.togglePause, q.setSpeed = H.setSpeed, q.setDirection = H.setDirection, q.stop = H.stop, q.searchAnimations = tt, q.registerAnimation = H.registerAnimation, q.loadAnimation = it, q.setSubframeRendering = nt, q.resize = H.resize, q.goToAndStop = H.goToAndStop, q.destroy = H.destroy, q.setQuality = at, q.inBrowser = ot, q.installPlugin = st, q.freeze = H.freeze, q.unfreeze = H.unfreeze, q.setVolume = H.setVolume, q.mute = H.mute, q.unmute = H.unmute, q.getRegisteredAnimations = H.getRegisteredAnimations, q.useWebWorker = o, q.setIDPrefix = rt, q.__getFactory = ct, q.version = "5.13.0";
1914
- function lt() {
1915
- document.readyState === "complete" && (clearInterval(ht), tt());
1916
- }
1917
- function ut(e) {
1918
- for (var t = dt.split("&"), n = 0; n < t.length; n += 1) {
1919
- var r = t[n].split("=");
1920
- if (decodeURIComponent(r[0]) == e) return decodeURIComponent(r[1]);
1921
- }
1922
- return null;
1923
- }
1924
- var dt = "";
1925
- if (Ze) {
1926
- var ft = document.getElementsByTagName("script"), pt = ft.length - 1, mt = ft[pt] || { src: "" };
1927
- dt = mt.src ? mt.src.replace(/^[^\?]+\??/, "") : "", $e = ut("renderer");
1928
- }
1929
- var ht = setInterval(lt, 100);
1930
- try {
1931
- !((exports === void 0 ? "undefined" : Xe(exports)) === "object" && t !== void 0) && !(typeof define == "function" && define.amd) && (window.bodymovin = q);
1932
- } catch {}
1933
- var gt = function() {
1934
- var e = {}, t = {};
1935
- e.registerModifier = n, e.getModifier = r;
1936
- function n(e, n) {
1937
- t[e] || (t[e] = n);
1938
- }
1939
- function r(e, n, r) {
1940
- return new t[e](n, r);
1941
- }
1942
- return e;
1943
- }();
1944
- function _t() {}
1945
- _t.prototype.initModifierProperties = function() {}, _t.prototype.addShapeToModifier = function() {}, _t.prototype.addShape = function(e) {
1946
- if (!this.closed) {
1947
- e.sh.container.addDynamicProperty(e.sh);
1948
- var t = {
1949
- shape: e.sh,
1950
- data: e,
1951
- localShapeCollection: Je.newShapeCollection()
1952
- };
1953
- this.shapes.push(t), this.addShapeToModifier(t), this._isAnimated && e.setAsAnimated();
1954
- }
1955
- }, _t.prototype.init = function(e, t) {
1956
- this.shapes = [], this.elem = e, this.initDynamicPropertyContainer(e), this.initModifierProperties(e, t), this.frameId = a, this.closed = !1, this.k = !1, this.dynamicProperties.length ? this.k = !0 : this.getValue(!0);
1957
- }, _t.prototype.processKeys = function() {
1958
- this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties());
1959
- }, d([W], _t);
1960
- function vt() {}
1961
- d([_t], vt), vt.prototype.initModifierProperties = function(e, t) {
1962
- this.s = U.getProp(e, t.s, 0, .01, this), this.e = U.getProp(e, t.e, 0, .01, this), this.o = U.getProp(e, t.o, 0, 0, this), this.sValue = 0, this.eValue = 0, this.getValue = this.processKeys, this.m = t.m, this._isAnimated = !!this.s.effectsSequence.length || !!this.e.effectsSequence.length || !!this.o.effectsSequence.length;
1963
- }, vt.prototype.addShapeToModifier = function(e) {
1964
- e.pathsData = [];
1965
- }, vt.prototype.calculateShapeEdges = function(e, t, n, r, i) {
1966
- var a = [];
1967
- t <= 1 ? a.push({
1968
- s: e,
1969
- e: t
1970
- }) : e >= 1 ? a.push({
1971
- s: e - 1,
1972
- e: t - 1
1973
- }) : (a.push({
1974
- s: e,
1975
- e: 1
1976
- }), a.push({
1977
- s: 0,
1978
- e: t - 1
1979
- }));
1980
- var o = [], s, c = a.length, l;
1981
- for (s = 0; s < c; s += 1) if (l = a[s], !(l.e * i < r || l.s * i > r + n)) {
1982
- var u, d;
1983
- u = l.s * i <= r ? 0 : (l.s * i - r) / n, d = l.e * i >= r + n ? 1 : (l.e * i - r) / n, o.push([u, d]);
1984
- }
1985
- return o.length || o.push([0, 0]), o;
1986
- }, vt.prototype.releasePathsData = function(e) {
1987
- var t, n = e.length;
1988
- for (t = 0; t < n; t += 1) Oe.release(e[t]);
1989
- return e.length = 0, e;
1990
- }, vt.prototype.processShapes = function(e) {
1991
- var t, n;
1992
- if (this._mdf || e) {
1993
- var r = this.o.v % 360 / 360;
1994
- if (r < 0 && (r += 1), t = this.s.v > 1 ? 1 + r : this.s.v < 0 ? 0 + r : this.s.v + r, n = this.e.v > 1 ? 1 + r : this.e.v < 0 ? 0 + r : this.e.v + r, t > n) {
1995
- var i = t;
1996
- t = n, n = i;
1997
- }
1998
- t = Math.round(t * 1e4) * 1e-4, n = Math.round(n * 1e4) * 1e-4, this.sValue = t, this.eValue = n;
1999
- } else t = this.sValue, n = this.eValue;
2000
- var a, o, s = this.shapes.length, c, l, u, d, f, p = 0;
2001
- if (n === t) for (o = 0; o < s; o += 1) this.shapes[o].localShapeCollection.releaseShapes(), this.shapes[o].shape._mdf = !0, this.shapes[o].shape.paths = this.shapes[o].localShapeCollection, this._mdf && (this.shapes[o].pathsData.length = 0);
2002
- else if (n === 1 && t === 0 || n === 0 && t === 1) {
2003
- if (this._mdf) for (o = 0; o < s; o += 1) this.shapes[o].pathsData.length = 0, this.shapes[o].shape._mdf = !0;
2004
- } else {
2005
- var m = [], h, g;
2006
- for (o = 0; o < s; o += 1) if (h = this.shapes[o], !h.shape._mdf && !this._mdf && !e && this.m !== 2) h.shape.paths = h.localShapeCollection;
2007
- else {
2008
- if (a = h.shape.paths, l = a._length, f = 0, !h.shape._mdf && h.pathsData.length) f = h.totalShapeLength;
2009
- else {
2010
- for (u = this.releasePathsData(h.pathsData), c = 0; c < l; c += 1) d = Ae.getSegmentsLength(a.shapes[c]), u.push(d), f += d.totalLength;
2011
- h.totalShapeLength = f, h.pathsData = u;
2012
- }
2013
- p += f, h.shape._mdf = !0;
2014
- }
2015
- var _ = t, v = n, y = 0, b;
2016
- for (o = s - 1; o >= 0; --o) if (h = this.shapes[o], h.shape._mdf) {
2017
- for (g = h.localShapeCollection, g.releaseShapes(), this.m === 2 && s > 1 ? (b = this.calculateShapeEdges(t, n, h.totalShapeLength, y, p), y += h.totalShapeLength) : b = [[_, v]], l = b.length, c = 0; c < l; c += 1) {
2018
- _ = b[c][0], v = b[c][1], m.length = 0, v <= 1 ? m.push({
2019
- s: h.totalShapeLength * _,
2020
- e: h.totalShapeLength * v
2021
- }) : _ >= 1 ? m.push({
2022
- s: h.totalShapeLength * (_ - 1),
2023
- e: h.totalShapeLength * (v - 1)
2024
- }) : (m.push({
2025
- s: h.totalShapeLength * _,
2026
- e: h.totalShapeLength
2027
- }), m.push({
2028
- s: 0,
2029
- e: h.totalShapeLength * (v - 1)
2030
- }));
2031
- var x = this.addShapes(h, m[0]);
2032
- if (m[0].s !== m[0].e) {
2033
- if (m.length > 1) {
2034
- var S = h.shape.paths.shapes[h.shape.paths._length - 1];
2035
- if (S.c) {
2036
- var C = x.pop();
2037
- this.addPaths(x, g), x = this.addShapes(h, m[1], C);
2038
- } else this.addPaths(x, g), x = this.addShapes(h, m[1]);
2039
- }
2040
- this.addPaths(x, g);
2041
- }
2042
- }
2043
- h.shape.paths = g;
2044
- }
2045
- }
2046
- }, vt.prototype.addPaths = function(e, t) {
2047
- var n, r = e.length;
2048
- for (n = 0; n < r; n += 1) t.addShape(e[n]);
2049
- }, vt.prototype.addSegment = function(e, t, n, r, i, a, o) {
2050
- i.setXYAt(t[0], t[1], "o", a), i.setXYAt(n[0], n[1], "i", a + 1), o && i.setXYAt(e[0], e[1], "v", a), i.setXYAt(r[0], r[1], "v", a + 1);
2051
- }, vt.prototype.addSegmentFromArray = function(e, t, n, r) {
2052
- t.setXYAt(e[1], e[5], "o", n), t.setXYAt(e[2], e[6], "i", n + 1), r && t.setXYAt(e[0], e[4], "v", n), t.setXYAt(e[3], e[7], "v", n + 1);
2053
- }, vt.prototype.addShapes = function(e, t, n) {
2054
- var r = e.pathsData, i = e.shape.paths.shapes, a, o = e.shape.paths._length, s, c, l = 0, u, d, f, p, m = [], h, g = !0;
2055
- for (n ? (d = n._length, h = n._length) : (n = G.newElement(), d = 0, h = 0), m.push(n), a = 0; a < o; a += 1) {
2056
- for (f = r[a].lengths, n.c = i[a].c, c = i[a].c ? f.length : f.length + 1, s = 1; s < c; s += 1) if (u = f[s - 1], l + u.addedLength < t.s) l += u.addedLength, n.c = !1;
2057
- else if (l > t.e) {
2058
- n.c = !1;
2059
- break;
2060
- } else t.s <= l && t.e >= l + u.addedLength ? (this.addSegment(i[a].v[s - 1], i[a].o[s - 1], i[a].i[s], i[a].v[s], n, d, g), g = !1) : (p = Ae.getNewSegment(i[a].v[s - 1], i[a].v[s], i[a].o[s - 1], i[a].i[s], (t.s - l) / u.addedLength, (t.e - l) / u.addedLength, f[s - 1]), this.addSegmentFromArray(p, n, d, g), g = !1, n.c = !1), l += u.addedLength, d += 1;
2061
- if (i[a].c && f.length) {
2062
- if (u = f[s - 1], l <= t.e) {
2063
- var _ = f[s - 1].addedLength;
2064
- t.s <= l && t.e >= l + _ ? (this.addSegment(i[a].v[s - 1], i[a].o[s - 1], i[a].i[0], i[a].v[0], n, d, g), g = !1) : (p = Ae.getNewSegment(i[a].v[s - 1], i[a].v[0], i[a].o[s - 1], i[a].i[0], (t.s - l) / _, (t.e - l) / _, f[s - 1]), this.addSegmentFromArray(p, n, d, g), g = !1, n.c = !1);
2065
- } else n.c = !1;
2066
- l += u.addedLength, d += 1;
2067
- }
2068
- if (n._length && (n.setXYAt(n.v[h][0], n.v[h][1], "i", h), n.setXYAt(n.v[n._length - 1][0], n.v[n._length - 1][1], "o", n._length - 1)), l > t.e) break;
2069
- a < o - 1 && (n = G.newElement(), g = !0, m.push(n), d = 0);
2070
- }
2071
- return m;
2072
- };
2073
- function yt() {}
2074
- d([_t], yt), yt.prototype.initModifierProperties = function(e, t) {
2075
- this.getValue = this.processKeys, this.amount = U.getProp(e, t.a, 0, null, this), this._isAnimated = !!this.amount.effectsSequence.length;
2076
- }, yt.prototype.processPath = function(e, t) {
2077
- var n = t / 100, r = [0, 0], i = e._length, a = 0;
2078
- for (a = 0; a < i; a += 1) r[0] += e.v[a][0], r[1] += e.v[a][1];
2079
- r[0] /= i, r[1] /= i;
2080
- var o = G.newElement();
2081
- o.c = e.c;
2082
- var s, c, l, u, d, f;
2083
- for (a = 0; a < i; a += 1) s = e.v[a][0] + (r[0] - e.v[a][0]) * n, c = e.v[a][1] + (r[1] - e.v[a][1]) * n, l = e.o[a][0] + (r[0] - e.o[a][0]) * -n, u = e.o[a][1] + (r[1] - e.o[a][1]) * -n, d = e.i[a][0] + (r[0] - e.i[a][0]) * -n, f = e.i[a][1] + (r[1] - e.i[a][1]) * -n, o.setTripleAt(s, c, l, u, d, f, a);
2084
- return o;
2085
- }, yt.prototype.processShapes = function(e) {
2086
- var t, n, r = this.shapes.length, i, a, o = this.amount.v;
2087
- if (o !== 0) {
2088
- var s, c;
2089
- for (n = 0; n < r; n += 1) {
2090
- if (s = this.shapes[n], c = s.localShapeCollection, !(!s.shape._mdf && !this._mdf && !e)) for (c.releaseShapes(), s.shape._mdf = !0, t = s.shape.paths.shapes, a = s.shape.paths._length, i = 0; i < a; i += 1) c.addShape(this.processPath(t[i], o));
2091
- s.shape.paths = s.localShapeCollection;
2092
- }
2093
- }
2094
- this.dynamicProperties.length || (this._mdf = !1);
2095
- };
2096
- var bt = function() {
2097
- var e = [0, 0];
2098
- function t(e) {
2099
- var t = this._mdf;
2100
- this.iterateDynamicProperties(), this._mdf = this._mdf || t, this.a && e.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.s && e.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && e.skewFromAxis(-this.sk.v, this.sa.v), this.r ? e.rotate(-this.r.v) : e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.data.p.s ? this.data.p.z ? e.translate(this.px.v, this.py.v, -this.pz.v) : e.translate(this.px.v, this.py.v, 0) : e.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
2101
- }
2102
- function n(t) {
2103
- if (this.elem.globalData.frameId !== this.frameId) {
2104
- if (this._isDirty && (this.precalculateMatrix(), this._isDirty = !1), this.iterateDynamicProperties(), this._mdf || t) {
2105
- var n;
2106
- if (this.v.cloneFromProps(this.pre.props), this.appliedTransformations < 1 && this.v.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations < 2 && this.v.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && this.appliedTransformations < 3 && this.v.skewFromAxis(-this.sk.v, this.sa.v), this.r && this.appliedTransformations < 4 ? this.v.rotate(-this.r.v) : !this.r && this.appliedTransformations < 4 && this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.autoOriented) {
2107
- var r, i;
2108
- if (n = this.elem.globalData.frameRate, this.p && this.p.keyframes && this.p.getValueAtTime) this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (r = this.p.getValueAtTime((this.p.keyframes[0].t + .01) / n, 0), i = this.p.getValueAtTime(this.p.keyframes[0].t / n, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (r = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / n, 0), i = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - .05) / n, 0)) : (r = this.p.pv, i = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - .01) / n, this.p.offsetTime));
2109
- else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
2110
- r = [], i = [];
2111
- var a = this.px, o = this.py;
2112
- a._caching.lastFrame + a.offsetTime <= a.keyframes[0].t ? (r[0] = a.getValueAtTime((a.keyframes[0].t + .01) / n, 0), r[1] = o.getValueAtTime((o.keyframes[0].t + .01) / n, 0), i[0] = a.getValueAtTime(a.keyframes[0].t / n, 0), i[1] = o.getValueAtTime(o.keyframes[0].t / n, 0)) : a._caching.lastFrame + a.offsetTime >= a.keyframes[a.keyframes.length - 1].t ? (r[0] = a.getValueAtTime(a.keyframes[a.keyframes.length - 1].t / n, 0), r[1] = o.getValueAtTime(o.keyframes[o.keyframes.length - 1].t / n, 0), i[0] = a.getValueAtTime((a.keyframes[a.keyframes.length - 1].t - .01) / n, 0), i[1] = o.getValueAtTime((o.keyframes[o.keyframes.length - 1].t - .01) / n, 0)) : (r = [a.pv, o.pv], i[0] = a.getValueAtTime((a._caching.lastFrame + a.offsetTime - .01) / n, a.offsetTime), i[1] = o.getValueAtTime((o._caching.lastFrame + o.offsetTime - .01) / n, o.offsetTime));
2113
- } else i = e, r = i;
2114
- this.v.rotate(-Math.atan2(r[1] - i[1], r[0] - i[0]));
2115
- }
2116
- 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]);
2117
- }
2118
- this.frameId = this.elem.globalData.frameId;
2119
- }
2120
- }
2121
- function r() {
2122
- 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;
2123
- else return;
2124
- if (!this.s.effectsSequence.length) this.pre.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.appliedTransformations = 2;
2125
- else return;
2126
- if (this.sk) if (!this.sk.effectsSequence.length && !this.sa.effectsSequence.length) this.pre.skewFromAxis(-this.sk.v, this.sa.v), this.appliedTransformations = 3;
2127
- else return;
2128
- 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);
2129
- }
2130
- function i() {}
2131
- function a(e) {
2132
- this._addDynamicProperty(e), this.elem.addDynamicProperty(e), this._isDirty = !0;
2133
- }
2134
- function o(e, t, n) {
2135
- if (this.elem = e, this.frameId = -1, this.propType = "transform", this.data = t, this.v = new K(), this.pre = new K(), this.appliedTransformations = 0, this.initDynamicPropertyContainer(n || e), t.p && t.p.s ? (this.px = U.getProp(e, t.p.x, 0, 0, this), this.py = U.getProp(e, t.p.y, 0, 0, this), t.p.z && (this.pz = U.getProp(e, t.p.z, 0, 0, this))) : this.p = U.getProp(e, t.p || { k: [
2136
- 0,
2137
- 0,
2138
- 0
2139
- ] }, 1, 0, this), t.rx) {
2140
- if (this.rx = U.getProp(e, t.rx, 0, k, this), this.ry = U.getProp(e, t.ry, 0, k, this), this.rz = U.getProp(e, t.rz, 0, k, this), t.or.k[0].ti) {
2141
- var r, i = t.or.k.length;
2142
- for (r = 0; r < i; r += 1) t.or.k[r].to = null, t.or.k[r].ti = null;
2143
- }
2144
- this.or = U.getProp(e, t.or, 1, k, this), this.or.sh = !0;
2145
- } else this.r = U.getProp(e, t.r || { k: 0 }, 0, k, this);
2146
- t.sk && (this.sk = U.getProp(e, t.sk, 0, k, this), this.sa = U.getProp(e, t.sa, 0, k, this)), this.a = U.getProp(e, t.a || { k: [
2147
- 0,
2148
- 0,
2149
- 0
2150
- ] }, 1, 0, this), this.s = U.getProp(e, t.s || { k: [
2151
- 100,
2152
- 100,
2153
- 100
2154
- ] }, 1, .01, this), t.o ? this.o = U.getProp(e, t.o, 0, .01, e) : this.o = {
2155
- _mdf: !1,
2156
- v: 1
2157
- }, this._isDirty = !0, this.dynamicProperties.length || this.getValue(!0);
2158
- }
2159
- o.prototype = {
2160
- applyToMatrix: t,
2161
- getValue: n,
2162
- precalculateMatrix: r,
2163
- autoOrient: i
2164
- }, d([W], o), o.prototype.addDynamicProperty = a, o.prototype._addDynamicProperty = W.prototype.addDynamicProperty;
2165
- function s(e, t, n) {
2166
- return new o(e, t, n);
2167
- }
2168
- return { getTransformProperty: s };
2169
- }();
2170
- function xt() {}
2171
- d([_t], xt), xt.prototype.initModifierProperties = function(e, t) {
2172
- this.getValue = this.processKeys, this.c = U.getProp(e, t.c, 0, null, this), this.o = U.getProp(e, t.o, 0, null, this), this.tr = bt.getTransformProperty(e, t.tr, this), this.so = U.getProp(e, t.tr.so, 0, .01, this), this.eo = U.getProp(e, t.tr.eo, 0, .01, this), this.data = t, this.dynamicProperties.length || this.getValue(!0), this._isAnimated = !!this.dynamicProperties.length, this.pMatrix = new K(), this.rMatrix = new K(), this.sMatrix = new K(), this.tMatrix = new K(), this.matrix = new K();
2173
- }, xt.prototype.applyTransforms = function(e, t, n, r, i, a) {
2174
- var o = a ? -1 : 1, s = r.s.v[0] + (1 - r.s.v[0]) * (1 - i), c = r.s.v[1] + (1 - r.s.v[1]) * (1 - i);
2175
- e.translate(r.p.v[0] * o * i, r.p.v[1] * o * i, r.p.v[2]), t.translate(-r.a.v[0], -r.a.v[1], r.a.v[2]), t.rotate(-r.r.v * o * i), t.translate(r.a.v[0], r.a.v[1], r.a.v[2]), n.translate(-r.a.v[0], -r.a.v[1], r.a.v[2]), n.scale(a ? 1 / s : s, a ? 1 / c : c), n.translate(r.a.v[0], r.a.v[1], r.a.v[2]);
2176
- }, xt.prototype.init = function(e, t, n, r) {
2177
- for (this.elem = e, this.arr = t, this.pos = n, this.elemsData = r, this._currentCopies = 0, this._elements = [], this._groups = [], this.frameId = -1, this.initDynamicPropertyContainer(e), this.initModifierProperties(e, t[n]); n > 0;) --n, this._elements.unshift(t[n]);
2178
- this.dynamicProperties.length ? this.k = !0 : this.getValue(!0);
2179
- }, xt.prototype.resetElements = function(e) {
2180
- var t, n = e.length;
2181
- for (t = 0; t < n; t += 1) e[t]._processed = !1, e[t].ty === "gr" && this.resetElements(e[t].it);
2182
- }, xt.prototype.cloneElements = function(e) {
2183
- var t = JSON.parse(JSON.stringify(e));
2184
- return this.resetElements(t), t;
2185
- }, xt.prototype.changeGroupRender = function(e, t) {
2186
- var n, r = e.length;
2187
- for (n = 0; n < r; n += 1) e[n]._render = t, e[n].ty === "gr" && this.changeGroupRender(e[n].it, t);
2188
- }, xt.prototype.processShapes = function(e) {
2189
- var t, n, r, i, a, o = !1;
2190
- if (this._mdf || e) {
2191
- var s = Math.ceil(this.c.v);
2192
- if (this._groups.length < s) {
2193
- for (; this._groups.length < s;) {
2194
- var c = {
2195
- it: this.cloneElements(this._elements),
2196
- ty: "gr"
2197
- };
2198
- c.it.push({
2199
- a: {
2200
- a: 0,
2201
- ix: 1,
2202
- k: [0, 0]
2203
- },
2204
- nm: "Transform",
2205
- o: {
2206
- a: 0,
2207
- ix: 7,
2208
- k: 100
2209
- },
2210
- p: {
2211
- a: 0,
2212
- ix: 2,
2213
- k: [0, 0]
2214
- },
2215
- r: {
2216
- a: 1,
2217
- ix: 6,
2218
- k: [{
2219
- s: 0,
2220
- e: 0,
2221
- t: 0
2222
- }, {
2223
- s: 0,
2224
- e: 0,
2225
- t: 1
2226
- }]
2227
- },
2228
- s: {
2229
- a: 0,
2230
- ix: 3,
2231
- k: [100, 100]
2232
- },
2233
- sa: {
2234
- a: 0,
2235
- ix: 5,
2236
- k: 0
2237
- },
2238
- sk: {
2239
- a: 0,
2240
- ix: 4,
2241
- k: 0
2242
- },
2243
- ty: "tr"
2244
- }), this.arr.splice(0, 0, c), this._groups.splice(0, 0, c), this._currentCopies += 1;
2245
- }
2246
- this.elem.reloadShapes(), o = !0;
2247
- }
2248
- a = 0;
2249
- var l;
2250
- for (r = 0; r <= this._groups.length - 1; r += 1) {
2251
- if (l = a < s, this._groups[r]._render = l, this.changeGroupRender(this._groups[r].it, l), !l) {
2252
- var u = this.elemsData[r].it, d = u[u.length - 1];
2253
- d.transform.op.v === 0 ? d.transform.op._mdf = !1 : (d.transform.op._mdf = !0, d.transform.op.v = 0);
2254
- }
2255
- a += 1;
2256
- }
2257
- this._currentCopies = s;
2258
- var f = this.o.v, p = f % 1, m = f > 0 ? Math.floor(f) : Math.ceil(f), h = this.pMatrix.props, g = this.rMatrix.props, _ = this.sMatrix.props;
2259
- this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
2260
- var v = 0;
2261
- if (f > 0) {
2262
- for (; v < m;) this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), v += 1;
2263
- p && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, p, !1), v += p);
2264
- } else if (f < 0) {
2265
- for (; v > m;) this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), --v;
2266
- p && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -p, !0), v -= p);
2267
- }
2268
- r = this.data.m === 1 ? 0 : this._currentCopies - 1, i = this.data.m === 1 ? 1 : -1, a = this._currentCopies;
2269
- for (var y, b; a;) {
2270
- if (t = this.elemsData[r].it, n = t[t.length - 1].transform.mProps.v.props, b = n.length, t[t.length - 1].transform.mProps._mdf = !0, t[t.length - 1].transform.op._mdf = !0, t[t.length - 1].transform.op.v = this._currentCopies === 1 ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (r / (this._currentCopies - 1)), v !== 0) {
2271
- for ((r !== 0 && i === 1 || r !== this._currentCopies - 1 && i === -1) && this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), this.matrix.transform(g[0], g[1], g[2], g[3], g[4], g[5], g[6], g[7], g[8], g[9], g[10], g[11], g[12], g[13], g[14], g[15]), this.matrix.transform(_[0], _[1], _[2], _[3], _[4], _[5], _[6], _[7], _[8], _[9], _[10], _[11], _[12], _[13], _[14], _[15]), this.matrix.transform(h[0], h[1], h[2], h[3], h[4], h[5], h[6], h[7], h[8], h[9], h[10], h[11], h[12], h[13], h[14], h[15]), y = 0; y < b; y += 1) n[y] = this.matrix.props[y];
2272
- this.matrix.reset();
2273
- } else for (this.matrix.reset(), y = 0; y < b; y += 1) n[y] = this.matrix.props[y];
2274
- v += 1, --a, r += i;
2275
- }
2276
- } else for (a = this._currentCopies, r = 0, i = 1; a;) t = this.elemsData[r].it, n = t[t.length - 1].transform.mProps.v.props, t[t.length - 1].transform.mProps._mdf = !1, t[t.length - 1].transform.op._mdf = !1, --a, r += i;
2277
- return o;
2278
- }, xt.prototype.addShape = function() {};
2279
- function St() {}
2280
- d([_t], St), St.prototype.initModifierProperties = function(e, t) {
2281
- this.getValue = this.processKeys, this.rd = U.getProp(e, t.r, 0, null, this), this._isAnimated = !!this.rd.effectsSequence.length;
2282
- }, St.prototype.processPath = function(e, t) {
2283
- var n = G.newElement();
2284
- n.c = e.c;
2285
- var r, i = e._length, a, o, s, c, l, u, d = 0, f, p, m, h, g, _;
2286
- for (r = 0; r < i; r += 1) a = e.v[r], s = e.o[r], o = e.i[r], a[0] === s[0] && a[1] === s[1] && a[0] === o[0] && a[1] === o[1] ? (r === 0 || r === i - 1) && !e.c ? (n.setTripleAt(a[0], a[1], s[0], s[1], o[0], o[1], d), d += 1) : (c = r === 0 ? e.v[i - 1] : e.v[r - 1], l = Math.sqrt((a[0] - c[0]) ** 2 + (a[1] - c[1]) ** 2), u = l ? Math.min(l / 2, t) / l : 0, g = a[0] + (c[0] - a[0]) * u, f = g, _ = a[1] - (a[1] - c[1]) * u, p = _, m = f - (f - a[0]) * A, h = p - (p - a[1]) * A, n.setTripleAt(f, p, m, h, g, _, d), d += 1, c = r === i - 1 ? e.v[0] : e.v[r + 1], l = Math.sqrt((a[0] - c[0]) ** 2 + (a[1] - c[1]) ** 2), u = l ? Math.min(l / 2, t) / l : 0, m = a[0] + (c[0] - a[0]) * u, f = m, h = a[1] + (c[1] - a[1]) * u, p = h, g = f - (f - a[0]) * A, _ = p - (p - a[1]) * A, n.setTripleAt(f, p, m, h, g, _, d), d += 1) : (n.setTripleAt(e.v[r][0], e.v[r][1], e.o[r][0], e.o[r][1], e.i[r][0], e.i[r][1], d), d += 1);
2287
- return n;
2288
- }, St.prototype.processShapes = function(e) {
2289
- var t, n, r = this.shapes.length, i, a, o = this.rd.v;
2290
- if (o !== 0) {
2291
- var s, c;
2292
- for (n = 0; n < r; n += 1) {
2293
- if (s = this.shapes[n], c = s.localShapeCollection, !(!s.shape._mdf && !this._mdf && !e)) for (c.releaseShapes(), s.shape._mdf = !0, t = s.shape.paths.shapes, a = s.shape.paths._length, i = 0; i < a; i += 1) c.addShape(this.processPath(t[i], o));
2294
- s.shape.paths = s.localShapeCollection;
2295
- }
2296
- }
2297
- this.dynamicProperties.length || (this._mdf = !1);
2298
- };
2299
- function Ct(e, t) {
2300
- return Math.abs(e - t) * 1e5 <= Math.min(Math.abs(e), Math.abs(t));
2301
- }
2302
- function wt(e) {
2303
- return Math.abs(e) <= 1e-5;
2304
- }
2305
- function Tt(e, t, n) {
2306
- return e * (1 - n) + t * n;
2307
- }
2308
- function Et(e, t, n) {
2309
- return [Tt(e[0], t[0], n), Tt(e[1], t[1], n)];
2310
- }
2311
- function Dt(e, t, n) {
2312
- if (e === 0) return [];
2313
- var r = t * t - 4 * e * n;
2314
- if (r < 0) return [];
2315
- var i = -t / (2 * e);
2316
- if (r === 0) return [i];
2317
- var a = Math.sqrt(r) / (2 * e);
2318
- return [i - a, i + a];
2319
- }
2320
- function Ot(e, t, n, r) {
2321
- return [
2322
- -e + 3 * t - 3 * n + r,
2323
- 3 * e - 6 * t + 3 * n,
2324
- -3 * e + 3 * t,
2325
- e
2326
- ];
2327
- }
2328
- function kt(e) {
2329
- return new J(e, e, e, e, !1);
2330
- }
2331
- function J(e, t, n, r, i) {
2332
- i && zt(e, t) && (t = Et(e, r, 1 / 3)), i && zt(n, r) && (n = Et(e, r, 2 / 3));
2333
- var a = Ot(e[0], t[0], n[0], r[0]), o = Ot(e[1], t[1], n[1], r[1]);
2334
- this.a = [a[0], o[0]], this.b = [a[1], o[1]], this.c = [a[2], o[2]], this.d = [a[3], o[3]], this.points = [
2335
- e,
2336
- t,
2337
- n,
2338
- r
2339
- ];
2340
- }
2341
- J.prototype.point = function(e) {
2342
- return [((this.a[0] * e + this.b[0]) * e + this.c[0]) * e + this.d[0], ((this.a[1] * e + this.b[1]) * e + this.c[1]) * e + this.d[1]];
2343
- }, J.prototype.derivative = function(e) {
2344
- return [(3 * e * this.a[0] + 2 * this.b[0]) * e + this.c[0], (3 * e * this.a[1] + 2 * this.b[1]) * e + this.c[1]];
2345
- }, J.prototype.tangentAngle = function(e) {
2346
- var t = this.derivative(e);
2347
- return Math.atan2(t[1], t[0]);
2348
- }, J.prototype.normalAngle = function(e) {
2349
- var t = this.derivative(e);
2350
- return Math.atan2(t[0], t[1]);
2351
- }, J.prototype.inflectionPoints = function() {
2352
- var e = this.a[1] * this.b[0] - this.a[0] * this.b[1];
2353
- if (wt(e)) return [];
2354
- var t = -.5 * (this.a[1] * this.c[0] - this.a[0] * this.c[1]) / e, n = t * t - 1 / 3 * (this.b[1] * this.c[0] - this.b[0] * this.c[1]) / e;
2355
- if (n < 0) return [];
2356
- var r = Math.sqrt(n);
2357
- return wt(r) ? r > 0 && r < 1 ? [t] : [] : [t - r, t + r].filter(function(e) {
2358
- return e > 0 && e < 1;
2359
- });
2360
- }, J.prototype.split = function(e) {
2361
- if (e <= 0) return [kt(this.points[0]), this];
2362
- if (e >= 1) return [this, kt(this.points[this.points.length - 1])];
2363
- var t = Et(this.points[0], this.points[1], e), n = Et(this.points[1], this.points[2], e), r = Et(this.points[2], this.points[3], e), i = Et(t, n, e), a = Et(n, r, e), o = Et(i, a, e);
2364
- return [new J(this.points[0], t, i, o, !0), new J(o, a, r, this.points[3], !0)];
2365
- };
2366
- function At(e, t) {
2367
- var n = e.points[0][t], r = e.points[e.points.length - 1][t];
2368
- if (n > r) {
2369
- var i = r;
2370
- r = n, n = i;
2371
- }
2372
- for (var a = Dt(3 * e.a[t], 2 * e.b[t], e.c[t]), o = 0; o < a.length; o += 1) if (a[o] > 0 && a[o] < 1) {
2373
- var s = e.point(a[o])[t];
2374
- s < n ? n = s : s > r && (r = s);
2375
- }
2376
- return {
2377
- min: n,
2378
- max: r
2379
- };
2380
- }
2381
- J.prototype.bounds = function() {
2382
- return {
2383
- x: At(this, 0),
2384
- y: At(this, 1)
2385
- };
2386
- }, J.prototype.boundingBox = function() {
2387
- var e = this.bounds();
2388
- return {
2389
- left: e.x.min,
2390
- right: e.x.max,
2391
- top: e.y.min,
2392
- bottom: e.y.max,
2393
- width: e.x.max - e.x.min,
2394
- height: e.y.max - e.y.min,
2395
- cx: (e.x.max + e.x.min) / 2,
2396
- cy: (e.y.max + e.y.min) / 2
2397
- };
2398
- };
2399
- function jt(e, t, n) {
2400
- var r = e.boundingBox();
2401
- return {
2402
- cx: r.cx,
2403
- cy: r.cy,
2404
- width: r.width,
2405
- height: r.height,
2406
- bez: e,
2407
- t: (t + n) / 2,
2408
- t1: t,
2409
- t2: n
2410
- };
2411
- }
2412
- function Mt(e) {
2413
- var t = e.bez.split(.5);
2414
- return [jt(t[0], e.t1, e.t), jt(t[1], e.t, e.t2)];
2415
- }
2416
- function Nt(e, t) {
2417
- return Math.abs(e.cx - t.cx) * 2 < e.width + t.width && Math.abs(e.cy - t.cy) * 2 < e.height + t.height;
2418
- }
2419
- function Pt(e, t, n, r, i, a) {
2420
- if (Nt(e, t)) {
2421
- if (n >= a || e.width <= r && e.height <= r && t.width <= r && t.height <= r) {
2422
- i.push([e.t, t.t]);
2423
- return;
2424
- }
2425
- var o = Mt(e), s = Mt(t);
2426
- Pt(o[0], s[0], n + 1, r, i, a), Pt(o[0], s[1], n + 1, r, i, a), Pt(o[1], s[0], n + 1, r, i, a), Pt(o[1], s[1], n + 1, r, i, a);
2427
- }
2428
- }
2429
- J.prototype.intersections = function(e, t, n) {
2430
- t === void 0 && (t = 2), n === void 0 && (n = 7);
2431
- var r = [];
2432
- return Pt(jt(this, 0, 1), jt(e, 0, 1), 0, t, r, n), r;
2433
- }, J.shapeSegment = function(e, t) {
2434
- var n = (t + 1) % e.length();
2435
- return new J(e.v[t], e.o[t], e.i[n], e.v[n], !0);
2436
- }, J.shapeSegmentInverted = function(e, t) {
2437
- var n = (t + 1) % e.length();
2438
- return new J(e.v[n], e.i[n], e.o[t], e.v[t], !0);
2439
- };
2440
- function Ft(e, t) {
2441
- return [
2442
- e[1] * t[2] - e[2] * t[1],
2443
- e[2] * t[0] - e[0] * t[2],
2444
- e[0] * t[1] - e[1] * t[0]
2445
- ];
2446
- }
2447
- function It(e, t, n, r) {
2448
- var i = [
2449
- e[0],
2450
- e[1],
2451
- 1
2452
- ], a = [
2453
- t[0],
2454
- t[1],
2455
- 1
2456
- ], o = [
2457
- n[0],
2458
- n[1],
2459
- 1
2460
- ], s = [
2461
- r[0],
2462
- r[1],
2463
- 1
2464
- ], c = Ft(Ft(i, a), Ft(o, s));
2465
- return wt(c[2]) ? null : [c[0] / c[2], c[1] / c[2]];
2466
- }
2467
- function Lt(e, t, n) {
2468
- return [e[0] + Math.cos(t) * n, e[1] - Math.sin(t) * n];
2469
- }
2470
- function Rt(e, t) {
2471
- return Math.hypot(e[0] - t[0], e[1] - t[1]);
2472
- }
2473
- function zt(e, t) {
2474
- return Ct(e[0], t[0]) && Ct(e[1], t[1]);
2475
- }
2476
- function Bt() {}
2477
- d([_t], Bt), Bt.prototype.initModifierProperties = function(e, t) {
2478
- this.getValue = this.processKeys, this.amplitude = U.getProp(e, t.s, 0, null, this), this.frequency = U.getProp(e, t.r, 0, null, this), this.pointsType = U.getProp(e, t.pt, 0, null, this), this._isAnimated = this.amplitude.effectsSequence.length !== 0 || this.frequency.effectsSequence.length !== 0 || this.pointsType.effectsSequence.length !== 0;
2479
- };
2480
- function Vt(e, t, n, r, i, a, o) {
2481
- var s = n - Math.PI / 2, c = n + Math.PI / 2, l = t[0] + Math.cos(n) * r * i, u = t[1] - Math.sin(n) * r * i;
2482
- e.setTripleAt(l, u, l + Math.cos(s) * a, u - Math.sin(s) * a, l + Math.cos(c) * o, u - Math.sin(c) * o, e.length());
2483
- }
2484
- function Ht(e, t) {
2485
- var n = [t[0] - e[0], t[1] - e[1]], r = -Math.PI * .5, i = [Math.cos(r) * n[0] - Math.sin(r) * n[1], Math.sin(r) * n[0] + Math.cos(r) * n[1]];
2486
- return i;
2487
- }
2488
- function Ut(e, t) {
2489
- var n = t === 0 ? e.length() - 1 : t - 1, r = (t + 1) % e.length(), i = e.v[n], a = e.v[r], o = Ht(i, a);
2490
- return Math.atan2(0, 1) - Math.atan2(o[1], o[0]);
2491
- }
2492
- function Wt(e, t, n, r, i, a, o) {
2493
- var s = Ut(t, n), c = t.v[n % t._length], l = t.v[n === 0 ? t._length - 1 : n - 1], u = t.v[(n + 1) % t._length], d = a === 2 ? Math.sqrt((c[0] - l[0]) ** 2 + (c[1] - l[1]) ** 2) : 0, f = a === 2 ? Math.sqrt((c[0] - u[0]) ** 2 + (c[1] - u[1]) ** 2) : 0;
2494
- Vt(e, t.v[n % t._length], s, o, r, f / ((i + 1) * 2), d / ((i + 1) * 2), a);
2495
- }
2496
- function Gt(e, t, n, r, i, a) {
2497
- for (var o = 0; o < r; o += 1) {
2498
- var s = (o + 1) / (r + 1), c = i === 2 ? Math.sqrt((t.points[3][0] - t.points[0][0]) ** 2 + (t.points[3][1] - t.points[0][1]) ** 2) : 0, l = t.normalAngle(s), u = t.point(s);
2499
- Vt(e, u, l, a, n, c / ((r + 1) * 2), c / ((r + 1) * 2), i), a = -a;
2500
- }
2501
- return a;
2502
- }
2503
- Bt.prototype.processPath = function(e, t, n, r) {
2504
- var i = e._length, a = G.newElement();
2505
- if (a.c = e.c, e.c || --i, i === 0) return a;
2506
- var o = -1, s = J.shapeSegment(e, 0);
2507
- Wt(a, e, 0, t, n, r, o);
2508
- for (var c = 0; c < i; c += 1) o = Gt(a, s, t, n, r, -o), s = c === i - 1 && !e.c ? null : J.shapeSegment(e, (c + 1) % i), Wt(a, e, c + 1, t, n, r, o);
2509
- return a;
2510
- }, Bt.prototype.processShapes = function(e) {
2511
- var t, n, r = this.shapes.length, i, a, o = this.amplitude.v, s = Math.max(0, Math.round(this.frequency.v)), c = this.pointsType.v;
2512
- if (o !== 0) {
2513
- var l, u;
2514
- for (n = 0; n < r; n += 1) {
2515
- if (l = this.shapes[n], u = l.localShapeCollection, !(!l.shape._mdf && !this._mdf && !e)) for (u.releaseShapes(), l.shape._mdf = !0, t = l.shape.paths.shapes, a = l.shape.paths._length, i = 0; i < a; i += 1) u.addShape(this.processPath(t[i], o, s, c));
2516
- l.shape.paths = l.localShapeCollection;
2517
- }
2518
- }
2519
- this.dynamicProperties.length || (this._mdf = !1);
2520
- };
2521
- function Kt(e, t, n) {
2522
- var r = Math.atan2(t[0] - e[0], t[1] - e[1]);
2523
- return [Lt(e, r, n), Lt(t, r, n)];
2524
- }
2525
- function qt(e, t) {
2526
- var n, r, i, a, o, s, c;
2527
- c = Kt(e.points[0], e.points[1], t), n = c[0], r = c[1], c = Kt(e.points[1], e.points[2], t), i = c[0], a = c[1], c = Kt(e.points[2], e.points[3], t), o = c[0], s = c[1];
2528
- var l = It(n, r, i, a);
2529
- l === null && (l = r);
2530
- var u = It(o, s, i, a);
2531
- return u === null && (u = o), new J(n, l, u, s);
2532
- }
2533
- function Jt(e, t, n, r, i) {
2534
- var a = t.points[3], o = n.points[0];
2535
- if (r === 3 || zt(a, o)) return a;
2536
- if (r === 2) {
2537
- var s = -t.tangentAngle(1), c = -n.tangentAngle(0) + Math.PI, l = It(a, Lt(a, s + Math.PI / 2, 100), o, Lt(o, s + Math.PI / 2, 100)), u = l ? Rt(l, a) : Rt(a, o) / 2, d = Lt(a, s, 2 * u * A);
2538
- return e.setXYAt(d[0], d[1], "o", e.length() - 1), d = Lt(o, c, 2 * u * A), e.setTripleAt(o[0], o[1], o[0], o[1], d[0], d[1], e.length()), o;
2539
- }
2540
- var f = zt(a, t.points[2]) ? t.points[0] : t.points[2], p = zt(o, n.points[1]) ? n.points[3] : n.points[1], m = It(f, a, o, p);
2541
- return m && Rt(m, a) < i ? (e.setTripleAt(m[0], m[1], m[0], m[1], m[0], m[1], e.length()), m) : a;
2542
- }
2543
- function Yt(e, t) {
2544
- var n = e.intersections(t);
2545
- return n.length && Ct(n[0][0], 1) && n.shift(), n.length ? n[0] : null;
2546
- }
2547
- function Xt(e, t) {
2548
- var n = e.slice(), r = t.slice(), i = Yt(e[e.length - 1], t[0]);
2549
- return i && (n[e.length - 1] = e[e.length - 1].split(i[0])[0], r[0] = t[0].split(i[1])[1]), e.length > 1 && t.length > 1 && (i = Yt(e[0], t[t.length - 1]), i) ? [[e[0].split(i[0])[0]], [t[t.length - 1].split(i[1])[1]]] : [n, r];
2550
- }
2551
- function Zt(e) {
2552
- for (var t, n = 1; n < e.length; n += 1) t = Xt(e[n - 1], e[n]), e[n - 1] = t[0], e[n] = t[1];
2553
- return e.length > 1 && (t = Xt(e[e.length - 1], e[0]), e[e.length - 1] = t[0], e[0] = t[1]), e;
2554
- }
2555
- function Qt(e, t) {
2556
- var n = e.inflectionPoints(), r, i, a, o;
2557
- if (n.length === 0) return [qt(e, t)];
2558
- if (n.length === 1 || Ct(n[1], 1)) return a = e.split(n[0]), r = a[0], i = a[1], [qt(r, t), qt(i, t)];
2559
- a = e.split(n[0]), r = a[0];
2560
- var s = (n[1] - n[0]) / (1 - n[0]);
2561
- return a = a[1].split(s), o = a[0], i = a[1], [
2562
- qt(r, t),
2563
- qt(o, t),
2564
- qt(i, t)
2565
- ];
2566
- }
2567
- function $t() {}
2568
- d([_t], $t), $t.prototype.initModifierProperties = function(e, t) {
2569
- this.getValue = this.processKeys, this.amount = U.getProp(e, t.a, 0, null, this), this.miterLimit = U.getProp(e, t.ml, 0, null, this), this.lineJoin = t.lj, this._isAnimated = this.amount.effectsSequence.length !== 0;
2570
- }, $t.prototype.processPath = function(e, t, n, r) {
2571
- var i = G.newElement();
2572
- i.c = e.c;
2573
- var a = e.length();
2574
- e.c || --a;
2575
- var o, s, c, l = [];
2576
- for (o = 0; o < a; o += 1) c = J.shapeSegment(e, o), l.push(Qt(c, t));
2577
- if (!e.c) for (o = a - 1; o >= 0; --o) c = J.shapeSegmentInverted(e, o), l.push(Qt(c, t));
2578
- l = Zt(l);
2579
- var u = null, d = null;
2580
- for (o = 0; o < l.length; o += 1) {
2581
- var f = l[o];
2582
- for (d && (u = Jt(i, d, f[0], n, r)), d = f[f.length - 1], s = 0; s < f.length; s += 1) c = f[s], u && zt(c.points[0], u) ? i.setXYAt(c.points[1][0], c.points[1][1], "o", i.length() - 1) : i.setTripleAt(c.points[0][0], c.points[0][1], c.points[1][0], c.points[1][1], c.points[0][0], c.points[0][1], i.length()), i.setTripleAt(c.points[3][0], c.points[3][1], c.points[3][0], c.points[3][1], c.points[2][0], c.points[2][1], i.length()), u = c.points[3];
2583
- }
2584
- return l.length && Jt(i, d, l[0][0], n, r), i;
2585
- }, $t.prototype.processShapes = function(e) {
2586
- var t, n, r = this.shapes.length, i, a, o = this.amount.v, s = this.miterLimit.v, c = this.lineJoin;
2587
- if (o !== 0) {
2588
- var l, u;
2589
- for (n = 0; n < r; n += 1) {
2590
- if (l = this.shapes[n], u = l.localShapeCollection, !(!l.shape._mdf && !this._mdf && !e)) for (u.releaseShapes(), l.shape._mdf = !0, t = l.shape.paths.shapes, a = l.shape.paths._length, i = 0; i < a; i += 1) u.addShape(this.processPath(t[i], o, c, s));
2591
- l.shape.paths = l.localShapeCollection;
2592
- }
2593
- }
2594
- this.dynamicProperties.length || (this._mdf = !1);
2595
- };
2596
- function en(e) {
2597
- for (var t = e.fStyle ? e.fStyle.split(" ") : [], n = "normal", r = "normal", i = t.length, a, o = 0; o < i; o += 1) switch (a = t[o].toLowerCase(), a) {
2598
- case "italic":
2599
- r = "italic";
2600
- break;
2601
- case "bold":
2602
- n = "700";
2603
- break;
2604
- case "black":
2605
- n = "900";
2606
- break;
2607
- case "medium":
2608
- n = "500";
2609
- break;
2610
- case "regular":
2611
- case "normal":
2612
- n = "400";
2613
- break;
2614
- case "light":
2615
- case "thin":
2616
- n = "200";
2617
- break;
2618
- default: break;
2619
- }
2620
- return {
2621
- style: r,
2622
- weight: e.fWeight || n
2623
- };
2624
- }
2625
- var tn = function() {
2626
- var e = 5e3, t = {
2627
- w: 0,
2628
- size: 0,
2629
- shapes: [],
2630
- data: { shapes: [] }
2631
- }, n = [];
2632
- n = n.concat([
2633
- 2304,
2634
- 2305,
2635
- 2306,
2636
- 2307,
2637
- 2362,
2638
- 2363,
2639
- 2364,
2640
- 2364,
2641
- 2366,
2642
- 2367,
2643
- 2368,
2644
- 2369,
2645
- 2370,
2646
- 2371,
2647
- 2372,
2648
- 2373,
2649
- 2374,
2650
- 2375,
2651
- 2376,
2652
- 2377,
2653
- 2378,
2654
- 2379,
2655
- 2380,
2656
- 2381,
2657
- 2382,
2658
- 2383,
2659
- 2387,
2660
- 2388,
2661
- 2389,
2662
- 2390,
2663
- 2391,
2664
- 2402,
2665
- 2403
2666
- ]);
2667
- var r = 127988, i = 917631, a = 917601, o = 917626, s = 65039, c = 8205, l = 127462, d = 127487, f = [
2668
- "d83cdffb",
2669
- "d83cdffc",
2670
- "d83cdffd",
2671
- "d83cdffe",
2672
- "d83cdfff"
2673
- ];
2674
- function p(e) {
2675
- var t = e.split(","), n, r = t.length, i = [];
2676
- for (n = 0; n < r; n += 1) t[n] !== "sans-serif" && t[n] !== "monospace" && i.push(t[n]);
2677
- return i.join(",");
2678
- }
2679
- function m(e, t) {
2680
- var n = u("span");
2681
- n.setAttribute("aria-hidden", !0), n.style.fontFamily = t;
2682
- var r = u("span");
2683
- r.innerText = "giItT1WQy@!-/#", n.style.position = "absolute", n.style.left = "-10000px", n.style.top = "-10000px", n.style.fontSize = "300px", n.style.fontVariant = "normal", n.style.fontStyle = "normal", n.style.fontWeight = "normal", n.style.letterSpacing = "0", n.appendChild(r), document.body.appendChild(n);
2684
- var i = r.offsetWidth;
2685
- return r.style.fontFamily = p(e) + ", " + t, {
2686
- node: r,
2687
- w: i,
2688
- parent: n
2689
- };
2690
- }
2691
- function h() {
2692
- var t, n = this.fonts.length, r, i, a = n;
2693
- for (t = 0; t < n; t += 1) this.fonts[t].loaded ? --a : this.fonts[t].fOrigin === "n" || this.fonts[t].origin === 0 ? this.fonts[t].loaded = !0 : (r = this.fonts[t].monoCase.node, i = this.fonts[t].monoCase.w, r.offsetWidth === i ? (r = this.fonts[t].sansCase.node, i = this.fonts[t].sansCase.w, r.offsetWidth !== i && (--a, this.fonts[t].loaded = !0)) : (--a, this.fonts[t].loaded = !0), this.fonts[t].loaded && (this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent), this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));
2694
- a !== 0 && Date.now() - this.initTime < e ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
2695
- }
2696
- function g(e, t) {
2697
- var n = document.body && t ? "svg" : "canvas", r, i = en(e);
2698
- if (n === "svg") {
2699
- var a = z("text");
2700
- a.style.fontSize = "100px", a.setAttribute("font-family", e.fFamily), a.setAttribute("font-style", i.style), a.setAttribute("font-weight", i.weight), a.textContent = "1", e.fClass ? (a.style.fontFamily = "inherit", a.setAttribute("class", e.fClass)) : a.style.fontFamily = e.fFamily, t.appendChild(a), r = a;
2701
- } else {
2702
- var o = new OffscreenCanvas(500, 500).getContext("2d");
2703
- o.font = i.style + " " + i.weight + " 100px " + e.fFamily, r = o;
2704
- }
2705
- function s(e) {
2706
- return n === "svg" ? (r.textContent = e, r.getComputedTextLength()) : r.measureText(e).width;
2707
- }
2708
- return { measureText: s };
2709
- }
2710
- function _(e, t) {
2711
- if (!e) {
2712
- this.isLoaded = !0;
2713
- return;
2714
- }
2715
- if (this.chars) {
2716
- this.isLoaded = !0, this.fonts = e.list;
2717
- return;
2718
- }
2719
- if (!document.body) {
2720
- this.isLoaded = !0, e.list.forEach(function(e) {
2721
- e.helper = g(e), e.cache = {};
2722
- }), this.fonts = e.list;
2723
- return;
2724
- }
2725
- var n = e.list, r, i = n.length, a = i;
2726
- for (r = 0; r < i; r += 1) {
2727
- var o = !0, s, c;
2728
- if (n[r].loaded = !1, n[r].monoCase = m(n[r].fFamily, "monospace"), n[r].sansCase = m(n[r].fFamily, "sans-serif"), !n[r].fPath) n[r].loaded = !0, --a;
2729
- else if (n[r].fOrigin === "p" || n[r].origin === 3) {
2730
- if (s = document.querySelectorAll("style[f-forigin=\"p\"][f-family=\"" + n[r].fFamily + "\"], style[f-origin=\"3\"][f-family=\"" + n[r].fFamily + "\"]"), s.length > 0 && (o = !1), o) {
2731
- var l = u("style");
2732
- l.setAttribute("f-forigin", n[r].fOrigin), l.setAttribute("f-origin", n[r].origin), l.setAttribute("f-family", n[r].fFamily), l.type = "text/css", l.innerText = "@font-face {font-family: " + n[r].fFamily + "; font-style: normal; src: url('" + n[r].fPath + "');}", t.appendChild(l);
2733
- }
2734
- } else if (n[r].fOrigin === "g" || n[r].origin === 1) {
2735
- for (s = document.querySelectorAll("link[f-forigin=\"g\"], link[f-origin=\"1\"]"), c = 0; c < s.length; c += 1) s[c].href.indexOf(n[r].fPath) !== -1 && (o = !1);
2736
- if (o) {
2737
- var d = u("link");
2738
- d.setAttribute("f-forigin", n[r].fOrigin), d.setAttribute("f-origin", n[r].origin), d.type = "text/css", d.rel = "stylesheet", d.href = n[r].fPath, document.body.appendChild(d);
2739
- }
2740
- } else if (n[r].fOrigin === "t" || n[r].origin === 2) {
2741
- for (s = document.querySelectorAll("script[f-forigin=\"t\"], script[f-origin=\"2\"]"), c = 0; c < s.length; c += 1) n[r].fPath === s[c].src && (o = !1);
2742
- if (o) {
2743
- var f = u("link");
2744
- f.setAttribute("f-forigin", n[r].fOrigin), f.setAttribute("f-origin", n[r].origin), f.setAttribute("rel", "stylesheet"), f.setAttribute("href", n[r].fPath), t.appendChild(f);
2745
- }
2746
- }
2747
- n[r].helper = g(n[r], t), n[r].cache = {}, this.fonts.push(n[r]);
2748
- }
2749
- a === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
2750
- }
2751
- function v(e) {
2752
- if (e) {
2753
- this.chars ||= [];
2754
- var t, n = e.length, r, i = this.chars.length, a;
2755
- for (t = 0; t < n; t += 1) {
2756
- for (r = 0, a = !1; r < i;) this.chars[r].style === e[t].style && this.chars[r].fFamily === e[t].fFamily && this.chars[r].ch === e[t].ch && (a = !0), r += 1;
2757
- a || (this.chars.push(e[t]), i += 1);
2758
- }
2759
- }
2760
- }
2761
- function y(e, n, r) {
2762
- for (var i = 0, a = this.chars.length; i < a;) {
2763
- if (this.chars[i].ch === e && this.chars[i].style === n && this.chars[i].fFamily === r) return this.chars[i];
2764
- i += 1;
2765
- }
2766
- return (typeof e == "string" && e.charCodeAt(0) !== 13 || !e) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", e, n, r)), t;
2767
- }
2768
- function b(e, t, n) {
2769
- var r = this.getFontByName(t), i = e;
2770
- if (!r.cache[i]) {
2771
- var a = r.helper;
2772
- if (e === " ") {
2773
- var o = a.measureText("|" + e + "|"), s = a.measureText("||");
2774
- r.cache[i] = (o - s) / 100;
2775
- } else r.cache[i] = a.measureText(e) / 100;
2776
- }
2777
- return r.cache[i] * n;
2778
- }
2779
- function x(e) {
2780
- for (var t = 0, n = this.fonts.length; t < n;) {
2781
- if (this.fonts[t].fName === e) return this.fonts[t];
2782
- t += 1;
2783
- }
2784
- return this.fonts[0];
2785
- }
2786
- function S(e) {
2787
- var t = 0, n = e.charCodeAt(0);
2788
- if (n >= 55296 && n <= 56319) {
2789
- var r = e.charCodeAt(1);
2790
- r >= 56320 && r <= 57343 && (t = (n - 55296) * 1024 + r - 56320 + 65536);
2791
- }
2792
- return t;
2793
- }
2794
- function C(e, t) {
2795
- var n = e.toString(16) + t.toString(16);
2796
- return f.indexOf(n) !== -1;
2797
- }
2798
- function w(e) {
2799
- return e === c;
2800
- }
2801
- function T(e) {
2802
- return e === s;
2803
- }
2804
- function E(e) {
2805
- var t = S(e);
2806
- return t >= l && t <= d;
2807
- }
2808
- function D(e) {
2809
- return E(e.substr(0, 2)) && E(e.substr(2, 2));
2810
- }
2811
- function O(e) {
2812
- return n.indexOf(e) !== -1;
2813
- }
2814
- function k(e, t) {
2815
- var n = S(e.substr(t, 2));
2816
- if (n !== r) return !1;
2817
- var s = 0;
2818
- for (t += 2; s < 5;) {
2819
- if (n = S(e.substr(t, 2)), n < a || n > o) return !1;
2820
- s += 1, t += 2;
2821
- }
2822
- return S(e.substr(t, 2)) === i;
2823
- }
2824
- function A() {
2825
- this.isLoaded = !0;
2826
- }
2827
- var j = function() {
2828
- 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);
2829
- };
2830
- j.isModifier = C, j.isZeroWidthJoiner = w, j.isFlagEmoji = D, j.isRegionalCode = E, j.isCombinedCharacter = O, j.isRegionalFlag = k, j.isVariationSelector = T, j.BLACK_FLAG_CODE_POINT = r;
2831
- var M = {
2832
- addChars: v,
2833
- addFonts: _,
2834
- getCharData: y,
2835
- getFontByName: x,
2836
- measureText: b,
2837
- checkLoadedFonts: h,
2838
- setIsLoaded: A
2839
- };
2840
- return j.prototype = M, j;
2841
- }();
2842
- function nn(e) {
2843
- this.animationData = e;
2844
- }
2845
- nn.prototype.getProp = function(e) {
2846
- return this.animationData.slots && this.animationData.slots[e.sid] ? Object.assign(e, this.animationData.slots[e.sid].p) : e;
2847
- };
2848
- function rn(e) {
2849
- return new nn(e);
2850
- }
2851
- function an() {}
2852
- an.prototype = {
2853
- initRenderable: function() {
2854
- this.isInRange = !1, this.hidden = !1, this.isTransparent = !1, this.renderableComponents = [];
2855
- },
2856
- addRenderableComponent: function(e) {
2857
- this.renderableComponents.indexOf(e) === -1 && this.renderableComponents.push(e);
2858
- },
2859
- removeRenderableComponent: function(e) {
2860
- this.renderableComponents.indexOf(e) !== -1 && this.renderableComponents.splice(this.renderableComponents.indexOf(e), 1);
2861
- },
2862
- prepareRenderableFrame: function(e) {
2863
- this.checkLayerLimits(e);
2864
- },
2865
- checkTransparency: function() {
2866
- this.finalTransform.mProp.o.v <= 0 ? !this.isTransparent && this.globalData.renderConfig.hideOnTransparent && (this.isTransparent = !0, this.hide()) : this.isTransparent && (this.isTransparent = !1, this.show());
2867
- },
2868
- checkLayerLimits: function(e) {
2869
- 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());
2870
- },
2871
- renderRenderable: function() {
2872
- var e, t = this.renderableComponents.length;
2873
- for (e = 0; e < t; e += 1) this.renderableComponents[e].renderFrame(this._isFirstFrame);
2874
- },
2875
- sourceRectAtTime: function() {
2876
- return {
2877
- top: 0,
2878
- left: 0,
2879
- width: 100,
2880
- height: 100
2881
- };
2882
- },
2883
- getLayerSize: function() {
2884
- return this.data.ty === 5 ? {
2885
- w: this.data.textData.width,
2886
- h: this.data.textData.height
2887
- } : {
2888
- w: this.data.width,
2889
- h: this.data.height
2890
- };
2891
- }
2892
- };
2893
- var on = function() {
2894
- var e = {
2895
- 0: "source-over",
2896
- 1: "multiply",
2897
- 2: "screen",
2898
- 3: "overlay",
2899
- 4: "darken",
2900
- 5: "lighten",
2901
- 6: "color-dodge",
2902
- 7: "color-burn",
2903
- 8: "hard-light",
2904
- 9: "soft-light",
2905
- 10: "difference",
2906
- 11: "exclusion",
2907
- 12: "hue",
2908
- 13: "saturation",
2909
- 14: "color",
2910
- 15: "luminosity"
2911
- };
2912
- return function(t) {
2913
- return e[t] || "";
2914
- };
2915
- }();
2916
- function sn(e, t, n) {
2917
- this.p = U.getProp(t, e.v, 0, 0, n);
2918
- }
2919
- function cn(e, t, n) {
2920
- this.p = U.getProp(t, e.v, 0, 0, n);
2921
- }
2922
- function ln(e, t, n) {
2923
- this.p = U.getProp(t, e.v, 1, 0, n);
2924
- }
2925
- function un(e, t, n) {
2926
- this.p = U.getProp(t, e.v, 1, 0, n);
2927
- }
2928
- function dn(e, t, n) {
2929
- this.p = U.getProp(t, e.v, 0, 0, n);
2930
- }
2931
- function fn(e, t, n) {
2932
- this.p = U.getProp(t, e.v, 0, 0, n);
2933
- }
2934
- function pn(e, t, n) {
2935
- this.p = U.getProp(t, e.v, 0, 0, n);
2936
- }
2937
- function mn() {
2938
- this.p = {};
2939
- }
2940
- function hn(e, t) {
2941
- var n = e.ef || [];
2942
- this.effectElements = [];
2943
- var r, i = n.length, a;
2944
- for (r = 0; r < i; r += 1) a = new gn(n[r], t), this.effectElements.push(a);
2945
- }
2946
- function gn(e, t) {
2947
- this.init(e, t);
2948
- }
2949
- d([W], gn), gn.prototype.getValue = gn.prototype.iterateDynamicProperties, gn.prototype.init = function(e, t) {
2950
- this.data = e, this.effectElements = [], this.initDynamicPropertyContainer(t);
2951
- var n, r = this.data.ef.length, i, a = this.data.ef;
2952
- for (n = 0; n < r; n += 1) {
2953
- switch (i = null, a[n].ty) {
2954
- case 0:
2955
- i = new sn(a[n], t, this);
2956
- break;
2957
- case 1:
2958
- i = new cn(a[n], t, this);
2959
- break;
2960
- case 2:
2961
- i = new ln(a[n], t, this);
2962
- break;
2963
- case 3:
2964
- i = new un(a[n], t, this);
2965
- break;
2966
- case 4:
2967
- case 7:
2968
- i = new pn(a[n], t, this);
2969
- break;
2970
- case 10:
2971
- i = new dn(a[n], t, this);
2972
- break;
2973
- case 11:
2974
- i = new fn(a[n], t, this);
2975
- break;
2976
- case 5:
2977
- i = new hn(a[n], t, this);
2978
- break;
2979
- default:
2980
- i = new mn(a[n], t, this);
2981
- break;
2982
- }
2983
- i && this.effectElements.push(i);
2984
- }
2985
- };
2986
- function _n() {}
2987
- _n.prototype = {
2988
- checkMasks: function() {
2989
- if (!this.data.hasMask) return !1;
2990
- for (var e = 0, t = this.data.masksProperties.length; e < t;) {
2991
- if (this.data.masksProperties[e].mode !== "n" && this.data.masksProperties[e].cl !== !1) return !0;
2992
- e += 1;
2993
- }
2994
- return !1;
2995
- },
2996
- initExpressions: function() {
2997
- var e = de();
2998
- if (e) {
2999
- var t = e("layer"), n = e("effects"), r = e("shape"), i = e("text"), a = e("comp");
3000
- this.layerInterface = t(this), this.data.hasMask && this.maskManager && this.layerInterface.registerMaskInterface(this.maskManager);
3001
- var o = n.createEffectsInterface(this, this.layerInterface);
3002
- this.layerInterface.registerEffectsInterface(o), this.data.ty === 0 || this.data.xt ? this.compInterface = a(this) : this.data.ty === 4 ? (this.layerInterface.shapeInterface = r(this.shapesData, this.itemsData, this.layerInterface), this.layerInterface.content = this.layerInterface.shapeInterface) : this.data.ty === 5 && (this.layerInterface.textInterface = i(this), this.layerInterface.text = this.layerInterface.textInterface);
3003
- }
3004
- },
3005
- setBlendMode: function() {
3006
- var e = on(this.data.bm), t = this.baseElement || this.layerElement;
3007
- t.style["mix-blend-mode"] = e;
3008
- },
3009
- initBaseData: function(e, t, n) {
3010
- this.globalData = t, this.comp = n, this.data = e, this.layerId = L(), this.data.sr || (this.data.sr = 1), this.effectsManager = new hn(this.data, this, this.dynamicProperties);
3011
- },
3012
- getType: function() {
3013
- return this.type;
3014
- },
3015
- sourceRectAtTime: function() {}
3016
- };
3017
- function vn() {}
3018
- vn.prototype = {
3019
- initFrame: function() {
3020
- this._isFirstFrame = !1, this.dynamicProperties = [], this._mdf = !1;
3021
- },
3022
- prepareProperties: function(e, t) {
3023
- var n, r = this.dynamicProperties.length;
3024
- for (n = 0; n < r; n += 1) (t || this._isParent && this.dynamicProperties[n].propType === "transform") && (this.dynamicProperties[n].getValue(), this.dynamicProperties[n]._mdf && (this.globalData._mdf = !0, this._mdf = !0));
3025
- },
3026
- addDynamicProperty: function(e) {
3027
- this.dynamicProperties.indexOf(e) === -1 && this.dynamicProperties.push(e);
3028
- }
3029
- };
3030
- function yn(e, t, n) {
3031
- this.initFrame(), this.initRenderable(), this.assetData = t.getAssetData(e.refId), this.footageData = t.imageLoader.getAsset(this.assetData), this.initBaseData(e, t, n);
3032
- }
3033
- yn.prototype.prepareFrame = function() {}, d([
3034
- an,
3035
- _n,
3036
- vn
3037
- ], yn), yn.prototype.getBaseElement = function() {
3038
- return null;
3039
- }, yn.prototype.renderFrame = function() {}, yn.prototype.destroy = function() {}, yn.prototype.initExpressions = function() {
3040
- var e = de();
3041
- if (e) {
3042
- var t = e("footage");
3043
- this.layerInterface = t(this);
3044
- }
3045
- }, yn.prototype.getFootageData = function() {
3046
- return this.footageData;
3047
- };
3048
- function Y(e, t, n) {
3049
- this.initFrame(), this.initRenderable(), this.assetData = t.getAssetData(e.refId), this.initBaseData(e, t, n), this._isPlaying = !1, this._canPlay = !1;
3050
- var r = this.globalData.getAssetsPath(this.assetData);
3051
- this.audio = this.globalData.audioController.createAudio(r), this._currentTime = 0, this.globalData.audioController.addAudio(this), this._volumeMultiplier = 1, this._volume = 1, this._previousVolume = null, this.tm = e.tm ? U.getProp(this, e.tm, 0, t.frameRate, this) : { _placeholder: !0 }, this.lv = U.getProp(this, e.au && e.au.lv ? e.au.lv : { k: [100] }, 1, .01, this);
3052
- }
3053
- Y.prototype.prepareFrame = function(e) {
3054
- if (this.prepareRenderableFrame(e, !0), this.prepareProperties(e, !0), this.tm._placeholder) this._currentTime = e / this.data.sr;
3055
- else {
3056
- var t = this.tm.v;
3057
- this._currentTime = t;
3058
- }
3059
- this._volume = this.lv.v[0];
3060
- var n = this._volume * this._volumeMultiplier;
3061
- this._previousVolume !== n && (this._previousVolume = n, this.audio.volume(n));
3062
- }, d([
3063
- an,
3064
- _n,
3065
- vn
3066
- ], Y), Y.prototype.renderFrame = function() {
3067
- this.isInRange && this._canPlay && (this._isPlaying ? (!this.audio.playing() || Math.abs(this._currentTime / this.globalData.frameRate - this.audio.seek()) > .1) && this.audio.seek(this._currentTime / this.globalData.frameRate) : (this.audio.play(), this.audio.seek(this._currentTime / this.globalData.frameRate), this._isPlaying = !0));
3068
- }, Y.prototype.show = function() {}, Y.prototype.hide = function() {
3069
- this.audio.pause(), this._isPlaying = !1;
3070
- }, Y.prototype.pause = function() {
3071
- this.audio.pause(), this._isPlaying = !1, this._canPlay = !1;
3072
- }, Y.prototype.resume = function() {
3073
- this._canPlay = !0;
3074
- }, Y.prototype.setRate = function(e) {
3075
- this.audio.rate(e);
3076
- }, Y.prototype.volume = function(e) {
3077
- this._volumeMultiplier = e, this._previousVolume = e * this._volume, this.audio.volume(this._previousVolume);
3078
- }, Y.prototype.getBaseElement = function() {
3079
- return null;
3080
- }, Y.prototype.destroy = function() {}, Y.prototype.sourceRectAtTime = function() {}, Y.prototype.initExpressions = function() {};
3081
- function X() {}
3082
- X.prototype.checkLayers = function(e) {
3083
- var t, n = this.layers.length, r;
3084
- for (this.completeLayers = !0, t = n - 1; t >= 0; --t) this.elements[t] || (r = this.layers[t], r.ip - r.st <= e - this.layers[t].st && r.op - r.st > e - this.layers[t].st && this.buildItem(t)), this.completeLayers = this.elements[t] ? this.completeLayers : !1;
3085
- this.checkPendingElements();
3086
- }, X.prototype.createItem = function(e) {
3087
- switch (e.ty) {
3088
- case 2: return this.createImage(e);
3089
- case 0: return this.createComp(e);
3090
- case 1: return this.createSolid(e);
3091
- case 3: return this.createNull(e);
3092
- case 4: return this.createShape(e);
3093
- case 5: return this.createText(e);
3094
- case 6: return this.createAudio(e);
3095
- case 13: return this.createCamera(e);
3096
- case 15: return this.createFootage(e);
3097
- default: return this.createNull(e);
3098
- }
3099
- }, X.prototype.createCamera = function() {
3100
- throw Error("You're using a 3d camera. Try the html renderer.");
3101
- }, X.prototype.createAudio = function(e) {
3102
- return new Y(e, this.globalData, this);
3103
- }, X.prototype.createFootage = function(e) {
3104
- return new yn(e, this.globalData, this);
3105
- }, X.prototype.buildAllItems = function() {
3106
- var e, t = this.layers.length;
3107
- for (e = 0; e < t; e += 1) this.buildItem(e);
3108
- this.checkPendingElements();
3109
- }, X.prototype.includeLayers = function(e) {
3110
- this.completeLayers = !1;
3111
- var t, n = e.length, r, i = this.layers.length;
3112
- for (t = 0; t < n; t += 1) for (r = 0; r < i;) {
3113
- if (this.layers[r].id === e[t].id) {
3114
- this.layers[r] = e[t];
3115
- break;
3116
- }
3117
- r += 1;
3118
- }
3119
- }, X.prototype.setProjectInterface = function(e) {
3120
- this.globalData.projectInterface = e;
3121
- }, X.prototype.initItems = function() {
3122
- this.globalData.progressiveLoad || this.buildAllItems();
3123
- }, X.prototype.buildElementParenting = function(e, t, n) {
3124
- for (var r = this.elements, i = this.layers, a = 0, o = i.length; a < o;) i[a].ind == t && (!r[a] || r[a] === !0 ? (this.buildItem(a), this.addPendingElement(e)) : (n.push(r[a]), r[a].setAsParent(), i[a].parent === void 0 ? e.setHierarchy(n) : this.buildElementParenting(e, i[a].parent, n))), a += 1;
3125
- }, X.prototype.addPendingElement = function(e) {
3126
- this.pendingElements.push(e);
3127
- }, X.prototype.searchExtraCompositions = function(e) {
3128
- var t, n = e.length;
3129
- for (t = 0; t < n; t += 1) if (e[t].xt) {
3130
- var r = this.createComp(e[t]);
3131
- r.initExpressions(), this.globalData.projectInterface.registerComposition(r);
3132
- }
3133
- }, X.prototype.getElementById = function(e) {
3134
- var t, n = this.elements.length;
3135
- for (t = 0; t < n; t += 1) if (this.elements[t].data.ind === e) return this.elements[t];
3136
- return null;
3137
- }, X.prototype.getElementByPath = function(e) {
3138
- var t = e.shift(), n;
3139
- if (typeof t == "number") n = this.elements[t];
3140
- else {
3141
- var r, i = this.elements.length;
3142
- for (r = 0; r < i; r += 1) if (this.elements[r].data.nm === t) {
3143
- n = this.elements[r];
3144
- break;
3145
- }
3146
- }
3147
- return e.length === 0 ? n : n.getElementByPath(e);
3148
- }, X.prototype.setupGlobalData = function(e, t) {
3149
- this.globalData.fontManager = new tn(), this.globalData.slotManager = rn(e), this.globalData.fontManager.addChars(e.chars), this.globalData.fontManager.addFonts(e.fonts, t), this.globalData.getAssetData = this.animationItem.getAssetData.bind(this.animationItem), this.globalData.getAssetsPath = this.animationItem.getAssetsPath.bind(this.animationItem), this.globalData.imageLoader = this.animationItem.imagePreloader, this.globalData.audioController = this.animationItem.audioController, this.globalData.frameId = 0, this.globalData.frameRate = e.fr, this.globalData.nm = e.nm, this.globalData.compSize = {
3150
- w: e.w,
3151
- h: e.h
3152
- };
3153
- };
3154
- var bn = { TRANSFORM_EFFECT: "transformEFfect" };
3155
- function xn() {}
3156
- xn.prototype = {
3157
- initTransform: function() {
3158
- var e = new K();
3159
- this.finalTransform = {
3160
- mProp: this.data.ks ? bt.getTransformProperty(this, this.data.ks, this) : { o: 0 },
3161
- _matMdf: !1,
3162
- _localMatMdf: !1,
3163
- _opMdf: !1,
3164
- mat: e,
3165
- localMat: e,
3166
- localOpacity: 1
3167
- }, this.data.ao && (this.finalTransform.mProp.autoOriented = !0), this.data.ty;
3168
- },
3169
- renderTransform: function() {
3170
- if (this.finalTransform._opMdf = this.finalTransform.mProp.o._mdf || this._isFirstFrame, this.finalTransform._matMdf = this.finalTransform.mProp._mdf || this._isFirstFrame, this.hierarchy) {
3171
- var e, t = this.finalTransform.mat, n = 0, r = this.hierarchy.length;
3172
- if (!this.finalTransform._matMdf) for (; n < r;) {
3173
- if (this.hierarchy[n].finalTransform.mProp._mdf) {
3174
- this.finalTransform._matMdf = !0;
3175
- break;
3176
- }
3177
- n += 1;
3178
- }
3179
- if (this.finalTransform._matMdf) for (e = this.finalTransform.mProp.v.props, t.cloneFromProps(e), n = 0; n < r; n += 1) t.multiply(this.hierarchy[n].finalTransform.mProp.v);
3180
- }
3181
- (!this.localTransforms || this.finalTransform._matMdf) && (this.finalTransform._localMatMdf = this.finalTransform._matMdf), this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v);
3182
- },
3183
- renderLocalTransform: function() {
3184
- if (this.localTransforms) {
3185
- var e = 0, t = this.localTransforms.length;
3186
- if (this.finalTransform._localMatMdf = this.finalTransform._matMdf, !this.finalTransform._localMatMdf || !this.finalTransform._opMdf) for (; e < t;) this.localTransforms[e]._mdf && (this.finalTransform._localMatMdf = !0), this.localTransforms[e]._opMdf && !this.finalTransform._opMdf && (this.finalTransform.localOpacity = this.finalTransform.mProp.o.v, this.finalTransform._opMdf = !0), e += 1;
3187
- if (this.finalTransform._localMatMdf) {
3188
- var n = this.finalTransform.localMat;
3189
- for (this.localTransforms[0].matrix.clone(n), e = 1; e < t; e += 1) {
3190
- var r = this.localTransforms[e].matrix;
3191
- n.multiply(r);
3192
- }
3193
- n.multiply(this.finalTransform.mat);
3194
- }
3195
- if (this.finalTransform._opMdf) {
3196
- var i = this.finalTransform.localOpacity;
3197
- for (e = 0; e < t; e += 1) i *= this.localTransforms[e].opacity * .01;
3198
- this.finalTransform.localOpacity = i;
3199
- }
3200
- }
3201
- },
3202
- searchEffectTransforms: function() {
3203
- if (this.renderableEffectsManager) {
3204
- var e = this.renderableEffectsManager.getEffects(bn.TRANSFORM_EFFECT);
3205
- if (e.length) {
3206
- this.localTransforms = [], this.finalTransform.localMat = new K();
3207
- var t = 0, n = e.length;
3208
- for (t = 0; t < n; t += 1) this.localTransforms.push(e[t]);
3209
- }
3210
- }
3211
- },
3212
- globalToLocal: function(e) {
3213
- var t = [];
3214
- t.push(this.finalTransform);
3215
- for (var n = !0, r = this.comp; n;) r.finalTransform ? (r.data.hasMask && t.splice(0, 0, r.finalTransform), r = r.comp) : n = !1;
3216
- var i, a = t.length, o;
3217
- for (i = 0; i < a; i += 1) o = t[i].mat.applyToPointArray(0, 0, 0), e = [
3218
- e[0] - o[0],
3219
- e[1] - o[1],
3220
- 0
3221
- ];
3222
- return e;
3223
- },
3224
- mHelper: new K()
3225
- };
3226
- function Sn(e, t, n) {
3227
- this.data = e, this.element = t, this.globalData = n, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
3228
- var r = this.globalData.defs, i, a = this.masksProperties ? this.masksProperties.length : 0;
3229
- this.viewData = h(a), this.solidPath = "";
3230
- var o, s = this.masksProperties, c = 0, u = [], d, f, p = L(), m, g, _, v, y = "clipPath", b = "clip-path";
3231
- for (i = 0; i < a; i += 1) if ((s[i].mode !== "a" && s[i].mode !== "n" || s[i].inv || s[i].o.k !== 100 || s[i].o.x) && (y = "mask", b = "mask"), (s[i].mode === "s" || s[i].mode === "i") && c === 0 ? (m = z("rect"), m.setAttribute("fill", "#ffffff"), m.setAttribute("width", this.element.comp.data.w || 0), m.setAttribute("height", this.element.comp.data.h || 0), u.push(m)) : m = null, o = z("path"), s[i].mode === "n") this.viewData[i] = {
3232
- op: U.getProp(this.element, s[i].o, 0, .01, this.element),
3233
- prop: Ye.getShapeProp(this.element, s[i], 3),
3234
- elem: o,
3235
- lastPath: ""
3236
- }, r.appendChild(o);
3237
- else {
3238
- c += 1, o.setAttribute("fill", s[i].mode === "s" ? "#000000" : "#ffffff"), o.setAttribute("clip-rule", "nonzero");
3239
- var x;
3240
- if (s[i].x.k === 0 ? (_ = null, v = null) : (y = "mask", b = "mask", v = U.getProp(this.element, s[i].x, 0, null, this.element), x = L(), g = z("filter"), g.setAttribute("id", x), _ = z("feMorphology"), _.setAttribute("operator", "erode"), _.setAttribute("in", "SourceGraphic"), _.setAttribute("radius", "0"), g.appendChild(_), r.appendChild(g), o.setAttribute("stroke", s[i].mode === "s" ? "#000000" : "#ffffff")), this.storedData[i] = {
3241
- elem: o,
3242
- x: v,
3243
- expan: _,
3244
- lastPath: "",
3245
- lastOperator: "",
3246
- filterId: x,
3247
- lastRadius: 0
3248
- }, s[i].mode === "i") {
3249
- f = u.length;
3250
- var S = z("g");
3251
- for (d = 0; d < f; d += 1) S.appendChild(u[d]);
3252
- var C = z("mask");
3253
- C.setAttribute("mask-type", "alpha"), C.setAttribute("id", p + "_" + c), C.appendChild(o), r.appendChild(C), S.setAttribute("mask", "url(" + l() + "#" + p + "_" + c + ")"), u.length = 0, u.push(S);
3254
- } else u.push(o);
3255
- s[i].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[i] = {
3256
- elem: o,
3257
- lastPath: "",
3258
- op: U.getProp(this.element, s[i].o, 0, .01, this.element),
3259
- prop: Ye.getShapeProp(this.element, s[i], 3),
3260
- invRect: m
3261
- }, this.viewData[i].prop.k || this.drawPath(s[i], this.viewData[i].prop.v, this.viewData[i]);
3262
- }
3263
- for (this.maskElement = z(y), a = u.length, i = 0; i < a; i += 1) this.maskElement.appendChild(u[i]);
3264
- c > 0 && (this.maskElement.setAttribute("id", p), this.element.maskedElement.setAttribute(b, "url(" + l() + "#" + p + ")"), r.appendChild(this.maskElement)), this.viewData.length && this.element.addRenderableComponent(this);
3265
- }
3266
- Sn.prototype.getMaskProperty = function(e) {
3267
- return this.viewData[e].prop;
3268
- }, Sn.prototype.renderFrame = function(e) {
3269
- var t = this.element.finalTransform.mat, n, r = this.masksProperties.length;
3270
- for (n = 0; n < r; n += 1) if ((this.viewData[n].prop._mdf || e) && this.drawPath(this.masksProperties[n], this.viewData[n].prop.v, this.viewData[n]), (this.viewData[n].op._mdf || e) && this.viewData[n].elem.setAttribute("fill-opacity", this.viewData[n].op.v), this.masksProperties[n].mode !== "n" && (this.viewData[n].invRect && (this.element.finalTransform.mProp._mdf || e) && this.viewData[n].invRect.setAttribute("transform", t.getInverseMatrix().to2dCSS()), this.storedData[n].x && (this.storedData[n].x._mdf || e))) {
3271
- var i = this.storedData[n].expan;
3272
- this.storedData[n].x.v < 0 ? (this.storedData[n].lastOperator !== "erode" && (this.storedData[n].lastOperator = "erode", this.storedData[n].elem.setAttribute("filter", "url(" + l() + "#" + this.storedData[n].filterId + ")")), i.setAttribute("radius", -this.storedData[n].x.v)) : (this.storedData[n].lastOperator !== "dilate" && (this.storedData[n].lastOperator = "dilate", this.storedData[n].elem.setAttribute("filter", null)), this.storedData[n].elem.setAttribute("stroke-width", this.storedData[n].x.v * 2));
3273
- }
3274
- }, Sn.prototype.getMaskelement = function() {
3275
- return this.maskElement;
3276
- }, Sn.prototype.createLayerSolidPath = function() {
3277
- var e = "M0,0 ";
3278
- return e += " h" + this.globalData.compSize.w, e += " v" + this.globalData.compSize.h, e += " h-" + this.globalData.compSize.w, e += " v-" + this.globalData.compSize.h + " ", e;
3279
- }, Sn.prototype.drawPath = function(e, t, n) {
3280
- var r = " M" + t.v[0][0] + "," + t.v[0][1], i, a;
3281
- for (a = t._length, i = 1; i < a; i += 1) r += " C" + t.o[i - 1][0] + "," + t.o[i - 1][1] + " " + t.i[i][0] + "," + t.i[i][1] + " " + t.v[i][0] + "," + t.v[i][1];
3282
- if (t.c && a > 1 && (r += " C" + t.o[i - 1][0] + "," + t.o[i - 1][1] + " " + t.i[0][0] + "," + t.i[0][1] + " " + t.v[0][0] + "," + t.v[0][1]), n.lastPath !== r) {
3283
- var o = "";
3284
- n.elem && (t.c && (o = e.inv ? this.solidPath + r : r), n.elem.setAttribute("d", o)), n.lastPath = r;
3285
- }
3286
- }, Sn.prototype.destroy = function() {
3287
- this.element = null, this.globalData = null, this.maskElement = null, this.data = null, this.masksProperties = null;
3288
- };
3289
- var Cn = function() {
3290
- var e = {};
3291
- e.createFilter = t, e.createAlphaToLuminanceFilter = n;
3292
- function t(e, t) {
3293
- var n = z("filter");
3294
- return n.setAttribute("id", e), t !== !0 && (n.setAttribute("filterUnits", "objectBoundingBox"), n.setAttribute("x", "0%"), n.setAttribute("y", "0%"), n.setAttribute("width", "100%"), n.setAttribute("height", "100%")), n;
3295
- }
3296
- function n() {
3297
- var e = z("feColorMatrix");
3298
- return e.setAttribute("type", "matrix"), e.setAttribute("color-interpolation-filters", "sRGB"), e.setAttribute("values", "0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"), e;
3299
- }
3300
- return e;
3301
- }(), wn = function() {
3302
- var e = {
3303
- maskType: !0,
3304
- svgLumaHidden: !0,
3305
- offscreenCanvas: typeof OffscreenCanvas < "u"
3306
- };
3307
- 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;
3308
- }(), Tn = {}, En = "filter_result_";
3309
- function Dn(e) {
3310
- var t, n = "SourceGraphic", r = e.data.ef ? e.data.ef.length : 0, i = L(), a = Cn.createFilter(i, !0), o = 0;
3311
- this.filters = [];
3312
- var s;
3313
- for (t = 0; t < r; t += 1) {
3314
- s = null;
3315
- var c = e.data.ef[t].ty;
3316
- if (Tn[c]) {
3317
- var u = Tn[c].effect;
3318
- s = new u(a, e.effectsManager.effectElements[t], e, En + o, n), n = En + o, Tn[c].countsAsEffect && (o += 1);
3319
- }
3320
- s && this.filters.push(s);
3321
- }
3322
- o && (e.globalData.defs.appendChild(a), e.layerElement.setAttribute("filter", "url(" + l() + "#" + i + ")")), this.filters.length && e.addRenderableComponent(this);
3323
- }
3324
- Dn.prototype.renderFrame = function(e) {
3325
- var t, n = this.filters.length;
3326
- for (t = 0; t < n; t += 1) this.filters[t].renderFrame(e);
3327
- }, Dn.prototype.getEffects = function(e) {
3328
- var t, n = this.filters.length, r = [];
3329
- for (t = 0; t < n; t += 1) this.filters[t].type === e && r.push(this.filters[t]);
3330
- return r;
3331
- };
3332
- function On() {}
3333
- On.prototype = {
3334
- initRendererElement: function() {
3335
- this.layerElement = z("g");
3336
- },
3337
- createContainerElements: function() {
3338
- this.matteElement = z("g"), this.transformedElement = this.layerElement, this.maskedElement = this.layerElement, this._sizeChanged = !1;
3339
- var e = null;
3340
- if (this.data.td) {
3341
- this.matteMasks = {};
3342
- var t = z("g");
3343
- t.setAttribute("id", this.layerId), t.appendChild(this.layerElement), e = t, this.globalData.defs.appendChild(t);
3344
- } else this.data.tt ? (this.matteElement.appendChild(this.layerElement), e = this.matteElement, this.baseElement = this.matteElement) : this.baseElement = this.layerElement;
3345
- if (this.data.ln && this.layerElement.setAttribute("id", this.data.ln), this.data.cl && this.layerElement.setAttribute("class", this.data.cl), this.data.ty === 0 && !this.data.hd) {
3346
- var n = z("clipPath"), r = z("path");
3347
- r.setAttribute("d", "M0,0 L" + this.data.w + ",0 L" + this.data.w + "," + this.data.h + " L0," + this.data.h + "z");
3348
- var i = L();
3349
- if (n.setAttribute("id", i), n.appendChild(r), this.globalData.defs.appendChild(n), this.checkMasks()) {
3350
- var a = z("g");
3351
- a.setAttribute("clip-path", "url(" + l() + "#" + i + ")"), a.appendChild(this.layerElement), this.transformedElement = a, e ? e.appendChild(this.transformedElement) : this.baseElement = this.transformedElement;
3352
- } else this.layerElement.setAttribute("clip-path", "url(" + l() + "#" + i + ")");
3353
- }
3354
- this.data.bm !== 0 && this.setBlendMode();
3355
- },
3356
- renderElement: function() {
3357
- this.finalTransform._localMatMdf && this.transformedElement.setAttribute("transform", this.finalTransform.localMat.to2dCSS()), this.finalTransform._opMdf && this.transformedElement.setAttribute("opacity", this.finalTransform.localOpacity);
3358
- },
3359
- destroyBaseElement: function() {
3360
- this.layerElement = null, this.matteElement = null, this.maskManager.destroy();
3361
- },
3362
- getBaseElement: function() {
3363
- return this.data.hd ? null : this.baseElement;
3364
- },
3365
- createRenderableComponents: function() {
3366
- this.maskManager = new Sn(this.data, this, this.globalData), this.renderableEffectsManager = new Dn(this), this.searchEffectTransforms();
3367
- },
3368
- getMatte: function(e) {
3369
- if (this.matteMasks ||= {}, !this.matteMasks[e]) {
3370
- var t = this.layerId + "_" + e, n, r, i, a;
3371
- if (e === 1 || e === 3) {
3372
- var o = z("mask");
3373
- o.setAttribute("id", t), o.setAttribute("mask-type", e === 3 ? "luminance" : "alpha"), i = z("use"), i.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), o.appendChild(i), this.globalData.defs.appendChild(o), !wn.maskType && e === 1 && (o.setAttribute("mask-type", "luminance"), n = L(), r = Cn.createFilter(n), this.globalData.defs.appendChild(r), r.appendChild(Cn.createAlphaToLuminanceFilter()), a = z("g"), a.appendChild(i), o.appendChild(a), a.setAttribute("filter", "url(" + l() + "#" + n + ")"));
3374
- } else if (e === 2) {
3375
- var s = z("mask");
3376
- s.setAttribute("id", t), s.setAttribute("mask-type", "alpha");
3377
- var c = z("g");
3378
- s.appendChild(c), n = L(), r = Cn.createFilter(n);
3379
- var u = z("feComponentTransfer");
3380
- u.setAttribute("in", "SourceGraphic"), r.appendChild(u);
3381
- var d = z("feFuncA");
3382
- d.setAttribute("type", "table"), d.setAttribute("tableValues", "1.0 0.0"), u.appendChild(d), this.globalData.defs.appendChild(r);
3383
- var f = z("rect");
3384
- f.setAttribute("width", this.comp.data.w), f.setAttribute("height", this.comp.data.h), f.setAttribute("x", "0"), f.setAttribute("y", "0"), f.setAttribute("fill", "#ffffff"), f.setAttribute("opacity", "0"), c.setAttribute("filter", "url(" + l() + "#" + n + ")"), c.appendChild(f), i = z("use"), i.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), c.appendChild(i), wn.maskType || (s.setAttribute("mask-type", "luminance"), r.appendChild(Cn.createAlphaToLuminanceFilter()), a = z("g"), c.appendChild(f), a.appendChild(this.layerElement), c.appendChild(a)), this.globalData.defs.appendChild(s);
3385
- }
3386
- this.matteMasks[e] = t;
3387
- }
3388
- return this.matteMasks[e];
3389
- },
3390
- setMatte: function(e) {
3391
- this.matteElement && this.matteElement.setAttribute("mask", "url(" + l() + "#" + e + ")");
3392
- }
3393
- };
3394
- function kn() {}
3395
- kn.prototype = {
3396
- initHierarchy: function() {
3397
- this.hierarchy = [], this._isParent = !1, this.checkParenting();
3398
- },
3399
- setHierarchy: function(e) {
3400
- this.hierarchy = e;
3401
- },
3402
- setAsParent: function() {
3403
- this._isParent = !0;
3404
- },
3405
- checkParenting: function() {
3406
- this.data.parent !== void 0 && this.comp.buildElementParenting(this, this.data.parent, []);
3407
- }
3408
- };
3409
- function An() {}
3410
- (function() {
3411
- var e = {
3412
- initElement: function(e, t, n) {
3413
- this.initFrame(), this.initBaseData(e, t, n), this.initTransform(e, t, n), this.initHierarchy(), this.initRenderable(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), this.createContent(), this.hide();
3414
- },
3415
- hide: function() {
3416
- if (!this.hidden && (!this.isInRange || this.isTransparent)) {
3417
- var e = this.baseElement || this.layerElement;
3418
- e.style.display = "none", this.hidden = !0;
3419
- }
3420
- },
3421
- show: function() {
3422
- if (this.isInRange && !this.isTransparent) {
3423
- if (!this.data.hd) {
3424
- var e = this.baseElement || this.layerElement;
3425
- e.style.display = "block";
3426
- }
3427
- this.hidden = !1, this._isFirstFrame = !0;
3428
- }
3429
- },
3430
- renderFrame: function() {
3431
- this.data.hd || this.hidden || (this.renderTransform(), this.renderRenderable(), this.renderLocalTransform(), this.renderElement(), this.renderInnerContent(), this._isFirstFrame &&= !1);
3432
- },
3433
- renderInnerContent: function() {},
3434
- prepareFrame: function(e) {
3435
- this._mdf = !1, this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange), this.checkTransparency();
3436
- },
3437
- destroy: function() {
3438
- this.innerElem = null, this.destroyBaseElement();
3439
- }
3440
- };
3441
- d([an, f(e)], An);
3442
- })();
3443
- function jn(e, t, n) {
3444
- this.assetData = t.getAssetData(e.refId), this.assetData && this.assetData.sid && (this.assetData = t.slotManager.getProp(this.assetData)), this.initElement(e, t, n), this.sourceRect = {
3445
- top: 0,
3446
- left: 0,
3447
- width: this.assetData.w,
3448
- height: this.assetData.h
3449
- };
3450
- }
3451
- d([
3452
- _n,
3453
- xn,
3454
- On,
3455
- kn,
3456
- vn,
3457
- An
3458
- ], jn), jn.prototype.createContent = function() {
3459
- var e = this.globalData.getAssetsPath(this.assetData);
3460
- this.innerElem = z("image"), this.innerElem.setAttribute("width", this.assetData.w + "px"), this.innerElem.setAttribute("height", this.assetData.h + "px"), this.innerElem.setAttribute("preserveAspectRatio", this.assetData.pr || this.globalData.renderConfig.imagePreserveAspectRatio), this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink", "href", e), this.layerElement.appendChild(this.innerElem);
3461
- }, jn.prototype.sourceRectAtTime = function() {
3462
- return this.sourceRect;
3463
- };
3464
- function Mn(e, t) {
3465
- this.elem = e, this.pos = t;
3466
- }
3467
- function Nn() {}
3468
- Nn.prototype = {
3469
- addShapeToModifiers: function(e) {
3470
- var t, n = this.shapeModifiers.length;
3471
- for (t = 0; t < n; t += 1) this.shapeModifiers[t].addShape(e);
3472
- },
3473
- isShapeInAnimatedModifiers: function(e) {
3474
- for (var t = 0, n = this.shapeModifiers.length; t < n;) if (this.shapeModifiers[t].isAnimatedWithShape(e)) return !0;
3475
- return !1;
3476
- },
3477
- renderModifiers: function() {
3478
- if (this.shapeModifiers.length) {
3479
- var e, t = this.shapes.length;
3480
- for (e = 0; e < t; e += 1) this.shapes[e].sh.reset();
3481
- t = this.shapeModifiers.length;
3482
- var n;
3483
- for (e = t - 1; e >= 0 && (n = this.shapeModifiers[e].processShapes(this._isFirstFrame), !n); --e);
3484
- }
3485
- },
3486
- searchProcessedElement: function(e) {
3487
- for (var t = this.processedElements, n = 0, r = t.length; n < r;) {
3488
- if (t[n].elem === e) return t[n].pos;
3489
- n += 1;
3490
- }
3491
- return 0;
3492
- },
3493
- addProcessedElement: function(e, t) {
3494
- for (var n = this.processedElements, r = n.length; r;) if (--r, n[r].elem === e) {
3495
- n[r].pos = t;
3496
- return;
3497
- }
3498
- n.push(new Mn(e, t));
3499
- },
3500
- prepareFrame: function(e) {
3501
- this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange);
3502
- }
3503
- };
3504
- var Pn = {
3505
- 1: "butt",
3506
- 2: "round",
3507
- 3: "square"
3508
- }, Fn = {
3509
- 1: "miter",
3510
- 2: "round",
3511
- 3: "bevel"
3512
- };
3513
- function In(e, t, n) {
3514
- this.caches = [], this.styles = [], this.transformers = e, this.lStr = "", this.sh = n, this.lvl = t, this._isAnimated = !!n.k;
3515
- for (var r = 0, i = e.length; r < i;) {
3516
- if (e[r].mProps.dynamicProperties.length) {
3517
- this._isAnimated = !0;
3518
- break;
3519
- }
3520
- r += 1;
3521
- }
3522
- }
3523
- In.prototype.setAsAnimated = function() {
3524
- this._isAnimated = !0;
3525
- };
3526
- function Ln(e, t) {
3527
- this.data = e, this.type = e.ty, this.d = "", this.lvl = t, this._mdf = !1, this.closed = e.hd === !0, this.pElem = z("path"), this.msElem = null;
3528
- }
3529
- Ln.prototype.reset = function() {
3530
- this.d = "", this._mdf = !1;
3531
- };
3532
- function Rn(e, t, n, r) {
3533
- this.elem = e, this.frameId = -1, this.dataProps = h(t.length), this.renderer = n, this.k = !1, this.dashStr = "", this.dashArray = m("float32", t.length ? t.length - 1 : 0), this.dashoffset = m("float32", 1), this.initDynamicPropertyContainer(r);
3534
- var i, a = t.length || 0, o;
3535
- for (i = 0; i < a; i += 1) o = U.getProp(e, t[i].v, 0, 0, this), this.k = o.k || this.k, this.dataProps[i] = {
3536
- n: t[i].n,
3537
- p: o
3538
- };
3539
- this.k || this.getValue(!0), this._isAnimated = this.k;
3540
- }
3541
- Rn.prototype.getValue = function(e) {
3542
- if (!(this.elem.globalData.frameId === this.frameId && !e) && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf = this._mdf || e, this._mdf)) {
3543
- var t = 0, n = this.dataProps.length;
3544
- for (this.renderer === "svg" && (this.dashStr = ""), t = 0; t < n; t += 1) this.dataProps[t].n === "o" ? this.dashoffset[0] = this.dataProps[t].p.v : this.renderer === "svg" ? this.dashStr += " " + this.dataProps[t].p.v : this.dashArray[t] = this.dataProps[t].p.v;
3545
- }
3546
- }, d([W], Rn);
3547
- function zn(e, t, n) {
3548
- this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.o = U.getProp(e, t.o, 0, .01, this), this.w = U.getProp(e, t.w, 0, null, this), this.d = new Rn(e, t.d || {}, "svg", this), this.c = U.getProp(e, t.c, 1, 255, this), this.style = n, this._isAnimated = !!this._isAnimated;
3549
- }
3550
- d([W], zn);
3551
- function Bn(e, t, n) {
3552
- this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.o = U.getProp(e, t.o, 0, .01, this), this.c = U.getProp(e, t.c, 1, 255, this), this.style = n;
3553
- }
3554
- d([W], Bn);
3555
- function Vn(e, t, n) {
3556
- this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.style = n;
3557
- }
3558
- d([W], Vn);
3559
- function Hn(e, t, n) {
3560
- this.data = t, this.c = m("uint8c", t.p * 4);
3561
- var r = t.k.k[0].s ? t.k.k[0].s.length - t.p * 4 : t.k.k.length - t.p * 4;
3562
- this.o = m("float32", r), this._cmdf = !1, this._omdf = !1, this._collapsable = this.checkCollapsable(), this._hasOpacity = r, this.initDynamicPropertyContainer(n), this.prop = U.getProp(e, t.k, 1, null, this), this.k = this.prop.k, this.getValue(!0);
3563
- }
3564
- Hn.prototype.comparePoints = function(e, t) {
3565
- for (var n = 0, r = this.o.length / 2, i; n < r;) {
3566
- if (i = Math.abs(e[n * 4] - e[t * 4 + n * 2]), i > .01) return !1;
3567
- n += 1;
3568
- }
3569
- return !0;
3570
- }, Hn.prototype.checkCollapsable = function() {
3571
- if (this.o.length / 2 != this.c.length / 4) return !1;
3572
- if (this.data.k.k[0].s) for (var e = 0, t = this.data.k.k.length; e < t;) {
3573
- if (!this.comparePoints(this.data.k.k[e].s, this.data.p)) return !1;
3574
- e += 1;
3575
- }
3576
- else if (!this.comparePoints(this.data.k.k, this.data.p)) return !1;
3577
- return !0;
3578
- }, Hn.prototype.getValue = function(e) {
3579
- if (this.prop.getValue(), this._mdf = !1, this._cmdf = !1, this._omdf = !1, this.prop._mdf || e) {
3580
- var t, n = this.data.p * 4, r, i;
3581
- for (t = 0; t < n; t += 1) r = t % 4 == 0 ? 100 : 255, i = Math.round(this.prop.v[t] * r), this.c[t] !== i && (this.c[t] = i, this._cmdf = !e);
3582
- if (this.o.length) for (n = this.prop.v.length, t = this.data.p * 4; t < n; t += 1) r = t % 2 == 0 ? 100 : 1, i = t % 2 == 0 ? Math.round(this.prop.v[t] * 100) : this.prop.v[t], this.o[t - this.data.p * 4] !== i && (this.o[t - this.data.p * 4] = i, this._omdf = !e);
3583
- this._mdf = !e;
3584
- }
3585
- }, d([W], Hn);
3586
- function Un(e, t, n) {
3587
- this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.initGradientData(e, t, n);
3588
- }
3589
- Un.prototype.initGradientData = function(e, t, n) {
3590
- this.o = U.getProp(e, t.o, 0, .01, this), this.s = U.getProp(e, t.s, 1, null, this), this.e = U.getProp(e, t.e, 1, null, this), this.h = U.getProp(e, t.h || { k: 0 }, 0, .01, this), this.a = U.getProp(e, t.a || { k: 0 }, 0, k, this), this.g = new Hn(e, t.g, this), this.style = n, this.stops = [], this.setGradientData(n.pElem, t), this.setGradientOpacity(t, n), this._isAnimated = !!this._isAnimated;
3591
- }, Un.prototype.setGradientData = function(e, t) {
3592
- var n = L(), r = z(t.t === 1 ? "linearGradient" : "radialGradient");
3593
- r.setAttribute("id", n), r.setAttribute("spreadMethod", "pad"), r.setAttribute("gradientUnits", "userSpaceOnUse");
3594
- var i = [], a, o, s;
3595
- for (s = t.g.p * 4, o = 0; o < s; o += 4) a = z("stop"), r.appendChild(a), i.push(a);
3596
- e.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + l() + "#" + n + ")"), this.gf = r, this.cst = i;
3597
- }, Un.prototype.setGradientOpacity = function(e, t) {
3598
- if (this.g._hasOpacity && !this.g._collapsable) {
3599
- var n, r, i, a = z("mask"), o = z("path");
3600
- a.appendChild(o);
3601
- var s = L(), c = L();
3602
- a.setAttribute("id", c);
3603
- var u = z(e.t === 1 ? "linearGradient" : "radialGradient");
3604
- u.setAttribute("id", s), u.setAttribute("spreadMethod", "pad"), u.setAttribute("gradientUnits", "userSpaceOnUse"), i = e.g.k.k[0].s ? e.g.k.k[0].s.length : e.g.k.k.length;
3605
- var d = this.stops;
3606
- for (r = e.g.p * 4; r < i; r += 2) n = z("stop"), n.setAttribute("stop-color", "rgb(255,255,255)"), u.appendChild(n), d.push(n);
3607
- o.setAttribute(e.ty === "gf" ? "fill" : "stroke", "url(" + l() + "#" + s + ")"), e.ty === "gs" && (o.setAttribute("stroke-linecap", Pn[e.lc || 2]), o.setAttribute("stroke-linejoin", Fn[e.lj || 2]), e.lj === 1 && o.setAttribute("stroke-miterlimit", e.ml)), this.of = u, this.ms = a, this.ost = d, this.maskId = c, t.msElem = o;
3608
- }
3609
- }, d([W], Un);
3610
- function Wn(e, t, n) {
3611
- this.initDynamicPropertyContainer(e), this.getValue = this.iterateDynamicProperties, this.w = U.getProp(e, t.w, 0, null, this), this.d = new Rn(e, t.d || {}, "svg", this), this.initGradientData(e, t, n), this._isAnimated = !!this._isAnimated;
3612
- }
3613
- d([Un, W], Wn);
3614
- function Gn() {
3615
- this.it = [], this.prevViewData = [], this.gr = z("g");
3616
- }
3617
- function Kn(e, t, n) {
3618
- this.transform = {
3619
- mProps: e,
3620
- op: t,
3621
- container: n
3622
- }, this.elements = [], this._isAnimated = this.transform.mProps.dynamicProperties.length || this.transform.op.effectsSequence.length;
3623
- }
3624
- var qn = function(e, t, n, r) {
3625
- if (t === 0) return "";
3626
- var i = e.o, a = e.i, o = e.v, s, c = " M" + r.applyToPointStringified(o[0][0], o[0][1]);
3627
- for (s = 1; s < t; s += 1) c += " C" + r.applyToPointStringified(i[s - 1][0], i[s - 1][1]) + " " + r.applyToPointStringified(a[s][0], a[s][1]) + " " + r.applyToPointStringified(o[s][0], o[s][1]);
3628
- return n && t && (c += " C" + r.applyToPointStringified(i[s - 1][0], i[s - 1][1]) + " " + r.applyToPointStringified(a[0][0], a[0][1]) + " " + r.applyToPointStringified(o[0][0], o[0][1]), c += "z"), c;
3629
- }, Jn = function() {
3630
- var e = new K(), t = new K(), n = { createRenderFunction: r };
3631
- function r(e) {
3632
- switch (e.ty) {
3633
- case "fl": return s;
3634
- case "gf": return l;
3635
- case "gs": return c;
3636
- case "st": return u;
3637
- case "sh":
3638
- case "el":
3639
- case "rc":
3640
- case "sr": return o;
3641
- case "tr": return i;
3642
- case "no": return a;
3643
- default: return null;
3644
- }
3645
- }
3646
- function i(e, t, n) {
3647
- (n || t.transform.op._mdf) && t.transform.container.setAttribute("opacity", t.transform.op.v), (n || t.transform.mProps._mdf) && t.transform.container.setAttribute("transform", t.transform.mProps.v.to2dCSS());
3648
- }
3649
- function a() {}
3650
- function o(n, r, i) {
3651
- var a, o, s, c, l, u, d = r.styles.length, f = r.lvl, p, m, h, g;
3652
- for (u = 0; u < d; u += 1) {
3653
- if (c = r.sh._mdf || i, r.styles[u].lvl < f) {
3654
- for (m = t.reset(), h = f - r.styles[u].lvl, g = r.transformers.length - 1; !c && h > 0;) c = r.transformers[g].mProps._mdf || c, --h, --g;
3655
- if (c) for (h = f - r.styles[u].lvl, g = r.transformers.length - 1; h > 0;) m.multiply(r.transformers[g].mProps.v), --h, --g;
3656
- } else m = e;
3657
- if (p = r.sh.paths, o = p._length, c) {
3658
- for (s = "", a = 0; a < o; a += 1) l = p.shapes[a], l && l._length && (s += qn(l, l._length, l.c, m));
3659
- r.caches[u] = s;
3660
- } else s = r.caches[u];
3661
- r.styles[u].d += n.hd === !0 ? "" : s, r.styles[u]._mdf = c || r.styles[u]._mdf;
3662
- }
3663
- }
3664
- function s(e, t, n) {
3665
- var r = t.style;
3666
- (t.c._mdf || n) && r.pElem.setAttribute("fill", "rgb(" + T(t.c.v[0]) + "," + T(t.c.v[1]) + "," + T(t.c.v[2]) + ")"), (t.o._mdf || n) && r.pElem.setAttribute("fill-opacity", t.o.v);
3667
- }
3668
- function c(e, t, n) {
3669
- l(e, t, n), u(e, t, n);
3670
- }
3671
- function l(e, t, n) {
3672
- var r = t.gf, i = t.g._hasOpacity, a = t.s.v, o = t.e.v;
3673
- if (t.o._mdf || n) {
3674
- var s = e.ty === "gf" ? "fill-opacity" : "stroke-opacity";
3675
- t.style.pElem.setAttribute(s, t.o.v);
3676
- }
3677
- if (t.s._mdf || n) {
3678
- var c = e.t === 1 ? "x1" : "cx", l = c === "x1" ? "y1" : "cy";
3679
- r.setAttribute(c, a[0]), r.setAttribute(l, a[1]), i && !t.g._collapsable && (t.of.setAttribute(c, a[0]), t.of.setAttribute(l, a[1]));
3680
- }
3681
- var u, d, f, p;
3682
- if (t.g._cmdf || n) {
3683
- u = t.cst;
3684
- var m = t.g.c;
3685
- for (f = u.length, d = 0; d < f; d += 1) p = u[d], p.setAttribute("offset", m[d * 4] + "%"), p.setAttribute("stop-color", "rgb(" + m[d * 4 + 1] + "," + m[d * 4 + 2] + "," + m[d * 4 + 3] + ")");
3686
- }
3687
- if (i && (t.g._omdf || n)) {
3688
- var h = t.g.o;
3689
- for (u = t.g._collapsable ? t.cst : t.ost, f = u.length, d = 0; d < f; d += 1) p = u[d], t.g._collapsable || p.setAttribute("offset", h[d * 2] + "%"), p.setAttribute("stop-opacity", h[d * 2 + 1]);
3690
- }
3691
- if (e.t === 1) (t.e._mdf || n) && (r.setAttribute("x2", o[0]), r.setAttribute("y2", o[1]), i && !t.g._collapsable && (t.of.setAttribute("x2", o[0]), t.of.setAttribute("y2", o[1])));
3692
- else {
3693
- var g;
3694
- if ((t.s._mdf || t.e._mdf || n) && (g = Math.sqrt((a[0] - o[0]) ** 2 + (a[1] - o[1]) ** 2), r.setAttribute("r", g), i && !t.g._collapsable && t.of.setAttribute("r", g)), t.s._mdf || t.e._mdf || t.h._mdf || t.a._mdf || n) {
3695
- g ||= Math.sqrt((a[0] - o[0]) ** 2 + (a[1] - o[1]) ** 2);
3696
- var _ = Math.atan2(o[1] - a[1], o[0] - a[0]), v = t.h.v;
3697
- v >= 1 ? v = .99 : v <= -1 && (v = -.99);
3698
- var y = g * v, b = Math.cos(_ + t.a.v) * y + a[0], x = Math.sin(_ + t.a.v) * y + a[1];
3699
- r.setAttribute("fx", b), r.setAttribute("fy", x), i && !t.g._collapsable && (t.of.setAttribute("fx", b), t.of.setAttribute("fy", x));
3700
- }
3701
- }
3702
- }
3703
- function u(e, t, n) {
3704
- var r = t.style, i = t.d;
3705
- i && (i._mdf || n) && i.dashStr && (r.pElem.setAttribute("stroke-dasharray", i.dashStr), r.pElem.setAttribute("stroke-dashoffset", i.dashoffset[0])), t.c && (t.c._mdf || n) && r.pElem.setAttribute("stroke", "rgb(" + T(t.c.v[0]) + "," + T(t.c.v[1]) + "," + T(t.c.v[2]) + ")"), (t.o._mdf || n) && r.pElem.setAttribute("stroke-opacity", t.o.v), (t.w._mdf || n) && (r.pElem.setAttribute("stroke-width", t.w.v), r.msElem && r.msElem.setAttribute("stroke-width", t.w.v));
3706
- }
3707
- return n;
3708
- }();
3709
- function Z(e, t, n) {
3710
- this.shapes = [], this.shapesData = e.shapes, this.stylesList = [], this.shapeModifiers = [], this.itemsData = [], this.processedElements = [], this.animatedContents = [], this.initElement(e, t, n), this.prevViewData = [];
3711
- }
3712
- d([
3713
- _n,
3714
- xn,
3715
- On,
3716
- Nn,
3717
- kn,
3718
- vn,
3719
- An
3720
- ], Z), Z.prototype.initSecondaryElement = function() {}, Z.prototype.identityMatrix = new K(), Z.prototype.buildExpressionInterface = function() {}, Z.prototype.createContent = function() {
3721
- this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes();
3722
- }, Z.prototype.filterUniqueShapes = function() {
3723
- var e, t = this.shapes.length, n, r, i = this.stylesList.length, a, o = [], s = !1;
3724
- for (r = 0; r < i; r += 1) {
3725
- for (a = this.stylesList[r], s = !1, o.length = 0, e = 0; e < t; e += 1) n = this.shapes[e], n.styles.indexOf(a) !== -1 && (o.push(n), s = n._isAnimated || s);
3726
- o.length > 1 && s && this.setShapesAsAnimated(o);
3727
- }
3728
- }, Z.prototype.setShapesAsAnimated = function(e) {
3729
- var t, n = e.length;
3730
- for (t = 0; t < n; t += 1) e[t].setAsAnimated();
3731
- }, Z.prototype.createStyleElement = function(e, t) {
3732
- var n, r = new Ln(e, t), i = r.pElem;
3733
- if (e.ty === "st") n = new zn(this, e, r);
3734
- else if (e.ty === "fl") n = new Bn(this, e, r);
3735
- else if (e.ty === "gf" || e.ty === "gs") {
3736
- var a = e.ty === "gf" ? Un : Wn;
3737
- n = new a(this, e, r), this.globalData.defs.appendChild(n.gf), n.maskId && (this.globalData.defs.appendChild(n.ms), this.globalData.defs.appendChild(n.of), i.setAttribute("mask", "url(" + l() + "#" + n.maskId + ")"));
3738
- } else e.ty === "no" && (n = new Vn(this, e, r));
3739
- return (e.ty === "st" || e.ty === "gs") && (i.setAttribute("stroke-linecap", Pn[e.lc || 2]), i.setAttribute("stroke-linejoin", Fn[e.lj || 2]), i.setAttribute("fill-opacity", "0"), e.lj === 1 && i.setAttribute("stroke-miterlimit", e.ml)), e.r === 2 && i.setAttribute("fill-rule", "evenodd"), e.ln && i.setAttribute("id", e.ln), e.cl && i.setAttribute("class", e.cl), e.bm && (i.style["mix-blend-mode"] = on(e.bm)), this.stylesList.push(r), this.addToAnimatedContents(e, n), n;
3740
- }, Z.prototype.createGroupElement = function(e) {
3741
- var t = new Gn();
3742
- return e.ln && t.gr.setAttribute("id", e.ln), e.cl && t.gr.setAttribute("class", e.cl), e.bm && (t.gr.style["mix-blend-mode"] = on(e.bm)), t;
3743
- }, Z.prototype.createTransformElement = function(e, t) {
3744
- var n = bt.getTransformProperty(this, e, this), r = new Kn(n, n.o, t);
3745
- return this.addToAnimatedContents(e, r), r;
3746
- }, Z.prototype.createShapeElement = function(e, t, n) {
3747
- var r = 4;
3748
- e.ty === "rc" ? r = 5 : e.ty === "el" ? r = 6 : e.ty === "sr" && (r = 7);
3749
- var i = Ye.getShapeProp(this, e, r, this), a = new In(t, n, i);
3750
- return this.shapes.push(a), this.addShapeToModifiers(a), this.addToAnimatedContents(e, a), a;
3751
- }, Z.prototype.addToAnimatedContents = function(e, t) {
3752
- for (var n = 0, r = this.animatedContents.length; n < r;) {
3753
- if (this.animatedContents[n].element === t) return;
3754
- n += 1;
3755
- }
3756
- this.animatedContents.push({
3757
- fn: Jn.createRenderFunction(e),
3758
- element: t,
3759
- data: e
3760
- });
3761
- }, Z.prototype.setElementStyles = function(e) {
3762
- var t = e.styles, n, r = this.stylesList.length;
3763
- for (n = 0; n < r; n += 1) t.indexOf(this.stylesList[n]) === -1 && !this.stylesList[n].closed && t.push(this.stylesList[n]);
3764
- }, Z.prototype.reloadShapes = function() {
3765
- this._isFirstFrame = !0;
3766
- var e, t = this.itemsData.length;
3767
- for (e = 0; e < t; e += 1) this.prevViewData[e] = this.itemsData[e];
3768
- for (this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes(), t = this.dynamicProperties.length, e = 0; e < t; e += 1) this.dynamicProperties[e].getValue();
3769
- this.renderModifiers();
3770
- }, Z.prototype.searchShapes = function(e, t, n, r, i, a, o) {
3771
- var s = [].concat(a), c, l = e.length - 1, u, d, f = [], p = [], m, h, g;
3772
- for (c = l; c >= 0; --c) {
3773
- if (g = this.searchProcessedElement(e[c]), g ? t[c] = n[g - 1] : e[c]._render = o, e[c].ty === "fl" || e[c].ty === "st" || e[c].ty === "gf" || e[c].ty === "gs" || e[c].ty === "no") g ? t[c].style.closed = e[c].hd : t[c] = this.createStyleElement(e[c], i), e[c]._render && t[c].style.pElem.parentNode !== r && r.appendChild(t[c].style.pElem), f.push(t[c].style);
3774
- else if (e[c].ty === "gr") {
3775
- if (!g) t[c] = this.createGroupElement(e[c]);
3776
- else for (d = t[c].it.length, u = 0; u < d; u += 1) t[c].prevViewData[u] = t[c].it[u];
3777
- this.searchShapes(e[c].it, t[c].it, t[c].prevViewData, t[c].gr, i + 1, s, o), e[c]._render && t[c].gr.parentNode !== r && r.appendChild(t[c].gr);
3778
- } else e[c].ty === "tr" ? (g || (t[c] = this.createTransformElement(e[c], r)), m = t[c].transform, s.push(m)) : e[c].ty === "sh" || e[c].ty === "rc" || e[c].ty === "el" || e[c].ty === "sr" ? (g || (t[c] = this.createShapeElement(e[c], s, i)), this.setElementStyles(t[c])) : e[c].ty === "tm" || e[c].ty === "rd" || e[c].ty === "ms" || e[c].ty === "pb" || e[c].ty === "zz" || e[c].ty === "op" ? (g ? (h = t[c], h.closed = !1) : (h = gt.getModifier(e[c].ty), h.init(this, e[c]), t[c] = h, this.shapeModifiers.push(h)), p.push(h)) : e[c].ty === "rp" && (g ? (h = t[c], h.closed = !0) : (h = gt.getModifier(e[c].ty), t[c] = h, h.init(this, e, c, t), this.shapeModifiers.push(h), o = !1), p.push(h));
3779
- this.addProcessedElement(e[c], c + 1);
3780
- }
3781
- for (l = f.length, c = 0; c < l; c += 1) f[c].closed = !0;
3782
- for (l = p.length, c = 0; c < l; c += 1) p[c].closed = !0;
3783
- }, Z.prototype.renderInnerContent = function() {
3784
- this.renderModifiers();
3785
- var e, t = this.stylesList.length;
3786
- for (e = 0; e < t; e += 1) this.stylesList[e].reset();
3787
- for (this.renderShape(), e = 0; e < t; e += 1) (this.stylesList[e]._mdf || this._isFirstFrame) && (this.stylesList[e].msElem && (this.stylesList[e].msElem.setAttribute("d", this.stylesList[e].d), this.stylesList[e].d = "M0 0" + this.stylesList[e].d), this.stylesList[e].pElem.setAttribute("d", this.stylesList[e].d || "M0 0"));
3788
- }, Z.prototype.renderShape = function() {
3789
- var e, t = this.animatedContents.length, n;
3790
- for (e = 0; e < t; e += 1) n = this.animatedContents[e], (this._isFirstFrame || n.element._isAnimated) && n.data !== !0 && n.fn(n.data, n.element, this._isFirstFrame);
3791
- }, Z.prototype.destroy = function() {
3792
- this.destroyBaseElement(), this.shapesData = null, this.itemsData = null;
3793
- };
3794
- function Yn(e, t, n, r, i, a) {
3795
- this.o = e, this.sw = t, this.sc = n, this.fc = r, this.m = i, this.p = a, this._mdf = {
3796
- o: !0,
3797
- sw: !!t,
3798
- sc: !!n,
3799
- fc: !!r,
3800
- m: !0,
3801
- p: !0
3802
- };
3803
- }
3804
- Yn.prototype.update = function(e, t, n, r, i, a) {
3805
- this._mdf.o = !1, this._mdf.sw = !1, this._mdf.sc = !1, this._mdf.fc = !1, this._mdf.m = !1, this._mdf.p = !1;
3806
- var o = !1;
3807
- return this.o !== e && (this.o = e, this._mdf.o = !0, o = !0), this.sw !== t && (this.sw = t, this._mdf.sw = !0, o = !0), this.sc !== n && (this.sc = n, this._mdf.sc = !0, o = !0), this.fc !== r && (this.fc = r, this._mdf.fc = !0, o = !0), this.m !== i && (this.m = i, this._mdf.m = !0, o = !0), a.length && (this.p[0] !== a[0] || this.p[1] !== a[1] || this.p[4] !== a[4] || this.p[5] !== a[5] || this.p[12] !== a[12] || this.p[13] !== a[13]) && (this.p = a, this._mdf.p = !0, o = !0), o;
3808
- };
3809
- function Q(e, t) {
3810
- this._frameId = a, this.pv = "", this.v = "", this.kf = !1, this._isFirstFrame = !0, this._mdf = !1, t.d && t.d.sid && (t.d = e.globalData.slotManager.getProp(t.d)), this.data = t, this.elem = e, this.comp = this.elem.comp, this.keysIndex = 0, this.canResize = !1, this.minimumFontSize = 1, this.effectsSequence = [], this.currentData = {
3811
- ascent: 0,
3812
- boxWidth: this.defaultBoxWidth,
3813
- f: "",
3814
- fStyle: "",
3815
- fWeight: "",
3816
- fc: "",
3817
- j: "",
3818
- justifyOffset: "",
3819
- l: [],
3820
- lh: 0,
3821
- lineWidths: [],
3822
- ls: "",
3823
- of: "",
3824
- s: "",
3825
- sc: "",
3826
- sw: 0,
3827
- t: 0,
3828
- tr: 0,
3829
- sz: 0,
3830
- ps: null,
3831
- fillColorAnim: !1,
3832
- strokeColorAnim: !1,
3833
- strokeWidthAnim: !1,
3834
- yOffset: 0,
3835
- finalSize: 0,
3836
- finalText: [],
3837
- finalLineHeight: 0,
3838
- __complete: !1
3839
- }, this.copyData(this.currentData, this.data.d.k[0].s), this.searchProperty() || this.completeTextData(this.currentData);
3840
- }
3841
- Q.prototype.defaultBoxWidth = [0, 0], Q.prototype.copyData = function(e, t) {
3842
- for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
3843
- return e;
3844
- }, Q.prototype.setCurrentData = function(e) {
3845
- e.__complete || this.completeTextData(e), this.currentData = e, this.currentData.boxWidth = this.currentData.boxWidth || this.defaultBoxWidth, this._mdf = !0;
3846
- }, Q.prototype.searchProperty = function() {
3847
- return this.searchKeyframes();
3848
- }, Q.prototype.searchKeyframes = function() {
3849
- return this.kf = this.data.d.k.length > 1, this.kf && this.addEffect(this.getKeyframeValue.bind(this)), this.kf;
3850
- }, Q.prototype.addEffect = function(e) {
3851
- this.effectsSequence.push(e), this.elem.addDynamicProperty(this);
3852
- }, Q.prototype.getValue = function(e) {
3853
- if (!((this.elem.globalData.frameId === this.frameId || !this.effectsSequence.length) && !e)) {
3854
- this.currentData.t = this.data.d.k[this.keysIndex].s.t;
3855
- var t = this.currentData, n = this.keysIndex;
3856
- if (this.lock) {
3857
- this.setCurrentData(this.currentData);
3858
- return;
3859
- }
3860
- this.lock = !0, this._mdf = !1;
3861
- var r, i = this.effectsSequence.length, a = e || this.data.d.k[this.keysIndex].s;
3862
- for (r = 0; r < i; r += 1) a = n === this.keysIndex ? this.effectsSequence[r](this.currentData, a.t) : this.effectsSequence[r](a, a.t);
3863
- t !== a && this.setCurrentData(a), this.v = this.currentData, this.pv = this.v, this.lock = !1, this.frameId = this.elem.globalData.frameId;
3864
- }
3865
- }, Q.prototype.getKeyframeValue = function() {
3866
- for (var e = this.data.d.k, t = this.elem.comp.renderedFrame, n = 0, r = e.length; n <= r - 1 && !(n === r - 1 || e[n + 1].t > t);) n += 1;
3867
- return this.keysIndex !== n && (this.keysIndex = n), this.data.d.k[this.keysIndex].s;
3868
- }, Q.prototype.buildFinalText = function(e) {
3869
- for (var t = [], n = 0, r = e.length, i, a, o = !1, s = !1, c = ""; n < r;) o = s, s = !1, i = e.charCodeAt(n), c = e.charAt(n), tn.isCombinedCharacter(i) ? o = !0 : i >= 55296 && i <= 56319 ? tn.isRegionalFlag(e, n) ? c = e.substr(n, 14) : (a = e.charCodeAt(n + 1), a >= 56320 && a <= 57343 && (tn.isModifier(i, a) ? (c = e.substr(n, 2), o = !0) : c = tn.isFlagEmoji(e.substr(n, 4)) ? e.substr(n, 4) : e.substr(n, 2))) : i > 56319 ? (a = e.charCodeAt(n + 1), tn.isVariationSelector(i) && (o = !0)) : tn.isZeroWidthJoiner(i) && (o = !0, s = !0), o ? (t[t.length - 1] += c, o = !1) : t.push(c), n += c.length;
3870
- return t;
3871
- }, Q.prototype.completeTextData = function(e) {
3872
- e.__complete = !0;
3873
- var t = this.elem.globalData.fontManager, n = this.data, r = [], i, a, o, s = 0, c, l = n.m.g, u = 0, d = 0, f = 0, p = [], m = 0, h = 0, g, _, v = t.getFontByName(e.f), y, b = 0, x = en(v);
3874
- e.fWeight = x.weight, e.fStyle = x.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), a = e.finalText.length, e.finalLineHeight = e.lh;
3875
- var S = e.tr / 1e3 * e.finalSize, C;
3876
- if (e.sz) for (var w = !0, T = e.sz[0], E = e.sz[1], D, O; w;) {
3877
- O = this.buildFinalText(e.t), D = 0, m = 0, a = O.length, S = e.tr / 1e3 * e.finalSize;
3878
- var k = -1;
3879
- for (i = 0; i < a; i += 1) C = O[i].charCodeAt(0), o = !1, O[i] === " " ? k = i : (C === 13 || C === 3) && (m = 0, o = !0, D += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (y = t.getCharData(O[i], v.fStyle, v.fFamily), b = o ? 0 : y.w * e.finalSize / 100) : b = t.measureText(O[i], e.f, e.finalSize), m + b > T && O[i] !== " " ? (k === -1 ? a += 1 : i = k, D += e.finalLineHeight || e.finalSize * 1.2, O.splice(i, k === i ? 1 : 0, "\r"), k = -1, m = 0) : (m += b, m += S);
3880
- D += v.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && E < D ? (--e.finalSize, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = O, a = e.finalText.length, w = !1);
3881
- }
3882
- m = -S, b = 0;
3883
- var A = 0, j;
3884
- for (i = 0; i < a; i += 1) if (o = !1, j = e.finalText[i], C = j.charCodeAt(0), C === 13 || C === 3 ? (A = 0, p.push(m), h = m > h ? m : h, m = -2 * S, c = "", o = !0, f += 1) : c = j, t.chars ? (y = t.getCharData(j, v.fStyle, t.getFontByName(e.f).fFamily), b = o ? 0 : y.w * e.finalSize / 100) : b = t.measureText(c, e.f, e.finalSize), j === " " ? A += b + S : (m += b + S + A, A = 0), r.push({
3885
- l: b,
3886
- an: b,
3887
- add: u,
3888
- n: o,
3889
- anIndexes: [],
3890
- val: c,
3891
- line: f,
3892
- animatorJustifyOffset: 0
3893
- }), l == 2) {
3894
- if (u += b, c === "" || c === " " || i === a - 1) {
3895
- for ((c === "" || c === " ") && (u -= b); d <= i;) r[d].an = u, r[d].ind = s, r[d].extra = b, d += 1;
3896
- s += 1, u = 0;
3897
- }
3898
- } else if (l == 3) {
3899
- if (u += b, c === "" || i === a - 1) {
3900
- for (c === "" && (u -= b); d <= i;) r[d].an = u, r[d].ind = s, r[d].extra = b, d += 1;
3901
- u = 0, s += 1;
3902
- }
3903
- } else r[s].ind = s, r[s].extra = 0, s += 1;
3904
- if (e.l = r, h = m > h ? m : h, p.push(m), e.sz) e.boxWidth = e.sz[0], e.justifyOffset = 0;
3905
- else switch (e.boxWidth = h, e.j) {
3906
- case 1:
3907
- e.justifyOffset = -e.boxWidth;
3908
- break;
3909
- case 2:
3910
- e.justifyOffset = -e.boxWidth / 2;
3911
- break;
3912
- default: e.justifyOffset = 0;
3913
- }
3914
- e.lineWidths = p;
3915
- var M = n.a, N, P;
3916
- _ = M.length;
3917
- var F, ee, I = [];
3918
- for (g = 0; g < _; g += 1) {
3919
- for (N = M[g], N.a.sc && (e.strokeColorAnim = !0), N.a.sw && (e.strokeWidthAnim = !0), (N.a.fc || N.a.fh || N.a.fs || N.a.fb) && (e.fillColorAnim = !0), ee = 0, F = N.s.b, i = 0; i < a; i += 1) P = r[i], P.anIndexes[g] = ee, (F == 1 && P.val !== "" || F == 2 && P.val !== "" && P.val !== " " || F == 3 && (P.n || P.val == " " || i == a - 1) || F == 4 && (P.n || i == a - 1)) && (N.s.rn === 1 && I.push(ee), ee += 1);
3920
- n.a[g].s.totalChars = ee;
3921
- var te = -1, L;
3922
- if (N.s.rn === 1) for (i = 0; i < a; i += 1) P = r[i], te != P.anIndexes[g] && (te = P.anIndexes[g], L = I.splice(Math.floor(Math.random() * I.length), 1)[0]), P.anIndexes[g] = L;
3923
- }
3924
- e.yOffset = e.finalLineHeight || e.finalSize * 1.2, e.ls = e.ls || 0, e.ascent = v.ascent * e.finalSize / 100;
3925
- }, Q.prototype.updateDocumentData = function(e, t) {
3926
- t = t === void 0 ? this.keysIndex : t;
3927
- var n = this.copyData({}, this.data.d.k[t].s);
3928
- n = this.copyData(n, e), this.data.d.k[t].s = n, this.recalculate(t), this.setCurrentData(n), this.elem.addDynamicProperty(this);
3929
- }, Q.prototype.recalculate = function(e) {
3930
- var t = this.data.d.k[e].s;
3931
- t.__complete = !1, this.keysIndex = 0, this._isFirstFrame = !0, this.getValue(t);
3932
- }, Q.prototype.canResizeFont = function(e) {
3933
- this.canResize = e, this.recalculate(this.keysIndex), this.elem.addDynamicProperty(this);
3934
- }, Q.prototype.setMinimumFontSize = function(e) {
3935
- this.minimumFontSize = Math.floor(e) || 1, this.recalculate(this.keysIndex), this.elem.addDynamicProperty(this);
3936
- };
3937
- var Xn = function() {
3938
- var e = Math.max, t = Math.min, n = Math.floor;
3939
- function r(e, t) {
3940
- this._currentTextLength = -1, this.k = !1, this.data = t, this.elem = e, this.comp = e.comp, this.finalS = 0, this.finalE = 0, this.initDynamicPropertyContainer(e), this.s = U.getProp(e, t.s || { k: 0 }, 0, 0, this), "e" in t ? this.e = U.getProp(e, t.e, 0, 0, this) : this.e = { v: 100 }, this.o = U.getProp(e, t.o || { k: 0 }, 0, 0, this), this.xe = U.getProp(e, t.xe || { k: 0 }, 0, 0, this), this.ne = U.getProp(e, t.ne || { k: 0 }, 0, 0, this), this.sm = U.getProp(e, t.sm || { k: 100 }, 0, 0, this), this.a = U.getProp(e, t.a, 0, .01, this), this.dynamicProperties.length || this.getValue();
3941
- }
3942
- r.prototype = {
3943
- getMult: function(r) {
3944
- this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
3945
- var i = 0, a = 0, o = 1, s = 1;
3946
- this.ne.v > 0 ? i = this.ne.v / 100 : a = -this.ne.v / 100, this.xe.v > 0 ? o = 1 - this.xe.v / 100 : s = 1 + this.xe.v / 100;
3947
- var c = we.getBezierEasing(i, a, o, s).get, l = 0, u = this.finalS, d = this.finalE, f = this.data.sh;
3948
- if (f === 2) l = d === u ? r >= d ? 1 : 0 : e(0, t(.5 / (d - u) + (r - u) / (d - u), 1)), l = c(l);
3949
- else if (f === 3) l = d === u ? r >= d ? 0 : 1 : 1 - e(0, t(.5 / (d - u) + (r - u) / (d - u), 1)), l = c(l);
3950
- else if (f === 4) d === u ? l = 0 : (l = e(0, t(.5 / (d - u) + (r - u) / (d - u), 1)), l < .5 ? l *= 2 : l = 1 - 2 * (l - .5)), l = c(l);
3951
- else if (f === 5) {
3952
- if (d === u) l = 0;
3953
- else {
3954
- var p = d - u;
3955
- r = t(e(0, r + .5 - u), d - u);
3956
- var m = -p / 2 + r, h = p / 2;
3957
- l = Math.sqrt(1 - m * m / (h * h));
3958
- }
3959
- l = c(l);
3960
- } else f === 6 ? (d === u ? l = 0 : (r = t(e(0, r + .5 - u), d - u), l = (1 + Math.cos(Math.PI + Math.PI * 2 * r / (d - u))) / 2), l = c(l)) : (r >= n(u) && (l = r - u < 0 ? e(0, t(t(d, 1) - (u - r), 1)) : e(0, t(d - r, 1))), l = c(l));
3961
- if (this.sm.v !== 100) {
3962
- var g = this.sm.v * .01;
3963
- g === 0 && (g = 1e-8);
3964
- var _ = .5 - g * .5;
3965
- l < _ ? l = 0 : (l = (l - _) / g, l > 1 && (l = 1));
3966
- }
3967
- return l * this.a.v;
3968
- },
3969
- getValue: function(e) {
3970
- this.iterateDynamicProperties(), this._mdf = e || this._mdf, this._currentTextLength = this.elem.textProperty.currentData.l.length || 0, e && this.data.r === 2 && (this.e.v = this._currentTextLength);
3971
- var t = this.data.r === 2 ? 1 : 100 / this.data.totalChars, n = this.o.v / t, r = this.s.v / t + n, i = this.e.v / t + n;
3972
- if (r > i) {
3973
- var a = r;
3974
- r = i, i = a;
3975
- }
3976
- this.finalS = r, this.finalE = i;
3977
- }
3978
- }, d([W], r);
3979
- function i(e, t, n) {
3980
- return new r(e, t, n);
3981
- }
3982
- return { getTextSelectorProp: i };
3983
- }();
3984
- function Zn(e, t, n) {
3985
- var r = { propType: !1 }, i = U.getProp, a = t.a;
3986
- this.a = {
3987
- r: a.r ? i(e, a.r, 0, k, n) : r,
3988
- rx: a.rx ? i(e, a.rx, 0, k, n) : r,
3989
- ry: a.ry ? i(e, a.ry, 0, k, n) : r,
3990
- sk: a.sk ? i(e, a.sk, 0, k, n) : r,
3991
- sa: a.sa ? i(e, a.sa, 0, k, n) : r,
3992
- s: a.s ? i(e, a.s, 1, .01, n) : r,
3993
- a: a.a ? i(e, a.a, 1, 0, n) : r,
3994
- o: a.o ? i(e, a.o, 0, .01, n) : r,
3995
- p: a.p ? i(e, a.p, 1, 0, n) : r,
3996
- sw: a.sw ? i(e, a.sw, 0, 0, n) : r,
3997
- sc: a.sc ? i(e, a.sc, 1, 0, n) : r,
3998
- fc: a.fc ? i(e, a.fc, 1, 0, n) : r,
3999
- fh: a.fh ? i(e, a.fh, 0, 0, n) : r,
4000
- fs: a.fs ? i(e, a.fs, 0, .01, n) : r,
4001
- fb: a.fb ? i(e, a.fb, 0, .01, n) : r,
4002
- t: a.t ? i(e, a.t, 0, 0, n) : r
4003
- }, this.s = Xn.getTextSelectorProp(e, t.s, n), this.s.t = t.s.t;
4004
- }
4005
- function Qn(e, t, n) {
4006
- this._isFirstFrame = !0, this._hasMaskedPath = !1, this._frameId = -1, this._textData = e, this._renderType = t, this._elem = n, this._animatorsData = h(this._textData.a.length), this._pathData = {}, this._moreOptions = { alignment: {} }, this.renderedLetters = [], this.lettersChangedFlag = !1, this.initDynamicPropertyContainer(n);
4007
- }
4008
- Qn.prototype.searchProperties = function() {
4009
- var e, t = this._textData.a.length, n, r = U.getProp;
4010
- for (e = 0; e < t; e += 1) n = this._textData.a[e], this._animatorsData[e] = new Zn(this._elem, n, this);
4011
- this._textData.p && "m" in this._textData.p ? (this._pathData = {
4012
- a: r(this._elem, this._textData.p.a, 0, 0, this),
4013
- f: r(this._elem, this._textData.p.f, 0, 0, this),
4014
- l: r(this._elem, this._textData.p.l, 0, 0, this),
4015
- r: r(this._elem, this._textData.p.r, 0, 0, this),
4016
- p: r(this._elem, this._textData.p.p, 0, 0, this),
4017
- m: this._elem.maskManager.getMaskProperty(this._textData.p.m)
4018
- }, this._hasMaskedPath = !0) : this._hasMaskedPath = !1, this._moreOptions.alignment = r(this._elem, this._textData.m.a, 1, 0, this);
4019
- }, Qn.prototype.getMeasures = function(e, t) {
4020
- if (this.lettersChangedFlag = t, !(!this._mdf && !this._isFirstFrame && !t && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
4021
- this._isFirstFrame = !1;
4022
- var n = this._moreOptions.alignment.v, r = this._animatorsData, i = this._textData, a = this.mHelper, o = this._renderType, s = this.renderedLetters.length, c, l, u, d, f = e.l, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D;
4023
- if (this._hasMaskedPath) {
4024
- if (D = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
4025
- var O = D.v;
4026
- this._pathData.r.v && (O = O.reverse()), p = {
4027
- tLength: 0,
4028
- segments: []
4029
- }, d = O._length - 1;
4030
- var k;
4031
- for (w = 0, u = 0; u < d; u += 1) k = Ae.buildBezierData(O.v[u], O.v[u + 1], [O.o[u][0] - O.v[u][0], O.o[u][1] - O.v[u][1]], [O.i[u + 1][0] - O.v[u + 1][0], O.i[u + 1][1] - O.v[u + 1][1]]), p.tLength += k.segmentLength, p.segments.push(k), w += k.segmentLength;
4032
- u = d, D.v.c && (k = Ae.buildBezierData(O.v[u], O.v[0], [O.o[u][0] - O.v[u][0], O.o[u][1] - O.v[u][1]], [O.i[0][0] - O.v[0][0], O.i[0][1] - O.v[0][1]]), p.tLength += k.segmentLength, p.segments.push(k), w += k.segmentLength), this._pathData.pi = p;
4033
- }
4034
- if (p = this._pathData.pi, m = this._pathData.f.v, y = 0, v = 1, g = 0, _ = !0, S = p.segments, m < 0 && D.v.c) for (p.tLength < Math.abs(m) && (m = -Math.abs(m) % p.tLength), y = S.length - 1, x = S[y].points, v = x.length - 1; m < 0;) m += x[v].partialLength, --v, v < 0 && (--y, x = S[y].points, v = x.length - 1);
4035
- x = S[y].points, b = x[v - 1], h = x[v], C = h.partialLength;
4036
- }
4037
- d = f.length, c = 0, l = 0;
4038
- var A = e.finalSize * 1.2 * .714, j = !0, M, N, P, F, ee;
4039
- F = r.length;
4040
- var I, te = -1, L, ne, re, se = m, ce = y, le = v, ue = -1, de, fe, pe, R, z, me, he, ge, _e = "", ve = this.defaultPropsArray, ye;
4041
- if (e.j === 2 || e.j === 1) {
4042
- var B = 0, be = 0, xe = e.j === 2 ? -.5 : -1, Se = 0, Ce = !0;
4043
- for (u = 0; u < d; u += 1) if (f[u].n) {
4044
- for (B && (B += be); Se < u;) f[Se].animatorJustifyOffset = B, Se += 1;
4045
- B = 0, Ce = !0;
4046
- } else {
4047
- for (P = 0; P < F; P += 1) M = r[P].a, M.t.propType && (Ce && e.j === 2 && (be += M.t.v * xe), N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), I.length ? B += M.t.v * I[0] * xe : B += M.t.v * I * xe);
4048
- Ce = !1;
4049
- }
4050
- for (B && (B += be); Se < u;) f[Se].animatorJustifyOffset = B, Se += 1;
4051
- }
4052
- for (u = 0; u < d; u += 1) {
4053
- if (a.reset(), de = 1, f[u].n) c = 0, l += e.yOffset, l += j ? 1 : 0, m = se, j = !1, this._hasMaskedPath && (y = ce, v = le, x = S[y].points, b = x[v - 1], h = x[v], C = h.partialLength, g = 0), _e = "", ge = "", me = "", ye = "", ve = this.defaultPropsArray;
4054
- else {
4055
- if (this._hasMaskedPath) {
4056
- if (ue !== f[u].line) {
4057
- switch (e.j) {
4058
- case 1:
4059
- m += w - e.lineWidths[f[u].line];
4060
- break;
4061
- case 2:
4062
- m += (w - e.lineWidths[f[u].line]) / 2;
4063
- break;
4064
- default: break;
4065
- }
4066
- ue = f[u].line;
4067
- }
4068
- te !== f[u].ind && (f[te] && (m += f[te].extra), m += f[u].an / 2, te = f[u].ind), m += n[0] * f[u].an * .005;
4069
- var V = 0;
4070
- for (P = 0; P < F; P += 1) M = r[P].a, M.p.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), I.length ? V += M.p.v[0] * I[0] : V += M.p.v[0] * I), M.a.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), I.length ? V += M.a.v[0] * I[0] : V += M.a.v[0] * I);
4071
- for (_ = !0, this._pathData.a.v && (m = f[0].an * .5 + (w - this._pathData.f.v - f[0].an * .5 - f[f.length - 1].an * .5) * te / (d - 1), m += this._pathData.f.v); _;) g + C >= m + V || !x ? (T = (m + V - g) / h.partialLength, ne = b.point[0] + (h.point[0] - b.point[0]) * T, re = b.point[1] + (h.point[1] - b.point[1]) * T, a.translate(-n[0] * f[u].an * .005, -(n[1] * A) * .01), _ = !1) : x && (g += h.partialLength, v += 1, v >= x.length && (v = 0, y += 1, S[y] ? x = S[y].points : D.v.c ? (v = 0, y = 0, x = S[y].points) : (g -= h.partialLength, x = null)), x && (b = h, h = x[v], C = h.partialLength));
4072
- L = f[u].an / 2 - f[u].add, a.translate(-L, 0, 0);
4073
- } else L = f[u].an / 2 - f[u].add, a.translate(-L, 0, 0), a.translate(-n[0] * f[u].an * .005, -n[1] * A * .01, 0);
4074
- for (P = 0; P < F; P += 1) M = r[P].a, M.t.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), (c !== 0 || e.j !== 0) && (this._hasMaskedPath ? I.length ? m += M.t.v * I[0] : m += M.t.v * I : I.length ? c += M.t.v * I[0] : c += M.t.v * I));
4075
- for (e.strokeWidthAnim && (pe = e.sw || 0), e.strokeColorAnim && (fe = e.sc ? [
4076
- e.sc[0],
4077
- e.sc[1],
4078
- e.sc[2]
4079
- ] : [
4080
- 0,
4081
- 0,
4082
- 0
4083
- ]), e.fillColorAnim && e.fc && (R = [
4084
- e.fc[0],
4085
- e.fc[1],
4086
- e.fc[2]
4087
- ]), P = 0; P < F; P += 1) M = r[P].a, M.a.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), I.length ? a.translate(-M.a.v[0] * I[0], -M.a.v[1] * I[1], M.a.v[2] * I[2]) : a.translate(-M.a.v[0] * I, -M.a.v[1] * I, M.a.v[2] * I));
4088
- for (P = 0; P < F; P += 1) M = r[P].a, M.s.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), I.length ? a.scale(1 + (M.s.v[0] - 1) * I[0], 1 + (M.s.v[1] - 1) * I[1], 1) : a.scale(1 + (M.s.v[0] - 1) * I, 1 + (M.s.v[1] - 1) * I, 1));
4089
- for (P = 0; P < F; P += 1) {
4090
- if (M = r[P].a, N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), M.sk.propType && (I.length ? a.skewFromAxis(-M.sk.v * I[0], M.sa.v * I[1]) : a.skewFromAxis(-M.sk.v * I, M.sa.v * I)), M.r.propType && (I.length ? a.rotateZ(-M.r.v * I[2]) : a.rotateZ(-M.r.v * I)), M.ry.propType && (I.length ? a.rotateY(M.ry.v * I[1]) : a.rotateY(M.ry.v * I)), M.rx.propType && (I.length ? a.rotateX(M.rx.v * I[0]) : a.rotateX(M.rx.v * I)), M.o.propType && (I.length ? de += (M.o.v * I[0] - de) * I[0] : de += (M.o.v * I - de) * I), e.strokeWidthAnim && M.sw.propType && (I.length ? pe += M.sw.v * I[0] : pe += M.sw.v * I), e.strokeColorAnim && M.sc.propType) for (z = 0; z < 3; z += 1) I.length ? fe[z] += (M.sc.v[z] - fe[z]) * I[0] : fe[z] += (M.sc.v[z] - fe[z]) * I;
4091
- if (e.fillColorAnim && e.fc) {
4092
- if (M.fc.propType) for (z = 0; z < 3; z += 1) I.length ? R[z] += (M.fc.v[z] - R[z]) * I[0] : R[z] += (M.fc.v[z] - R[z]) * I;
4093
- M.fh.propType && (R = I.length ? oe(R, M.fh.v * I[0]) : oe(R, M.fh.v * I)), M.fs.propType && (R = I.length ? ie(R, M.fs.v * I[0]) : ie(R, M.fs.v * I)), M.fb.propType && (R = I.length ? ae(R, M.fb.v * I[0]) : ae(R, M.fb.v * I));
4094
- }
4095
- }
4096
- for (P = 0; P < F; P += 1) M = r[P].a, M.p.propType && (N = r[P].s, I = N.getMult(f[u].anIndexes[P], i.a[P].s.totalChars), this._hasMaskedPath ? I.length ? a.translate(0, M.p.v[1] * I[0], -M.p.v[2] * I[1]) : a.translate(0, M.p.v[1] * I, -M.p.v[2] * I) : I.length ? a.translate(M.p.v[0] * I[0], M.p.v[1] * I[1], -M.p.v[2] * I[2]) : a.translate(M.p.v[0] * I, M.p.v[1] * I, -M.p.v[2] * I));
4097
- if (e.strokeWidthAnim && (me = pe < 0 ? 0 : pe), e.strokeColorAnim && (he = "rgb(" + Math.round(fe[0] * 255) + "," + Math.round(fe[1] * 255) + "," + Math.round(fe[2] * 255) + ")"), e.fillColorAnim && e.fc && (ge = "rgb(" + Math.round(R[0] * 255) + "," + Math.round(R[1] * 255) + "," + Math.round(R[2] * 255) + ")"), this._hasMaskedPath) {
4098
- if (a.translate(0, -e.ls), a.translate(0, n[1] * A * .01 + l, 0), this._pathData.p.v) {
4099
- E = (h.point[1] - b.point[1]) / (h.point[0] - b.point[0]);
4100
- var H = Math.atan(E) * 180 / Math.PI;
4101
- h.point[0] < b.point[0] && (H += 180), a.rotate(-H * Math.PI / 180);
4102
- }
4103
- a.translate(ne, re, 0), m -= n[0] * f[u].an * .005, f[u + 1] && te !== f[u + 1].ind && (m += f[u].an / 2, m += e.tr * .001 * e.finalSize);
4104
- } else {
4105
- switch (a.translate(c, l, 0), e.ps && a.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
4106
- case 1:
4107
- a.translate(f[u].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[f[u].line]), 0, 0);
4108
- break;
4109
- case 2:
4110
- a.translate(f[u].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[f[u].line]) / 2, 0, 0);
4111
- break;
4112
- default: break;
4113
- }
4114
- a.translate(0, -e.ls), a.translate(L, 0, 0), a.translate(n[0] * f[u].an * .005, n[1] * A * .01, 0), c += f[u].l + e.tr * .001 * e.finalSize;
4115
- }
4116
- o === "html" ? _e = a.toCSS() : o === "svg" ? _e = a.to2dCSS() : ve = [
4117
- a.props[0],
4118
- a.props[1],
4119
- a.props[2],
4120
- a.props[3],
4121
- a.props[4],
4122
- a.props[5],
4123
- a.props[6],
4124
- a.props[7],
4125
- a.props[8],
4126
- a.props[9],
4127
- a.props[10],
4128
- a.props[11],
4129
- a.props[12],
4130
- a.props[13],
4131
- a.props[14],
4132
- a.props[15]
4133
- ], ye = de;
4134
- }
4135
- s <= u ? (ee = new Yn(ye, me, he, ge, _e, ve), this.renderedLetters.push(ee), s += 1, this.lettersChangedFlag = !0) : (ee = this.renderedLetters[u], this.lettersChangedFlag = ee.update(ye, me, he, ge, _e, ve) || this.lettersChangedFlag);
4136
- }
4137
- }
4138
- }, Qn.prototype.getValue = function() {
4139
- this._elem.globalData.frameId !== this._frameId && (this._frameId = this._elem.globalData.frameId, this.iterateDynamicProperties());
4140
- }, Qn.prototype.mHelper = new K(), Qn.prototype.defaultPropsArray = [], d([W], Qn);
4141
- function $n() {}
4142
- $n.prototype.initElement = function(e, t, n) {
4143
- this.lettersChangedFlag = !0, this.initFrame(), this.initBaseData(e, t, n), this.textProperty = new Q(this, e.t, this.dynamicProperties), this.textAnimator = new Qn(e.t, this.renderType, this), this.initTransform(e, t, n), this.initHierarchy(), this.initRenderable(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), this.createContent(), this.hide(), this.textAnimator.searchProperties(this.dynamicProperties);
4144
- }, $n.prototype.prepareFrame = function(e) {
4145
- this._mdf = !1, this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange);
4146
- }, $n.prototype.createPathShape = function(e, t) {
4147
- var n, r = t.length, i, a = "";
4148
- for (n = 0; n < r; n += 1) t[n].ty === "sh" && (i = t[n].ks.k, a += qn(i, i.i.length, !0, e));
4149
- return a;
4150
- }, $n.prototype.updateDocumentData = function(e, t) {
4151
- this.textProperty.updateDocumentData(e, t);
4152
- }, $n.prototype.canResizeFont = function(e) {
4153
- this.textProperty.canResizeFont(e);
4154
- }, $n.prototype.setMinimumFontSize = function(e) {
4155
- this.textProperty.setMinimumFontSize(e);
4156
- }, $n.prototype.applyTextPropertiesToMatrix = function(e, t, n, r, i) {
4157
- switch (e.ps && t.translate(e.ps[0], e.ps[1] + e.ascent, 0), t.translate(0, -e.ls, 0), e.j) {
4158
- case 1:
4159
- t.translate(e.justifyOffset + (e.boxWidth - e.lineWidths[n]), 0, 0);
4160
- break;
4161
- case 2:
4162
- t.translate(e.justifyOffset + (e.boxWidth - e.lineWidths[n]) / 2, 0, 0);
4163
- break;
4164
- default: break;
4165
- }
4166
- t.translate(r, i, 0);
4167
- }, $n.prototype.buildColor = function(e) {
4168
- return "rgb(" + Math.round(e[0] * 255) + "," + Math.round(e[1] * 255) + "," + Math.round(e[2] * 255) + ")";
4169
- }, $n.prototype.emptyProp = new Yn(), $n.prototype.destroy = function() {}, $n.prototype.validateText = function() {
4170
- (this.textProperty._mdf || this.textProperty._isFirstFrame) && (this.buildNewText(), this.textProperty._isFirstFrame = !1, this.textProperty._mdf = !1);
4171
- };
4172
- var er = { shapes: [] };
4173
- function tr(e, t, n) {
4174
- this.textSpans = [], this.renderType = "svg", this.initElement(e, t, n);
4175
- }
4176
- d([
4177
- _n,
4178
- xn,
4179
- On,
4180
- kn,
4181
- vn,
4182
- An,
4183
- $n
4184
- ], tr), tr.prototype.createContent = function() {
4185
- this.data.singleShape && !this.globalData.fontManager.chars && (this.textContainer = z("text"));
4186
- }, tr.prototype.buildTextContents = function(e) {
4187
- for (var t = 0, n = e.length, r = [], i = ""; t < n;) e[t] === "\r" || e[t] === "" ? (r.push(i), i = "") : i += e[t], t += 1;
4188
- return r.push(i), r;
4189
- }, tr.prototype.buildShapeData = function(e, t) {
4190
- if (e.shapes && e.shapes.length) {
4191
- var n = e.shapes[0];
4192
- if (n.it) {
4193
- var r = n.it[n.it.length - 1];
4194
- r.s && (r.s.k[0] = t, r.s.k[1] = t);
4195
- }
4196
- }
4197
- return e;
4198
- }, tr.prototype.buildNewText = function() {
4199
- this.addDynamicProperty(this);
4200
- var e, t, n = this.textProperty.currentData;
4201
- this.renderedLetters = h(n ? n.l.length : 0), n.fc ? this.layerElement.setAttribute("fill", this.buildColor(n.fc)) : this.layerElement.setAttribute("fill", "rgba(0,0,0,0)"), n.sc && (this.layerElement.setAttribute("stroke", this.buildColor(n.sc)), this.layerElement.setAttribute("stroke-width", n.sw)), this.layerElement.setAttribute("font-size", n.finalSize);
4202
- var r = this.globalData.fontManager.getFontByName(n.f);
4203
- if (r.fClass) this.layerElement.setAttribute("class", r.fClass);
4204
- else {
4205
- this.layerElement.setAttribute("font-family", r.fFamily);
4206
- var i = n.fWeight, a = n.fStyle;
4207
- this.layerElement.setAttribute("font-style", a), this.layerElement.setAttribute("font-weight", i);
4208
- }
4209
- this.layerElement.setAttribute("aria-label", n.t);
4210
- var o = n.l || [], s = !!this.globalData.fontManager.chars;
4211
- t = o.length;
4212
- var c, l = this.mHelper, u = "", d = this.data.singleShape, f = 0, p = 0, m = !0, g = n.tr * .001 * n.finalSize;
4213
- if (d && !s && !n.sz) {
4214
- var _ = this.textContainer, v = "start";
4215
- switch (n.j) {
4216
- case 1:
4217
- v = "end";
4218
- break;
4219
- case 2:
4220
- v = "middle";
4221
- break;
4222
- default:
4223
- v = "start";
4224
- break;
4225
- }
4226
- _.setAttribute("text-anchor", v), _.setAttribute("letter-spacing", g);
4227
- var y = this.buildTextContents(n.finalText);
4228
- for (t = y.length, p = n.ps ? n.ps[1] + n.ascent : 0, e = 0; e < t; e += 1) c = this.textSpans[e].span || z("tspan"), c.textContent = y[e], c.setAttribute("x", 0), c.setAttribute("y", p), c.style.display = "inherit", _.appendChild(c), this.textSpans[e] || (this.textSpans[e] = {
4229
- span: null,
4230
- glyph: null
4231
- }), this.textSpans[e].span = c, p += n.finalLineHeight;
4232
- this.layerElement.appendChild(_);
4233
- } else {
4234
- var b = this.textSpans.length, x;
4235
- for (e = 0; e < t; e += 1) {
4236
- if (this.textSpans[e] || (this.textSpans[e] = {
4237
- span: null,
4238
- childSpan: null,
4239
- glyph: null
4240
- }), !s || !d || e === 0) {
4241
- if (c = b > e ? this.textSpans[e].span : z(s ? "g" : "text"), b <= e) {
4242
- if (c.setAttribute("stroke-linecap", "butt"), c.setAttribute("stroke-linejoin", "round"), c.setAttribute("stroke-miterlimit", "4"), this.textSpans[e].span = c, s) {
4243
- var S = z("g");
4244
- c.appendChild(S), this.textSpans[e].childSpan = S;
4245
- }
4246
- this.textSpans[e].span = c, this.layerElement.appendChild(c);
4247
- }
4248
- c.style.display = "inherit";
4249
- }
4250
- if (l.reset(), d && (o[e].n && (f = -g, p += n.yOffset, p += m ? 1 : 0, m = !1), this.applyTextPropertiesToMatrix(n, l, o[e].line, f, p), f += o[e].l || 0, f += g), s) {
4251
- x = this.globalData.fontManager.getCharData(n.finalText[e], r.fStyle, this.globalData.fontManager.getFontByName(n.f).fFamily);
4252
- var C;
4253
- if (x.t === 1) C = new ar(x.data, this.globalData, this);
4254
- else {
4255
- var w = er;
4256
- x.data && x.data.shapes && (w = this.buildShapeData(x.data, n.finalSize)), C = new Z(w, this.globalData, this);
4257
- }
4258
- if (this.textSpans[e].glyph) {
4259
- var T = this.textSpans[e].glyph;
4260
- this.textSpans[e].childSpan.removeChild(T.layerElement), T.destroy();
4261
- }
4262
- this.textSpans[e].glyph = C, C._debug = !0, C.prepareFrame(0), C.renderFrame(), this.textSpans[e].childSpan.appendChild(C.layerElement), x.t === 1 && this.textSpans[e].childSpan.setAttribute("transform", "scale(" + n.finalSize / 100 + "," + n.finalSize / 100 + ")");
4263
- } else d && c.setAttribute("transform", "translate(" + l.props[12] + "," + l.props[13] + ")"), c.textContent = o[e].val, c.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
4264
- }
4265
- d && c && c.setAttribute("d", u);
4266
- }
4267
- for (; e < this.textSpans.length;) this.textSpans[e].span.style.display = "none", e += 1;
4268
- this._sizeChanged = !0;
4269
- }, tr.prototype.sourceRectAtTime = function() {
4270
- if (this.prepareFrame(this.comp.renderedFrame - this.data.st), this.renderInnerContent(), this._sizeChanged) {
4271
- this._sizeChanged = !1;
4272
- var e = this.layerElement.getBBox();
4273
- this.bbox = {
4274
- top: e.y,
4275
- left: e.x,
4276
- width: e.width,
4277
- height: e.height
4278
- };
4279
- }
4280
- return this.bbox;
4281
- }, tr.prototype.getValue = function() {
4282
- var e, t = this.textSpans.length, n;
4283
- for (this.renderedFrame = this.comp.renderedFrame, e = 0; e < t; e += 1) n = this.textSpans[e].glyph, n && (n.prepareFrame(this.comp.renderedFrame - this.data.st), n._mdf && (this._mdf = !0));
4284
- }, tr.prototype.renderInnerContent = function() {
4285
- if (this.validateText(), (!this.data.singleShape || this._mdf) && (this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag), this.lettersChangedFlag || this.textAnimator.lettersChangedFlag)) {
4286
- this._sizeChanged = !0;
4287
- var e, t, n = this.textAnimator.renderedLetters, r = this.textProperty.currentData.l;
4288
- t = r.length;
4289
- var i, a, o;
4290
- for (e = 0; e < t; e += 1) r[e].n || (i = n[e], a = this.textSpans[e].span, o = this.textSpans[e].glyph, o && o.renderFrame(), i._mdf.m && a.setAttribute("transform", i.m), i._mdf.o && a.setAttribute("opacity", i.o), i._mdf.sw && a.setAttribute("stroke-width", i.sw), i._mdf.sc && a.setAttribute("stroke", i.sc), i._mdf.fc && a.setAttribute("fill", i.fc));
4291
- }
4292
- };
4293
- function nr(e, t, n) {
4294
- this.initElement(e, t, n);
4295
- }
4296
- d([jn], nr), nr.prototype.createContent = function() {
4297
- var e = z("rect");
4298
- e.setAttribute("width", this.data.sw), e.setAttribute("height", this.data.sh), e.setAttribute("fill", this.data.sc), this.layerElement.appendChild(e);
4299
- };
4300
- function rr(e, t, n) {
4301
- this.initFrame(), this.initBaseData(e, t, n), this.initFrame(), this.initTransform(e, t, n), this.initHierarchy();
4302
- }
4303
- rr.prototype.prepareFrame = function(e) {
4304
- this.prepareProperties(e, !0);
4305
- }, rr.prototype.renderFrame = function() {}, rr.prototype.getBaseElement = function() {
4306
- return null;
4307
- }, rr.prototype.destroy = function() {}, rr.prototype.sourceRectAtTime = function() {}, rr.prototype.hide = function() {}, d([
4308
- _n,
4309
- xn,
4310
- kn,
4311
- vn
4312
- ], rr);
4313
- function $() {}
4314
- d([X], $), $.prototype.createNull = function(e) {
4315
- return new rr(e, this.globalData, this);
4316
- }, $.prototype.createShape = function(e) {
4317
- return new Z(e, this.globalData, this);
4318
- }, $.prototype.createText = function(e) {
4319
- return new tr(e, this.globalData, this);
4320
- }, $.prototype.createImage = function(e) {
4321
- return new jn(e, this.globalData, this);
4322
- }, $.prototype.createSolid = function(e) {
4323
- return new nr(e, this.globalData, this);
4324
- }, $.prototype.configAnimation = function(e) {
4325
- this.svgElement.setAttribute("xmlns", "http://www.w3.org/2000/svg"), this.svgElement.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), this.renderConfig.viewBoxSize ? this.svgElement.setAttribute("viewBox", this.renderConfig.viewBoxSize) : this.svgElement.setAttribute("viewBox", "0 0 " + e.w + " " + e.h), this.renderConfig.viewBoxOnly || (this.svgElement.setAttribute("width", e.w), this.svgElement.setAttribute("height", e.h), this.svgElement.style.width = "100%", this.svgElement.style.height = "100%", this.svgElement.style.transform = "translate3d(0,0,0)", this.svgElement.style.contentVisibility = this.renderConfig.contentVisibility), this.renderConfig.width && this.svgElement.setAttribute("width", this.renderConfig.width), this.renderConfig.height && this.svgElement.setAttribute("height", this.renderConfig.height), this.renderConfig.className && this.svgElement.setAttribute("class", this.renderConfig.className), this.renderConfig.id && this.svgElement.setAttribute("id", this.renderConfig.id), this.renderConfig.focusable !== void 0 && this.svgElement.setAttribute("focusable", this.renderConfig.focusable), this.svgElement.setAttribute("preserveAspectRatio", this.renderConfig.preserveAspectRatio), this.animationItem.wrapper.appendChild(this.svgElement);
4326
- var t = this.globalData.defs;
4327
- this.setupGlobalData(e, t), this.globalData.progressiveLoad = this.renderConfig.progressiveLoad, this.data = e;
4328
- var n = z("clipPath"), r = z("rect");
4329
- r.setAttribute("width", e.w), r.setAttribute("height", e.h), r.setAttribute("x", 0), r.setAttribute("y", 0);
4330
- var i = L();
4331
- n.setAttribute("id", i), n.appendChild(r), this.layerElement.setAttribute("clip-path", "url(" + l() + "#" + i + ")"), t.appendChild(n), this.layers = e.layers, this.elements = h(e.layers.length);
4332
- }, $.prototype.destroy = function() {
4333
- this.animationItem.wrapper && (this.animationItem.wrapper.innerText = ""), this.layerElement = null, this.globalData.defs = null;
4334
- var e, t = this.layers ? this.layers.length : 0;
4335
- for (e = 0; e < t; e += 1) this.elements[e] && this.elements[e].destroy && this.elements[e].destroy();
4336
- this.elements.length = 0, this.destroyed = !0, this.animationItem = null;
4337
- }, $.prototype.updateContainerSize = function() {}, $.prototype.findIndexByInd = function(e) {
4338
- var t = 0, n = this.layers.length;
4339
- for (t = 0; t < n; t += 1) if (this.layers[t].ind === e) return t;
4340
- return -1;
4341
- }, $.prototype.buildItem = function(e) {
4342
- var t = this.elements;
4343
- if (!(t[e] || this.layers[e].ty === 99)) {
4344
- t[e] = !0;
4345
- var n = this.createItem(this.layers[e]);
4346
- if (t[e] = n, ue() && (this.layers[e].ty === 0 && this.globalData.projectInterface.registerComposition(n), n.initExpressions()), this.appendElementInPos(n, e), this.layers[e].tt) {
4347
- var r = "tp" in this.layers[e] ? this.findIndexByInd(this.layers[e].tp) : e - 1;
4348
- if (r === -1) return;
4349
- if (!this.elements[r] || this.elements[r] === !0) this.buildItem(r), this.addPendingElement(n);
4350
- else {
4351
- var i = t[r], a = i.getMatte(this.layers[e].tt);
4352
- n.setMatte(a);
4353
- }
4354
- }
4355
- }
4356
- }, $.prototype.checkPendingElements = function() {
4357
- for (; this.pendingElements.length;) {
4358
- var e = this.pendingElements.pop();
4359
- if (e.checkParenting(), e.data.tt) for (var t = 0, n = this.elements.length; t < n;) {
4360
- if (this.elements[t] === e) {
4361
- var r = "tp" in e.data ? this.findIndexByInd(e.data.tp) : t - 1, i = this.elements[r], a = i.getMatte(this.layers[t].tt);
4362
- e.setMatte(a);
4363
- break;
4364
- }
4365
- t += 1;
4366
- }
4367
- }
4368
- }, $.prototype.renderFrame = function(e) {
4369
- if (!(this.renderedFrame === e || this.destroyed)) {
4370
- e === null ? e = this.renderedFrame : this.renderedFrame = e, this.globalData.frameNum = e, this.globalData.frameId += 1, this.globalData.projectInterface.currentFrame = e, this.globalData._mdf = !1;
4371
- var t, n = this.layers.length;
4372
- for (this.completeLayers || this.checkLayers(e), t = n - 1; t >= 0; --t) (this.completeLayers || this.elements[t]) && this.elements[t].prepareFrame(e - this.layers[t].st);
4373
- if (this.globalData._mdf) for (t = 0; t < n; t += 1) (this.completeLayers || this.elements[t]) && this.elements[t].renderFrame();
4374
- }
4375
- }, $.prototype.appendElementInPos = function(e, t) {
4376
- var n = e.getBaseElement();
4377
- if (n) {
4378
- for (var r = 0, i; r < t;) this.elements[r] && this.elements[r] !== !0 && this.elements[r].getBaseElement() && (i = this.elements[r].getBaseElement()), r += 1;
4379
- i ? this.layerElement.insertBefore(n, i) : this.layerElement.appendChild(n);
4380
- }
4381
- }, $.prototype.hide = function() {
4382
- this.layerElement.style.display = "none";
4383
- }, $.prototype.show = function() {
4384
- this.layerElement.style.display = "block";
4385
- };
4386
- function ir() {}
4387
- d([
4388
- _n,
4389
- xn,
4390
- kn,
4391
- vn,
4392
- An
4393
- ], ir), ir.prototype.initElement = function(e, t, n) {
4394
- this.initFrame(), this.initBaseData(e, t, n), this.initTransform(e, t, n), this.initRenderable(), this.initHierarchy(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), (this.data.xt || !t.progressiveLoad) && this.buildAllItems(), this.hide();
4395
- }, ir.prototype.prepareFrame = function(e) {
4396
- if (this._mdf = !1, this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange), !(!this.isInRange && !this.data.xt)) {
4397
- if (this.tm._placeholder) this.renderedFrame = e / this.data.sr;
4398
- else {
4399
- var t = this.tm.v;
4400
- t === this.data.op && (t = this.data.op - 1), this.renderedFrame = t;
4401
- }
4402
- var n, r = this.elements.length;
4403
- for (this.completeLayers || this.checkLayers(this.renderedFrame), n = r - 1; n >= 0; --n) (this.completeLayers || this.elements[n]) && (this.elements[n].prepareFrame(this.renderedFrame - this.layers[n].st), this.elements[n]._mdf && (this._mdf = !0));
4404
- }
4405
- }, ir.prototype.renderInnerContent = function() {
4406
- var e, t = this.layers.length;
4407
- for (e = 0; e < t; e += 1) (this.completeLayers || this.elements[e]) && this.elements[e].renderFrame();
4408
- }, ir.prototype.setElements = function(e) {
4409
- this.elements = e;
4410
- }, ir.prototype.getElements = function() {
4411
- return this.elements;
4412
- }, ir.prototype.destroyElements = function() {
4413
- var e, t = this.layers.length;
4414
- for (e = 0; e < t; e += 1) this.elements[e] && this.elements[e].destroy();
4415
- }, ir.prototype.destroy = function() {
4416
- this.destroyElements(), this.destroyBaseElement();
4417
- };
4418
- function ar(e, t, n) {
4419
- this.layers = e.layers, this.supports3d = !0, this.completeLayers = !1, this.pendingElements = [], this.elements = this.layers ? h(this.layers.length) : [], this.initElement(e, t, n), this.tm = e.tm ? U.getProp(this, e.tm, 0, t.frameRate, this) : { _placeholder: !0 };
4420
- }
4421
- d([
4422
- $,
4423
- ir,
4424
- On
4425
- ], ar), ar.prototype.createComp = function(e) {
4426
- return new ar(e, this.globalData, this);
4427
- };
4428
- function or(e, t) {
4429
- this.animationItem = e, this.layers = null, this.renderedFrame = -1, this.svgElement = z("svg");
4430
- var n = "";
4431
- if (t && t.title) {
4432
- var r = z("title"), i = L();
4433
- r.setAttribute("id", i), r.textContent = t.title, this.svgElement.appendChild(r), n += i;
4434
- }
4435
- if (t && t.description) {
4436
- var a = z("desc"), o = L();
4437
- a.setAttribute("id", o), a.textContent = t.description, this.svgElement.appendChild(a), n += " " + o;
4438
- }
4439
- n && this.svgElement.setAttribute("aria-labelledby", n);
4440
- var s = z("defs");
4441
- this.svgElement.appendChild(s);
4442
- var c = z("g");
4443
- this.svgElement.appendChild(c), this.layerElement = c, this.renderConfig = {
4444
- preserveAspectRatio: t && t.preserveAspectRatio || "xMidYMid meet",
4445
- imagePreserveAspectRatio: t && t.imagePreserveAspectRatio || "xMidYMid slice",
4446
- contentVisibility: t && t.contentVisibility || "visible",
4447
- progressiveLoad: t && t.progressiveLoad || !1,
4448
- hideOnTransparent: !(t && t.hideOnTransparent === !1),
4449
- viewBoxOnly: t && t.viewBoxOnly || !1,
4450
- viewBoxSize: t && t.viewBoxSize || !1,
4451
- className: t && t.className || "",
4452
- id: t && t.id || "",
4453
- focusable: t && t.focusable,
4454
- filterSize: {
4455
- width: t && t.filterSize && t.filterSize.width || "100%",
4456
- height: t && t.filterSize && t.filterSize.height || "100%",
4457
- x: t && t.filterSize && t.filterSize.x || "0%",
4458
- y: t && t.filterSize && t.filterSize.y || "0%"
4459
- },
4460
- width: t && t.width,
4461
- height: t && t.height,
4462
- runExpressions: !t || t.runExpressions === void 0 || t.runExpressions
4463
- }, this.globalData = {
4464
- _mdf: !1,
4465
- frameNum: -1,
4466
- defs: s,
4467
- renderConfig: this.renderConfig
4468
- }, this.elements = [], this.pendingElements = [], this.destroyed = !1, this.rendererType = "svg";
4469
- }
4470
- return d([$], or), or.prototype.createComp = function(e) {
4471
- return new ar(e, this.globalData, this);
4472
- }, be("svg", or), gt.registerModifier("tm", vt), gt.registerModifier("pb", yt), gt.registerModifier("rp", xt), gt.registerModifier("rd", St), gt.registerModifier("zz", Bt), gt.registerModifier("op", $t), q;
4473
- }));
4474
- })), m = /* @__PURE__ */ t(p());
4475
- function h(e, t) {
4476
- let a;
4477
- function o() {
4478
- let { isDark: e } = r(), n = i(() => e.value ? t.darkAnimationData : t.lightAnimationData);
4479
- s(() => {
4480
- l(n.value), f(e, () => {
4481
- h(), l(n.value);
4482
- });
4483
- }), c(h);
4484
- }
4485
- function l(t) {
4486
- let n = d(e);
4487
- a = m.default.loadAnimation({
4488
- path: t,
4489
- container: n,
4490
- renderer: "svg",
4491
- loop: !0,
4492
- autoplay: !1
4493
- });
4494
- }
4495
- function u() {
4496
- n(() => {
4497
- a?.play();
4498
- });
4499
- }
4500
- function p() {
4501
- n(() => {
4502
- a?.stop();
4503
- });
4504
- }
4505
- function h() {
4506
- a && (a.destroy(), a = null);
4507
- }
4508
- return o(), {
4509
- play: u,
4510
- stop: p,
4511
- destroy: h
4512
- };
4513
- }
4514
- var g = /* @__PURE__ */ o({
4515
- name: "AnimationItem",
4516
- __name: "animation_item",
4517
- props: {
4518
- lightAnimationData: { default: () => "" },
4519
- darkAnimationData: { default: () => "" }
4520
- },
4521
- setup(e, { expose: t }) {
4522
- let n = e, r = u(null), { play: i, stop: o } = h(r, {
4523
- lightAnimationData: n.lightAnimationData,
4524
- darkAnimationData: n.darkAnimationData
4525
- });
4526
- return t({
4527
- play: i,
4528
- stop: o
4529
- }), (e, t) => (l(), a("div", {
4530
- ref_key: "AnimationRef",
4531
- ref: r,
4532
- class: "w-[70%]"
4533
- }, null, 512));
4534
- }
4535
- }), _ = g;
4536
- export { _ as b };