Changeset 3202952
- Timestamp:
- 12/05/2024 10:49:19 AM (15 months ago)
- Location:
- visual-regression-tests
- Files:
-
- 2 added
- 44 edited
- 1 copied
-
tags/2.0.2 (copied) (copied from visual-regression-tests/trunk)
-
tags/2.0.2/assets/scripts/onboarding.js (modified) (2 diffs)
-
tags/2.0.2/build/admin.asset.php (modified) (1 diff)
-
tags/2.0.2/build/admin.js (modified) (1 diff)
-
tags/2.0.2/includes/features/class-deactivate.php (added)
-
tags/2.0.2/includes/features/class-enqueue-scripts.php (modified) (2 diffs)
-
tags/2.0.2/includes/features/class-metaboxes.php (modified) (3 diffs)
-
tags/2.0.2/includes/features/class-service.php (modified) (7 diffs)
-
tags/2.0.2/includes/features/class-settings-page.php (modified) (2 diffs)
-
tags/2.0.2/includes/features/class-test-runs-page.php (modified) (1 diff)
-
tags/2.0.2/includes/features/class-tests-page.php (modified) (2 diffs)
-
tags/2.0.2/includes/features/class-tests.php (modified) (2 diffs)
-
tags/2.0.2/includes/list-tables/class-test-runs-list-table.php (modified) (1 diff)
-
tags/2.0.2/includes/list-tables/class-test-runs-queue-list-table.php (modified) (2 diffs)
-
tags/2.0.2/includes/models/class-alert.php (modified) (1 diff)
-
tags/2.0.2/includes/models/class-test-run.php (modified) (3 diffs)
-
tags/2.0.2/includes/models/class-test.php (modified) (9 diffs)
-
tags/2.0.2/includes/rest-api/class-rest-alerts-controller.php (modified) (2 diffs)
-
tags/2.0.2/includes/rest-api/class-rest-test-runs-controller.php (modified) (2 diffs)
-
tags/2.0.2/includes/services/class-test-run-service.php (modified) (7 diffs)
-
tags/2.0.2/includes/services/class-test-service.php (modified) (3 diffs)
-
tags/2.0.2/includes/tables/class-tests-table.php (modified) (2 diffs)
-
tags/2.0.2/readme.txt (modified) (2 diffs)
-
tags/2.0.2/visual-regression-tests.php (modified) (1 diff)
-
trunk/assets/scripts/onboarding.js (modified) (2 diffs)
-
trunk/build/admin.asset.php (modified) (1 diff)
-
trunk/build/admin.js (modified) (1 diff)
-
trunk/includes/features/class-deactivate.php (added)
-
trunk/includes/features/class-enqueue-scripts.php (modified) (2 diffs)
-
trunk/includes/features/class-metaboxes.php (modified) (3 diffs)
-
trunk/includes/features/class-service.php (modified) (7 diffs)
-
trunk/includes/features/class-settings-page.php (modified) (2 diffs)
-
trunk/includes/features/class-test-runs-page.php (modified) (1 diff)
-
trunk/includes/features/class-tests-page.php (modified) (2 diffs)
-
trunk/includes/features/class-tests.php (modified) (2 diffs)
-
trunk/includes/list-tables/class-test-runs-list-table.php (modified) (1 diff)
-
trunk/includes/list-tables/class-test-runs-queue-list-table.php (modified) (2 diffs)
-
trunk/includes/models/class-alert.php (modified) (1 diff)
-
trunk/includes/models/class-test-run.php (modified) (3 diffs)
-
trunk/includes/models/class-test.php (modified) (9 diffs)
-
trunk/includes/rest-api/class-rest-alerts-controller.php (modified) (2 diffs)
-
trunk/includes/rest-api/class-rest-test-runs-controller.php (modified) (2 diffs)
-
trunk/includes/services/class-test-run-service.php (modified) (7 diffs)
-
trunk/includes/services/class-test-service.php (modified) (3 diffs)
-
trunk/includes/tables/class-tests-table.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/visual-regression-tests.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
visual-regression-tests/tags/2.0.2/assets/scripts/onboarding.js
r3092124 r3202952 69 69 onboarding.destroy(); 70 70 }, 71 onDestroyed: () => { 72 window.removeEventListener( 'keyup', onKeyup ); 73 }, 71 74 steps: window.vrts_admin_vars.onboarding.steps.map( ( step ) => { 72 75 return { … … 81 84 } ), 82 85 } ); 86 87 const onKeyup = ( event ) => { 88 if ( event.key === 'Escape' ) { 89 onboarding.destroy(); 90 } 91 }; 92 93 window.addEventListener( 'keyup', onKeyup ); 83 94 84 95 onboarding.drive(); -
visual-regression-tests/tags/2.0.2/build/admin.asset.php
r3184288 r3202952 1 <?php return array('dependencies' => array('wp-core-data', 'wp-data', 'wp-i18n'), 'version' => ' a1012021af3fecff4971');1 <?php return array('dependencies' => array('wp-core-data', 'wp-data', 'wp-i18n'), 'version' => '758bfe98366003db24c6'); -
visual-regression-tests/tags/2.0.2/build/admin.js
r3178219 r3202952 1 (()=>{var t={300:(t,e,i)=>{var s={"./admin-header/_style.scss":179,"./admin-notification/_style.scss":809,"./alert-actions/_style.scss":168,"./comparisons/_style.scss":234,"./metabox-classic-editor/_style.scss":271,"./modal/_style.scss":799,"./settings-page/_style.scss":793,"./test-run-alerts/_style.scss":800,"./test-run-info/_style.scss":177,"./test-run-page/_style.scss":364,"./test-run-pagination/_style.scss":821,"./test-run-receipt/_style.scss":305,"./test-run-success/_style.scss":140,"./test-runs-page/_style.scss":479,"./tests-page/_style.scss":423,"./upgrade-page/_style.scss":946};function n(t){var e=r(t);return i(e)}function r(t){if(!i.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}n.keys=function(){return Object.keys(s)},n.resolve=r,t.exports=n,n.id=300},962:(t,e,i)=>{var s={"./admin-notification/script.js":415,"./alert-actions/script.js":303,"./comparisons/script.js":784,"./modal/script.js":417,"./settings-page/script.js":563,"./test-run-alerts/script.js":650,"./test-run-page/script.js":74,"./test-run-pagination/script.js":191,"./test-run-success/script.js":486,"./test-runs-page/script.js":937,"./tests-page/script.js":318,"./upgrade-page/script.js":92};function n(t){var e=r(t);return i(e)}function r(t){if(!i.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}n.keys=function(){return Object.keys(s)},n.resolve=r,t.exports=n,n.id=962},328:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=328,t.exports=e},407:()=>{class t extends window.HTMLElement{static get observedAttributes(){return["time"]}attributeChangedCallback(t,e,i){"time"===t&&(this.time=new Date(i),this.update())}update(){var t;this.innerText=`${function(t){const{__}=wp.i18n,i=new Date;i.setHours(0,0,0,0);const s=new Date(t);s.setHours(0,0,0,0);const n=(s-i)/864e5;return 0===n?__("Today","visual-regression-testing"):1===n?__("Tomorrow","visual-regression-testing"):-1===n?__("Yesterday","visual-regression-testing"):e(t,"D, Y/m/d")}(this.time)} at ${t=this.time,e(t,"g:i a")}`}}function e(t,e){const i=t=>t<10?`0${t}`:t,s=i(t.getDate()),n=i(t.getMonth()+1),r=t.getFullYear(),a=t.getFullYear(),o=t.getHours(),h=i(t.getMinutes()),l=t.getSeconds(),p=t.getHours()%12||12,d=t.getHours()>=12?"pm":"am",c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][t.getDay()];return e.replace("d",s).replace("m",n).replace("y",r).replace("Y",a).replace("H",o).replace("i",h).replace("s",l).replace("g",p).replace("a",d).replace("D",c)}window.customElements.define("vrts-relative-time",t)},415:(t,e,i)=>{"use strict";i.r(e),i(407),jQuery(document).ready((function(t){t(document).on("click",".vrts-notice .notice-dismiss",(e=>{if(ajaxurl){const i=e.target.parentElement.querySelector("#_wpnonce").value,s=e.target.parentElement.dataset.view,n={action:"vrts_admin_notice_dismiss",url:ajaxurl,security:i,view:s};t.ajax({type:"POST",url:ajaxurl,data:n})}}))}))},303:()=>{"use strict";class t extends window.HTMLElement{constructor(){super(),this.dropdown=null,this.setAsReadTimeout=null,this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$actionButtons=this.querySelectorAll("[data-vrts-alert-action]"),this.$hideElementsForm=this.querySelector("[data-vrts-hide-elements-form]"),this.$hideElementsModal=document.getElementById("vrts-modal-hide-elements"),this.$spinner=this.querySelector(".spinner"),this.$success=this.querySelector(".vrts-alert-actions__modal-action-success")}bindFunctions(){this.onActionClick=this.onActionClick.bind(this),this.onHideElementsFormSubmit=this.onHideElementsFormSubmit.bind(this),this.onHideElementsModalClose=this.onHideElementsModalClose.bind(this)}bindEvents(){this.$actionButtons.forEach((t=>{t.addEventListener("click",this.onActionClick)})),this.$hideElementsForm.addEventListener("submit",this.onHideElementsFormSubmit),this.$hideElementsModal.addEventListener("hide",this.onHideElementsModalClose)}connectedCallback(){this.dropdown=function(t){const e=t.querySelector("[data-vrts-dropdown-open]"),i=t=>{const e=t.currentTarget,i=e.getAttribute("aria-controls"),s=document.getElementById(i),n="true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",!n),s.setAttribute("aria-hidden",n)},s=i=>{t&&t!==i.target&&!t.contains(i.target)&&(e.setAttribute("aria-expanded",!1),document.getElementById(e.getAttribute("aria-controls")).setAttribute("aria-hidden",!0))};return e?.addEventListener("click",i),document.addEventListener("click",s),()=>{e?.removeEventListener("click",i),document.removeEventListener("click",s)}}(this),this.setAsReadOnView()}setAsReadOnView(){this.$actionButtons.forEach((t=>{const e="read-status"===t.getAttribute("data-vrts-alert-action"),i="primary"===t.getAttribute("data-vrts-action-state");e&&i&&(this.setAsReadTimeout=setTimeout((()=>{t.click()}),1e3))}))}onHideElementsFormSubmit(t){t.preventDefault();const e=t.currentTarget,i=new window.FormData(e),s=i.get("post_id");this.$spinner.classList.add("is-active"),this.$success.classList.remove("is-active"),fetch(`${window.vrts_admin_vars.rest_url}/tests/post/${s}`,{method:"PUT",headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce},body:new URLSearchParams(i)}).then((t=>t.json())).then((()=>{this.$spinner.classList.remove("is-active"),this.$success.classList.add("is-active")}))}onHideElementsModalClose(){this.$success.classList.remove("is-active")}onActionClick(t){const e=t.currentTarget,i="true"===e.getAttribute("data-vrts-loading"),s="primary"===e.getAttribute("data-vrts-action-state");if(i)return;const n=e.getAttribute("data-vrts-alert-action"),r=e.getAttribute("data-vrts-alert-id");this.handleAction(n,e,r,s)}handleAction(t,e,i,s){const n=`${window.vrts_admin_vars.rest_url}/alerts/${i}/${t}`,r=s?"POST":"DELETE";let a=0,o=null;const h=setTimeout((()=>{e.setAttribute("data-vrts-loading","true");const t=window.Date.now();o=setInterval((()=>{a=window.Date.now()-t}),50)}),200);fetch(n,{method:r,headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce}}).then((t=>t.json())).then((()=>{const n=a>0?Math.abs(a-400):0;setTimeout((()=>{e.setAttribute("data-vrts-loading","false"),e.setAttribute("data-vrts-action-state",s?"secondary":"primary");const n=document.getElementById(`vrts-alert-${i}`);n&&("false-positive"===t&&n.setAttribute("data-vrts-false-positive",s?"true":"false"),"read-status"===t&&n.setAttribute("data-vrts-state",s?"read":"unread"))}),n),clearTimeout(h),clearInterval(o)}))}disconnectedCallback(){this.dropdown?.(),clearTimeout(this.setAsReadTimeout),this.$actionButtons?.forEach((t=>{t.removeEventListener("click",this.onActionClick)})),this.$hideElementsForm?.removeEventListener("submit",this.onHideElementsFormSubmit),this.$hideElementsModal?.removeEventListener("hide",this.onHideElementsModalClose)}}window.customElements.define("vrts-alert-actions",t)},784:(t,e,i)=>{class s extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents(),this.init()}resolveElements(){this.$content=document.querySelector("[data-vrts-fullscreen]"),this.$fullscreen=this.querySelector("[data-vrts-fullscreen-open]"),this.$control=this.querySelector("[data-vrts-comparisons-slider-control]"),this.$diffIndicator=this.querySelector("[data-vrts-comparisons-diff-inidicator]"),this.$comparison=this.querySelector('[data-vrts-comparisons-slot="comparison"] img')}bindFunctions(){this.onFullscreenToggle=this.onFullscreenToggle.bind(this),this.onControlChange=this.onControlChange.bind(this),this.onFullScreenChange=this.onFullScreenChange.bind(this),this.onLoadComparison=this.onLoadComparison.bind(this)}bindEvents(){this.$fullscreen.addEventListener("click",this.onFullscreenToggle),this.$control.addEventListener("input",this.onControlChange),document.addEventListener("fullscreenchange",this.onFullScreenChange)}init(){this.worker=new window.Worker(new URL(i(392),i.b)),this.worker.onmessage=this.onWorkerMessage.bind(this),this.$comparison.complete?this.onLoadComparison():this.$comparison.onload=this.onLoadComparison}onLoadComparison(){const t=this.createOffscreenCanvarImageData(this.$comparison);this.worker.postMessage({action:"analyzeImage",imageData:t})}createOffscreenCanvarImageData(t){const e=new window.OffscreenCanvas(t.naturalWidth,t.naturalHeight),i=e.getContext("2d");return i.drawImage(t,0,0),i.getImageData(0,0,e.width,e.height)}requestFullscreen(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()}exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}getFullscreenElement(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement}onFullscreenToggle(t){t.preventDefault(),this.getFullscreenElement()===this.$content?this.exitFullscreen():this.requestFullscreen(this.$content)}onFullScreenChange(){this.$content.setAttribute("data-vrts-fullscreen",this.getFullscreenElement()===this.$content)}onControlChange(t){this.style.setProperty("--vrts-comparisons-slider-position",`${t.target.value}%`)}onWorkerMessage(t){"analyzedImage"===t.data?.action&&this.highlightPixels(t.data.coloredPixels)}highlightPixels(t){const e=this.$diffIndicator.getContext("2d");this.$diffIndicator.width=this.$comparison.naturalWidth,this.$diffIndicator.height=this.$comparison.naturalHeight,e.clearRect(0,0,this.$comparison.naturalWidth,this.$comparison.naturalHeight),e.fillStyle="#cc1818",t.forEach((t=>{e.fillRect(0,t-2,e.canvas.width,3)}))}connectedCallback(){}disconnectedCallback(){this.$fullscreen?.removeEventListener("click",this.onFullscreenToggle),this.$control?.removeEventListener("input",this.onControlChange),document.removeEventListener("fullscreenchange",this.onFullScreenChange),this.worker?.terminate(),this.worker=null}}window.customElements.define("vrts-comparisons",s)},417:()=>{"use strict";const t=":not([inert]):not([inert] *)",e=':not([tabindex^="-"])',i=":not(:disabled)";var s=[`a[href]${t}${e}`,`area[href]${t}${e}`,`input:not([type="hidden"]):not([type="radio"])${t}${e}${i}`,`input[type="radio"]${t}${e}${i}`,`select${t}${e}${i}`,`textarea${t}${e}${i}`,`button${t}${e}${i}`,`details${t} > summary:first-of-type${e}`,`iframe${t}${e}`,`audio[controls]${t}${e}`,`video[controls]${t}${e}`,`[contenteditable]${t}${e}`,`[tabindex]${t}${e}`];function n(t){(t.querySelector("[autofocus]")||t).focus()}function r(t,e){if(e&&h(t))return t;if(function(t){return!(t.shadowRoot&&"-1"===t.getAttribute("tabindex")||t.matches(":disabled,[hidden],[inert]"))}(t))if(t.shadowRoot){let i=a(t.shadowRoot,e);for(;i;){const t=r(i,e);if(t)return t;i=o(i,e)}}else if("slot"===t.localName){const i=t.assignedElements({flatten:!0});e||i.reverse();for(const t of i){const i=r(t,e);if(i)return i}}else{let i=a(t,e);for(;i;){const t=r(i,e);if(t)return t;i=o(i,e)}}return!e&&h(t)?t:null}function a(t,e){return e?t.firstElementChild:t.lastElementChild}function o(t,e){return e?t.nextElementSibling:t.previousElementSibling}const h=t=>!t.shadowRoot?.delegatesFocus&&t.matches(s.join(","))&&!(t=>!(!t.matches("details:not([open]) *")||t.matches("details>summary:first-of-type"))||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))(t);function l(t=document){const e=t.activeElement;return e?e.shadowRoot?l(e.shadowRoot)||document.activeElement:e:null}function p(t,e){return function e(i){return i&&i!==document&&i!==window?(i.assignedSlot&&(i=i.assignedSlot),i.closest(t)||e(i.getRootNode().host)):null}(e)}const d="data-a11y-dialog";class c{$el;id;previouslyFocused;shown;constructor(t){this.$el=t,this.id=this.$el.getAttribute(d)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(t){return this.shown||this.fire("show",t).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=l(),"BODY"===this.previouslyFocused?.tagName&&t?.target&&(this.previouslyFocused=t.target),"focus"===t?.type?this.maintainFocus(t):n(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(t){return this.shown?(this.fire("hide",t).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this.previouslyFocused?.focus?.(),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0)),this):this}on(t,e,i){return this.$el.addEventListener(t,e,i),this}off(t,e,i){return this.$el.removeEventListener(t,e,i),this}fire(t,e){const i=new CustomEvent(t,{detail:e,cancelable:!0});return this.$el.dispatchEvent(i),i}handleTriggerClicks(t){const e=t.composedPath()[0],i=p(`[${d}-show="${this.id}"]`,e),s=p(`[${d}-hide="${this.id}"]`,e),n=p(`[${d}-hide]`,e)&&p('[aria-modal="true"]',e)===this.$el;i&&this.show(t),(s||n)&&this.hide(t)}bindKeypress(t){if(p('[aria-modal="true"]',l())!==this.$el)return;let e=!1;try{e=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==t.key||"alertdialog"===this.$el.getAttribute("role")||e||(t.preventDefault(),this.hide(t)),"Tab"===t.key&&function(t,e){const[i,s]=function(t){const e=r(t,!0);return[e,e?r(t,!1)||e:null]}(t);if(!i)return e.preventDefault();const n=l();e.shiftKey&&n===i?(s.focus(),e.preventDefault()):e.shiftKey||n!==s||(i.focus(),e.preventDefault())}(this.$el,t)}maintainFocus(t){t.target.closest(`[aria-modal="true"], [${d}-ignore-focus-trap]`)||n(this.$el)}}function u(){for(const t of document.querySelectorAll("[data-a11y-dialog]"))new c(t)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",u):u());class f extends window.HTMLElement{connectedCallback(){this.modal=new c(this)}disconnectedCallback(){this.modal.destroy()}}window.customElements.define("vrts-modal",f)},563:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$proSettingsCheckboxes=this.querySelectorAll('[data-a11y-dialog-show] input[type="checkbox"]')}bindFunctions(){this.onCheckboxChange=this.onCheckboxChange.bind(this)}bindEvents(){this.$proSettingsCheckboxes?.forEach((t=>{t.addEventListener("change",this.onCheckboxChange)}))}onCheckboxChange(t){t.preventDefault(),t.currentTarget.checked=!t.currentTarget.checked}disconnectedCallback(){this.$proSettingsCheckboxes?.forEach((t=>{t.removeEventListener("change",this.onCheckboxChange)}))}}window.customElements.define("vrts-settings",t)},650:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents(),this.unreadAlerts=new Set,this.initialUnreadAlerts=0,this.unreadRuns=parseInt(this.getAttribute("data-vrts-unread-runs"),10)}resolveElements(){this.$heading=this.querySelector(".vrts-test-run-alerts__heading"),this.$alerts=this.querySelectorAll("[data-vrts-alert]"),this.$actionButtons=this.querySelectorAll("[data-vrts-test-run-action]"),this.$runsMenuItems=[document.querySelector('.vrts-admin-header [href*="page=vrts-runs"]'),document.querySelector('#adminmenu .menu-top[href*="page=vrts"] .wp-menu-name'),document.querySelector('#adminmenu .wp-submenu a[href*="page=vrts-runs"]')]}bindFunctions(){this.handleAlertClick=this.handleAlertClick.bind(this),this.handleActionClick=this.handleActionClick.bind(this),this.updateRunsCount=this.updateRunsCount.bind(this)}bindEvents(){this.$alerts?.forEach((t=>{t.addEventListener("click",this.handleAlertClick)})),this.$actionButtons?.forEach((t=>{t.addEventListener("click",this.handleActionClick)}))}connectedCallback(){this.checkHeadingSticky(),this.checkReadStatusChange(),this.$alerts.forEach((t=>{"unread"===t.getAttribute("data-vrts-state")&&this.unreadAlerts.add(t.getAttribute("data-vrts-alert"))})),this.initialUnreadAlerts=this.unreadAlerts.size}checkHeadingSticky(){new window.IntersectionObserver((t=>{const e=!t[0].isIntersecting;this.$heading.setAttribute("data-is-sticky",e)}),{root:document,threshold:[1]}).observe(this.$heading)}checkReadStatusChange(){const t=new window.MutationObserver((t=>{t.forEach((t=>{if("attributes"===t.type&&"data-vrts-state"===t.attributeName){const e=t.target.getAttribute("data-vrts-alert"),i=t.target.getAttribute("data-vrts-state");if("receipt"===e)return;"unread"===i?this.unreadAlerts.add(e):this.unreadAlerts.delete(e),this.querySelector('[data-vrts-test-run-action="read-status"]').setAttribute("data-vrts-action-state",this.unreadAlerts.size>0?"primary":"secondary"),this.updateRunsCount(this.unreadAlerts.size)}}))}));this.$alerts.forEach((e=>{t.observe(e,{attributes:!0})}))}updateRunsCount(t){let e=this.unreadRuns;t>0&&0===this.initialUnreadAlerts?e+=1:0===t&&this.initialUnreadAlerts>0&&(e-=1),this.$runsMenuItems.forEach((t=>{if(t&&(t.querySelector(".update-plugins")?.remove(),t.textContent=t.textContent.replace(/\u00A0/g,""),e>0)){const i=document.createElement("span"),s=document.createTextNode(" ");i.classList.add("update-plugins"),i.textContent=e,t.appendChild(s),t.appendChild(i)}}))}handleAlertClick(t){t.preventDefault();const e=t.currentTarget;if("true"===e.getAttribute("data-vrts-current"))return;const i=e.getAttribute("href"),s=document.querySelector("vrts-comparisons")||document.querySelector("vrts-test-run-success"),n=document.querySelector("vrts-test-run-pagination");this.$alerts.forEach((t=>{t.setAttribute("data-vrts-current","false")})),e.setAttribute("data-vrts-current","true");const r=setTimeout((()=>{s.setAttribute("data-vrts-loading","true")}),200);fetch(i).then((t=>t.text())).then((t=>{const e=(new window.DOMParser).parseFromString(t,"text/html"),a=e.querySelector("vrts-comparisons")||e.querySelector("vrts-test-run-success"),o=e.querySelector("vrts-test-run-pagination");window.history.replaceState({},"",i),this.scrollTo(s.offsetTop-62),a&&s.replaceWith(a),o&&n.replaceWith(o),clearTimeout(r)}))}handleActionClick(t){const e=t.currentTarget,i="true"===e.getAttribute("data-vrts-loading"),s="primary"===e.getAttribute("data-vrts-action-state");if(i)return;const n=e.getAttribute("data-vrts-test-run-action"),r=e.getAttribute("data-vrts-test-run-id");this.handleAction(n,e,r,s)}handleAction(t,e,i,s){const n=`${window.vrts_admin_vars.rest_url}/test-runs/${i}/${t}`,r=s?"POST":"DELETE";let a=0,o=null;const h=setTimeout((()=>{e.setAttribute("data-vrts-loading","true");const t=window.Date.now();o=setInterval((()=>{a=window.Date.now()-t}),50)}),200);fetch(n,{method:r,headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce}}).then((t=>t.json())).then((()=>{const t=a>0?Math.abs(a-400):0;setTimeout((()=>{e.setAttribute("data-vrts-loading","false"),e.setAttribute("data-vrts-action-state",s?"secondary":"primary"),document.querySelectorAll("[data-vrts-alert]").forEach((t=>{t.setAttribute("data-vrts-state",s?"read":"unread")}))}),t),clearTimeout(h),clearInterval(o)}))}scrollTo(t){(document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||window).scrollTo({top:t,behavior:"smooth"})}disconnectedCallback(){this.$alerts?.forEach((t=>{t.removeEventListener("click",this.handleAlertClick)})),this.$actionButtons?.forEach((t=>{t.removeEventListener("click",this.handleActionClick)}))}}window.customElements.define("vrts-test-run-alerts",t)},74:()=>{class t extends window.HTMLElement{constructor(){super(),this.bindFunctions(),this.bindEvents(),this.isScrolling=!1}bindFunctions(){this.onScroll=this.onScroll.bind(this),this.setOffset=this.setOffset.bind(this)}bindEvents(){document.addEventListener("scroll",this.onScroll)}onScroll(){this.isScrolling||(this.isScrolling=!0,window.requestAnimationFrame(this.setOffset))}setOffset(){const t=Math.max(0,this.offset-window.scrollY);this.style.setProperty("--vrts-test-run-page-offset",`${t}px`),this.isScrolling=!1}connectedCallback(){const t=this.getBoundingClientRect(),e=document.getElementById("wpadminbar").offsetHeight;this.offset=t.top+window.scrollY-e,this.setOffset()}disconnectedCallback(){document.removeEventListener("scroll",this.onScroll)}}window.customElements.define("vrts-test-run-page",t)},191:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$alerts=document.querySelectorAll("[data-vrts-alert]"),this.$buttons=this.querySelectorAll(".button")}bindFunctions(){this.handleClick=this.handleClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}bindEvents(){this.$buttons?.forEach((t=>{t.addEventListener("click",this.handleClick)})),document.addEventListener("keydown",this.handleKeyDown)}handleClick(t){t.preventDefault();const e=t.currentTarget,i=e.getAttribute("data-vrts-alert-id");let s=document.getElementById(`vrts-alert-${i}`);if(!s)return;const n=e.getAttribute("href"),r=document.querySelector("vrts-comparisons")||document.querySelector("vrts-test-run-success"),a=document.querySelector(".vrts-test-run-page__sidebar");this.$alerts.forEach((t=>{t.setAttribute("data-vrts-current","false")})),s.setAttribute("data-vrts-current","true");let o=0,h=null;const l=setTimeout((()=>{r.setAttribute("data-vrts-loading","true");const t=window.Date.now();h=setInterval((()=>{o=window.Date.now()-t}),50)}),200);let p=0;for(;s&&s!==a;)p+=s.offsetTop,s=s.offsetParent;a.scrollTo({top:p-82,behavior:"smooth"}),fetch(n).then((t=>t.text())).then((t=>{const e=(new window.DOMParser).parseFromString(t,"text/html"),i=e.querySelector("vrts-comparisons")||e.querySelector("vrts-test-run-success"),s=e.querySelector("vrts-test-run-pagination");window.history.replaceState({},"",n),this.scrollTo(r.offsetTop-62);const a=o>0?Math.abs(o-400):0;setTimeout((()=>{i&&r.replaceWith(i),s&&this.replaceWith(s)}),a),clearTimeout(l),clearInterval(h)}))}handleKeyDown(t){"ArrowUp"===t.key&&(t.preventDefault(),this.querySelector('[data-vrts-pagination="prev"]').click()),"ArrowDown"===t.key&&(t.preventDefault(),this.querySelector('[data-vrts-pagination="next"]').click())}scrollTo(t){(document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||window).scrollTo({top:t,behavior:"smooth"})}disconnectedCallback(){this.$buttons?.forEach((t=>{t.removeEventListener("click",this.handleClick)})),document.removeEventListener("keydown",this.handleKeyDown)}}window.customElements.define("vrts-test-run-pagination",t)},486:(t,e,i)=>{"use strict";i.r(e);var s=i(816),n=i.n(s);class r extends window.HTMLElement{constructor(){super(),this.resolveElements()}resolveElements(){this.$lottiePlayer=this.querySelector("[vrts-lottie-player]")}connectedCallback(){this.lottieAnimation=n().loadAnimation({path:`${window.vrts_admin_vars.pluginUrl}/assets/animations/success-check.json`,container:this.$lottiePlayer,renderer:"svg",loop:!1,autoplay:!0})}disconnectedCallback(){this.lottieAnimation.destroy()}loaAnimation(){this.$lottiePlayer.play()}}window.customElements.define("vrts-test-run-success",r)},937:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements()}resolveElements(){this.$runsListTable=this.querySelector("form .vrts-test-runs-list-table")}connectedCallback(){this.highlightNewTestRuns()}highlightNewTestRuns(){const t=new Set(JSON.parse(window.localStorage.getItem("vrtsNewTestRuns")||"[]")),e=this.$runsListTable.querySelectorAll("tr[data-test-run-id]");let i=0;e.forEach((e=>{const s=e.getAttribute("data-test-run-id");"true"===e.getAttribute("data-test-run-new")?t.has(s)||(t.add(s),setTimeout((()=>{e.classList.add("test-run-highlighted")}),i),i+=200):t.has(s)&&t.delete(s)})),window.localStorage.setItem("vrtsNewTestRuns",JSON.stringify([...t]))}}window.customElements.define("vrts-test-runs-page",t)},318:()=>{document.getElementById("show-modal-add-new")?.addEventListener("click",(()=>{window.wpLink.open("input_hidden_internal_url")})),window.wp=window.wp||{},function(t,e){window.inlineEditTest={init(){const e=this,i=t("#inline-edit");e.type="test",e.what="#test-",i.on("keyup",(function(t){if(27===t.which)return inlineEditTest.revert()})),t(".cancel",i).on("click",(function(){return inlineEditTest.revert()})),t(".save",i).on("click",(function(){return inlineEditTest.save(this)})),t("td",i).on("keydown",(function(e){if(13===e.which&&!e.shiftKey&&!t(e.target).hasClass("cancel"))return inlineEditTest.save(this)})),t("#the-list").on("click",".editinline",(function(){t(this).attr("aria-expanded","true"),inlineEditTest.edit(this)})),t("#doaction").on("click",(function(i){e.whichBulkButtonId=t(this).attr("id");const s=e.whichBulkButtonId.substr(2);"edit"===t('select[name="'+s+'"]').val()?i.preventDefault():t("form#posts-filter tr.inline-editor").length>0&&e.revert()}))},toggle(e){const i=this;"none"===t(i.what+i.getId(e)).css("display")?i.revert():i.edit(e)},edit(e){const i=this;i.revert(),"object"==typeof e&&(e=i.getId(e));const s=t("#inline-edit").clone(!0);t("td",s).attr("colspan",t("th:visible, td:visible",".widefat:first thead").length),t("td",s).find("#quick-edit-legend").removeAttr("id"),t("td",s).find('p[id^="quick-edit-"]').removeAttr("id"),t(i.what+e).removeClass("is-expanded").hide().after(s).after('<tr class="hidden"></tr>');const n=t("#inline_"+e),r=t(".hide_css_selectors",n).text();return t(':input[name="hide_css_selectors"]',s).val(r),t(s).attr("id","edit-"+e).addClass("inline-editor").show(),t(':input[name="hide_css_selectors"]',s).trigger("focus"),!1},save(i){"object"==typeof i&&(i=this.getId(i)),t("table.widefat .spinner").addClass("is-active");const s={action:"vrts_test_quick_edit_save",test_id:i,hide_css_selectors:t("#edit-"+i+' [name="hide_css_selectors"]').val(),nonce:t("#_vrts_test_quick_edit_nonce").val()};return t.post(ajaxurl,s,(function(s){if(t("table.widefat .spinner").removeClass("is-active"),!(s=t.parseJSON(s)).success){const n=t("#edit-"+i+" .inline-edit-save .notice-error");return n.removeClass("hidden"),n.text(s.message),void e.a11y.speak(s.message)}t("#inline_"+i+" .hide_css_selectors").text(s.hide_css_selectors);const n=t(".widefat");(i=t(".inline-editor",n).attr("id"))&&(t(".spinner",n).removeClass("is-active"),t("#"+i).siblings("tr.hidden").addBack().remove(),i=i.substr(i.lastIndexOf("-")+1),t("#test-"+i).fadeIn(400).find(".editinline").attr("aria-expanded","false").trigger("focus")),e.a11y.speak(s.message);const r=s.snapshot_status,a=t("#test-"+i+" .base_screenshot_date");null!=r&&""!==r&&a.text(r)}),"html"),!1},revert(){const e=t(".widefat");let i=t(".inline-editor",e).attr("id");return i&&(t(".spinner",e).removeClass("is-active"),t("#"+i).siblings("tr.hidden").addBack().remove(),i=i.substr(i.lastIndexOf("-")+1),t(this.what+i).show().find(".editinline").attr("aria-expanded","false").trigger("focus")),!1},getId(e){const i=t(e).closest("tr").attr("id").split("-");return i[i.length-1]}},t((function(){t(".vrts-list-table-page").length&&inlineEditTest.init()}))}(jQuery,window.wp)},92:(t,e,i)=>{"use strict";i.r(e);var s=i(570),n=i.n(s);document.querySelector(".vrts_upgrade_page")&&n()({checkOrigin:!1,heightCalculationMethod:"taggedElement"},"#vrts_upgrade_iframe")},570:(t,e)=>{var i,s,n;!function(r){if("undefined"!=typeof window){var a,o,h=0,l=!1,p=!1,d="[iFrameSizer]",c=null,u=window.requestAnimationFrame,f=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},g=null,v=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){C("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),y={};window.jQuery!==r&&((o=window.jQuery).fn?o.fn.iFrameResize||(o.fn.iFrameResize=function(t){return this.filter("iframe").each((function(e,i){z(i,t)})).end()}):A("","Unable to bind to jQuery, it is not fully loaded.")),s=[],(n="function"==typeof(i=j)?i.apply(e,s):i)===r||(t.exports=n),window.iFrameResize=window.iFrameResize||j()}function b(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(t,e,i){t.addEventListener(e,i,!1)}function _(t,e,i){t.removeEventListener(e,i,!1)}function k(t){return m[t]?m[t].log:l}function x(t,e){S("log",t,e,k(t))}function A(t,e){S("info",t,e,k(t))}function C(t,e){S("warn",t,e,!0)}function S(t,e,i,s){!0===s&&"object"==typeof window.console&&console[t](function(t){return d+"["+function(t){var e="Host page: "+t;return window.top!==window.self&&(e=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),e}(t)+"]"}(e),i)}function E(t){function e(){i("Height"),i("Width"),$((function(){R(S),F(E),l("onResized",S)}),S,"init")}function i(t){var e=Number(m[E]["max"+t]),i=Number(m[E]["min"+t]),s=t.toLowerCase(),n=Number(S[s]);x(E,"Checking "+s+" is in range "+i+"-"+e),n<i&&(n=i,x(E,"Set "+s+" to min value")),n>e&&(n=e,x(E,"Set "+s+" to max value")),S[s]=""+n}function s(t){return k.slice(k.indexOf(":")+7+t)}function n(t,e){var i,s;i=function(){var i,s;O("Send Page Info","pageInfo:"+(i=document.body.getBoundingClientRect(),s=S.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:s.height,iframeWidth:s.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(s.top-i.top,10),offsetLeft:parseInt(s.left-i.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),t,e)},y[s=e]||(y[s]=setTimeout((function(){y[s]=null,i()}),32))}function r(t){var e=t.getBoundingClientRect();return D(E),{x:Math.floor(Number(e.left)+Number(c.x)),y:Math.floor(Number(e.top)+Number(c.y))}}function a(t){var e=t?r(S.iframe):{x:0,y:0},i={x:Number(S.width)+e.x,y:Number(S.height)+e.y};x(E,"Reposition requested from iFrame (offset x:"+e.x+" y:"+e.y+")"),window.top===window.self?(c=i,o(),x(E,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](i.x,i.y):C(E,"Unable to scroll to requested position, window.parentIFrame not found")}function o(){!1===l("onScroll",c)?I():F(E)}function h(t){var e={};if(0===Number(S.width)&&0===Number(S.height)){var i=s(9).split(":");e={x:i[1],y:i[0]}}else e={x:S.width,y:S.height};l(t,{iframe:S.iframe,screenX:Number(e.x),screenY:Number(e.y),type:S.type})}function l(t,e){return P(E,t,e)}var p,u,f,g,v,b,k=t.data,S={},E=null;"[iFrameResizerChild]Ready"===k?function(){for(var t in m)O("iFrame requested init",N(t),m[t].iframe,t)}():d===(""+k).slice(0,13)&&k.slice(13).split(":")[0]in m?(g=(f=k.slice(13).split(":"))[1]?parseInt(f[1],10):0,v=m[f[0]]&&m[f[0]].iframe,b=getComputedStyle(v),S={iframe:v,id:f[0],height:g+function(t){return"border-box"!==t.boxSizing?0:(t.paddingTop?parseInt(t.paddingTop,10):0)+(t.paddingBottom?parseInt(t.paddingBottom,10):0)}(b)+function(t){return"border-box"!==t.boxSizing?0:(t.borderTopWidth?parseInt(t.borderTopWidth,10):0)+(t.borderBottomWidth?parseInt(t.borderBottomWidth,10):0)}(b),width:f[2],type:f[3]},E=S.id,m[E]&&(m[E].loaded=!0),(u=S.type in{true:1,false:1,undefined:1})&&x(E,"Ignoring init message from meta parent page"),!u&&function(t){var e=!0;return m[t]||(e=!1,C(S.type+" No settings for "+t+". Message was: "+k)),e}(E)&&(x(E,"Received: "+k),p=!0,null===S.iframe&&(C(E,"IFrame ("+S.id+") not found"),p=!1),p&&function(){var e,i=t.origin,s=m[E]&&m[E].checkOrigin;if(s&&""+i!="null"&&!(s.constructor===Array?function(){var t=0,e=!1;for(x(E,"Checking connection is from allowed list of origins: "+s);t<s.length;t++)if(s[t]===i){e=!0;break}return e}():(e=m[E]&&m[E].remoteHost,x(E,"Checking connection is from: "+e),i===e)))throw new Error("Unexpected message received from: "+i+" for "+S.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(m[E]&&m[E].firstRun&&m[E]&&(m[E].firstRun=!1),S.type){case"close":M(S.iframe);break;case"message":u=s(6),x(E,"onMessage passed: {iframe: "+S.iframe.id+", message: "+u+"}"),l("onMessage",{iframe:S.iframe,message:JSON.parse(u)}),x(E,"--");break;case"mouseenter":h("onMouseEnter");break;case"mouseleave":h("onMouseLeave");break;case"autoResize":m[E].autoResize=JSON.parse(s(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":n(m[E]&&m[E].iframe,E),function(){function t(t,s){function r(){m[i]?n(m[i].iframe,i):e()}["scroll","resize"].forEach((function(e){x(i,t+e+" listener for sendPageInfo"),s(window,e,r)}))}function e(){t("Remove ",_)}var i=E;t("Add ",w),m[i]&&(m[i].stopPageInfo=e)}();break;case"pageInfoStop":m[E]&&m[E].stopPageInfo&&(m[E].stopPageInfo(),delete m[E].stopPageInfo);break;case"inPageLink":i=s(9).split("#")[1]||"",p=decodeURIComponent(i),(d=document.getElementById(p)||document.getElementsByName(p)[0])?(t=r(d),x(E,"Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),c={x:t.x,y:t.y},o(),x(E,"--")):window.top===window.self?x(E,"In page link #"+i+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(i):x(E,"In page link #"+i+" not found and window.parentIFrame not found");break;case"reset":L(S);break;case"init":e(),l("onInit",S.iframe);break;default:0===Number(S.width)&&0===Number(S.height)?C("Unsupported message received ("+S.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):e()}var t,i,p,d,u}())):A(E,"Ignored: "+k)}function P(t,e,i){var s=null,n=null;if(m[t]){if("function"!=typeof(s=m[t][e]))throw new TypeError(e+" on iFrame["+t+"] is not a function");n=s(i)}return n}function T(t){var e=t.id;delete m[e]}function M(t){var e=t.id;if(!1!==P(e,"onClose",e)){x(e,"Removing iFrame: "+e);try{t.parentNode&&t.parentNode.removeChild(t)}catch(t){C(t)}P(e,"onClosed",e),x(e,"--"),T(t),a&&(a.disconnect(),a=null)}else x(e,"Close iframe cancelled by onClose event")}function D(t){null===c&&x(t,"Get page position: "+(c={x:window.pageXOffset===r?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===r?document.documentElement.scrollTop:window.pageYOffset}).x+","+c.y)}function F(t){null!==c&&(window.scrollTo(c.x,c.y),x(t,"Set page position: "+c.x+","+c.y),I())}function I(){c=null}function L(t){x(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),D(t.id),$((function(){R(t),O("reset","reset",t.iframe,t.id)}),t,"reset")}function R(t){function e(e){p||"0"!==t[e]||(p=!0,x(s,"Hidden iFrame detected, creating visibility listener"),function(){function t(){Object.keys(m).forEach((function(t){!function(t){function e(e){return"0px"===(m[t]&&m[t].iframe.style[e])}m[t]&&null!==m[t].iframe.offsetParent&&(e("height")||e("width"))&&O("Visibility change","resize",m[t].iframe,t)}(t)}))}function e(e){x("window","Mutation observed: "+e[0].target+" "+e[0].type),B(t,16)}var i,s=b();s&&(i=document.querySelector("body"),new s(e).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function i(i){!function(e){t.id?(t.iframe.style[e]=t[e]+"px",x(t.id,"IFrame ("+s+") "+e+" set to "+t[e]+"px")):x("undefined","messageData id not set")}(i),e(i)}var s=t.iframe.id;m[s]&&(m[s].sizeHeight&&i("height"),m[s].sizeWidth&&i("width"))}function $(t,e,i){i!==e.type&&u&&!window.jasmine?(x(e.id,"Requesting animation frame"),u(t)):t()}function O(t,e,i,s,n){var r,a=!1;s=s||i.id,m[s]&&(i&&"contentWindow"in i&&null!==i.contentWindow?(r=m[s]&&m[s].targetOrigin,x(s,"["+t+"] Sending msg to iframe["+s+"] ("+e+") targetOrigin: "+r),i.contentWindow.postMessage(d+e,r)):C(s,"["+t+"] IFrame("+s+") not found"),n&&m[s]&&m[s].warningTimeout&&(m[s].msgTimeout=setTimeout((function(){!m[s]||m[s].loaded||a||(a=!0,C(s,"IFrame has not responded within "+m[s].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[s].warningTimeout)))}function N(t){return t+":"+m[t].bodyMarginV1+":"+m[t].sizeWidth+":"+m[t].log+":"+m[t].interval+":"+m[t].enablePublicMethods+":"+m[t].autoResize+":"+m[t].bodyMargin+":"+m[t].heightCalculationMethod+":"+m[t].bodyBackground+":"+m[t].bodyPadding+":"+m[t].tolerance+":"+m[t].inPageLinks+":"+m[t].resizeFrom+":"+m[t].widthCalculationMethod+":"+m[t].mouseEvents}function z(t,e){function i(t){var e=t.split("Callback");if(2===e.length){var i="on"+e[0].charAt(0).toUpperCase()+e[0].slice(1);this[i]=this[t],delete this[t],C(o,"Deprecated: '"+t+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}var s,n,o=function(i){if("string"!=typeof i)throw new TypeError("Invaild id for iFrame. Expected String");var s;return""===i&&(t.id=(s=e&&e.id||v.id+h++,null!==document.getElementById(s)&&(s+=h++),i=s),l=(e||{}).log,x(i,"Added missing iframe ID: "+i+" ("+t.src+")")),i}(t.id);o in m&&"iFrameResizer"in t?C(o,"Ignored iFrame, already setup."):(function(e){var s;e=e||{},m[o]=Object.create(null),m[o].iframe=t,m[o].firstRun=!0,m[o].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),function(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(i,e),function(t){for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&(m[o][e]=Object.prototype.hasOwnProperty.call(t,e)?t[e]:v[e])}(e),m[o]&&(m[o].targetOrigin=!0===m[o].checkOrigin?""===(s=m[o].remoteHost)||null!==s.match(/^(about:blank|javascript:|file:\/\/)/)?"*":s:"*")}(e),function(){switch(x(o,"IFrame scrolling "+(m[o]&&m[o].scrolling?"enabled":"disabled")+" for "+o),t.style.overflow=!1===(m[o]&&m[o].scrolling)?"hidden":"auto",m[o]&&m[o].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=m[o]?m[o].scrolling:"no"}}(),function(){function e(e){var i=m[o][e];1/0!==i&&0!==i&&(t.style[e]="number"==typeof i?i+"px":i,x(o,"Set "+e+" = "+t.style[e]))}function i(t){if(m[o]["min"+t]>m[o]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}i("Height"),i("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(m[o]&&m[o].bodyMargin)&&"0"!==(m[o]&&m[o].bodyMargin)||(m[o].bodyMarginV1=m[o].bodyMargin,m[o].bodyMargin=m[o].bodyMargin+"px"),s=N(o),(n=b())&&(a=function(e){if(!t.parentNode)return null;var i=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&M(t)}))}))}));return i.observe(t.parentNode,{childList:!0}),i}(n)),w(t,"load",(function(){var e,i;O("iFrame.onload",s,t,r,!0),e=m[o]&&m[o].firstRun,i=m[o]&&m[o].heightCalculationMethod in f,!e&&i&&L({iframe:t,height:0,width:0,type:"init"})})),O("init",s,t,r,!0),m[o]&&(m[o].iframe.iFrameResizer={close:M.bind(null,m[o].iframe),removeListeners:T.bind(null,m[o].iframe),resize:O.bind(null,"Window resize","resize",m[o].iframe),moveToAnchor:function(t){O("Move to anchor","moveToAnchor:"+t,m[o].iframe,o)},sendMessage:function(t){O("Send Message","message:"+(t=JSON.stringify(t)),m[o].iframe,o)}}))}function B(t,e){null===g&&(g=setTimeout((function(){g=null,t()}),e))}function V(){"hidden"!==document.visibilityState&&(x("document","Trigger event: Visibility change"),B((function(){q("Tab Visible","resize")}),16))}function q(t,e){Object.keys(m).forEach((function(i){(function(t){return m[t]&&"parent"===m[t].resizeFrom&&m[t].autoResize&&!m[t].firstRun})(i)&&O(t,e,m[i].iframe,i)}))}function j(){function t(t,i){i&&(function(){if(!i.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==i.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+i.tagName+">")}(),z(i,t),e.push(i))}var e;return function(){var t,e=["moz","webkit","o","ms"];for(t=0;t<e.length&&!u;t+=1)u=window[e[t]+"RequestAnimationFrame"];u?u=u.bind(window):x("setup","RequestAnimationFrame not supported")}(),w(window,"message",E),w(window,"resize",(function(){x("window","Trigger event: resize"),B((function(){q("Window resize","resize")}),16)})),w(document,"visibilitychange",V),w(document,"-webkit-visibilitychange",V),function(i,s){switch(e=[],function(t){t&&t.enablePublicMethods&&C("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof s){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(s||"iframe"),t.bind(r,i));break;case"object":t(i,s);break;default:throw new TypeError("Unexpected data type ("+typeof s+")")}return e}}}()},816:function(t,e,i){"undefined"!=typeof navigator&&(t.exports=function(){"use strict";var t="",s=!1,n=-999999,r=function(){return t};function a(t){return document.createElement(t)}function o(t,e){var i,s,n=t.length;for(i=0;i<n;i+=1)for(var r in s=t[i].prototype)Object.prototype.hasOwnProperty.call(s,r)&&(e.prototype[r]=s[r])}var h=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),l=function(){function t(t,e){var i,s=0,n=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)n.push(i);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function p(t){return Array.apply(null,{length:t})}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}var c=!0,u=null,f="",m=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),g=Math.pow,v=Math.sqrt,y=Math.floor,b=(Math.max,Math.min),w={};(function(){var t,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"],i=e.length;for(t=0;t<i;t+=1)w[e[t]]=Math[e[t]]})(),w.random=Math.random,w.abs=function(t){if("object"===d(t)&&t.length){var e,i=p(t.length),s=t.length;for(e=0;e<s;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var _=150,k=Math.PI/180,x=.5519;function A(t,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function C(t,e){this.type=t,this.direction=e<0?-1:1}function S(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function E(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function P(t,e){this.type=t,this.target=e}function T(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function M(t){this.type="configError",this.nativeError=t}var D,F=(D=0,function(){return f+"__lottie_element_"+(D+=1)});function I(t,e,i){var s,n,r,a,o,h,l,p;switch(h=i*(1-e),l=i*(1-(o=6*t-(a=Math.floor(6*t)))*e),p=i*(1-(1-o)*e),a%6){case 0:s=i,n=p,r=h;break;case 1:s=l,n=i,r=h;break;case 2:s=h,n=i,r=p;break;case 3:s=h,n=l,r=i;break;case 4:s=p,n=h,r=i;break;case 5:s=i,n=h,r=l}return[s,n,r]}function L(t,e,i){var s,n=Math.max(t,e,i),r=Math.min(t,e,i),a=n-r,o=0===n?0:a/n,h=n/255;switch(n){case r:s=0;break;case t:s=e-i+a*(e<i?6:0),s/=6*a;break;case e:s=i-t+2*a,s/=6*a;break;case i:s=t-e+4*a,s/=6*a}return[s,o,h]}function R(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),I(i[0],i[1],i[2])}function $(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),I(i[0],i[1],i[2])}function O(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),I(i[0],i[1],i[2])}!function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e}();var N=function(){return u},z=function(t){_=t},B=function(){return _};function V(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}var j=function(){var t,e,i=1,n=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){r.onmessage({data:t})}};function o(e){if(window.Worker&&window.Blob&&s){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(i);return new Worker(n)}return t=e,r}function h(){e||(e=o((function(t){if(a.dataManager||(a.dataManager=function(){function t(n,r){var a,o,h,l,p,d,c,u=n.length;for(o=0;o<u;o+=1)if("ks"in(a=n[o])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(l=f.length,h=0;h<l;h+=1)if(f[h].pt.k.i)s(f[h].pt.k);else for(d=f[h].pt.k.length,p=0;p<d;p+=1)f[h].pt.k[p].s&&s(f[h].pt.k[p].s[0]),f[h].pt.k[p].e&&s(f[h].pt.k[p].e[0])}0===a.ty?(a.layers=e(a.refId,r),t(a.layers,r)):4===a.ty?i(a.shapes):5===a.ty&&(0===(c=a).t.a.length&&c.t.p)}}function e(t,e){var i=function(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,n,r;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)s(t[e].ks.k);else for(r=t[e].ks.k.length,n=0;n<r;n+=1)t[e].ks.k[n].s&&s(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&s(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function s(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var r,a=function(){var t=[4,4,14];function e(t){var e,i,s,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=t[e],s=void 0,s=i.t.d,i.t.d={k:[{s,t:0}]})}return function(i){if(n(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),o=(r=[4,7,99],function(t){if(t.chars&&!n(r,t.v)){var e,s=t.chars.length;for(e=0;e<s;e+=1){var a=t.chars[e];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={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),h=function(){var t=[5,7,15];function e(t){var e,i,s,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=t[e],s=void 0,"number"==typeof(s=i.t.p).a&&(s.a={a:0,k:s.a}),"number"==typeof s.p&&(s.p={a:0,k:s.p}),"number"==typeof s.r&&(s.r={a:0,k:s.r}))}return function(i){if(n(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),l=function(){var t=[4,1,9];function e(t){var i,s,n,r=t.length;for(i=0;i<r;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(n=t[i].c.k.length,s=0;s<n;s+=1)t[i].c.k[s].s&&(t[i].c.k[s].s[0]/=255,t[i].c.k[s].s[1]/=255,t[i].c.k[s].s[2]/=255,t[i].c.k[s].s[3]/=255),t[i].c.k[s].e&&(t[i].c.k[s].e[0]/=255,t[i].c.k[s].e[1]/=255,t[i].c.k[s].e[2]/=255,t[i].c.k[s].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),p=function(){var t=[4,4,18];function e(t){var i,s,n;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(n=t[i].ks.k.length,s=0;s<n;s+=1)t[i].ks.k[s].s&&(t[i].ks.k[s].s[0].c=t[i].closed),t[i].ks.k[s].e&&(t[i].ks.k[s].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,s,n,r,a,o,h=t.length;for(s=0;s<h;s+=1){if((i=t[s]).hasMask){var l=i.masksProperties;for(r=l.length,n=0;n<r;n+=1)if(l[n].pt.k.i)l[n].pt.k.c=l[n].cl;else for(o=l[n].pt.k.length,a=0;a<o;a+=1)l[n].pt.k[a].s&&(l[n].pt.k[a].s[0].c=l[n].cl),l[n].pt.k[a].e&&(l[n].pt.k[a].e[0].c=l[n].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),d={completeData:function(i){i.__complete||(l(i),a(i),o(i),h(i),p(i),t(i.layers,i.assets),function(i,s){if(i){var n=0,r=i.length;for(n=0;n<r;n+=1)1===i[n].t&&(i[n].data.layers=e(i[n].data.refId,s),t(i[n].data.layers,s))}}(i.chars,i.assets),i.__complete=!0)}};return d.checkColors=l,d.checkChars=o,d.checkPathProperties=h,d.checkShapes=p,d.completeLayers=t,d}()),a.assetLoader||(a.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===q(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,s,n){var r,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)r=t(a),s(r);else try{r=t(a),s(r)}catch(t){n&&n(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),i+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,i=e.id,s=n[i];n[i]=null,"success"===e.status?s.onComplete(e.payload):s.onError&&s.onError()})}function l(t,e){var s="processId_"+(i+=1);return n[s]={onComplete:t,onError:e},s}return{loadAnimation:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"complete",animation:t,id:n})}}}(),H=function(){var t=function(){var t=a("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(t,e,i){var s="";if(t.e)s=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),s=e+n}else s=i,s+=t.u?t.u:"",s+=t.p;return s}function n(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function r(t){var e={assetData:t},i=s(t,this.assetsPath,this.path);return j.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=r.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var s=t.length;for(i=0;i<s;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=s(e,this.assetsPath,this.path),n=a("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),n.src=i;var r={img:n,assetData:e};return r},createImageData:function(e){var i=s(e,this.assetsPath,this.path),n=V("image");m?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var r={img:n,assetData:e};return r},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function W(){}W.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var Y=function(){function t(t){for(var e,i=t.split("\r\n"),s={},n=0,r=0;r<i.length;r+=1)2===(e=i[r].split(":")).length&&(s[e[0]]=e[1].trim(),n+=1);if(0===n)throw new Error;return s}return function(e){for(var i=[],s=0;s<e.length;s+=1){var n=e[s],r={time:n.tm,duration:n.dr};try{r.payload=JSON.parse(e[s].cm)}catch(i){try{r.payload=t(e[s].cm)}catch(t){r.payload={name:e[s].cm}}}i.push(r)}return i}}(),U=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),X={};function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}var G=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=F(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=c,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=U(),this.imagePreloader=new H,this.audioController=h(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new A("drawnFrame",0,0,0),this.expressionsPlugin=N()};o([W],G),G.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=X[e];this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),j.loadAnimation(t.path,this.configAnimation,this.onSetupError))},G.prototype.onSetupError=function(){this.trigger("data_failed")},G.prototype.setupAnimation=function(t){j.completeAnimation(t,this.configAnimation)},G.prototype.setData=function(t,e){e&&"object"!==K(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},s=t.attributes;i.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",i.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:function(){if(X.canvas)return"canvas";for(var t in X)if(X[t])return t;return""}()||"canvas";var n=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";"false"===n?i.loop=!1:"true"===n?i.loop=!0:""!==n&&(i.loop=parseInt(n,10));var r=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value;i.autoplay="false"!==r,i.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"","false"===(s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},G.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,s=this.animationData.layers,n=s.length,r=t.layers,a=r.length;for(i=0;i<a;i+=1)for(e=0;e<n;){if(s[e].id===r[i].id){s[e]=r[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,j.completeAnimation(this.animationData,this.onSegmentComplete)},G.prototype.onSegmentComplete=function(t){this.animationData=t;var e=N();e&&e.initExpressions(this),this.loadNextSegment()},G.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,j.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},G.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},G.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},G.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},G.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=Y(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},G.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},G.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=N();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},G.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,s="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,s)},G.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},G.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},G.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},G.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},G.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},G.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},G.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},G.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},G.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},G.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(s,e,i);this.play()}},G.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},G.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},G.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},G.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===K(t[0])){var i,s=t.length;for(i=0;i<s;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},G.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},G.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},G.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},G.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},G.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},G.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},G.prototype.setLoop=function(t){this.loop=t},G.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},G.prototype.getVolume=function(){return this.audioController.getVolume()},G.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},G.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},G.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},G.prototype.getPath=function(){return this.path},G.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},G.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},G.prototype.hide=function(){this.renderer.hide()},G.prototype.show=function(){this.renderer.show()},G.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},G.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},G.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new A(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new S(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new C(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new E(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new P(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new A(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new S(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new C(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new E(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new P(t,this))},G.prototype.triggerRenderFrameError=function(t){var e=new T(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},G.prototype.triggerConfigError=function(t){var e=new M(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var J=function(){var t={},e=[],i=0,s=0,n=0,r=!0,o=!1;function h(t){for(var i=0,n=t.target;i<s;)e[i].animation===n&&(e.splice(i,1),i-=1,s-=1,n.isPaused||d()),i+=1}function l(t,i){if(!t)return null;for(var n=0;n<s;){if(e[n].elem===t&&null!==e[n].elem)return e[n].animation;n+=1}var r=new G;return c(r,t),r.setData(t,i),r}function p(){n+=1,m()}function d(){n-=1}function c(t,i){t.addEventListener("destroy",h),t.addEventListener("_active",p),t.addEventListener("_idle",d),e.push({elem:i,animation:t}),s+=1}function u(t){var a,h=t-i;for(a=0;a<s;a+=1)e[a].animation.advanceTime(h);i=t,n&&!o?window.requestAnimationFrame(u):r=!0}function f(t){i=t,window.requestAnimationFrame(u)}function m(){!o&&n&&r&&(window.requestAnimationFrame(f),r=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new G;return c(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setSpeed(t,i)},t.setDirection=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var s,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),r=n.length;for(s=0;s<r;s+=1)i&&n[s].setAttribute("data-bm-type",i),l(n[s],t);if(e&&0===r){i||(i="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var h=a("div");h.style.width="100%",h.style.height="100%",h.setAttribute("data-bm-type",i),o.appendChild(h),l(h,t)}},t.resize=function(){var t;for(t=0;t<s;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,n){var r;for(r=0;r<s;r+=1)e[r].animation.goToAndStop(t,i,n)},t.destroy=function(t){var i;for(i=s-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,m()},t.setVolume=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,s=[];for(t=0;t<i;t+=1)s.push(e[t].animation);return s},t}(),Z=function(){var t={getBezierEasing:function(t,i,s,n,r){var a=r||("bez_"+t+"_"+i+"_"+s+"_"+n).replace(/\./g,"p");if(e[a])return e[a];var o=new p([t,i,s,n]);return e[a]=o,o}},e={};var i=11,s=1/(i-1),n="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function o(t){return 3*t}function h(t,e,i){return((r(e,i)*t+a(e,i))*t+o(e))*t}function l(t,e,i){return 3*r(e,i)*t*t+2*a(e,i)*t+o(e)}function p(t){this._p=t,this._mSampleValues=n?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return p.prototype={get:function(t){var e=this._p[0],i=this._p[1],s=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===i&&s===n?t:0===t?0:1===t?1:h(this._getTForX(t),i,n)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,t===e&&i===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<i;++n)this._mSampleValues[n]=h(n*s,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],r=this._mSampleValues,a=0,o=1,p=i-1;o!==p&&r[o]<=t;++o)a+=s;var d=a+(t-r[--o])/(r[o+1]-r[o])*s,c=l(d,e,n);return c>=.001?function(t,e,i,s){for(var n=0;n<4;++n){var r=l(e,i,s);if(0===r)return e;e-=(h(e,i,s)-t)/r}return e}(t,d,e,n):0===c?d:function(t,e,i,s,n){var r,a,o=0;do{(r=h(a=e+(i-e)/2,s,n)-t)>0?i=a:e=a}while(Math.abs(r)>1e-7&&++o<10);return a}(t,a,a+s,e,n)}},t}(),Q={double:function(t){return t.concat(p(t.length))}},tt=function(t,e,i){var s=0,n=t,r=p(n);return{newElement:function(){return s?r[s-=1]:e()},release:function(t){s===n&&(r=Q.double(r),n*=2),i&&i(t),r[s]=t,s+=1}}},et=tt(8,(function(){return{addedLength:0,percents:l("float32",B()),lengths:l("float32",B())}})),it=tt(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)et.release(t.lengths[e]);t.lengths.length=0}));var st=function(){var t=Math;function e(t,e,i,s,n,r){var a=t*s+e*n+i*r-n*s-r*t-i*e;return a>-.001&&a<.001}var i=function(t,e,i,s){var n,r,a,o,h,l,p=B(),d=0,c=[],u=[],f=et.newElement();for(a=i.length,n=0;n<p;n+=1){for(h=n/(p-1),l=0,r=0;r<a;r+=1)o=g(1-h,3)*t[r]+3*g(1-h,2)*h*i[r]+3*(1-h)*g(h,2)*s[r]+g(h,3)*e[r],c[r]=o,null!==u[r]&&(l+=g(c[r]-u[r],2)),u[r]=c[r];l&&(d+=l=v(l)),f.percents[n]=h,f.lengths[n]=d}return f.addedLength=d,f};function s(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var r,a=(r={},function(t,i,a,o){var h=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!r[h]){var l,d,c,u,f,m,y,b=B(),w=0,_=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(b=2);var k=new s(b);for(c=a.length,l=0;l<b;l+=1){for(y=p(c),f=l/(b-1),m=0,d=0;d<c;d+=1)u=g(1-f,3)*t[d]+3*g(1-f,2)*f*(t[d]+a[d])+3*(1-f)*g(f,2)*(i[d]+o[d])+g(f,3)*i[d],y[d]=u,null!==_&&(m+=g(y[d]-_[d],2));w+=m=v(m),k.points[l]=new n(m,y),_=y}k.segmentLength=w,r[h]=k}return r[h]});function o(t,e){var i=e.percents,s=e.lengths,n=i.length,r=y((n-1)*t),a=t*e.addedLength,o=0;if(r===n-1||0===r||a===s[r])return i[r];for(var h=s[r]>a?-1:1,l=!0;l;)if(s[r]<=a&&s[r+1]>a?(o=(a-s[r])/(s[r+1]-s[r]),l=!1):r+=h,r<0||r>=n-1){if(r===n-1)return i[r];l=!1}return i[r]+(i[r+1]-i[r])*o}var h=l("float32",8);return{getSegmentsLength:function(t){var e,s=it.newElement(),n=t.c,r=t.v,a=t.o,o=t.i,h=t._length,l=s.lengths,p=0;for(e=0;e<h-1;e+=1)l[e]=i(r[e],r[e+1],a[e],o[e+1]),p+=l[e].addedLength;return n&&h&&(l[e]=i(r[e],r[0],a[e],o[0]),p+=l[e].addedLength),s.totalLength=p,s},getNewSegment:function(e,i,s,n,r,a,l){r<0?r=0:r>1&&(r=1);var p,d=o(r,l),c=o(a=a>1?1:a,l),u=e.length,f=1-d,m=1-c,g=f*f*f,v=d*f*f*3,y=d*d*f*3,b=d*d*d,w=f*f*m,_=d*f*m+f*d*m+f*f*c,k=d*d*m+f*d*c+d*f*c,x=d*d*c,A=f*m*m,C=d*m*m+f*c*m+f*m*c,S=d*c*m+f*c*c+d*m*c,E=d*c*c,P=m*m*m,T=c*m*m+m*c*m+m*m*c,M=c*c*m+m*c*c+c*m*c,D=c*c*c;for(p=0;p<u;p+=1)h[4*p]=t.round(1e3*(g*e[p]+v*s[p]+y*n[p]+b*i[p]))/1e3,h[4*p+1]=t.round(1e3*(w*e[p]+_*s[p]+k*n[p]+x*i[p]))/1e3,h[4*p+2]=t.round(1e3*(A*e[p]+C*s[p]+S*n[p]+E*i[p]))/1e3,h[4*p+3]=t.round(1e3*(P*e[p]+T*s[p]+M*n[p]+D*i[p]))/1e3;return h},getPointInSegment:function(e,i,s,n,r,a){var h=o(r,a),l=1-h;return[t.round(1e3*(l*l*l*e[0]+(h*l*l+l*h*l+l*l*h)*s[0]+(h*h*l+l*h*h+h*l*h)*n[0]+h*h*h*i[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(h*l*l+l*h*l+l*l*h)*s[1]+(h*h*l+l*h*h+h*l*h)*n[1]+h*h*h*i[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(i,s,n,r,a,o,h,l,p){if(0===n&&0===o&&0===p)return e(i,s,r,a,h,l);var d,c=t.sqrt(t.pow(r-i,2)+t.pow(a-s,2)+t.pow(o-n,2)),u=t.sqrt(t.pow(h-i,2)+t.pow(l-s,2)+t.pow(p-n,2)),f=t.sqrt(t.pow(h-r,2)+t.pow(l-a,2)+t.pow(p-o,2));return(d=c>u?c>f?c-u-f:f-u-c:f>u?f-u-c:u-c-f)>-1e-4&&d<1e-4}}}(),nt=n,rt=Math.abs;function at(t,e){var i,s=this.offsetTime;"multidimensional"===this.propType&&(i=l("float32",this.pv.length));for(var n,r,a,o,h,p,d,c,u,f=e.lastIndex,m=f,g=this.keyframes.length-1,v=!0;v;){if(n=this.keyframes[m],r=this.keyframes[m+1],m===g-1&&t>=r.t-s){n.h&&(n=r),f=0;break}if(r.t-s>t){f=m;break}m<g-1?m+=1:(f=0,v=!1)}a=this.keyframesMetadata[m]||{};var y,b,w,_,x,A,C,S,E,P,T,M,D,F,I,L,R,$,O=r.t-s,N=n.t-s;if(n.to){a.bezierData||(a.bezierData=st.buildBezierData(n.s,r.s||n.e,n.to,n.ti));var z=a.bezierData;if(t>=O||t<N){var B=t>=O?z.points.length-1:0;for(h=z.points[B].point.length,o=0;o<h;o+=1)i[o]=z.points[B].point[o]}else{a.__fnct?u=a.__fnct:(u=Z.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,a.__fnct=u),p=u((t-N)/(O-N));var V,q=z.segmentLength*p,j=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastAddedLength:0;for(c=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastPoint:0,v=!0,d=z.points.length;v;){if(j+=z.points[c].partialLength,0===q||0===p||c===z.points.length-1){for(h=z.points[c].point.length,o=0;o<h;o+=1)i[o]=z.points[c].point[o];break}if(q>=j&&q<j+z.points[c+1].partialLength){for(V=(q-j)/z.points[c+1].partialLength,h=z.points[c].point.length,o=0;o<h;o+=1)i[o]=z.points[c].point[o]+(z.points[c+1].point[o]-z.points[c].point[o])*V;break}c<d-1?c+=1:v=!1}e._lastPoint=c,e._lastAddedLength=j-z.points[c].partialLength,e._lastKeyframeIndex=m}}else{var H,W,Y,U,X;if(g=n.s.length,y=r.s||n.e,this.sh&&1!==n.h)t>=O?(i[0]=y[0],i[1]=y[1],i[2]=y[2]):t<=N?(i[0]=n.s[0],i[1]=n.s[1],i[2]=n.s[2]):function(t,e){var i=e[0],s=e[1],n=e[2],r=e[3],a=Math.atan2(2*s*r-2*i*n,1-2*s*s-2*n*n),o=Math.asin(2*i*s+2*n*r),h=Math.atan2(2*i*r-2*s*n,1-2*i*i-2*n*n);t[0]=a/k,t[1]=o/k,t[2]=h/k}(i,(b=ot(n.s),w=ot(y),_=(t-N)/(O-N),P=[],T=b[0],M=b[1],D=b[2],F=b[3],I=w[0],L=w[1],R=w[2],$=w[3],(A=T*I+M*L+D*R+F*$)<0&&(A=-A,I=-I,L=-L,R=-R,$=-$),1-A>1e-6?(x=Math.acos(A),C=Math.sin(x),S=Math.sin((1-_)*x)/C,E=Math.sin(_*x)/C):(S=1-_,E=_),P[0]=S*T+E*I,P[1]=S*M+E*L,P[2]=S*D+E*R,P[3]=S*F+E*$,P));else for(m=0;m<g;m+=1)1!==n.h&&(t>=O?p=1:t<N?p=0:(n.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[m]?u=a.__fnct[m]:(H=void 0===n.o.x[m]?n.o.x[0]:n.o.x[m],W=void 0===n.o.y[m]?n.o.y[0]:n.o.y[m],Y=void 0===n.i.x[m]?n.i.x[0]:n.i.x[m],U=void 0===n.i.y[m]?n.i.y[0]:n.i.y[m],u=Z.getBezierEasing(H,W,Y,U).get,a.__fnct[m]=u)):a.__fnct?u=a.__fnct:(H=n.o.x,W=n.o.y,Y=n.i.x,U=n.i.y,u=Z.getBezierEasing(H,W,Y,U).get,n.keyframeMetadata=u),p=u((t-N)/(O-N)))),y=r.s||n.e,X=1===n.h?n.s[m]:n.s[m]+(y[m]-n.s[m])*p,"multidimensional"===this.propType?i[m]=X:i=X}return e.lastIndex=f,i}function ot(t){var e=t[0]*k,i=t[1]*k,s=t[2]*k,n=Math.cos(e/2),r=Math.cos(i/2),a=Math.cos(s/2),o=Math.sin(e/2),h=Math.sin(i/2),l=Math.sin(s/2);return[o*h*a+n*r*l,o*r*a+n*h*l,n*h*a-o*r*l,n*r*a-o*h*l]}function ht(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==nt&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv}function lt(t){var e;if("unidimensional"===this.propType)e=t*this.mult,rt(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,rt(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function pt(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function dt(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ct(t,e,i,s){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=pt,this.setVValue=lt,this.addEffect=dt}function ut(t,e,i,s){var n;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r=e.k.length;for(this.v=l("float32",r),this.pv=l("float32",r),this.vel=l("float32",r),n=0;n<r;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=pt,this.setVValue=lt,this.addEffect=dt}function ft(t,e,i,s){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:nt,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.v=nt,this.pv=nt,this._isFirstFrame=!0,this.getValue=pt,this.setVValue=lt,this.interpolateValue=at,this.effectsSequence=[ht.bind(this)],this.addEffect=dt}function mt(t,e,i,s){var n;this.propType="multidimensional";var r,a,o,h,p=e.k.length;for(n=0;n<p-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n+1]&&e.k[n+1].s&&(r=e.k[n].s,a=e.k[n+1].s,o=e.k[n].to,h=e.k[n].ti,(2===r.length&&(r[0]!==a[0]||r[1]!==a[1])&&st.pointOnLine2D(r[0],r[1],a[0],a[1],r[0]+o[0],r[1]+o[1])&&st.pointOnLine2D(r[0],r[1],a[0],a[1],a[0]+h[0],a[1]+h[1])||3===r.length&&(r[0]!==a[0]||r[1]!==a[1]||r[2]!==a[2])&&st.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],r[0]+o[0],r[1]+o[1],r[2]+o[2])&&st.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],a[0]+h[0],a[1]+h[1],a[2]+h[2]))&&(e.k[n].to=null,e.k[n].ti=null),r[0]===a[0]&&r[1]===a[1]&&0===o[0]&&0===o[1]&&0===h[0]&&0===h[1]&&(2===r.length||r[2]===a[2]&&0===o[2]&&0===h[2])&&(e.k[n].to=null,e.k[n].ti=null));this.effectsSequence=[ht.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.getValue=pt,this.setVValue=lt,this.interpolateValue=at,this.frameId=-1;var d=e.k[0].s.length;for(this.v=l("float32",d),this.pv=l("float32",d),n=0;n<d;n+=1)this.v[n]=nt,this.pv[n]=nt;this._caching={lastFrame:nt,lastIndex:0,value:l("float32",d)},this.addEffect=dt}var gt={getProp:function(t,e,i,s,n){var r;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])r=new ut(t,e,s,n);else switch(i){case 0:r=new ft(t,e,s,n);break;case 1:r=new mt(t,e,s,n)}else r=new ct(t,e,s,n);return r.effectsSequence.length&&n.addDynamicProperty(r),r}};function vt(){}vt.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var yt=tt(8,(function(){return l("float32",2)}));function bt(){this.c=!1,this._length=0,this._maxLength=8,this.v=p(this._maxLength),this.o=p(this._maxLength),this.i=p(this._maxLength)}bt.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=yt.newElement(),this.o[i]=yt.newElement(),this.i[i]=yt.newElement(),i+=1},bt.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},bt.prototype.doubleArrayLength=function(){this.v=this.v.concat(p(this._maxLength)),this.i=this.i.concat(p(this._maxLength)),this.o=this.o.concat(p(this._maxLength)),this._maxLength*=2},bt.prototype.setXYAt=function(t,e,i,s,n){var r;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}(!r[s]||r[s]&&!n)&&(r[s]=yt.newElement()),r[s][0]=t,r[s][1]=e},bt.prototype.setTripleAt=function(t,e,i,s,n,r,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,s,"o",a,o),this.setXYAt(n,r,"i",a,o)},bt.prototype.reverse=function(){var t=new bt;t.setPathData(this.c,this._length);var e=this.v,i=this.o,s=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],s[0][0],s[0][1],i[0][0],i[0][1],0,!1),n=1);var r,a=this._length-1,o=this._length;for(r=n;r<o;r+=1)t.setTripleAt(e[a][0],e[a][1],s[a][0],s[a][1],i[a][0],i[a][1],r,!1),a-=1;return t},bt.prototype.length=function(){return this._length};var wt,_t=((wt=tt(4,(function(){return new bt}),(function(t){var e,i=t._length;for(e=0;e<i;e+=1)yt.release(t.v[e]),yt.release(t.i[e]),yt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}))).clone=function(t){var e,i=wt.newElement(),s=void 0===t._length?t.v.length:t._length;for(i.setLength(s),i.c=t.c,e=0;e<s;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},wt);function kt(){this._length=0,this._maxLength=4,this.shapes=p(this._maxLength)}kt.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(p(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},kt.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)_t.release(this.shapes[t]);this._length=0};var xt=function(){var t={newShapeCollection:function(){return e?s[e-=1]:new kt},release:function(t){var n,r=t._length;for(n=0;n<r;n+=1)_t.release(t.shapes[n]);t._length=0,e===i&&(s=Q.double(s),i*=2),s[e]=t,e+=1}},e=0,i=4,s=p(i);return t}(),At=function(){var t=-999999;function e(t,e,i){var s,n,r,a,o,h,l,p,d,c=i.lastIndex,u=this.keyframes;if(t<u[0].t-this.offsetTime)s=u[0].s[0],r=!0,c=0;else if(t>=u[u.length-1].t-this.offsetTime)s=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],r=!0;else{for(var f,m,g,v=c,y=u.length-1,b=!0;b&&(f=u[v],!((m=u[v+1]).t-this.offsetTime>t));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},c=v,!(r=1===f.h)){if(t>=m.t-this.offsetTime)p=1;else if(t<f.t-this.offsetTime)p=0;else{var w;g.__fnct?w=g.__fnct:(w=Z.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=w),p=w((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}n=m.s?m.s[0]:f.e[0]}s=f.s[0]}for(h=e._length,l=s.i[0].length,i.lastIndex=c,a=0;a<h;a+=1)for(o=0;o<l;o+=1)d=r?s.i[a][o]:s.i[a][o]+(n.i[a][o]-s.i[a][o])*p,e.i[a][o]=d,d=r?s.o[a][o]:s.o[a][o]+(n.o[a][o]-s.o[a][o])*p,e.o[a][o]=d,d=r?s.v[a][o]:s.v[a][o]+(n.v[a][o]-s.v[a][o])*p,e.v[a][o]=d}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==t&&(n<i&&e<i||n>s&&e>s)||(this._caching.lastIndex=n<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function s(){this.paths=this.localShapeCollection}function n(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,s=t._length;for(i=0;i<s;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=_t.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function r(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===i?e.pt.k:e.ks.k;this.v=_t.clone(n),this.pv=_t.clone(this.v),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,n,r){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===r?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=_t.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=_t.clone(this.v),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=r,a.prototype.setVValue=n,a.prototype.addEffect=h,l.prototype.getValue=r,l.prototype.interpolateShape=e,l.prototype.setVValue=n,l.prototype.addEffect=h;var p=function(){var t=x;function e(t,e){this.v=_t.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=gt.getProp(t,e.p,1,0,this),this.s=gt.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],s=this.s.v[0]/2,n=this.s.v[1]/2,r=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=i-n,a.v[1][0]=r?e+s:e-s,a.v[1][1]=i,a.v[2][0]=e,a.v[2][1]=i+n,a.v[3][0]=r?e-s:e+s,a.v[3][1]=i,a.i[0][0]=r?e-s*t:e+s*t,a.i[0][1]=i-n,a.i[1][0]=r?e+s:e-s,a.i[1][1]=i-n*t,a.i[2][0]=r?e+s*t:e-s*t,a.i[2][1]=i+n,a.i[3][0]=r?e-s:e+s,a.i[3][1]=i+n*t,a.o[0][0]=r?e+s*t:e-s*t,a.o[0][1]=i-n,a.o[1][0]=r?e+s:e-s,a.o[1][1]=i+n*t,a.o[2][0]=r?e-s*t:e+s*t,a.o[2][1]=i+n,a.o[3][0]=r?e-s:e+s,a.o[3][1]=i-n*t}},o([vt],e),e}(),d=function(){function t(t,e){this.v=_t.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=gt.getProp(t,e.ir,0,0,this),this.is=gt.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=gt.getProp(t,e.pt,0,0,this),this.p=gt.getProp(t,e.p,1,0,this),this.r=gt.getProp(t,e.r,0,k,this),this.or=gt.getProp(t,e.or,0,0,this),this.os=gt.getProp(t,e.os,0,.01,this),this.localShapeCollection=xt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,s,n=2*Math.floor(this.pt.v),r=2*Math.PI/n,a=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,d=2*Math.PI*o/(2*n),c=2*Math.PI*h/(2*n),u=-Math.PI/2;u+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<n;t+=1){i=a?l:p,s=a?d:c;var m=(e=a?o:h)*Math.cos(u),g=e*Math.sin(u),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*s*i*f,g-y*s*i*f,m+v*s*i*f,g+y*s*i*f,t,!0),a=!a,u+=r*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,n=this.os.v,r=2*Math.PI*s/(4*e),a=.5*-Math.PI,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(a),l=s*Math.sin(a),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),d=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*r*n*o,l-d*r*n*o,h+p*r*n*o,l+d*r*n*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},o([vt],t),t}(),c=function(){function t(t,e){this.v=_t.newElement(),this.v.c=!0,this.localShapeCollection=xt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=gt.getProp(t,e.p,1,0,this),this.s=gt.getProp(t,e.s,1,0,this),this.r=gt.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,n=b(i,s,this.r.v),r=n*(1-x);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+n,t+i,e-s+r,0,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-r,t+i,e+s-n,1,!0),0!==n?(this.v.setTripleAt(t+i-n,e+s,t+i-n,e+s,t+i-r,e+s,2,!0),this.v.setTripleAt(t-i+n,e+s,t-i+r,e+s,t-i+n,e+s,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-n,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+r,t-i,e-s+n,5,!0),this.v.setTripleAt(t-i+n,e-s,t-i+n,e-s,t-i+r,e-s,6,!0),this.v.setTripleAt(t+i-n,e-s,t+i-r,e-s,t+i-n,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+r,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+r,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+r,t+i,e-s+n,0,!0),0!==n?(this.v.setTripleAt(t+i-n,e-s,t+i-n,e-s,t+i-r,e-s,1,!0),this.v.setTripleAt(t-i+n,e-s,t-i+r,e-s,t-i+n,e-s,2,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+n,t-i,e-s+r,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-r,t-i,e+s-n,4,!0),this.v.setTripleAt(t-i+n,e+s,t-i+n,e+s,t-i+r,e+s,5,!0),this.v.setTripleAt(t+i-n,e+s,t+i-r,e+s,t+i-n,e+s,6,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-n,t+i,e+s-r,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+r,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-r,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-r,e+s,t+i,e+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},o([vt],t),t}();var u={getShapeProp:function(t,e,i){var s;return 3===i||4===i?s=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new a(t,e,i):5===i?s=new c(t,e):6===i?s=new p(t,e):7===i&&(s=new d(t,e)),s.k&&t.addDynamicProperty(s),s},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return u}(),Ct=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function r(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,-n,0,0,n,s,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(1,0,0,0,0,s,-n,0,0,n,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,0,n,0,0,1,0,0,-n,0,s,0,0,0,0,1)}function h(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,-n,0,0,n,s,0,0,0,0,1,0,0,0,0,1)}function p(t,e){return this._t(1,e,t,1,0,0)}function d(t,e){return this.shear(i(t),i(e))}function c(s,n){var r=t(n),a=e(n);return this._t(r,a,0,0,-a,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(s),1,0,0,0,0,1,0,0,0,0,1)._t(r,-a,0,0,a,r,0,0,0,0,1,0,0,0,0,1)}function u(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function f(t,e,i,s,n,r,a,o,h,l,p,d,c,u,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=n,this.props[5]=r,this.props[6]=a,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=d,this.props[12]=c,this.props[13]=u,this.props[14]=f,this.props[15]=m,this}function m(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function g(t,e,i,s,n,r,a,o,h,l,p,d,c,u,f,m){var g=this.props;if(1===t&&0===e&&0===i&&0===s&&0===n&&1===r&&0===a&&0===o&&0===h&&0===l&&1===p&&0===d)return g[12]=g[12]*t+g[15]*c,g[13]=g[13]*r+g[15]*u,g[14]=g[14]*p+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],w=g[3],_=g[4],k=g[5],x=g[6],A=g[7],C=g[8],S=g[9],E=g[10],P=g[11],T=g[12],M=g[13],D=g[14],F=g[15];return g[0]=v*t+y*n+b*h+w*c,g[1]=v*e+y*r+b*l+w*u,g[2]=v*i+y*a+b*p+w*f,g[3]=v*s+y*o+b*d+w*m,g[4]=_*t+k*n+x*h+A*c,g[5]=_*e+k*r+x*l+A*u,g[6]=_*i+k*a+x*p+A*f,g[7]=_*s+k*o+x*d+A*m,g[8]=C*t+S*n+E*h+P*c,g[9]=C*e+S*r+E*l+P*u,g[10]=C*i+S*a+E*p+P*f,g[11]=C*s+S*o+E*d+P*m,g[12]=T*t+M*n+D*h+F*c,g[13]=T*e+M*r+D*l+F*u,g[14]=T*i+M*a+D*p+F*f,g[15]=T*s+M*o+D*d+F*m,this._identityCalculated=!1,this}function v(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function b(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function w(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function k(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function x(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function A(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function C(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function S(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,s=-this.props[4]/t,n=this.props[0]/t,r=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Ct;return o.props[0]=e,o.props[1]=i,o.props[4]=s,o.props[5]=n,o.props[12]=r,o.props[13]=a,o}function E(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function P(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=E(t[e]);return s}function T(t,e,i){var s=l("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=e[0],s[3]=e[1],s[4]=i[0],s[5]=i[1];else{var n=this.props[0],r=this.props[1],a=this.props[4],o=this.props[5],h=this.props[12],p=this.props[13];s[0]=t[0]*n+t[1]*a+h,s[1]=t[0]*r+t[1]*o+p,s[2]=e[0]*n+e[1]*a+h,s[3]=e[0]*r+e[1]*o+p,s[4]=i[0]*n+i[1]*a+h,s[5]=i[0]*r+i[1]*o+p}return s}function M(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function D(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function F(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=s(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function I(t){return t<1e-6&&t>0||t>-1e-6&&t<0?s(1e4*t)/1e4:t}function L(){var t=this.props;return"matrix("+I(t[0])+","+I(t[1])+","+I(t[4])+","+I(t[5])+","+I(t[12])+","+I(t[13])+")"}return function(){this.reset=n,this.rotate=r,this.rotateX=a,this.rotateY=o,this.rotateZ=h,this.skew=d,this.skewFromAxis=c,this.shear=p,this.scale=u,this.setTransform=f,this.translate=m,this.transform=g,this.multiply=v,this.applyToPoint=k,this.applyToX=x,this.applyToY=A,this.applyToZ=C,this.applyToPointArray=M,this.applyToTriplePoints=T,this.applyToPointStringified=D,this.toCSS=F,this.to2dCSS=L,this.clone=w,this.cloneFromProps=_,this.equals=b,this.inversePoints=P,this.inversePoint=E,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=l("float32",16),this.reset()}}();function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}var Et={},Pt="__[STANDALONE]__";function Tt(){J.searchAnimations()}Et.play=J.play,Et.pause=J.pause,Et.setLocationHref=function(e){t=e},Et.togglePause=J.togglePause,Et.setSpeed=J.setSpeed,Et.setDirection=J.setDirection,Et.stop=J.stop,Et.searchAnimations=Tt,Et.registerAnimation=J.registerAnimation,Et.loadAnimation=function(t){return J.loadAnimation(t)},Et.setSubframeRendering=function(t){!function(t){c=!!t}(t)},Et.resize=J.resize,Et.goToAndStop=J.goToAndStop,Et.destroy=J.destroy,Et.setQuality=function(t){if("string"==typeof t)switch(t){case"high":z(200);break;default:case"medium":z(50);break;case"low":z(10)}else!isNaN(t)&&t>1&&z(t);B()},Et.inBrowser=function(){return"undefined"!=typeof navigator},Et.installPlugin=function(t,e){"expressions"===t&&(u=e)},Et.freeze=J.freeze,Et.unfreeze=J.unfreeze,Et.setVolume=J.setVolume,Et.mute=J.mute,Et.unmute=J.unmute,Et.getRegisteredAnimations=J.getRegisteredAnimations,Et.useWebWorker=function(t){s=!!t},Et.setIDPrefix=function(t){f=t},Et.__getFactory=function(t){switch(t){case"propertyFactory":return gt;case"shapePropertyFactory":return At;case"matrix":return Ct;default:return null}},Et.version="5.12.2";var Mt="";if(Pt){var Dt=document.getElementsByTagName("script"),Ft=Dt[Dt.length-1]||{src:""};Mt=Ft.src?Ft.src.replace(/^[^\?]+\??/,""):"",function(t){for(var e=Mt.split("&"),i=0;i<e.length;i+=1){var s=e[i].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}return null}("renderer")}var It=setInterval((function(){"complete"===document.readyState&&(clearInterval(It),Tt())}),100);try{"object"!==St(e)&&i.amdO}catch(t){}var Lt=function(){var t={},e={};return t.registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,s){return new e[t](i,s)},t}();function Rt(){}function $t(){}function Ot(){}Rt.prototype.initModifierProperties=function(){},Rt.prototype.addShapeToModifier=function(){},Rt.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:xt.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},Rt.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=n,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Rt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},o([vt],Rt),o([Rt],$t),$t.prototype.initModifierProperties=function(t,e){this.s=gt.getProp(t,e.s,0,.01,this),this.e=gt.getProp(t,e.e,0,.01,this),this.o=gt.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},$t.prototype.addShapeToModifier=function(t){t.pathsData=[]},$t.prototype.calculateShapeEdges=function(t,e,i,s,n){var r=[];e<=1?r.push({s:t,e}):t>=1?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));var a,o,h=[],l=r.length;for(a=0;a<l;a+=1){var p,d;(o=r[a]).e*n<s||o.s*n>s+i||(p=o.s*n<=s?0:(o.s*n-s)/i,d=o.e*n>=s+i?1:(o.e*n-s)/i,h.push([p,d]))}return h.length||h.push([0,0]),h},$t.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)it.release(t[e]);return t.length=0,t},$t.prototype.processShapes=function(t){var e,i,s,n;if(this._mdf||t){var r=this.o.v%360/360;if(r<0&&(r+=1),(e=this.s.v>1?1+r:this.s.v<0?0+r:this.s.v+r)>(i=this.e.v>1?1+r:this.e.v<0?0+r:this.e.v+r)){var a=e;e=i,i=a}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,h,l,p,d,c=this.shapes.length,u=0;if(i===e)for(n=0;n<c;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(n=0;n<c;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var f,m,g=[];for(n=0;n<c;n+=1)if((f=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(h=(s=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(l=this.releasePathsData(f.pathsData),o=0;o<h;o+=1)p=st.getSegmentsLength(s.shapes[o]),l.push(p),d+=p.totalLength;f.totalShapeLength=d,f.pathsData=l}u+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=e,b=i,w=0;for(n=c-1;n>=0;n-=1)if((f=this.shapes[n]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&c>1?(v=this.calculateShapeEdges(e,i,f.totalShapeLength,w,u),w+=f.totalShapeLength):v=[[y,b]],h=v.length,o=0;o<h;o+=1){y=v[o][0],b=v[o][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var _=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var k=_.pop();this.addPaths(_,m),_=this.addShapes(f,g[1],k)}else this.addPaths(_,m),_=this.addShapes(f,g[1]);this.addPaths(_,m)}}f.shape.paths=m}}},$t.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e.addShape(t[i])},$t.prototype.addSegment=function(t,e,i,s,n,r,a){n.setXYAt(e[0],e[1],"o",r),n.setXYAt(i[0],i[1],"i",r+1),a&&n.setXYAt(t[0],t[1],"v",r),n.setXYAt(s[0],s[1],"v",r+1)},$t.prototype.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),s&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},$t.prototype.addShapes=function(t,e,i){var s,n,r,a,o,h,l,p,d=t.pathsData,c=t.shape.paths.shapes,u=t.shape.paths._length,f=0,m=[],g=!0;for(i?(o=i._length,p=i._length):(i=_t.newElement(),o=0,p=0),m.push(i),s=0;s<u;s+=1){for(h=d[s].lengths,i.c=c[s].c,r=c[s].c?h.length:h.length+1,n=1;n<r;n+=1)if(f+(a=h[n-1]).addedLength<e.s)f+=a.addedLength,i.c=!1;else{if(f>e.e){i.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(c[s].v[n-1],c[s].o[n-1],c[s].i[n],c[s].v[n],i,o,g),g=!1):(l=st.getNewSegment(c[s].v[n-1],c[s].v[n],c[s].o[n-1],c[s].i[n],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,h[n-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1),f+=a.addedLength,o+=1}if(c[s].c&&h.length){if(a=h[n-1],f<=e.e){var v=h[n-1].addedLength;e.s<=f&&e.e>=f+v?(this.addSegment(c[s].v[n-1],c[s].o[n-1],c[s].i[0],c[s].v[0],i,o,g),g=!1):(l=st.getNewSegment(c[s].v[n-1],c[s].v[0],c[s].o[n-1],c[s].i[0],(e.s-f)/v,(e.e-f)/v,h[n-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1)}else i.c=!1;f+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],"i",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;s<u-1&&(i=_t.newElement(),g=!0,m.push(i),o=0)}return m},o([Rt],Ot),Ot.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=gt.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ot.prototype.processPath=function(t,e){var i=e/100,s=[0,0],n=t._length,r=0;for(r=0;r<n;r+=1)s[0]+=t.v[r][0],s[1]+=t.v[r][1];s[0]/=n,s[1]/=n;var a,o,h,l,p,d,c=_t.newElement();for(c.c=t.c,r=0;r<n;r+=1)a=t.v[r][0]+(s[0]-t.v[r][0])*i,o=t.v[r][1]+(s[1]-t.v[r][1])*i,h=t.o[r][0]+(s[0]-t.o[r][0])*-i,l=t.o[r][1]+(s[1]-t.o[r][1])*-i,p=t.i[r][0]+(s[0]-t.i[r][0])*-i,d=t.i[r][1]+(s[1]-t.i[r][1])*-i,c.setTripleAt(a,o,h,l,p,d,r);return c},Ot.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amount.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Nt=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Ct,this.pre=new Ct,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=gt.getProp(t,e.p.x,0,0,this),this.py=gt.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=gt.getProp(t,e.p.z,0,0,this))):this.p=gt.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=gt.getProp(t,e.rx,0,k,this),this.ry=gt.getProp(t,e.ry,0,k,this),this.rz=gt.getProp(t,e.rz,0,k,this),e.or.k[0].ti){var s,n=e.or.k.length;for(s=0;s<n;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null}this.or=gt.getProp(t,e.or,1,k,this),this.or.sh=!0}else this.r=gt.getProp(t,e.r||{k:0},0,k,this);e.sk&&(this.sk=gt.getProp(t,e.sk,0,k,this),this.sa=gt.getProp(t,e.sa,0,k,this)),this.a=gt.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=gt.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=gt.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var s,n;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],n=[];var r=this.px,a=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(s[0]=r.getValueAtTime((r.keyframes[0].t+.01)/i,0),s[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),n[0]=r.getValueAtTime(r.keyframes[0].t/i,0),n[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(s[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/i,0),s[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),n[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(s=[r.pv,a.pv],n[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/i,r.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else s=n=t;this.v.rotate(-Math.atan2(s[1]-n[1],s[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.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,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},o([vt],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=vt.prototype.addDynamicProperty,{getTransformProperty:function(t,i,s){return new e(t,i,s)}}}();function zt(){}function Bt(){}function Vt(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function qt(t){return Math.abs(t)<=1e-5}function jt(t,e,i){return t*(1-i)+e*i}function Ht(t,e,i){return[jt(t[0],e[0],i),jt(t[1],e[1],i)]}function Wt(t,e,i,s){return[3*e-t-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function Yt(t){return new Ut(t,t,t,t,!1)}function Ut(t,e,i,s,n){n&&ie(t,e)&&(e=Ht(t,s,1/3)),n&&ie(i,s)&&(i=Ht(t,s,2/3));var r=Wt(t[0],e[0],i[0],s[0]),a=Wt(t[1],e[1],i[1],s[1]);this.a=[r[0],a[0]],this.b=[r[1],a[1]],this.c=[r[2],a[2]],this.d=[r[3],a[3]],this.points=[t,e,i,s]}function Xt(t,e){var i=t.points[0][e],s=t.points[t.points.length-1][e];if(i>s){var n=s;s=i,i=n}for(var r=function(t,e,i){if(0===t)return[];var s=e*e-4*t*i;if(s<0)return[];var n=-e/(2*t);if(0===s)return[n];var r=Math.sqrt(s)/(2*t);return[n-r,n+r]}(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<r.length;a+=1)if(r[a]>0&&r[a]<1){var o=t.point(r[a])[e];o<i?i=o:o>s&&(s=o)}return{min:i,max:s}}function Kt(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function Gt(t){var e=t.bez.split(.5);return[Kt(e[0],t.t1,t.t),Kt(e[1],t.t,t.t2)]}function Jt(t,e,i,s,n,r){if(h=t,l=e,2*Math.abs(h.cx-l.cx)<h.width+l.width&&2*Math.abs(h.cy-l.cy)<h.height+l.height)if(i>=r||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s)n.push([t.t,e.t]);else{var a=Gt(t),o=Gt(e);Jt(a[0],o[0],i+1,s,n,r),Jt(a[0],o[1],i+1,s,n,r),Jt(a[1],o[0],i+1,s,n,r),Jt(a[1],o[1],i+1,s,n,r)}var h,l}function Zt(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Qt(t,e,i,s){var n=[t[0],t[1],1],r=[e[0],e[1],1],a=[i[0],i[1],1],o=[s[0],s[1],1],h=Zt(Zt(n,r),Zt(a,o));return qt(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function te(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function ee(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function ie(t,e){return Vt(t[0],e[0])&&Vt(t[1],e[1])}function se(){}function ne(t,e,i,s,n,r,a){var o=i-Math.PI/2,h=i+Math.PI/2,l=e[0]+Math.cos(i)*s*n,p=e[1]-Math.sin(i)*s*n;t.setTripleAt(l,p,l+Math.cos(o)*r,p-Math.sin(o)*r,l+Math.cos(h)*a,p-Math.sin(h)*a,t.length())}function re(t,e){var i,s,n,r,a=0===e?t.length()-1:e-1,o=(e+1)%t.length(),h=(i=t.v[a],s=t.v[o],n=[s[0]-i[0],s[1]-i[1]],r=.5*-Math.PI,[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]);return Math.atan2(0,1)-Math.atan2(h[1],h[0])}function ae(t,e,i,s,n,r,a){var o=re(e,i),h=e.v[i%e._length],l=e.v[0===i?e._length-1:i-1],p=e.v[(i+1)%e._length],d=2===r?Math.sqrt(Math.pow(h[0]-l[0],2)+Math.pow(h[1]-l[1],2)):0,c=2===r?Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)):0;ne(t,e.v[i%e._length],o,a,s,c/(2*(n+1)),d/(2*(n+1)))}function oe(t,e,i,s,n,r){for(var a=0;a<s;a+=1){var o=(a+1)/(s+1),h=2===n?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);ne(t,e.point(o),l,r,i,h/(2*(s+1)),h/(2*(s+1))),r=-r}return r}function he(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[te(t,s,i),te(e,s,i)]}function le(t,e){var i,s,n,r,a,o,h;i=(h=he(t.points[0],t.points[1],e))[0],s=h[1],n=(h=he(t.points[1],t.points[2],e))[0],r=h[1],a=(h=he(t.points[2],t.points[3],e))[0],o=h[1];var l=Qt(i,s,n,r);null===l&&(l=s);var p=Qt(a,o,n,r);return null===p&&(p=a),new Ut(i,l,p,o)}function pe(t,e,i,s,n){var r=e.points[3],a=i.points[0];if(3===s)return r;if(ie(r,a))return r;if(2===s){var o=-e.tangentAngle(1),h=-i.tangentAngle(0)+Math.PI,l=Qt(r,te(r,o+Math.PI/2,100),a,te(a,o+Math.PI/2,100)),p=l?ee(l,r):ee(r,a)/2,d=te(r,o,2*p*x);return t.setXYAt(d[0],d[1],"o",t.length()-1),d=te(a,h,2*p*x),t.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],t.length()),a}var c=Qt(ie(r,e.points[2])?e.points[0]:e.points[2],r,a,ie(a,i.points[1])?i.points[3]:i.points[1]);return c&&ee(c,r)<n?(t.setTripleAt(c[0],c[1],c[0],c[1],c[0],c[1],t.length()),c):r}function de(t,e){var i=t.intersections(e);return i.length&&Vt(i[0][0],1)&&i.shift(),i.length?i[0]:null}function ce(t,e){var i=t.slice(),s=e.slice(),n=de(t[t.length-1],e[0]);return n&&(i[t.length-1]=t[t.length-1].split(n[0])[0],s[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=de(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[i,s]}function ue(t,e){var i,s,n,r,a=t.inflectionPoints();if(0===a.length)return[le(t,e)];if(1===a.length||Vt(a[1],1))return i=(n=t.split(a[0]))[0],s=n[1],[le(i,e),le(s,e)];i=(n=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return r=(n=n[1].split(o))[0],s=n[1],[le(i,e),le(r,e),le(s,e)]}function fe(){}function me(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",s="normal",n=e.length,r=0;r<n;r+=1)switch(e[r].toLowerCase()){case"italic":s="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:s,weight:t.fWeight||i}}o([Rt],zt),zt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=gt.getProp(t,e.c,0,null,this),this.o=gt.getProp(t,e.o,0,null,this),this.tr=Nt.getTransformProperty(t,e.tr,this),this.so=gt.getProp(t,e.tr.so,0,.01,this),this.eo=gt.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ct,this.rMatrix=new Ct,this.sMatrix=new Ct,this.tMatrix=new Ct,this.matrix=new Ct},zt.prototype.applyTransforms=function(t,e,i,s,n,r){var a=r?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-n),h=s.s.v[1]+(1-s.s.v[1])*(1-n);t.translate(s.p.v[0]*a*n,s.p.v[1]*a*n,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*a*n),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(r?1/o:o,r?1/h:h),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},zt.prototype.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},zt.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},zt.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},zt.prototype.changeGroupRender=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},zt.prototype.processShapes=function(t){var e,i,s,n,r,a=!1;if(this._mdf||t){var o,h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(r=0,s=0;s<=this._groups.length-1;s+=1){if(o=r<h,this._groups[s]._render=o,this.changeGroupRender(this._groups[s].it,o),!o){var p=this.elemsData[s].it,d=p[p.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}r+=1}this._currentCopies=h;var c=this.o.v,u=c%1,f=c>0?Math.floor(c):Math.ceil(c),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,w=0;if(c>0){for(;w<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),w+=u)}else if(c<0){for(;w>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),w-=u)}for(s=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,r=this._currentCopies;r;){if(b=(i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(s/(this._currentCopies-1)),0!==w){for((0!==s&&1===n||s!==this._currentCopies-1&&-1===n)&&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(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)i[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)i[y]=this.matrix.props[y];w+=1,r-=1,s+=n}}else for(r=this._currentCopies,s=0,n=1;r;)i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,r-=1,s+=n;return a},zt.prototype.addShape=function(){},o([Rt],Bt),Bt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=gt.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Bt.prototype.processPath=function(t,e){var i,s=_t.newElement();s.c=t.c;var n,r,a,o,h,l,p,d,c,u,f,m,g=t._length,v=0;for(i=0;i<g;i+=1)n=t.v[i],a=t.o[i],r=t.i[i],n[0]===a[0]&&n[1]===a[1]&&n[0]===r[0]&&n[1]===r[1]?0!==i&&i!==g-1||t.c?(o=0===i?t.v[g-1]:t.v[i-1],l=(h=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=f=n[0]+(o[0]-n[0])*l,d=m=n[1]-(n[1]-o[1])*l,c=p-(p-n[0])*x,u=d-(d-n[1])*x,s.setTripleAt(p,d,c,u,f,m,v),v+=1,o=i===g-1?t.v[0]:t.v[i+1],l=(h=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=c=n[0]+(o[0]-n[0])*l,d=u=n[1]+(o[1]-n[1])*l,f=p-(p-n[0])*x,m=d-(d-n[1])*x,s.setTripleAt(p,d,c,u,f,m,v),v+=1):(s.setTripleAt(n[0],n[1],a[0],a[1],r[0],r[1],v),v+=1):(s.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],v),v+=1);return s},Bt.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.rd.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Ut.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Ut.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Ut.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},Ut.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},Ut.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(qt(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var s=Math.sqrt(i);return qt(s)?s>0&&s<1?[e]:[]:[e-s,e+s].filter((function(t){return t>0&&t<1}))},Ut.prototype.split=function(t){if(t<=0)return[Yt(this.points[0]),this];if(t>=1)return[this,Yt(this.points[this.points.length-1])];var e=Ht(this.points[0],this.points[1],t),i=Ht(this.points[1],this.points[2],t),s=Ht(this.points[2],this.points[3],t),n=Ht(e,i,t),r=Ht(i,s,t),a=Ht(n,r,t);return[new Ut(this.points[0],e,n,a,!0),new Ut(a,r,s,this.points[3],!0)]},Ut.prototype.bounds=function(){return{x:Xt(this,0),y:Xt(this,1)}},Ut.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},Ut.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return Jt(Kt(this,0,1),Kt(t,0,1),0,e,s,i),s},Ut.shapeSegment=function(t,e){var i=(e+1)%t.length();return new Ut(t.v[e],t.o[e],t.i[i],t.v[i],!0)},Ut.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new Ut(t.v[i],t.i[i],t.o[e],t.v[e],!0)},o([Rt],se),se.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=gt.getProp(t,e.s,0,null,this),this.frequency=gt.getProp(t,e.r,0,null,this),this.pointsType=gt.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},se.prototype.processPath=function(t,e,i,s){var n=t._length,r=_t.newElement();if(r.c=t.c,t.c||(n-=1),0===n)return r;var a=-1,o=Ut.shapeSegment(t,0);ae(r,t,0,e,i,s,a);for(var h=0;h<n;h+=1)a=oe(r,o,e,i,s,-a),o=h!==n-1||t.c?Ut.shapeSegment(t,(h+1)%n):null,ae(r,t,h+1,e,i,s,a);return r},se.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h,l,p));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},o([Rt],fe),fe.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=gt.getProp(t,e.a,0,null,this),this.miterLimit=gt.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},fe.prototype.processPath=function(t,e,i,s){var n=_t.newElement();n.c=t.c;var r,a,o,h=t.length();t.c||(h-=1);var l=[];for(r=0;r<h;r+=1)o=Ut.shapeSegment(t,r),l.push(ue(o,e));if(!t.c)for(r=h-1;r>=0;r-=1)o=Ut.shapeSegmentInverted(t,r),l.push(ue(o,e));l=function(t){for(var e,i=1;i<t.length;i+=1)e=ce(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=ce(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}(l);var p=null,d=null;for(r=0;r<l.length;r+=1){var c=l[r];for(d&&(p=pe(n,d,c[0],i,s)),d=c[c.length-1],a=0;a<c.length;a+=1)o=c[a],p&&ie(o.points[0],p)?n.setXYAt(o.points[1][0],o.points[1][1],"o",n.length()-1):n.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],n.length()),n.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],n.length()),p=o.points[3]}return l.length&&pe(n,d,l[0][0],i,s),n},fe.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amount.v,l=this.miterLimit.v,p=this.lineJoin;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h,p,l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var ge=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,s=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(t,e){var i=a("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var s=a("span");s.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(s),document.body.appendChild(i);var n=s.offsetWidth;return s.style.fontFamily=function(t){var e,i=t.split(","),s=i.length,n=[];for(e=0;e<s;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&n.push(i[e]);return n.join(",")}(t)+", "+e,{node:s,w:n,parent:i}}function r(t,e){var i,s=document.body&&e?"svg":"canvas",n=me(t);if("svg"===s){var r=V("text");r.style.fontSize="100px",r.setAttribute("font-family",t.fFamily),r.setAttribute("font-style",n.style),r.setAttribute("font-weight",n.weight),r.textContent="1",t.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",t.fClass)):r.style.fontFamily=t.fFamily,e.appendChild(r),i=r}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=n.style+" "+n.weight+" 100px "+t.fFamily,i=a}return{measureText:function(t){return"svg"===s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function o(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var s=t.charCodeAt(1);s>=56320&&s<=57343&&(e=1024*(i-55296)+s-56320+65536)}return e}function h(t){var e=o(t);return e>=127462&&e<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return l.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==s.indexOf(i)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return h(t.substr(0,2))&&h(t.substr(2,2))},l.isRegionalCode=h,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var s=o(t.substr(e,2));if(s!==i)return!1;var n=0;for(e+=2;n<5;){if((s=o(t.substr(e,2)))<917601||s>917626)return!1;n+=1,e+=2}return 917631===o(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=i,l.prototype={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,s,n=t.length,r=this.chars.length;for(e=0;e<n;e+=1){for(i=0,s=!1;i<r;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(s=!0),i+=1;s||(this.chars.push(t[e]),r+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=r(t),t.cache={}})),void(this.fonts=t.list);var i,s=t.list,o=s.length,h=o;for(i=0;i<o;i+=1){var l,p,d=!0;if(s[i].loaded=!1,s[i].monoCase=n(s[i].fFamily,"monospace"),s[i].sansCase=n(s[i].fFamily,"sans-serif"),s[i].fPath){if("p"===s[i].fOrigin||3===s[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[i].fFamily+'"], style[f-origin="3"][f-family="'+s[i].fFamily+'"]')).length>0&&(d=!1),d){var c=a("style");c.setAttribute("f-forigin",s[i].fOrigin),c.setAttribute("f-origin",s[i].origin),c.setAttribute("f-family",s[i].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+s[i].fFamily+"; font-style: normal; src: url('"+s[i].fPath+"');}",e.appendChild(c)}}else if("g"===s[i].fOrigin||1===s[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),p=0;p<l.length;p+=1)-1!==l[p].href.indexOf(s[i].fPath)&&(d=!1);if(d){var u=a("link");u.setAttribute("f-forigin",s[i].fOrigin),u.setAttribute("f-origin",s[i].origin),u.type="text/css",u.rel="stylesheet",u.href=s[i].fPath,document.body.appendChild(u)}}else if("t"===s[i].fOrigin||2===s[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),p=0;p<l.length;p+=1)s[i].fPath===l[p].src&&(d=!1);if(d){var f=a("link");f.setAttribute("f-forigin",s[i].fOrigin),f.setAttribute("f-origin",s[i].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",s[i].fPath),e.appendChild(f)}}}else s[i].loaded=!0,h-=1;s[i].helper=r(s[i],e),s[i].cache={},this.fonts.push(s[i])}0===h?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,s){for(var n=0,r=this.chars.length;n<r;){if(this.chars[n].ch===e&&this.chars[n].style===i&&this.chars[n].fFamily===s)return this.chars[n];n+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,s)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var s=this.getFontByName(e),n=t;if(!s.cache[n]){var r=s.helper;if(" "===t){var a=r.measureText("|"+t+"|"),o=r.measureText("||");s.cache[n]=(a-o)/100}else s.cache[n]=r.measureText(t)/100}return s.cache[n]*i},checkLoadedFonts:function(){var t,e,i,s=this.fonts.length,n=s;for(t=0;t<s;t+=1)this.fonts[t].loaded?n-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(n-=1,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)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},l}();function ve(t){this.animationData=t}function ye(){}ve.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},ye.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var be,we=(be={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return be[t]||""});function _e(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function ke(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function xe(t,e,i){this.p=gt.getProp(e,t.v,1,0,i)}function Ae(t,e,i){this.p=gt.getProp(e,t.v,1,0,i)}function Ce(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Se(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Ee(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Pe(){this.p={}}function Te(t,e){var i,s=t.ef||[];this.effectElements=[];var n,r=s.length;for(i=0;i<r;i+=1)n=new Me(s[i],e),this.effectElements.push(n)}function Me(t,e){this.init(t,e)}function De(){}function Fe(){}function Ie(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function Le(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?gt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=gt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function Re(){}o([vt],Me),Me.prototype.getValue=Me.prototype.iterateDynamicProperties,Me.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var s,n=this.data.ef.length,r=this.data.ef;for(i=0;i<n;i+=1){switch(s=null,r[i].ty){case 0:s=new _e(r[i],e,this);break;case 1:s=new ke(r[i],e,this);break;case 2:s=new xe(r[i],e,this);break;case 3:s=new Ae(r[i],e,this);break;case 4:case 7:s=new Ee(r[i],e,this);break;case 10:s=new Ce(r[i],e,this);break;case 11:s=new Se(r[i],e,this);break;case 5:s=new Te(r[i],e,this);break;default:s=new Pe(r[i],e,this)}s&&this.effectElements.push(s)}},De.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=null;if(t){var e=t("layer"),i=t("effects"),s=t("shape"),n=t("text"),r=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=r(this):4===this.data.ty?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=we(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=F(),this.data.sr||(this.data.sr=1),this.effectsManager=new Te(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Fe.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},Ie.prototype.prepareFrame=function(){},o([ye,De,Fe],Ie),Ie.prototype.getBaseElement=function(){return null},Ie.prototype.renderFrame=function(){},Ie.prototype.destroy=function(){},Ie.prototype.initExpressions=function(){var t=null;if(t){var e=t("footage");this.layerInterface=e(this)}},Ie.prototype.getFootageData=function(){return this.footageData},Le.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},o([ye,De,Fe],Le),Le.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Le.prototype.show=function(){},Le.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Le.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Le.prototype.resume=function(){this._canPlay=!0},Le.prototype.setRate=function(t){this.audio.rate(t)},Le.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},Le.prototype.getBaseElement=function(){return null},Le.prototype.destroy=function(){},Le.prototype.sourceRectAtTime=function(){},Le.prototype.initExpressions=function(){},Re.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},Re.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},Re.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Re.prototype.createAudio=function(t){return new Le(t,this.globalData,this)},Re.prototype.createFootage=function(t){return new Ie(t,this.globalData,this)},Re.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},Re.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,s=t.length,n=this.layers.length;for(e=0;e<s;e+=1)for(i=0;i<n;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},Re.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},Re.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Re.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,n=this.layers,r=0,a=n.length;r<a;)n[r].ind==e&&(s[r]&&!0!==s[r]?(i.push(s[r]),s[r].setAsParent(),void 0!==n[r].parent?this.buildElementParenting(t,n[r].parent,i):t.setHierarchy(i)):(this.buildItem(r),this.addPendingElement(t))),r+=1},Re.prototype.addPendingElement=function(t){this.pendingElements.push(t)},Re.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var s=this.createComp(t[e]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},Re.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},Re.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.nm===i){e=this.elements[s];break}}return 0===t.length?e:e.getElementByPath(t)},Re.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new ge,this.globalData.slotManager=function(t){return new ve(t)}(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var $e="transformEFfect";function Oe(){}function Ne(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s,n,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=p(o),this.solidPath="";var h,l,d,c,u,f,m=this.masksProperties,g=0,v=[],y=F(),b="clipPath",w="clip-path";for(s=0;s<o;s+=1)if(("a"!==m[s].mode&&"n"!==m[s].mode||m[s].inv||100!==m[s].o.k||m[s].o.x)&&(b="mask",w="mask"),"s"!==m[s].mode&&"i"!==m[s].mode||0!==g?d=null:((d=V("rect")).setAttribute("fill","#ffffff"),d.setAttribute("width",this.element.comp.data.w||0),d.setAttribute("height",this.element.comp.data.h||0),v.push(d)),n=V("path"),"n"===m[s].mode)this.viewData[s]={op:gt.getProp(this.element,m[s].o,0,.01,this.element),prop:At.getShapeProp(this.element,m[s],3),elem:n,lastPath:""},a.appendChild(n);else{var _;if(g+=1,n.setAttribute("fill","s"===m[s].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==m[s].x.k?(b="mask",w="mask",f=gt.getProp(this.element,m[s].x,0,null,this.element),_=F(),(c=V("filter")).setAttribute("id",_),(u=V("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),c.appendChild(u),a.appendChild(c),n.setAttribute("stroke","s"===m[s].mode?"#000000":"#ffffff")):(u=null,f=null),this.storedData[s]={elem:n,x:f,expan:u,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},"i"===m[s].mode){l=v.length;var k=V("g");for(h=0;h<l;h+=1)k.appendChild(v[h]);var x=V("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",y+"_"+g),x.appendChild(n),a.appendChild(x),k.setAttribute("mask","url("+r()+"#"+y+"_"+g+")"),v.length=0,v.push(k)}else v.push(n);m[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:n,lastPath:"",op:gt.getProp(this.element,m[s].o,0,.01,this.element),prop:At.getShapeProp(this.element,m[s],3),invRect:d},this.viewData[s].prop.k||this.drawPath(m[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=V(b),o=v.length,s=0;s<o;s+=1)this.maskElement.appendChild(v[s]);g>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(w,"url("+r()+"#"+y+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Oe.prototype={initTransform:function(){var t=new Ct;this.finalTransform={mProp:this.data.ks?Nt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<s;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)n*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects($e);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Ct;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,s=!0,n=this.comp;s;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):s=!1;var r,a=e.length;for(i=0;i<a;i+=1)r=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-r[0],t[1]-r[1],0];return t},mHelper:new Ct},Ne.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Ne.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,s=this.masksProperties.length;for(e=0;e<s;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+r()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},Ne.prototype.getMaskelement=function(){return this.maskElement},Ne.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},Ne.prototype.drawPath=function(t,e,i){var s,n,r=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,s=1;s<n;s+=1)r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[s][0]+","+e.i[s][1]+" "+e.v[s][0]+","+e.v[s][1];if(e.c&&n>1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",a)),i.lastPath=r}},Ne.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var ze,Be=function(){var t={};return t.createFilter=function(t,e){var i=V("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},t.createAlphaToLuminanceFilter=function(){var t=V("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},t}(),Ve=(ze={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(ze.maskType=!1),/firefox/i.test(navigator.userAgent)&&(ze.svgLumaHidden=!1),ze),qe={},je="filter_result_";function He(t){var e,i,s="SourceGraphic",n=t.data.ef?t.data.ef.length:0,a=F(),o=Be.createFilter(a,!0),h=0;for(this.filters=[],e=0;e<n;e+=1){i=null;var l=t.data.ef[e].ty;qe[l]&&(i=new(0,qe[l].effect)(o,t.effectsManager.effectElements[e],t,je+h,s),s=je+h,qe[l].countsAsEffect&&(h+=1)),i&&this.filters.push(i)}h&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+r()+"#"+a+")")),this.filters.length&&t.addRenderableComponent(this)}function We(){}function Ye(){}function Ue(){}function Xe(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Ke(t,e){this.elem=t,this.pos=e}function Ge(){}He.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},He.prototype.getEffects=function(t){var e,i=this.filters.length,s=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s},We.prototype={initRendererElement:function(){this.layerElement=V("g")},createContainerElements:function(){this.matteElement=V("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=V("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=V("clipPath"),s=V("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=F();if(i.setAttribute("id",n),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var a=V("g");a.setAttribute("clip-path","url("+r()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+r()+"#"+n+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Ne(this.data,this,this.globalData),this.renderableEffectsManager=new He(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,s,n,a=this.layerId+"_"+t;if(1===t||3===t){var o=V("mask");o.setAttribute("id",a),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(s=V("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(s),this.globalData.defs.appendChild(o),Ve.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=F(),i=Be.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(Be.createAlphaToLuminanceFilter()),(n=V("g")).appendChild(s),o.appendChild(n),n.setAttribute("filter","url("+r()+"#"+e+")"))}else if(2===t){var h=V("mask");h.setAttribute("id",a),h.setAttribute("mask-type","alpha");var l=V("g");h.appendChild(l),e=F(),i=Be.createFilter(e);var p=V("feComponentTransfer");p.setAttribute("in","SourceGraphic"),i.appendChild(p);var d=V("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),p.appendChild(d),this.globalData.defs.appendChild(i);var c=V("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),l.setAttribute("filter","url("+r()+"#"+e+")"),l.appendChild(c),(s=V("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(s),Ve.maskType||(h.setAttribute("mask-type","luminance"),i.appendChild(Be.createAlphaToLuminanceFilter()),n=V("g"),l.appendChild(c),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(h)}this.matteMasks[t]=a}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+r()+"#"+t+")")}},Ye.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},o([ye,function(t){function e(){}return e.prototype=t,e}({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],Ue),o([De,Oe,We,Ye,Fe,Ue],Xe),Xe.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=V("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},Xe.prototype.sourceRectAtTime=function(){return this.sourceRect},Ge.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[s-=1].elem===t)return void(i[s].pos=e);i.push(new Ke(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var Je={1:"butt",2:"round",3:"square"},Ze={1:"miter",2:"round",3:"bevel"};function Qe(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var s=0,n=t.length;s<n;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function ti(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=V("path"),this.msElem=null}function ei(t,e,i,s){var n;this.elem=t,this.frameId=-1,this.dataProps=p(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=l("float32",e.length?e.length-1:0),this.dashoffset=l("float32",1),this.initDynamicPropertyContainer(s);var r,a=e.length||0;for(n=0;n<a;n+=1)r=gt.getProp(t,e[n].v,0,0,this),this.k=r.k||this.k,this.dataProps[n]={n:e[n].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}function ii(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=gt.getProp(t,e.o,0,.01,this),this.w=gt.getProp(t,e.w,0,null,this),this.d=new ei(t,e.d||{},"svg",this),this.c=gt.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function si(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=gt.getProp(t,e.o,0,.01,this),this.c=gt.getProp(t,e.c,1,255,this),this.style=i}function ni(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function ri(t,e,i){this.data=e,this.c=l("uint8c",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=l("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=gt.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function ai(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function oi(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=gt.getProp(t,e.w,0,null,this),this.d=new ei(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function hi(){this.it=[],this.prevViewData=[],this.gr=V("g")}function li(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}Qe.prototype.setAsAnimated=function(){this._isAnimated=!0},ti.prototype.reset=function(){this.d="",this._mdf=!1},ei.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},o([vt],ei),o([vt],ii),o([vt],si),o([vt],ni),ri.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},ri.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},ri.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,s,n=4*this.data.p;for(e=0;e<n;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},o([vt],ri),ai.prototype.initGradientData=function(t,e,i){this.o=gt.getProp(t,e.o,0,.01,this),this.s=gt.getProp(t,e.s,1,null,this),this.e=gt.getProp(t,e.e,1,null,this),this.h=gt.getProp(t,e.h||{k:0},0,.01,this),this.a=gt.getProp(t,e.a||{k:0},0,k,this),this.g=new ri(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},ai.prototype.setGradientData=function(t,e){var i=F(),s=V(1===e.t?"linearGradient":"radialGradient");s.setAttribute("id",i),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var n,a,o,h=[];for(o=4*e.g.p,a=0;a<o;a+=4)n=V("stop"),s.appendChild(n),h.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+r()+"#"+i+")"),this.gf=s,this.cst=h},ai.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,n,a=V("mask"),o=V("path");a.appendChild(o);var h=F(),l=F();a.setAttribute("id",l);var p=V(1===t.t?"linearGradient":"radialGradient");p.setAttribute("id",h),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var d=this.stops;for(s=4*t.g.p;s<n;s+=2)(i=V("stop")).setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(i),d.push(i);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+r()+"#"+h+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",Je[t.lc||2]),o.setAttribute("stroke-linejoin",Ze[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=p,this.ms=a,this.ost=d,this.maskId=l,e.msElem=o}},o([vt],ai),o([ai,vt],oi);var pi=function(t,e,i,s){if(0===e)return"";var n,r=t.o,a=t.i,o=t.v,h=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(n=1;n<e;n+=1)h+=" C"+s.applyToPointStringified(r[n-1][0],r[n-1][1])+" "+s.applyToPointStringified(a[n][0],a[n][1])+" "+s.applyToPointStringified(o[n][0],o[n][1]);return i&&e&&(h+=" C"+s.applyToPointStringified(r[n-1][0],r[n-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1]),h+="z"),h},di=function(){var t=new Ct,e=new Ct;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function s(){}function n(i,s,n){var r,a,o,h,l,p,d,c,u,f,m=s.styles.length,g=s.lvl;for(p=0;p<m;p+=1){if(h=s.sh._mdf||n,s.styles[p].lvl<g){for(c=e.reset(),u=g-s.styles[p].lvl,f=s.transformers.length-1;!h&&u>0;)h=s.transformers[f].mProps._mdf||h,u-=1,f-=1;if(h)for(u=g-s.styles[p].lvl,f=s.transformers.length-1;u>0;)c.multiply(s.transformers[f].mProps.v),u-=1,f-=1}else c=t;if(a=(d=s.sh.paths)._length,h){for(o="",r=0;r<a;r+=1)(l=d.shapes[r])&&l._length&&(o+=pi(l,l._length,l.c,c));s.caches[p]=o}else o=s.caches[p];s.styles[p].d+=!0===i.hd?"":o,s.styles[p]._mdf=h||s.styles[p]._mdf}}function r(t,e,i){var s=e.style;(e.c._mdf||i)&&s.pElem.setAttribute("fill","rgb("+y(e.c.v[0])+","+y(e.c.v[1])+","+y(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){o(t,e,i),h(0,e,i)}function o(t,e,i){var s,n,r,a,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,d=e.e.v;if(e.o._mdf||i){var c="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(c,e.o.v)}if(e.s._mdf||i){var u=1===t.t?"x1":"cx",f="x1"===u?"y1":"cy";h.setAttribute(u,p[0]),h.setAttribute(f,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(u,p[0]),e.of.setAttribute(f,p[1]))}if(e.g._cmdf||i){s=e.cst;var m=e.g.c;for(r=s.length,n=0;n<r;n+=1)(a=s[n]).setAttribute("offset",m[4*n]+"%"),a.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(l&&(e.g._omdf||i)){var g=e.g.o;for(r=(s=e.g._collapsable?e.cst:e.ost).length,n=0;n<r;n+=1)a=s[n],e.g._collapsable||a.setAttribute("offset",g[2*n]+"%"),a.setAttribute("stop-opacity",g[2*n+1])}if(1===t.t)(e.e._mdf||i)&&(h.setAttribute("x2",d[0]),h.setAttribute("y2",d[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",d[0]),e.of.setAttribute("y2",d[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)),h.setAttribute("r",o),l&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)));var v=Math.atan2(d[1]-p[1],d[0]-p[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=o*y,w=Math.cos(v+e.a.v)*b+p[0],_=Math.sin(v+e.a.v)*b+p[1];h.setAttribute("fx",w),h.setAttribute("fy",_),l&&!e.g._collapsable&&(e.of.setAttribute("fx",w),e.of.setAttribute("fy",_))}}function h(t,e,i){var s=e.style,n=e.d;n&&(n._mdf||i)&&n.dashStr&&(s.pElem.setAttribute("stroke-dasharray",n.dashStr),s.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+y(e.c.v[0])+","+y(e.c.v[1])+","+y(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute("stroke-width",e.w.v),s.msElem&&s.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return r;case"gf":return o;case"gs":return a;case"st":return h;case"sh":case"el":case"rc":case"sr":return n;case"tr":return i;case"no":return s;default:return null}}}}();function ci(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function ui(t,e,i,s,n,r){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=n,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function fi(t,e){this._frameId=n,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}o([De,Oe,We,Ge,Ye,Fe,Ue],ci),ci.prototype.initSecondaryElement=function(){},ci.prototype.identityMatrix=new Ct,ci.prototype.buildExpressionInterface=function(){},ci.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ci.prototype.filterUniqueShapes=function(){var t,e,i,s,n=this.shapes.length,r=this.stylesList.length,a=[],o=!1;for(i=0;i<r;i+=1){for(s=this.stylesList[i],o=!1,a.length=0,t=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(s)&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},ci.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},ci.prototype.createStyleElement=function(t,e){var i,s=new ti(t,e),n=s.pElem;return"st"===t.ty?i=new ii(this,t,s):"fl"===t.ty?i=new si(this,t,s):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?ai:oi)(this,t,s),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),n.setAttribute("mask","url("+r()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new ni(this,t,s)),"st"!==t.ty&&"gs"!==t.ty||(n.setAttribute("stroke-linecap",Je[t.lc||2]),n.setAttribute("stroke-linejoin",Ze[t.lj||2]),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=we(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,i),i},ci.prototype.createGroupElement=function(t){var e=new hi;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=we(t.bm)),e},ci.prototype.createTransformElement=function(t,e){var i=Nt.getTransformProperty(this,t,this),s=new li(i,i.o,e);return this.addToAnimatedContents(t,s),s},ci.prototype.createShapeElement=function(t,e,i){var s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7);var n=new Qe(e,i,At.getShapeProp(this,t,s,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},ci.prototype.addToAnimatedContents=function(t,e){for(var i=0,s=this.animatedContents.length;i<s;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:di.createRenderFunction(t),element:e,data:t})},ci.prototype.setElementStyles=function(t){var e,i=t.styles,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},ci.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},ci.prototype.searchShapes=function(t,e,i,s,n,r,a){var o,h,l,p,d,c,u=[].concat(r),f=t.length-1,m=[],g=[];for(o=f;o>=0;o-=1){if((c=this.searchProcessedElement(t[o]))?e[o]=i[c-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)c?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],n),t[o]._render&&e[o].style.pElem.parentNode!==s&&s.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"===t[o].ty){if(c)for(l=e[o].it.length,h=0;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,n+1,u,a),t[o]._render&&e[o].gr.parentNode!==s&&s.appendChild(e[o].gr)}else"tr"===t[o].ty?(c||(e[o]=this.createTransformElement(t[o],s)),p=e[o].transform,u.push(p)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(c||(e[o]=this.createShapeElement(t[o],u,n)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(c?(d=e[o]).closed=!1:((d=Lt.getModifier(t[o].ty)).init(this,t[o]),e[o]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===t[o].ty&&(c?(d=e[o]).closed=!0:(d=Lt.getModifier(t[o].ty),e[o]=d,d.init(this,t,o,e),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(t[o],o+1)}for(f=m.length,o=0;o<f;o+=1)m[o].closed=!0;for(f=g.length,o=0;o<f;o+=1)g[o].closed=!0},ci.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},ci.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},ci.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},ui.prototype.update=function(t,e,i,s,n,r){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,a=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,a=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,this._mdf.p=!0,a=!0),a},fi.prototype.defaultBoxWidth=[0,0],fi.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},fi.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},fi.prototype.searchProperty=function(){return this.searchKeyframes()},fi.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},fi.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},fi.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var s;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(s=0;s<n;s+=1)r=i!==this.keysIndex?this.effectsSequence[s](r,r.t):this.effectsSequence[s](this.currentData,r.t);e!==r&&this.setCurrentData(r),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},fi.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,s=t.length;i<=s-1&&!(i===s-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},fi.prototype.buildFinalText=function(t){for(var e,i,s=[],n=0,r=t.length,a=!1,o=!1,h="";n<r;)a=o,o=!1,e=t.charCodeAt(n),h=t.charAt(n),ge.isCombinedCharacter(e)?a=!0:e>=55296&&e<=56319?ge.isRegionalFlag(t,n)?h=t.substr(n,14):(i=t.charCodeAt(n+1))>=56320&&i<=57343&&(ge.isModifier(e,i)?(h=t.substr(n,2),a=!0):h=ge.isFlagEmoji(t.substr(n,4))?t.substr(n,4):t.substr(n,2)):e>56319?(i=t.charCodeAt(n+1),ge.isVariationSelector(e)&&(a=!0)):ge.isZeroWidthJoiner(e)&&(a=!0,o=!0),a?(s[s.length-1]+=h,a=!1):s.push(h),n+=h.length;return s},fi.prototype.completeTextData=function(t){t.__complete=!0;var e,i,s,n,r,a,o,h=this.elem.globalData.fontManager,l=this.data,p=[],d=0,c=l.m.g,u=0,f=0,m=0,g=[],v=0,y=0,b=h.getFontByName(t.f),w=0,_=me(b);t.fWeight=_.weight,t.fStyle=_.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var k,x=t.tr/1e3*t.finalSize;if(t.sz)for(var A,C,S=!0,E=t.sz[0],P=t.sz[1];S;){A=0,v=0,i=(C=this.buildFinalText(t.t)).length,x=t.tr/1e3*t.finalSize;var T=-1;for(e=0;e<i;e+=1)k=C[e].charCodeAt(0),s=!1," "===C[e]?T=e:13!==k&&3!==k||(v=0,s=!0,A+=t.finalLineHeight||1.2*t.finalSize),h.chars?(o=h.getCharData(C[e],b.fStyle,b.fFamily),w=s?0:o.w*t.finalSize/100):w=h.measureText(C[e],t.f,t.finalSize),v+w>E&&" "!==C[e]?(-1===T?i+=1:e=T,A+=t.finalLineHeight||1.2*t.finalSize,C.splice(e,T===e?1:0,"\r"),T=-1,v=0):(v+=w,v+=x);A+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<A?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=C,i=t.finalText.length,S=!1)}v=-x,w=0;var M,D=0;for(e=0;e<i;e+=1)if(s=!1,13===(k=(M=t.finalText[e]).charCodeAt(0))||3===k?(D=0,g.push(v),y=v>y?v:y,v=-2*x,n="",s=!0,m+=1):n=M,h.chars?(o=h.getCharData(M,b.fStyle,h.getFontByName(t.f).fFamily),w=s?0:o.w*t.finalSize/100):w=h.measureText(n,t.f,t.finalSize)," "===M?D+=w+x:(v+=w+x+D,D=0),p.push({l:w,an:w,add:u,n:s,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==c){if(u+=w,""===n||" "===n||e===i-1){for(""!==n&&" "!==n||(u-=w);f<=e;)p[f].an=u,p[f].ind=d,p[f].extra=w,f+=1;d+=1,u=0}}else if(3==c){if(u+=w,""===n||e===i-1){for(""===n&&(u-=w);f<=e;)p[f].an=u,p[f].ind=d,p[f].extra=w,f+=1;u=0,d+=1}}else p[d].ind=d,p[d].extra=0,d+=1;if(t.l=p,y=v>y?v:y,g.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var F,I,L,R,$=l.a;a=$.length;var O=[];for(r=0;r<a;r+=1){for((F=$[r]).a.sc&&(t.strokeColorAnim=!0),F.a.sw&&(t.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(t.fillColorAnim=!0),R=0,L=F.s.b,e=0;e<i;e+=1)(I=p[e]).anIndexes[r]=R,(1==L&&""!==I.val||2==L&&""!==I.val&&" "!==I.val||3==L&&(I.n||" "==I.val||e==i-1)||4==L&&(I.n||e==i-1))&&(1===F.s.rn&&O.push(R),R+=1);l.a[r].s.totalChars=R;var N,z=-1;if(1===F.s.rn)for(e=0;e<i;e+=1)z!=(I=p[e]).anIndexes[r]&&(z=I.anIndexes[r],N=O.splice(Math.floor(Math.random()*O.length),1)[0]),I.anIndexes[r]=N}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},fi.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},fi.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},fi.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},fi.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var mi=function(){var t=Math.max,e=Math.min,i=Math.floor;function s(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=gt.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?gt.getProp(t,e.e,0,0,this):{v:100},this.o=gt.getProp(t,e.o||{k:0},0,0,this),this.xe=gt.getProp(t,e.xe||{k:0},0,0,this),this.ne=gt.getProp(t,e.ne||{k:0},0,0,this),this.sm=gt.getProp(t,e.sm||{k:100},0,0,this),this.a=gt.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,r=0,a=1,o=1;this.ne.v>0?n=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var h=Z.getBezierEasing(n,r,a,o).get,l=0,p=this.finalS,d=this.finalE,c=this.data.sh;if(2===c)l=h(l=d===p?s>=d?1:0:t(0,e(.5/(d-p)+(s-p)/(d-p),1)));else if(3===c)l=h(l=d===p?s>=d?0:1:1-t(0,e(.5/(d-p)+(s-p)/(d-p),1)));else if(4===c)d===p?l=0:(l=t(0,e(.5/(d-p)+(s-p)/(d-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===c){if(d===p)l=0;else{var u=d-p,f=-u/2+(s=e(t(0,s+.5-p),d-p)),m=u/2;l=Math.sqrt(1-f*f/(m*m))}l=h(l)}else 6===c?(d===p?l=0:(s=e(t(0,s+.5-p),d-p),l=(1+Math.cos(Math.PI+2*Math.PI*s/(d-p)))/2),l=h(l)):(s>=i(p)&&(l=t(0,e(s-p<0?e(d,1)-(p-s):d-s,1))),l=h(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;l<v?l=0:(l=(l-v)/g)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,s=this.s.v/e+i,n=this.e.v/e+i;if(s>n){var r=s;s=n,n=r}this.finalS=s,this.finalE=n}},o([vt],s),{getTextSelectorProp:function(t,e,i){return new s(t,e,i)}}}();function gi(t,e,i){var s={propType:!1},n=gt.getProp,r=e.a;this.a={r:r.r?n(t,r.r,0,k,i):s,rx:r.rx?n(t,r.rx,0,k,i):s,ry:r.ry?n(t,r.ry,0,k,i):s,sk:r.sk?n(t,r.sk,0,k,i):s,sa:r.sa?n(t,r.sa,0,k,i):s,s:r.s?n(t,r.s,1,.01,i):s,a:r.a?n(t,r.a,1,0,i):s,o:r.o?n(t,r.o,0,.01,i):s,p:r.p?n(t,r.p,1,0,i):s,sw:r.sw?n(t,r.sw,0,0,i):s,sc:r.sc?n(t,r.sc,1,0,i):s,fc:r.fc?n(t,r.fc,1,0,i):s,fh:r.fh?n(t,r.fh,0,0,i):s,fs:r.fs?n(t,r.fs,0,.01,i):s,fb:r.fb?n(t,r.fb,0,.01,i):s,t:r.t?n(t,r.t,0,0,i):s},this.s=mi.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function vi(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=p(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function yi(){}vi.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,s=gt.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new gi(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this),p:s(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m.a,1,0,this)},vi.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,s,n,r,a,o,h,l,p,d,c,u,f,m,g,v,y,b,w,_=this._moreOptions.alignment.v,k=this._animatorsData,x=this._textData,A=this.mHelper,C=this._renderType,S=this.renderedLetters.length,E=t.l;if(this._hasMaskedPath){if(w=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=w.v;for(this._pathData.r.v&&(T=T.reverse()),a={tLength:0,segments:[]},r=T._length-1,v=0,n=0;n<r;n+=1)P=st.buildBezierData(T.v[n],T.v[n+1],[T.o[n][0]-T.v[n][0],T.o[n][1]-T.v[n][1]],[T.i[n+1][0]-T.v[n+1][0],T.i[n+1][1]-T.v[n+1][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength;n=r,w.v.c&&(P=st.buildBezierData(T.v[n],T.v[0],[T.o[n][0]-T.v[n][0],T.o[n][1]-T.v[n][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,c=0,d=1,l=0,p=!0,m=a.segments,o<0&&w.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),d=(f=m[c=m.length-1].points).length-1;o<0;)o+=f[d].partialLength,(d-=1)<0&&(d=(f=m[c-=1].points).length-1);u=(f=m[c].points)[d-1],g=(h=f[d]).partialLength}r=E.length,i=0,s=0;var M,D,F,I,L,N=1.2*t.finalSize*.714,z=!0;F=k.length;var B,V,q,j,H,W,Y,U,X,K,G,J,Z=-1,Q=o,tt=c,et=d,it=-1,nt="",rt=this.defaultPropsArray;if(2===t.j||1===t.j){var at=0,ot=0,ht=2===t.j?-.5:-1,lt=0,pt=!0;for(n=0;n<r;n+=1)if(E[n].n){for(at&&(at+=ot);lt<n;)E[lt].animatorJustifyOffset=at,lt+=1;at=0,pt=!0}else{for(D=0;D<F;D+=1)(M=k[D].a).t.propType&&(pt&&2===t.j&&(ot+=M.t.v*ht),(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?at+=M.t.v*L[0]*ht:at+=M.t.v*L*ht);pt=!1}for(at&&(at+=ot);lt<n;)E[lt].animatorJustifyOffset=at,lt+=1}for(n=0;n<r;n+=1){if(A.reset(),j=1,E[n].n)i=0,s+=t.yOffset,s+=z?1:0,o=Q,z=!1,this._hasMaskedPath&&(d=et,u=(f=m[c=tt].points)[d-1],g=(h=f[d]).partialLength,l=0),nt="",G="",X="",J="",rt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==E[n].line){switch(t.j){case 1:o+=v-t.lineWidths[E[n].line];break;case 2:o+=(v-t.lineWidths[E[n].line])/2}it=E[n].line}Z!==E[n].ind&&(E[Z]&&(o+=E[Z].extra),o+=E[n].an/2,Z=E[n].ind),o+=_[0]*E[n].an*.005;var dt=0;for(D=0;D<F;D+=1)(M=k[D].a).p.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?dt+=M.p.v[0]*L[0]:dt+=M.p.v[0]*L),M.a.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?dt+=M.a.v[0]*L[0]:dt+=M.a.v[0]*L);for(p=!0,this._pathData.a.v&&(o=.5*E[0].an+(v-this._pathData.f.v-.5*E[0].an-.5*E[E.length-1].an)*Z/(r-1),o+=this._pathData.f.v);p;)l+g>=o+dt||!f?(y=(o+dt-l)/h.partialLength,V=u.point[0]+(h.point[0]-u.point[0])*y,q=u.point[1]+(h.point[1]-u.point[1])*y,A.translate(-_[0]*E[n].an*.005,-_[1]*N*.01),p=!1):f&&(l+=h.partialLength,(d+=1)>=f.length&&(d=0,m[c+=1]?f=m[c].points:w.v.c?(d=0,f=m[c=0].points):(l-=h.partialLength,f=null)),f&&(u=h,g=(h=f[d]).partialLength));B=E[n].an/2-E[n].add,A.translate(-B,0,0)}else B=E[n].an/2-E[n].add,A.translate(-B,0,0),A.translate(-_[0]*E[n].an*.005,-_[1]*N*.01,0);for(D=0;D<F;D+=1)(M=k[D].a).t.propType&&(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?L.length?o+=M.t.v*L[0]:o+=M.t.v*L:L.length?i+=M.t.v*L[0]:i+=M.t.v*L));for(t.strokeWidthAnim&&(W=t.sw||0),t.strokeColorAnim&&(H=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(Y=[t.fc[0],t.fc[1],t.fc[2]]),D=0;D<F;D+=1)(M=k[D].a).a.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?A.translate(-M.a.v[0]*L[0],-M.a.v[1]*L[1],M.a.v[2]*L[2]):A.translate(-M.a.v[0]*L,-M.a.v[1]*L,M.a.v[2]*L));for(D=0;D<F;D+=1)(M=k[D].a).s.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?A.scale(1+(M.s.v[0]-1)*L[0],1+(M.s.v[1]-1)*L[1],1):A.scale(1+(M.s.v[0]-1)*L,1+(M.s.v[1]-1)*L,1));for(D=0;D<F;D+=1){if(M=k[D].a,L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),M.sk.propType&&(L.length?A.skewFromAxis(-M.sk.v*L[0],M.sa.v*L[1]):A.skewFromAxis(-M.sk.v*L,M.sa.v*L)),M.r.propType&&(L.length?A.rotateZ(-M.r.v*L[2]):A.rotateZ(-M.r.v*L)),M.ry.propType&&(L.length?A.rotateY(M.ry.v*L[1]):A.rotateY(M.ry.v*L)),M.rx.propType&&(L.length?A.rotateX(M.rx.v*L[0]):A.rotateX(M.rx.v*L)),M.o.propType&&(L.length?j+=(M.o.v*L[0]-j)*L[0]:j+=(M.o.v*L-j)*L),t.strokeWidthAnim&&M.sw.propType&&(L.length?W+=M.sw.v*L[0]:W+=M.sw.v*L),t.strokeColorAnim&&M.sc.propType)for(U=0;U<3;U+=1)L.length?H[U]+=(M.sc.v[U]-H[U])*L[0]:H[U]+=(M.sc.v[U]-H[U])*L;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for(U=0;U<3;U+=1)L.length?Y[U]+=(M.fc.v[U]-Y[U])*L[0]:Y[U]+=(M.fc.v[U]-Y[U])*L;M.fh.propType&&(Y=L.length?O(Y,M.fh.v*L[0]):O(Y,M.fh.v*L)),M.fs.propType&&(Y=L.length?R(Y,M.fs.v*L[0]):R(Y,M.fs.v*L)),M.fb.propType&&(Y=L.length?$(Y,M.fb.v*L[0]):$(Y,M.fb.v*L))}}for(D=0;D<F;D+=1)(M=k[D].a).p.propType&&(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),this._hasMaskedPath?L.length?A.translate(0,M.p.v[1]*L[0],-M.p.v[2]*L[1]):A.translate(0,M.p.v[1]*L,-M.p.v[2]*L):L.length?A.translate(M.p.v[0]*L[0],M.p.v[1]*L[1],-M.p.v[2]*L[2]):A.translate(M.p.v[0]*L,M.p.v[1]*L,-M.p.v[2]*L));if(t.strokeWidthAnim&&(X=W<0?0:W),t.strokeColorAnim&&(K="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),t.fillColorAnim&&t.fc&&(G="rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"),this._hasMaskedPath){if(A.translate(0,-t.ls),A.translate(0,_[1]*N*.01+s,0),this._pathData.p.v){b=(h.point[1]-u.point[1])/(h.point[0]-u.point[0]);var ct=180*Math.atan(b)/Math.PI;h.point[0]<u.point[0]&&(ct+=180),A.rotate(-ct*Math.PI/180)}A.translate(V,q,0),o-=_[0]*E[n].an*.005,E[n+1]&&Z!==E[n+1].ind&&(o+=E[n].an/2,o+=.001*t.tr*t.finalSize)}else{switch(A.translate(i,s,0),t.ps&&A.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:A.translate(E[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[n].line]),0,0);break;case 2:A.translate(E[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[n].line])/2,0,0)}A.translate(0,-t.ls),A.translate(B,0,0),A.translate(_[0]*E[n].an*.005,_[1]*N*.01,0),i+=E[n].l+.001*t.tr*t.finalSize}"html"===C?nt=A.toCSS():"svg"===C?nt=A.to2dCSS():rt=[A.props[0],A.props[1],A.props[2],A.props[3],A.props[4],A.props[5],A.props[6],A.props[7],A.props[8],A.props[9],A.props[10],A.props[11],A.props[12],A.props[13],A.props[14],A.props[15]],J=j}S<=n?(I=new ui(J,X,K,G,nt,rt),this.renderedLetters.push(I),S+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[n],this.lettersChangedFlag=I.update(J,X,K,G,nt,rt)||this.lettersChangedFlag)}}},vi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},vi.prototype.mHelper=new Ct,vi.prototype.defaultPropsArray=[],o([vt],vi),yi.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new fi(this,t.t,this.dynamicProperties),this.textAnimator=new vi(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},yi.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},yi.prototype.createPathShape=function(t,e){var i,s,n=e.length,r="";for(i=0;i<n;i+=1)"sh"===e[i].ty&&(s=e[i].ks.k,r+=pi(s,s.i.length,!0,t));return r},yi.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},yi.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},yi.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},yi.prototype.applyTextPropertiesToMatrix=function(t,e,i,s,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(s,n,0)},yi.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},yi.prototype.emptyProp=new ui,yi.prototype.destroy=function(){},yi.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var bi,wi={shapes:[]};function _i(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ki(t,e,i){this.initElement(t,e,i)}function xi(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function Ai(){}function Ci(){}function Si(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?p(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?gt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function Ei(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=V("svg");var i="";if(e&&e.title){var s=V("title"),n=F();s.setAttribute("id",n),s.textContent=e.title,this.svgElement.appendChild(s),i+=n}if(e&&e.description){var r=V("desc"),a=F();r.setAttribute("id",a),r.textContent=e.description,this.svgElement.appendChild(r),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=V("defs");this.svgElement.appendChild(o);var h=V("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return o([De,Oe,We,Ye,Fe,Ue,yi],_i),_i.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=V("text"))},_i.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],n="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(s.push(n),n=""):n+=t[e],e+=1;return s.push(n),s},_i.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var s=i.it[i.it.length-1];s.s&&(s.s.k[0]=e,s.s.k[1]=e)}}return t},_i.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=p(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var s=this.globalData.fontManager.getFontByName(i.f);if(s.fClass)this.layerElement.setAttribute("class",s.fClass);else{this.layerElement.setAttribute("font-family",s.fFamily);var n=i.fWeight,r=i.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",i.t);var a,o=i.l||[],h=!!this.globalData.fontManager.chars;e=o.length;var l=this.mHelper,d=this.data.singleShape,c=0,u=0,f=!0,m=.001*i.tr*i.finalSize;if(!d||h||i.sz){var g,v=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!h||!d||0===t){if(a=v>t?this.textSpans[t].span:V(h?"g":"text"),v<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,h){var y=V("g");a.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(l.reset(),d&&(o[t].n&&(c=-m,u+=i.yOffset,u+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(i,l,o[t].line,c,u),c+=o[t].l||0,c+=m),h){var b;if(1===(g=this.globalData.fontManager.getCharData(i.finalText[t],s.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)b=new Si(g.data,this.globalData,this);else{var w=wi;g.data&&g.data.shapes&&(w=this.buildShapeData(g.data,i.finalSize)),b=new ci(w,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[t].childSpan.appendChild(b.layerElement),1===g.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else d&&a.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&a&&a.setAttribute("d","")}else{var k=this.textContainer,x="start";switch(i.j){case 1:x="end";break;case 2:x="middle";break;default:x="start"}k.setAttribute("text-anchor",x),k.setAttribute("letter-spacing",m);var A=this.buildTextContents(i.finalText);for(e=A.length,u=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||V("tspan")).textContent=A[t],a.setAttribute("x",0),a.setAttribute("y",u),a.style.display="inherit",k.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,u+=i.finalLineHeight;this.layerElement.appendChild(k)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},_i.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},_i.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},_i.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,s,n,r=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(i=r[t],s=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),i._mdf.m&&s.setAttribute("transform",i.m),i._mdf.o&&s.setAttribute("opacity",i.o),i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i._mdf.sc&&s.setAttribute("stroke",i.sc),i._mdf.fc&&s.setAttribute("fill",i.fc))}},o([Xe],ki),ki.prototype.createContent=function(){var t=V("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},xi.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},xi.prototype.renderFrame=function(){},xi.prototype.getBaseElement=function(){return null},xi.prototype.destroy=function(){},xi.prototype.sourceRectAtTime=function(){},xi.prototype.hide=function(){},o([De,Oe,Ye,Fe],xi),o([Re],Ai),Ai.prototype.createNull=function(t){return new xi(t,this.globalData,this)},Ai.prototype.createShape=function(t){return new ci(t,this.globalData,this)},Ai.prototype.createText=function(t){return new _i(t,this.globalData,this)},Ai.prototype.createImage=function(t){return new Xe(t,this.globalData,this)},Ai.prototype.createSolid=function(t){return new ki(t,this.globalData,this)},Ai.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=V("clipPath"),s=V("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var n=F();i.setAttribute("id",n),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+r()+"#"+n+")"),e.appendChild(i),this.layers=t.layers,this.elements=p(t.layers.length)},Ai.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ai.prototype.updateContainerSize=function(){},Ai.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},Ai.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,N()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var s="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===s)return;if(this.elements[s]&&!0!==this.elements[s]){var n=e[s].getMatte(this.layers[t].tt);i.setMatte(n)}else this.buildItem(s),this.addPendingElement(i)}}},Ai.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},Ai.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},Ai.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var s,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(s=this.elements[n].getBaseElement()),n+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},Ai.prototype.hide=function(){this.layerElement.style.display="none"},Ai.prototype.show=function(){this.layerElement.style.display="block"},o([De,Oe,Ye,Fe,Ue],Ci),Ci.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},Ci.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},Ci.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Ci.prototype.setElements=function(t){this.elements=t},Ci.prototype.getElements=function(){return this.elements},Ci.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},Ci.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},o([Ai,Ci,We],Si),Si.prototype.createComp=function(t){return new Si(t,this.globalData,this)},o([Ai],Ei),Ei.prototype.createComp=function(t){return new Si(t,this.globalData,this)},bi=Ei,X["svg"]=bi,Lt.registerModifier("tm",$t),Lt.registerModifier("pb",Ot),Lt.registerModifier("rp",zt),Lt.registerModifier("rd",Bt),Lt.registerModifier("zz",se),Lt.registerModifier("op",fe),Et}())},179:(t,e,i)=>{"use strict";i.r(e)},809:(t,e,i)=>{"use strict";i.r(e)},168:(t,e,i)=>{"use strict";i.r(e)},234:(t,e,i)=>{"use strict";i.r(e)},271:(t,e,i)=>{"use strict";i.r(e)},799:(t,e,i)=>{"use strict";i.r(e)},793:(t,e,i)=>{"use strict";i.r(e)},800:(t,e,i)=>{"use strict";i.r(e)},177:(t,e,i)=>{"use strict";i.r(e)},364:(t,e,i)=>{"use strict";i.r(e)},821:(t,e,i)=>{"use strict";i.r(e)},305:(t,e,i)=>{"use strict";i.r(e)},140:(t,e,i)=>{"use strict";i.r(e)},479:(t,e,i)=>{"use strict";i.r(e)},423:(t,e,i)=>{"use strict";i.r(e)},946:(t,e,i)=>{"use strict";i.r(e)},392:(t,e,i)=>{"use strict";t.exports=i.p+"f94a181ecedc0c6314c5.js"}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var r=e[s]={exports:{}};return t[s].call(r.exports,r,r.exports,i),r.exports}i.m=t,i.amdO={},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var s=e.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=s[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t})(),i.b=document.baseURI||self.location.href,(()=>{"use strict";const t=window.wp.data,e=window.wp.coreData;let s={};function n(t={}){s={animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...t}}function r(t){return t?s[t]:s}function a(t,e,i,s){return(t/=s/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e}function o(t){const e='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return t.flatMap((t=>{const i=t.matches(e),s=Array.from(t.querySelectorAll(e));return[...i?[t]:[],...s]})).filter((t=>"none"!==getComputedStyle(t).pointerEvents&&function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}(t)))}function h(t){if(!t||function(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}(t))return;const e=r("smoothScroll");t.scrollIntoView({behavior:!e||l(t)?"auto":"smooth",inline:"center",block:"center"})}function l(t){if(!t||!t.parentElement)return;const e=t.parentElement;return e.scrollHeight>e.clientHeight}let p={};function d(t,e){p[t]=e}function c(t){return t?p[t]:p}function u(){p={}}let f={};function m(t,e){f[t]=e}function g(t){var e;null==(e=f[t])||e.call(f)}function v(t){if(!t)return;const e=t.getBoundingClientRect(),i={x:e.x,y:e.y,width:e.width,height:e.height};d("__activeStagePosition",i),y(i)}function y(t){const e=c("__overlaySvg");if(!e)return void function(t){const e=function(t){const e=window.innerWidth,i=window.innerHeight,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.classList.add("driver-overlay","driver-overlay-animated"),s.setAttribute("viewBox",`0 0 ${e} ${i}`),s.setAttribute("xmlSpace","preserve"),s.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),s.setAttribute("version","1.1"),s.setAttribute("preserveAspectRatio","xMinYMin slice"),s.style.fillRule="evenodd",s.style.clipRule="evenodd",s.style.strokeLinejoin="round",s.style.strokeMiterlimit="2",s.style.zIndex="10000",s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height="100%";const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",b(t)),n.style.fill=r("overlayColor")||"rgb(0,0,0)",n.style.opacity=`${r("overlayOpacity")}`,n.style.pointerEvents="auto",n.style.cursor="auto",s.appendChild(n),s}(t);document.body.appendChild(e),C(e,(t=>{"path"===t.target.tagName&&g("overlayClick")})),d("__overlaySvg",e)}(t);const i=e.firstElementChild;if("path"!==(null==i?void 0:i.tagName))throw new Error("no path element found in stage svg");i.setAttribute("d",b(t))}function b(t){const e=window.innerWidth,i=window.innerHeight,s=r("stagePadding")||0,n=r("stageRadius")||0,a=t.width+2*s,o=t.height+2*s,h=Math.min(n,a/2,o/2),l=Math.floor(Math.max(h,0)),p=a-2*l,d=o-2*l;return`M${e},0L0,0L0,${i}L${e},${i}L${e},0Z\n M${t.x-s+l},${t.y-s} h${p} a${l},${l} 0 0 1 ${l},${l} v${d} a${l},${l} 0 0 1 -${l},${l} h-${p} a${l},${l} 0 0 1 -${l},-${l} v-${d} a${l},${l} 0 0 1 ${l},-${l} z`}function w(t){const{element:e}=t;let i="string"==typeof e?document.querySelector(e):e;i||(i=function(){const t=document.getElementById("driver-dummy-element");if(t)return t;let e=document.createElement("div");return e.id="driver-dummy-element",e.style.width="0",e.style.height="0",e.style.pointerEvents="none",e.style.opacity="0",e.style.position="fixed",e.style.top="50%",e.style.left="50%",document.body.appendChild(e),e}()),function(t,e){const i=Date.now(),s=c("__activeStep"),n=c("__activeElement")||t,o=!n||n===t,l="driver-dummy-element"===t.id,p="driver-dummy-element"===n.id,u=r("animate"),f=e.onHighlightStarted||r("onHighlightStarted"),m=(null==e?void 0:e.onHighlighted)||r("onHighlighted"),g=(null==s?void 0:s.onDeselected)||r("onDeselected"),b=r(),w=c();!o&&g&&g(p?void 0:n,s,{config:b,state:w}),f&&f(l?void 0:t,e,{config:b,state:w});const _=!o&&u;let k=!1;(function(){const t=c("popover");t&&(t.wrapper.style.display="none")})(),d("previousStep",s),d("previousElement",n),d("activeStep",e),d("activeElement",t);const x=()=>{if(c("__transitionCallback")!==x)return;const o=Date.now()-i,h=400-o<=200;e.popover&&h&&!k&&_&&(S(t,e),k=!0),r("animate")&&o<400?function(t,e,i,s){let n=c("__activeStagePosition");const r=n||i.getBoundingClientRect(),o=s.getBoundingClientRect();n={x:a(t,r.x,o.x-r.x,e),y:a(t,r.y,o.y-r.y,e),width:a(t,r.width,o.width-r.width,e),height:a(t,r.height,o.height-r.height,e)},y(n),d("__activeStagePosition",n)}(o,400,n,t):(v(t),m&&m(l?void 0:t,e,{config:r(),state:c()}),d("__transitionCallback",void 0),d("__previousStep",s),d("__previousElement",n),d("__activeStep",e),d("__activeElement",t)),window.requestAnimationFrame(x)};d("__transitionCallback",x),window.requestAnimationFrame(x),h(t),!_&&e.popover&&S(t,e),n.classList.remove("driver-active-element","driver-no-interaction"),n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-expanded"),n.removeAttribute("aria-controls"),r("disableActiveInteraction")&&t.classList.add("driver-no-interaction"),t.classList.add("driver-active-element"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls","driver-popover-content")}(i,t)}function _(){const t=c("__activeElement"),e=c("__activeStep");t&&(v(t),function(){const t=c("__activeStagePosition"),e=c("__overlaySvg");if(!t)return;if(!e)return void console.warn("No stage svg found.");const i=window.innerWidth,s=window.innerHeight;e.setAttribute("viewBox",`0 0 ${i} ${s}`)}(),M(t,e))}function k(){const t=c("__resizeTimeout");t&&window.cancelAnimationFrame(t),d("__resizeTimeout",window.requestAnimationFrame(_))}function x(t){var e;if(!c("isInitialized")||"Tab"!==t.key&&9!==t.keyCode)return;const i=c("__activeElement"),s=null==(e=c("popover"))?void 0:e.wrapper,n=o([...s?[s]:[],...i?[i]:[]]),r=n[0],a=n[n.length-1];if(t.preventDefault(),t.shiftKey){const t=n[n.indexOf(document.activeElement)-1]||a;null==t||t.focus()}else{const t=n[n.indexOf(document.activeElement)+1]||r;null==t||t.focus()}}function A(t){var e;(null==(e=r("allowKeyboardControl"))||e)&&("Escape"===t.key?g("escapePress"):"ArrowRight"===t.key?g("arrowRightPress"):"ArrowLeft"===t.key&&g("arrowLeftPress"))}function C(t,e,i){const s=(e,s)=>{const n=e.target;t.contains(n)&&((!i||i(n))&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()),null==s||s(e))};document.addEventListener("pointerdown",s,!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerup",s,!0),document.addEventListener("mouseup",s,!0),document.addEventListener("click",(t=>{s(t,e)}),!0)}function S(t,e){var i,s;let n=c("popover");n&&document.body.removeChild(n.wrapper),n=function(){const t=document.createElement("div");t.classList.add("driver-popover");const e=document.createElement("div");e.classList.add("driver-popover-arrow");const i=document.createElement("header");i.id="driver-popover-title",i.classList.add("driver-popover-title"),i.style.display="none",i.innerText="Popover Title";const s=document.createElement("div");s.id="driver-popover-description",s.classList.add("driver-popover-description"),s.style.display="none",s.innerText="Popover description is here";const n=document.createElement("button");n.type="button",n.classList.add("driver-popover-close-btn"),n.setAttribute("aria-label","Close"),n.innerHTML="×";const r=document.createElement("footer");r.classList.add("driver-popover-footer");const a=document.createElement("span");a.classList.add("driver-popover-progress-text"),a.innerText="";const o=document.createElement("span");o.classList.add("driver-popover-navigation-btns");const h=document.createElement("button");h.type="button",h.classList.add("driver-popover-prev-btn"),h.innerHTML="← Previous";const l=document.createElement("button");return l.type="button",l.classList.add("driver-popover-next-btn"),l.innerHTML="Next →",o.appendChild(h),o.appendChild(l),r.appendChild(a),r.appendChild(o),t.appendChild(n),t.appendChild(e),t.appendChild(i),t.appendChild(s),t.appendChild(r),{wrapper:t,arrow:e,title:i,description:s,footer:r,previousButton:h,nextButton:l,closeButton:n,footerButtons:o,progress:a}}(),document.body.appendChild(n.wrapper);const{title:a,description:l,showButtons:p,disableButtons:u,showProgress:f,nextBtnText:m=r("nextBtnText")||"Next →",prevBtnText:v=r("prevBtnText")||"← Previous",progressText:y=r("progressText")||"{current} of {total}"}=e.popover||{};n.nextButton.innerHTML=m,n.previousButton.innerHTML=v,n.progress.innerHTML=y,a?(n.title.innerHTML=a,n.title.style.display="block"):n.title.style.display="none",l?(n.description.innerHTML=l,n.description.style.display="block"):n.description.style.display="none";const b=p||r("showButtons"),w=f||r("showProgress")||!1,_=(null==b?void 0:b.includes("next"))||(null==b?void 0:b.includes("previous"))||w;n.closeButton.style.display=b.includes("close")?"block":"none",_?(n.footer.style.display="flex",n.progress.style.display=w?"block":"none",n.nextButton.style.display=b.includes("next")?"block":"none",n.previousButton.style.display=b.includes("previous")?"block":"none"):n.footer.style.display="none";const k=u||r("disableButtons")||[];null!=k&&k.includes("next")&&(n.nextButton.disabled=!0,n.nextButton.classList.add("driver-popover-btn-disabled")),null!=k&&k.includes("previous")&&(n.previousButton.disabled=!0,n.previousButton.classList.add("driver-popover-btn-disabled")),null!=k&&k.includes("close")&&(n.closeButton.disabled=!0,n.closeButton.classList.add("driver-popover-btn-disabled"));const x=n.wrapper;x.style.display="block",x.style.left="",x.style.top="",x.style.bottom="",x.style.right="",x.id="driver-popover-content",x.setAttribute("role","dialog"),x.setAttribute("aria-labelledby","driver-popover-title"),x.setAttribute("aria-describedby","driver-popover-description"),n.arrow.className="driver-popover-arrow";const A=(null==(i=e.popover)?void 0:i.popoverClass)||r("popoverClass")||"";x.className=`driver-popover ${A}`.trim(),C(n.wrapper,(i=>{var s,n,a;const o=i.target,h=(null==(s=e.popover)?void 0:s.onNextClick)||r("onNextClick"),l=(null==(n=e.popover)?void 0:n.onPrevClick)||r("onPrevClick"),p=(null==(a=e.popover)?void 0:a.onCloseClick)||r("onCloseClick");return o.classList.contains("driver-popover-next-btn")?h?h(t,e,{config:r(),state:c()}):g("nextClick"):o.classList.contains("driver-popover-prev-btn")?l?l(t,e,{config:r(),state:c()}):g("prevClick"):o.classList.contains("driver-popover-close-btn")?p?p(t,e,{config:r(),state:c()}):g("closeClick"):void 0}),(t=>!(null!=n&&n.description.contains(t))&&!(null!=n&&n.title.contains(t))&&"string"==typeof t.className&&t.className.includes("driver-popover"))),d("popover",n);const S=(null==(s=e.popover)?void 0:s.onPopoverRender)||r("onPopoverRender");S&&S(n,{config:r(),state:c()}),M(t,e),h(x);const E=o([x,...t.classList.contains("driver-dummy-element")?[]:[t]]);E.length>0&&E[0].focus()}function E(){const t=c("popover");if(null==t||!t.wrapper)return;const e=t.wrapper.getBoundingClientRect(),i=r("stagePadding")||0,s=r("popoverOffset")||0;return{width:e.width+i+s,height:e.height+i+s,realWidth:e.width,realHeight:e.height}}function P(t,e){const{elementDimensions:i,popoverDimensions:s,popoverPadding:n,popoverArrowDimensions:r}=e;return"start"===t?Math.max(Math.min(i.top-n,window.innerHeight-s.realHeight-r.width),r.width):"end"===t?Math.max(Math.min(i.top-(null==s?void 0:s.realHeight)+i.height+n,window.innerHeight-(null==s?void 0:s.realHeight)-r.width),r.width):"center"===t?Math.max(Math.min(i.top+i.height/2-(null==s?void 0:s.realHeight)/2,window.innerHeight-(null==s?void 0:s.realHeight)-r.width),r.width):0}function T(t,e){const{elementDimensions:i,popoverDimensions:s,popoverPadding:n,popoverArrowDimensions:r}=e;return"start"===t?Math.max(Math.min(i.left-n,window.innerWidth-s.realWidth-r.width),r.width):"end"===t?Math.max(Math.min(i.left-(null==s?void 0:s.realWidth)+i.width+n,window.innerWidth-(null==s?void 0:s.realWidth)-r.width),r.width):"center"===t?Math.max(Math.min(i.left+i.width/2-(null==s?void 0:s.realWidth)/2,window.innerWidth-(null==s?void 0:s.realWidth)-r.width),r.width):0}function M(t,e){const i=c("popover");if(!i)return;const{align:s="start",side:n="left"}=(null==e?void 0:e.popover)||{},a=s,o="driver-dummy-element"===t.id?"over":n,h=r("stagePadding")||0,l=E(),p=i.arrow.getBoundingClientRect(),d=t.getBoundingClientRect(),u=d.top-l.height;let f=u>=0;const m=window.innerHeight-(d.bottom+l.height);let g=m>=0;const v=d.left-l.width;let y=v>=0;const b=window.innerWidth-(d.right+l.width);let w=b>=0;const _=!(f||g||y||w);let k=o;if("top"===o&&f?w=y=g=!1:"bottom"===o&&g?w=y=f=!1:"left"===o&&y?w=f=g=!1:"right"===o&&w&&(y=f=g=!1),"over"===o){const t=window.innerWidth/2-l.realWidth/2,e=window.innerHeight/2-l.realHeight/2;i.wrapper.style.left=`${t}px`,i.wrapper.style.right="auto",i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto"}else if(_){const t=window.innerWidth/2-(null==l?void 0:l.realWidth)/2,e=10;i.wrapper.style.left=`${t}px`,i.wrapper.style.right="auto",i.wrapper.style.bottom=`${e}px`,i.wrapper.style.top="auto"}else if(y){const t=Math.min(v,window.innerWidth-(null==l?void 0:l.realWidth)-p.width),e=P(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.left=`${t}px`,i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.right="auto",k="left"}else if(w){const t=Math.min(b,window.innerWidth-(null==l?void 0:l.realWidth)-p.width),e=P(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.right=`${t}px`,i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.left="auto",k="right"}else if(f){const t=Math.min(u,window.innerHeight-l.realHeight-p.width);let e=T(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.top=`${t}px`,i.wrapper.style.left=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.right="auto",k="top"}else if(g){const t=Math.min(m,window.innerHeight-(null==l?void 0:l.realHeight)-p.width);let e=T(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.left=`${e}px`,i.wrapper.style.bottom=`${t}px`,i.wrapper.style.top="auto",i.wrapper.style.right="auto",k="bottom"}_?i.arrow.classList.add("driver-popover-arrow-none"):function(t,e,i){const s=c("popover");if(!s)return;const n=i.getBoundingClientRect(),r=E(),a=s.arrow,o=r.width,h=window.innerWidth,l=n.width,p=n.left,d=r.height,u=window.innerHeight,f=n.top,m=n.height;a.className="driver-popover-arrow";let g=e,v=t;"top"===e?(p+l<=0?(g="right",v="end"):p+l-o<=0&&(g="top",v="start"),p>=h?(g="left",v="end"):p+o>=h&&(g="top",v="end")):"bottom"===e?(p+l<=0?(g="right",v="start"):p+l-o<=0&&(g="bottom",v="start"),p>=h?(g="left",v="start"):p+o>=h&&(g="bottom",v="end")):"left"===e?(f+m<=0?(g="bottom",v="end"):f+m-d<=0&&(g="left",v="start"),f>=u?(g="top",v="end"):f+d>=u&&(g="left",v="end")):"right"===e&&(f+m<=0?(g="bottom",v="start"):f+m-d<=0&&(g="right",v="start"),f>=u?(g="top",v="start"):f+d>=u&&(g="right",v="end")),g?(a.classList.add(`driver-popover-arrow-side-${g}`),a.classList.add(`driver-popover-arrow-align-${v}`)):a.classList.add("driver-popover-arrow-none")}(a,k,t)}const D=window.wp.i18n;if(window.vrts_admin_vars.onboarding){const i=1===window.vrts_admin_vars.onboarding.steps.length,s=function(t={}){function e(){r("allowClose")&&p()}function i(){const t=c("activeIndex"),e=r("steps")||[];if(void 0===t)return;const i=t+1;e[i]?l(i):p()}function s(){const t=c("activeIndex"),e=r("steps")||[];if(void 0===t)return;const i=t-1;e[i]?l(i):p()}function a(){var t;if(c("__transitionCallback"))return;const e=c("activeIndex"),i=c("__activeStep"),n=c("__activeElement");if(void 0===e||void 0===i||void 0===c("activeIndex"))return;const a=(null==(t=i.popover)?void 0:t.onPrevClick)||r("onPrevClick");if(a)return a(n,i,{config:r(),state:c()});s()}function o(){var t;if(c("__transitionCallback"))return;const e=c("activeIndex"),s=c("__activeStep"),n=c("__activeElement");if(void 0===e||void 0===s)return;const a=(null==(t=s.popover)?void 0:t.onNextClick)||r("onNextClick");if(a)return a(n,s,{config:r(),state:c()});i()}function h(){c("isInitialized")||(d("isInitialized",!0),document.body.classList.add("driver-active",r("animate")?"driver-fade":"driver-simple"),window.addEventListener("keyup",A,!1),window.addEventListener("keydown",x,!1),window.addEventListener("resize",k),window.addEventListener("scroll",k),m("overlayClick",e),m("escapePress",e),m("arrowLeftPress",a),m("arrowRightPress",o))}function l(t=0){var e,i,s,n,a,o,h,c;const u=r("steps");if(!u)return console.error("No steps to drive through"),void p();if(!u[t])return void p();d("__activeOnDestroyed",document.activeElement),d("activeIndex",t);const f=u[t],m=u[t+1],g=u[t-1],v=(null==(e=f.popover)?void 0:e.doneBtnText)||r("doneBtnText")||"Done",y=r("allowClose"),b=void 0!==(null==(i=f.popover)?void 0:i.showProgress)?null==(s=f.popover)?void 0:s.showProgress:r("showProgress"),_=((null==(n=f.popover)?void 0:n.progressText)||r("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${t+1}`).replace("{{total}}",`${u.length}`),k=(null==(a=f.popover)?void 0:a.showButtons)||r("showButtons"),x=["next","previous",...y?["close"]:[]].filter((t=>!(null!=k&&k.length)||k.includes(t))),A=(null==(o=f.popover)?void 0:o.onNextClick)||r("onNextClick"),C=(null==(h=f.popover)?void 0:h.onPrevClick)||r("onPrevClick"),S=(null==(c=f.popover)?void 0:c.onCloseClick)||r("onCloseClick");w({...f,popover:{showButtons:x,nextBtnText:m?void 0:v,disableButtons:[...g?[]:["previous"]],showProgress:b,progressText:_,onNextClick:A||(()=>{m?l(t+1):p()}),onPrevClick:C||(()=>{l(t-1)}),onCloseClick:S||(()=>{p()}),...(null==f?void 0:f.popover)||{}}})}function p(t=!0){const e=c("__activeElement"),i=c("__activeStep"),s=c("__activeOnDestroyed"),n=r("onDestroyStarted");if(t&&n)return void n(e&&"driver-dummy-element"!==(null==e?void 0:e.id)?e:void 0,i,{config:r(),state:c()});const a=(null==i?void 0:i.onDeselected)||r("onDeselected"),o=r("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),window.removeEventListener("keyup",A),window.removeEventListener("resize",k),window.removeEventListener("scroll",k),function(){var t;const e=c("popover");e&&(null==(t=e.wrapper.parentElement)||t.removeChild(e.wrapper))}(),function(){var t;null==(t=document.getElementById("driver-dummy-element"))||t.remove(),document.querySelectorAll(".driver-active-element").forEach((t=>{t.classList.remove("driver-active-element","driver-no-interaction"),t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls")}))}(),function(){const t=c("__overlaySvg");t&&t.remove()}(),f={},u(),e&&i){const t="driver-dummy-element"===e.id;a&&a(t?void 0:e,i,{config:r(),state:c()}),o&&o(t?void 0:e,i,{config:r(),state:c()})}s&&s.focus()}return n(t),{isActive:()=>c("isInitialized")||!1,refresh:k,drive:(t=0)=>{h(),l(t)},setConfig:n,setSteps:t=>{u(),n({...r(),steps:t})},getConfig:r,getState:c,getActiveIndex:()=>c("activeIndex"),isFirstStep:()=>0===c("activeIndex"),isLastStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&e===t.length-1},getActiveStep:()=>c("activeStep"),getActiveElement:()=>c("activeElement"),getPreviousElement:()=>c("previousElement"),getPreviousStep:()=>c("previousStep"),moveNext:i,movePrevious:s,moveTo:function(t){(r("steps")||[])[t]?l(t):p()},hasNextStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&t[e+1]},hasPreviousStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&t[e-1]},highlight:t=>{h(),w({...t,popover:t.popover?{showButtons:[],showProgress:!1,progressText:"",...t.popover}:void 0})},destroy:()=>{p(!1)}}}({overlayColor:"rgba(44, 51, 56, 0.35)",stageRadius:0,stagePadding:0,popoverOffset:20,allowClose:!1,showProgress:!i,popoverClass:i?"vrts-onboarding-nonblocking":"vrts-onboarding",disableActiveInteraction:!1,progressText:(0,D.__)("{{current}} of {{total}}","visual-regression-tests"),prevBtnText:(0,D.__)("Previous","visual-regression-tests"),nextBtnText:(0,D.__)("Next","visual-regression-tests"),doneBtnText:(0,D.__)("Got it!","visual-regression-tests"),onPopoverRender:(t,{config:e,state:s})=>{const n=e.steps[s.activeIndex+1];e.stagePadding=window.vrts_admin_vars.onboarding.steps[s.activeIndex].padding||0,t.previousButton.classList.add("button","button-secondary","button-large"),t.nextButton.classList.add("button","button-primary","button-large"),n||t.nextButton.classList.add("driver-popover-success-btn"),i&&t.previousButton.setAttribute("hidden",!0)},onNextClick:(t,e,{config:i,state:n})=>{i.steps[n.activeIndex+1]?s.moveNext():s.destroy()},onCloseClick:()=>{s.destroy()}, steps:window.vrts_admin_vars.onboarding.steps.map((t=>({element:t.element,popover:{title:t.title,description:t.description,side:t.side||"left",align:t.align||"start"}})))});s.drive(),async function(){const{currentUserId:i,onboarding:{id:s}}=window.vrts_admin_vars,n=(await(0,t.resolveSelect)(e.store).getEntityRecord("root","user",i)).vrts_onboarding||{},r=n.completed||[];(0,t.dispatch)(e.store).saveEntityRecord("root","user",{id:i,vrts_onboarding:{...n,completed:[...r,s].filter(((t,e,i)=>i.indexOf(t)===e))}})}()}var F;F=i(962),i(300),i(328),F.keys().forEach(F)})()})();1 (()=>{var t={300:(t,e,i)=>{var s={"./admin-header/_style.scss":179,"./admin-notification/_style.scss":809,"./alert-actions/_style.scss":168,"./comparisons/_style.scss":234,"./metabox-classic-editor/_style.scss":271,"./modal/_style.scss":799,"./settings-page/_style.scss":793,"./test-run-alerts/_style.scss":800,"./test-run-info/_style.scss":177,"./test-run-page/_style.scss":364,"./test-run-pagination/_style.scss":821,"./test-run-receipt/_style.scss":305,"./test-run-success/_style.scss":140,"./test-runs-page/_style.scss":479,"./tests-page/_style.scss":423,"./upgrade-page/_style.scss":946};function n(t){var e=r(t);return i(e)}function r(t){if(!i.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}n.keys=function(){return Object.keys(s)},n.resolve=r,t.exports=n,n.id=300},962:(t,e,i)=>{var s={"./admin-notification/script.js":415,"./alert-actions/script.js":303,"./comparisons/script.js":784,"./modal/script.js":417,"./settings-page/script.js":563,"./test-run-alerts/script.js":650,"./test-run-page/script.js":74,"./test-run-pagination/script.js":191,"./test-run-success/script.js":486,"./test-runs-page/script.js":937,"./tests-page/script.js":318,"./upgrade-page/script.js":92};function n(t){var e=r(t);return i(e)}function r(t){if(!i.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}n.keys=function(){return Object.keys(s)},n.resolve=r,t.exports=n,n.id=962},328:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=328,t.exports=e},407:()=>{class t extends window.HTMLElement{static get observedAttributes(){return["time"]}attributeChangedCallback(t,e,i){"time"===t&&(this.time=new Date(i),this.update())}update(){var t;this.innerText=`${function(t){const{__}=wp.i18n,i=new Date;i.setHours(0,0,0,0);const s=new Date(t);s.setHours(0,0,0,0);const n=(s-i)/864e5;return 0===n?__("Today","visual-regression-testing"):1===n?__("Tomorrow","visual-regression-testing"):-1===n?__("Yesterday","visual-regression-testing"):e(t,"D, Y/m/d")}(this.time)} at ${t=this.time,e(t,"g:i a")}`}}function e(t,e){const i=t=>t<10?`0${t}`:t,s=i(t.getDate()),n=i(t.getMonth()+1),r=t.getFullYear(),a=t.getFullYear(),o=t.getHours(),h=i(t.getMinutes()),l=t.getSeconds(),p=t.getHours()%12||12,d=t.getHours()>=12?"pm":"am",c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][t.getDay()];return e.replace("d",s).replace("m",n).replace("y",r).replace("Y",a).replace("H",o).replace("i",h).replace("s",l).replace("g",p).replace("a",d).replace("D",c)}window.customElements.define("vrts-relative-time",t)},415:(t,e,i)=>{"use strict";i.r(e),i(407),jQuery(document).ready((function(t){t(document).on("click",".vrts-notice .notice-dismiss",(e=>{if(ajaxurl){const i=e.target.parentElement.querySelector("#_wpnonce").value,s=e.target.parentElement.dataset.view,n={action:"vrts_admin_notice_dismiss",url:ajaxurl,security:i,view:s};t.ajax({type:"POST",url:ajaxurl,data:n})}}))}))},303:()=>{"use strict";class t extends window.HTMLElement{constructor(){super(),this.dropdown=null,this.setAsReadTimeout=null,this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$actionButtons=this.querySelectorAll("[data-vrts-alert-action]"),this.$hideElementsForm=this.querySelector("[data-vrts-hide-elements-form]"),this.$hideElementsModal=document.getElementById("vrts-modal-hide-elements"),this.$spinner=this.querySelector(".spinner"),this.$success=this.querySelector(".vrts-alert-actions__modal-action-success")}bindFunctions(){this.onActionClick=this.onActionClick.bind(this),this.onHideElementsFormSubmit=this.onHideElementsFormSubmit.bind(this),this.onHideElementsModalClose=this.onHideElementsModalClose.bind(this)}bindEvents(){this.$actionButtons.forEach((t=>{t.addEventListener("click",this.onActionClick)})),this.$hideElementsForm.addEventListener("submit",this.onHideElementsFormSubmit),this.$hideElementsModal.addEventListener("hide",this.onHideElementsModalClose)}connectedCallback(){this.dropdown=function(t){const e=t.querySelector("[data-vrts-dropdown-open]"),i=t=>{const e=t.currentTarget,i=e.getAttribute("aria-controls"),s=document.getElementById(i),n="true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",!n),s.setAttribute("aria-hidden",n)},s=i=>{t&&t!==i.target&&!t.contains(i.target)&&(e.setAttribute("aria-expanded",!1),document.getElementById(e.getAttribute("aria-controls")).setAttribute("aria-hidden",!0))};return e?.addEventListener("click",i),document.addEventListener("click",s),()=>{e?.removeEventListener("click",i),document.removeEventListener("click",s)}}(this),this.setAsReadOnView()}setAsReadOnView(){this.$actionButtons.forEach((t=>{const e="read-status"===t.getAttribute("data-vrts-alert-action"),i="primary"===t.getAttribute("data-vrts-action-state");e&&i&&(this.setAsReadTimeout=setTimeout((()=>{t.click()}),1e3))}))}onHideElementsFormSubmit(t){t.preventDefault();const e=t.currentTarget,i=new window.FormData(e),s=i.get("post_id");this.$spinner.classList.add("is-active"),this.$success.classList.remove("is-active"),fetch(`${window.vrts_admin_vars.rest_url}/tests/post/${s}`,{method:"PUT",headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce},body:new URLSearchParams(i)}).then((t=>t.json())).then((()=>{this.$spinner.classList.remove("is-active"),this.$success.classList.add("is-active")}))}onHideElementsModalClose(){this.$success.classList.remove("is-active")}onActionClick(t){const e=t.currentTarget,i="true"===e.getAttribute("data-vrts-loading"),s="primary"===e.getAttribute("data-vrts-action-state");if(i)return;const n=e.getAttribute("data-vrts-alert-action"),r=e.getAttribute("data-vrts-alert-id");this.handleAction(n,e,r,s)}handleAction(t,e,i,s){const n=`${window.vrts_admin_vars.rest_url}/alerts/${i}/${t}`,r=s?"POST":"DELETE";let a=0,o=null;const h=setTimeout((()=>{e.setAttribute("data-vrts-loading","true");const t=window.Date.now();o=setInterval((()=>{a=window.Date.now()-t}),50)}),200);fetch(n,{method:r,headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce}}).then((t=>t.json())).then((()=>{const n=a>0?Math.abs(a-400):0;setTimeout((()=>{e.setAttribute("data-vrts-loading","false"),e.setAttribute("data-vrts-action-state",s?"secondary":"primary");const n=document.getElementById(`vrts-alert-${i}`);n&&("false-positive"===t&&n.setAttribute("data-vrts-false-positive",s?"true":"false"),"read-status"===t&&n.setAttribute("data-vrts-state",s?"read":"unread"))}),n),clearTimeout(h),clearInterval(o)}))}disconnectedCallback(){this.dropdown?.(),clearTimeout(this.setAsReadTimeout),this.$actionButtons?.forEach((t=>{t.removeEventListener("click",this.onActionClick)})),this.$hideElementsForm?.removeEventListener("submit",this.onHideElementsFormSubmit),this.$hideElementsModal?.removeEventListener("hide",this.onHideElementsModalClose)}}window.customElements.define("vrts-alert-actions",t)},784:(t,e,i)=>{class s extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents(),this.init()}resolveElements(){this.$content=document.querySelector("[data-vrts-fullscreen]"),this.$fullscreen=this.querySelector("[data-vrts-fullscreen-open]"),this.$control=this.querySelector("[data-vrts-comparisons-slider-control]"),this.$diffIndicator=this.querySelector("[data-vrts-comparisons-diff-inidicator]"),this.$comparison=this.querySelector('[data-vrts-comparisons-slot="comparison"] img')}bindFunctions(){this.onFullscreenToggle=this.onFullscreenToggle.bind(this),this.onControlChange=this.onControlChange.bind(this),this.onFullScreenChange=this.onFullScreenChange.bind(this),this.onLoadComparison=this.onLoadComparison.bind(this)}bindEvents(){this.$fullscreen.addEventListener("click",this.onFullscreenToggle),this.$control.addEventListener("input",this.onControlChange),document.addEventListener("fullscreenchange",this.onFullScreenChange)}init(){this.worker=new window.Worker(new URL(i(392),i.b)),this.worker.onmessage=this.onWorkerMessage.bind(this),this.$comparison.complete?this.onLoadComparison():this.$comparison.onload=this.onLoadComparison}onLoadComparison(){const t=this.createOffscreenCanvarImageData(this.$comparison);this.worker.postMessage({action:"analyzeImage",imageData:t})}createOffscreenCanvarImageData(t){const e=new window.OffscreenCanvas(t.naturalWidth,t.naturalHeight),i=e.getContext("2d");return i.drawImage(t,0,0),i.getImageData(0,0,e.width,e.height)}requestFullscreen(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()}exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}getFullscreenElement(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement}onFullscreenToggle(t){t.preventDefault(),this.getFullscreenElement()===this.$content?this.exitFullscreen():this.requestFullscreen(this.$content)}onFullScreenChange(){this.$content.setAttribute("data-vrts-fullscreen",this.getFullscreenElement()===this.$content)}onControlChange(t){this.style.setProperty("--vrts-comparisons-slider-position",`${t.target.value}%`)}onWorkerMessage(t){"analyzedImage"===t.data?.action&&this.highlightPixels(t.data.coloredPixels)}highlightPixels(t){const e=this.$diffIndicator.getContext("2d");this.$diffIndicator.width=this.$comparison.naturalWidth,this.$diffIndicator.height=this.$comparison.naturalHeight,e.clearRect(0,0,this.$comparison.naturalWidth,this.$comparison.naturalHeight),e.fillStyle="#cc1818",t.forEach((t=>{e.fillRect(0,t-2,e.canvas.width,3)}))}connectedCallback(){}disconnectedCallback(){this.$fullscreen?.removeEventListener("click",this.onFullscreenToggle),this.$control?.removeEventListener("input",this.onControlChange),document.removeEventListener("fullscreenchange",this.onFullScreenChange),this.worker?.terminate(),this.worker=null}}window.customElements.define("vrts-comparisons",s)},417:()=>{"use strict";const t=":not([inert]):not([inert] *)",e=':not([tabindex^="-"])',i=":not(:disabled)";var s=[`a[href]${t}${e}`,`area[href]${t}${e}`,`input:not([type="hidden"]):not([type="radio"])${t}${e}${i}`,`input[type="radio"]${t}${e}${i}`,`select${t}${e}${i}`,`textarea${t}${e}${i}`,`button${t}${e}${i}`,`details${t} > summary:first-of-type${e}`,`iframe${t}${e}`,`audio[controls]${t}${e}`,`video[controls]${t}${e}`,`[contenteditable]${t}${e}`,`[tabindex]${t}${e}`];function n(t){(t.querySelector("[autofocus]")||t).focus()}function r(t,e){if(e&&h(t))return t;if(function(t){return!(t.shadowRoot&&"-1"===t.getAttribute("tabindex")||t.matches(":disabled,[hidden],[inert]"))}(t))if(t.shadowRoot){let i=a(t.shadowRoot,e);for(;i;){const t=r(i,e);if(t)return t;i=o(i,e)}}else if("slot"===t.localName){const i=t.assignedElements({flatten:!0});e||i.reverse();for(const t of i){const i=r(t,e);if(i)return i}}else{let i=a(t,e);for(;i;){const t=r(i,e);if(t)return t;i=o(i,e)}}return!e&&h(t)?t:null}function a(t,e){return e?t.firstElementChild:t.lastElementChild}function o(t,e){return e?t.nextElementSibling:t.previousElementSibling}const h=t=>!t.shadowRoot?.delegatesFocus&&t.matches(s.join(","))&&!(t=>!(!t.matches("details:not([open]) *")||t.matches("details>summary:first-of-type"))||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))(t);function l(t=document){const e=t.activeElement;return e?e.shadowRoot?l(e.shadowRoot)||document.activeElement:e:null}function p(t,e){return function e(i){return i&&i!==document&&i!==window?(i.assignedSlot&&(i=i.assignedSlot),i.closest(t)||e(i.getRootNode().host)):null}(e)}const d="data-a11y-dialog";class c{$el;id;previouslyFocused;shown;constructor(t){this.$el=t,this.id=this.$el.getAttribute(d)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(t){return this.shown||this.fire("show",t).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=l(),"BODY"===this.previouslyFocused?.tagName&&t?.target&&(this.previouslyFocused=t.target),"focus"===t?.type?this.maintainFocus(t):n(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(t){return this.shown?(this.fire("hide",t).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this.previouslyFocused?.focus?.(),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0)),this):this}on(t,e,i){return this.$el.addEventListener(t,e,i),this}off(t,e,i){return this.$el.removeEventListener(t,e,i),this}fire(t,e){const i=new CustomEvent(t,{detail:e,cancelable:!0});return this.$el.dispatchEvent(i),i}handleTriggerClicks(t){const e=t.composedPath()[0],i=p(`[${d}-show="${this.id}"]`,e),s=p(`[${d}-hide="${this.id}"]`,e),n=p(`[${d}-hide]`,e)&&p('[aria-modal="true"]',e)===this.$el;i&&this.show(t),(s||n)&&this.hide(t)}bindKeypress(t){if(p('[aria-modal="true"]',l())!==this.$el)return;let e=!1;try{e=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==t.key||"alertdialog"===this.$el.getAttribute("role")||e||(t.preventDefault(),this.hide(t)),"Tab"===t.key&&function(t,e){const[i,s]=function(t){const e=r(t,!0);return[e,e?r(t,!1)||e:null]}(t);if(!i)return e.preventDefault();const n=l();e.shiftKey&&n===i?(s.focus(),e.preventDefault()):e.shiftKey||n!==s||(i.focus(),e.preventDefault())}(this.$el,t)}maintainFocus(t){t.target.closest(`[aria-modal="true"], [${d}-ignore-focus-trap]`)||n(this.$el)}}function u(){for(const t of document.querySelectorAll("[data-a11y-dialog]"))new c(t)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",u):u());class f extends window.HTMLElement{connectedCallback(){this.modal=new c(this)}disconnectedCallback(){this.modal.destroy()}}window.customElements.define("vrts-modal",f)},563:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$proSettingsCheckboxes=this.querySelectorAll('[data-a11y-dialog-show] input[type="checkbox"]')}bindFunctions(){this.onCheckboxChange=this.onCheckboxChange.bind(this)}bindEvents(){this.$proSettingsCheckboxes?.forEach((t=>{t.addEventListener("change",this.onCheckboxChange)}))}onCheckboxChange(t){t.preventDefault(),t.currentTarget.checked=!t.currentTarget.checked}disconnectedCallback(){this.$proSettingsCheckboxes?.forEach((t=>{t.removeEventListener("change",this.onCheckboxChange)}))}}window.customElements.define("vrts-settings",t)},650:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents(),this.unreadAlerts=new Set,this.initialUnreadAlerts=0,this.unreadRuns=parseInt(this.getAttribute("data-vrts-unread-runs"),10)}resolveElements(){this.$heading=this.querySelector(".vrts-test-run-alerts__heading"),this.$alerts=this.querySelectorAll("[data-vrts-alert]"),this.$actionButtons=this.querySelectorAll("[data-vrts-test-run-action]"),this.$runsMenuItems=[document.querySelector('.vrts-admin-header [href*="page=vrts-runs"]'),document.querySelector('#adminmenu .menu-top[href*="page=vrts"] .wp-menu-name'),document.querySelector('#adminmenu .wp-submenu a[href*="page=vrts-runs"]')]}bindFunctions(){this.handleAlertClick=this.handleAlertClick.bind(this),this.handleActionClick=this.handleActionClick.bind(this),this.updateRunsCount=this.updateRunsCount.bind(this)}bindEvents(){this.$alerts?.forEach((t=>{t.addEventListener("click",this.handleAlertClick)})),this.$actionButtons?.forEach((t=>{t.addEventListener("click",this.handleActionClick)}))}connectedCallback(){this.checkHeadingSticky(),this.checkReadStatusChange(),this.$alerts.forEach((t=>{"unread"===t.getAttribute("data-vrts-state")&&this.unreadAlerts.add(t.getAttribute("data-vrts-alert"))})),this.initialUnreadAlerts=this.unreadAlerts.size}checkHeadingSticky(){new window.IntersectionObserver((t=>{const e=!t[0].isIntersecting;this.$heading.setAttribute("data-is-sticky",e)}),{root:document,threshold:[1]}).observe(this.$heading)}checkReadStatusChange(){const t=new window.MutationObserver((t=>{t.forEach((t=>{if("attributes"===t.type&&"data-vrts-state"===t.attributeName){const e=t.target.getAttribute("data-vrts-alert"),i=t.target.getAttribute("data-vrts-state");if("receipt"===e)return;"unread"===i?this.unreadAlerts.add(e):this.unreadAlerts.delete(e),this.querySelector('[data-vrts-test-run-action="read-status"]').setAttribute("data-vrts-action-state",this.unreadAlerts.size>0?"primary":"secondary"),this.updateRunsCount(this.unreadAlerts.size)}}))}));this.$alerts.forEach((e=>{t.observe(e,{attributes:!0})}))}updateRunsCount(t){let e=this.unreadRuns;t>0&&0===this.initialUnreadAlerts?e+=1:0===t&&this.initialUnreadAlerts>0&&(e-=1),this.$runsMenuItems.forEach((t=>{if(t&&(t.querySelector(".update-plugins")?.remove(),t.textContent=t.textContent.replace(/\u00A0/g,""),e>0)){const i=document.createElement("span"),s=document.createTextNode(" ");i.classList.add("update-plugins"),i.textContent=e,t.appendChild(s),t.appendChild(i)}}))}handleAlertClick(t){t.preventDefault();const e=t.currentTarget;if("true"===e.getAttribute("data-vrts-current"))return;const i=e.getAttribute("href"),s=document.querySelector("vrts-comparisons")||document.querySelector("vrts-test-run-success"),n=document.querySelector("vrts-test-run-pagination");this.$alerts.forEach((t=>{t.setAttribute("data-vrts-current","false")})),e.setAttribute("data-vrts-current","true");const r=setTimeout((()=>{s.setAttribute("data-vrts-loading","true")}),200);fetch(i).then((t=>t.text())).then((t=>{const e=(new window.DOMParser).parseFromString(t,"text/html"),a=e.querySelector("vrts-comparisons")||e.querySelector("vrts-test-run-success"),o=e.querySelector("vrts-test-run-pagination");window.history.replaceState({},"",i),this.scrollTo(s.offsetTop-62),a&&s.replaceWith(a),o&&n.replaceWith(o),clearTimeout(r)}))}handleActionClick(t){const e=t.currentTarget,i="true"===e.getAttribute("data-vrts-loading"),s="primary"===e.getAttribute("data-vrts-action-state");if(i)return;const n=e.getAttribute("data-vrts-test-run-action"),r=e.getAttribute("data-vrts-test-run-id");this.handleAction(n,e,r,s)}handleAction(t,e,i,s){const n=`${window.vrts_admin_vars.rest_url}/test-runs/${i}/${t}`,r=s?"POST":"DELETE";let a=0,o=null;const h=setTimeout((()=>{e.setAttribute("data-vrts-loading","true");const t=window.Date.now();o=setInterval((()=>{a=window.Date.now()-t}),50)}),200);fetch(n,{method:r,headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce}}).then((t=>t.json())).then((()=>{const t=a>0?Math.abs(a-400):0;setTimeout((()=>{e.setAttribute("data-vrts-loading","false"),e.setAttribute("data-vrts-action-state",s?"secondary":"primary"),document.querySelectorAll("[data-vrts-alert]").forEach((t=>{t.setAttribute("data-vrts-state",s?"read":"unread")}))}),t),clearTimeout(h),clearInterval(o)}))}scrollTo(t){(document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||window).scrollTo({top:t,behavior:"smooth"})}disconnectedCallback(){this.$alerts?.forEach((t=>{t.removeEventListener("click",this.handleAlertClick)})),this.$actionButtons?.forEach((t=>{t.removeEventListener("click",this.handleActionClick)}))}}window.customElements.define("vrts-test-run-alerts",t)},74:()=>{class t extends window.HTMLElement{constructor(){super(),this.bindFunctions(),this.bindEvents(),this.isScrolling=!1}bindFunctions(){this.onScroll=this.onScroll.bind(this),this.setOffset=this.setOffset.bind(this)}bindEvents(){document.addEventListener("scroll",this.onScroll)}onScroll(){this.isScrolling||(this.isScrolling=!0,window.requestAnimationFrame(this.setOffset))}setOffset(){const t=Math.max(0,this.offset-window.scrollY);this.style.setProperty("--vrts-test-run-page-offset",`${t}px`),this.isScrolling=!1}connectedCallback(){const t=this.getBoundingClientRect(),e=document.getElementById("wpadminbar").offsetHeight;this.offset=t.top+window.scrollY-e,this.setOffset()}disconnectedCallback(){document.removeEventListener("scroll",this.onScroll)}}window.customElements.define("vrts-test-run-page",t)},191:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$alerts=document.querySelectorAll("[data-vrts-alert]"),this.$buttons=this.querySelectorAll(".button")}bindFunctions(){this.handleClick=this.handleClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}bindEvents(){this.$buttons?.forEach((t=>{t.addEventListener("click",this.handleClick)})),document.addEventListener("keydown",this.handleKeyDown)}handleClick(t){t.preventDefault();const e=t.currentTarget,i=e.getAttribute("data-vrts-alert-id");let s=document.getElementById(`vrts-alert-${i}`);if(!s)return;const n=e.getAttribute("href"),r=document.querySelector("vrts-comparisons")||document.querySelector("vrts-test-run-success"),a=document.querySelector(".vrts-test-run-page__sidebar");this.$alerts.forEach((t=>{t.setAttribute("data-vrts-current","false")})),s.setAttribute("data-vrts-current","true");let o=0,h=null;const l=setTimeout((()=>{r.setAttribute("data-vrts-loading","true");const t=window.Date.now();h=setInterval((()=>{o=window.Date.now()-t}),50)}),200);let p=0;for(;s&&s!==a;)p+=s.offsetTop,s=s.offsetParent;a.scrollTo({top:p-82,behavior:"smooth"}),fetch(n).then((t=>t.text())).then((t=>{const e=(new window.DOMParser).parseFromString(t,"text/html"),i=e.querySelector("vrts-comparisons")||e.querySelector("vrts-test-run-success"),s=e.querySelector("vrts-test-run-pagination");window.history.replaceState({},"",n),this.scrollTo(r.offsetTop-62);const a=o>0?Math.abs(o-400):0;setTimeout((()=>{i&&r.replaceWith(i),s&&this.replaceWith(s)}),a),clearTimeout(l),clearInterval(h)}))}handleKeyDown(t){"ArrowUp"===t.key&&(t.preventDefault(),this.querySelector('[data-vrts-pagination="prev"]').click()),"ArrowDown"===t.key&&(t.preventDefault(),this.querySelector('[data-vrts-pagination="next"]').click())}scrollTo(t){(document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||window).scrollTo({top:t,behavior:"smooth"})}disconnectedCallback(){this.$buttons?.forEach((t=>{t.removeEventListener("click",this.handleClick)})),document.removeEventListener("keydown",this.handleKeyDown)}}window.customElements.define("vrts-test-run-pagination",t)},486:(t,e,i)=>{"use strict";i.r(e);var s=i(816),n=i.n(s);class r extends window.HTMLElement{constructor(){super(),this.resolveElements()}resolveElements(){this.$lottiePlayer=this.querySelector("[vrts-lottie-player]")}connectedCallback(){this.lottieAnimation=n().loadAnimation({path:`${window.vrts_admin_vars.pluginUrl}/assets/animations/success-check.json`,container:this.$lottiePlayer,renderer:"svg",loop:!1,autoplay:!0})}disconnectedCallback(){this.lottieAnimation.destroy()}loaAnimation(){this.$lottiePlayer.play()}}window.customElements.define("vrts-test-run-success",r)},937:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements()}resolveElements(){this.$runsListTable=this.querySelector("form .vrts-test-runs-list-table")}connectedCallback(){this.highlightNewTestRuns()}highlightNewTestRuns(){const t=new Set(JSON.parse(window.localStorage.getItem("vrtsNewTestRuns")||"[]")),e=this.$runsListTable.querySelectorAll("tr[data-test-run-id]");let i=0;e.forEach((e=>{const s=e.getAttribute("data-test-run-id");"true"===e.getAttribute("data-test-run-new")?t.has(s)||(t.add(s),setTimeout((()=>{e.classList.add("test-run-highlighted")}),i),i+=200):t.has(s)&&t.delete(s)})),window.localStorage.setItem("vrtsNewTestRuns",JSON.stringify([...t]))}}window.customElements.define("vrts-test-runs-page",t)},318:()=>{document.getElementById("show-modal-add-new")?.addEventListener("click",(()=>{window.wpLink.open("input_hidden_internal_url")})),window.wp=window.wp||{},function(t,e){window.inlineEditTest={init(){const e=this,i=t("#inline-edit");e.type="test",e.what="#test-",i.on("keyup",(function(t){if(27===t.which)return inlineEditTest.revert()})),t(".cancel",i).on("click",(function(){return inlineEditTest.revert()})),t(".save",i).on("click",(function(){return inlineEditTest.save(this)})),t("td",i).on("keydown",(function(e){if(13===e.which&&!e.shiftKey&&!t(e.target).hasClass("cancel"))return inlineEditTest.save(this)})),t("#the-list").on("click",".editinline",(function(){t(this).attr("aria-expanded","true"),inlineEditTest.edit(this)})),t("#doaction").on("click",(function(i){e.whichBulkButtonId=t(this).attr("id");const s=e.whichBulkButtonId.substr(2);"edit"===t('select[name="'+s+'"]').val()?i.preventDefault():t("form#posts-filter tr.inline-editor").length>0&&e.revert()}))},toggle(e){const i=this;"none"===t(i.what+i.getId(e)).css("display")?i.revert():i.edit(e)},edit(e){const i=this;i.revert(),"object"==typeof e&&(e=i.getId(e));const s=t("#inline-edit").clone(!0);t("td",s).attr("colspan",t("th:visible, td:visible",".widefat:first thead").length),t("td",s).find("#quick-edit-legend").removeAttr("id"),t("td",s).find('p[id^="quick-edit-"]').removeAttr("id"),t(i.what+e).removeClass("is-expanded").hide().after(s).after('<tr class="hidden"></tr>');const n=t("#inline_"+e),r=t(".hide_css_selectors",n).text();return t(':input[name="hide_css_selectors"]',s).val(r),t(s).attr("id","edit-"+e).addClass("inline-editor").show(),t(':input[name="hide_css_selectors"]',s).trigger("focus"),!1},save(i){"object"==typeof i&&(i=this.getId(i)),t("table.widefat .spinner").addClass("is-active");const s={action:"vrts_test_quick_edit_save",test_id:i,hide_css_selectors:t("#edit-"+i+' [name="hide_css_selectors"]').val(),nonce:t("#_vrts_test_quick_edit_nonce").val()};return t.post(ajaxurl,s,(function(s){if(t("table.widefat .spinner").removeClass("is-active"),!(s=t.parseJSON(s)).success){const n=t("#edit-"+i+" .inline-edit-save .notice-error");return n.removeClass("hidden"),n.text(s.message),void e.a11y.speak(s.message)}t("#inline_"+i+" .hide_css_selectors").text(s.hide_css_selectors);const n=t(".widefat");(i=t(".inline-editor",n).attr("id"))&&(t(".spinner",n).removeClass("is-active"),t("#"+i).siblings("tr.hidden").addBack().remove(),i=i.substr(i.lastIndexOf("-")+1),t("#test-"+i).fadeIn(400).find(".editinline").attr("aria-expanded","false").trigger("focus")),e.a11y.speak(s.message);const r=s.snapshot_status,a=t("#test-"+i+" .base_screenshot_date");null!=r&&""!==r&&a.text(r)}),"html"),!1},revert(){const e=t(".widefat");let i=t(".inline-editor",e).attr("id");return i&&(t(".spinner",e).removeClass("is-active"),t("#"+i).siblings("tr.hidden").addBack().remove(),i=i.substr(i.lastIndexOf("-")+1),t(this.what+i).show().find(".editinline").attr("aria-expanded","false").trigger("focus")),!1},getId(e){const i=t(e).closest("tr").attr("id").split("-");return i[i.length-1]}},t((function(){t(".vrts-list-table-page").length&&inlineEditTest.init()}))}(jQuery,window.wp)},92:(t,e,i)=>{"use strict";i.r(e);var s=i(570),n=i.n(s);document.querySelector(".vrts_upgrade_page")&&n()({checkOrigin:!1,heightCalculationMethod:"taggedElement"},"#vrts_upgrade_iframe")},570:(t,e)=>{var i,s,n;!function(r){if("undefined"!=typeof window){var a,o,h=0,l=!1,p=!1,d="[iFrameSizer]",c=null,u=window.requestAnimationFrame,f=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},g=null,v=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){C("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),y={};window.jQuery!==r&&((o=window.jQuery).fn?o.fn.iFrameResize||(o.fn.iFrameResize=function(t){return this.filter("iframe").each((function(e,i){z(i,t)})).end()}):A("","Unable to bind to jQuery, it is not fully loaded.")),s=[],(n="function"==typeof(i=j)?i.apply(e,s):i)===r||(t.exports=n),window.iFrameResize=window.iFrameResize||j()}function b(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(t,e,i){t.addEventListener(e,i,!1)}function _(t,e,i){t.removeEventListener(e,i,!1)}function k(t){return m[t]?m[t].log:l}function x(t,e){S("log",t,e,k(t))}function A(t,e){S("info",t,e,k(t))}function C(t,e){S("warn",t,e,!0)}function S(t,e,i,s){!0===s&&"object"==typeof window.console&&console[t](function(t){return d+"["+function(t){var e="Host page: "+t;return window.top!==window.self&&(e=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),e}(t)+"]"}(e),i)}function E(t){function e(){i("Height"),i("Width"),$((function(){R(S),F(E),l("onResized",S)}),S,"init")}function i(t){var e=Number(m[E]["max"+t]),i=Number(m[E]["min"+t]),s=t.toLowerCase(),n=Number(S[s]);x(E,"Checking "+s+" is in range "+i+"-"+e),n<i&&(n=i,x(E,"Set "+s+" to min value")),n>e&&(n=e,x(E,"Set "+s+" to max value")),S[s]=""+n}function s(t){return k.slice(k.indexOf(":")+7+t)}function n(t,e){var i,s;i=function(){var i,s;O("Send Page Info","pageInfo:"+(i=document.body.getBoundingClientRect(),s=S.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:s.height,iframeWidth:s.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(s.top-i.top,10),offsetLeft:parseInt(s.left-i.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),t,e)},y[s=e]||(y[s]=setTimeout((function(){y[s]=null,i()}),32))}function r(t){var e=t.getBoundingClientRect();return D(E),{x:Math.floor(Number(e.left)+Number(c.x)),y:Math.floor(Number(e.top)+Number(c.y))}}function a(t){var e=t?r(S.iframe):{x:0,y:0},i={x:Number(S.width)+e.x,y:Number(S.height)+e.y};x(E,"Reposition requested from iFrame (offset x:"+e.x+" y:"+e.y+")"),window.top===window.self?(c=i,o(),x(E,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](i.x,i.y):C(E,"Unable to scroll to requested position, window.parentIFrame not found")}function o(){!1===l("onScroll",c)?I():F(E)}function h(t){var e={};if(0===Number(S.width)&&0===Number(S.height)){var i=s(9).split(":");e={x:i[1],y:i[0]}}else e={x:S.width,y:S.height};l(t,{iframe:S.iframe,screenX:Number(e.x),screenY:Number(e.y),type:S.type})}function l(t,e){return P(E,t,e)}var p,u,f,g,v,b,k=t.data,S={},E=null;"[iFrameResizerChild]Ready"===k?function(){for(var t in m)O("iFrame requested init",N(t),m[t].iframe,t)}():d===(""+k).slice(0,13)&&k.slice(13).split(":")[0]in m?(g=(f=k.slice(13).split(":"))[1]?parseInt(f[1],10):0,v=m[f[0]]&&m[f[0]].iframe,b=getComputedStyle(v),S={iframe:v,id:f[0],height:g+function(t){return"border-box"!==t.boxSizing?0:(t.paddingTop?parseInt(t.paddingTop,10):0)+(t.paddingBottom?parseInt(t.paddingBottom,10):0)}(b)+function(t){return"border-box"!==t.boxSizing?0:(t.borderTopWidth?parseInt(t.borderTopWidth,10):0)+(t.borderBottomWidth?parseInt(t.borderBottomWidth,10):0)}(b),width:f[2],type:f[3]},E=S.id,m[E]&&(m[E].loaded=!0),(u=S.type in{true:1,false:1,undefined:1})&&x(E,"Ignoring init message from meta parent page"),!u&&function(t){var e=!0;return m[t]||(e=!1,C(S.type+" No settings for "+t+". Message was: "+k)),e}(E)&&(x(E,"Received: "+k),p=!0,null===S.iframe&&(C(E,"IFrame ("+S.id+") not found"),p=!1),p&&function(){var e,i=t.origin,s=m[E]&&m[E].checkOrigin;if(s&&""+i!="null"&&!(s.constructor===Array?function(){var t=0,e=!1;for(x(E,"Checking connection is from allowed list of origins: "+s);t<s.length;t++)if(s[t]===i){e=!0;break}return e}():(e=m[E]&&m[E].remoteHost,x(E,"Checking connection is from: "+e),i===e)))throw new Error("Unexpected message received from: "+i+" for "+S.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(m[E]&&m[E].firstRun&&m[E]&&(m[E].firstRun=!1),S.type){case"close":M(S.iframe);break;case"message":u=s(6),x(E,"onMessage passed: {iframe: "+S.iframe.id+", message: "+u+"}"),l("onMessage",{iframe:S.iframe,message:JSON.parse(u)}),x(E,"--");break;case"mouseenter":h("onMouseEnter");break;case"mouseleave":h("onMouseLeave");break;case"autoResize":m[E].autoResize=JSON.parse(s(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":n(m[E]&&m[E].iframe,E),function(){function t(t,s){function r(){m[i]?n(m[i].iframe,i):e()}["scroll","resize"].forEach((function(e){x(i,t+e+" listener for sendPageInfo"),s(window,e,r)}))}function e(){t("Remove ",_)}var i=E;t("Add ",w),m[i]&&(m[i].stopPageInfo=e)}();break;case"pageInfoStop":m[E]&&m[E].stopPageInfo&&(m[E].stopPageInfo(),delete m[E].stopPageInfo);break;case"inPageLink":i=s(9).split("#")[1]||"",p=decodeURIComponent(i),(d=document.getElementById(p)||document.getElementsByName(p)[0])?(t=r(d),x(E,"Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),c={x:t.x,y:t.y},o(),x(E,"--")):window.top===window.self?x(E,"In page link #"+i+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(i):x(E,"In page link #"+i+" not found and window.parentIFrame not found");break;case"reset":L(S);break;case"init":e(),l("onInit",S.iframe);break;default:0===Number(S.width)&&0===Number(S.height)?C("Unsupported message received ("+S.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):e()}var t,i,p,d,u}())):A(E,"Ignored: "+k)}function P(t,e,i){var s=null,n=null;if(m[t]){if("function"!=typeof(s=m[t][e]))throw new TypeError(e+" on iFrame["+t+"] is not a function");n=s(i)}return n}function T(t){var e=t.id;delete m[e]}function M(t){var e=t.id;if(!1!==P(e,"onClose",e)){x(e,"Removing iFrame: "+e);try{t.parentNode&&t.parentNode.removeChild(t)}catch(t){C(t)}P(e,"onClosed",e),x(e,"--"),T(t),a&&(a.disconnect(),a=null)}else x(e,"Close iframe cancelled by onClose event")}function D(t){null===c&&x(t,"Get page position: "+(c={x:window.pageXOffset===r?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===r?document.documentElement.scrollTop:window.pageYOffset}).x+","+c.y)}function F(t){null!==c&&(window.scrollTo(c.x,c.y),x(t,"Set page position: "+c.x+","+c.y),I())}function I(){c=null}function L(t){x(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),D(t.id),$((function(){R(t),O("reset","reset",t.iframe,t.id)}),t,"reset")}function R(t){function e(e){p||"0"!==t[e]||(p=!0,x(s,"Hidden iFrame detected, creating visibility listener"),function(){function t(){Object.keys(m).forEach((function(t){!function(t){function e(e){return"0px"===(m[t]&&m[t].iframe.style[e])}m[t]&&null!==m[t].iframe.offsetParent&&(e("height")||e("width"))&&O("Visibility change","resize",m[t].iframe,t)}(t)}))}function e(e){x("window","Mutation observed: "+e[0].target+" "+e[0].type),B(t,16)}var i,s=b();s&&(i=document.querySelector("body"),new s(e).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function i(i){!function(e){t.id?(t.iframe.style[e]=t[e]+"px",x(t.id,"IFrame ("+s+") "+e+" set to "+t[e]+"px")):x("undefined","messageData id not set")}(i),e(i)}var s=t.iframe.id;m[s]&&(m[s].sizeHeight&&i("height"),m[s].sizeWidth&&i("width"))}function $(t,e,i){i!==e.type&&u&&!window.jasmine?(x(e.id,"Requesting animation frame"),u(t)):t()}function O(t,e,i,s,n){var r,a=!1;s=s||i.id,m[s]&&(i&&"contentWindow"in i&&null!==i.contentWindow?(r=m[s]&&m[s].targetOrigin,x(s,"["+t+"] Sending msg to iframe["+s+"] ("+e+") targetOrigin: "+r),i.contentWindow.postMessage(d+e,r)):C(s,"["+t+"] IFrame("+s+") not found"),n&&m[s]&&m[s].warningTimeout&&(m[s].msgTimeout=setTimeout((function(){!m[s]||m[s].loaded||a||(a=!0,C(s,"IFrame has not responded within "+m[s].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[s].warningTimeout)))}function N(t){return t+":"+m[t].bodyMarginV1+":"+m[t].sizeWidth+":"+m[t].log+":"+m[t].interval+":"+m[t].enablePublicMethods+":"+m[t].autoResize+":"+m[t].bodyMargin+":"+m[t].heightCalculationMethod+":"+m[t].bodyBackground+":"+m[t].bodyPadding+":"+m[t].tolerance+":"+m[t].inPageLinks+":"+m[t].resizeFrom+":"+m[t].widthCalculationMethod+":"+m[t].mouseEvents}function z(t,e){function i(t){var e=t.split("Callback");if(2===e.length){var i="on"+e[0].charAt(0).toUpperCase()+e[0].slice(1);this[i]=this[t],delete this[t],C(o,"Deprecated: '"+t+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}var s,n,o=function(i){if("string"!=typeof i)throw new TypeError("Invaild id for iFrame. Expected String");var s;return""===i&&(t.id=(s=e&&e.id||v.id+h++,null!==document.getElementById(s)&&(s+=h++),i=s),l=(e||{}).log,x(i,"Added missing iframe ID: "+i+" ("+t.src+")")),i}(t.id);o in m&&"iFrameResizer"in t?C(o,"Ignored iFrame, already setup."):(function(e){var s;e=e||{},m[o]=Object.create(null),m[o].iframe=t,m[o].firstRun=!0,m[o].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),function(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(i,e),function(t){for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&(m[o][e]=Object.prototype.hasOwnProperty.call(t,e)?t[e]:v[e])}(e),m[o]&&(m[o].targetOrigin=!0===m[o].checkOrigin?""===(s=m[o].remoteHost)||null!==s.match(/^(about:blank|javascript:|file:\/\/)/)?"*":s:"*")}(e),function(){switch(x(o,"IFrame scrolling "+(m[o]&&m[o].scrolling?"enabled":"disabled")+" for "+o),t.style.overflow=!1===(m[o]&&m[o].scrolling)?"hidden":"auto",m[o]&&m[o].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=m[o]?m[o].scrolling:"no"}}(),function(){function e(e){var i=m[o][e];1/0!==i&&0!==i&&(t.style[e]="number"==typeof i?i+"px":i,x(o,"Set "+e+" = "+t.style[e]))}function i(t){if(m[o]["min"+t]>m[o]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}i("Height"),i("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(m[o]&&m[o].bodyMargin)&&"0"!==(m[o]&&m[o].bodyMargin)||(m[o].bodyMarginV1=m[o].bodyMargin,m[o].bodyMargin=m[o].bodyMargin+"px"),s=N(o),(n=b())&&(a=function(e){if(!t.parentNode)return null;var i=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&M(t)}))}))}));return i.observe(t.parentNode,{childList:!0}),i}(n)),w(t,"load",(function(){var e,i;O("iFrame.onload",s,t,r,!0),e=m[o]&&m[o].firstRun,i=m[o]&&m[o].heightCalculationMethod in f,!e&&i&&L({iframe:t,height:0,width:0,type:"init"})})),O("init",s,t,r,!0),m[o]&&(m[o].iframe.iFrameResizer={close:M.bind(null,m[o].iframe),removeListeners:T.bind(null,m[o].iframe),resize:O.bind(null,"Window resize","resize",m[o].iframe),moveToAnchor:function(t){O("Move to anchor","moveToAnchor:"+t,m[o].iframe,o)},sendMessage:function(t){O("Send Message","message:"+(t=JSON.stringify(t)),m[o].iframe,o)}}))}function B(t,e){null===g&&(g=setTimeout((function(){g=null,t()}),e))}function V(){"hidden"!==document.visibilityState&&(x("document","Trigger event: Visibility change"),B((function(){q("Tab Visible","resize")}),16))}function q(t,e){Object.keys(m).forEach((function(i){(function(t){return m[t]&&"parent"===m[t].resizeFrom&&m[t].autoResize&&!m[t].firstRun})(i)&&O(t,e,m[i].iframe,i)}))}function j(){function t(t,i){i&&(function(){if(!i.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==i.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+i.tagName+">")}(),z(i,t),e.push(i))}var e;return function(){var t,e=["moz","webkit","o","ms"];for(t=0;t<e.length&&!u;t+=1)u=window[e[t]+"RequestAnimationFrame"];u?u=u.bind(window):x("setup","RequestAnimationFrame not supported")}(),w(window,"message",E),w(window,"resize",(function(){x("window","Trigger event: resize"),B((function(){q("Window resize","resize")}),16)})),w(document,"visibilitychange",V),w(document,"-webkit-visibilitychange",V),function(i,s){switch(e=[],function(t){t&&t.enablePublicMethods&&C("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof s){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(s||"iframe"),t.bind(r,i));break;case"object":t(i,s);break;default:throw new TypeError("Unexpected data type ("+typeof s+")")}return e}}}()},816:function(t,e,i){"undefined"!=typeof navigator&&(t.exports=function(){"use strict";var t="",s=!1,n=-999999,r=function(){return t};function a(t){return document.createElement(t)}function o(t,e){var i,s,n=t.length;for(i=0;i<n;i+=1)for(var r in s=t[i].prototype)Object.prototype.hasOwnProperty.call(s,r)&&(e.prototype[r]=s[r])}var h=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),l=function(){function t(t,e){var i,s=0,n=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)n.push(i);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function p(t){return Array.apply(null,{length:t})}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}var c=!0,u=null,f="",m=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),g=Math.pow,v=Math.sqrt,y=Math.floor,b=(Math.max,Math.min),w={};(function(){var t,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"],i=e.length;for(t=0;t<i;t+=1)w[e[t]]=Math[e[t]]})(),w.random=Math.random,w.abs=function(t){if("object"===d(t)&&t.length){var e,i=p(t.length),s=t.length;for(e=0;e<s;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var _=150,k=Math.PI/180,x=.5519;function A(t,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function C(t,e){this.type=t,this.direction=e<0?-1:1}function S(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function E(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function P(t,e){this.type=t,this.target=e}function T(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function M(t){this.type="configError",this.nativeError=t}var D,F=(D=0,function(){return f+"__lottie_element_"+(D+=1)});function I(t,e,i){var s,n,r,a,o,h,l,p;switch(h=i*(1-e),l=i*(1-(o=6*t-(a=Math.floor(6*t)))*e),p=i*(1-(1-o)*e),a%6){case 0:s=i,n=p,r=h;break;case 1:s=l,n=i,r=h;break;case 2:s=h,n=i,r=p;break;case 3:s=h,n=l,r=i;break;case 4:s=p,n=h,r=i;break;case 5:s=i,n=h,r=l}return[s,n,r]}function L(t,e,i){var s,n=Math.max(t,e,i),r=Math.min(t,e,i),a=n-r,o=0===n?0:a/n,h=n/255;switch(n){case r:s=0;break;case t:s=e-i+a*(e<i?6:0),s/=6*a;break;case e:s=i-t+2*a,s/=6*a;break;case i:s=t-e+4*a,s/=6*a}return[s,o,h]}function R(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),I(i[0],i[1],i[2])}function $(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),I(i[0],i[1],i[2])}function O(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),I(i[0],i[1],i[2])}!function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e}();var N=function(){return u},z=function(t){_=t},B=function(){return _};function V(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}var j=function(){var t,e,i=1,n=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){r.onmessage({data:t})}};function o(e){if(window.Worker&&window.Blob&&s){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(i);return new Worker(n)}return t=e,r}function h(){e||(e=o((function(t){if(a.dataManager||(a.dataManager=function(){function t(n,r){var a,o,h,l,p,d,c,u=n.length;for(o=0;o<u;o+=1)if("ks"in(a=n[o])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(l=f.length,h=0;h<l;h+=1)if(f[h].pt.k.i)s(f[h].pt.k);else for(d=f[h].pt.k.length,p=0;p<d;p+=1)f[h].pt.k[p].s&&s(f[h].pt.k[p].s[0]),f[h].pt.k[p].e&&s(f[h].pt.k[p].e[0])}0===a.ty?(a.layers=e(a.refId,r),t(a.layers,r)):4===a.ty?i(a.shapes):5===a.ty&&(0===(c=a).t.a.length&&c.t.p)}}function e(t,e){var i=function(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,n,r;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)s(t[e].ks.k);else for(r=t[e].ks.k.length,n=0;n<r;n+=1)t[e].ks.k[n].s&&s(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&s(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function s(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var r,a=function(){var t=[4,4,14];function e(t){var e,i,s,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=t[e],s=void 0,s=i.t.d,i.t.d={k:[{s,t:0}]})}return function(i){if(n(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),o=(r=[4,7,99],function(t){if(t.chars&&!n(r,t.v)){var e,s=t.chars.length;for(e=0;e<s;e+=1){var a=t.chars[e];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={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),h=function(){var t=[5,7,15];function e(t){var e,i,s,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=t[e],s=void 0,"number"==typeof(s=i.t.p).a&&(s.a={a:0,k:s.a}),"number"==typeof s.p&&(s.p={a:0,k:s.p}),"number"==typeof s.r&&(s.r={a:0,k:s.r}))}return function(i){if(n(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),l=function(){var t=[4,1,9];function e(t){var i,s,n,r=t.length;for(i=0;i<r;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(n=t[i].c.k.length,s=0;s<n;s+=1)t[i].c.k[s].s&&(t[i].c.k[s].s[0]/=255,t[i].c.k[s].s[1]/=255,t[i].c.k[s].s[2]/=255,t[i].c.k[s].s[3]/=255),t[i].c.k[s].e&&(t[i].c.k[s].e[0]/=255,t[i].c.k[s].e[1]/=255,t[i].c.k[s].e[2]/=255,t[i].c.k[s].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),p=function(){var t=[4,4,18];function e(t){var i,s,n;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(n=t[i].ks.k.length,s=0;s<n;s+=1)t[i].ks.k[s].s&&(t[i].ks.k[s].s[0].c=t[i].closed),t[i].ks.k[s].e&&(t[i].ks.k[s].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,s,n,r,a,o,h=t.length;for(s=0;s<h;s+=1){if((i=t[s]).hasMask){var l=i.masksProperties;for(r=l.length,n=0;n<r;n+=1)if(l[n].pt.k.i)l[n].pt.k.c=l[n].cl;else for(o=l[n].pt.k.length,a=0;a<o;a+=1)l[n].pt.k[a].s&&(l[n].pt.k[a].s[0].c=l[n].cl),l[n].pt.k[a].e&&(l[n].pt.k[a].e[0].c=l[n].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),d={completeData:function(i){i.__complete||(l(i),a(i),o(i),h(i),p(i),t(i.layers,i.assets),function(i,s){if(i){var n=0,r=i.length;for(n=0;n<r;n+=1)1===i[n].t&&(i[n].data.layers=e(i[n].data.refId,s),t(i[n].data.layers,s))}}(i.chars,i.assets),i.__complete=!0)}};return d.checkColors=l,d.checkChars=o,d.checkPathProperties=h,d.checkShapes=p,d.completeLayers=t,d}()),a.assetLoader||(a.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===q(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,s,n){var r,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)r=t(a),s(r);else try{r=t(a),s(r)}catch(t){n&&n(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),i+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,i=e.id,s=n[i];n[i]=null,"success"===e.status?s.onComplete(e.payload):s.onError&&s.onError()})}function l(t,e){var s="processId_"+(i+=1);return n[s]={onComplete:t,onError:e},s}return{loadAnimation:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"complete",animation:t,id:n})}}}(),H=function(){var t=function(){var t=a("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(t,e,i){var s="";if(t.e)s=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),s=e+n}else s=i,s+=t.u?t.u:"",s+=t.p;return s}function n(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function r(t){var e={assetData:t},i=s(t,this.assetsPath,this.path);return j.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=r.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var s=t.length;for(i=0;i<s;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=s(e,this.assetsPath,this.path),n=a("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),n.src=i;var r={img:n,assetData:e};return r},createImageData:function(e){var i=s(e,this.assetsPath,this.path),n=V("image");m?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var r={img:n,assetData:e};return r},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function W(){}W.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var Y=function(){function t(t){for(var e,i=t.split("\r\n"),s={},n=0,r=0;r<i.length;r+=1)2===(e=i[r].split(":")).length&&(s[e[0]]=e[1].trim(),n+=1);if(0===n)throw new Error;return s}return function(e){for(var i=[],s=0;s<e.length;s+=1){var n=e[s],r={time:n.tm,duration:n.dr};try{r.payload=JSON.parse(e[s].cm)}catch(i){try{r.payload=t(e[s].cm)}catch(t){r.payload={name:e[s].cm}}}i.push(r)}return i}}(),U=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),X={};function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}var G=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=F(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=c,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=U(),this.imagePreloader=new H,this.audioController=h(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new A("drawnFrame",0,0,0),this.expressionsPlugin=N()};o([W],G),G.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=X[e];this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),j.loadAnimation(t.path,this.configAnimation,this.onSetupError))},G.prototype.onSetupError=function(){this.trigger("data_failed")},G.prototype.setupAnimation=function(t){j.completeAnimation(t,this.configAnimation)},G.prototype.setData=function(t,e){e&&"object"!==K(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},s=t.attributes;i.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",i.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:function(){if(X.canvas)return"canvas";for(var t in X)if(X[t])return t;return""}()||"canvas";var n=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";"false"===n?i.loop=!1:"true"===n?i.loop=!0:""!==n&&(i.loop=parseInt(n,10));var r=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value;i.autoplay="false"!==r,i.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"","false"===(s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},G.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,s=this.animationData.layers,n=s.length,r=t.layers,a=r.length;for(i=0;i<a;i+=1)for(e=0;e<n;){if(s[e].id===r[i].id){s[e]=r[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,j.completeAnimation(this.animationData,this.onSegmentComplete)},G.prototype.onSegmentComplete=function(t){this.animationData=t;var e=N();e&&e.initExpressions(this),this.loadNextSegment()},G.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,j.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},G.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},G.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},G.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},G.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=Y(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},G.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},G.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=N();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},G.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,s="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,s)},G.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},G.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},G.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},G.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},G.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},G.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},G.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},G.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},G.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},G.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(s,e,i);this.play()}},G.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},G.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},G.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},G.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===K(t[0])){var i,s=t.length;for(i=0;i<s;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},G.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},G.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},G.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},G.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},G.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},G.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},G.prototype.setLoop=function(t){this.loop=t},G.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},G.prototype.getVolume=function(){return this.audioController.getVolume()},G.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},G.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},G.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},G.prototype.getPath=function(){return this.path},G.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},G.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},G.prototype.hide=function(){this.renderer.hide()},G.prototype.show=function(){this.renderer.show()},G.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},G.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},G.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new A(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new S(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new C(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new E(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new P(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new A(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new S(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new C(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new E(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new P(t,this))},G.prototype.triggerRenderFrameError=function(t){var e=new T(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},G.prototype.triggerConfigError=function(t){var e=new M(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var J=function(){var t={},e=[],i=0,s=0,n=0,r=!0,o=!1;function h(t){for(var i=0,n=t.target;i<s;)e[i].animation===n&&(e.splice(i,1),i-=1,s-=1,n.isPaused||d()),i+=1}function l(t,i){if(!t)return null;for(var n=0;n<s;){if(e[n].elem===t&&null!==e[n].elem)return e[n].animation;n+=1}var r=new G;return c(r,t),r.setData(t,i),r}function p(){n+=1,m()}function d(){n-=1}function c(t,i){t.addEventListener("destroy",h),t.addEventListener("_active",p),t.addEventListener("_idle",d),e.push({elem:i,animation:t}),s+=1}function u(t){var a,h=t-i;for(a=0;a<s;a+=1)e[a].animation.advanceTime(h);i=t,n&&!o?window.requestAnimationFrame(u):r=!0}function f(t){i=t,window.requestAnimationFrame(u)}function m(){!o&&n&&r&&(window.requestAnimationFrame(f),r=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new G;return c(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setSpeed(t,i)},t.setDirection=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var s,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),r=n.length;for(s=0;s<r;s+=1)i&&n[s].setAttribute("data-bm-type",i),l(n[s],t);if(e&&0===r){i||(i="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var h=a("div");h.style.width="100%",h.style.height="100%",h.setAttribute("data-bm-type",i),o.appendChild(h),l(h,t)}},t.resize=function(){var t;for(t=0;t<s;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,n){var r;for(r=0;r<s;r+=1)e[r].animation.goToAndStop(t,i,n)},t.destroy=function(t){var i;for(i=s-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,m()},t.setVolume=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,s=[];for(t=0;t<i;t+=1)s.push(e[t].animation);return s},t}(),Z=function(){var t={getBezierEasing:function(t,i,s,n,r){var a=r||("bez_"+t+"_"+i+"_"+s+"_"+n).replace(/\./g,"p");if(e[a])return e[a];var o=new p([t,i,s,n]);return e[a]=o,o}},e={};var i=11,s=1/(i-1),n="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function o(t){return 3*t}function h(t,e,i){return((r(e,i)*t+a(e,i))*t+o(e))*t}function l(t,e,i){return 3*r(e,i)*t*t+2*a(e,i)*t+o(e)}function p(t){this._p=t,this._mSampleValues=n?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return p.prototype={get:function(t){var e=this._p[0],i=this._p[1],s=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===i&&s===n?t:0===t?0:1===t?1:h(this._getTForX(t),i,n)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,t===e&&i===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<i;++n)this._mSampleValues[n]=h(n*s,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],r=this._mSampleValues,a=0,o=1,p=i-1;o!==p&&r[o]<=t;++o)a+=s;var d=a+(t-r[--o])/(r[o+1]-r[o])*s,c=l(d,e,n);return c>=.001?function(t,e,i,s){for(var n=0;n<4;++n){var r=l(e,i,s);if(0===r)return e;e-=(h(e,i,s)-t)/r}return e}(t,d,e,n):0===c?d:function(t,e,i,s,n){var r,a,o=0;do{(r=h(a=e+(i-e)/2,s,n)-t)>0?i=a:e=a}while(Math.abs(r)>1e-7&&++o<10);return a}(t,a,a+s,e,n)}},t}(),Q={double:function(t){return t.concat(p(t.length))}},tt=function(t,e,i){var s=0,n=t,r=p(n);return{newElement:function(){return s?r[s-=1]:e()},release:function(t){s===n&&(r=Q.double(r),n*=2),i&&i(t),r[s]=t,s+=1}}},et=tt(8,(function(){return{addedLength:0,percents:l("float32",B()),lengths:l("float32",B())}})),it=tt(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)et.release(t.lengths[e]);t.lengths.length=0}));var st=function(){var t=Math;function e(t,e,i,s,n,r){var a=t*s+e*n+i*r-n*s-r*t-i*e;return a>-.001&&a<.001}var i=function(t,e,i,s){var n,r,a,o,h,l,p=B(),d=0,c=[],u=[],f=et.newElement();for(a=i.length,n=0;n<p;n+=1){for(h=n/(p-1),l=0,r=0;r<a;r+=1)o=g(1-h,3)*t[r]+3*g(1-h,2)*h*i[r]+3*(1-h)*g(h,2)*s[r]+g(h,3)*e[r],c[r]=o,null!==u[r]&&(l+=g(c[r]-u[r],2)),u[r]=c[r];l&&(d+=l=v(l)),f.percents[n]=h,f.lengths[n]=d}return f.addedLength=d,f};function s(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var r,a=(r={},function(t,i,a,o){var h=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!r[h]){var l,d,c,u,f,m,y,b=B(),w=0,_=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(b=2);var k=new s(b);for(c=a.length,l=0;l<b;l+=1){for(y=p(c),f=l/(b-1),m=0,d=0;d<c;d+=1)u=g(1-f,3)*t[d]+3*g(1-f,2)*f*(t[d]+a[d])+3*(1-f)*g(f,2)*(i[d]+o[d])+g(f,3)*i[d],y[d]=u,null!==_&&(m+=g(y[d]-_[d],2));w+=m=v(m),k.points[l]=new n(m,y),_=y}k.segmentLength=w,r[h]=k}return r[h]});function o(t,e){var i=e.percents,s=e.lengths,n=i.length,r=y((n-1)*t),a=t*e.addedLength,o=0;if(r===n-1||0===r||a===s[r])return i[r];for(var h=s[r]>a?-1:1,l=!0;l;)if(s[r]<=a&&s[r+1]>a?(o=(a-s[r])/(s[r+1]-s[r]),l=!1):r+=h,r<0||r>=n-1){if(r===n-1)return i[r];l=!1}return i[r]+(i[r+1]-i[r])*o}var h=l("float32",8);return{getSegmentsLength:function(t){var e,s=it.newElement(),n=t.c,r=t.v,a=t.o,o=t.i,h=t._length,l=s.lengths,p=0;for(e=0;e<h-1;e+=1)l[e]=i(r[e],r[e+1],a[e],o[e+1]),p+=l[e].addedLength;return n&&h&&(l[e]=i(r[e],r[0],a[e],o[0]),p+=l[e].addedLength),s.totalLength=p,s},getNewSegment:function(e,i,s,n,r,a,l){r<0?r=0:r>1&&(r=1);var p,d=o(r,l),c=o(a=a>1?1:a,l),u=e.length,f=1-d,m=1-c,g=f*f*f,v=d*f*f*3,y=d*d*f*3,b=d*d*d,w=f*f*m,_=d*f*m+f*d*m+f*f*c,k=d*d*m+f*d*c+d*f*c,x=d*d*c,A=f*m*m,C=d*m*m+f*c*m+f*m*c,S=d*c*m+f*c*c+d*m*c,E=d*c*c,P=m*m*m,T=c*m*m+m*c*m+m*m*c,M=c*c*m+m*c*c+c*m*c,D=c*c*c;for(p=0;p<u;p+=1)h[4*p]=t.round(1e3*(g*e[p]+v*s[p]+y*n[p]+b*i[p]))/1e3,h[4*p+1]=t.round(1e3*(w*e[p]+_*s[p]+k*n[p]+x*i[p]))/1e3,h[4*p+2]=t.round(1e3*(A*e[p]+C*s[p]+S*n[p]+E*i[p]))/1e3,h[4*p+3]=t.round(1e3*(P*e[p]+T*s[p]+M*n[p]+D*i[p]))/1e3;return h},getPointInSegment:function(e,i,s,n,r,a){var h=o(r,a),l=1-h;return[t.round(1e3*(l*l*l*e[0]+(h*l*l+l*h*l+l*l*h)*s[0]+(h*h*l+l*h*h+h*l*h)*n[0]+h*h*h*i[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(h*l*l+l*h*l+l*l*h)*s[1]+(h*h*l+l*h*h+h*l*h)*n[1]+h*h*h*i[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(i,s,n,r,a,o,h,l,p){if(0===n&&0===o&&0===p)return e(i,s,r,a,h,l);var d,c=t.sqrt(t.pow(r-i,2)+t.pow(a-s,2)+t.pow(o-n,2)),u=t.sqrt(t.pow(h-i,2)+t.pow(l-s,2)+t.pow(p-n,2)),f=t.sqrt(t.pow(h-r,2)+t.pow(l-a,2)+t.pow(p-o,2));return(d=c>u?c>f?c-u-f:f-u-c:f>u?f-u-c:u-c-f)>-1e-4&&d<1e-4}}}(),nt=n,rt=Math.abs;function at(t,e){var i,s=this.offsetTime;"multidimensional"===this.propType&&(i=l("float32",this.pv.length));for(var n,r,a,o,h,p,d,c,u,f=e.lastIndex,m=f,g=this.keyframes.length-1,v=!0;v;){if(n=this.keyframes[m],r=this.keyframes[m+1],m===g-1&&t>=r.t-s){n.h&&(n=r),f=0;break}if(r.t-s>t){f=m;break}m<g-1?m+=1:(f=0,v=!1)}a=this.keyframesMetadata[m]||{};var y,b,w,_,x,A,C,S,E,P,T,M,D,F,I,L,R,$,O=r.t-s,N=n.t-s;if(n.to){a.bezierData||(a.bezierData=st.buildBezierData(n.s,r.s||n.e,n.to,n.ti));var z=a.bezierData;if(t>=O||t<N){var B=t>=O?z.points.length-1:0;for(h=z.points[B].point.length,o=0;o<h;o+=1)i[o]=z.points[B].point[o]}else{a.__fnct?u=a.__fnct:(u=Z.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,a.__fnct=u),p=u((t-N)/(O-N));var V,q=z.segmentLength*p,j=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastAddedLength:0;for(c=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastPoint:0,v=!0,d=z.points.length;v;){if(j+=z.points[c].partialLength,0===q||0===p||c===z.points.length-1){for(h=z.points[c].point.length,o=0;o<h;o+=1)i[o]=z.points[c].point[o];break}if(q>=j&&q<j+z.points[c+1].partialLength){for(V=(q-j)/z.points[c+1].partialLength,h=z.points[c].point.length,o=0;o<h;o+=1)i[o]=z.points[c].point[o]+(z.points[c+1].point[o]-z.points[c].point[o])*V;break}c<d-1?c+=1:v=!1}e._lastPoint=c,e._lastAddedLength=j-z.points[c].partialLength,e._lastKeyframeIndex=m}}else{var H,W,Y,U,X;if(g=n.s.length,y=r.s||n.e,this.sh&&1!==n.h)t>=O?(i[0]=y[0],i[1]=y[1],i[2]=y[2]):t<=N?(i[0]=n.s[0],i[1]=n.s[1],i[2]=n.s[2]):function(t,e){var i=e[0],s=e[1],n=e[2],r=e[3],a=Math.atan2(2*s*r-2*i*n,1-2*s*s-2*n*n),o=Math.asin(2*i*s+2*n*r),h=Math.atan2(2*i*r-2*s*n,1-2*i*i-2*n*n);t[0]=a/k,t[1]=o/k,t[2]=h/k}(i,(b=ot(n.s),w=ot(y),_=(t-N)/(O-N),P=[],T=b[0],M=b[1],D=b[2],F=b[3],I=w[0],L=w[1],R=w[2],$=w[3],(A=T*I+M*L+D*R+F*$)<0&&(A=-A,I=-I,L=-L,R=-R,$=-$),1-A>1e-6?(x=Math.acos(A),C=Math.sin(x),S=Math.sin((1-_)*x)/C,E=Math.sin(_*x)/C):(S=1-_,E=_),P[0]=S*T+E*I,P[1]=S*M+E*L,P[2]=S*D+E*R,P[3]=S*F+E*$,P));else for(m=0;m<g;m+=1)1!==n.h&&(t>=O?p=1:t<N?p=0:(n.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[m]?u=a.__fnct[m]:(H=void 0===n.o.x[m]?n.o.x[0]:n.o.x[m],W=void 0===n.o.y[m]?n.o.y[0]:n.o.y[m],Y=void 0===n.i.x[m]?n.i.x[0]:n.i.x[m],U=void 0===n.i.y[m]?n.i.y[0]:n.i.y[m],u=Z.getBezierEasing(H,W,Y,U).get,a.__fnct[m]=u)):a.__fnct?u=a.__fnct:(H=n.o.x,W=n.o.y,Y=n.i.x,U=n.i.y,u=Z.getBezierEasing(H,W,Y,U).get,n.keyframeMetadata=u),p=u((t-N)/(O-N)))),y=r.s||n.e,X=1===n.h?n.s[m]:n.s[m]+(y[m]-n.s[m])*p,"multidimensional"===this.propType?i[m]=X:i=X}return e.lastIndex=f,i}function ot(t){var e=t[0]*k,i=t[1]*k,s=t[2]*k,n=Math.cos(e/2),r=Math.cos(i/2),a=Math.cos(s/2),o=Math.sin(e/2),h=Math.sin(i/2),l=Math.sin(s/2);return[o*h*a+n*r*l,o*r*a+n*h*l,n*h*a-o*r*l,n*r*a-o*h*l]}function ht(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==nt&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv}function lt(t){var e;if("unidimensional"===this.propType)e=t*this.mult,rt(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,rt(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function pt(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function dt(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ct(t,e,i,s){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=pt,this.setVValue=lt,this.addEffect=dt}function ut(t,e,i,s){var n;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r=e.k.length;for(this.v=l("float32",r),this.pv=l("float32",r),this.vel=l("float32",r),n=0;n<r;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=pt,this.setVValue=lt,this.addEffect=dt}function ft(t,e,i,s){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:nt,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.v=nt,this.pv=nt,this._isFirstFrame=!0,this.getValue=pt,this.setVValue=lt,this.interpolateValue=at,this.effectsSequence=[ht.bind(this)],this.addEffect=dt}function mt(t,e,i,s){var n;this.propType="multidimensional";var r,a,o,h,p=e.k.length;for(n=0;n<p-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n+1]&&e.k[n+1].s&&(r=e.k[n].s,a=e.k[n+1].s,o=e.k[n].to,h=e.k[n].ti,(2===r.length&&(r[0]!==a[0]||r[1]!==a[1])&&st.pointOnLine2D(r[0],r[1],a[0],a[1],r[0]+o[0],r[1]+o[1])&&st.pointOnLine2D(r[0],r[1],a[0],a[1],a[0]+h[0],a[1]+h[1])||3===r.length&&(r[0]!==a[0]||r[1]!==a[1]||r[2]!==a[2])&&st.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],r[0]+o[0],r[1]+o[1],r[2]+o[2])&&st.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],a[0]+h[0],a[1]+h[1],a[2]+h[2]))&&(e.k[n].to=null,e.k[n].ti=null),r[0]===a[0]&&r[1]===a[1]&&0===o[0]&&0===o[1]&&0===h[0]&&0===h[1]&&(2===r.length||r[2]===a[2]&&0===o[2]&&0===h[2])&&(e.k[n].to=null,e.k[n].ti=null));this.effectsSequence=[ht.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.getValue=pt,this.setVValue=lt,this.interpolateValue=at,this.frameId=-1;var d=e.k[0].s.length;for(this.v=l("float32",d),this.pv=l("float32",d),n=0;n<d;n+=1)this.v[n]=nt,this.pv[n]=nt;this._caching={lastFrame:nt,lastIndex:0,value:l("float32",d)},this.addEffect=dt}var gt={getProp:function(t,e,i,s,n){var r;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])r=new ut(t,e,s,n);else switch(i){case 0:r=new ft(t,e,s,n);break;case 1:r=new mt(t,e,s,n)}else r=new ct(t,e,s,n);return r.effectsSequence.length&&n.addDynamicProperty(r),r}};function vt(){}vt.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var yt=tt(8,(function(){return l("float32",2)}));function bt(){this.c=!1,this._length=0,this._maxLength=8,this.v=p(this._maxLength),this.o=p(this._maxLength),this.i=p(this._maxLength)}bt.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=yt.newElement(),this.o[i]=yt.newElement(),this.i[i]=yt.newElement(),i+=1},bt.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},bt.prototype.doubleArrayLength=function(){this.v=this.v.concat(p(this._maxLength)),this.i=this.i.concat(p(this._maxLength)),this.o=this.o.concat(p(this._maxLength)),this._maxLength*=2},bt.prototype.setXYAt=function(t,e,i,s,n){var r;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}(!r[s]||r[s]&&!n)&&(r[s]=yt.newElement()),r[s][0]=t,r[s][1]=e},bt.prototype.setTripleAt=function(t,e,i,s,n,r,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,s,"o",a,o),this.setXYAt(n,r,"i",a,o)},bt.prototype.reverse=function(){var t=new bt;t.setPathData(this.c,this._length);var e=this.v,i=this.o,s=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],s[0][0],s[0][1],i[0][0],i[0][1],0,!1),n=1);var r,a=this._length-1,o=this._length;for(r=n;r<o;r+=1)t.setTripleAt(e[a][0],e[a][1],s[a][0],s[a][1],i[a][0],i[a][1],r,!1),a-=1;return t},bt.prototype.length=function(){return this._length};var wt,_t=((wt=tt(4,(function(){return new bt}),(function(t){var e,i=t._length;for(e=0;e<i;e+=1)yt.release(t.v[e]),yt.release(t.i[e]),yt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}))).clone=function(t){var e,i=wt.newElement(),s=void 0===t._length?t.v.length:t._length;for(i.setLength(s),i.c=t.c,e=0;e<s;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},wt);function kt(){this._length=0,this._maxLength=4,this.shapes=p(this._maxLength)}kt.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(p(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},kt.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)_t.release(this.shapes[t]);this._length=0};var xt=function(){var t={newShapeCollection:function(){return e?s[e-=1]:new kt},release:function(t){var n,r=t._length;for(n=0;n<r;n+=1)_t.release(t.shapes[n]);t._length=0,e===i&&(s=Q.double(s),i*=2),s[e]=t,e+=1}},e=0,i=4,s=p(i);return t}(),At=function(){var t=-999999;function e(t,e,i){var s,n,r,a,o,h,l,p,d,c=i.lastIndex,u=this.keyframes;if(t<u[0].t-this.offsetTime)s=u[0].s[0],r=!0,c=0;else if(t>=u[u.length-1].t-this.offsetTime)s=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],r=!0;else{for(var f,m,g,v=c,y=u.length-1,b=!0;b&&(f=u[v],!((m=u[v+1]).t-this.offsetTime>t));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},c=v,!(r=1===f.h)){if(t>=m.t-this.offsetTime)p=1;else if(t<f.t-this.offsetTime)p=0;else{var w;g.__fnct?w=g.__fnct:(w=Z.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=w),p=w((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}n=m.s?m.s[0]:f.e[0]}s=f.s[0]}for(h=e._length,l=s.i[0].length,i.lastIndex=c,a=0;a<h;a+=1)for(o=0;o<l;o+=1)d=r?s.i[a][o]:s.i[a][o]+(n.i[a][o]-s.i[a][o])*p,e.i[a][o]=d,d=r?s.o[a][o]:s.o[a][o]+(n.o[a][o]-s.o[a][o])*p,e.o[a][o]=d,d=r?s.v[a][o]:s.v[a][o]+(n.v[a][o]-s.v[a][o])*p,e.v[a][o]=d}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==t&&(n<i&&e<i||n>s&&e>s)||(this._caching.lastIndex=n<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function s(){this.paths=this.localShapeCollection}function n(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,s=t._length;for(i=0;i<s;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=_t.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function r(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===i?e.pt.k:e.ks.k;this.v=_t.clone(n),this.pv=_t.clone(this.v),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,n,r){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===r?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=_t.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=_t.clone(this.v),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=r,a.prototype.setVValue=n,a.prototype.addEffect=h,l.prototype.getValue=r,l.prototype.interpolateShape=e,l.prototype.setVValue=n,l.prototype.addEffect=h;var p=function(){var t=x;function e(t,e){this.v=_t.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=gt.getProp(t,e.p,1,0,this),this.s=gt.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],s=this.s.v[0]/2,n=this.s.v[1]/2,r=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=i-n,a.v[1][0]=r?e+s:e-s,a.v[1][1]=i,a.v[2][0]=e,a.v[2][1]=i+n,a.v[3][0]=r?e-s:e+s,a.v[3][1]=i,a.i[0][0]=r?e-s*t:e+s*t,a.i[0][1]=i-n,a.i[1][0]=r?e+s:e-s,a.i[1][1]=i-n*t,a.i[2][0]=r?e+s*t:e-s*t,a.i[2][1]=i+n,a.i[3][0]=r?e-s:e+s,a.i[3][1]=i+n*t,a.o[0][0]=r?e+s*t:e-s*t,a.o[0][1]=i-n,a.o[1][0]=r?e+s:e-s,a.o[1][1]=i+n*t,a.o[2][0]=r?e-s*t:e+s*t,a.o[2][1]=i+n,a.o[3][0]=r?e-s:e+s,a.o[3][1]=i-n*t}},o([vt],e),e}(),d=function(){function t(t,e){this.v=_t.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=gt.getProp(t,e.ir,0,0,this),this.is=gt.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=gt.getProp(t,e.pt,0,0,this),this.p=gt.getProp(t,e.p,1,0,this),this.r=gt.getProp(t,e.r,0,k,this),this.or=gt.getProp(t,e.or,0,0,this),this.os=gt.getProp(t,e.os,0,.01,this),this.localShapeCollection=xt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,s,n=2*Math.floor(this.pt.v),r=2*Math.PI/n,a=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,d=2*Math.PI*o/(2*n),c=2*Math.PI*h/(2*n),u=-Math.PI/2;u+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<n;t+=1){i=a?l:p,s=a?d:c;var m=(e=a?o:h)*Math.cos(u),g=e*Math.sin(u),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*s*i*f,g-y*s*i*f,m+v*s*i*f,g+y*s*i*f,t,!0),a=!a,u+=r*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,n=this.os.v,r=2*Math.PI*s/(4*e),a=.5*-Math.PI,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(a),l=s*Math.sin(a),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),d=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*r*n*o,l-d*r*n*o,h+p*r*n*o,l+d*r*n*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},o([vt],t),t}(),c=function(){function t(t,e){this.v=_t.newElement(),this.v.c=!0,this.localShapeCollection=xt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=gt.getProp(t,e.p,1,0,this),this.s=gt.getProp(t,e.s,1,0,this),this.r=gt.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,n=b(i,s,this.r.v),r=n*(1-x);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+n,t+i,e-s+r,0,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-r,t+i,e+s-n,1,!0),0!==n?(this.v.setTripleAt(t+i-n,e+s,t+i-n,e+s,t+i-r,e+s,2,!0),this.v.setTripleAt(t-i+n,e+s,t-i+r,e+s,t-i+n,e+s,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-n,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+r,t-i,e-s+n,5,!0),this.v.setTripleAt(t-i+n,e-s,t-i+n,e-s,t-i+r,e-s,6,!0),this.v.setTripleAt(t+i-n,e-s,t+i-r,e-s,t+i-n,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+r,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+r,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+r,t+i,e-s+n,0,!0),0!==n?(this.v.setTripleAt(t+i-n,e-s,t+i-n,e-s,t+i-r,e-s,1,!0),this.v.setTripleAt(t-i+n,e-s,t-i+r,e-s,t-i+n,e-s,2,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+n,t-i,e-s+r,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-r,t-i,e+s-n,4,!0),this.v.setTripleAt(t-i+n,e+s,t-i+n,e+s,t-i+r,e+s,5,!0),this.v.setTripleAt(t+i-n,e+s,t+i-r,e+s,t+i-n,e+s,6,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-n,t+i,e+s-r,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+r,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-r,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-r,e+s,t+i,e+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},o([vt],t),t}();var u={getShapeProp:function(t,e,i){var s;return 3===i||4===i?s=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new a(t,e,i):5===i?s=new c(t,e):6===i?s=new p(t,e):7===i&&(s=new d(t,e)),s.k&&t.addDynamicProperty(s),s},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return u}(),Ct=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function r(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,-n,0,0,n,s,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(1,0,0,0,0,s,-n,0,0,n,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,0,n,0,0,1,0,0,-n,0,s,0,0,0,0,1)}function h(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,-n,0,0,n,s,0,0,0,0,1,0,0,0,0,1)}function p(t,e){return this._t(1,e,t,1,0,0)}function d(t,e){return this.shear(i(t),i(e))}function c(s,n){var r=t(n),a=e(n);return this._t(r,a,0,0,-a,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(s),1,0,0,0,0,1,0,0,0,0,1)._t(r,-a,0,0,a,r,0,0,0,0,1,0,0,0,0,1)}function u(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function f(t,e,i,s,n,r,a,o,h,l,p,d,c,u,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=n,this.props[5]=r,this.props[6]=a,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=d,this.props[12]=c,this.props[13]=u,this.props[14]=f,this.props[15]=m,this}function m(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function g(t,e,i,s,n,r,a,o,h,l,p,d,c,u,f,m){var g=this.props;if(1===t&&0===e&&0===i&&0===s&&0===n&&1===r&&0===a&&0===o&&0===h&&0===l&&1===p&&0===d)return g[12]=g[12]*t+g[15]*c,g[13]=g[13]*r+g[15]*u,g[14]=g[14]*p+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],w=g[3],_=g[4],k=g[5],x=g[6],A=g[7],C=g[8],S=g[9],E=g[10],P=g[11],T=g[12],M=g[13],D=g[14],F=g[15];return g[0]=v*t+y*n+b*h+w*c,g[1]=v*e+y*r+b*l+w*u,g[2]=v*i+y*a+b*p+w*f,g[3]=v*s+y*o+b*d+w*m,g[4]=_*t+k*n+x*h+A*c,g[5]=_*e+k*r+x*l+A*u,g[6]=_*i+k*a+x*p+A*f,g[7]=_*s+k*o+x*d+A*m,g[8]=C*t+S*n+E*h+P*c,g[9]=C*e+S*r+E*l+P*u,g[10]=C*i+S*a+E*p+P*f,g[11]=C*s+S*o+E*d+P*m,g[12]=T*t+M*n+D*h+F*c,g[13]=T*e+M*r+D*l+F*u,g[14]=T*i+M*a+D*p+F*f,g[15]=T*s+M*o+D*d+F*m,this._identityCalculated=!1,this}function v(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function b(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function w(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function k(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function x(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function A(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function C(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function S(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,s=-this.props[4]/t,n=this.props[0]/t,r=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Ct;return o.props[0]=e,o.props[1]=i,o.props[4]=s,o.props[5]=n,o.props[12]=r,o.props[13]=a,o}function E(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function P(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=E(t[e]);return s}function T(t,e,i){var s=l("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=e[0],s[3]=e[1],s[4]=i[0],s[5]=i[1];else{var n=this.props[0],r=this.props[1],a=this.props[4],o=this.props[5],h=this.props[12],p=this.props[13];s[0]=t[0]*n+t[1]*a+h,s[1]=t[0]*r+t[1]*o+p,s[2]=e[0]*n+e[1]*a+h,s[3]=e[0]*r+e[1]*o+p,s[4]=i[0]*n+i[1]*a+h,s[5]=i[0]*r+i[1]*o+p}return s}function M(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function D(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function F(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=s(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function I(t){return t<1e-6&&t>0||t>-1e-6&&t<0?s(1e4*t)/1e4:t}function L(){var t=this.props;return"matrix("+I(t[0])+","+I(t[1])+","+I(t[4])+","+I(t[5])+","+I(t[12])+","+I(t[13])+")"}return function(){this.reset=n,this.rotate=r,this.rotateX=a,this.rotateY=o,this.rotateZ=h,this.skew=d,this.skewFromAxis=c,this.shear=p,this.scale=u,this.setTransform=f,this.translate=m,this.transform=g,this.multiply=v,this.applyToPoint=k,this.applyToX=x,this.applyToY=A,this.applyToZ=C,this.applyToPointArray=M,this.applyToTriplePoints=T,this.applyToPointStringified=D,this.toCSS=F,this.to2dCSS=L,this.clone=w,this.cloneFromProps=_,this.equals=b,this.inversePoints=P,this.inversePoint=E,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=l("float32",16),this.reset()}}();function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}var Et={},Pt="__[STANDALONE]__";function Tt(){J.searchAnimations()}Et.play=J.play,Et.pause=J.pause,Et.setLocationHref=function(e){t=e},Et.togglePause=J.togglePause,Et.setSpeed=J.setSpeed,Et.setDirection=J.setDirection,Et.stop=J.stop,Et.searchAnimations=Tt,Et.registerAnimation=J.registerAnimation,Et.loadAnimation=function(t){return J.loadAnimation(t)},Et.setSubframeRendering=function(t){!function(t){c=!!t}(t)},Et.resize=J.resize,Et.goToAndStop=J.goToAndStop,Et.destroy=J.destroy,Et.setQuality=function(t){if("string"==typeof t)switch(t){case"high":z(200);break;default:case"medium":z(50);break;case"low":z(10)}else!isNaN(t)&&t>1&&z(t);B()},Et.inBrowser=function(){return"undefined"!=typeof navigator},Et.installPlugin=function(t,e){"expressions"===t&&(u=e)},Et.freeze=J.freeze,Et.unfreeze=J.unfreeze,Et.setVolume=J.setVolume,Et.mute=J.mute,Et.unmute=J.unmute,Et.getRegisteredAnimations=J.getRegisteredAnimations,Et.useWebWorker=function(t){s=!!t},Et.setIDPrefix=function(t){f=t},Et.__getFactory=function(t){switch(t){case"propertyFactory":return gt;case"shapePropertyFactory":return At;case"matrix":return Ct;default:return null}},Et.version="5.12.2";var Mt="";if(Pt){var Dt=document.getElementsByTagName("script"),Ft=Dt[Dt.length-1]||{src:""};Mt=Ft.src?Ft.src.replace(/^[^\?]+\??/,""):"",function(t){for(var e=Mt.split("&"),i=0;i<e.length;i+=1){var s=e[i].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}return null}("renderer")}var It=setInterval((function(){"complete"===document.readyState&&(clearInterval(It),Tt())}),100);try{"object"!==St(e)&&i.amdO}catch(t){}var Lt=function(){var t={},e={};return t.registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,s){return new e[t](i,s)},t}();function Rt(){}function $t(){}function Ot(){}Rt.prototype.initModifierProperties=function(){},Rt.prototype.addShapeToModifier=function(){},Rt.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:xt.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},Rt.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=n,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Rt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},o([vt],Rt),o([Rt],$t),$t.prototype.initModifierProperties=function(t,e){this.s=gt.getProp(t,e.s,0,.01,this),this.e=gt.getProp(t,e.e,0,.01,this),this.o=gt.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},$t.prototype.addShapeToModifier=function(t){t.pathsData=[]},$t.prototype.calculateShapeEdges=function(t,e,i,s,n){var r=[];e<=1?r.push({s:t,e}):t>=1?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));var a,o,h=[],l=r.length;for(a=0;a<l;a+=1){var p,d;(o=r[a]).e*n<s||o.s*n>s+i||(p=o.s*n<=s?0:(o.s*n-s)/i,d=o.e*n>=s+i?1:(o.e*n-s)/i,h.push([p,d]))}return h.length||h.push([0,0]),h},$t.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)it.release(t[e]);return t.length=0,t},$t.prototype.processShapes=function(t){var e,i,s,n;if(this._mdf||t){var r=this.o.v%360/360;if(r<0&&(r+=1),(e=this.s.v>1?1+r:this.s.v<0?0+r:this.s.v+r)>(i=this.e.v>1?1+r:this.e.v<0?0+r:this.e.v+r)){var a=e;e=i,i=a}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,h,l,p,d,c=this.shapes.length,u=0;if(i===e)for(n=0;n<c;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(n=0;n<c;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var f,m,g=[];for(n=0;n<c;n+=1)if((f=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(h=(s=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(l=this.releasePathsData(f.pathsData),o=0;o<h;o+=1)p=st.getSegmentsLength(s.shapes[o]),l.push(p),d+=p.totalLength;f.totalShapeLength=d,f.pathsData=l}u+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=e,b=i,w=0;for(n=c-1;n>=0;n-=1)if((f=this.shapes[n]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&c>1?(v=this.calculateShapeEdges(e,i,f.totalShapeLength,w,u),w+=f.totalShapeLength):v=[[y,b]],h=v.length,o=0;o<h;o+=1){y=v[o][0],b=v[o][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var _=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var k=_.pop();this.addPaths(_,m),_=this.addShapes(f,g[1],k)}else this.addPaths(_,m),_=this.addShapes(f,g[1]);this.addPaths(_,m)}}f.shape.paths=m}}},$t.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e.addShape(t[i])},$t.prototype.addSegment=function(t,e,i,s,n,r,a){n.setXYAt(e[0],e[1],"o",r),n.setXYAt(i[0],i[1],"i",r+1),a&&n.setXYAt(t[0],t[1],"v",r),n.setXYAt(s[0],s[1],"v",r+1)},$t.prototype.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),s&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},$t.prototype.addShapes=function(t,e,i){var s,n,r,a,o,h,l,p,d=t.pathsData,c=t.shape.paths.shapes,u=t.shape.paths._length,f=0,m=[],g=!0;for(i?(o=i._length,p=i._length):(i=_t.newElement(),o=0,p=0),m.push(i),s=0;s<u;s+=1){for(h=d[s].lengths,i.c=c[s].c,r=c[s].c?h.length:h.length+1,n=1;n<r;n+=1)if(f+(a=h[n-1]).addedLength<e.s)f+=a.addedLength,i.c=!1;else{if(f>e.e){i.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(c[s].v[n-1],c[s].o[n-1],c[s].i[n],c[s].v[n],i,o,g),g=!1):(l=st.getNewSegment(c[s].v[n-1],c[s].v[n],c[s].o[n-1],c[s].i[n],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,h[n-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1),f+=a.addedLength,o+=1}if(c[s].c&&h.length){if(a=h[n-1],f<=e.e){var v=h[n-1].addedLength;e.s<=f&&e.e>=f+v?(this.addSegment(c[s].v[n-1],c[s].o[n-1],c[s].i[0],c[s].v[0],i,o,g),g=!1):(l=st.getNewSegment(c[s].v[n-1],c[s].v[0],c[s].o[n-1],c[s].i[0],(e.s-f)/v,(e.e-f)/v,h[n-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1)}else i.c=!1;f+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],"i",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;s<u-1&&(i=_t.newElement(),g=!0,m.push(i),o=0)}return m},o([Rt],Ot),Ot.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=gt.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ot.prototype.processPath=function(t,e){var i=e/100,s=[0,0],n=t._length,r=0;for(r=0;r<n;r+=1)s[0]+=t.v[r][0],s[1]+=t.v[r][1];s[0]/=n,s[1]/=n;var a,o,h,l,p,d,c=_t.newElement();for(c.c=t.c,r=0;r<n;r+=1)a=t.v[r][0]+(s[0]-t.v[r][0])*i,o=t.v[r][1]+(s[1]-t.v[r][1])*i,h=t.o[r][0]+(s[0]-t.o[r][0])*-i,l=t.o[r][1]+(s[1]-t.o[r][1])*-i,p=t.i[r][0]+(s[0]-t.i[r][0])*-i,d=t.i[r][1]+(s[1]-t.i[r][1])*-i,c.setTripleAt(a,o,h,l,p,d,r);return c},Ot.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amount.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Nt=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Ct,this.pre=new Ct,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=gt.getProp(t,e.p.x,0,0,this),this.py=gt.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=gt.getProp(t,e.p.z,0,0,this))):this.p=gt.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=gt.getProp(t,e.rx,0,k,this),this.ry=gt.getProp(t,e.ry,0,k,this),this.rz=gt.getProp(t,e.rz,0,k,this),e.or.k[0].ti){var s,n=e.or.k.length;for(s=0;s<n;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null}this.or=gt.getProp(t,e.or,1,k,this),this.or.sh=!0}else this.r=gt.getProp(t,e.r||{k:0},0,k,this);e.sk&&(this.sk=gt.getProp(t,e.sk,0,k,this),this.sa=gt.getProp(t,e.sa,0,k,this)),this.a=gt.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=gt.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=gt.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var s,n;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],n=[];var r=this.px,a=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(s[0]=r.getValueAtTime((r.keyframes[0].t+.01)/i,0),s[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),n[0]=r.getValueAtTime(r.keyframes[0].t/i,0),n[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(s[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/i,0),s[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),n[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(s=[r.pv,a.pv],n[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/i,r.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else s=n=t;this.v.rotate(-Math.atan2(s[1]-n[1],s[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.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,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},o([vt],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=vt.prototype.addDynamicProperty,{getTransformProperty:function(t,i,s){return new e(t,i,s)}}}();function zt(){}function Bt(){}function Vt(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function qt(t){return Math.abs(t)<=1e-5}function jt(t,e,i){return t*(1-i)+e*i}function Ht(t,e,i){return[jt(t[0],e[0],i),jt(t[1],e[1],i)]}function Wt(t,e,i,s){return[3*e-t-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function Yt(t){return new Ut(t,t,t,t,!1)}function Ut(t,e,i,s,n){n&&ie(t,e)&&(e=Ht(t,s,1/3)),n&&ie(i,s)&&(i=Ht(t,s,2/3));var r=Wt(t[0],e[0],i[0],s[0]),a=Wt(t[1],e[1],i[1],s[1]);this.a=[r[0],a[0]],this.b=[r[1],a[1]],this.c=[r[2],a[2]],this.d=[r[3],a[3]],this.points=[t,e,i,s]}function Xt(t,e){var i=t.points[0][e],s=t.points[t.points.length-1][e];if(i>s){var n=s;s=i,i=n}for(var r=function(t,e,i){if(0===t)return[];var s=e*e-4*t*i;if(s<0)return[];var n=-e/(2*t);if(0===s)return[n];var r=Math.sqrt(s)/(2*t);return[n-r,n+r]}(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<r.length;a+=1)if(r[a]>0&&r[a]<1){var o=t.point(r[a])[e];o<i?i=o:o>s&&(s=o)}return{min:i,max:s}}function Kt(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function Gt(t){var e=t.bez.split(.5);return[Kt(e[0],t.t1,t.t),Kt(e[1],t.t,t.t2)]}function Jt(t,e,i,s,n,r){if(h=t,l=e,2*Math.abs(h.cx-l.cx)<h.width+l.width&&2*Math.abs(h.cy-l.cy)<h.height+l.height)if(i>=r||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s)n.push([t.t,e.t]);else{var a=Gt(t),o=Gt(e);Jt(a[0],o[0],i+1,s,n,r),Jt(a[0],o[1],i+1,s,n,r),Jt(a[1],o[0],i+1,s,n,r),Jt(a[1],o[1],i+1,s,n,r)}var h,l}function Zt(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Qt(t,e,i,s){var n=[t[0],t[1],1],r=[e[0],e[1],1],a=[i[0],i[1],1],o=[s[0],s[1],1],h=Zt(Zt(n,r),Zt(a,o));return qt(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function te(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function ee(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function ie(t,e){return Vt(t[0],e[0])&&Vt(t[1],e[1])}function se(){}function ne(t,e,i,s,n,r,a){var o=i-Math.PI/2,h=i+Math.PI/2,l=e[0]+Math.cos(i)*s*n,p=e[1]-Math.sin(i)*s*n;t.setTripleAt(l,p,l+Math.cos(o)*r,p-Math.sin(o)*r,l+Math.cos(h)*a,p-Math.sin(h)*a,t.length())}function re(t,e){var i,s,n,r,a=0===e?t.length()-1:e-1,o=(e+1)%t.length(),h=(i=t.v[a],s=t.v[o],n=[s[0]-i[0],s[1]-i[1]],r=.5*-Math.PI,[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]);return Math.atan2(0,1)-Math.atan2(h[1],h[0])}function ae(t,e,i,s,n,r,a){var o=re(e,i),h=e.v[i%e._length],l=e.v[0===i?e._length-1:i-1],p=e.v[(i+1)%e._length],d=2===r?Math.sqrt(Math.pow(h[0]-l[0],2)+Math.pow(h[1]-l[1],2)):0,c=2===r?Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)):0;ne(t,e.v[i%e._length],o,a,s,c/(2*(n+1)),d/(2*(n+1)))}function oe(t,e,i,s,n,r){for(var a=0;a<s;a+=1){var o=(a+1)/(s+1),h=2===n?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);ne(t,e.point(o),l,r,i,h/(2*(s+1)),h/(2*(s+1))),r=-r}return r}function he(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[te(t,s,i),te(e,s,i)]}function le(t,e){var i,s,n,r,a,o,h;i=(h=he(t.points[0],t.points[1],e))[0],s=h[1],n=(h=he(t.points[1],t.points[2],e))[0],r=h[1],a=(h=he(t.points[2],t.points[3],e))[0],o=h[1];var l=Qt(i,s,n,r);null===l&&(l=s);var p=Qt(a,o,n,r);return null===p&&(p=a),new Ut(i,l,p,o)}function pe(t,e,i,s,n){var r=e.points[3],a=i.points[0];if(3===s)return r;if(ie(r,a))return r;if(2===s){var o=-e.tangentAngle(1),h=-i.tangentAngle(0)+Math.PI,l=Qt(r,te(r,o+Math.PI/2,100),a,te(a,o+Math.PI/2,100)),p=l?ee(l,r):ee(r,a)/2,d=te(r,o,2*p*x);return t.setXYAt(d[0],d[1],"o",t.length()-1),d=te(a,h,2*p*x),t.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],t.length()),a}var c=Qt(ie(r,e.points[2])?e.points[0]:e.points[2],r,a,ie(a,i.points[1])?i.points[3]:i.points[1]);return c&&ee(c,r)<n?(t.setTripleAt(c[0],c[1],c[0],c[1],c[0],c[1],t.length()),c):r}function de(t,e){var i=t.intersections(e);return i.length&&Vt(i[0][0],1)&&i.shift(),i.length?i[0]:null}function ce(t,e){var i=t.slice(),s=e.slice(),n=de(t[t.length-1],e[0]);return n&&(i[t.length-1]=t[t.length-1].split(n[0])[0],s[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=de(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[i,s]}function ue(t,e){var i,s,n,r,a=t.inflectionPoints();if(0===a.length)return[le(t,e)];if(1===a.length||Vt(a[1],1))return i=(n=t.split(a[0]))[0],s=n[1],[le(i,e),le(s,e)];i=(n=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return r=(n=n[1].split(o))[0],s=n[1],[le(i,e),le(r,e),le(s,e)]}function fe(){}function me(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",s="normal",n=e.length,r=0;r<n;r+=1)switch(e[r].toLowerCase()){case"italic":s="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:s,weight:t.fWeight||i}}o([Rt],zt),zt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=gt.getProp(t,e.c,0,null,this),this.o=gt.getProp(t,e.o,0,null,this),this.tr=Nt.getTransformProperty(t,e.tr,this),this.so=gt.getProp(t,e.tr.so,0,.01,this),this.eo=gt.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ct,this.rMatrix=new Ct,this.sMatrix=new Ct,this.tMatrix=new Ct,this.matrix=new Ct},zt.prototype.applyTransforms=function(t,e,i,s,n,r){var a=r?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-n),h=s.s.v[1]+(1-s.s.v[1])*(1-n);t.translate(s.p.v[0]*a*n,s.p.v[1]*a*n,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*a*n),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(r?1/o:o,r?1/h:h),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},zt.prototype.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},zt.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},zt.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},zt.prototype.changeGroupRender=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},zt.prototype.processShapes=function(t){var e,i,s,n,r,a=!1;if(this._mdf||t){var o,h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(r=0,s=0;s<=this._groups.length-1;s+=1){if(o=r<h,this._groups[s]._render=o,this.changeGroupRender(this._groups[s].it,o),!o){var p=this.elemsData[s].it,d=p[p.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}r+=1}this._currentCopies=h;var c=this.o.v,u=c%1,f=c>0?Math.floor(c):Math.ceil(c),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,w=0;if(c>0){for(;w<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),w+=u)}else if(c<0){for(;w>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),w-=u)}for(s=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,r=this._currentCopies;r;){if(b=(i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(s/(this._currentCopies-1)),0!==w){for((0!==s&&1===n||s!==this._currentCopies-1&&-1===n)&&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(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)i[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)i[y]=this.matrix.props[y];w+=1,r-=1,s+=n}}else for(r=this._currentCopies,s=0,n=1;r;)i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,r-=1,s+=n;return a},zt.prototype.addShape=function(){},o([Rt],Bt),Bt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=gt.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Bt.prototype.processPath=function(t,e){var i,s=_t.newElement();s.c=t.c;var n,r,a,o,h,l,p,d,c,u,f,m,g=t._length,v=0;for(i=0;i<g;i+=1)n=t.v[i],a=t.o[i],r=t.i[i],n[0]===a[0]&&n[1]===a[1]&&n[0]===r[0]&&n[1]===r[1]?0!==i&&i!==g-1||t.c?(o=0===i?t.v[g-1]:t.v[i-1],l=(h=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=f=n[0]+(o[0]-n[0])*l,d=m=n[1]-(n[1]-o[1])*l,c=p-(p-n[0])*x,u=d-(d-n[1])*x,s.setTripleAt(p,d,c,u,f,m,v),v+=1,o=i===g-1?t.v[0]:t.v[i+1],l=(h=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=c=n[0]+(o[0]-n[0])*l,d=u=n[1]+(o[1]-n[1])*l,f=p-(p-n[0])*x,m=d-(d-n[1])*x,s.setTripleAt(p,d,c,u,f,m,v),v+=1):(s.setTripleAt(n[0],n[1],a[0],a[1],r[0],r[1],v),v+=1):(s.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],v),v+=1);return s},Bt.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.rd.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Ut.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Ut.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Ut.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},Ut.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},Ut.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(qt(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var s=Math.sqrt(i);return qt(s)?s>0&&s<1?[e]:[]:[e-s,e+s].filter((function(t){return t>0&&t<1}))},Ut.prototype.split=function(t){if(t<=0)return[Yt(this.points[0]),this];if(t>=1)return[this,Yt(this.points[this.points.length-1])];var e=Ht(this.points[0],this.points[1],t),i=Ht(this.points[1],this.points[2],t),s=Ht(this.points[2],this.points[3],t),n=Ht(e,i,t),r=Ht(i,s,t),a=Ht(n,r,t);return[new Ut(this.points[0],e,n,a,!0),new Ut(a,r,s,this.points[3],!0)]},Ut.prototype.bounds=function(){return{x:Xt(this,0),y:Xt(this,1)}},Ut.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},Ut.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return Jt(Kt(this,0,1),Kt(t,0,1),0,e,s,i),s},Ut.shapeSegment=function(t,e){var i=(e+1)%t.length();return new Ut(t.v[e],t.o[e],t.i[i],t.v[i],!0)},Ut.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new Ut(t.v[i],t.i[i],t.o[e],t.v[e],!0)},o([Rt],se),se.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=gt.getProp(t,e.s,0,null,this),this.frequency=gt.getProp(t,e.r,0,null,this),this.pointsType=gt.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},se.prototype.processPath=function(t,e,i,s){var n=t._length,r=_t.newElement();if(r.c=t.c,t.c||(n-=1),0===n)return r;var a=-1,o=Ut.shapeSegment(t,0);ae(r,t,0,e,i,s,a);for(var h=0;h<n;h+=1)a=oe(r,o,e,i,s,-a),o=h!==n-1||t.c?Ut.shapeSegment(t,(h+1)%n):null,ae(r,t,h+1,e,i,s,a);return r},se.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h,l,p));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},o([Rt],fe),fe.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=gt.getProp(t,e.a,0,null,this),this.miterLimit=gt.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},fe.prototype.processPath=function(t,e,i,s){var n=_t.newElement();n.c=t.c;var r,a,o,h=t.length();t.c||(h-=1);var l=[];for(r=0;r<h;r+=1)o=Ut.shapeSegment(t,r),l.push(ue(o,e));if(!t.c)for(r=h-1;r>=0;r-=1)o=Ut.shapeSegmentInverted(t,r),l.push(ue(o,e));l=function(t){for(var e,i=1;i<t.length;i+=1)e=ce(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=ce(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}(l);var p=null,d=null;for(r=0;r<l.length;r+=1){var c=l[r];for(d&&(p=pe(n,d,c[0],i,s)),d=c[c.length-1],a=0;a<c.length;a+=1)o=c[a],p&&ie(o.points[0],p)?n.setXYAt(o.points[1][0],o.points[1][1],"o",n.length()-1):n.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],n.length()),n.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],n.length()),p=o.points[3]}return l.length&&pe(n,d,l[0][0],i,s),n},fe.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amount.v,l=this.miterLimit.v,p=this.lineJoin;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h,p,l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var ge=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,s=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(t,e){var i=a("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var s=a("span");s.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(s),document.body.appendChild(i);var n=s.offsetWidth;return s.style.fontFamily=function(t){var e,i=t.split(","),s=i.length,n=[];for(e=0;e<s;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&n.push(i[e]);return n.join(",")}(t)+", "+e,{node:s,w:n,parent:i}}function r(t,e){var i,s=document.body&&e?"svg":"canvas",n=me(t);if("svg"===s){var r=V("text");r.style.fontSize="100px",r.setAttribute("font-family",t.fFamily),r.setAttribute("font-style",n.style),r.setAttribute("font-weight",n.weight),r.textContent="1",t.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",t.fClass)):r.style.fontFamily=t.fFamily,e.appendChild(r),i=r}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=n.style+" "+n.weight+" 100px "+t.fFamily,i=a}return{measureText:function(t){return"svg"===s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function o(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var s=t.charCodeAt(1);s>=56320&&s<=57343&&(e=1024*(i-55296)+s-56320+65536)}return e}function h(t){var e=o(t);return e>=127462&&e<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return l.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==s.indexOf(i)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return h(t.substr(0,2))&&h(t.substr(2,2))},l.isRegionalCode=h,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var s=o(t.substr(e,2));if(s!==i)return!1;var n=0;for(e+=2;n<5;){if((s=o(t.substr(e,2)))<917601||s>917626)return!1;n+=1,e+=2}return 917631===o(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=i,l.prototype={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,s,n=t.length,r=this.chars.length;for(e=0;e<n;e+=1){for(i=0,s=!1;i<r;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(s=!0),i+=1;s||(this.chars.push(t[e]),r+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=r(t),t.cache={}})),void(this.fonts=t.list);var i,s=t.list,o=s.length,h=o;for(i=0;i<o;i+=1){var l,p,d=!0;if(s[i].loaded=!1,s[i].monoCase=n(s[i].fFamily,"monospace"),s[i].sansCase=n(s[i].fFamily,"sans-serif"),s[i].fPath){if("p"===s[i].fOrigin||3===s[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[i].fFamily+'"], style[f-origin="3"][f-family="'+s[i].fFamily+'"]')).length>0&&(d=!1),d){var c=a("style");c.setAttribute("f-forigin",s[i].fOrigin),c.setAttribute("f-origin",s[i].origin),c.setAttribute("f-family",s[i].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+s[i].fFamily+"; font-style: normal; src: url('"+s[i].fPath+"');}",e.appendChild(c)}}else if("g"===s[i].fOrigin||1===s[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),p=0;p<l.length;p+=1)-1!==l[p].href.indexOf(s[i].fPath)&&(d=!1);if(d){var u=a("link");u.setAttribute("f-forigin",s[i].fOrigin),u.setAttribute("f-origin",s[i].origin),u.type="text/css",u.rel="stylesheet",u.href=s[i].fPath,document.body.appendChild(u)}}else if("t"===s[i].fOrigin||2===s[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),p=0;p<l.length;p+=1)s[i].fPath===l[p].src&&(d=!1);if(d){var f=a("link");f.setAttribute("f-forigin",s[i].fOrigin),f.setAttribute("f-origin",s[i].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",s[i].fPath),e.appendChild(f)}}}else s[i].loaded=!0,h-=1;s[i].helper=r(s[i],e),s[i].cache={},this.fonts.push(s[i])}0===h?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,s){for(var n=0,r=this.chars.length;n<r;){if(this.chars[n].ch===e&&this.chars[n].style===i&&this.chars[n].fFamily===s)return this.chars[n];n+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,s)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var s=this.getFontByName(e),n=t;if(!s.cache[n]){var r=s.helper;if(" "===t){var a=r.measureText("|"+t+"|"),o=r.measureText("||");s.cache[n]=(a-o)/100}else s.cache[n]=r.measureText(t)/100}return s.cache[n]*i},checkLoadedFonts:function(){var t,e,i,s=this.fonts.length,n=s;for(t=0;t<s;t+=1)this.fonts[t].loaded?n-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(n-=1,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)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},l}();function ve(t){this.animationData=t}function ye(){}ve.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},ye.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var be,we=(be={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return be[t]||""});function _e(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function ke(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function xe(t,e,i){this.p=gt.getProp(e,t.v,1,0,i)}function Ae(t,e,i){this.p=gt.getProp(e,t.v,1,0,i)}function Ce(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Se(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Ee(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Pe(){this.p={}}function Te(t,e){var i,s=t.ef||[];this.effectElements=[];var n,r=s.length;for(i=0;i<r;i+=1)n=new Me(s[i],e),this.effectElements.push(n)}function Me(t,e){this.init(t,e)}function De(){}function Fe(){}function Ie(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function Le(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?gt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=gt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function Re(){}o([vt],Me),Me.prototype.getValue=Me.prototype.iterateDynamicProperties,Me.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var s,n=this.data.ef.length,r=this.data.ef;for(i=0;i<n;i+=1){switch(s=null,r[i].ty){case 0:s=new _e(r[i],e,this);break;case 1:s=new ke(r[i],e,this);break;case 2:s=new xe(r[i],e,this);break;case 3:s=new Ae(r[i],e,this);break;case 4:case 7:s=new Ee(r[i],e,this);break;case 10:s=new Ce(r[i],e,this);break;case 11:s=new Se(r[i],e,this);break;case 5:s=new Te(r[i],e,this);break;default:s=new Pe(r[i],e,this)}s&&this.effectElements.push(s)}},De.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=null;if(t){var e=t("layer"),i=t("effects"),s=t("shape"),n=t("text"),r=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=r(this):4===this.data.ty?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=we(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=F(),this.data.sr||(this.data.sr=1),this.effectsManager=new Te(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Fe.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},Ie.prototype.prepareFrame=function(){},o([ye,De,Fe],Ie),Ie.prototype.getBaseElement=function(){return null},Ie.prototype.renderFrame=function(){},Ie.prototype.destroy=function(){},Ie.prototype.initExpressions=function(){var t=null;if(t){var e=t("footage");this.layerInterface=e(this)}},Ie.prototype.getFootageData=function(){return this.footageData},Le.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},o([ye,De,Fe],Le),Le.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Le.prototype.show=function(){},Le.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Le.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Le.prototype.resume=function(){this._canPlay=!0},Le.prototype.setRate=function(t){this.audio.rate(t)},Le.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},Le.prototype.getBaseElement=function(){return null},Le.prototype.destroy=function(){},Le.prototype.sourceRectAtTime=function(){},Le.prototype.initExpressions=function(){},Re.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},Re.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},Re.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Re.prototype.createAudio=function(t){return new Le(t,this.globalData,this)},Re.prototype.createFootage=function(t){return new Ie(t,this.globalData,this)},Re.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},Re.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,s=t.length,n=this.layers.length;for(e=0;e<s;e+=1)for(i=0;i<n;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},Re.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},Re.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Re.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,n=this.layers,r=0,a=n.length;r<a;)n[r].ind==e&&(s[r]&&!0!==s[r]?(i.push(s[r]),s[r].setAsParent(),void 0!==n[r].parent?this.buildElementParenting(t,n[r].parent,i):t.setHierarchy(i)):(this.buildItem(r),this.addPendingElement(t))),r+=1},Re.prototype.addPendingElement=function(t){this.pendingElements.push(t)},Re.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var s=this.createComp(t[e]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},Re.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},Re.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.nm===i){e=this.elements[s];break}}return 0===t.length?e:e.getElementByPath(t)},Re.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new ge,this.globalData.slotManager=function(t){return new ve(t)}(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var $e="transformEFfect";function Oe(){}function Ne(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s,n,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=p(o),this.solidPath="";var h,l,d,c,u,f,m=this.masksProperties,g=0,v=[],y=F(),b="clipPath",w="clip-path";for(s=0;s<o;s+=1)if(("a"!==m[s].mode&&"n"!==m[s].mode||m[s].inv||100!==m[s].o.k||m[s].o.x)&&(b="mask",w="mask"),"s"!==m[s].mode&&"i"!==m[s].mode||0!==g?d=null:((d=V("rect")).setAttribute("fill","#ffffff"),d.setAttribute("width",this.element.comp.data.w||0),d.setAttribute("height",this.element.comp.data.h||0),v.push(d)),n=V("path"),"n"===m[s].mode)this.viewData[s]={op:gt.getProp(this.element,m[s].o,0,.01,this.element),prop:At.getShapeProp(this.element,m[s],3),elem:n,lastPath:""},a.appendChild(n);else{var _;if(g+=1,n.setAttribute("fill","s"===m[s].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==m[s].x.k?(b="mask",w="mask",f=gt.getProp(this.element,m[s].x,0,null,this.element),_=F(),(c=V("filter")).setAttribute("id",_),(u=V("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),c.appendChild(u),a.appendChild(c),n.setAttribute("stroke","s"===m[s].mode?"#000000":"#ffffff")):(u=null,f=null),this.storedData[s]={elem:n,x:f,expan:u,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},"i"===m[s].mode){l=v.length;var k=V("g");for(h=0;h<l;h+=1)k.appendChild(v[h]);var x=V("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",y+"_"+g),x.appendChild(n),a.appendChild(x),k.setAttribute("mask","url("+r()+"#"+y+"_"+g+")"),v.length=0,v.push(k)}else v.push(n);m[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:n,lastPath:"",op:gt.getProp(this.element,m[s].o,0,.01,this.element),prop:At.getShapeProp(this.element,m[s],3),invRect:d},this.viewData[s].prop.k||this.drawPath(m[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=V(b),o=v.length,s=0;s<o;s+=1)this.maskElement.appendChild(v[s]);g>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(w,"url("+r()+"#"+y+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Oe.prototype={initTransform:function(){var t=new Ct;this.finalTransform={mProp:this.data.ks?Nt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<s;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)n*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects($e);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Ct;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,s=!0,n=this.comp;s;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):s=!1;var r,a=e.length;for(i=0;i<a;i+=1)r=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-r[0],t[1]-r[1],0];return t},mHelper:new Ct},Ne.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Ne.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,s=this.masksProperties.length;for(e=0;e<s;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+r()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},Ne.prototype.getMaskelement=function(){return this.maskElement},Ne.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},Ne.prototype.drawPath=function(t,e,i){var s,n,r=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,s=1;s<n;s+=1)r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[s][0]+","+e.i[s][1]+" "+e.v[s][0]+","+e.v[s][1];if(e.c&&n>1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",a)),i.lastPath=r}},Ne.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var ze,Be=function(){var t={};return t.createFilter=function(t,e){var i=V("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},t.createAlphaToLuminanceFilter=function(){var t=V("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},t}(),Ve=(ze={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(ze.maskType=!1),/firefox/i.test(navigator.userAgent)&&(ze.svgLumaHidden=!1),ze),qe={},je="filter_result_";function He(t){var e,i,s="SourceGraphic",n=t.data.ef?t.data.ef.length:0,a=F(),o=Be.createFilter(a,!0),h=0;for(this.filters=[],e=0;e<n;e+=1){i=null;var l=t.data.ef[e].ty;qe[l]&&(i=new(0,qe[l].effect)(o,t.effectsManager.effectElements[e],t,je+h,s),s=je+h,qe[l].countsAsEffect&&(h+=1)),i&&this.filters.push(i)}h&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+r()+"#"+a+")")),this.filters.length&&t.addRenderableComponent(this)}function We(){}function Ye(){}function Ue(){}function Xe(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Ke(t,e){this.elem=t,this.pos=e}function Ge(){}He.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},He.prototype.getEffects=function(t){var e,i=this.filters.length,s=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s},We.prototype={initRendererElement:function(){this.layerElement=V("g")},createContainerElements:function(){this.matteElement=V("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=V("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=V("clipPath"),s=V("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=F();if(i.setAttribute("id",n),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var a=V("g");a.setAttribute("clip-path","url("+r()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+r()+"#"+n+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Ne(this.data,this,this.globalData),this.renderableEffectsManager=new He(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,s,n,a=this.layerId+"_"+t;if(1===t||3===t){var o=V("mask");o.setAttribute("id",a),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(s=V("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(s),this.globalData.defs.appendChild(o),Ve.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=F(),i=Be.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(Be.createAlphaToLuminanceFilter()),(n=V("g")).appendChild(s),o.appendChild(n),n.setAttribute("filter","url("+r()+"#"+e+")"))}else if(2===t){var h=V("mask");h.setAttribute("id",a),h.setAttribute("mask-type","alpha");var l=V("g");h.appendChild(l),e=F(),i=Be.createFilter(e);var p=V("feComponentTransfer");p.setAttribute("in","SourceGraphic"),i.appendChild(p);var d=V("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),p.appendChild(d),this.globalData.defs.appendChild(i);var c=V("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),l.setAttribute("filter","url("+r()+"#"+e+")"),l.appendChild(c),(s=V("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(s),Ve.maskType||(h.setAttribute("mask-type","luminance"),i.appendChild(Be.createAlphaToLuminanceFilter()),n=V("g"),l.appendChild(c),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(h)}this.matteMasks[t]=a}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+r()+"#"+t+")")}},Ye.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},o([ye,function(t){function e(){}return e.prototype=t,e}({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],Ue),o([De,Oe,We,Ye,Fe,Ue],Xe),Xe.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=V("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},Xe.prototype.sourceRectAtTime=function(){return this.sourceRect},Ge.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[s-=1].elem===t)return void(i[s].pos=e);i.push(new Ke(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var Je={1:"butt",2:"round",3:"square"},Ze={1:"miter",2:"round",3:"bevel"};function Qe(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var s=0,n=t.length;s<n;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function ti(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=V("path"),this.msElem=null}function ei(t,e,i,s){var n;this.elem=t,this.frameId=-1,this.dataProps=p(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=l("float32",e.length?e.length-1:0),this.dashoffset=l("float32",1),this.initDynamicPropertyContainer(s);var r,a=e.length||0;for(n=0;n<a;n+=1)r=gt.getProp(t,e[n].v,0,0,this),this.k=r.k||this.k,this.dataProps[n]={n:e[n].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}function ii(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=gt.getProp(t,e.o,0,.01,this),this.w=gt.getProp(t,e.w,0,null,this),this.d=new ei(t,e.d||{},"svg",this),this.c=gt.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function si(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=gt.getProp(t,e.o,0,.01,this),this.c=gt.getProp(t,e.c,1,255,this),this.style=i}function ni(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function ri(t,e,i){this.data=e,this.c=l("uint8c",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=l("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=gt.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function ai(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function oi(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=gt.getProp(t,e.w,0,null,this),this.d=new ei(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function hi(){this.it=[],this.prevViewData=[],this.gr=V("g")}function li(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}Qe.prototype.setAsAnimated=function(){this._isAnimated=!0},ti.prototype.reset=function(){this.d="",this._mdf=!1},ei.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},o([vt],ei),o([vt],ii),o([vt],si),o([vt],ni),ri.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},ri.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},ri.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,s,n=4*this.data.p;for(e=0;e<n;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},o([vt],ri),ai.prototype.initGradientData=function(t,e,i){this.o=gt.getProp(t,e.o,0,.01,this),this.s=gt.getProp(t,e.s,1,null,this),this.e=gt.getProp(t,e.e,1,null,this),this.h=gt.getProp(t,e.h||{k:0},0,.01,this),this.a=gt.getProp(t,e.a||{k:0},0,k,this),this.g=new ri(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},ai.prototype.setGradientData=function(t,e){var i=F(),s=V(1===e.t?"linearGradient":"radialGradient");s.setAttribute("id",i),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var n,a,o,h=[];for(o=4*e.g.p,a=0;a<o;a+=4)n=V("stop"),s.appendChild(n),h.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+r()+"#"+i+")"),this.gf=s,this.cst=h},ai.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,n,a=V("mask"),o=V("path");a.appendChild(o);var h=F(),l=F();a.setAttribute("id",l);var p=V(1===t.t?"linearGradient":"radialGradient");p.setAttribute("id",h),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var d=this.stops;for(s=4*t.g.p;s<n;s+=2)(i=V("stop")).setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(i),d.push(i);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+r()+"#"+h+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",Je[t.lc||2]),o.setAttribute("stroke-linejoin",Ze[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=p,this.ms=a,this.ost=d,this.maskId=l,e.msElem=o}},o([vt],ai),o([ai,vt],oi);var pi=function(t,e,i,s){if(0===e)return"";var n,r=t.o,a=t.i,o=t.v,h=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(n=1;n<e;n+=1)h+=" C"+s.applyToPointStringified(r[n-1][0],r[n-1][1])+" "+s.applyToPointStringified(a[n][0],a[n][1])+" "+s.applyToPointStringified(o[n][0],o[n][1]);return i&&e&&(h+=" C"+s.applyToPointStringified(r[n-1][0],r[n-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1]),h+="z"),h},di=function(){var t=new Ct,e=new Ct;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function s(){}function n(i,s,n){var r,a,o,h,l,p,d,c,u,f,m=s.styles.length,g=s.lvl;for(p=0;p<m;p+=1){if(h=s.sh._mdf||n,s.styles[p].lvl<g){for(c=e.reset(),u=g-s.styles[p].lvl,f=s.transformers.length-1;!h&&u>0;)h=s.transformers[f].mProps._mdf||h,u-=1,f-=1;if(h)for(u=g-s.styles[p].lvl,f=s.transformers.length-1;u>0;)c.multiply(s.transformers[f].mProps.v),u-=1,f-=1}else c=t;if(a=(d=s.sh.paths)._length,h){for(o="",r=0;r<a;r+=1)(l=d.shapes[r])&&l._length&&(o+=pi(l,l._length,l.c,c));s.caches[p]=o}else o=s.caches[p];s.styles[p].d+=!0===i.hd?"":o,s.styles[p]._mdf=h||s.styles[p]._mdf}}function r(t,e,i){var s=e.style;(e.c._mdf||i)&&s.pElem.setAttribute("fill","rgb("+y(e.c.v[0])+","+y(e.c.v[1])+","+y(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){o(t,e,i),h(0,e,i)}function o(t,e,i){var s,n,r,a,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,d=e.e.v;if(e.o._mdf||i){var c="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(c,e.o.v)}if(e.s._mdf||i){var u=1===t.t?"x1":"cx",f="x1"===u?"y1":"cy";h.setAttribute(u,p[0]),h.setAttribute(f,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(u,p[0]),e.of.setAttribute(f,p[1]))}if(e.g._cmdf||i){s=e.cst;var m=e.g.c;for(r=s.length,n=0;n<r;n+=1)(a=s[n]).setAttribute("offset",m[4*n]+"%"),a.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(l&&(e.g._omdf||i)){var g=e.g.o;for(r=(s=e.g._collapsable?e.cst:e.ost).length,n=0;n<r;n+=1)a=s[n],e.g._collapsable||a.setAttribute("offset",g[2*n]+"%"),a.setAttribute("stop-opacity",g[2*n+1])}if(1===t.t)(e.e._mdf||i)&&(h.setAttribute("x2",d[0]),h.setAttribute("y2",d[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",d[0]),e.of.setAttribute("y2",d[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)),h.setAttribute("r",o),l&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)));var v=Math.atan2(d[1]-p[1],d[0]-p[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=o*y,w=Math.cos(v+e.a.v)*b+p[0],_=Math.sin(v+e.a.v)*b+p[1];h.setAttribute("fx",w),h.setAttribute("fy",_),l&&!e.g._collapsable&&(e.of.setAttribute("fx",w),e.of.setAttribute("fy",_))}}function h(t,e,i){var s=e.style,n=e.d;n&&(n._mdf||i)&&n.dashStr&&(s.pElem.setAttribute("stroke-dasharray",n.dashStr),s.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+y(e.c.v[0])+","+y(e.c.v[1])+","+y(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute("stroke-width",e.w.v),s.msElem&&s.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return r;case"gf":return o;case"gs":return a;case"st":return h;case"sh":case"el":case"rc":case"sr":return n;case"tr":return i;case"no":return s;default:return null}}}}();function ci(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function ui(t,e,i,s,n,r){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=n,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function fi(t,e){this._frameId=n,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}o([De,Oe,We,Ge,Ye,Fe,Ue],ci),ci.prototype.initSecondaryElement=function(){},ci.prototype.identityMatrix=new Ct,ci.prototype.buildExpressionInterface=function(){},ci.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ci.prototype.filterUniqueShapes=function(){var t,e,i,s,n=this.shapes.length,r=this.stylesList.length,a=[],o=!1;for(i=0;i<r;i+=1){for(s=this.stylesList[i],o=!1,a.length=0,t=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(s)&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},ci.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},ci.prototype.createStyleElement=function(t,e){var i,s=new ti(t,e),n=s.pElem;return"st"===t.ty?i=new ii(this,t,s):"fl"===t.ty?i=new si(this,t,s):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?ai:oi)(this,t,s),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),n.setAttribute("mask","url("+r()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new ni(this,t,s)),"st"!==t.ty&&"gs"!==t.ty||(n.setAttribute("stroke-linecap",Je[t.lc||2]),n.setAttribute("stroke-linejoin",Ze[t.lj||2]),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=we(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,i),i},ci.prototype.createGroupElement=function(t){var e=new hi;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=we(t.bm)),e},ci.prototype.createTransformElement=function(t,e){var i=Nt.getTransformProperty(this,t,this),s=new li(i,i.o,e);return this.addToAnimatedContents(t,s),s},ci.prototype.createShapeElement=function(t,e,i){var s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7);var n=new Qe(e,i,At.getShapeProp(this,t,s,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},ci.prototype.addToAnimatedContents=function(t,e){for(var i=0,s=this.animatedContents.length;i<s;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:di.createRenderFunction(t),element:e,data:t})},ci.prototype.setElementStyles=function(t){var e,i=t.styles,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},ci.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},ci.prototype.searchShapes=function(t,e,i,s,n,r,a){var o,h,l,p,d,c,u=[].concat(r),f=t.length-1,m=[],g=[];for(o=f;o>=0;o-=1){if((c=this.searchProcessedElement(t[o]))?e[o]=i[c-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)c?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],n),t[o]._render&&e[o].style.pElem.parentNode!==s&&s.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"===t[o].ty){if(c)for(l=e[o].it.length,h=0;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,n+1,u,a),t[o]._render&&e[o].gr.parentNode!==s&&s.appendChild(e[o].gr)}else"tr"===t[o].ty?(c||(e[o]=this.createTransformElement(t[o],s)),p=e[o].transform,u.push(p)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(c||(e[o]=this.createShapeElement(t[o],u,n)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(c?(d=e[o]).closed=!1:((d=Lt.getModifier(t[o].ty)).init(this,t[o]),e[o]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===t[o].ty&&(c?(d=e[o]).closed=!0:(d=Lt.getModifier(t[o].ty),e[o]=d,d.init(this,t,o,e),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(t[o],o+1)}for(f=m.length,o=0;o<f;o+=1)m[o].closed=!0;for(f=g.length,o=0;o<f;o+=1)g[o].closed=!0},ci.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},ci.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},ci.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},ui.prototype.update=function(t,e,i,s,n,r){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,a=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,a=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,this._mdf.p=!0,a=!0),a},fi.prototype.defaultBoxWidth=[0,0],fi.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},fi.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},fi.prototype.searchProperty=function(){return this.searchKeyframes()},fi.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},fi.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},fi.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var s;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(s=0;s<n;s+=1)r=i!==this.keysIndex?this.effectsSequence[s](r,r.t):this.effectsSequence[s](this.currentData,r.t);e!==r&&this.setCurrentData(r),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},fi.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,s=t.length;i<=s-1&&!(i===s-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},fi.prototype.buildFinalText=function(t){for(var e,i,s=[],n=0,r=t.length,a=!1,o=!1,h="";n<r;)a=o,o=!1,e=t.charCodeAt(n),h=t.charAt(n),ge.isCombinedCharacter(e)?a=!0:e>=55296&&e<=56319?ge.isRegionalFlag(t,n)?h=t.substr(n,14):(i=t.charCodeAt(n+1))>=56320&&i<=57343&&(ge.isModifier(e,i)?(h=t.substr(n,2),a=!0):h=ge.isFlagEmoji(t.substr(n,4))?t.substr(n,4):t.substr(n,2)):e>56319?(i=t.charCodeAt(n+1),ge.isVariationSelector(e)&&(a=!0)):ge.isZeroWidthJoiner(e)&&(a=!0,o=!0),a?(s[s.length-1]+=h,a=!1):s.push(h),n+=h.length;return s},fi.prototype.completeTextData=function(t){t.__complete=!0;var e,i,s,n,r,a,o,h=this.elem.globalData.fontManager,l=this.data,p=[],d=0,c=l.m.g,u=0,f=0,m=0,g=[],v=0,y=0,b=h.getFontByName(t.f),w=0,_=me(b);t.fWeight=_.weight,t.fStyle=_.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var k,x=t.tr/1e3*t.finalSize;if(t.sz)for(var A,C,S=!0,E=t.sz[0],P=t.sz[1];S;){A=0,v=0,i=(C=this.buildFinalText(t.t)).length,x=t.tr/1e3*t.finalSize;var T=-1;for(e=0;e<i;e+=1)k=C[e].charCodeAt(0),s=!1," "===C[e]?T=e:13!==k&&3!==k||(v=0,s=!0,A+=t.finalLineHeight||1.2*t.finalSize),h.chars?(o=h.getCharData(C[e],b.fStyle,b.fFamily),w=s?0:o.w*t.finalSize/100):w=h.measureText(C[e],t.f,t.finalSize),v+w>E&&" "!==C[e]?(-1===T?i+=1:e=T,A+=t.finalLineHeight||1.2*t.finalSize,C.splice(e,T===e?1:0,"\r"),T=-1,v=0):(v+=w,v+=x);A+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<A?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=C,i=t.finalText.length,S=!1)}v=-x,w=0;var M,D=0;for(e=0;e<i;e+=1)if(s=!1,13===(k=(M=t.finalText[e]).charCodeAt(0))||3===k?(D=0,g.push(v),y=v>y?v:y,v=-2*x,n="",s=!0,m+=1):n=M,h.chars?(o=h.getCharData(M,b.fStyle,h.getFontByName(t.f).fFamily),w=s?0:o.w*t.finalSize/100):w=h.measureText(n,t.f,t.finalSize)," "===M?D+=w+x:(v+=w+x+D,D=0),p.push({l:w,an:w,add:u,n:s,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==c){if(u+=w,""===n||" "===n||e===i-1){for(""!==n&&" "!==n||(u-=w);f<=e;)p[f].an=u,p[f].ind=d,p[f].extra=w,f+=1;d+=1,u=0}}else if(3==c){if(u+=w,""===n||e===i-1){for(""===n&&(u-=w);f<=e;)p[f].an=u,p[f].ind=d,p[f].extra=w,f+=1;u=0,d+=1}}else p[d].ind=d,p[d].extra=0,d+=1;if(t.l=p,y=v>y?v:y,g.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var F,I,L,R,$=l.a;a=$.length;var O=[];for(r=0;r<a;r+=1){for((F=$[r]).a.sc&&(t.strokeColorAnim=!0),F.a.sw&&(t.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(t.fillColorAnim=!0),R=0,L=F.s.b,e=0;e<i;e+=1)(I=p[e]).anIndexes[r]=R,(1==L&&""!==I.val||2==L&&""!==I.val&&" "!==I.val||3==L&&(I.n||" "==I.val||e==i-1)||4==L&&(I.n||e==i-1))&&(1===F.s.rn&&O.push(R),R+=1);l.a[r].s.totalChars=R;var N,z=-1;if(1===F.s.rn)for(e=0;e<i;e+=1)z!=(I=p[e]).anIndexes[r]&&(z=I.anIndexes[r],N=O.splice(Math.floor(Math.random()*O.length),1)[0]),I.anIndexes[r]=N}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},fi.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},fi.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},fi.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},fi.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var mi=function(){var t=Math.max,e=Math.min,i=Math.floor;function s(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=gt.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?gt.getProp(t,e.e,0,0,this):{v:100},this.o=gt.getProp(t,e.o||{k:0},0,0,this),this.xe=gt.getProp(t,e.xe||{k:0},0,0,this),this.ne=gt.getProp(t,e.ne||{k:0},0,0,this),this.sm=gt.getProp(t,e.sm||{k:100},0,0,this),this.a=gt.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,r=0,a=1,o=1;this.ne.v>0?n=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var h=Z.getBezierEasing(n,r,a,o).get,l=0,p=this.finalS,d=this.finalE,c=this.data.sh;if(2===c)l=h(l=d===p?s>=d?1:0:t(0,e(.5/(d-p)+(s-p)/(d-p),1)));else if(3===c)l=h(l=d===p?s>=d?0:1:1-t(0,e(.5/(d-p)+(s-p)/(d-p),1)));else if(4===c)d===p?l=0:(l=t(0,e(.5/(d-p)+(s-p)/(d-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===c){if(d===p)l=0;else{var u=d-p,f=-u/2+(s=e(t(0,s+.5-p),d-p)),m=u/2;l=Math.sqrt(1-f*f/(m*m))}l=h(l)}else 6===c?(d===p?l=0:(s=e(t(0,s+.5-p),d-p),l=(1+Math.cos(Math.PI+2*Math.PI*s/(d-p)))/2),l=h(l)):(s>=i(p)&&(l=t(0,e(s-p<0?e(d,1)-(p-s):d-s,1))),l=h(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;l<v?l=0:(l=(l-v)/g)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,s=this.s.v/e+i,n=this.e.v/e+i;if(s>n){var r=s;s=n,n=r}this.finalS=s,this.finalE=n}},o([vt],s),{getTextSelectorProp:function(t,e,i){return new s(t,e,i)}}}();function gi(t,e,i){var s={propType:!1},n=gt.getProp,r=e.a;this.a={r:r.r?n(t,r.r,0,k,i):s,rx:r.rx?n(t,r.rx,0,k,i):s,ry:r.ry?n(t,r.ry,0,k,i):s,sk:r.sk?n(t,r.sk,0,k,i):s,sa:r.sa?n(t,r.sa,0,k,i):s,s:r.s?n(t,r.s,1,.01,i):s,a:r.a?n(t,r.a,1,0,i):s,o:r.o?n(t,r.o,0,.01,i):s,p:r.p?n(t,r.p,1,0,i):s,sw:r.sw?n(t,r.sw,0,0,i):s,sc:r.sc?n(t,r.sc,1,0,i):s,fc:r.fc?n(t,r.fc,1,0,i):s,fh:r.fh?n(t,r.fh,0,0,i):s,fs:r.fs?n(t,r.fs,0,.01,i):s,fb:r.fb?n(t,r.fb,0,.01,i):s,t:r.t?n(t,r.t,0,0,i):s},this.s=mi.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function vi(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=p(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function yi(){}vi.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,s=gt.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new gi(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this),p:s(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m.a,1,0,this)},vi.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,s,n,r,a,o,h,l,p,d,c,u,f,m,g,v,y,b,w,_=this._moreOptions.alignment.v,k=this._animatorsData,x=this._textData,A=this.mHelper,C=this._renderType,S=this.renderedLetters.length,E=t.l;if(this._hasMaskedPath){if(w=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=w.v;for(this._pathData.r.v&&(T=T.reverse()),a={tLength:0,segments:[]},r=T._length-1,v=0,n=0;n<r;n+=1)P=st.buildBezierData(T.v[n],T.v[n+1],[T.o[n][0]-T.v[n][0],T.o[n][1]-T.v[n][1]],[T.i[n+1][0]-T.v[n+1][0],T.i[n+1][1]-T.v[n+1][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength;n=r,w.v.c&&(P=st.buildBezierData(T.v[n],T.v[0],[T.o[n][0]-T.v[n][0],T.o[n][1]-T.v[n][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,c=0,d=1,l=0,p=!0,m=a.segments,o<0&&w.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),d=(f=m[c=m.length-1].points).length-1;o<0;)o+=f[d].partialLength,(d-=1)<0&&(d=(f=m[c-=1].points).length-1);u=(f=m[c].points)[d-1],g=(h=f[d]).partialLength}r=E.length,i=0,s=0;var M,D,F,I,L,N=1.2*t.finalSize*.714,z=!0;F=k.length;var B,V,q,j,H,W,Y,U,X,K,G,J,Z=-1,Q=o,tt=c,et=d,it=-1,nt="",rt=this.defaultPropsArray;if(2===t.j||1===t.j){var at=0,ot=0,ht=2===t.j?-.5:-1,lt=0,pt=!0;for(n=0;n<r;n+=1)if(E[n].n){for(at&&(at+=ot);lt<n;)E[lt].animatorJustifyOffset=at,lt+=1;at=0,pt=!0}else{for(D=0;D<F;D+=1)(M=k[D].a).t.propType&&(pt&&2===t.j&&(ot+=M.t.v*ht),(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?at+=M.t.v*L[0]*ht:at+=M.t.v*L*ht);pt=!1}for(at&&(at+=ot);lt<n;)E[lt].animatorJustifyOffset=at,lt+=1}for(n=0;n<r;n+=1){if(A.reset(),j=1,E[n].n)i=0,s+=t.yOffset,s+=z?1:0,o=Q,z=!1,this._hasMaskedPath&&(d=et,u=(f=m[c=tt].points)[d-1],g=(h=f[d]).partialLength,l=0),nt="",G="",X="",J="",rt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==E[n].line){switch(t.j){case 1:o+=v-t.lineWidths[E[n].line];break;case 2:o+=(v-t.lineWidths[E[n].line])/2}it=E[n].line}Z!==E[n].ind&&(E[Z]&&(o+=E[Z].extra),o+=E[n].an/2,Z=E[n].ind),o+=_[0]*E[n].an*.005;var dt=0;for(D=0;D<F;D+=1)(M=k[D].a).p.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?dt+=M.p.v[0]*L[0]:dt+=M.p.v[0]*L),M.a.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?dt+=M.a.v[0]*L[0]:dt+=M.a.v[0]*L);for(p=!0,this._pathData.a.v&&(o=.5*E[0].an+(v-this._pathData.f.v-.5*E[0].an-.5*E[E.length-1].an)*Z/(r-1),o+=this._pathData.f.v);p;)l+g>=o+dt||!f?(y=(o+dt-l)/h.partialLength,V=u.point[0]+(h.point[0]-u.point[0])*y,q=u.point[1]+(h.point[1]-u.point[1])*y,A.translate(-_[0]*E[n].an*.005,-_[1]*N*.01),p=!1):f&&(l+=h.partialLength,(d+=1)>=f.length&&(d=0,m[c+=1]?f=m[c].points:w.v.c?(d=0,f=m[c=0].points):(l-=h.partialLength,f=null)),f&&(u=h,g=(h=f[d]).partialLength));B=E[n].an/2-E[n].add,A.translate(-B,0,0)}else B=E[n].an/2-E[n].add,A.translate(-B,0,0),A.translate(-_[0]*E[n].an*.005,-_[1]*N*.01,0);for(D=0;D<F;D+=1)(M=k[D].a).t.propType&&(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?L.length?o+=M.t.v*L[0]:o+=M.t.v*L:L.length?i+=M.t.v*L[0]:i+=M.t.v*L));for(t.strokeWidthAnim&&(W=t.sw||0),t.strokeColorAnim&&(H=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(Y=[t.fc[0],t.fc[1],t.fc[2]]),D=0;D<F;D+=1)(M=k[D].a).a.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?A.translate(-M.a.v[0]*L[0],-M.a.v[1]*L[1],M.a.v[2]*L[2]):A.translate(-M.a.v[0]*L,-M.a.v[1]*L,M.a.v[2]*L));for(D=0;D<F;D+=1)(M=k[D].a).s.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?A.scale(1+(M.s.v[0]-1)*L[0],1+(M.s.v[1]-1)*L[1],1):A.scale(1+(M.s.v[0]-1)*L,1+(M.s.v[1]-1)*L,1));for(D=0;D<F;D+=1){if(M=k[D].a,L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),M.sk.propType&&(L.length?A.skewFromAxis(-M.sk.v*L[0],M.sa.v*L[1]):A.skewFromAxis(-M.sk.v*L,M.sa.v*L)),M.r.propType&&(L.length?A.rotateZ(-M.r.v*L[2]):A.rotateZ(-M.r.v*L)),M.ry.propType&&(L.length?A.rotateY(M.ry.v*L[1]):A.rotateY(M.ry.v*L)),M.rx.propType&&(L.length?A.rotateX(M.rx.v*L[0]):A.rotateX(M.rx.v*L)),M.o.propType&&(L.length?j+=(M.o.v*L[0]-j)*L[0]:j+=(M.o.v*L-j)*L),t.strokeWidthAnim&&M.sw.propType&&(L.length?W+=M.sw.v*L[0]:W+=M.sw.v*L),t.strokeColorAnim&&M.sc.propType)for(U=0;U<3;U+=1)L.length?H[U]+=(M.sc.v[U]-H[U])*L[0]:H[U]+=(M.sc.v[U]-H[U])*L;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for(U=0;U<3;U+=1)L.length?Y[U]+=(M.fc.v[U]-Y[U])*L[0]:Y[U]+=(M.fc.v[U]-Y[U])*L;M.fh.propType&&(Y=L.length?O(Y,M.fh.v*L[0]):O(Y,M.fh.v*L)),M.fs.propType&&(Y=L.length?R(Y,M.fs.v*L[0]):R(Y,M.fs.v*L)),M.fb.propType&&(Y=L.length?$(Y,M.fb.v*L[0]):$(Y,M.fb.v*L))}}for(D=0;D<F;D+=1)(M=k[D].a).p.propType&&(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),this._hasMaskedPath?L.length?A.translate(0,M.p.v[1]*L[0],-M.p.v[2]*L[1]):A.translate(0,M.p.v[1]*L,-M.p.v[2]*L):L.length?A.translate(M.p.v[0]*L[0],M.p.v[1]*L[1],-M.p.v[2]*L[2]):A.translate(M.p.v[0]*L,M.p.v[1]*L,-M.p.v[2]*L));if(t.strokeWidthAnim&&(X=W<0?0:W),t.strokeColorAnim&&(K="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),t.fillColorAnim&&t.fc&&(G="rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"),this._hasMaskedPath){if(A.translate(0,-t.ls),A.translate(0,_[1]*N*.01+s,0),this._pathData.p.v){b=(h.point[1]-u.point[1])/(h.point[0]-u.point[0]);var ct=180*Math.atan(b)/Math.PI;h.point[0]<u.point[0]&&(ct+=180),A.rotate(-ct*Math.PI/180)}A.translate(V,q,0),o-=_[0]*E[n].an*.005,E[n+1]&&Z!==E[n+1].ind&&(o+=E[n].an/2,o+=.001*t.tr*t.finalSize)}else{switch(A.translate(i,s,0),t.ps&&A.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:A.translate(E[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[n].line]),0,0);break;case 2:A.translate(E[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[n].line])/2,0,0)}A.translate(0,-t.ls),A.translate(B,0,0),A.translate(_[0]*E[n].an*.005,_[1]*N*.01,0),i+=E[n].l+.001*t.tr*t.finalSize}"html"===C?nt=A.toCSS():"svg"===C?nt=A.to2dCSS():rt=[A.props[0],A.props[1],A.props[2],A.props[3],A.props[4],A.props[5],A.props[6],A.props[7],A.props[8],A.props[9],A.props[10],A.props[11],A.props[12],A.props[13],A.props[14],A.props[15]],J=j}S<=n?(I=new ui(J,X,K,G,nt,rt),this.renderedLetters.push(I),S+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[n],this.lettersChangedFlag=I.update(J,X,K,G,nt,rt)||this.lettersChangedFlag)}}},vi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},vi.prototype.mHelper=new Ct,vi.prototype.defaultPropsArray=[],o([vt],vi),yi.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new fi(this,t.t,this.dynamicProperties),this.textAnimator=new vi(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},yi.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},yi.prototype.createPathShape=function(t,e){var i,s,n=e.length,r="";for(i=0;i<n;i+=1)"sh"===e[i].ty&&(s=e[i].ks.k,r+=pi(s,s.i.length,!0,t));return r},yi.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},yi.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},yi.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},yi.prototype.applyTextPropertiesToMatrix=function(t,e,i,s,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(s,n,0)},yi.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},yi.prototype.emptyProp=new ui,yi.prototype.destroy=function(){},yi.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var bi,wi={shapes:[]};function _i(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ki(t,e,i){this.initElement(t,e,i)}function xi(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function Ai(){}function Ci(){}function Si(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?p(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?gt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function Ei(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=V("svg");var i="";if(e&&e.title){var s=V("title"),n=F();s.setAttribute("id",n),s.textContent=e.title,this.svgElement.appendChild(s),i+=n}if(e&&e.description){var r=V("desc"),a=F();r.setAttribute("id",a),r.textContent=e.description,this.svgElement.appendChild(r),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=V("defs");this.svgElement.appendChild(o);var h=V("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return o([De,Oe,We,Ye,Fe,Ue,yi],_i),_i.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=V("text"))},_i.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],n="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(s.push(n),n=""):n+=t[e],e+=1;return s.push(n),s},_i.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var s=i.it[i.it.length-1];s.s&&(s.s.k[0]=e,s.s.k[1]=e)}}return t},_i.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=p(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var s=this.globalData.fontManager.getFontByName(i.f);if(s.fClass)this.layerElement.setAttribute("class",s.fClass);else{this.layerElement.setAttribute("font-family",s.fFamily);var n=i.fWeight,r=i.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",i.t);var a,o=i.l||[],h=!!this.globalData.fontManager.chars;e=o.length;var l=this.mHelper,d=this.data.singleShape,c=0,u=0,f=!0,m=.001*i.tr*i.finalSize;if(!d||h||i.sz){var g,v=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!h||!d||0===t){if(a=v>t?this.textSpans[t].span:V(h?"g":"text"),v<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,h){var y=V("g");a.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(l.reset(),d&&(o[t].n&&(c=-m,u+=i.yOffset,u+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(i,l,o[t].line,c,u),c+=o[t].l||0,c+=m),h){var b;if(1===(g=this.globalData.fontManager.getCharData(i.finalText[t],s.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)b=new Si(g.data,this.globalData,this);else{var w=wi;g.data&&g.data.shapes&&(w=this.buildShapeData(g.data,i.finalSize)),b=new ci(w,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[t].childSpan.appendChild(b.layerElement),1===g.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else d&&a.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&a&&a.setAttribute("d","")}else{var k=this.textContainer,x="start";switch(i.j){case 1:x="end";break;case 2:x="middle";break;default:x="start"}k.setAttribute("text-anchor",x),k.setAttribute("letter-spacing",m);var A=this.buildTextContents(i.finalText);for(e=A.length,u=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||V("tspan")).textContent=A[t],a.setAttribute("x",0),a.setAttribute("y",u),a.style.display="inherit",k.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,u+=i.finalLineHeight;this.layerElement.appendChild(k)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},_i.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},_i.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},_i.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,s,n,r=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(i=r[t],s=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),i._mdf.m&&s.setAttribute("transform",i.m),i._mdf.o&&s.setAttribute("opacity",i.o),i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i._mdf.sc&&s.setAttribute("stroke",i.sc),i._mdf.fc&&s.setAttribute("fill",i.fc))}},o([Xe],ki),ki.prototype.createContent=function(){var t=V("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},xi.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},xi.prototype.renderFrame=function(){},xi.prototype.getBaseElement=function(){return null},xi.prototype.destroy=function(){},xi.prototype.sourceRectAtTime=function(){},xi.prototype.hide=function(){},o([De,Oe,Ye,Fe],xi),o([Re],Ai),Ai.prototype.createNull=function(t){return new xi(t,this.globalData,this)},Ai.prototype.createShape=function(t){return new ci(t,this.globalData,this)},Ai.prototype.createText=function(t){return new _i(t,this.globalData,this)},Ai.prototype.createImage=function(t){return new Xe(t,this.globalData,this)},Ai.prototype.createSolid=function(t){return new ki(t,this.globalData,this)},Ai.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=V("clipPath"),s=V("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var n=F();i.setAttribute("id",n),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+r()+"#"+n+")"),e.appendChild(i),this.layers=t.layers,this.elements=p(t.layers.length)},Ai.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ai.prototype.updateContainerSize=function(){},Ai.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},Ai.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,N()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var s="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===s)return;if(this.elements[s]&&!0!==this.elements[s]){var n=e[s].getMatte(this.layers[t].tt);i.setMatte(n)}else this.buildItem(s),this.addPendingElement(i)}}},Ai.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},Ai.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},Ai.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var s,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(s=this.elements[n].getBaseElement()),n+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},Ai.prototype.hide=function(){this.layerElement.style.display="none"},Ai.prototype.show=function(){this.layerElement.style.display="block"},o([De,Oe,Ye,Fe,Ue],Ci),Ci.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},Ci.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},Ci.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Ci.prototype.setElements=function(t){this.elements=t},Ci.prototype.getElements=function(){return this.elements},Ci.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},Ci.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},o([Ai,Ci,We],Si),Si.prototype.createComp=function(t){return new Si(t,this.globalData,this)},o([Ai],Ei),Ei.prototype.createComp=function(t){return new Si(t,this.globalData,this)},bi=Ei,X["svg"]=bi,Lt.registerModifier("tm",$t),Lt.registerModifier("pb",Ot),Lt.registerModifier("rp",zt),Lt.registerModifier("rd",Bt),Lt.registerModifier("zz",se),Lt.registerModifier("op",fe),Et}())},179:(t,e,i)=>{"use strict";i.r(e)},809:(t,e,i)=>{"use strict";i.r(e)},168:(t,e,i)=>{"use strict";i.r(e)},234:(t,e,i)=>{"use strict";i.r(e)},271:(t,e,i)=>{"use strict";i.r(e)},799:(t,e,i)=>{"use strict";i.r(e)},793:(t,e,i)=>{"use strict";i.r(e)},800:(t,e,i)=>{"use strict";i.r(e)},177:(t,e,i)=>{"use strict";i.r(e)},364:(t,e,i)=>{"use strict";i.r(e)},821:(t,e,i)=>{"use strict";i.r(e)},305:(t,e,i)=>{"use strict";i.r(e)},140:(t,e,i)=>{"use strict";i.r(e)},479:(t,e,i)=>{"use strict";i.r(e)},423:(t,e,i)=>{"use strict";i.r(e)},946:(t,e,i)=>{"use strict";i.r(e)},392:(t,e,i)=>{"use strict";t.exports=i.p+"f94a181ecedc0c6314c5.js"}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var r=e[s]={exports:{}};return t[s].call(r.exports,r,r.exports,i),r.exports}i.m=t,i.amdO={},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var s=e.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=s[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t})(),i.b=document.baseURI||self.location.href,(()=>{"use strict";const t=window.wp.data,e=window.wp.coreData;let s={};function n(t={}){s={animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...t}}function r(t){return t?s[t]:s}function a(t,e,i,s){return(t/=s/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e}function o(t){const e='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return t.flatMap((t=>{const i=t.matches(e),s=Array.from(t.querySelectorAll(e));return[...i?[t]:[],...s]})).filter((t=>"none"!==getComputedStyle(t).pointerEvents&&function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}(t)))}function h(t){if(!t||function(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}(t))return;const e=r("smoothScroll");t.scrollIntoView({behavior:!e||l(t)?"auto":"smooth",inline:"center",block:"center"})}function l(t){if(!t||!t.parentElement)return;const e=t.parentElement;return e.scrollHeight>e.clientHeight}let p={};function d(t,e){p[t]=e}function c(t){return t?p[t]:p}function u(){p={}}let f={};function m(t,e){f[t]=e}function g(t){var e;null==(e=f[t])||e.call(f)}function v(t){if(!t)return;const e=t.getBoundingClientRect(),i={x:e.x,y:e.y,width:e.width,height:e.height};d("__activeStagePosition",i),y(i)}function y(t){const e=c("__overlaySvg");if(!e)return void function(t){const e=function(t){const e=window.innerWidth,i=window.innerHeight,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.classList.add("driver-overlay","driver-overlay-animated"),s.setAttribute("viewBox",`0 0 ${e} ${i}`),s.setAttribute("xmlSpace","preserve"),s.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),s.setAttribute("version","1.1"),s.setAttribute("preserveAspectRatio","xMinYMin slice"),s.style.fillRule="evenodd",s.style.clipRule="evenodd",s.style.strokeLinejoin="round",s.style.strokeMiterlimit="2",s.style.zIndex="10000",s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height="100%";const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",b(t)),n.style.fill=r("overlayColor")||"rgb(0,0,0)",n.style.opacity=`${r("overlayOpacity")}`,n.style.pointerEvents="auto",n.style.cursor="auto",s.appendChild(n),s}(t);document.body.appendChild(e),C(e,(t=>{"path"===t.target.tagName&&g("overlayClick")})),d("__overlaySvg",e)}(t);const i=e.firstElementChild;if("path"!==(null==i?void 0:i.tagName))throw new Error("no path element found in stage svg");i.setAttribute("d",b(t))}function b(t){const e=window.innerWidth,i=window.innerHeight,s=r("stagePadding")||0,n=r("stageRadius")||0,a=t.width+2*s,o=t.height+2*s,h=Math.min(n,a/2,o/2),l=Math.floor(Math.max(h,0)),p=a-2*l,d=o-2*l;return`M${e},0L0,0L0,${i}L${e},${i}L${e},0Z\n M${t.x-s+l},${t.y-s} h${p} a${l},${l} 0 0 1 ${l},${l} v${d} a${l},${l} 0 0 1 -${l},${l} h-${p} a${l},${l} 0 0 1 -${l},-${l} v-${d} a${l},${l} 0 0 1 ${l},-${l} z`}function w(t){const{element:e}=t;let i="string"==typeof e?document.querySelector(e):e;i||(i=function(){const t=document.getElementById("driver-dummy-element");if(t)return t;let e=document.createElement("div");return e.id="driver-dummy-element",e.style.width="0",e.style.height="0",e.style.pointerEvents="none",e.style.opacity="0",e.style.position="fixed",e.style.top="50%",e.style.left="50%",document.body.appendChild(e),e}()),function(t,e){const i=Date.now(),s=c("__activeStep"),n=c("__activeElement")||t,o=!n||n===t,l="driver-dummy-element"===t.id,p="driver-dummy-element"===n.id,u=r("animate"),f=e.onHighlightStarted||r("onHighlightStarted"),m=(null==e?void 0:e.onHighlighted)||r("onHighlighted"),g=(null==s?void 0:s.onDeselected)||r("onDeselected"),b=r(),w=c();!o&&g&&g(p?void 0:n,s,{config:b,state:w}),f&&f(l?void 0:t,e,{config:b,state:w});const _=!o&&u;let k=!1;(function(){const t=c("popover");t&&(t.wrapper.style.display="none")})(),d("previousStep",s),d("previousElement",n),d("activeStep",e),d("activeElement",t);const x=()=>{if(c("__transitionCallback")!==x)return;const o=Date.now()-i,h=400-o<=200;e.popover&&h&&!k&&_&&(S(t,e),k=!0),r("animate")&&o<400?function(t,e,i,s){let n=c("__activeStagePosition");const r=n||i.getBoundingClientRect(),o=s.getBoundingClientRect();n={x:a(t,r.x,o.x-r.x,e),y:a(t,r.y,o.y-r.y,e),width:a(t,r.width,o.width-r.width,e),height:a(t,r.height,o.height-r.height,e)},y(n),d("__activeStagePosition",n)}(o,400,n,t):(v(t),m&&m(l?void 0:t,e,{config:r(),state:c()}),d("__transitionCallback",void 0),d("__previousStep",s),d("__previousElement",n),d("__activeStep",e),d("__activeElement",t)),window.requestAnimationFrame(x)};d("__transitionCallback",x),window.requestAnimationFrame(x),h(t),!_&&e.popover&&S(t,e),n.classList.remove("driver-active-element","driver-no-interaction"),n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-expanded"),n.removeAttribute("aria-controls"),r("disableActiveInteraction")&&t.classList.add("driver-no-interaction"),t.classList.add("driver-active-element"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls","driver-popover-content")}(i,t)}function _(){const t=c("__activeElement"),e=c("__activeStep");t&&(v(t),function(){const t=c("__activeStagePosition"),e=c("__overlaySvg");if(!t)return;if(!e)return void console.warn("No stage svg found.");const i=window.innerWidth,s=window.innerHeight;e.setAttribute("viewBox",`0 0 ${i} ${s}`)}(),M(t,e))}function k(){const t=c("__resizeTimeout");t&&window.cancelAnimationFrame(t),d("__resizeTimeout",window.requestAnimationFrame(_))}function x(t){var e;if(!c("isInitialized")||"Tab"!==t.key&&9!==t.keyCode)return;const i=c("__activeElement"),s=null==(e=c("popover"))?void 0:e.wrapper,n=o([...s?[s]:[],...i?[i]:[]]),r=n[0],a=n[n.length-1];if(t.preventDefault(),t.shiftKey){const t=n[n.indexOf(document.activeElement)-1]||a;null==t||t.focus()}else{const t=n[n.indexOf(document.activeElement)+1]||r;null==t||t.focus()}}function A(t){var e;(null==(e=r("allowKeyboardControl"))||e)&&("Escape"===t.key?g("escapePress"):"ArrowRight"===t.key?g("arrowRightPress"):"ArrowLeft"===t.key&&g("arrowLeftPress"))}function C(t,e,i){const s=(e,s)=>{const n=e.target;t.contains(n)&&((!i||i(n))&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()),null==s||s(e))};document.addEventListener("pointerdown",s,!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerup",s,!0),document.addEventListener("mouseup",s,!0),document.addEventListener("click",(t=>{s(t,e)}),!0)}function S(t,e){var i,s;let n=c("popover");n&&document.body.removeChild(n.wrapper),n=function(){const t=document.createElement("div");t.classList.add("driver-popover");const e=document.createElement("div");e.classList.add("driver-popover-arrow");const i=document.createElement("header");i.id="driver-popover-title",i.classList.add("driver-popover-title"),i.style.display="none",i.innerText="Popover Title";const s=document.createElement("div");s.id="driver-popover-description",s.classList.add("driver-popover-description"),s.style.display="none",s.innerText="Popover description is here";const n=document.createElement("button");n.type="button",n.classList.add("driver-popover-close-btn"),n.setAttribute("aria-label","Close"),n.innerHTML="×";const r=document.createElement("footer");r.classList.add("driver-popover-footer");const a=document.createElement("span");a.classList.add("driver-popover-progress-text"),a.innerText="";const o=document.createElement("span");o.classList.add("driver-popover-navigation-btns");const h=document.createElement("button");h.type="button",h.classList.add("driver-popover-prev-btn"),h.innerHTML="← Previous";const l=document.createElement("button");return l.type="button",l.classList.add("driver-popover-next-btn"),l.innerHTML="Next →",o.appendChild(h),o.appendChild(l),r.appendChild(a),r.appendChild(o),t.appendChild(n),t.appendChild(e),t.appendChild(i),t.appendChild(s),t.appendChild(r),{wrapper:t,arrow:e,title:i,description:s,footer:r,previousButton:h,nextButton:l,closeButton:n,footerButtons:o,progress:a}}(),document.body.appendChild(n.wrapper);const{title:a,description:l,showButtons:p,disableButtons:u,showProgress:f,nextBtnText:m=r("nextBtnText")||"Next →",prevBtnText:v=r("prevBtnText")||"← Previous",progressText:y=r("progressText")||"{current} of {total}"}=e.popover||{};n.nextButton.innerHTML=m,n.previousButton.innerHTML=v,n.progress.innerHTML=y,a?(n.title.innerHTML=a,n.title.style.display="block"):n.title.style.display="none",l?(n.description.innerHTML=l,n.description.style.display="block"):n.description.style.display="none";const b=p||r("showButtons"),w=f||r("showProgress")||!1,_=(null==b?void 0:b.includes("next"))||(null==b?void 0:b.includes("previous"))||w;n.closeButton.style.display=b.includes("close")?"block":"none",_?(n.footer.style.display="flex",n.progress.style.display=w?"block":"none",n.nextButton.style.display=b.includes("next")?"block":"none",n.previousButton.style.display=b.includes("previous")?"block":"none"):n.footer.style.display="none";const k=u||r("disableButtons")||[];null!=k&&k.includes("next")&&(n.nextButton.disabled=!0,n.nextButton.classList.add("driver-popover-btn-disabled")),null!=k&&k.includes("previous")&&(n.previousButton.disabled=!0,n.previousButton.classList.add("driver-popover-btn-disabled")),null!=k&&k.includes("close")&&(n.closeButton.disabled=!0,n.closeButton.classList.add("driver-popover-btn-disabled"));const x=n.wrapper;x.style.display="block",x.style.left="",x.style.top="",x.style.bottom="",x.style.right="",x.id="driver-popover-content",x.setAttribute("role","dialog"),x.setAttribute("aria-labelledby","driver-popover-title"),x.setAttribute("aria-describedby","driver-popover-description"),n.arrow.className="driver-popover-arrow";const A=(null==(i=e.popover)?void 0:i.popoverClass)||r("popoverClass")||"";x.className=`driver-popover ${A}`.trim(),C(n.wrapper,(i=>{var s,n,a;const o=i.target,h=(null==(s=e.popover)?void 0:s.onNextClick)||r("onNextClick"),l=(null==(n=e.popover)?void 0:n.onPrevClick)||r("onPrevClick"),p=(null==(a=e.popover)?void 0:a.onCloseClick)||r("onCloseClick");return o.classList.contains("driver-popover-next-btn")?h?h(t,e,{config:r(),state:c()}):g("nextClick"):o.classList.contains("driver-popover-prev-btn")?l?l(t,e,{config:r(),state:c()}):g("prevClick"):o.classList.contains("driver-popover-close-btn")?p?p(t,e,{config:r(),state:c()}):g("closeClick"):void 0}),(t=>!(null!=n&&n.description.contains(t))&&!(null!=n&&n.title.contains(t))&&"string"==typeof t.className&&t.className.includes("driver-popover"))),d("popover",n);const S=(null==(s=e.popover)?void 0:s.onPopoverRender)||r("onPopoverRender");S&&S(n,{config:r(),state:c()}),M(t,e),h(x);const E=o([x,...t.classList.contains("driver-dummy-element")?[]:[t]]);E.length>0&&E[0].focus()}function E(){const t=c("popover");if(null==t||!t.wrapper)return;const e=t.wrapper.getBoundingClientRect(),i=r("stagePadding")||0,s=r("popoverOffset")||0;return{width:e.width+i+s,height:e.height+i+s,realWidth:e.width,realHeight:e.height}}function P(t,e){const{elementDimensions:i,popoverDimensions:s,popoverPadding:n,popoverArrowDimensions:r}=e;return"start"===t?Math.max(Math.min(i.top-n,window.innerHeight-s.realHeight-r.width),r.width):"end"===t?Math.max(Math.min(i.top-(null==s?void 0:s.realHeight)+i.height+n,window.innerHeight-(null==s?void 0:s.realHeight)-r.width),r.width):"center"===t?Math.max(Math.min(i.top+i.height/2-(null==s?void 0:s.realHeight)/2,window.innerHeight-(null==s?void 0:s.realHeight)-r.width),r.width):0}function T(t,e){const{elementDimensions:i,popoverDimensions:s,popoverPadding:n,popoverArrowDimensions:r}=e;return"start"===t?Math.max(Math.min(i.left-n,window.innerWidth-s.realWidth-r.width),r.width):"end"===t?Math.max(Math.min(i.left-(null==s?void 0:s.realWidth)+i.width+n,window.innerWidth-(null==s?void 0:s.realWidth)-r.width),r.width):"center"===t?Math.max(Math.min(i.left+i.width/2-(null==s?void 0:s.realWidth)/2,window.innerWidth-(null==s?void 0:s.realWidth)-r.width),r.width):0}function M(t,e){const i=c("popover");if(!i)return;const{align:s="start",side:n="left"}=(null==e?void 0:e.popover)||{},a=s,o="driver-dummy-element"===t.id?"over":n,h=r("stagePadding")||0,l=E(),p=i.arrow.getBoundingClientRect(),d=t.getBoundingClientRect(),u=d.top-l.height;let f=u>=0;const m=window.innerHeight-(d.bottom+l.height);let g=m>=0;const v=d.left-l.width;let y=v>=0;const b=window.innerWidth-(d.right+l.width);let w=b>=0;const _=!(f||g||y||w);let k=o;if("top"===o&&f?w=y=g=!1:"bottom"===o&&g?w=y=f=!1:"left"===o&&y?w=f=g=!1:"right"===o&&w&&(y=f=g=!1),"over"===o){const t=window.innerWidth/2-l.realWidth/2,e=window.innerHeight/2-l.realHeight/2;i.wrapper.style.left=`${t}px`,i.wrapper.style.right="auto",i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto"}else if(_){const t=window.innerWidth/2-(null==l?void 0:l.realWidth)/2,e=10;i.wrapper.style.left=`${t}px`,i.wrapper.style.right="auto",i.wrapper.style.bottom=`${e}px`,i.wrapper.style.top="auto"}else if(y){const t=Math.min(v,window.innerWidth-(null==l?void 0:l.realWidth)-p.width),e=P(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.left=`${t}px`,i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.right="auto",k="left"}else if(w){const t=Math.min(b,window.innerWidth-(null==l?void 0:l.realWidth)-p.width),e=P(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.right=`${t}px`,i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.left="auto",k="right"}else if(f){const t=Math.min(u,window.innerHeight-l.realHeight-p.width);let e=T(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.top=`${t}px`,i.wrapper.style.left=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.right="auto",k="top"}else if(g){const t=Math.min(m,window.innerHeight-(null==l?void 0:l.realHeight)-p.width);let e=T(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.left=`${e}px`,i.wrapper.style.bottom=`${t}px`,i.wrapper.style.top="auto",i.wrapper.style.right="auto",k="bottom"}_?i.arrow.classList.add("driver-popover-arrow-none"):function(t,e,i){const s=c("popover");if(!s)return;const n=i.getBoundingClientRect(),r=E(),a=s.arrow,o=r.width,h=window.innerWidth,l=n.width,p=n.left,d=r.height,u=window.innerHeight,f=n.top,m=n.height;a.className="driver-popover-arrow";let g=e,v=t;"top"===e?(p+l<=0?(g="right",v="end"):p+l-o<=0&&(g="top",v="start"),p>=h?(g="left",v="end"):p+o>=h&&(g="top",v="end")):"bottom"===e?(p+l<=0?(g="right",v="start"):p+l-o<=0&&(g="bottom",v="start"),p>=h?(g="left",v="start"):p+o>=h&&(g="bottom",v="end")):"left"===e?(f+m<=0?(g="bottom",v="end"):f+m-d<=0&&(g="left",v="start"),f>=u?(g="top",v="end"):f+d>=u&&(g="left",v="end")):"right"===e&&(f+m<=0?(g="bottom",v="start"):f+m-d<=0&&(g="right",v="start"),f>=u?(g="top",v="start"):f+d>=u&&(g="right",v="end")),g?(a.classList.add(`driver-popover-arrow-side-${g}`),a.classList.add(`driver-popover-arrow-align-${v}`)):a.classList.add("driver-popover-arrow-none")}(a,k,t)}const D=window.wp.i18n;if(window.vrts_admin_vars.onboarding){const i=1===window.vrts_admin_vars.onboarding.steps.length,s=function(t={}){function e(){r("allowClose")&&p()}function i(){const t=c("activeIndex"),e=r("steps")||[];if(void 0===t)return;const i=t+1;e[i]?l(i):p()}function s(){const t=c("activeIndex"),e=r("steps")||[];if(void 0===t)return;const i=t-1;e[i]?l(i):p()}function a(){var t;if(c("__transitionCallback"))return;const e=c("activeIndex"),i=c("__activeStep"),n=c("__activeElement");if(void 0===e||void 0===i||void 0===c("activeIndex"))return;const a=(null==(t=i.popover)?void 0:t.onPrevClick)||r("onPrevClick");if(a)return a(n,i,{config:r(),state:c()});s()}function o(){var t;if(c("__transitionCallback"))return;const e=c("activeIndex"),s=c("__activeStep"),n=c("__activeElement");if(void 0===e||void 0===s)return;const a=(null==(t=s.popover)?void 0:t.onNextClick)||r("onNextClick");if(a)return a(n,s,{config:r(),state:c()});i()}function h(){c("isInitialized")||(d("isInitialized",!0),document.body.classList.add("driver-active",r("animate")?"driver-fade":"driver-simple"),window.addEventListener("keyup",A,!1),window.addEventListener("keydown",x,!1),window.addEventListener("resize",k),window.addEventListener("scroll",k),m("overlayClick",e),m("escapePress",e),m("arrowLeftPress",a),m("arrowRightPress",o))}function l(t=0){var e,i,s,n,a,o,h,c;const u=r("steps");if(!u)return console.error("No steps to drive through"),void p();if(!u[t])return void p();d("__activeOnDestroyed",document.activeElement),d("activeIndex",t);const f=u[t],m=u[t+1],g=u[t-1],v=(null==(e=f.popover)?void 0:e.doneBtnText)||r("doneBtnText")||"Done",y=r("allowClose"),b=void 0!==(null==(i=f.popover)?void 0:i.showProgress)?null==(s=f.popover)?void 0:s.showProgress:r("showProgress"),_=((null==(n=f.popover)?void 0:n.progressText)||r("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${t+1}`).replace("{{total}}",`${u.length}`),k=(null==(a=f.popover)?void 0:a.showButtons)||r("showButtons"),x=["next","previous",...y?["close"]:[]].filter((t=>!(null!=k&&k.length)||k.includes(t))),A=(null==(o=f.popover)?void 0:o.onNextClick)||r("onNextClick"),C=(null==(h=f.popover)?void 0:h.onPrevClick)||r("onPrevClick"),S=(null==(c=f.popover)?void 0:c.onCloseClick)||r("onCloseClick");w({...f,popover:{showButtons:x,nextBtnText:m?void 0:v,disableButtons:[...g?[]:["previous"]],showProgress:b,progressText:_,onNextClick:A||(()=>{m?l(t+1):p()}),onPrevClick:C||(()=>{l(t-1)}),onCloseClick:S||(()=>{p()}),...(null==f?void 0:f.popover)||{}}})}function p(t=!0){const e=c("__activeElement"),i=c("__activeStep"),s=c("__activeOnDestroyed"),n=r("onDestroyStarted");if(t&&n)return void n(e&&"driver-dummy-element"!==(null==e?void 0:e.id)?e:void 0,i,{config:r(),state:c()});const a=(null==i?void 0:i.onDeselected)||r("onDeselected"),o=r("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),window.removeEventListener("keyup",A),window.removeEventListener("resize",k),window.removeEventListener("scroll",k),function(){var t;const e=c("popover");e&&(null==(t=e.wrapper.parentElement)||t.removeChild(e.wrapper))}(),function(){var t;null==(t=document.getElementById("driver-dummy-element"))||t.remove(),document.querySelectorAll(".driver-active-element").forEach((t=>{t.classList.remove("driver-active-element","driver-no-interaction"),t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls")}))}(),function(){const t=c("__overlaySvg");t&&t.remove()}(),f={},u(),e&&i){const t="driver-dummy-element"===e.id;a&&a(t?void 0:e,i,{config:r(),state:c()}),o&&o(t?void 0:e,i,{config:r(),state:c()})}s&&s.focus()}return n(t),{isActive:()=>c("isInitialized")||!1,refresh:k,drive:(t=0)=>{h(),l(t)},setConfig:n,setSteps:t=>{u(),n({...r(),steps:t})},getConfig:r,getState:c,getActiveIndex:()=>c("activeIndex"),isFirstStep:()=>0===c("activeIndex"),isLastStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&e===t.length-1},getActiveStep:()=>c("activeStep"),getActiveElement:()=>c("activeElement"),getPreviousElement:()=>c("previousElement"),getPreviousStep:()=>c("previousStep"),moveNext:i,movePrevious:s,moveTo:function(t){(r("steps")||[])[t]?l(t):p()},hasNextStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&t[e+1]},hasPreviousStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&t[e-1]},highlight:t=>{h(),w({...t,popover:t.popover?{showButtons:[],showProgress:!1,progressText:"",...t.popover}:void 0})},destroy:()=>{p(!1)}}}({overlayColor:"rgba(44, 51, 56, 0.35)",stageRadius:0,stagePadding:0,popoverOffset:20,allowClose:!1,showProgress:!i,popoverClass:i?"vrts-onboarding-nonblocking":"vrts-onboarding",disableActiveInteraction:!1,progressText:(0,D.__)("{{current}} of {{total}}","visual-regression-tests"),prevBtnText:(0,D.__)("Previous","visual-regression-tests"),nextBtnText:(0,D.__)("Next","visual-regression-tests"),doneBtnText:(0,D.__)("Got it!","visual-regression-tests"),onPopoverRender:(t,{config:e,state:s})=>{const n=e.steps[s.activeIndex+1];e.stagePadding=window.vrts_admin_vars.onboarding.steps[s.activeIndex].padding||0,t.previousButton.classList.add("button","button-secondary","button-large"),t.nextButton.classList.add("button","button-primary","button-large"),n||t.nextButton.classList.add("driver-popover-success-btn"),i&&t.previousButton.setAttribute("hidden",!0)},onNextClick:(t,e,{config:i,state:n})=>{i.steps[n.activeIndex+1]?s.moveNext():s.destroy()},onCloseClick:()=>{s.destroy()},onDestroyed:()=>{window.removeEventListener("keyup",a)},steps:window.vrts_admin_vars.onboarding.steps.map((t=>({element:t.element,popover:{title:t.title,description:t.description,side:t.side||"left",align:t.align||"start"}})))}),a=t=>{"Escape"===t.key&&s.destroy()};window.addEventListener("keyup",a),s.drive(),async function(){const{currentUserId:i,onboarding:{id:s}}=window.vrts_admin_vars,n=(await(0,t.resolveSelect)(e.store).getEntityRecord("root","user",i)).vrts_onboarding||{},r=n.completed||[];(0,t.dispatch)(e.store).saveEntityRecord("root","user",{id:i,vrts_onboarding:{...n,completed:[...r,s].filter(((t,e,i)=>i.indexOf(t)===e))}})}()}var F;F=i(962),i(300),i(328),F.keys().forEach(F)})()})(); -
visual-regression-tests/tags/2.0.2/includes/features/class-enqueue-scripts.php
r3178219 r3202952 101 101 102 102 // Localize scripts. 103 $test = (object) Test::get_item_by_post_id( $post->ID ); 103 $test_id = Test::get_item_id( $post->ID ); 104 $test = (object) Test::get_item( $test_id ); 104 105 105 106 wp_localize_script( … … 109 110 'plugin_name' => vrts()->get_plugin_info( 'name' ), 110 111 'rest_url' => esc_url_raw( rest_url() ), 111 'has_post_alert' => Test::has_post_alert( $post->ID ),112 'has_post_alert' => isset( $test->current_alert_id ) ? ! is_null( $test->current_alert_id ) : false, 112 113 'base_screenshot_url' => Image_Helpers::get_screenshot_url( $test, 'base' ), 113 114 'base_screenshot_date' => Date_Time_Helpers::get_formatted_date_time( $test->base_screenshot_date ?? null ), -
visual-regression-tests/tags/2.0.2/includes/features/class-metaboxes.php
r3178219 r3202952 110 110 public function render_metabox() { 111 111 global $post; 112 112 113 $post_id = $post->ID ? $post->ID : 0; 113 $run_tests_checked = ! empty( Test::get_item_id( $post_id ) ); 114 115 $alert_id = Test::get_alert_id( $post_id ); 114 $test_id = Test::get_item_id( $post_id ); 115 $test = (object) Test::get_item( $test_id ); 116 117 $run_tests_checked = ! is_null( $test_id ); 118 $alert_id = $test->current_alert_id ?? null; 116 119 $testing_status_instructions = ''; 120 117 121 if ( $alert_id ) { 118 122 $alert_link = Url_Helpers::get_alert_page( $alert_id ); … … 125 129 } 126 130 127 $test_id = Test::get_item_id( $post_id );128 $test = (object) Test::get_item( $test_id );129 130 131 vrts()->component('metabox-classic-editor', [ 131 132 'post_id' => $post_id, … … 134 135 'run_tests_checked' => $run_tests_checked, 135 136 'field_test_status_key' => self::$field_test_status_key, 136 'has_post_alert' => Test::has_post_alert( $post_id ),137 'has_post_alert' => isset( $test->current_alert_id ) ? ! is_null( $test->current_alert_id ) : false, 137 138 'base_screenshot_url' => Image_Helpers::get_screenshot_url( $test, 'base' ), 138 'base_screenshot_date' => Date_Time_Helpers::get_formatted_date_time( $test->base_screenshot_date ),139 'base_screenshot_date' => Date_Time_Helpers::get_formatted_date_time( $test->base_screenshot_date ?? null ), 139 140 'testing_status_instructions' => $testing_status_instructions, 140 141 'is_new_test' => self::is_new_test( $post_id ), -
visual-regression-tests/tags/2.0.2/includes/features/class-service.php
r3178219 r3202952 49 49 */ 50 50 private static function create_site() { 51 if ( ! empty( get_option( 'vrts_project_id' ) ) || ! empty( get_option( 'vrts_project_token' )) ) {51 if ( static::is_connected() ) { 52 52 return; 53 53 } … … 64 64 ]; 65 65 66 if ( ! empty( get_option( 'vrts_project_id' ) ) && ! empty( get_option( 'vrts_project_token' ) ) ) { 67 $parameters['project_id'] = get_option( 'vrts_project_id' ); 68 $parameters['project_token'] = get_option( 'vrts_project_token' ); 69 $parameters['project_secret'] = get_option( 'vrts_project_secret' ); 70 $parameters['tests'] = Test::get_all_service_test_ids(); 71 } 72 66 73 $service_request = self::rest_service_request( $service_api_route, $parameters, 'post' ); 67 74 68 if ( 201 === $service_request['status_code'] ) { 75 delete_option( 'vrts_disconnected' ); 76 if ( 201 === $service_request['status_code'] || 200 === $service_request['status_code'] ) { 69 77 $data = $service_request['response']; 70 78 … … 78 86 79 87 return true; 88 } else { 89 update_option( 'vrts_disconnected', 1 ); 80 90 } 81 91 return false; … … 206 216 207 217 /** 218 * Send request to server to resume tests. 219 */ 220 public static function resume_tests() { 221 $service_project_id = get_option( 'vrts_project_id' ); 222 $service_api_route = 'sites/' . $service_project_id; 223 self::rest_service_request( $service_api_route . '/resume', [], 'post' ); 224 } 225 226 /** 208 227 * Add homepage as a default test. 209 228 */ … … 298 317 299 318 /** 319 * Get test runs from the service. 320 * 321 * @param string[] $test_run_ids the test run ids. 322 */ 323 public static function fetch_test_runs( $test_run_ids ) { 324 $service_project_id = get_option( 'vrts_project_id' ); 325 $service_api_route = 'sites/' . $service_project_id . '/runs'; 326 $service_api_route = add_query_arg( 'ids', implode( ',', $test_run_ids ), $service_api_route ); 327 return self::rest_service_request( $service_api_route, [], 'get' ); 328 } 329 330 /** 300 331 * Delete project from the service. 301 332 */ … … 303 334 $service_project_id = get_option( 'vrts_project_id' ); 304 335 $service_api_route = 'sites/' . $service_project_id; 305 self::rest_service_request( $service_api_route, [], 'delete' ); 336 $response = self::rest_service_request( $service_api_route, [], 'delete' ); 337 if ( 200 === $response['status_code'] ) { 338 update_option( 'vrts_disconnected', 1 ); 339 } 306 340 } 307 341 … … 325 359 */ 326 360 public static function is_connected() { 327 return (bool) get_option( 'vrts_project_id' ) && (bool) get_option( 'vrts_project_token' );361 return ! (bool) get_option( 'vrts_disconnected' ) && (bool) get_option( 'vrts_project_id' ) && (bool) get_option( 'vrts_project_token' ); 328 362 } 329 363 -
visual-regression-tests/tags/2.0.2/includes/features/class-settings-page.php
r3178219 r3202952 6 6 use Vrts\Core\Utilities\Url_Helpers; 7 7 use Vrts\Features\Subscription; 8 use Vrts\Services\Test_Service; 8 9 9 10 class Settings_Page { … … 298 299 $parameters = [ 299 300 'screenshot_options' => [ 300 'clickSelectors' => $new,301 'clickSelectors' => $new, 301 302 ], 302 303 ]; 303 304 304 305 $response = Service::rest_service_request( $service_api_route, $parameters, 'put' ); 306 307 $service = new Test_Service(); 308 $service->resume_tests(); 305 309 } 306 310 } -
visual-regression-tests/tags/2.0.2/includes/features/class-test-runs-page.php
r3178219 r3202952 94 94 95 95 if ( $run ) { 96 $service = new Test_Run_Service();97 $service->update_latest_alert_for_all_tests( $run );98 99 96 $tests = $this->prepare_tests( maybe_unserialize( $run->tests ) ); 100 97 $alerts = $this->prepare_alerts( $run_id, $tests ); -
visual-regression-tests/tags/2.0.2/includes/features/class-tests-page.php
r3178219 r3202952 38 38 remove_submenu_page( 'vrts', 'vrts' ); 39 39 40 add_action( 'load-' . $submenu_page, [ $this, 'screen_option' ] );41 40 add_action( 'load-' . $submenu_page, [ $this, 'add_assets' ] ); 42 41 add_action( 'load-' . $submenu_page, [ $this, 'submit_add_new_test' ] ); … … 45 44 add_action( 'load-' . $submenu_page, [ $this, 'process_column_actions' ] ); 46 45 add_action( 'load-' . $submenu_page, [ $this, 'init_notifications' ] ); 47 }48 49 /**50 * Add screen options.51 */52 public function screen_option() {53 // Set Screen Option.54 $option = 'per_page';55 $args = [56 'default' => 20,57 'option' => 'vrts_tests_per_page',58 ];59 60 // screen_option are user meta.61 add_screen_option( $option, $args );62 46 } 63 47 -
visual-regression-tests/tags/2.0.2/includes/features/class-tests.php
r3178219 r3202952 143 143 $language = $translation['language']; 144 144 if ( 'plugin' === $type ) { 145 $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' .$slug );145 $plugin_data = static::get_plugin_data( $slug ); 146 146 $name = $plugin_data['Name']; 147 147 } elseif ( 'theme' === $type ) { … … 157 157 'language' => $language, 158 158 ]; 159 } 160 161 /** 162 * Get plugin data. 163 * 164 * @param string $plugin_slug_or_file Plugin slug or file. 165 * 166 * @return array 167 */ 168 private static function get_plugin_data( $plugin_slug_or_file ) { 169 $plugin_file = WP_PLUGIN_DIR . '/' . $plugin_slug_or_file; 170 $plugin_data = get_plugin_data( $plugin_file ); 171 if ( empty( $plugin_data['Name'] ) ) { 172 $plugins = get_plugins(); 173 foreach ( $plugins as $file => $local_plugin_data ) { 174 $slug = dirname( $file ); 175 if ( $slug === $plugin_slug_or_file ) { 176 $plugin_data = $local_plugin_data; 177 break; 178 } 179 } 180 } 181 return $plugin_data; 159 182 } 160 183 -
visual-regression-tests/tags/2.0.2/includes/list-tables/class-test-runs-list-table.php
r3184288 r3202952 37 37 public function __construct() { 38 38 parent::__construct([ 39 'singular' => __( 'Run', 'visual-regression-tests' ),40 'plural' => __( 'Runs', 'visual-regression-tests' ),39 'singular' => 'vrts-run', 40 'plural' => 'vrts-runs', 41 41 'ajax' => false, 42 42 ]); -
visual-regression-tests/tags/2.0.2/includes/list-tables/class-test-runs-queue-list-table.php
r3178219 r3202952 22 22 public function __construct() { 23 23 parent::__construct([ 24 'singular' => ' test',25 'plural' => ' tests',24 'singular' => 'vrts-run-queue', 25 'plural' => 'vrts-run-queues', 26 26 'ajax' => false, 27 27 ]); … … 109 109 $sortable = $this->get_sortable_columns(); 110 110 $this->_column_headers = [ $columns, $hidden, $sortable ]; 111 112 // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing -- It's the list search query parameter. 113 $filter_status_query = isset( $_REQUEST['status'] ) && '' !== $_REQUEST['status'] ? sanitize_text_field( wp_unslash( $_REQUEST['status'] ) ) : null; 114 115 $args = [ 116 'number' => -1, 117 'filter_status' => $filter_status_query, 118 ]; 119 120 $this->items = Test_Run::get_queued_items( $args ); 121 $total_items = count( $this->items ); 122 123 $this->set_pagination_args([ 124 'total_items' => $total_items, 125 'per_page' => 100000, 126 ]); 111 $this->items = Test_Run::get_queued_items(); 127 112 } 128 113 -
visual-regression-tests/tags/2.0.2/includes/models/class-alert.php
r3178219 r3202952 209 209 210 210 /** 211 * Get latest alert id by post id212 *213 * @param int $post_id the id of the post.214 * @param int $alert_state the state of the item.215 *216 * @return int217 */218 public static function get_latest_alert_id_by_post_id( $post_id = 0, $alert_state = 0 ) {219 global $wpdb;220 221 $alerts_table = Alerts_Table::get_table_name();222 223 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok.224 return (int) $wpdb->get_var(225 $wpdb->prepare(226 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok.227 "SELECT id FROM $alerts_table228 WHERE alert_state = %d229 AND post_id = %d230 ORDER BY id DESC231 LIMIT 1",232 $alert_state,233 $post_id234 )235 );236 }237 238 /**239 211 * Get latest alert ids by post ids 240 212 * -
visual-regression-tests/tags/2.0.2/includes/models/class-test-run.php
r3184288 r3202952 258 258 259 259 /** 260 * Delete duplicate test runs by service_test_run_id from database. 261 * 262 * @return void 263 */ 264 public static function delete_duplicates() { 265 global $wpdb; 266 267 $test_runs_table = Test_Runs_Table::get_table_name(); 268 269 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 270 $wpdb->query( 271 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 272 "DELETE t1 FROM $test_runs_table t1 INNER JOIN $test_runs_table t2 WHERE t1.id > t2.id AND t1.service_test_run_id = t2.service_test_run_id" 273 ); 274 } 275 276 /** 277 * Delete empty test runs from database. 278 * 279 * @return void 280 */ 281 public static function delete_empty() { 282 global $wpdb; 283 284 $test_runs_table = Test_Runs_Table::get_table_name(); 285 286 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 287 $wpdb->query( 288 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 289 "DELETE FROM $test_runs_table WHERE service_test_run_id IS NULL" 290 ); 291 } 292 293 /** 260 294 * Insert multiple test data 261 295 * … … 408 442 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 409 443 return $wpdb->delete( $test_runs_table, [ 'id' => $test_id ] ); 444 } 445 446 /** 447 * Delete all not finished test runs from database. 448 * 449 * @return int 450 */ 451 public static function delete_all_not_finished() { 452 global $wpdb; 453 454 $test_runs_table = Test_Runs_Table::get_table_name(); 455 456 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 457 return $wpdb->query( "DELETE FROM $test_runs_table WHERE finished_at IS NULL" ); 410 458 } 411 459 … … 561 609 return $test_run; 562 610 } 611 612 /** 613 * Get test run by service test run id 614 * 615 * @return mixed 616 */ 617 public static function get_stalled_test_run_ids() { 618 global $wpdb; 619 620 $test_runs_table = Test_Runs_Table::get_table_name(); 621 622 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 623 $test_runs = $wpdb->get_results( 624 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 625 "SELECT service_test_run_id FROM $test_runs_table 626 WHERE ( finished_at IS NULL AND started_at IS NULL AND scheduled_at < DATE_SUB( now(), INTERVAL 1 HOUR ) ) 627 OR ( finished_at IS NULL AND started_at IS NOT NULL AND started_at < DATE_SUB( NOW(), INTERVAL 1 HOUR ) ) 628 OR ( finished_at IS NULL AND started_at IS NULL AND scheduled_at IS NULL ) 629 " 630 ); 631 return $test_runs; 632 } 563 633 } -
visual-regression-tests/tags/2.0.2/includes/models/class-test.php
r3178219 r3202952 100 100 tests.status, 101 101 tests.post_id, 102 tests.current_alert_id,102 alerts.latest_id as current_alert_id, 103 103 tests.service_test_id, 104 104 tests.base_screenshot_url, … … 110 110 posts.post_title, 111 111 CASE 112 WHEN tests.current_alert_id is not null THEN '6-has-alert'112 WHEN alerts.latest_id is not null THEN '6-has-alert' 113 113 WHEN tests.service_test_id is null THEN '1-post-not-published' 114 114 WHEN tests.base_screenshot_date is null THEN '2-waiting' … … 118 118 END as calculated_status, 119 119 CASE 120 WHEN tests.current_alert_id is not null THEN alerts.target_screenshot_finish_date120 WHEN alerts.latest_id is not null THEN alerts.target_screenshot_finish_date 121 121 WHEN tests.service_test_id is null THEN tests.base_screenshot_date 122 122 WHEN tests.base_screenshot_date is null THEN tests.base_screenshot_date … … 127 127 FROM $tests_table as tests 128 128 INNER JOIN $wpdb->posts as posts ON posts.id = tests.post_id 129 LEFT JOIN $alerts_table as alerts ON alerts.id = tests.current_alert_id 129 LEFT JOIN ( 130 SELECT MAX(id) as latest_id, post_id, target_screenshot_finish_date 131 FROM $alerts_table 132 WHERE alert_state = 0 133 GROUP BY post_id 134 ) as alerts ON tests.post_id = alerts.post_id 130 135 GROUP BY tests.id 131 136 ) tests … … 201 206 202 207 $tests_table = Tests_Table::get_table_name(); 208 $alerts_table = Alerts_Table::get_table_name(); 203 209 204 210 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 205 211 return $wpdb->get_row( 206 212 $wpdb->prepare( 207 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 208 "SELECT * FROM $tests_table WHERE id = %d", 213 // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 214 "SELECT 215 test.id, 216 test.status, 217 test.post_id, 218 alert.latest_id as current_alert_id, 219 test.service_test_id, 220 test.base_screenshot_url, 221 test.base_screenshot_date, 222 test.last_comparison_date, 223 test.next_run_date, 224 test.is_running, 225 test.hide_css_selectors 226 FROM $tests_table as test 227 LEFT JOIN ( 228 SELECT MAX(id) as latest_id, post_id 229 FROM $alerts_table 230 WHERE alert_state = 0 231 GROUP BY post_id 232 ) alert ON test.post_id = alert.post_id 233 WHERE id = %d", 209 234 $id 235 // phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared 210 236 ) 211 237 ); … … 344 370 345 371 /** 346 * Get the id of the alert347 *348 * @param int $post_id the id of the post.349 *350 * @return int351 */352 public static function get_alert_id( $post_id = 0 ) {353 global $wpdb;354 355 $tests_table = Tests_Table::get_table_name();356 357 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok.358 return $wpdb->get_var(359 $wpdb->prepare(360 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok.361 "SELECT current_alert_id FROM $tests_table WHERE post_id = %d",362 $post_id363 )364 );365 }366 367 /**368 372 * Get post id by test id 369 373 * … … 431 435 432 436 return $service_test_id; 433 }434 435 /**436 * Does an alert exits?437 *438 * @param int $post_id the id of the post.439 *440 * @return boolean441 */442 public static function has_post_alert( $post_id = 0 ) {443 global $wpdb;444 445 $tests_table = Tests_Table::get_table_name();446 447 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok.448 $current_alert_id = $wpdb->get_var(449 $wpdb->prepare(450 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok.451 "SELECT current_alert_id FROM $tests_table WHERE post_id = %d",452 $post_id453 )454 );455 456 return null === $current_alert_id ? false : true;457 437 } 458 438 … … 590 570 591 571 /** 592 * Set alert for a test.593 *594 * @param int $post_id The id of the post.595 * @param int $alert_id The id of the alert.596 */597 public static function set_alert( $post_id = 0, $alert_id = 0 ) {598 global $wpdb;599 600 $alert_id = 0 === $alert_id ? null : $alert_id;601 $tests_table = Tests_Table::get_table_name();602 $data = [ 'current_alert_id' => $alert_id ];603 $where = [ 'post_id' => $post_id ];604 605 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok.606 return $wpdb->update( $tests_table, $data, $where );607 }608 609 /**610 572 * Get post status 611 573 * … … 804 766 ], 805 767 [ 'id' => $test_id ] 768 ); 769 } 770 771 /** 772 * Unset screenshots for tests. 773 */ 774 public static function reset_base_screenshots() { 775 global $wpdb; 776 777 $table_test = Tests_Table::get_table_name(); 778 779 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 780 return $wpdb->query( 781 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 782 "UPDATE $table_test SET base_screenshot_url = null, base_screenshot_date = null, last_comparison_date = null, next_run_date = null, is_running = null" 806 783 ); 807 784 } -
visual-regression-tests/tags/2.0.2/includes/rest-api/class-rest-alerts-controller.php
r3178219 r3202952 3 3 namespace Vrts\Rest_Api; 4 4 5 use Vrts\Services\Test_Service;6 5 use WP_Error; 7 6 use WP_REST_Server; … … 107 106 Alert::set_alert_state( $id, $should_mark_as_read ); 108 107 109 $test_service = new Test_Service();110 $test_service->update_latest_alert( $alert->post_id );111 112 108 return new WP_REST_Response( true, 200 ); 113 109 } -
visual-regression-tests/tags/2.0.2/includes/rest-api/class-rest-test-runs-controller.php
r3178219 r3202952 3 3 namespace Vrts\Rest_Api; 4 4 5 use Vrts\Services\Test_Run_Service;6 5 use WP_Error; 7 6 use WP_REST_Server; … … 73 72 Alert::set_read_status_by_test_run( $id, $should_mark_as_read ); 74 73 75 $service = new Test_Run_Service();76 $service->update_latest_alert_for_all_tests( $test_run );77 78 74 return new WP_REST_Response( true, 200 ); 79 75 } -
visual-regression-tests/tags/2.0.2/includes/services/class-test-run-service.php
r3184288 r3202952 3 3 namespace Vrts\Services; 4 4 5 use Vrts\Core\Utilities\Url_Helpers;6 5 use Vrts\Features\Service; 7 6 use Vrts\Features\Subscription; 8 use Vrts\Models\Alert;9 7 use Vrts\Models\Test; 10 8 use Vrts\Models\Test_Run; … … 17 15 * 18 16 * @param array $data Data. 17 * @param bool $with_cleanup With cleanup. 19 18 * 20 19 * @return boolean 21 20 */ 22 public function update_run_from_api_data( $data ) {21 public function update_run_from_api_data( $data, $with_cleanup = true ) { 23 22 $run_id = $data['run_id']; 23 24 if ( empty( $run_id ) ) { 25 return false; 26 } 27 24 28 $test_run = Test_Run::get_by_service_test_run_id( $run_id ); 25 29 … … 48 52 'trigger_notes' => $data['trigger_notes'], 49 53 'trigger_meta' => maybe_serialize( $data['trigger_meta'] ), 50 ], true );54 ], true, $with_cleanup ); 51 55 52 56 if ( $test_run_just_finished && ! empty( $alert_ids ) ) { … … 94 98 * @param array $data Data. 95 99 * @param bool $update Update. 100 * @param bool $with_cleanup With cleanup. 96 101 * 97 102 * @return boolean 98 103 */ 99 public function create_test_run( $service_test_run_id, $data, $update = false ) {104 public function create_test_run( $service_test_run_id, $data, $update = false, $with_cleanup = true ) { 100 105 $test_run = Test_Run::get_by_service_test_run_id( $service_test_run_id ); 101 106 … … 103 108 return false; 104 109 } 105 returnTest_Run::save(array_merge( $data, [110 $test_run_id = Test_Run::save(array_merge( $data, [ 106 111 'service_test_run_id' => $service_test_run_id, 107 112 ]), $test_run->id ?? null); 113 if ( $with_cleanup ) { 114 Test_Run::delete_duplicates(); 115 Test_Run::delete_empty(); 116 $this->check_stalled_test_runs(); 117 } 118 return $test_run_id; 119 } 120 121 /** 122 * Check stalled test runs. 123 * 124 * @return void 125 */ 126 public function check_stalled_test_runs() { 127 $test_run_ids = array_column( Test_Run::get_stalled_test_run_ids(), 'service_test_run_id' ); 128 if ( empty( $test_run_ids ) ) { 129 return; 130 } 131 $response = Service::fetch_test_runs( $test_run_ids ); 132 if ( 200 === $response['status_code'] ) { 133 $test_runs = $response['response']['data'] ?? []; 134 foreach ( $test_runs as $test_run ) { 135 $this->update_run_from_api_data( $test_run, false ); 136 } 137 $missing_test_run_ids = array_diff( $test_run_ids, array_column( $test_runs, 'run_id' ) ); 138 foreach ( $missing_test_run_ids as $missing_test_run_id ) { 139 Test_Run::delete_by_service_test_run_id( $missing_test_run_id ); 140 } 141 } 108 142 } 109 143 … … 120 154 $updates = $response['run_updates']; 121 155 foreach ( $updates as $update ) { 122 $this->update_run_from_api_data( $update );156 $this->update_run_from_api_data( $update, false ); 123 157 } 124 158 } … … 133 167 } 134 168 } 135 136 /**137 * Update latest alert for all tests.138 *139 * @param object $test_run Test run.140 *141 * @return void142 */143 public function update_latest_alert_for_all_tests( $test_run ) {144 $tests = maybe_unserialize( $test_run->tests );145 146 if ( ! empty( $tests ) ) {147 $service = new Test_Service();148 $service->update_latest_alerts( $tests );149 }150 }151 169 } -
visual-regression-tests/tags/2.0.2/includes/services/class-test-service.php
r3178219 r3202952 36 36 'is_running' => false, 37 37 ]; 38 if ( $alert_id ) {39 $update_data['current_alert_id'] = $alert_id;40 }41 38 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 42 39 return $wpdb->update( … … 386 383 $args['service_test_id'] = null; 387 384 unset( $args['id'] ); 385 unset( $args['current_alert_id'] ); 388 386 Test::save( $args, $test->id ); 389 387 return $test; … … 465 463 466 464 /** 467 * Update latest alert. 468 * 469 * @param int $post_id Post id. 470 * 471 * @return int|false 472 */ 473 public function update_latest_alert( $post_id ) { 474 $latest_alert_id = Alert::get_latest_alert_id_by_post_id( $post_id ); 475 return Test::set_alert( $post_id, $latest_alert_id ); 476 } 477 478 /** 479 * Update latest alerts. 480 * 481 * @param array $test_ids Test ids. 482 * 483 * @return int|false|void 484 */ 485 public function update_latest_alerts( $test_ids ) { 486 $test_ids = array_map( 'intval', $test_ids ); 487 $test_ids = array_filter( $test_ids ); 488 if ( ! empty( $test_ids ) ) { 489 global $wpdb; 490 $table_test = Tests_Table::get_table_name(); 491 $table_alert = Alerts_Table::get_table_name(); 492 493 $placeholders = implode( ',', array_fill( 0, count( $test_ids ), '%d' ) ); 494 495 $query = "UPDATE $table_test t 496 LEFT JOIN ( 497 SELECT a.post_id, MAX(a.id) as latest_id 498 FROM $table_alert a 499 WHERE a.alert_state = 0 500 GROUP BY a.post_id 501 ) a ON t.post_id = a.post_id 502 SET t.current_alert_id = a.latest_id 503 WHERE t.id IN ( $placeholders )"; 504 505 // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 506 return $wpdb->query( $wpdb->prepare( $query, $test_ids ) ); 507 }//end if 465 * Resume tests. 466 */ 467 public function resume_tests() { 468 Test::reset_base_screenshots(); 469 Service::resume_tests(); 508 470 } 509 471 } -
visual-regression-tests/tags/2.0.2/includes/tables/class-tests-table.php
r3012504 r3202952 5 5 class Tests_Table { 6 6 7 const DB_VERSION = '1. 4';7 const DB_VERSION = '1.5'; 8 8 const TABLE_NAME = 'vrts_tests'; 9 9 … … 41 41 } 42 42 43 if ( $installed_version && version_compare( $installed_version, '1.5', '<' ) ) { 44 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 45 $wpdb->query( 46 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's OK. 47 "ALTER TABLE {$table_name} DROP COLUMN current_alert_id;" 48 ); 49 } 50 43 51 $sql = "CREATE TABLE {$table_name} ( 44 52 id bigint(20) unsigned NOT NULL AUTO_INCREMENT, 45 53 status boolean NOT NULL, 46 54 post_id bigint(20), 47 current_alert_id bigint(20),48 55 service_test_id varchar(40), 49 56 base_screenshot_url varchar(2048), -
visual-regression-tests/tags/2.0.2/readme.txt
r3184288 r3202952 3 3 Tags: vrts, visual regression, visual, regression, tests 4 4 Requires at least: 5.0 5 Tested up to: 6. 6.26 Stable tag: 2.0. 15 Tested up to: 6.7 6 Stable tag: 2.0.2 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 182 182 == Changelog == 183 183 184 = 2.0.2 = 185 * Fixed empty and stalled Runs 186 * Fixed runs queue pagination 187 * Fixed wrong test status and the associated current alert 188 * Fixed wrong translations info for update trigger 189 184 190 = 2.0.1 = 185 191 * Fixed issue with wrong alerts count in Runs -
visual-regression-tests/tags/2.0.2/visual-regression-tests.php
r3184288 r3202952 4 4 * Plugin URI: https://vrts.app/ 5 5 * Description: Find issues before others do – every time. With automatic screenshots, daily comparisons, and instant tests after WordPress and plugin updates. 6 * Version: 2.0. 16 * Version: 2.0.2 7 7 * Requires at least: 5.0 8 8 * Requires PHP: 7.0 -
visual-regression-tests/trunk/assets/scripts/onboarding.js
r3092124 r3202952 69 69 onboarding.destroy(); 70 70 }, 71 onDestroyed: () => { 72 window.removeEventListener( 'keyup', onKeyup ); 73 }, 71 74 steps: window.vrts_admin_vars.onboarding.steps.map( ( step ) => { 72 75 return { … … 81 84 } ), 82 85 } ); 86 87 const onKeyup = ( event ) => { 88 if ( event.key === 'Escape' ) { 89 onboarding.destroy(); 90 } 91 }; 92 93 window.addEventListener( 'keyup', onKeyup ); 83 94 84 95 onboarding.drive(); -
visual-regression-tests/trunk/build/admin.asset.php
r3184288 r3202952 1 <?php return array('dependencies' => array('wp-core-data', 'wp-data', 'wp-i18n'), 'version' => ' a1012021af3fecff4971');1 <?php return array('dependencies' => array('wp-core-data', 'wp-data', 'wp-i18n'), 'version' => '758bfe98366003db24c6'); -
visual-regression-tests/trunk/build/admin.js
r3178219 r3202952 1 (()=>{var t={300:(t,e,i)=>{var s={"./admin-header/_style.scss":179,"./admin-notification/_style.scss":809,"./alert-actions/_style.scss":168,"./comparisons/_style.scss":234,"./metabox-classic-editor/_style.scss":271,"./modal/_style.scss":799,"./settings-page/_style.scss":793,"./test-run-alerts/_style.scss":800,"./test-run-info/_style.scss":177,"./test-run-page/_style.scss":364,"./test-run-pagination/_style.scss":821,"./test-run-receipt/_style.scss":305,"./test-run-success/_style.scss":140,"./test-runs-page/_style.scss":479,"./tests-page/_style.scss":423,"./upgrade-page/_style.scss":946};function n(t){var e=r(t);return i(e)}function r(t){if(!i.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}n.keys=function(){return Object.keys(s)},n.resolve=r,t.exports=n,n.id=300},962:(t,e,i)=>{var s={"./admin-notification/script.js":415,"./alert-actions/script.js":303,"./comparisons/script.js":784,"./modal/script.js":417,"./settings-page/script.js":563,"./test-run-alerts/script.js":650,"./test-run-page/script.js":74,"./test-run-pagination/script.js":191,"./test-run-success/script.js":486,"./test-runs-page/script.js":937,"./tests-page/script.js":318,"./upgrade-page/script.js":92};function n(t){var e=r(t);return i(e)}function r(t){if(!i.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}n.keys=function(){return Object.keys(s)},n.resolve=r,t.exports=n,n.id=962},328:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=328,t.exports=e},407:()=>{class t extends window.HTMLElement{static get observedAttributes(){return["time"]}attributeChangedCallback(t,e,i){"time"===t&&(this.time=new Date(i),this.update())}update(){var t;this.innerText=`${function(t){const{__}=wp.i18n,i=new Date;i.setHours(0,0,0,0);const s=new Date(t);s.setHours(0,0,0,0);const n=(s-i)/864e5;return 0===n?__("Today","visual-regression-testing"):1===n?__("Tomorrow","visual-regression-testing"):-1===n?__("Yesterday","visual-regression-testing"):e(t,"D, Y/m/d")}(this.time)} at ${t=this.time,e(t,"g:i a")}`}}function e(t,e){const i=t=>t<10?`0${t}`:t,s=i(t.getDate()),n=i(t.getMonth()+1),r=t.getFullYear(),a=t.getFullYear(),o=t.getHours(),h=i(t.getMinutes()),l=t.getSeconds(),p=t.getHours()%12||12,d=t.getHours()>=12?"pm":"am",c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][t.getDay()];return e.replace("d",s).replace("m",n).replace("y",r).replace("Y",a).replace("H",o).replace("i",h).replace("s",l).replace("g",p).replace("a",d).replace("D",c)}window.customElements.define("vrts-relative-time",t)},415:(t,e,i)=>{"use strict";i.r(e),i(407),jQuery(document).ready((function(t){t(document).on("click",".vrts-notice .notice-dismiss",(e=>{if(ajaxurl){const i=e.target.parentElement.querySelector("#_wpnonce").value,s=e.target.parentElement.dataset.view,n={action:"vrts_admin_notice_dismiss",url:ajaxurl,security:i,view:s};t.ajax({type:"POST",url:ajaxurl,data:n})}}))}))},303:()=>{"use strict";class t extends window.HTMLElement{constructor(){super(),this.dropdown=null,this.setAsReadTimeout=null,this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$actionButtons=this.querySelectorAll("[data-vrts-alert-action]"),this.$hideElementsForm=this.querySelector("[data-vrts-hide-elements-form]"),this.$hideElementsModal=document.getElementById("vrts-modal-hide-elements"),this.$spinner=this.querySelector(".spinner"),this.$success=this.querySelector(".vrts-alert-actions__modal-action-success")}bindFunctions(){this.onActionClick=this.onActionClick.bind(this),this.onHideElementsFormSubmit=this.onHideElementsFormSubmit.bind(this),this.onHideElementsModalClose=this.onHideElementsModalClose.bind(this)}bindEvents(){this.$actionButtons.forEach((t=>{t.addEventListener("click",this.onActionClick)})),this.$hideElementsForm.addEventListener("submit",this.onHideElementsFormSubmit),this.$hideElementsModal.addEventListener("hide",this.onHideElementsModalClose)}connectedCallback(){this.dropdown=function(t){const e=t.querySelector("[data-vrts-dropdown-open]"),i=t=>{const e=t.currentTarget,i=e.getAttribute("aria-controls"),s=document.getElementById(i),n="true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",!n),s.setAttribute("aria-hidden",n)},s=i=>{t&&t!==i.target&&!t.contains(i.target)&&(e.setAttribute("aria-expanded",!1),document.getElementById(e.getAttribute("aria-controls")).setAttribute("aria-hidden",!0))};return e?.addEventListener("click",i),document.addEventListener("click",s),()=>{e?.removeEventListener("click",i),document.removeEventListener("click",s)}}(this),this.setAsReadOnView()}setAsReadOnView(){this.$actionButtons.forEach((t=>{const e="read-status"===t.getAttribute("data-vrts-alert-action"),i="primary"===t.getAttribute("data-vrts-action-state");e&&i&&(this.setAsReadTimeout=setTimeout((()=>{t.click()}),1e3))}))}onHideElementsFormSubmit(t){t.preventDefault();const e=t.currentTarget,i=new window.FormData(e),s=i.get("post_id");this.$spinner.classList.add("is-active"),this.$success.classList.remove("is-active"),fetch(`${window.vrts_admin_vars.rest_url}/tests/post/${s}`,{method:"PUT",headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce},body:new URLSearchParams(i)}).then((t=>t.json())).then((()=>{this.$spinner.classList.remove("is-active"),this.$success.classList.add("is-active")}))}onHideElementsModalClose(){this.$success.classList.remove("is-active")}onActionClick(t){const e=t.currentTarget,i="true"===e.getAttribute("data-vrts-loading"),s="primary"===e.getAttribute("data-vrts-action-state");if(i)return;const n=e.getAttribute("data-vrts-alert-action"),r=e.getAttribute("data-vrts-alert-id");this.handleAction(n,e,r,s)}handleAction(t,e,i,s){const n=`${window.vrts_admin_vars.rest_url}/alerts/${i}/${t}`,r=s?"POST":"DELETE";let a=0,o=null;const h=setTimeout((()=>{e.setAttribute("data-vrts-loading","true");const t=window.Date.now();o=setInterval((()=>{a=window.Date.now()-t}),50)}),200);fetch(n,{method:r,headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce}}).then((t=>t.json())).then((()=>{const n=a>0?Math.abs(a-400):0;setTimeout((()=>{e.setAttribute("data-vrts-loading","false"),e.setAttribute("data-vrts-action-state",s?"secondary":"primary");const n=document.getElementById(`vrts-alert-${i}`);n&&("false-positive"===t&&n.setAttribute("data-vrts-false-positive",s?"true":"false"),"read-status"===t&&n.setAttribute("data-vrts-state",s?"read":"unread"))}),n),clearTimeout(h),clearInterval(o)}))}disconnectedCallback(){this.dropdown?.(),clearTimeout(this.setAsReadTimeout),this.$actionButtons?.forEach((t=>{t.removeEventListener("click",this.onActionClick)})),this.$hideElementsForm?.removeEventListener("submit",this.onHideElementsFormSubmit),this.$hideElementsModal?.removeEventListener("hide",this.onHideElementsModalClose)}}window.customElements.define("vrts-alert-actions",t)},784:(t,e,i)=>{class s extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents(),this.init()}resolveElements(){this.$content=document.querySelector("[data-vrts-fullscreen]"),this.$fullscreen=this.querySelector("[data-vrts-fullscreen-open]"),this.$control=this.querySelector("[data-vrts-comparisons-slider-control]"),this.$diffIndicator=this.querySelector("[data-vrts-comparisons-diff-inidicator]"),this.$comparison=this.querySelector('[data-vrts-comparisons-slot="comparison"] img')}bindFunctions(){this.onFullscreenToggle=this.onFullscreenToggle.bind(this),this.onControlChange=this.onControlChange.bind(this),this.onFullScreenChange=this.onFullScreenChange.bind(this),this.onLoadComparison=this.onLoadComparison.bind(this)}bindEvents(){this.$fullscreen.addEventListener("click",this.onFullscreenToggle),this.$control.addEventListener("input",this.onControlChange),document.addEventListener("fullscreenchange",this.onFullScreenChange)}init(){this.worker=new window.Worker(new URL(i(392),i.b)),this.worker.onmessage=this.onWorkerMessage.bind(this),this.$comparison.complete?this.onLoadComparison():this.$comparison.onload=this.onLoadComparison}onLoadComparison(){const t=this.createOffscreenCanvarImageData(this.$comparison);this.worker.postMessage({action:"analyzeImage",imageData:t})}createOffscreenCanvarImageData(t){const e=new window.OffscreenCanvas(t.naturalWidth,t.naturalHeight),i=e.getContext("2d");return i.drawImage(t,0,0),i.getImageData(0,0,e.width,e.height)}requestFullscreen(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()}exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}getFullscreenElement(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement}onFullscreenToggle(t){t.preventDefault(),this.getFullscreenElement()===this.$content?this.exitFullscreen():this.requestFullscreen(this.$content)}onFullScreenChange(){this.$content.setAttribute("data-vrts-fullscreen",this.getFullscreenElement()===this.$content)}onControlChange(t){this.style.setProperty("--vrts-comparisons-slider-position",`${t.target.value}%`)}onWorkerMessage(t){"analyzedImage"===t.data?.action&&this.highlightPixels(t.data.coloredPixels)}highlightPixels(t){const e=this.$diffIndicator.getContext("2d");this.$diffIndicator.width=this.$comparison.naturalWidth,this.$diffIndicator.height=this.$comparison.naturalHeight,e.clearRect(0,0,this.$comparison.naturalWidth,this.$comparison.naturalHeight),e.fillStyle="#cc1818",t.forEach((t=>{e.fillRect(0,t-2,e.canvas.width,3)}))}connectedCallback(){}disconnectedCallback(){this.$fullscreen?.removeEventListener("click",this.onFullscreenToggle),this.$control?.removeEventListener("input",this.onControlChange),document.removeEventListener("fullscreenchange",this.onFullScreenChange),this.worker?.terminate(),this.worker=null}}window.customElements.define("vrts-comparisons",s)},417:()=>{"use strict";const t=":not([inert]):not([inert] *)",e=':not([tabindex^="-"])',i=":not(:disabled)";var s=[`a[href]${t}${e}`,`area[href]${t}${e}`,`input:not([type="hidden"]):not([type="radio"])${t}${e}${i}`,`input[type="radio"]${t}${e}${i}`,`select${t}${e}${i}`,`textarea${t}${e}${i}`,`button${t}${e}${i}`,`details${t} > summary:first-of-type${e}`,`iframe${t}${e}`,`audio[controls]${t}${e}`,`video[controls]${t}${e}`,`[contenteditable]${t}${e}`,`[tabindex]${t}${e}`];function n(t){(t.querySelector("[autofocus]")||t).focus()}function r(t,e){if(e&&h(t))return t;if(function(t){return!(t.shadowRoot&&"-1"===t.getAttribute("tabindex")||t.matches(":disabled,[hidden],[inert]"))}(t))if(t.shadowRoot){let i=a(t.shadowRoot,e);for(;i;){const t=r(i,e);if(t)return t;i=o(i,e)}}else if("slot"===t.localName){const i=t.assignedElements({flatten:!0});e||i.reverse();for(const t of i){const i=r(t,e);if(i)return i}}else{let i=a(t,e);for(;i;){const t=r(i,e);if(t)return t;i=o(i,e)}}return!e&&h(t)?t:null}function a(t,e){return e?t.firstElementChild:t.lastElementChild}function o(t,e){return e?t.nextElementSibling:t.previousElementSibling}const h=t=>!t.shadowRoot?.delegatesFocus&&t.matches(s.join(","))&&!(t=>!(!t.matches("details:not([open]) *")||t.matches("details>summary:first-of-type"))||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))(t);function l(t=document){const e=t.activeElement;return e?e.shadowRoot?l(e.shadowRoot)||document.activeElement:e:null}function p(t,e){return function e(i){return i&&i!==document&&i!==window?(i.assignedSlot&&(i=i.assignedSlot),i.closest(t)||e(i.getRootNode().host)):null}(e)}const d="data-a11y-dialog";class c{$el;id;previouslyFocused;shown;constructor(t){this.$el=t,this.id=this.$el.getAttribute(d)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(t){return this.shown||this.fire("show",t).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=l(),"BODY"===this.previouslyFocused?.tagName&&t?.target&&(this.previouslyFocused=t.target),"focus"===t?.type?this.maintainFocus(t):n(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(t){return this.shown?(this.fire("hide",t).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this.previouslyFocused?.focus?.(),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0)),this):this}on(t,e,i){return this.$el.addEventListener(t,e,i),this}off(t,e,i){return this.$el.removeEventListener(t,e,i),this}fire(t,e){const i=new CustomEvent(t,{detail:e,cancelable:!0});return this.$el.dispatchEvent(i),i}handleTriggerClicks(t){const e=t.composedPath()[0],i=p(`[${d}-show="${this.id}"]`,e),s=p(`[${d}-hide="${this.id}"]`,e),n=p(`[${d}-hide]`,e)&&p('[aria-modal="true"]',e)===this.$el;i&&this.show(t),(s||n)&&this.hide(t)}bindKeypress(t){if(p('[aria-modal="true"]',l())!==this.$el)return;let e=!1;try{e=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==t.key||"alertdialog"===this.$el.getAttribute("role")||e||(t.preventDefault(),this.hide(t)),"Tab"===t.key&&function(t,e){const[i,s]=function(t){const e=r(t,!0);return[e,e?r(t,!1)||e:null]}(t);if(!i)return e.preventDefault();const n=l();e.shiftKey&&n===i?(s.focus(),e.preventDefault()):e.shiftKey||n!==s||(i.focus(),e.preventDefault())}(this.$el,t)}maintainFocus(t){t.target.closest(`[aria-modal="true"], [${d}-ignore-focus-trap]`)||n(this.$el)}}function u(){for(const t of document.querySelectorAll("[data-a11y-dialog]"))new c(t)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",u):u());class f extends window.HTMLElement{connectedCallback(){this.modal=new c(this)}disconnectedCallback(){this.modal.destroy()}}window.customElements.define("vrts-modal",f)},563:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$proSettingsCheckboxes=this.querySelectorAll('[data-a11y-dialog-show] input[type="checkbox"]')}bindFunctions(){this.onCheckboxChange=this.onCheckboxChange.bind(this)}bindEvents(){this.$proSettingsCheckboxes?.forEach((t=>{t.addEventListener("change",this.onCheckboxChange)}))}onCheckboxChange(t){t.preventDefault(),t.currentTarget.checked=!t.currentTarget.checked}disconnectedCallback(){this.$proSettingsCheckboxes?.forEach((t=>{t.removeEventListener("change",this.onCheckboxChange)}))}}window.customElements.define("vrts-settings",t)},650:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents(),this.unreadAlerts=new Set,this.initialUnreadAlerts=0,this.unreadRuns=parseInt(this.getAttribute("data-vrts-unread-runs"),10)}resolveElements(){this.$heading=this.querySelector(".vrts-test-run-alerts__heading"),this.$alerts=this.querySelectorAll("[data-vrts-alert]"),this.$actionButtons=this.querySelectorAll("[data-vrts-test-run-action]"),this.$runsMenuItems=[document.querySelector('.vrts-admin-header [href*="page=vrts-runs"]'),document.querySelector('#adminmenu .menu-top[href*="page=vrts"] .wp-menu-name'),document.querySelector('#adminmenu .wp-submenu a[href*="page=vrts-runs"]')]}bindFunctions(){this.handleAlertClick=this.handleAlertClick.bind(this),this.handleActionClick=this.handleActionClick.bind(this),this.updateRunsCount=this.updateRunsCount.bind(this)}bindEvents(){this.$alerts?.forEach((t=>{t.addEventListener("click",this.handleAlertClick)})),this.$actionButtons?.forEach((t=>{t.addEventListener("click",this.handleActionClick)}))}connectedCallback(){this.checkHeadingSticky(),this.checkReadStatusChange(),this.$alerts.forEach((t=>{"unread"===t.getAttribute("data-vrts-state")&&this.unreadAlerts.add(t.getAttribute("data-vrts-alert"))})),this.initialUnreadAlerts=this.unreadAlerts.size}checkHeadingSticky(){new window.IntersectionObserver((t=>{const e=!t[0].isIntersecting;this.$heading.setAttribute("data-is-sticky",e)}),{root:document,threshold:[1]}).observe(this.$heading)}checkReadStatusChange(){const t=new window.MutationObserver((t=>{t.forEach((t=>{if("attributes"===t.type&&"data-vrts-state"===t.attributeName){const e=t.target.getAttribute("data-vrts-alert"),i=t.target.getAttribute("data-vrts-state");if("receipt"===e)return;"unread"===i?this.unreadAlerts.add(e):this.unreadAlerts.delete(e),this.querySelector('[data-vrts-test-run-action="read-status"]').setAttribute("data-vrts-action-state",this.unreadAlerts.size>0?"primary":"secondary"),this.updateRunsCount(this.unreadAlerts.size)}}))}));this.$alerts.forEach((e=>{t.observe(e,{attributes:!0})}))}updateRunsCount(t){let e=this.unreadRuns;t>0&&0===this.initialUnreadAlerts?e+=1:0===t&&this.initialUnreadAlerts>0&&(e-=1),this.$runsMenuItems.forEach((t=>{if(t&&(t.querySelector(".update-plugins")?.remove(),t.textContent=t.textContent.replace(/\u00A0/g,""),e>0)){const i=document.createElement("span"),s=document.createTextNode(" ");i.classList.add("update-plugins"),i.textContent=e,t.appendChild(s),t.appendChild(i)}}))}handleAlertClick(t){t.preventDefault();const e=t.currentTarget;if("true"===e.getAttribute("data-vrts-current"))return;const i=e.getAttribute("href"),s=document.querySelector("vrts-comparisons")||document.querySelector("vrts-test-run-success"),n=document.querySelector("vrts-test-run-pagination");this.$alerts.forEach((t=>{t.setAttribute("data-vrts-current","false")})),e.setAttribute("data-vrts-current","true");const r=setTimeout((()=>{s.setAttribute("data-vrts-loading","true")}),200);fetch(i).then((t=>t.text())).then((t=>{const e=(new window.DOMParser).parseFromString(t,"text/html"),a=e.querySelector("vrts-comparisons")||e.querySelector("vrts-test-run-success"),o=e.querySelector("vrts-test-run-pagination");window.history.replaceState({},"",i),this.scrollTo(s.offsetTop-62),a&&s.replaceWith(a),o&&n.replaceWith(o),clearTimeout(r)}))}handleActionClick(t){const e=t.currentTarget,i="true"===e.getAttribute("data-vrts-loading"),s="primary"===e.getAttribute("data-vrts-action-state");if(i)return;const n=e.getAttribute("data-vrts-test-run-action"),r=e.getAttribute("data-vrts-test-run-id");this.handleAction(n,e,r,s)}handleAction(t,e,i,s){const n=`${window.vrts_admin_vars.rest_url}/test-runs/${i}/${t}`,r=s?"POST":"DELETE";let a=0,o=null;const h=setTimeout((()=>{e.setAttribute("data-vrts-loading","true");const t=window.Date.now();o=setInterval((()=>{a=window.Date.now()-t}),50)}),200);fetch(n,{method:r,headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce}}).then((t=>t.json())).then((()=>{const t=a>0?Math.abs(a-400):0;setTimeout((()=>{e.setAttribute("data-vrts-loading","false"),e.setAttribute("data-vrts-action-state",s?"secondary":"primary"),document.querySelectorAll("[data-vrts-alert]").forEach((t=>{t.setAttribute("data-vrts-state",s?"read":"unread")}))}),t),clearTimeout(h),clearInterval(o)}))}scrollTo(t){(document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||window).scrollTo({top:t,behavior:"smooth"})}disconnectedCallback(){this.$alerts?.forEach((t=>{t.removeEventListener("click",this.handleAlertClick)})),this.$actionButtons?.forEach((t=>{t.removeEventListener("click",this.handleActionClick)}))}}window.customElements.define("vrts-test-run-alerts",t)},74:()=>{class t extends window.HTMLElement{constructor(){super(),this.bindFunctions(),this.bindEvents(),this.isScrolling=!1}bindFunctions(){this.onScroll=this.onScroll.bind(this),this.setOffset=this.setOffset.bind(this)}bindEvents(){document.addEventListener("scroll",this.onScroll)}onScroll(){this.isScrolling||(this.isScrolling=!0,window.requestAnimationFrame(this.setOffset))}setOffset(){const t=Math.max(0,this.offset-window.scrollY);this.style.setProperty("--vrts-test-run-page-offset",`${t}px`),this.isScrolling=!1}connectedCallback(){const t=this.getBoundingClientRect(),e=document.getElementById("wpadminbar").offsetHeight;this.offset=t.top+window.scrollY-e,this.setOffset()}disconnectedCallback(){document.removeEventListener("scroll",this.onScroll)}}window.customElements.define("vrts-test-run-page",t)},191:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$alerts=document.querySelectorAll("[data-vrts-alert]"),this.$buttons=this.querySelectorAll(".button")}bindFunctions(){this.handleClick=this.handleClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}bindEvents(){this.$buttons?.forEach((t=>{t.addEventListener("click",this.handleClick)})),document.addEventListener("keydown",this.handleKeyDown)}handleClick(t){t.preventDefault();const e=t.currentTarget,i=e.getAttribute("data-vrts-alert-id");let s=document.getElementById(`vrts-alert-${i}`);if(!s)return;const n=e.getAttribute("href"),r=document.querySelector("vrts-comparisons")||document.querySelector("vrts-test-run-success"),a=document.querySelector(".vrts-test-run-page__sidebar");this.$alerts.forEach((t=>{t.setAttribute("data-vrts-current","false")})),s.setAttribute("data-vrts-current","true");let o=0,h=null;const l=setTimeout((()=>{r.setAttribute("data-vrts-loading","true");const t=window.Date.now();h=setInterval((()=>{o=window.Date.now()-t}),50)}),200);let p=0;for(;s&&s!==a;)p+=s.offsetTop,s=s.offsetParent;a.scrollTo({top:p-82,behavior:"smooth"}),fetch(n).then((t=>t.text())).then((t=>{const e=(new window.DOMParser).parseFromString(t,"text/html"),i=e.querySelector("vrts-comparisons")||e.querySelector("vrts-test-run-success"),s=e.querySelector("vrts-test-run-pagination");window.history.replaceState({},"",n),this.scrollTo(r.offsetTop-62);const a=o>0?Math.abs(o-400):0;setTimeout((()=>{i&&r.replaceWith(i),s&&this.replaceWith(s)}),a),clearTimeout(l),clearInterval(h)}))}handleKeyDown(t){"ArrowUp"===t.key&&(t.preventDefault(),this.querySelector('[data-vrts-pagination="prev"]').click()),"ArrowDown"===t.key&&(t.preventDefault(),this.querySelector('[data-vrts-pagination="next"]').click())}scrollTo(t){(document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||window).scrollTo({top:t,behavior:"smooth"})}disconnectedCallback(){this.$buttons?.forEach((t=>{t.removeEventListener("click",this.handleClick)})),document.removeEventListener("keydown",this.handleKeyDown)}}window.customElements.define("vrts-test-run-pagination",t)},486:(t,e,i)=>{"use strict";i.r(e);var s=i(816),n=i.n(s);class r extends window.HTMLElement{constructor(){super(),this.resolveElements()}resolveElements(){this.$lottiePlayer=this.querySelector("[vrts-lottie-player]")}connectedCallback(){this.lottieAnimation=n().loadAnimation({path:`${window.vrts_admin_vars.pluginUrl}/assets/animations/success-check.json`,container:this.$lottiePlayer,renderer:"svg",loop:!1,autoplay:!0})}disconnectedCallback(){this.lottieAnimation.destroy()}loaAnimation(){this.$lottiePlayer.play()}}window.customElements.define("vrts-test-run-success",r)},937:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements()}resolveElements(){this.$runsListTable=this.querySelector("form .vrts-test-runs-list-table")}connectedCallback(){this.highlightNewTestRuns()}highlightNewTestRuns(){const t=new Set(JSON.parse(window.localStorage.getItem("vrtsNewTestRuns")||"[]")),e=this.$runsListTable.querySelectorAll("tr[data-test-run-id]");let i=0;e.forEach((e=>{const s=e.getAttribute("data-test-run-id");"true"===e.getAttribute("data-test-run-new")?t.has(s)||(t.add(s),setTimeout((()=>{e.classList.add("test-run-highlighted")}),i),i+=200):t.has(s)&&t.delete(s)})),window.localStorage.setItem("vrtsNewTestRuns",JSON.stringify([...t]))}}window.customElements.define("vrts-test-runs-page",t)},318:()=>{document.getElementById("show-modal-add-new")?.addEventListener("click",(()=>{window.wpLink.open("input_hidden_internal_url")})),window.wp=window.wp||{},function(t,e){window.inlineEditTest={init(){const e=this,i=t("#inline-edit");e.type="test",e.what="#test-",i.on("keyup",(function(t){if(27===t.which)return inlineEditTest.revert()})),t(".cancel",i).on("click",(function(){return inlineEditTest.revert()})),t(".save",i).on("click",(function(){return inlineEditTest.save(this)})),t("td",i).on("keydown",(function(e){if(13===e.which&&!e.shiftKey&&!t(e.target).hasClass("cancel"))return inlineEditTest.save(this)})),t("#the-list").on("click",".editinline",(function(){t(this).attr("aria-expanded","true"),inlineEditTest.edit(this)})),t("#doaction").on("click",(function(i){e.whichBulkButtonId=t(this).attr("id");const s=e.whichBulkButtonId.substr(2);"edit"===t('select[name="'+s+'"]').val()?i.preventDefault():t("form#posts-filter tr.inline-editor").length>0&&e.revert()}))},toggle(e){const i=this;"none"===t(i.what+i.getId(e)).css("display")?i.revert():i.edit(e)},edit(e){const i=this;i.revert(),"object"==typeof e&&(e=i.getId(e));const s=t("#inline-edit").clone(!0);t("td",s).attr("colspan",t("th:visible, td:visible",".widefat:first thead").length),t("td",s).find("#quick-edit-legend").removeAttr("id"),t("td",s).find('p[id^="quick-edit-"]').removeAttr("id"),t(i.what+e).removeClass("is-expanded").hide().after(s).after('<tr class="hidden"></tr>');const n=t("#inline_"+e),r=t(".hide_css_selectors",n).text();return t(':input[name="hide_css_selectors"]',s).val(r),t(s).attr("id","edit-"+e).addClass("inline-editor").show(),t(':input[name="hide_css_selectors"]',s).trigger("focus"),!1},save(i){"object"==typeof i&&(i=this.getId(i)),t("table.widefat .spinner").addClass("is-active");const s={action:"vrts_test_quick_edit_save",test_id:i,hide_css_selectors:t("#edit-"+i+' [name="hide_css_selectors"]').val(),nonce:t("#_vrts_test_quick_edit_nonce").val()};return t.post(ajaxurl,s,(function(s){if(t("table.widefat .spinner").removeClass("is-active"),!(s=t.parseJSON(s)).success){const n=t("#edit-"+i+" .inline-edit-save .notice-error");return n.removeClass("hidden"),n.text(s.message),void e.a11y.speak(s.message)}t("#inline_"+i+" .hide_css_selectors").text(s.hide_css_selectors);const n=t(".widefat");(i=t(".inline-editor",n).attr("id"))&&(t(".spinner",n).removeClass("is-active"),t("#"+i).siblings("tr.hidden").addBack().remove(),i=i.substr(i.lastIndexOf("-")+1),t("#test-"+i).fadeIn(400).find(".editinline").attr("aria-expanded","false").trigger("focus")),e.a11y.speak(s.message);const r=s.snapshot_status,a=t("#test-"+i+" .base_screenshot_date");null!=r&&""!==r&&a.text(r)}),"html"),!1},revert(){const e=t(".widefat");let i=t(".inline-editor",e).attr("id");return i&&(t(".spinner",e).removeClass("is-active"),t("#"+i).siblings("tr.hidden").addBack().remove(),i=i.substr(i.lastIndexOf("-")+1),t(this.what+i).show().find(".editinline").attr("aria-expanded","false").trigger("focus")),!1},getId(e){const i=t(e).closest("tr").attr("id").split("-");return i[i.length-1]}},t((function(){t(".vrts-list-table-page").length&&inlineEditTest.init()}))}(jQuery,window.wp)},92:(t,e,i)=>{"use strict";i.r(e);var s=i(570),n=i.n(s);document.querySelector(".vrts_upgrade_page")&&n()({checkOrigin:!1,heightCalculationMethod:"taggedElement"},"#vrts_upgrade_iframe")},570:(t,e)=>{var i,s,n;!function(r){if("undefined"!=typeof window){var a,o,h=0,l=!1,p=!1,d="[iFrameSizer]",c=null,u=window.requestAnimationFrame,f=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},g=null,v=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){C("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),y={};window.jQuery!==r&&((o=window.jQuery).fn?o.fn.iFrameResize||(o.fn.iFrameResize=function(t){return this.filter("iframe").each((function(e,i){z(i,t)})).end()}):A("","Unable to bind to jQuery, it is not fully loaded.")),s=[],(n="function"==typeof(i=j)?i.apply(e,s):i)===r||(t.exports=n),window.iFrameResize=window.iFrameResize||j()}function b(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(t,e,i){t.addEventListener(e,i,!1)}function _(t,e,i){t.removeEventListener(e,i,!1)}function k(t){return m[t]?m[t].log:l}function x(t,e){S("log",t,e,k(t))}function A(t,e){S("info",t,e,k(t))}function C(t,e){S("warn",t,e,!0)}function S(t,e,i,s){!0===s&&"object"==typeof window.console&&console[t](function(t){return d+"["+function(t){var e="Host page: "+t;return window.top!==window.self&&(e=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),e}(t)+"]"}(e),i)}function E(t){function e(){i("Height"),i("Width"),$((function(){R(S),F(E),l("onResized",S)}),S,"init")}function i(t){var e=Number(m[E]["max"+t]),i=Number(m[E]["min"+t]),s=t.toLowerCase(),n=Number(S[s]);x(E,"Checking "+s+" is in range "+i+"-"+e),n<i&&(n=i,x(E,"Set "+s+" to min value")),n>e&&(n=e,x(E,"Set "+s+" to max value")),S[s]=""+n}function s(t){return k.slice(k.indexOf(":")+7+t)}function n(t,e){var i,s;i=function(){var i,s;O("Send Page Info","pageInfo:"+(i=document.body.getBoundingClientRect(),s=S.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:s.height,iframeWidth:s.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(s.top-i.top,10),offsetLeft:parseInt(s.left-i.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),t,e)},y[s=e]||(y[s]=setTimeout((function(){y[s]=null,i()}),32))}function r(t){var e=t.getBoundingClientRect();return D(E),{x:Math.floor(Number(e.left)+Number(c.x)),y:Math.floor(Number(e.top)+Number(c.y))}}function a(t){var e=t?r(S.iframe):{x:0,y:0},i={x:Number(S.width)+e.x,y:Number(S.height)+e.y};x(E,"Reposition requested from iFrame (offset x:"+e.x+" y:"+e.y+")"),window.top===window.self?(c=i,o(),x(E,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](i.x,i.y):C(E,"Unable to scroll to requested position, window.parentIFrame not found")}function o(){!1===l("onScroll",c)?I():F(E)}function h(t){var e={};if(0===Number(S.width)&&0===Number(S.height)){var i=s(9).split(":");e={x:i[1],y:i[0]}}else e={x:S.width,y:S.height};l(t,{iframe:S.iframe,screenX:Number(e.x),screenY:Number(e.y),type:S.type})}function l(t,e){return P(E,t,e)}var p,u,f,g,v,b,k=t.data,S={},E=null;"[iFrameResizerChild]Ready"===k?function(){for(var t in m)O("iFrame requested init",N(t),m[t].iframe,t)}():d===(""+k).slice(0,13)&&k.slice(13).split(":")[0]in m?(g=(f=k.slice(13).split(":"))[1]?parseInt(f[1],10):0,v=m[f[0]]&&m[f[0]].iframe,b=getComputedStyle(v),S={iframe:v,id:f[0],height:g+function(t){return"border-box"!==t.boxSizing?0:(t.paddingTop?parseInt(t.paddingTop,10):0)+(t.paddingBottom?parseInt(t.paddingBottom,10):0)}(b)+function(t){return"border-box"!==t.boxSizing?0:(t.borderTopWidth?parseInt(t.borderTopWidth,10):0)+(t.borderBottomWidth?parseInt(t.borderBottomWidth,10):0)}(b),width:f[2],type:f[3]},E=S.id,m[E]&&(m[E].loaded=!0),(u=S.type in{true:1,false:1,undefined:1})&&x(E,"Ignoring init message from meta parent page"),!u&&function(t){var e=!0;return m[t]||(e=!1,C(S.type+" No settings for "+t+". Message was: "+k)),e}(E)&&(x(E,"Received: "+k),p=!0,null===S.iframe&&(C(E,"IFrame ("+S.id+") not found"),p=!1),p&&function(){var e,i=t.origin,s=m[E]&&m[E].checkOrigin;if(s&&""+i!="null"&&!(s.constructor===Array?function(){var t=0,e=!1;for(x(E,"Checking connection is from allowed list of origins: "+s);t<s.length;t++)if(s[t]===i){e=!0;break}return e}():(e=m[E]&&m[E].remoteHost,x(E,"Checking connection is from: "+e),i===e)))throw new Error("Unexpected message received from: "+i+" for "+S.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(m[E]&&m[E].firstRun&&m[E]&&(m[E].firstRun=!1),S.type){case"close":M(S.iframe);break;case"message":u=s(6),x(E,"onMessage passed: {iframe: "+S.iframe.id+", message: "+u+"}"),l("onMessage",{iframe:S.iframe,message:JSON.parse(u)}),x(E,"--");break;case"mouseenter":h("onMouseEnter");break;case"mouseleave":h("onMouseLeave");break;case"autoResize":m[E].autoResize=JSON.parse(s(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":n(m[E]&&m[E].iframe,E),function(){function t(t,s){function r(){m[i]?n(m[i].iframe,i):e()}["scroll","resize"].forEach((function(e){x(i,t+e+" listener for sendPageInfo"),s(window,e,r)}))}function e(){t("Remove ",_)}var i=E;t("Add ",w),m[i]&&(m[i].stopPageInfo=e)}();break;case"pageInfoStop":m[E]&&m[E].stopPageInfo&&(m[E].stopPageInfo(),delete m[E].stopPageInfo);break;case"inPageLink":i=s(9).split("#")[1]||"",p=decodeURIComponent(i),(d=document.getElementById(p)||document.getElementsByName(p)[0])?(t=r(d),x(E,"Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),c={x:t.x,y:t.y},o(),x(E,"--")):window.top===window.self?x(E,"In page link #"+i+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(i):x(E,"In page link #"+i+" not found and window.parentIFrame not found");break;case"reset":L(S);break;case"init":e(),l("onInit",S.iframe);break;default:0===Number(S.width)&&0===Number(S.height)?C("Unsupported message received ("+S.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):e()}var t,i,p,d,u}())):A(E,"Ignored: "+k)}function P(t,e,i){var s=null,n=null;if(m[t]){if("function"!=typeof(s=m[t][e]))throw new TypeError(e+" on iFrame["+t+"] is not a function");n=s(i)}return n}function T(t){var e=t.id;delete m[e]}function M(t){var e=t.id;if(!1!==P(e,"onClose",e)){x(e,"Removing iFrame: "+e);try{t.parentNode&&t.parentNode.removeChild(t)}catch(t){C(t)}P(e,"onClosed",e),x(e,"--"),T(t),a&&(a.disconnect(),a=null)}else x(e,"Close iframe cancelled by onClose event")}function D(t){null===c&&x(t,"Get page position: "+(c={x:window.pageXOffset===r?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===r?document.documentElement.scrollTop:window.pageYOffset}).x+","+c.y)}function F(t){null!==c&&(window.scrollTo(c.x,c.y),x(t,"Set page position: "+c.x+","+c.y),I())}function I(){c=null}function L(t){x(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),D(t.id),$((function(){R(t),O("reset","reset",t.iframe,t.id)}),t,"reset")}function R(t){function e(e){p||"0"!==t[e]||(p=!0,x(s,"Hidden iFrame detected, creating visibility listener"),function(){function t(){Object.keys(m).forEach((function(t){!function(t){function e(e){return"0px"===(m[t]&&m[t].iframe.style[e])}m[t]&&null!==m[t].iframe.offsetParent&&(e("height")||e("width"))&&O("Visibility change","resize",m[t].iframe,t)}(t)}))}function e(e){x("window","Mutation observed: "+e[0].target+" "+e[0].type),B(t,16)}var i,s=b();s&&(i=document.querySelector("body"),new s(e).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function i(i){!function(e){t.id?(t.iframe.style[e]=t[e]+"px",x(t.id,"IFrame ("+s+") "+e+" set to "+t[e]+"px")):x("undefined","messageData id not set")}(i),e(i)}var s=t.iframe.id;m[s]&&(m[s].sizeHeight&&i("height"),m[s].sizeWidth&&i("width"))}function $(t,e,i){i!==e.type&&u&&!window.jasmine?(x(e.id,"Requesting animation frame"),u(t)):t()}function O(t,e,i,s,n){var r,a=!1;s=s||i.id,m[s]&&(i&&"contentWindow"in i&&null!==i.contentWindow?(r=m[s]&&m[s].targetOrigin,x(s,"["+t+"] Sending msg to iframe["+s+"] ("+e+") targetOrigin: "+r),i.contentWindow.postMessage(d+e,r)):C(s,"["+t+"] IFrame("+s+") not found"),n&&m[s]&&m[s].warningTimeout&&(m[s].msgTimeout=setTimeout((function(){!m[s]||m[s].loaded||a||(a=!0,C(s,"IFrame has not responded within "+m[s].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[s].warningTimeout)))}function N(t){return t+":"+m[t].bodyMarginV1+":"+m[t].sizeWidth+":"+m[t].log+":"+m[t].interval+":"+m[t].enablePublicMethods+":"+m[t].autoResize+":"+m[t].bodyMargin+":"+m[t].heightCalculationMethod+":"+m[t].bodyBackground+":"+m[t].bodyPadding+":"+m[t].tolerance+":"+m[t].inPageLinks+":"+m[t].resizeFrom+":"+m[t].widthCalculationMethod+":"+m[t].mouseEvents}function z(t,e){function i(t){var e=t.split("Callback");if(2===e.length){var i="on"+e[0].charAt(0).toUpperCase()+e[0].slice(1);this[i]=this[t],delete this[t],C(o,"Deprecated: '"+t+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}var s,n,o=function(i){if("string"!=typeof i)throw new TypeError("Invaild id for iFrame. Expected String");var s;return""===i&&(t.id=(s=e&&e.id||v.id+h++,null!==document.getElementById(s)&&(s+=h++),i=s),l=(e||{}).log,x(i,"Added missing iframe ID: "+i+" ("+t.src+")")),i}(t.id);o in m&&"iFrameResizer"in t?C(o,"Ignored iFrame, already setup."):(function(e){var s;e=e||{},m[o]=Object.create(null),m[o].iframe=t,m[o].firstRun=!0,m[o].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),function(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(i,e),function(t){for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&(m[o][e]=Object.prototype.hasOwnProperty.call(t,e)?t[e]:v[e])}(e),m[o]&&(m[o].targetOrigin=!0===m[o].checkOrigin?""===(s=m[o].remoteHost)||null!==s.match(/^(about:blank|javascript:|file:\/\/)/)?"*":s:"*")}(e),function(){switch(x(o,"IFrame scrolling "+(m[o]&&m[o].scrolling?"enabled":"disabled")+" for "+o),t.style.overflow=!1===(m[o]&&m[o].scrolling)?"hidden":"auto",m[o]&&m[o].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=m[o]?m[o].scrolling:"no"}}(),function(){function e(e){var i=m[o][e];1/0!==i&&0!==i&&(t.style[e]="number"==typeof i?i+"px":i,x(o,"Set "+e+" = "+t.style[e]))}function i(t){if(m[o]["min"+t]>m[o]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}i("Height"),i("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(m[o]&&m[o].bodyMargin)&&"0"!==(m[o]&&m[o].bodyMargin)||(m[o].bodyMarginV1=m[o].bodyMargin,m[o].bodyMargin=m[o].bodyMargin+"px"),s=N(o),(n=b())&&(a=function(e){if(!t.parentNode)return null;var i=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&M(t)}))}))}));return i.observe(t.parentNode,{childList:!0}),i}(n)),w(t,"load",(function(){var e,i;O("iFrame.onload",s,t,r,!0),e=m[o]&&m[o].firstRun,i=m[o]&&m[o].heightCalculationMethod in f,!e&&i&&L({iframe:t,height:0,width:0,type:"init"})})),O("init",s,t,r,!0),m[o]&&(m[o].iframe.iFrameResizer={close:M.bind(null,m[o].iframe),removeListeners:T.bind(null,m[o].iframe),resize:O.bind(null,"Window resize","resize",m[o].iframe),moveToAnchor:function(t){O("Move to anchor","moveToAnchor:"+t,m[o].iframe,o)},sendMessage:function(t){O("Send Message","message:"+(t=JSON.stringify(t)),m[o].iframe,o)}}))}function B(t,e){null===g&&(g=setTimeout((function(){g=null,t()}),e))}function V(){"hidden"!==document.visibilityState&&(x("document","Trigger event: Visibility change"),B((function(){q("Tab Visible","resize")}),16))}function q(t,e){Object.keys(m).forEach((function(i){(function(t){return m[t]&&"parent"===m[t].resizeFrom&&m[t].autoResize&&!m[t].firstRun})(i)&&O(t,e,m[i].iframe,i)}))}function j(){function t(t,i){i&&(function(){if(!i.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==i.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+i.tagName+">")}(),z(i,t),e.push(i))}var e;return function(){var t,e=["moz","webkit","o","ms"];for(t=0;t<e.length&&!u;t+=1)u=window[e[t]+"RequestAnimationFrame"];u?u=u.bind(window):x("setup","RequestAnimationFrame not supported")}(),w(window,"message",E),w(window,"resize",(function(){x("window","Trigger event: resize"),B((function(){q("Window resize","resize")}),16)})),w(document,"visibilitychange",V),w(document,"-webkit-visibilitychange",V),function(i,s){switch(e=[],function(t){t&&t.enablePublicMethods&&C("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof s){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(s||"iframe"),t.bind(r,i));break;case"object":t(i,s);break;default:throw new TypeError("Unexpected data type ("+typeof s+")")}return e}}}()},816:function(t,e,i){"undefined"!=typeof navigator&&(t.exports=function(){"use strict";var t="",s=!1,n=-999999,r=function(){return t};function a(t){return document.createElement(t)}function o(t,e){var i,s,n=t.length;for(i=0;i<n;i+=1)for(var r in s=t[i].prototype)Object.prototype.hasOwnProperty.call(s,r)&&(e.prototype[r]=s[r])}var h=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),l=function(){function t(t,e){var i,s=0,n=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)n.push(i);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function p(t){return Array.apply(null,{length:t})}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}var c=!0,u=null,f="",m=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),g=Math.pow,v=Math.sqrt,y=Math.floor,b=(Math.max,Math.min),w={};(function(){var t,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"],i=e.length;for(t=0;t<i;t+=1)w[e[t]]=Math[e[t]]})(),w.random=Math.random,w.abs=function(t){if("object"===d(t)&&t.length){var e,i=p(t.length),s=t.length;for(e=0;e<s;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var _=150,k=Math.PI/180,x=.5519;function A(t,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function C(t,e){this.type=t,this.direction=e<0?-1:1}function S(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function E(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function P(t,e){this.type=t,this.target=e}function T(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function M(t){this.type="configError",this.nativeError=t}var D,F=(D=0,function(){return f+"__lottie_element_"+(D+=1)});function I(t,e,i){var s,n,r,a,o,h,l,p;switch(h=i*(1-e),l=i*(1-(o=6*t-(a=Math.floor(6*t)))*e),p=i*(1-(1-o)*e),a%6){case 0:s=i,n=p,r=h;break;case 1:s=l,n=i,r=h;break;case 2:s=h,n=i,r=p;break;case 3:s=h,n=l,r=i;break;case 4:s=p,n=h,r=i;break;case 5:s=i,n=h,r=l}return[s,n,r]}function L(t,e,i){var s,n=Math.max(t,e,i),r=Math.min(t,e,i),a=n-r,o=0===n?0:a/n,h=n/255;switch(n){case r:s=0;break;case t:s=e-i+a*(e<i?6:0),s/=6*a;break;case e:s=i-t+2*a,s/=6*a;break;case i:s=t-e+4*a,s/=6*a}return[s,o,h]}function R(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),I(i[0],i[1],i[2])}function $(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),I(i[0],i[1],i[2])}function O(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),I(i[0],i[1],i[2])}!function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e}();var N=function(){return u},z=function(t){_=t},B=function(){return _};function V(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}var j=function(){var t,e,i=1,n=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){r.onmessage({data:t})}};function o(e){if(window.Worker&&window.Blob&&s){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(i);return new Worker(n)}return t=e,r}function h(){e||(e=o((function(t){if(a.dataManager||(a.dataManager=function(){function t(n,r){var a,o,h,l,p,d,c,u=n.length;for(o=0;o<u;o+=1)if("ks"in(a=n[o])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(l=f.length,h=0;h<l;h+=1)if(f[h].pt.k.i)s(f[h].pt.k);else for(d=f[h].pt.k.length,p=0;p<d;p+=1)f[h].pt.k[p].s&&s(f[h].pt.k[p].s[0]),f[h].pt.k[p].e&&s(f[h].pt.k[p].e[0])}0===a.ty?(a.layers=e(a.refId,r),t(a.layers,r)):4===a.ty?i(a.shapes):5===a.ty&&(0===(c=a).t.a.length&&c.t.p)}}function e(t,e){var i=function(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,n,r;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)s(t[e].ks.k);else for(r=t[e].ks.k.length,n=0;n<r;n+=1)t[e].ks.k[n].s&&s(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&s(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function s(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var r,a=function(){var t=[4,4,14];function e(t){var e,i,s,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=t[e],s=void 0,s=i.t.d,i.t.d={k:[{s,t:0}]})}return function(i){if(n(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),o=(r=[4,7,99],function(t){if(t.chars&&!n(r,t.v)){var e,s=t.chars.length;for(e=0;e<s;e+=1){var a=t.chars[e];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={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),h=function(){var t=[5,7,15];function e(t){var e,i,s,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=t[e],s=void 0,"number"==typeof(s=i.t.p).a&&(s.a={a:0,k:s.a}),"number"==typeof s.p&&(s.p={a:0,k:s.p}),"number"==typeof s.r&&(s.r={a:0,k:s.r}))}return function(i){if(n(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),l=function(){var t=[4,1,9];function e(t){var i,s,n,r=t.length;for(i=0;i<r;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(n=t[i].c.k.length,s=0;s<n;s+=1)t[i].c.k[s].s&&(t[i].c.k[s].s[0]/=255,t[i].c.k[s].s[1]/=255,t[i].c.k[s].s[2]/=255,t[i].c.k[s].s[3]/=255),t[i].c.k[s].e&&(t[i].c.k[s].e[0]/=255,t[i].c.k[s].e[1]/=255,t[i].c.k[s].e[2]/=255,t[i].c.k[s].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),p=function(){var t=[4,4,18];function e(t){var i,s,n;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(n=t[i].ks.k.length,s=0;s<n;s+=1)t[i].ks.k[s].s&&(t[i].ks.k[s].s[0].c=t[i].closed),t[i].ks.k[s].e&&(t[i].ks.k[s].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,s,n,r,a,o,h=t.length;for(s=0;s<h;s+=1){if((i=t[s]).hasMask){var l=i.masksProperties;for(r=l.length,n=0;n<r;n+=1)if(l[n].pt.k.i)l[n].pt.k.c=l[n].cl;else for(o=l[n].pt.k.length,a=0;a<o;a+=1)l[n].pt.k[a].s&&(l[n].pt.k[a].s[0].c=l[n].cl),l[n].pt.k[a].e&&(l[n].pt.k[a].e[0].c=l[n].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),d={completeData:function(i){i.__complete||(l(i),a(i),o(i),h(i),p(i),t(i.layers,i.assets),function(i,s){if(i){var n=0,r=i.length;for(n=0;n<r;n+=1)1===i[n].t&&(i[n].data.layers=e(i[n].data.refId,s),t(i[n].data.layers,s))}}(i.chars,i.assets),i.__complete=!0)}};return d.checkColors=l,d.checkChars=o,d.checkPathProperties=h,d.checkShapes=p,d.completeLayers=t,d}()),a.assetLoader||(a.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===q(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,s,n){var r,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)r=t(a),s(r);else try{r=t(a),s(r)}catch(t){n&&n(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),i+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,i=e.id,s=n[i];n[i]=null,"success"===e.status?s.onComplete(e.payload):s.onError&&s.onError()})}function l(t,e){var s="processId_"+(i+=1);return n[s]={onComplete:t,onError:e},s}return{loadAnimation:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"complete",animation:t,id:n})}}}(),H=function(){var t=function(){var t=a("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(t,e,i){var s="";if(t.e)s=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),s=e+n}else s=i,s+=t.u?t.u:"",s+=t.p;return s}function n(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function r(t){var e={assetData:t},i=s(t,this.assetsPath,this.path);return j.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=r.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var s=t.length;for(i=0;i<s;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=s(e,this.assetsPath,this.path),n=a("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),n.src=i;var r={img:n,assetData:e};return r},createImageData:function(e){var i=s(e,this.assetsPath,this.path),n=V("image");m?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var r={img:n,assetData:e};return r},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function W(){}W.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var Y=function(){function t(t){for(var e,i=t.split("\r\n"),s={},n=0,r=0;r<i.length;r+=1)2===(e=i[r].split(":")).length&&(s[e[0]]=e[1].trim(),n+=1);if(0===n)throw new Error;return s}return function(e){for(var i=[],s=0;s<e.length;s+=1){var n=e[s],r={time:n.tm,duration:n.dr};try{r.payload=JSON.parse(e[s].cm)}catch(i){try{r.payload=t(e[s].cm)}catch(t){r.payload={name:e[s].cm}}}i.push(r)}return i}}(),U=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),X={};function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}var G=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=F(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=c,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=U(),this.imagePreloader=new H,this.audioController=h(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new A("drawnFrame",0,0,0),this.expressionsPlugin=N()};o([W],G),G.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=X[e];this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),j.loadAnimation(t.path,this.configAnimation,this.onSetupError))},G.prototype.onSetupError=function(){this.trigger("data_failed")},G.prototype.setupAnimation=function(t){j.completeAnimation(t,this.configAnimation)},G.prototype.setData=function(t,e){e&&"object"!==K(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},s=t.attributes;i.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",i.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:function(){if(X.canvas)return"canvas";for(var t in X)if(X[t])return t;return""}()||"canvas";var n=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";"false"===n?i.loop=!1:"true"===n?i.loop=!0:""!==n&&(i.loop=parseInt(n,10));var r=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value;i.autoplay="false"!==r,i.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"","false"===(s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},G.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,s=this.animationData.layers,n=s.length,r=t.layers,a=r.length;for(i=0;i<a;i+=1)for(e=0;e<n;){if(s[e].id===r[i].id){s[e]=r[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,j.completeAnimation(this.animationData,this.onSegmentComplete)},G.prototype.onSegmentComplete=function(t){this.animationData=t;var e=N();e&&e.initExpressions(this),this.loadNextSegment()},G.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,j.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},G.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},G.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},G.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},G.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=Y(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},G.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},G.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=N();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},G.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,s="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,s)},G.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},G.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},G.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},G.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},G.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},G.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},G.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},G.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},G.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},G.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(s,e,i);this.play()}},G.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},G.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},G.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},G.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===K(t[0])){var i,s=t.length;for(i=0;i<s;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},G.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},G.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},G.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},G.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},G.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},G.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},G.prototype.setLoop=function(t){this.loop=t},G.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},G.prototype.getVolume=function(){return this.audioController.getVolume()},G.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},G.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},G.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},G.prototype.getPath=function(){return this.path},G.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},G.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},G.prototype.hide=function(){this.renderer.hide()},G.prototype.show=function(){this.renderer.show()},G.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},G.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},G.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new A(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new S(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new C(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new E(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new P(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new A(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new S(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new C(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new E(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new P(t,this))},G.prototype.triggerRenderFrameError=function(t){var e=new T(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},G.prototype.triggerConfigError=function(t){var e=new M(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var J=function(){var t={},e=[],i=0,s=0,n=0,r=!0,o=!1;function h(t){for(var i=0,n=t.target;i<s;)e[i].animation===n&&(e.splice(i,1),i-=1,s-=1,n.isPaused||d()),i+=1}function l(t,i){if(!t)return null;for(var n=0;n<s;){if(e[n].elem===t&&null!==e[n].elem)return e[n].animation;n+=1}var r=new G;return c(r,t),r.setData(t,i),r}function p(){n+=1,m()}function d(){n-=1}function c(t,i){t.addEventListener("destroy",h),t.addEventListener("_active",p),t.addEventListener("_idle",d),e.push({elem:i,animation:t}),s+=1}function u(t){var a,h=t-i;for(a=0;a<s;a+=1)e[a].animation.advanceTime(h);i=t,n&&!o?window.requestAnimationFrame(u):r=!0}function f(t){i=t,window.requestAnimationFrame(u)}function m(){!o&&n&&r&&(window.requestAnimationFrame(f),r=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new G;return c(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setSpeed(t,i)},t.setDirection=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var s,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),r=n.length;for(s=0;s<r;s+=1)i&&n[s].setAttribute("data-bm-type",i),l(n[s],t);if(e&&0===r){i||(i="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var h=a("div");h.style.width="100%",h.style.height="100%",h.setAttribute("data-bm-type",i),o.appendChild(h),l(h,t)}},t.resize=function(){var t;for(t=0;t<s;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,n){var r;for(r=0;r<s;r+=1)e[r].animation.goToAndStop(t,i,n)},t.destroy=function(t){var i;for(i=s-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,m()},t.setVolume=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,s=[];for(t=0;t<i;t+=1)s.push(e[t].animation);return s},t}(),Z=function(){var t={getBezierEasing:function(t,i,s,n,r){var a=r||("bez_"+t+"_"+i+"_"+s+"_"+n).replace(/\./g,"p");if(e[a])return e[a];var o=new p([t,i,s,n]);return e[a]=o,o}},e={};var i=11,s=1/(i-1),n="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function o(t){return 3*t}function h(t,e,i){return((r(e,i)*t+a(e,i))*t+o(e))*t}function l(t,e,i){return 3*r(e,i)*t*t+2*a(e,i)*t+o(e)}function p(t){this._p=t,this._mSampleValues=n?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return p.prototype={get:function(t){var e=this._p[0],i=this._p[1],s=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===i&&s===n?t:0===t?0:1===t?1:h(this._getTForX(t),i,n)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,t===e&&i===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<i;++n)this._mSampleValues[n]=h(n*s,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],r=this._mSampleValues,a=0,o=1,p=i-1;o!==p&&r[o]<=t;++o)a+=s;var d=a+(t-r[--o])/(r[o+1]-r[o])*s,c=l(d,e,n);return c>=.001?function(t,e,i,s){for(var n=0;n<4;++n){var r=l(e,i,s);if(0===r)return e;e-=(h(e,i,s)-t)/r}return e}(t,d,e,n):0===c?d:function(t,e,i,s,n){var r,a,o=0;do{(r=h(a=e+(i-e)/2,s,n)-t)>0?i=a:e=a}while(Math.abs(r)>1e-7&&++o<10);return a}(t,a,a+s,e,n)}},t}(),Q={double:function(t){return t.concat(p(t.length))}},tt=function(t,e,i){var s=0,n=t,r=p(n);return{newElement:function(){return s?r[s-=1]:e()},release:function(t){s===n&&(r=Q.double(r),n*=2),i&&i(t),r[s]=t,s+=1}}},et=tt(8,(function(){return{addedLength:0,percents:l("float32",B()),lengths:l("float32",B())}})),it=tt(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)et.release(t.lengths[e]);t.lengths.length=0}));var st=function(){var t=Math;function e(t,e,i,s,n,r){var a=t*s+e*n+i*r-n*s-r*t-i*e;return a>-.001&&a<.001}var i=function(t,e,i,s){var n,r,a,o,h,l,p=B(),d=0,c=[],u=[],f=et.newElement();for(a=i.length,n=0;n<p;n+=1){for(h=n/(p-1),l=0,r=0;r<a;r+=1)o=g(1-h,3)*t[r]+3*g(1-h,2)*h*i[r]+3*(1-h)*g(h,2)*s[r]+g(h,3)*e[r],c[r]=o,null!==u[r]&&(l+=g(c[r]-u[r],2)),u[r]=c[r];l&&(d+=l=v(l)),f.percents[n]=h,f.lengths[n]=d}return f.addedLength=d,f};function s(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var r,a=(r={},function(t,i,a,o){var h=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!r[h]){var l,d,c,u,f,m,y,b=B(),w=0,_=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(b=2);var k=new s(b);for(c=a.length,l=0;l<b;l+=1){for(y=p(c),f=l/(b-1),m=0,d=0;d<c;d+=1)u=g(1-f,3)*t[d]+3*g(1-f,2)*f*(t[d]+a[d])+3*(1-f)*g(f,2)*(i[d]+o[d])+g(f,3)*i[d],y[d]=u,null!==_&&(m+=g(y[d]-_[d],2));w+=m=v(m),k.points[l]=new n(m,y),_=y}k.segmentLength=w,r[h]=k}return r[h]});function o(t,e){var i=e.percents,s=e.lengths,n=i.length,r=y((n-1)*t),a=t*e.addedLength,o=0;if(r===n-1||0===r||a===s[r])return i[r];for(var h=s[r]>a?-1:1,l=!0;l;)if(s[r]<=a&&s[r+1]>a?(o=(a-s[r])/(s[r+1]-s[r]),l=!1):r+=h,r<0||r>=n-1){if(r===n-1)return i[r];l=!1}return i[r]+(i[r+1]-i[r])*o}var h=l("float32",8);return{getSegmentsLength:function(t){var e,s=it.newElement(),n=t.c,r=t.v,a=t.o,o=t.i,h=t._length,l=s.lengths,p=0;for(e=0;e<h-1;e+=1)l[e]=i(r[e],r[e+1],a[e],o[e+1]),p+=l[e].addedLength;return n&&h&&(l[e]=i(r[e],r[0],a[e],o[0]),p+=l[e].addedLength),s.totalLength=p,s},getNewSegment:function(e,i,s,n,r,a,l){r<0?r=0:r>1&&(r=1);var p,d=o(r,l),c=o(a=a>1?1:a,l),u=e.length,f=1-d,m=1-c,g=f*f*f,v=d*f*f*3,y=d*d*f*3,b=d*d*d,w=f*f*m,_=d*f*m+f*d*m+f*f*c,k=d*d*m+f*d*c+d*f*c,x=d*d*c,A=f*m*m,C=d*m*m+f*c*m+f*m*c,S=d*c*m+f*c*c+d*m*c,E=d*c*c,P=m*m*m,T=c*m*m+m*c*m+m*m*c,M=c*c*m+m*c*c+c*m*c,D=c*c*c;for(p=0;p<u;p+=1)h[4*p]=t.round(1e3*(g*e[p]+v*s[p]+y*n[p]+b*i[p]))/1e3,h[4*p+1]=t.round(1e3*(w*e[p]+_*s[p]+k*n[p]+x*i[p]))/1e3,h[4*p+2]=t.round(1e3*(A*e[p]+C*s[p]+S*n[p]+E*i[p]))/1e3,h[4*p+3]=t.round(1e3*(P*e[p]+T*s[p]+M*n[p]+D*i[p]))/1e3;return h},getPointInSegment:function(e,i,s,n,r,a){var h=o(r,a),l=1-h;return[t.round(1e3*(l*l*l*e[0]+(h*l*l+l*h*l+l*l*h)*s[0]+(h*h*l+l*h*h+h*l*h)*n[0]+h*h*h*i[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(h*l*l+l*h*l+l*l*h)*s[1]+(h*h*l+l*h*h+h*l*h)*n[1]+h*h*h*i[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(i,s,n,r,a,o,h,l,p){if(0===n&&0===o&&0===p)return e(i,s,r,a,h,l);var d,c=t.sqrt(t.pow(r-i,2)+t.pow(a-s,2)+t.pow(o-n,2)),u=t.sqrt(t.pow(h-i,2)+t.pow(l-s,2)+t.pow(p-n,2)),f=t.sqrt(t.pow(h-r,2)+t.pow(l-a,2)+t.pow(p-o,2));return(d=c>u?c>f?c-u-f:f-u-c:f>u?f-u-c:u-c-f)>-1e-4&&d<1e-4}}}(),nt=n,rt=Math.abs;function at(t,e){var i,s=this.offsetTime;"multidimensional"===this.propType&&(i=l("float32",this.pv.length));for(var n,r,a,o,h,p,d,c,u,f=e.lastIndex,m=f,g=this.keyframes.length-1,v=!0;v;){if(n=this.keyframes[m],r=this.keyframes[m+1],m===g-1&&t>=r.t-s){n.h&&(n=r),f=0;break}if(r.t-s>t){f=m;break}m<g-1?m+=1:(f=0,v=!1)}a=this.keyframesMetadata[m]||{};var y,b,w,_,x,A,C,S,E,P,T,M,D,F,I,L,R,$,O=r.t-s,N=n.t-s;if(n.to){a.bezierData||(a.bezierData=st.buildBezierData(n.s,r.s||n.e,n.to,n.ti));var z=a.bezierData;if(t>=O||t<N){var B=t>=O?z.points.length-1:0;for(h=z.points[B].point.length,o=0;o<h;o+=1)i[o]=z.points[B].point[o]}else{a.__fnct?u=a.__fnct:(u=Z.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,a.__fnct=u),p=u((t-N)/(O-N));var V,q=z.segmentLength*p,j=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastAddedLength:0;for(c=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastPoint:0,v=!0,d=z.points.length;v;){if(j+=z.points[c].partialLength,0===q||0===p||c===z.points.length-1){for(h=z.points[c].point.length,o=0;o<h;o+=1)i[o]=z.points[c].point[o];break}if(q>=j&&q<j+z.points[c+1].partialLength){for(V=(q-j)/z.points[c+1].partialLength,h=z.points[c].point.length,o=0;o<h;o+=1)i[o]=z.points[c].point[o]+(z.points[c+1].point[o]-z.points[c].point[o])*V;break}c<d-1?c+=1:v=!1}e._lastPoint=c,e._lastAddedLength=j-z.points[c].partialLength,e._lastKeyframeIndex=m}}else{var H,W,Y,U,X;if(g=n.s.length,y=r.s||n.e,this.sh&&1!==n.h)t>=O?(i[0]=y[0],i[1]=y[1],i[2]=y[2]):t<=N?(i[0]=n.s[0],i[1]=n.s[1],i[2]=n.s[2]):function(t,e){var i=e[0],s=e[1],n=e[2],r=e[3],a=Math.atan2(2*s*r-2*i*n,1-2*s*s-2*n*n),o=Math.asin(2*i*s+2*n*r),h=Math.atan2(2*i*r-2*s*n,1-2*i*i-2*n*n);t[0]=a/k,t[1]=o/k,t[2]=h/k}(i,(b=ot(n.s),w=ot(y),_=(t-N)/(O-N),P=[],T=b[0],M=b[1],D=b[2],F=b[3],I=w[0],L=w[1],R=w[2],$=w[3],(A=T*I+M*L+D*R+F*$)<0&&(A=-A,I=-I,L=-L,R=-R,$=-$),1-A>1e-6?(x=Math.acos(A),C=Math.sin(x),S=Math.sin((1-_)*x)/C,E=Math.sin(_*x)/C):(S=1-_,E=_),P[0]=S*T+E*I,P[1]=S*M+E*L,P[2]=S*D+E*R,P[3]=S*F+E*$,P));else for(m=0;m<g;m+=1)1!==n.h&&(t>=O?p=1:t<N?p=0:(n.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[m]?u=a.__fnct[m]:(H=void 0===n.o.x[m]?n.o.x[0]:n.o.x[m],W=void 0===n.o.y[m]?n.o.y[0]:n.o.y[m],Y=void 0===n.i.x[m]?n.i.x[0]:n.i.x[m],U=void 0===n.i.y[m]?n.i.y[0]:n.i.y[m],u=Z.getBezierEasing(H,W,Y,U).get,a.__fnct[m]=u)):a.__fnct?u=a.__fnct:(H=n.o.x,W=n.o.y,Y=n.i.x,U=n.i.y,u=Z.getBezierEasing(H,W,Y,U).get,n.keyframeMetadata=u),p=u((t-N)/(O-N)))),y=r.s||n.e,X=1===n.h?n.s[m]:n.s[m]+(y[m]-n.s[m])*p,"multidimensional"===this.propType?i[m]=X:i=X}return e.lastIndex=f,i}function ot(t){var e=t[0]*k,i=t[1]*k,s=t[2]*k,n=Math.cos(e/2),r=Math.cos(i/2),a=Math.cos(s/2),o=Math.sin(e/2),h=Math.sin(i/2),l=Math.sin(s/2);return[o*h*a+n*r*l,o*r*a+n*h*l,n*h*a-o*r*l,n*r*a-o*h*l]}function ht(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==nt&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv}function lt(t){var e;if("unidimensional"===this.propType)e=t*this.mult,rt(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,rt(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function pt(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function dt(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ct(t,e,i,s){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=pt,this.setVValue=lt,this.addEffect=dt}function ut(t,e,i,s){var n;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r=e.k.length;for(this.v=l("float32",r),this.pv=l("float32",r),this.vel=l("float32",r),n=0;n<r;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=pt,this.setVValue=lt,this.addEffect=dt}function ft(t,e,i,s){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:nt,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.v=nt,this.pv=nt,this._isFirstFrame=!0,this.getValue=pt,this.setVValue=lt,this.interpolateValue=at,this.effectsSequence=[ht.bind(this)],this.addEffect=dt}function mt(t,e,i,s){var n;this.propType="multidimensional";var r,a,o,h,p=e.k.length;for(n=0;n<p-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n+1]&&e.k[n+1].s&&(r=e.k[n].s,a=e.k[n+1].s,o=e.k[n].to,h=e.k[n].ti,(2===r.length&&(r[0]!==a[0]||r[1]!==a[1])&&st.pointOnLine2D(r[0],r[1],a[0],a[1],r[0]+o[0],r[1]+o[1])&&st.pointOnLine2D(r[0],r[1],a[0],a[1],a[0]+h[0],a[1]+h[1])||3===r.length&&(r[0]!==a[0]||r[1]!==a[1]||r[2]!==a[2])&&st.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],r[0]+o[0],r[1]+o[1],r[2]+o[2])&&st.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],a[0]+h[0],a[1]+h[1],a[2]+h[2]))&&(e.k[n].to=null,e.k[n].ti=null),r[0]===a[0]&&r[1]===a[1]&&0===o[0]&&0===o[1]&&0===h[0]&&0===h[1]&&(2===r.length||r[2]===a[2]&&0===o[2]&&0===h[2])&&(e.k[n].to=null,e.k[n].ti=null));this.effectsSequence=[ht.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.getValue=pt,this.setVValue=lt,this.interpolateValue=at,this.frameId=-1;var d=e.k[0].s.length;for(this.v=l("float32",d),this.pv=l("float32",d),n=0;n<d;n+=1)this.v[n]=nt,this.pv[n]=nt;this._caching={lastFrame:nt,lastIndex:0,value:l("float32",d)},this.addEffect=dt}var gt={getProp:function(t,e,i,s,n){var r;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])r=new ut(t,e,s,n);else switch(i){case 0:r=new ft(t,e,s,n);break;case 1:r=new mt(t,e,s,n)}else r=new ct(t,e,s,n);return r.effectsSequence.length&&n.addDynamicProperty(r),r}};function vt(){}vt.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var yt=tt(8,(function(){return l("float32",2)}));function bt(){this.c=!1,this._length=0,this._maxLength=8,this.v=p(this._maxLength),this.o=p(this._maxLength),this.i=p(this._maxLength)}bt.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=yt.newElement(),this.o[i]=yt.newElement(),this.i[i]=yt.newElement(),i+=1},bt.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},bt.prototype.doubleArrayLength=function(){this.v=this.v.concat(p(this._maxLength)),this.i=this.i.concat(p(this._maxLength)),this.o=this.o.concat(p(this._maxLength)),this._maxLength*=2},bt.prototype.setXYAt=function(t,e,i,s,n){var r;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}(!r[s]||r[s]&&!n)&&(r[s]=yt.newElement()),r[s][0]=t,r[s][1]=e},bt.prototype.setTripleAt=function(t,e,i,s,n,r,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,s,"o",a,o),this.setXYAt(n,r,"i",a,o)},bt.prototype.reverse=function(){var t=new bt;t.setPathData(this.c,this._length);var e=this.v,i=this.o,s=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],s[0][0],s[0][1],i[0][0],i[0][1],0,!1),n=1);var r,a=this._length-1,o=this._length;for(r=n;r<o;r+=1)t.setTripleAt(e[a][0],e[a][1],s[a][0],s[a][1],i[a][0],i[a][1],r,!1),a-=1;return t},bt.prototype.length=function(){return this._length};var wt,_t=((wt=tt(4,(function(){return new bt}),(function(t){var e,i=t._length;for(e=0;e<i;e+=1)yt.release(t.v[e]),yt.release(t.i[e]),yt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}))).clone=function(t){var e,i=wt.newElement(),s=void 0===t._length?t.v.length:t._length;for(i.setLength(s),i.c=t.c,e=0;e<s;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},wt);function kt(){this._length=0,this._maxLength=4,this.shapes=p(this._maxLength)}kt.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(p(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},kt.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)_t.release(this.shapes[t]);this._length=0};var xt=function(){var t={newShapeCollection:function(){return e?s[e-=1]:new kt},release:function(t){var n,r=t._length;for(n=0;n<r;n+=1)_t.release(t.shapes[n]);t._length=0,e===i&&(s=Q.double(s),i*=2),s[e]=t,e+=1}},e=0,i=4,s=p(i);return t}(),At=function(){var t=-999999;function e(t,e,i){var s,n,r,a,o,h,l,p,d,c=i.lastIndex,u=this.keyframes;if(t<u[0].t-this.offsetTime)s=u[0].s[0],r=!0,c=0;else if(t>=u[u.length-1].t-this.offsetTime)s=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],r=!0;else{for(var f,m,g,v=c,y=u.length-1,b=!0;b&&(f=u[v],!((m=u[v+1]).t-this.offsetTime>t));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},c=v,!(r=1===f.h)){if(t>=m.t-this.offsetTime)p=1;else if(t<f.t-this.offsetTime)p=0;else{var w;g.__fnct?w=g.__fnct:(w=Z.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=w),p=w((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}n=m.s?m.s[0]:f.e[0]}s=f.s[0]}for(h=e._length,l=s.i[0].length,i.lastIndex=c,a=0;a<h;a+=1)for(o=0;o<l;o+=1)d=r?s.i[a][o]:s.i[a][o]+(n.i[a][o]-s.i[a][o])*p,e.i[a][o]=d,d=r?s.o[a][o]:s.o[a][o]+(n.o[a][o]-s.o[a][o])*p,e.o[a][o]=d,d=r?s.v[a][o]:s.v[a][o]+(n.v[a][o]-s.v[a][o])*p,e.v[a][o]=d}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==t&&(n<i&&e<i||n>s&&e>s)||(this._caching.lastIndex=n<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function s(){this.paths=this.localShapeCollection}function n(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,s=t._length;for(i=0;i<s;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=_t.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function r(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===i?e.pt.k:e.ks.k;this.v=_t.clone(n),this.pv=_t.clone(this.v),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,n,r){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===r?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=_t.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=_t.clone(this.v),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=r,a.prototype.setVValue=n,a.prototype.addEffect=h,l.prototype.getValue=r,l.prototype.interpolateShape=e,l.prototype.setVValue=n,l.prototype.addEffect=h;var p=function(){var t=x;function e(t,e){this.v=_t.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=gt.getProp(t,e.p,1,0,this),this.s=gt.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],s=this.s.v[0]/2,n=this.s.v[1]/2,r=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=i-n,a.v[1][0]=r?e+s:e-s,a.v[1][1]=i,a.v[2][0]=e,a.v[2][1]=i+n,a.v[3][0]=r?e-s:e+s,a.v[3][1]=i,a.i[0][0]=r?e-s*t:e+s*t,a.i[0][1]=i-n,a.i[1][0]=r?e+s:e-s,a.i[1][1]=i-n*t,a.i[2][0]=r?e+s*t:e-s*t,a.i[2][1]=i+n,a.i[3][0]=r?e-s:e+s,a.i[3][1]=i+n*t,a.o[0][0]=r?e+s*t:e-s*t,a.o[0][1]=i-n,a.o[1][0]=r?e+s:e-s,a.o[1][1]=i+n*t,a.o[2][0]=r?e-s*t:e+s*t,a.o[2][1]=i+n,a.o[3][0]=r?e-s:e+s,a.o[3][1]=i-n*t}},o([vt],e),e}(),d=function(){function t(t,e){this.v=_t.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=gt.getProp(t,e.ir,0,0,this),this.is=gt.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=gt.getProp(t,e.pt,0,0,this),this.p=gt.getProp(t,e.p,1,0,this),this.r=gt.getProp(t,e.r,0,k,this),this.or=gt.getProp(t,e.or,0,0,this),this.os=gt.getProp(t,e.os,0,.01,this),this.localShapeCollection=xt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,s,n=2*Math.floor(this.pt.v),r=2*Math.PI/n,a=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,d=2*Math.PI*o/(2*n),c=2*Math.PI*h/(2*n),u=-Math.PI/2;u+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<n;t+=1){i=a?l:p,s=a?d:c;var m=(e=a?o:h)*Math.cos(u),g=e*Math.sin(u),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*s*i*f,g-y*s*i*f,m+v*s*i*f,g+y*s*i*f,t,!0),a=!a,u+=r*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,n=this.os.v,r=2*Math.PI*s/(4*e),a=.5*-Math.PI,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(a),l=s*Math.sin(a),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),d=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*r*n*o,l-d*r*n*o,h+p*r*n*o,l+d*r*n*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},o([vt],t),t}(),c=function(){function t(t,e){this.v=_t.newElement(),this.v.c=!0,this.localShapeCollection=xt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=gt.getProp(t,e.p,1,0,this),this.s=gt.getProp(t,e.s,1,0,this),this.r=gt.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,n=b(i,s,this.r.v),r=n*(1-x);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+n,t+i,e-s+r,0,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-r,t+i,e+s-n,1,!0),0!==n?(this.v.setTripleAt(t+i-n,e+s,t+i-n,e+s,t+i-r,e+s,2,!0),this.v.setTripleAt(t-i+n,e+s,t-i+r,e+s,t-i+n,e+s,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-n,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+r,t-i,e-s+n,5,!0),this.v.setTripleAt(t-i+n,e-s,t-i+n,e-s,t-i+r,e-s,6,!0),this.v.setTripleAt(t+i-n,e-s,t+i-r,e-s,t+i-n,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+r,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+r,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+r,t+i,e-s+n,0,!0),0!==n?(this.v.setTripleAt(t+i-n,e-s,t+i-n,e-s,t+i-r,e-s,1,!0),this.v.setTripleAt(t-i+n,e-s,t-i+r,e-s,t-i+n,e-s,2,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+n,t-i,e-s+r,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-r,t-i,e+s-n,4,!0),this.v.setTripleAt(t-i+n,e+s,t-i+n,e+s,t-i+r,e+s,5,!0),this.v.setTripleAt(t+i-n,e+s,t+i-r,e+s,t+i-n,e+s,6,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-n,t+i,e+s-r,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+r,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-r,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-r,e+s,t+i,e+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},o([vt],t),t}();var u={getShapeProp:function(t,e,i){var s;return 3===i||4===i?s=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new a(t,e,i):5===i?s=new c(t,e):6===i?s=new p(t,e):7===i&&(s=new d(t,e)),s.k&&t.addDynamicProperty(s),s},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return u}(),Ct=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function r(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,-n,0,0,n,s,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(1,0,0,0,0,s,-n,0,0,n,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,0,n,0,0,1,0,0,-n,0,s,0,0,0,0,1)}function h(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,-n,0,0,n,s,0,0,0,0,1,0,0,0,0,1)}function p(t,e){return this._t(1,e,t,1,0,0)}function d(t,e){return this.shear(i(t),i(e))}function c(s,n){var r=t(n),a=e(n);return this._t(r,a,0,0,-a,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(s),1,0,0,0,0,1,0,0,0,0,1)._t(r,-a,0,0,a,r,0,0,0,0,1,0,0,0,0,1)}function u(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function f(t,e,i,s,n,r,a,o,h,l,p,d,c,u,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=n,this.props[5]=r,this.props[6]=a,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=d,this.props[12]=c,this.props[13]=u,this.props[14]=f,this.props[15]=m,this}function m(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function g(t,e,i,s,n,r,a,o,h,l,p,d,c,u,f,m){var g=this.props;if(1===t&&0===e&&0===i&&0===s&&0===n&&1===r&&0===a&&0===o&&0===h&&0===l&&1===p&&0===d)return g[12]=g[12]*t+g[15]*c,g[13]=g[13]*r+g[15]*u,g[14]=g[14]*p+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],w=g[3],_=g[4],k=g[5],x=g[6],A=g[7],C=g[8],S=g[9],E=g[10],P=g[11],T=g[12],M=g[13],D=g[14],F=g[15];return g[0]=v*t+y*n+b*h+w*c,g[1]=v*e+y*r+b*l+w*u,g[2]=v*i+y*a+b*p+w*f,g[3]=v*s+y*o+b*d+w*m,g[4]=_*t+k*n+x*h+A*c,g[5]=_*e+k*r+x*l+A*u,g[6]=_*i+k*a+x*p+A*f,g[7]=_*s+k*o+x*d+A*m,g[8]=C*t+S*n+E*h+P*c,g[9]=C*e+S*r+E*l+P*u,g[10]=C*i+S*a+E*p+P*f,g[11]=C*s+S*o+E*d+P*m,g[12]=T*t+M*n+D*h+F*c,g[13]=T*e+M*r+D*l+F*u,g[14]=T*i+M*a+D*p+F*f,g[15]=T*s+M*o+D*d+F*m,this._identityCalculated=!1,this}function v(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function b(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function w(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function k(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function x(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function A(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function C(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function S(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,s=-this.props[4]/t,n=this.props[0]/t,r=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Ct;return o.props[0]=e,o.props[1]=i,o.props[4]=s,o.props[5]=n,o.props[12]=r,o.props[13]=a,o}function E(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function P(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=E(t[e]);return s}function T(t,e,i){var s=l("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=e[0],s[3]=e[1],s[4]=i[0],s[5]=i[1];else{var n=this.props[0],r=this.props[1],a=this.props[4],o=this.props[5],h=this.props[12],p=this.props[13];s[0]=t[0]*n+t[1]*a+h,s[1]=t[0]*r+t[1]*o+p,s[2]=e[0]*n+e[1]*a+h,s[3]=e[0]*r+e[1]*o+p,s[4]=i[0]*n+i[1]*a+h,s[5]=i[0]*r+i[1]*o+p}return s}function M(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function D(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function F(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=s(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function I(t){return t<1e-6&&t>0||t>-1e-6&&t<0?s(1e4*t)/1e4:t}function L(){var t=this.props;return"matrix("+I(t[0])+","+I(t[1])+","+I(t[4])+","+I(t[5])+","+I(t[12])+","+I(t[13])+")"}return function(){this.reset=n,this.rotate=r,this.rotateX=a,this.rotateY=o,this.rotateZ=h,this.skew=d,this.skewFromAxis=c,this.shear=p,this.scale=u,this.setTransform=f,this.translate=m,this.transform=g,this.multiply=v,this.applyToPoint=k,this.applyToX=x,this.applyToY=A,this.applyToZ=C,this.applyToPointArray=M,this.applyToTriplePoints=T,this.applyToPointStringified=D,this.toCSS=F,this.to2dCSS=L,this.clone=w,this.cloneFromProps=_,this.equals=b,this.inversePoints=P,this.inversePoint=E,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=l("float32",16),this.reset()}}();function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}var Et={},Pt="__[STANDALONE]__";function Tt(){J.searchAnimations()}Et.play=J.play,Et.pause=J.pause,Et.setLocationHref=function(e){t=e},Et.togglePause=J.togglePause,Et.setSpeed=J.setSpeed,Et.setDirection=J.setDirection,Et.stop=J.stop,Et.searchAnimations=Tt,Et.registerAnimation=J.registerAnimation,Et.loadAnimation=function(t){return J.loadAnimation(t)},Et.setSubframeRendering=function(t){!function(t){c=!!t}(t)},Et.resize=J.resize,Et.goToAndStop=J.goToAndStop,Et.destroy=J.destroy,Et.setQuality=function(t){if("string"==typeof t)switch(t){case"high":z(200);break;default:case"medium":z(50);break;case"low":z(10)}else!isNaN(t)&&t>1&&z(t);B()},Et.inBrowser=function(){return"undefined"!=typeof navigator},Et.installPlugin=function(t,e){"expressions"===t&&(u=e)},Et.freeze=J.freeze,Et.unfreeze=J.unfreeze,Et.setVolume=J.setVolume,Et.mute=J.mute,Et.unmute=J.unmute,Et.getRegisteredAnimations=J.getRegisteredAnimations,Et.useWebWorker=function(t){s=!!t},Et.setIDPrefix=function(t){f=t},Et.__getFactory=function(t){switch(t){case"propertyFactory":return gt;case"shapePropertyFactory":return At;case"matrix":return Ct;default:return null}},Et.version="5.12.2";var Mt="";if(Pt){var Dt=document.getElementsByTagName("script"),Ft=Dt[Dt.length-1]||{src:""};Mt=Ft.src?Ft.src.replace(/^[^\?]+\??/,""):"",function(t){for(var e=Mt.split("&"),i=0;i<e.length;i+=1){var s=e[i].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}return null}("renderer")}var It=setInterval((function(){"complete"===document.readyState&&(clearInterval(It),Tt())}),100);try{"object"!==St(e)&&i.amdO}catch(t){}var Lt=function(){var t={},e={};return t.registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,s){return new e[t](i,s)},t}();function Rt(){}function $t(){}function Ot(){}Rt.prototype.initModifierProperties=function(){},Rt.prototype.addShapeToModifier=function(){},Rt.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:xt.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},Rt.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=n,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Rt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},o([vt],Rt),o([Rt],$t),$t.prototype.initModifierProperties=function(t,e){this.s=gt.getProp(t,e.s,0,.01,this),this.e=gt.getProp(t,e.e,0,.01,this),this.o=gt.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},$t.prototype.addShapeToModifier=function(t){t.pathsData=[]},$t.prototype.calculateShapeEdges=function(t,e,i,s,n){var r=[];e<=1?r.push({s:t,e}):t>=1?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));var a,o,h=[],l=r.length;for(a=0;a<l;a+=1){var p,d;(o=r[a]).e*n<s||o.s*n>s+i||(p=o.s*n<=s?0:(o.s*n-s)/i,d=o.e*n>=s+i?1:(o.e*n-s)/i,h.push([p,d]))}return h.length||h.push([0,0]),h},$t.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)it.release(t[e]);return t.length=0,t},$t.prototype.processShapes=function(t){var e,i,s,n;if(this._mdf||t){var r=this.o.v%360/360;if(r<0&&(r+=1),(e=this.s.v>1?1+r:this.s.v<0?0+r:this.s.v+r)>(i=this.e.v>1?1+r:this.e.v<0?0+r:this.e.v+r)){var a=e;e=i,i=a}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,h,l,p,d,c=this.shapes.length,u=0;if(i===e)for(n=0;n<c;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(n=0;n<c;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var f,m,g=[];for(n=0;n<c;n+=1)if((f=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(h=(s=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(l=this.releasePathsData(f.pathsData),o=0;o<h;o+=1)p=st.getSegmentsLength(s.shapes[o]),l.push(p),d+=p.totalLength;f.totalShapeLength=d,f.pathsData=l}u+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=e,b=i,w=0;for(n=c-1;n>=0;n-=1)if((f=this.shapes[n]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&c>1?(v=this.calculateShapeEdges(e,i,f.totalShapeLength,w,u),w+=f.totalShapeLength):v=[[y,b]],h=v.length,o=0;o<h;o+=1){y=v[o][0],b=v[o][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var _=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var k=_.pop();this.addPaths(_,m),_=this.addShapes(f,g[1],k)}else this.addPaths(_,m),_=this.addShapes(f,g[1]);this.addPaths(_,m)}}f.shape.paths=m}}},$t.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e.addShape(t[i])},$t.prototype.addSegment=function(t,e,i,s,n,r,a){n.setXYAt(e[0],e[1],"o",r),n.setXYAt(i[0],i[1],"i",r+1),a&&n.setXYAt(t[0],t[1],"v",r),n.setXYAt(s[0],s[1],"v",r+1)},$t.prototype.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),s&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},$t.prototype.addShapes=function(t,e,i){var s,n,r,a,o,h,l,p,d=t.pathsData,c=t.shape.paths.shapes,u=t.shape.paths._length,f=0,m=[],g=!0;for(i?(o=i._length,p=i._length):(i=_t.newElement(),o=0,p=0),m.push(i),s=0;s<u;s+=1){for(h=d[s].lengths,i.c=c[s].c,r=c[s].c?h.length:h.length+1,n=1;n<r;n+=1)if(f+(a=h[n-1]).addedLength<e.s)f+=a.addedLength,i.c=!1;else{if(f>e.e){i.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(c[s].v[n-1],c[s].o[n-1],c[s].i[n],c[s].v[n],i,o,g),g=!1):(l=st.getNewSegment(c[s].v[n-1],c[s].v[n],c[s].o[n-1],c[s].i[n],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,h[n-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1),f+=a.addedLength,o+=1}if(c[s].c&&h.length){if(a=h[n-1],f<=e.e){var v=h[n-1].addedLength;e.s<=f&&e.e>=f+v?(this.addSegment(c[s].v[n-1],c[s].o[n-1],c[s].i[0],c[s].v[0],i,o,g),g=!1):(l=st.getNewSegment(c[s].v[n-1],c[s].v[0],c[s].o[n-1],c[s].i[0],(e.s-f)/v,(e.e-f)/v,h[n-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1)}else i.c=!1;f+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],"i",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;s<u-1&&(i=_t.newElement(),g=!0,m.push(i),o=0)}return m},o([Rt],Ot),Ot.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=gt.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ot.prototype.processPath=function(t,e){var i=e/100,s=[0,0],n=t._length,r=0;for(r=0;r<n;r+=1)s[0]+=t.v[r][0],s[1]+=t.v[r][1];s[0]/=n,s[1]/=n;var a,o,h,l,p,d,c=_t.newElement();for(c.c=t.c,r=0;r<n;r+=1)a=t.v[r][0]+(s[0]-t.v[r][0])*i,o=t.v[r][1]+(s[1]-t.v[r][1])*i,h=t.o[r][0]+(s[0]-t.o[r][0])*-i,l=t.o[r][1]+(s[1]-t.o[r][1])*-i,p=t.i[r][0]+(s[0]-t.i[r][0])*-i,d=t.i[r][1]+(s[1]-t.i[r][1])*-i,c.setTripleAt(a,o,h,l,p,d,r);return c},Ot.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amount.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Nt=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Ct,this.pre=new Ct,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=gt.getProp(t,e.p.x,0,0,this),this.py=gt.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=gt.getProp(t,e.p.z,0,0,this))):this.p=gt.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=gt.getProp(t,e.rx,0,k,this),this.ry=gt.getProp(t,e.ry,0,k,this),this.rz=gt.getProp(t,e.rz,0,k,this),e.or.k[0].ti){var s,n=e.or.k.length;for(s=0;s<n;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null}this.or=gt.getProp(t,e.or,1,k,this),this.or.sh=!0}else this.r=gt.getProp(t,e.r||{k:0},0,k,this);e.sk&&(this.sk=gt.getProp(t,e.sk,0,k,this),this.sa=gt.getProp(t,e.sa,0,k,this)),this.a=gt.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=gt.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=gt.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var s,n;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],n=[];var r=this.px,a=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(s[0]=r.getValueAtTime((r.keyframes[0].t+.01)/i,0),s[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),n[0]=r.getValueAtTime(r.keyframes[0].t/i,0),n[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(s[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/i,0),s[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),n[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(s=[r.pv,a.pv],n[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/i,r.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else s=n=t;this.v.rotate(-Math.atan2(s[1]-n[1],s[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.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,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},o([vt],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=vt.prototype.addDynamicProperty,{getTransformProperty:function(t,i,s){return new e(t,i,s)}}}();function zt(){}function Bt(){}function Vt(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function qt(t){return Math.abs(t)<=1e-5}function jt(t,e,i){return t*(1-i)+e*i}function Ht(t,e,i){return[jt(t[0],e[0],i),jt(t[1],e[1],i)]}function Wt(t,e,i,s){return[3*e-t-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function Yt(t){return new Ut(t,t,t,t,!1)}function Ut(t,e,i,s,n){n&&ie(t,e)&&(e=Ht(t,s,1/3)),n&&ie(i,s)&&(i=Ht(t,s,2/3));var r=Wt(t[0],e[0],i[0],s[0]),a=Wt(t[1],e[1],i[1],s[1]);this.a=[r[0],a[0]],this.b=[r[1],a[1]],this.c=[r[2],a[2]],this.d=[r[3],a[3]],this.points=[t,e,i,s]}function Xt(t,e){var i=t.points[0][e],s=t.points[t.points.length-1][e];if(i>s){var n=s;s=i,i=n}for(var r=function(t,e,i){if(0===t)return[];var s=e*e-4*t*i;if(s<0)return[];var n=-e/(2*t);if(0===s)return[n];var r=Math.sqrt(s)/(2*t);return[n-r,n+r]}(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<r.length;a+=1)if(r[a]>0&&r[a]<1){var o=t.point(r[a])[e];o<i?i=o:o>s&&(s=o)}return{min:i,max:s}}function Kt(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function Gt(t){var e=t.bez.split(.5);return[Kt(e[0],t.t1,t.t),Kt(e[1],t.t,t.t2)]}function Jt(t,e,i,s,n,r){if(h=t,l=e,2*Math.abs(h.cx-l.cx)<h.width+l.width&&2*Math.abs(h.cy-l.cy)<h.height+l.height)if(i>=r||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s)n.push([t.t,e.t]);else{var a=Gt(t),o=Gt(e);Jt(a[0],o[0],i+1,s,n,r),Jt(a[0],o[1],i+1,s,n,r),Jt(a[1],o[0],i+1,s,n,r),Jt(a[1],o[1],i+1,s,n,r)}var h,l}function Zt(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Qt(t,e,i,s){var n=[t[0],t[1],1],r=[e[0],e[1],1],a=[i[0],i[1],1],o=[s[0],s[1],1],h=Zt(Zt(n,r),Zt(a,o));return qt(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function te(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function ee(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function ie(t,e){return Vt(t[0],e[0])&&Vt(t[1],e[1])}function se(){}function ne(t,e,i,s,n,r,a){var o=i-Math.PI/2,h=i+Math.PI/2,l=e[0]+Math.cos(i)*s*n,p=e[1]-Math.sin(i)*s*n;t.setTripleAt(l,p,l+Math.cos(o)*r,p-Math.sin(o)*r,l+Math.cos(h)*a,p-Math.sin(h)*a,t.length())}function re(t,e){var i,s,n,r,a=0===e?t.length()-1:e-1,o=(e+1)%t.length(),h=(i=t.v[a],s=t.v[o],n=[s[0]-i[0],s[1]-i[1]],r=.5*-Math.PI,[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]);return Math.atan2(0,1)-Math.atan2(h[1],h[0])}function ae(t,e,i,s,n,r,a){var o=re(e,i),h=e.v[i%e._length],l=e.v[0===i?e._length-1:i-1],p=e.v[(i+1)%e._length],d=2===r?Math.sqrt(Math.pow(h[0]-l[0],2)+Math.pow(h[1]-l[1],2)):0,c=2===r?Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)):0;ne(t,e.v[i%e._length],o,a,s,c/(2*(n+1)),d/(2*(n+1)))}function oe(t,e,i,s,n,r){for(var a=0;a<s;a+=1){var o=(a+1)/(s+1),h=2===n?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);ne(t,e.point(o),l,r,i,h/(2*(s+1)),h/(2*(s+1))),r=-r}return r}function he(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[te(t,s,i),te(e,s,i)]}function le(t,e){var i,s,n,r,a,o,h;i=(h=he(t.points[0],t.points[1],e))[0],s=h[1],n=(h=he(t.points[1],t.points[2],e))[0],r=h[1],a=(h=he(t.points[2],t.points[3],e))[0],o=h[1];var l=Qt(i,s,n,r);null===l&&(l=s);var p=Qt(a,o,n,r);return null===p&&(p=a),new Ut(i,l,p,o)}function pe(t,e,i,s,n){var r=e.points[3],a=i.points[0];if(3===s)return r;if(ie(r,a))return r;if(2===s){var o=-e.tangentAngle(1),h=-i.tangentAngle(0)+Math.PI,l=Qt(r,te(r,o+Math.PI/2,100),a,te(a,o+Math.PI/2,100)),p=l?ee(l,r):ee(r,a)/2,d=te(r,o,2*p*x);return t.setXYAt(d[0],d[1],"o",t.length()-1),d=te(a,h,2*p*x),t.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],t.length()),a}var c=Qt(ie(r,e.points[2])?e.points[0]:e.points[2],r,a,ie(a,i.points[1])?i.points[3]:i.points[1]);return c&&ee(c,r)<n?(t.setTripleAt(c[0],c[1],c[0],c[1],c[0],c[1],t.length()),c):r}function de(t,e){var i=t.intersections(e);return i.length&&Vt(i[0][0],1)&&i.shift(),i.length?i[0]:null}function ce(t,e){var i=t.slice(),s=e.slice(),n=de(t[t.length-1],e[0]);return n&&(i[t.length-1]=t[t.length-1].split(n[0])[0],s[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=de(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[i,s]}function ue(t,e){var i,s,n,r,a=t.inflectionPoints();if(0===a.length)return[le(t,e)];if(1===a.length||Vt(a[1],1))return i=(n=t.split(a[0]))[0],s=n[1],[le(i,e),le(s,e)];i=(n=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return r=(n=n[1].split(o))[0],s=n[1],[le(i,e),le(r,e),le(s,e)]}function fe(){}function me(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",s="normal",n=e.length,r=0;r<n;r+=1)switch(e[r].toLowerCase()){case"italic":s="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:s,weight:t.fWeight||i}}o([Rt],zt),zt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=gt.getProp(t,e.c,0,null,this),this.o=gt.getProp(t,e.o,0,null,this),this.tr=Nt.getTransformProperty(t,e.tr,this),this.so=gt.getProp(t,e.tr.so,0,.01,this),this.eo=gt.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ct,this.rMatrix=new Ct,this.sMatrix=new Ct,this.tMatrix=new Ct,this.matrix=new Ct},zt.prototype.applyTransforms=function(t,e,i,s,n,r){var a=r?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-n),h=s.s.v[1]+(1-s.s.v[1])*(1-n);t.translate(s.p.v[0]*a*n,s.p.v[1]*a*n,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*a*n),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(r?1/o:o,r?1/h:h),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},zt.prototype.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},zt.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},zt.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},zt.prototype.changeGroupRender=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},zt.prototype.processShapes=function(t){var e,i,s,n,r,a=!1;if(this._mdf||t){var o,h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(r=0,s=0;s<=this._groups.length-1;s+=1){if(o=r<h,this._groups[s]._render=o,this.changeGroupRender(this._groups[s].it,o),!o){var p=this.elemsData[s].it,d=p[p.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}r+=1}this._currentCopies=h;var c=this.o.v,u=c%1,f=c>0?Math.floor(c):Math.ceil(c),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,w=0;if(c>0){for(;w<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),w+=u)}else if(c<0){for(;w>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),w-=u)}for(s=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,r=this._currentCopies;r;){if(b=(i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(s/(this._currentCopies-1)),0!==w){for((0!==s&&1===n||s!==this._currentCopies-1&&-1===n)&&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(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)i[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)i[y]=this.matrix.props[y];w+=1,r-=1,s+=n}}else for(r=this._currentCopies,s=0,n=1;r;)i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,r-=1,s+=n;return a},zt.prototype.addShape=function(){},o([Rt],Bt),Bt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=gt.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Bt.prototype.processPath=function(t,e){var i,s=_t.newElement();s.c=t.c;var n,r,a,o,h,l,p,d,c,u,f,m,g=t._length,v=0;for(i=0;i<g;i+=1)n=t.v[i],a=t.o[i],r=t.i[i],n[0]===a[0]&&n[1]===a[1]&&n[0]===r[0]&&n[1]===r[1]?0!==i&&i!==g-1||t.c?(o=0===i?t.v[g-1]:t.v[i-1],l=(h=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=f=n[0]+(o[0]-n[0])*l,d=m=n[1]-(n[1]-o[1])*l,c=p-(p-n[0])*x,u=d-(d-n[1])*x,s.setTripleAt(p,d,c,u,f,m,v),v+=1,o=i===g-1?t.v[0]:t.v[i+1],l=(h=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=c=n[0]+(o[0]-n[0])*l,d=u=n[1]+(o[1]-n[1])*l,f=p-(p-n[0])*x,m=d-(d-n[1])*x,s.setTripleAt(p,d,c,u,f,m,v),v+=1):(s.setTripleAt(n[0],n[1],a[0],a[1],r[0],r[1],v),v+=1):(s.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],v),v+=1);return s},Bt.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.rd.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Ut.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Ut.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Ut.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},Ut.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},Ut.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(qt(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var s=Math.sqrt(i);return qt(s)?s>0&&s<1?[e]:[]:[e-s,e+s].filter((function(t){return t>0&&t<1}))},Ut.prototype.split=function(t){if(t<=0)return[Yt(this.points[0]),this];if(t>=1)return[this,Yt(this.points[this.points.length-1])];var e=Ht(this.points[0],this.points[1],t),i=Ht(this.points[1],this.points[2],t),s=Ht(this.points[2],this.points[3],t),n=Ht(e,i,t),r=Ht(i,s,t),a=Ht(n,r,t);return[new Ut(this.points[0],e,n,a,!0),new Ut(a,r,s,this.points[3],!0)]},Ut.prototype.bounds=function(){return{x:Xt(this,0),y:Xt(this,1)}},Ut.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},Ut.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return Jt(Kt(this,0,1),Kt(t,0,1),0,e,s,i),s},Ut.shapeSegment=function(t,e){var i=(e+1)%t.length();return new Ut(t.v[e],t.o[e],t.i[i],t.v[i],!0)},Ut.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new Ut(t.v[i],t.i[i],t.o[e],t.v[e],!0)},o([Rt],se),se.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=gt.getProp(t,e.s,0,null,this),this.frequency=gt.getProp(t,e.r,0,null,this),this.pointsType=gt.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},se.prototype.processPath=function(t,e,i,s){var n=t._length,r=_t.newElement();if(r.c=t.c,t.c||(n-=1),0===n)return r;var a=-1,o=Ut.shapeSegment(t,0);ae(r,t,0,e,i,s,a);for(var h=0;h<n;h+=1)a=oe(r,o,e,i,s,-a),o=h!==n-1||t.c?Ut.shapeSegment(t,(h+1)%n):null,ae(r,t,h+1,e,i,s,a);return r},se.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h,l,p));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},o([Rt],fe),fe.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=gt.getProp(t,e.a,0,null,this),this.miterLimit=gt.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},fe.prototype.processPath=function(t,e,i,s){var n=_t.newElement();n.c=t.c;var r,a,o,h=t.length();t.c||(h-=1);var l=[];for(r=0;r<h;r+=1)o=Ut.shapeSegment(t,r),l.push(ue(o,e));if(!t.c)for(r=h-1;r>=0;r-=1)o=Ut.shapeSegmentInverted(t,r),l.push(ue(o,e));l=function(t){for(var e,i=1;i<t.length;i+=1)e=ce(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=ce(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}(l);var p=null,d=null;for(r=0;r<l.length;r+=1){var c=l[r];for(d&&(p=pe(n,d,c[0],i,s)),d=c[c.length-1],a=0;a<c.length;a+=1)o=c[a],p&&ie(o.points[0],p)?n.setXYAt(o.points[1][0],o.points[1][1],"o",n.length()-1):n.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],n.length()),n.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],n.length()),p=o.points[3]}return l.length&&pe(n,d,l[0][0],i,s),n},fe.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amount.v,l=this.miterLimit.v,p=this.lineJoin;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h,p,l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var ge=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,s=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(t,e){var i=a("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var s=a("span");s.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(s),document.body.appendChild(i);var n=s.offsetWidth;return s.style.fontFamily=function(t){var e,i=t.split(","),s=i.length,n=[];for(e=0;e<s;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&n.push(i[e]);return n.join(",")}(t)+", "+e,{node:s,w:n,parent:i}}function r(t,e){var i,s=document.body&&e?"svg":"canvas",n=me(t);if("svg"===s){var r=V("text");r.style.fontSize="100px",r.setAttribute("font-family",t.fFamily),r.setAttribute("font-style",n.style),r.setAttribute("font-weight",n.weight),r.textContent="1",t.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",t.fClass)):r.style.fontFamily=t.fFamily,e.appendChild(r),i=r}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=n.style+" "+n.weight+" 100px "+t.fFamily,i=a}return{measureText:function(t){return"svg"===s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function o(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var s=t.charCodeAt(1);s>=56320&&s<=57343&&(e=1024*(i-55296)+s-56320+65536)}return e}function h(t){var e=o(t);return e>=127462&&e<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return l.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==s.indexOf(i)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return h(t.substr(0,2))&&h(t.substr(2,2))},l.isRegionalCode=h,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var s=o(t.substr(e,2));if(s!==i)return!1;var n=0;for(e+=2;n<5;){if((s=o(t.substr(e,2)))<917601||s>917626)return!1;n+=1,e+=2}return 917631===o(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=i,l.prototype={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,s,n=t.length,r=this.chars.length;for(e=0;e<n;e+=1){for(i=0,s=!1;i<r;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(s=!0),i+=1;s||(this.chars.push(t[e]),r+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=r(t),t.cache={}})),void(this.fonts=t.list);var i,s=t.list,o=s.length,h=o;for(i=0;i<o;i+=1){var l,p,d=!0;if(s[i].loaded=!1,s[i].monoCase=n(s[i].fFamily,"monospace"),s[i].sansCase=n(s[i].fFamily,"sans-serif"),s[i].fPath){if("p"===s[i].fOrigin||3===s[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[i].fFamily+'"], style[f-origin="3"][f-family="'+s[i].fFamily+'"]')).length>0&&(d=!1),d){var c=a("style");c.setAttribute("f-forigin",s[i].fOrigin),c.setAttribute("f-origin",s[i].origin),c.setAttribute("f-family",s[i].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+s[i].fFamily+"; font-style: normal; src: url('"+s[i].fPath+"');}",e.appendChild(c)}}else if("g"===s[i].fOrigin||1===s[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),p=0;p<l.length;p+=1)-1!==l[p].href.indexOf(s[i].fPath)&&(d=!1);if(d){var u=a("link");u.setAttribute("f-forigin",s[i].fOrigin),u.setAttribute("f-origin",s[i].origin),u.type="text/css",u.rel="stylesheet",u.href=s[i].fPath,document.body.appendChild(u)}}else if("t"===s[i].fOrigin||2===s[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),p=0;p<l.length;p+=1)s[i].fPath===l[p].src&&(d=!1);if(d){var f=a("link");f.setAttribute("f-forigin",s[i].fOrigin),f.setAttribute("f-origin",s[i].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",s[i].fPath),e.appendChild(f)}}}else s[i].loaded=!0,h-=1;s[i].helper=r(s[i],e),s[i].cache={},this.fonts.push(s[i])}0===h?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,s){for(var n=0,r=this.chars.length;n<r;){if(this.chars[n].ch===e&&this.chars[n].style===i&&this.chars[n].fFamily===s)return this.chars[n];n+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,s)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var s=this.getFontByName(e),n=t;if(!s.cache[n]){var r=s.helper;if(" "===t){var a=r.measureText("|"+t+"|"),o=r.measureText("||");s.cache[n]=(a-o)/100}else s.cache[n]=r.measureText(t)/100}return s.cache[n]*i},checkLoadedFonts:function(){var t,e,i,s=this.fonts.length,n=s;for(t=0;t<s;t+=1)this.fonts[t].loaded?n-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(n-=1,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)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},l}();function ve(t){this.animationData=t}function ye(){}ve.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},ye.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var be,we=(be={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return be[t]||""});function _e(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function ke(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function xe(t,e,i){this.p=gt.getProp(e,t.v,1,0,i)}function Ae(t,e,i){this.p=gt.getProp(e,t.v,1,0,i)}function Ce(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Se(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Ee(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Pe(){this.p={}}function Te(t,e){var i,s=t.ef||[];this.effectElements=[];var n,r=s.length;for(i=0;i<r;i+=1)n=new Me(s[i],e),this.effectElements.push(n)}function Me(t,e){this.init(t,e)}function De(){}function Fe(){}function Ie(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function Le(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?gt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=gt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function Re(){}o([vt],Me),Me.prototype.getValue=Me.prototype.iterateDynamicProperties,Me.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var s,n=this.data.ef.length,r=this.data.ef;for(i=0;i<n;i+=1){switch(s=null,r[i].ty){case 0:s=new _e(r[i],e,this);break;case 1:s=new ke(r[i],e,this);break;case 2:s=new xe(r[i],e,this);break;case 3:s=new Ae(r[i],e,this);break;case 4:case 7:s=new Ee(r[i],e,this);break;case 10:s=new Ce(r[i],e,this);break;case 11:s=new Se(r[i],e,this);break;case 5:s=new Te(r[i],e,this);break;default:s=new Pe(r[i],e,this)}s&&this.effectElements.push(s)}},De.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=null;if(t){var e=t("layer"),i=t("effects"),s=t("shape"),n=t("text"),r=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=r(this):4===this.data.ty?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=we(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=F(),this.data.sr||(this.data.sr=1),this.effectsManager=new Te(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Fe.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},Ie.prototype.prepareFrame=function(){},o([ye,De,Fe],Ie),Ie.prototype.getBaseElement=function(){return null},Ie.prototype.renderFrame=function(){},Ie.prototype.destroy=function(){},Ie.prototype.initExpressions=function(){var t=null;if(t){var e=t("footage");this.layerInterface=e(this)}},Ie.prototype.getFootageData=function(){return this.footageData},Le.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},o([ye,De,Fe],Le),Le.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Le.prototype.show=function(){},Le.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Le.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Le.prototype.resume=function(){this._canPlay=!0},Le.prototype.setRate=function(t){this.audio.rate(t)},Le.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},Le.prototype.getBaseElement=function(){return null},Le.prototype.destroy=function(){},Le.prototype.sourceRectAtTime=function(){},Le.prototype.initExpressions=function(){},Re.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},Re.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},Re.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Re.prototype.createAudio=function(t){return new Le(t,this.globalData,this)},Re.prototype.createFootage=function(t){return new Ie(t,this.globalData,this)},Re.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},Re.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,s=t.length,n=this.layers.length;for(e=0;e<s;e+=1)for(i=0;i<n;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},Re.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},Re.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Re.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,n=this.layers,r=0,a=n.length;r<a;)n[r].ind==e&&(s[r]&&!0!==s[r]?(i.push(s[r]),s[r].setAsParent(),void 0!==n[r].parent?this.buildElementParenting(t,n[r].parent,i):t.setHierarchy(i)):(this.buildItem(r),this.addPendingElement(t))),r+=1},Re.prototype.addPendingElement=function(t){this.pendingElements.push(t)},Re.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var s=this.createComp(t[e]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},Re.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},Re.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.nm===i){e=this.elements[s];break}}return 0===t.length?e:e.getElementByPath(t)},Re.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new ge,this.globalData.slotManager=function(t){return new ve(t)}(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var $e="transformEFfect";function Oe(){}function Ne(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s,n,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=p(o),this.solidPath="";var h,l,d,c,u,f,m=this.masksProperties,g=0,v=[],y=F(),b="clipPath",w="clip-path";for(s=0;s<o;s+=1)if(("a"!==m[s].mode&&"n"!==m[s].mode||m[s].inv||100!==m[s].o.k||m[s].o.x)&&(b="mask",w="mask"),"s"!==m[s].mode&&"i"!==m[s].mode||0!==g?d=null:((d=V("rect")).setAttribute("fill","#ffffff"),d.setAttribute("width",this.element.comp.data.w||0),d.setAttribute("height",this.element.comp.data.h||0),v.push(d)),n=V("path"),"n"===m[s].mode)this.viewData[s]={op:gt.getProp(this.element,m[s].o,0,.01,this.element),prop:At.getShapeProp(this.element,m[s],3),elem:n,lastPath:""},a.appendChild(n);else{var _;if(g+=1,n.setAttribute("fill","s"===m[s].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==m[s].x.k?(b="mask",w="mask",f=gt.getProp(this.element,m[s].x,0,null,this.element),_=F(),(c=V("filter")).setAttribute("id",_),(u=V("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),c.appendChild(u),a.appendChild(c),n.setAttribute("stroke","s"===m[s].mode?"#000000":"#ffffff")):(u=null,f=null),this.storedData[s]={elem:n,x:f,expan:u,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},"i"===m[s].mode){l=v.length;var k=V("g");for(h=0;h<l;h+=1)k.appendChild(v[h]);var x=V("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",y+"_"+g),x.appendChild(n),a.appendChild(x),k.setAttribute("mask","url("+r()+"#"+y+"_"+g+")"),v.length=0,v.push(k)}else v.push(n);m[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:n,lastPath:"",op:gt.getProp(this.element,m[s].o,0,.01,this.element),prop:At.getShapeProp(this.element,m[s],3),invRect:d},this.viewData[s].prop.k||this.drawPath(m[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=V(b),o=v.length,s=0;s<o;s+=1)this.maskElement.appendChild(v[s]);g>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(w,"url("+r()+"#"+y+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Oe.prototype={initTransform:function(){var t=new Ct;this.finalTransform={mProp:this.data.ks?Nt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<s;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)n*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects($e);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Ct;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,s=!0,n=this.comp;s;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):s=!1;var r,a=e.length;for(i=0;i<a;i+=1)r=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-r[0],t[1]-r[1],0];return t},mHelper:new Ct},Ne.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Ne.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,s=this.masksProperties.length;for(e=0;e<s;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+r()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},Ne.prototype.getMaskelement=function(){return this.maskElement},Ne.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},Ne.prototype.drawPath=function(t,e,i){var s,n,r=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,s=1;s<n;s+=1)r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[s][0]+","+e.i[s][1]+" "+e.v[s][0]+","+e.v[s][1];if(e.c&&n>1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",a)),i.lastPath=r}},Ne.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var ze,Be=function(){var t={};return t.createFilter=function(t,e){var i=V("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},t.createAlphaToLuminanceFilter=function(){var t=V("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},t}(),Ve=(ze={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(ze.maskType=!1),/firefox/i.test(navigator.userAgent)&&(ze.svgLumaHidden=!1),ze),qe={},je="filter_result_";function He(t){var e,i,s="SourceGraphic",n=t.data.ef?t.data.ef.length:0,a=F(),o=Be.createFilter(a,!0),h=0;for(this.filters=[],e=0;e<n;e+=1){i=null;var l=t.data.ef[e].ty;qe[l]&&(i=new(0,qe[l].effect)(o,t.effectsManager.effectElements[e],t,je+h,s),s=je+h,qe[l].countsAsEffect&&(h+=1)),i&&this.filters.push(i)}h&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+r()+"#"+a+")")),this.filters.length&&t.addRenderableComponent(this)}function We(){}function Ye(){}function Ue(){}function Xe(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Ke(t,e){this.elem=t,this.pos=e}function Ge(){}He.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},He.prototype.getEffects=function(t){var e,i=this.filters.length,s=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s},We.prototype={initRendererElement:function(){this.layerElement=V("g")},createContainerElements:function(){this.matteElement=V("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=V("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=V("clipPath"),s=V("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=F();if(i.setAttribute("id",n),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var a=V("g");a.setAttribute("clip-path","url("+r()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+r()+"#"+n+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Ne(this.data,this,this.globalData),this.renderableEffectsManager=new He(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,s,n,a=this.layerId+"_"+t;if(1===t||3===t){var o=V("mask");o.setAttribute("id",a),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(s=V("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(s),this.globalData.defs.appendChild(o),Ve.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=F(),i=Be.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(Be.createAlphaToLuminanceFilter()),(n=V("g")).appendChild(s),o.appendChild(n),n.setAttribute("filter","url("+r()+"#"+e+")"))}else if(2===t){var h=V("mask");h.setAttribute("id",a),h.setAttribute("mask-type","alpha");var l=V("g");h.appendChild(l),e=F(),i=Be.createFilter(e);var p=V("feComponentTransfer");p.setAttribute("in","SourceGraphic"),i.appendChild(p);var d=V("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),p.appendChild(d),this.globalData.defs.appendChild(i);var c=V("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),l.setAttribute("filter","url("+r()+"#"+e+")"),l.appendChild(c),(s=V("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(s),Ve.maskType||(h.setAttribute("mask-type","luminance"),i.appendChild(Be.createAlphaToLuminanceFilter()),n=V("g"),l.appendChild(c),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(h)}this.matteMasks[t]=a}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+r()+"#"+t+")")}},Ye.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},o([ye,function(t){function e(){}return e.prototype=t,e}({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],Ue),o([De,Oe,We,Ye,Fe,Ue],Xe),Xe.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=V("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},Xe.prototype.sourceRectAtTime=function(){return this.sourceRect},Ge.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[s-=1].elem===t)return void(i[s].pos=e);i.push(new Ke(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var Je={1:"butt",2:"round",3:"square"},Ze={1:"miter",2:"round",3:"bevel"};function Qe(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var s=0,n=t.length;s<n;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function ti(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=V("path"),this.msElem=null}function ei(t,e,i,s){var n;this.elem=t,this.frameId=-1,this.dataProps=p(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=l("float32",e.length?e.length-1:0),this.dashoffset=l("float32",1),this.initDynamicPropertyContainer(s);var r,a=e.length||0;for(n=0;n<a;n+=1)r=gt.getProp(t,e[n].v,0,0,this),this.k=r.k||this.k,this.dataProps[n]={n:e[n].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}function ii(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=gt.getProp(t,e.o,0,.01,this),this.w=gt.getProp(t,e.w,0,null,this),this.d=new ei(t,e.d||{},"svg",this),this.c=gt.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function si(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=gt.getProp(t,e.o,0,.01,this),this.c=gt.getProp(t,e.c,1,255,this),this.style=i}function ni(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function ri(t,e,i){this.data=e,this.c=l("uint8c",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=l("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=gt.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function ai(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function oi(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=gt.getProp(t,e.w,0,null,this),this.d=new ei(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function hi(){this.it=[],this.prevViewData=[],this.gr=V("g")}function li(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}Qe.prototype.setAsAnimated=function(){this._isAnimated=!0},ti.prototype.reset=function(){this.d="",this._mdf=!1},ei.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},o([vt],ei),o([vt],ii),o([vt],si),o([vt],ni),ri.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},ri.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},ri.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,s,n=4*this.data.p;for(e=0;e<n;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},o([vt],ri),ai.prototype.initGradientData=function(t,e,i){this.o=gt.getProp(t,e.o,0,.01,this),this.s=gt.getProp(t,e.s,1,null,this),this.e=gt.getProp(t,e.e,1,null,this),this.h=gt.getProp(t,e.h||{k:0},0,.01,this),this.a=gt.getProp(t,e.a||{k:0},0,k,this),this.g=new ri(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},ai.prototype.setGradientData=function(t,e){var i=F(),s=V(1===e.t?"linearGradient":"radialGradient");s.setAttribute("id",i),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var n,a,o,h=[];for(o=4*e.g.p,a=0;a<o;a+=4)n=V("stop"),s.appendChild(n),h.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+r()+"#"+i+")"),this.gf=s,this.cst=h},ai.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,n,a=V("mask"),o=V("path");a.appendChild(o);var h=F(),l=F();a.setAttribute("id",l);var p=V(1===t.t?"linearGradient":"radialGradient");p.setAttribute("id",h),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var d=this.stops;for(s=4*t.g.p;s<n;s+=2)(i=V("stop")).setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(i),d.push(i);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+r()+"#"+h+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",Je[t.lc||2]),o.setAttribute("stroke-linejoin",Ze[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=p,this.ms=a,this.ost=d,this.maskId=l,e.msElem=o}},o([vt],ai),o([ai,vt],oi);var pi=function(t,e,i,s){if(0===e)return"";var n,r=t.o,a=t.i,o=t.v,h=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(n=1;n<e;n+=1)h+=" C"+s.applyToPointStringified(r[n-1][0],r[n-1][1])+" "+s.applyToPointStringified(a[n][0],a[n][1])+" "+s.applyToPointStringified(o[n][0],o[n][1]);return i&&e&&(h+=" C"+s.applyToPointStringified(r[n-1][0],r[n-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1]),h+="z"),h},di=function(){var t=new Ct,e=new Ct;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function s(){}function n(i,s,n){var r,a,o,h,l,p,d,c,u,f,m=s.styles.length,g=s.lvl;for(p=0;p<m;p+=1){if(h=s.sh._mdf||n,s.styles[p].lvl<g){for(c=e.reset(),u=g-s.styles[p].lvl,f=s.transformers.length-1;!h&&u>0;)h=s.transformers[f].mProps._mdf||h,u-=1,f-=1;if(h)for(u=g-s.styles[p].lvl,f=s.transformers.length-1;u>0;)c.multiply(s.transformers[f].mProps.v),u-=1,f-=1}else c=t;if(a=(d=s.sh.paths)._length,h){for(o="",r=0;r<a;r+=1)(l=d.shapes[r])&&l._length&&(o+=pi(l,l._length,l.c,c));s.caches[p]=o}else o=s.caches[p];s.styles[p].d+=!0===i.hd?"":o,s.styles[p]._mdf=h||s.styles[p]._mdf}}function r(t,e,i){var s=e.style;(e.c._mdf||i)&&s.pElem.setAttribute("fill","rgb("+y(e.c.v[0])+","+y(e.c.v[1])+","+y(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){o(t,e,i),h(0,e,i)}function o(t,e,i){var s,n,r,a,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,d=e.e.v;if(e.o._mdf||i){var c="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(c,e.o.v)}if(e.s._mdf||i){var u=1===t.t?"x1":"cx",f="x1"===u?"y1":"cy";h.setAttribute(u,p[0]),h.setAttribute(f,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(u,p[0]),e.of.setAttribute(f,p[1]))}if(e.g._cmdf||i){s=e.cst;var m=e.g.c;for(r=s.length,n=0;n<r;n+=1)(a=s[n]).setAttribute("offset",m[4*n]+"%"),a.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(l&&(e.g._omdf||i)){var g=e.g.o;for(r=(s=e.g._collapsable?e.cst:e.ost).length,n=0;n<r;n+=1)a=s[n],e.g._collapsable||a.setAttribute("offset",g[2*n]+"%"),a.setAttribute("stop-opacity",g[2*n+1])}if(1===t.t)(e.e._mdf||i)&&(h.setAttribute("x2",d[0]),h.setAttribute("y2",d[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",d[0]),e.of.setAttribute("y2",d[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)),h.setAttribute("r",o),l&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)));var v=Math.atan2(d[1]-p[1],d[0]-p[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=o*y,w=Math.cos(v+e.a.v)*b+p[0],_=Math.sin(v+e.a.v)*b+p[1];h.setAttribute("fx",w),h.setAttribute("fy",_),l&&!e.g._collapsable&&(e.of.setAttribute("fx",w),e.of.setAttribute("fy",_))}}function h(t,e,i){var s=e.style,n=e.d;n&&(n._mdf||i)&&n.dashStr&&(s.pElem.setAttribute("stroke-dasharray",n.dashStr),s.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+y(e.c.v[0])+","+y(e.c.v[1])+","+y(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute("stroke-width",e.w.v),s.msElem&&s.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return r;case"gf":return o;case"gs":return a;case"st":return h;case"sh":case"el":case"rc":case"sr":return n;case"tr":return i;case"no":return s;default:return null}}}}();function ci(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function ui(t,e,i,s,n,r){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=n,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function fi(t,e){this._frameId=n,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}o([De,Oe,We,Ge,Ye,Fe,Ue],ci),ci.prototype.initSecondaryElement=function(){},ci.prototype.identityMatrix=new Ct,ci.prototype.buildExpressionInterface=function(){},ci.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ci.prototype.filterUniqueShapes=function(){var t,e,i,s,n=this.shapes.length,r=this.stylesList.length,a=[],o=!1;for(i=0;i<r;i+=1){for(s=this.stylesList[i],o=!1,a.length=0,t=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(s)&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},ci.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},ci.prototype.createStyleElement=function(t,e){var i,s=new ti(t,e),n=s.pElem;return"st"===t.ty?i=new ii(this,t,s):"fl"===t.ty?i=new si(this,t,s):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?ai:oi)(this,t,s),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),n.setAttribute("mask","url("+r()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new ni(this,t,s)),"st"!==t.ty&&"gs"!==t.ty||(n.setAttribute("stroke-linecap",Je[t.lc||2]),n.setAttribute("stroke-linejoin",Ze[t.lj||2]),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=we(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,i),i},ci.prototype.createGroupElement=function(t){var e=new hi;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=we(t.bm)),e},ci.prototype.createTransformElement=function(t,e){var i=Nt.getTransformProperty(this,t,this),s=new li(i,i.o,e);return this.addToAnimatedContents(t,s),s},ci.prototype.createShapeElement=function(t,e,i){var s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7);var n=new Qe(e,i,At.getShapeProp(this,t,s,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},ci.prototype.addToAnimatedContents=function(t,e){for(var i=0,s=this.animatedContents.length;i<s;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:di.createRenderFunction(t),element:e,data:t})},ci.prototype.setElementStyles=function(t){var e,i=t.styles,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},ci.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},ci.prototype.searchShapes=function(t,e,i,s,n,r,a){var o,h,l,p,d,c,u=[].concat(r),f=t.length-1,m=[],g=[];for(o=f;o>=0;o-=1){if((c=this.searchProcessedElement(t[o]))?e[o]=i[c-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)c?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],n),t[o]._render&&e[o].style.pElem.parentNode!==s&&s.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"===t[o].ty){if(c)for(l=e[o].it.length,h=0;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,n+1,u,a),t[o]._render&&e[o].gr.parentNode!==s&&s.appendChild(e[o].gr)}else"tr"===t[o].ty?(c||(e[o]=this.createTransformElement(t[o],s)),p=e[o].transform,u.push(p)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(c||(e[o]=this.createShapeElement(t[o],u,n)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(c?(d=e[o]).closed=!1:((d=Lt.getModifier(t[o].ty)).init(this,t[o]),e[o]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===t[o].ty&&(c?(d=e[o]).closed=!0:(d=Lt.getModifier(t[o].ty),e[o]=d,d.init(this,t,o,e),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(t[o],o+1)}for(f=m.length,o=0;o<f;o+=1)m[o].closed=!0;for(f=g.length,o=0;o<f;o+=1)g[o].closed=!0},ci.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},ci.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},ci.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},ui.prototype.update=function(t,e,i,s,n,r){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,a=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,a=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,this._mdf.p=!0,a=!0),a},fi.prototype.defaultBoxWidth=[0,0],fi.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},fi.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},fi.prototype.searchProperty=function(){return this.searchKeyframes()},fi.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},fi.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},fi.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var s;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(s=0;s<n;s+=1)r=i!==this.keysIndex?this.effectsSequence[s](r,r.t):this.effectsSequence[s](this.currentData,r.t);e!==r&&this.setCurrentData(r),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},fi.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,s=t.length;i<=s-1&&!(i===s-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},fi.prototype.buildFinalText=function(t){for(var e,i,s=[],n=0,r=t.length,a=!1,o=!1,h="";n<r;)a=o,o=!1,e=t.charCodeAt(n),h=t.charAt(n),ge.isCombinedCharacter(e)?a=!0:e>=55296&&e<=56319?ge.isRegionalFlag(t,n)?h=t.substr(n,14):(i=t.charCodeAt(n+1))>=56320&&i<=57343&&(ge.isModifier(e,i)?(h=t.substr(n,2),a=!0):h=ge.isFlagEmoji(t.substr(n,4))?t.substr(n,4):t.substr(n,2)):e>56319?(i=t.charCodeAt(n+1),ge.isVariationSelector(e)&&(a=!0)):ge.isZeroWidthJoiner(e)&&(a=!0,o=!0),a?(s[s.length-1]+=h,a=!1):s.push(h),n+=h.length;return s},fi.prototype.completeTextData=function(t){t.__complete=!0;var e,i,s,n,r,a,o,h=this.elem.globalData.fontManager,l=this.data,p=[],d=0,c=l.m.g,u=0,f=0,m=0,g=[],v=0,y=0,b=h.getFontByName(t.f),w=0,_=me(b);t.fWeight=_.weight,t.fStyle=_.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var k,x=t.tr/1e3*t.finalSize;if(t.sz)for(var A,C,S=!0,E=t.sz[0],P=t.sz[1];S;){A=0,v=0,i=(C=this.buildFinalText(t.t)).length,x=t.tr/1e3*t.finalSize;var T=-1;for(e=0;e<i;e+=1)k=C[e].charCodeAt(0),s=!1," "===C[e]?T=e:13!==k&&3!==k||(v=0,s=!0,A+=t.finalLineHeight||1.2*t.finalSize),h.chars?(o=h.getCharData(C[e],b.fStyle,b.fFamily),w=s?0:o.w*t.finalSize/100):w=h.measureText(C[e],t.f,t.finalSize),v+w>E&&" "!==C[e]?(-1===T?i+=1:e=T,A+=t.finalLineHeight||1.2*t.finalSize,C.splice(e,T===e?1:0,"\r"),T=-1,v=0):(v+=w,v+=x);A+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<A?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=C,i=t.finalText.length,S=!1)}v=-x,w=0;var M,D=0;for(e=0;e<i;e+=1)if(s=!1,13===(k=(M=t.finalText[e]).charCodeAt(0))||3===k?(D=0,g.push(v),y=v>y?v:y,v=-2*x,n="",s=!0,m+=1):n=M,h.chars?(o=h.getCharData(M,b.fStyle,h.getFontByName(t.f).fFamily),w=s?0:o.w*t.finalSize/100):w=h.measureText(n,t.f,t.finalSize)," "===M?D+=w+x:(v+=w+x+D,D=0),p.push({l:w,an:w,add:u,n:s,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==c){if(u+=w,""===n||" "===n||e===i-1){for(""!==n&&" "!==n||(u-=w);f<=e;)p[f].an=u,p[f].ind=d,p[f].extra=w,f+=1;d+=1,u=0}}else if(3==c){if(u+=w,""===n||e===i-1){for(""===n&&(u-=w);f<=e;)p[f].an=u,p[f].ind=d,p[f].extra=w,f+=1;u=0,d+=1}}else p[d].ind=d,p[d].extra=0,d+=1;if(t.l=p,y=v>y?v:y,g.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var F,I,L,R,$=l.a;a=$.length;var O=[];for(r=0;r<a;r+=1){for((F=$[r]).a.sc&&(t.strokeColorAnim=!0),F.a.sw&&(t.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(t.fillColorAnim=!0),R=0,L=F.s.b,e=0;e<i;e+=1)(I=p[e]).anIndexes[r]=R,(1==L&&""!==I.val||2==L&&""!==I.val&&" "!==I.val||3==L&&(I.n||" "==I.val||e==i-1)||4==L&&(I.n||e==i-1))&&(1===F.s.rn&&O.push(R),R+=1);l.a[r].s.totalChars=R;var N,z=-1;if(1===F.s.rn)for(e=0;e<i;e+=1)z!=(I=p[e]).anIndexes[r]&&(z=I.anIndexes[r],N=O.splice(Math.floor(Math.random()*O.length),1)[0]),I.anIndexes[r]=N}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},fi.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},fi.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},fi.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},fi.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var mi=function(){var t=Math.max,e=Math.min,i=Math.floor;function s(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=gt.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?gt.getProp(t,e.e,0,0,this):{v:100},this.o=gt.getProp(t,e.o||{k:0},0,0,this),this.xe=gt.getProp(t,e.xe||{k:0},0,0,this),this.ne=gt.getProp(t,e.ne||{k:0},0,0,this),this.sm=gt.getProp(t,e.sm||{k:100},0,0,this),this.a=gt.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,r=0,a=1,o=1;this.ne.v>0?n=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var h=Z.getBezierEasing(n,r,a,o).get,l=0,p=this.finalS,d=this.finalE,c=this.data.sh;if(2===c)l=h(l=d===p?s>=d?1:0:t(0,e(.5/(d-p)+(s-p)/(d-p),1)));else if(3===c)l=h(l=d===p?s>=d?0:1:1-t(0,e(.5/(d-p)+(s-p)/(d-p),1)));else if(4===c)d===p?l=0:(l=t(0,e(.5/(d-p)+(s-p)/(d-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===c){if(d===p)l=0;else{var u=d-p,f=-u/2+(s=e(t(0,s+.5-p),d-p)),m=u/2;l=Math.sqrt(1-f*f/(m*m))}l=h(l)}else 6===c?(d===p?l=0:(s=e(t(0,s+.5-p),d-p),l=(1+Math.cos(Math.PI+2*Math.PI*s/(d-p)))/2),l=h(l)):(s>=i(p)&&(l=t(0,e(s-p<0?e(d,1)-(p-s):d-s,1))),l=h(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;l<v?l=0:(l=(l-v)/g)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,s=this.s.v/e+i,n=this.e.v/e+i;if(s>n){var r=s;s=n,n=r}this.finalS=s,this.finalE=n}},o([vt],s),{getTextSelectorProp:function(t,e,i){return new s(t,e,i)}}}();function gi(t,e,i){var s={propType:!1},n=gt.getProp,r=e.a;this.a={r:r.r?n(t,r.r,0,k,i):s,rx:r.rx?n(t,r.rx,0,k,i):s,ry:r.ry?n(t,r.ry,0,k,i):s,sk:r.sk?n(t,r.sk,0,k,i):s,sa:r.sa?n(t,r.sa,0,k,i):s,s:r.s?n(t,r.s,1,.01,i):s,a:r.a?n(t,r.a,1,0,i):s,o:r.o?n(t,r.o,0,.01,i):s,p:r.p?n(t,r.p,1,0,i):s,sw:r.sw?n(t,r.sw,0,0,i):s,sc:r.sc?n(t,r.sc,1,0,i):s,fc:r.fc?n(t,r.fc,1,0,i):s,fh:r.fh?n(t,r.fh,0,0,i):s,fs:r.fs?n(t,r.fs,0,.01,i):s,fb:r.fb?n(t,r.fb,0,.01,i):s,t:r.t?n(t,r.t,0,0,i):s},this.s=mi.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function vi(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=p(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function yi(){}vi.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,s=gt.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new gi(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this),p:s(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m.a,1,0,this)},vi.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,s,n,r,a,o,h,l,p,d,c,u,f,m,g,v,y,b,w,_=this._moreOptions.alignment.v,k=this._animatorsData,x=this._textData,A=this.mHelper,C=this._renderType,S=this.renderedLetters.length,E=t.l;if(this._hasMaskedPath){if(w=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=w.v;for(this._pathData.r.v&&(T=T.reverse()),a={tLength:0,segments:[]},r=T._length-1,v=0,n=0;n<r;n+=1)P=st.buildBezierData(T.v[n],T.v[n+1],[T.o[n][0]-T.v[n][0],T.o[n][1]-T.v[n][1]],[T.i[n+1][0]-T.v[n+1][0],T.i[n+1][1]-T.v[n+1][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength;n=r,w.v.c&&(P=st.buildBezierData(T.v[n],T.v[0],[T.o[n][0]-T.v[n][0],T.o[n][1]-T.v[n][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,c=0,d=1,l=0,p=!0,m=a.segments,o<0&&w.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),d=(f=m[c=m.length-1].points).length-1;o<0;)o+=f[d].partialLength,(d-=1)<0&&(d=(f=m[c-=1].points).length-1);u=(f=m[c].points)[d-1],g=(h=f[d]).partialLength}r=E.length,i=0,s=0;var M,D,F,I,L,N=1.2*t.finalSize*.714,z=!0;F=k.length;var B,V,q,j,H,W,Y,U,X,K,G,J,Z=-1,Q=o,tt=c,et=d,it=-1,nt="",rt=this.defaultPropsArray;if(2===t.j||1===t.j){var at=0,ot=0,ht=2===t.j?-.5:-1,lt=0,pt=!0;for(n=0;n<r;n+=1)if(E[n].n){for(at&&(at+=ot);lt<n;)E[lt].animatorJustifyOffset=at,lt+=1;at=0,pt=!0}else{for(D=0;D<F;D+=1)(M=k[D].a).t.propType&&(pt&&2===t.j&&(ot+=M.t.v*ht),(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?at+=M.t.v*L[0]*ht:at+=M.t.v*L*ht);pt=!1}for(at&&(at+=ot);lt<n;)E[lt].animatorJustifyOffset=at,lt+=1}for(n=0;n<r;n+=1){if(A.reset(),j=1,E[n].n)i=0,s+=t.yOffset,s+=z?1:0,o=Q,z=!1,this._hasMaskedPath&&(d=et,u=(f=m[c=tt].points)[d-1],g=(h=f[d]).partialLength,l=0),nt="",G="",X="",J="",rt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==E[n].line){switch(t.j){case 1:o+=v-t.lineWidths[E[n].line];break;case 2:o+=(v-t.lineWidths[E[n].line])/2}it=E[n].line}Z!==E[n].ind&&(E[Z]&&(o+=E[Z].extra),o+=E[n].an/2,Z=E[n].ind),o+=_[0]*E[n].an*.005;var dt=0;for(D=0;D<F;D+=1)(M=k[D].a).p.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?dt+=M.p.v[0]*L[0]:dt+=M.p.v[0]*L),M.a.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?dt+=M.a.v[0]*L[0]:dt+=M.a.v[0]*L);for(p=!0,this._pathData.a.v&&(o=.5*E[0].an+(v-this._pathData.f.v-.5*E[0].an-.5*E[E.length-1].an)*Z/(r-1),o+=this._pathData.f.v);p;)l+g>=o+dt||!f?(y=(o+dt-l)/h.partialLength,V=u.point[0]+(h.point[0]-u.point[0])*y,q=u.point[1]+(h.point[1]-u.point[1])*y,A.translate(-_[0]*E[n].an*.005,-_[1]*N*.01),p=!1):f&&(l+=h.partialLength,(d+=1)>=f.length&&(d=0,m[c+=1]?f=m[c].points:w.v.c?(d=0,f=m[c=0].points):(l-=h.partialLength,f=null)),f&&(u=h,g=(h=f[d]).partialLength));B=E[n].an/2-E[n].add,A.translate(-B,0,0)}else B=E[n].an/2-E[n].add,A.translate(-B,0,0),A.translate(-_[0]*E[n].an*.005,-_[1]*N*.01,0);for(D=0;D<F;D+=1)(M=k[D].a).t.propType&&(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?L.length?o+=M.t.v*L[0]:o+=M.t.v*L:L.length?i+=M.t.v*L[0]:i+=M.t.v*L));for(t.strokeWidthAnim&&(W=t.sw||0),t.strokeColorAnim&&(H=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(Y=[t.fc[0],t.fc[1],t.fc[2]]),D=0;D<F;D+=1)(M=k[D].a).a.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?A.translate(-M.a.v[0]*L[0],-M.a.v[1]*L[1],M.a.v[2]*L[2]):A.translate(-M.a.v[0]*L,-M.a.v[1]*L,M.a.v[2]*L));for(D=0;D<F;D+=1)(M=k[D].a).s.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?A.scale(1+(M.s.v[0]-1)*L[0],1+(M.s.v[1]-1)*L[1],1):A.scale(1+(M.s.v[0]-1)*L,1+(M.s.v[1]-1)*L,1));for(D=0;D<F;D+=1){if(M=k[D].a,L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),M.sk.propType&&(L.length?A.skewFromAxis(-M.sk.v*L[0],M.sa.v*L[1]):A.skewFromAxis(-M.sk.v*L,M.sa.v*L)),M.r.propType&&(L.length?A.rotateZ(-M.r.v*L[2]):A.rotateZ(-M.r.v*L)),M.ry.propType&&(L.length?A.rotateY(M.ry.v*L[1]):A.rotateY(M.ry.v*L)),M.rx.propType&&(L.length?A.rotateX(M.rx.v*L[0]):A.rotateX(M.rx.v*L)),M.o.propType&&(L.length?j+=(M.o.v*L[0]-j)*L[0]:j+=(M.o.v*L-j)*L),t.strokeWidthAnim&&M.sw.propType&&(L.length?W+=M.sw.v*L[0]:W+=M.sw.v*L),t.strokeColorAnim&&M.sc.propType)for(U=0;U<3;U+=1)L.length?H[U]+=(M.sc.v[U]-H[U])*L[0]:H[U]+=(M.sc.v[U]-H[U])*L;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for(U=0;U<3;U+=1)L.length?Y[U]+=(M.fc.v[U]-Y[U])*L[0]:Y[U]+=(M.fc.v[U]-Y[U])*L;M.fh.propType&&(Y=L.length?O(Y,M.fh.v*L[0]):O(Y,M.fh.v*L)),M.fs.propType&&(Y=L.length?R(Y,M.fs.v*L[0]):R(Y,M.fs.v*L)),M.fb.propType&&(Y=L.length?$(Y,M.fb.v*L[0]):$(Y,M.fb.v*L))}}for(D=0;D<F;D+=1)(M=k[D].a).p.propType&&(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),this._hasMaskedPath?L.length?A.translate(0,M.p.v[1]*L[0],-M.p.v[2]*L[1]):A.translate(0,M.p.v[1]*L,-M.p.v[2]*L):L.length?A.translate(M.p.v[0]*L[0],M.p.v[1]*L[1],-M.p.v[2]*L[2]):A.translate(M.p.v[0]*L,M.p.v[1]*L,-M.p.v[2]*L));if(t.strokeWidthAnim&&(X=W<0?0:W),t.strokeColorAnim&&(K="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),t.fillColorAnim&&t.fc&&(G="rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"),this._hasMaskedPath){if(A.translate(0,-t.ls),A.translate(0,_[1]*N*.01+s,0),this._pathData.p.v){b=(h.point[1]-u.point[1])/(h.point[0]-u.point[0]);var ct=180*Math.atan(b)/Math.PI;h.point[0]<u.point[0]&&(ct+=180),A.rotate(-ct*Math.PI/180)}A.translate(V,q,0),o-=_[0]*E[n].an*.005,E[n+1]&&Z!==E[n+1].ind&&(o+=E[n].an/2,o+=.001*t.tr*t.finalSize)}else{switch(A.translate(i,s,0),t.ps&&A.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:A.translate(E[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[n].line]),0,0);break;case 2:A.translate(E[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[n].line])/2,0,0)}A.translate(0,-t.ls),A.translate(B,0,0),A.translate(_[0]*E[n].an*.005,_[1]*N*.01,0),i+=E[n].l+.001*t.tr*t.finalSize}"html"===C?nt=A.toCSS():"svg"===C?nt=A.to2dCSS():rt=[A.props[0],A.props[1],A.props[2],A.props[3],A.props[4],A.props[5],A.props[6],A.props[7],A.props[8],A.props[9],A.props[10],A.props[11],A.props[12],A.props[13],A.props[14],A.props[15]],J=j}S<=n?(I=new ui(J,X,K,G,nt,rt),this.renderedLetters.push(I),S+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[n],this.lettersChangedFlag=I.update(J,X,K,G,nt,rt)||this.lettersChangedFlag)}}},vi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},vi.prototype.mHelper=new Ct,vi.prototype.defaultPropsArray=[],o([vt],vi),yi.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new fi(this,t.t,this.dynamicProperties),this.textAnimator=new vi(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},yi.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},yi.prototype.createPathShape=function(t,e){var i,s,n=e.length,r="";for(i=0;i<n;i+=1)"sh"===e[i].ty&&(s=e[i].ks.k,r+=pi(s,s.i.length,!0,t));return r},yi.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},yi.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},yi.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},yi.prototype.applyTextPropertiesToMatrix=function(t,e,i,s,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(s,n,0)},yi.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},yi.prototype.emptyProp=new ui,yi.prototype.destroy=function(){},yi.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var bi,wi={shapes:[]};function _i(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ki(t,e,i){this.initElement(t,e,i)}function xi(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function Ai(){}function Ci(){}function Si(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?p(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?gt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function Ei(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=V("svg");var i="";if(e&&e.title){var s=V("title"),n=F();s.setAttribute("id",n),s.textContent=e.title,this.svgElement.appendChild(s),i+=n}if(e&&e.description){var r=V("desc"),a=F();r.setAttribute("id",a),r.textContent=e.description,this.svgElement.appendChild(r),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=V("defs");this.svgElement.appendChild(o);var h=V("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return o([De,Oe,We,Ye,Fe,Ue,yi],_i),_i.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=V("text"))},_i.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],n="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(s.push(n),n=""):n+=t[e],e+=1;return s.push(n),s},_i.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var s=i.it[i.it.length-1];s.s&&(s.s.k[0]=e,s.s.k[1]=e)}}return t},_i.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=p(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var s=this.globalData.fontManager.getFontByName(i.f);if(s.fClass)this.layerElement.setAttribute("class",s.fClass);else{this.layerElement.setAttribute("font-family",s.fFamily);var n=i.fWeight,r=i.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",i.t);var a,o=i.l||[],h=!!this.globalData.fontManager.chars;e=o.length;var l=this.mHelper,d=this.data.singleShape,c=0,u=0,f=!0,m=.001*i.tr*i.finalSize;if(!d||h||i.sz){var g,v=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!h||!d||0===t){if(a=v>t?this.textSpans[t].span:V(h?"g":"text"),v<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,h){var y=V("g");a.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(l.reset(),d&&(o[t].n&&(c=-m,u+=i.yOffset,u+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(i,l,o[t].line,c,u),c+=o[t].l||0,c+=m),h){var b;if(1===(g=this.globalData.fontManager.getCharData(i.finalText[t],s.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)b=new Si(g.data,this.globalData,this);else{var w=wi;g.data&&g.data.shapes&&(w=this.buildShapeData(g.data,i.finalSize)),b=new ci(w,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[t].childSpan.appendChild(b.layerElement),1===g.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else d&&a.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&a&&a.setAttribute("d","")}else{var k=this.textContainer,x="start";switch(i.j){case 1:x="end";break;case 2:x="middle";break;default:x="start"}k.setAttribute("text-anchor",x),k.setAttribute("letter-spacing",m);var A=this.buildTextContents(i.finalText);for(e=A.length,u=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||V("tspan")).textContent=A[t],a.setAttribute("x",0),a.setAttribute("y",u),a.style.display="inherit",k.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,u+=i.finalLineHeight;this.layerElement.appendChild(k)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},_i.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},_i.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},_i.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,s,n,r=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(i=r[t],s=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),i._mdf.m&&s.setAttribute("transform",i.m),i._mdf.o&&s.setAttribute("opacity",i.o),i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i._mdf.sc&&s.setAttribute("stroke",i.sc),i._mdf.fc&&s.setAttribute("fill",i.fc))}},o([Xe],ki),ki.prototype.createContent=function(){var t=V("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},xi.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},xi.prototype.renderFrame=function(){},xi.prototype.getBaseElement=function(){return null},xi.prototype.destroy=function(){},xi.prototype.sourceRectAtTime=function(){},xi.prototype.hide=function(){},o([De,Oe,Ye,Fe],xi),o([Re],Ai),Ai.prototype.createNull=function(t){return new xi(t,this.globalData,this)},Ai.prototype.createShape=function(t){return new ci(t,this.globalData,this)},Ai.prototype.createText=function(t){return new _i(t,this.globalData,this)},Ai.prototype.createImage=function(t){return new Xe(t,this.globalData,this)},Ai.prototype.createSolid=function(t){return new ki(t,this.globalData,this)},Ai.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=V("clipPath"),s=V("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var n=F();i.setAttribute("id",n),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+r()+"#"+n+")"),e.appendChild(i),this.layers=t.layers,this.elements=p(t.layers.length)},Ai.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ai.prototype.updateContainerSize=function(){},Ai.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},Ai.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,N()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var s="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===s)return;if(this.elements[s]&&!0!==this.elements[s]){var n=e[s].getMatte(this.layers[t].tt);i.setMatte(n)}else this.buildItem(s),this.addPendingElement(i)}}},Ai.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},Ai.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},Ai.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var s,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(s=this.elements[n].getBaseElement()),n+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},Ai.prototype.hide=function(){this.layerElement.style.display="none"},Ai.prototype.show=function(){this.layerElement.style.display="block"},o([De,Oe,Ye,Fe,Ue],Ci),Ci.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},Ci.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},Ci.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Ci.prototype.setElements=function(t){this.elements=t},Ci.prototype.getElements=function(){return this.elements},Ci.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},Ci.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},o([Ai,Ci,We],Si),Si.prototype.createComp=function(t){return new Si(t,this.globalData,this)},o([Ai],Ei),Ei.prototype.createComp=function(t){return new Si(t,this.globalData,this)},bi=Ei,X["svg"]=bi,Lt.registerModifier("tm",$t),Lt.registerModifier("pb",Ot),Lt.registerModifier("rp",zt),Lt.registerModifier("rd",Bt),Lt.registerModifier("zz",se),Lt.registerModifier("op",fe),Et}())},179:(t,e,i)=>{"use strict";i.r(e)},809:(t,e,i)=>{"use strict";i.r(e)},168:(t,e,i)=>{"use strict";i.r(e)},234:(t,e,i)=>{"use strict";i.r(e)},271:(t,e,i)=>{"use strict";i.r(e)},799:(t,e,i)=>{"use strict";i.r(e)},793:(t,e,i)=>{"use strict";i.r(e)},800:(t,e,i)=>{"use strict";i.r(e)},177:(t,e,i)=>{"use strict";i.r(e)},364:(t,e,i)=>{"use strict";i.r(e)},821:(t,e,i)=>{"use strict";i.r(e)},305:(t,e,i)=>{"use strict";i.r(e)},140:(t,e,i)=>{"use strict";i.r(e)},479:(t,e,i)=>{"use strict";i.r(e)},423:(t,e,i)=>{"use strict";i.r(e)},946:(t,e,i)=>{"use strict";i.r(e)},392:(t,e,i)=>{"use strict";t.exports=i.p+"f94a181ecedc0c6314c5.js"}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var r=e[s]={exports:{}};return t[s].call(r.exports,r,r.exports,i),r.exports}i.m=t,i.amdO={},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var s=e.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=s[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t})(),i.b=document.baseURI||self.location.href,(()=>{"use strict";const t=window.wp.data,e=window.wp.coreData;let s={};function n(t={}){s={animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...t}}function r(t){return t?s[t]:s}function a(t,e,i,s){return(t/=s/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e}function o(t){const e='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return t.flatMap((t=>{const i=t.matches(e),s=Array.from(t.querySelectorAll(e));return[...i?[t]:[],...s]})).filter((t=>"none"!==getComputedStyle(t).pointerEvents&&function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}(t)))}function h(t){if(!t||function(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}(t))return;const e=r("smoothScroll");t.scrollIntoView({behavior:!e||l(t)?"auto":"smooth",inline:"center",block:"center"})}function l(t){if(!t||!t.parentElement)return;const e=t.parentElement;return e.scrollHeight>e.clientHeight}let p={};function d(t,e){p[t]=e}function c(t){return t?p[t]:p}function u(){p={}}let f={};function m(t,e){f[t]=e}function g(t){var e;null==(e=f[t])||e.call(f)}function v(t){if(!t)return;const e=t.getBoundingClientRect(),i={x:e.x,y:e.y,width:e.width,height:e.height};d("__activeStagePosition",i),y(i)}function y(t){const e=c("__overlaySvg");if(!e)return void function(t){const e=function(t){const e=window.innerWidth,i=window.innerHeight,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.classList.add("driver-overlay","driver-overlay-animated"),s.setAttribute("viewBox",`0 0 ${e} ${i}`),s.setAttribute("xmlSpace","preserve"),s.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),s.setAttribute("version","1.1"),s.setAttribute("preserveAspectRatio","xMinYMin slice"),s.style.fillRule="evenodd",s.style.clipRule="evenodd",s.style.strokeLinejoin="round",s.style.strokeMiterlimit="2",s.style.zIndex="10000",s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height="100%";const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",b(t)),n.style.fill=r("overlayColor")||"rgb(0,0,0)",n.style.opacity=`${r("overlayOpacity")}`,n.style.pointerEvents="auto",n.style.cursor="auto",s.appendChild(n),s}(t);document.body.appendChild(e),C(e,(t=>{"path"===t.target.tagName&&g("overlayClick")})),d("__overlaySvg",e)}(t);const i=e.firstElementChild;if("path"!==(null==i?void 0:i.tagName))throw new Error("no path element found in stage svg");i.setAttribute("d",b(t))}function b(t){const e=window.innerWidth,i=window.innerHeight,s=r("stagePadding")||0,n=r("stageRadius")||0,a=t.width+2*s,o=t.height+2*s,h=Math.min(n,a/2,o/2),l=Math.floor(Math.max(h,0)),p=a-2*l,d=o-2*l;return`M${e},0L0,0L0,${i}L${e},${i}L${e},0Z\n M${t.x-s+l},${t.y-s} h${p} a${l},${l} 0 0 1 ${l},${l} v${d} a${l},${l} 0 0 1 -${l},${l} h-${p} a${l},${l} 0 0 1 -${l},-${l} v-${d} a${l},${l} 0 0 1 ${l},-${l} z`}function w(t){const{element:e}=t;let i="string"==typeof e?document.querySelector(e):e;i||(i=function(){const t=document.getElementById("driver-dummy-element");if(t)return t;let e=document.createElement("div");return e.id="driver-dummy-element",e.style.width="0",e.style.height="0",e.style.pointerEvents="none",e.style.opacity="0",e.style.position="fixed",e.style.top="50%",e.style.left="50%",document.body.appendChild(e),e}()),function(t,e){const i=Date.now(),s=c("__activeStep"),n=c("__activeElement")||t,o=!n||n===t,l="driver-dummy-element"===t.id,p="driver-dummy-element"===n.id,u=r("animate"),f=e.onHighlightStarted||r("onHighlightStarted"),m=(null==e?void 0:e.onHighlighted)||r("onHighlighted"),g=(null==s?void 0:s.onDeselected)||r("onDeselected"),b=r(),w=c();!o&&g&&g(p?void 0:n,s,{config:b,state:w}),f&&f(l?void 0:t,e,{config:b,state:w});const _=!o&&u;let k=!1;(function(){const t=c("popover");t&&(t.wrapper.style.display="none")})(),d("previousStep",s),d("previousElement",n),d("activeStep",e),d("activeElement",t);const x=()=>{if(c("__transitionCallback")!==x)return;const o=Date.now()-i,h=400-o<=200;e.popover&&h&&!k&&_&&(S(t,e),k=!0),r("animate")&&o<400?function(t,e,i,s){let n=c("__activeStagePosition");const r=n||i.getBoundingClientRect(),o=s.getBoundingClientRect();n={x:a(t,r.x,o.x-r.x,e),y:a(t,r.y,o.y-r.y,e),width:a(t,r.width,o.width-r.width,e),height:a(t,r.height,o.height-r.height,e)},y(n),d("__activeStagePosition",n)}(o,400,n,t):(v(t),m&&m(l?void 0:t,e,{config:r(),state:c()}),d("__transitionCallback",void 0),d("__previousStep",s),d("__previousElement",n),d("__activeStep",e),d("__activeElement",t)),window.requestAnimationFrame(x)};d("__transitionCallback",x),window.requestAnimationFrame(x),h(t),!_&&e.popover&&S(t,e),n.classList.remove("driver-active-element","driver-no-interaction"),n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-expanded"),n.removeAttribute("aria-controls"),r("disableActiveInteraction")&&t.classList.add("driver-no-interaction"),t.classList.add("driver-active-element"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls","driver-popover-content")}(i,t)}function _(){const t=c("__activeElement"),e=c("__activeStep");t&&(v(t),function(){const t=c("__activeStagePosition"),e=c("__overlaySvg");if(!t)return;if(!e)return void console.warn("No stage svg found.");const i=window.innerWidth,s=window.innerHeight;e.setAttribute("viewBox",`0 0 ${i} ${s}`)}(),M(t,e))}function k(){const t=c("__resizeTimeout");t&&window.cancelAnimationFrame(t),d("__resizeTimeout",window.requestAnimationFrame(_))}function x(t){var e;if(!c("isInitialized")||"Tab"!==t.key&&9!==t.keyCode)return;const i=c("__activeElement"),s=null==(e=c("popover"))?void 0:e.wrapper,n=o([...s?[s]:[],...i?[i]:[]]),r=n[0],a=n[n.length-1];if(t.preventDefault(),t.shiftKey){const t=n[n.indexOf(document.activeElement)-1]||a;null==t||t.focus()}else{const t=n[n.indexOf(document.activeElement)+1]||r;null==t||t.focus()}}function A(t){var e;(null==(e=r("allowKeyboardControl"))||e)&&("Escape"===t.key?g("escapePress"):"ArrowRight"===t.key?g("arrowRightPress"):"ArrowLeft"===t.key&&g("arrowLeftPress"))}function C(t,e,i){const s=(e,s)=>{const n=e.target;t.contains(n)&&((!i||i(n))&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()),null==s||s(e))};document.addEventListener("pointerdown",s,!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerup",s,!0),document.addEventListener("mouseup",s,!0),document.addEventListener("click",(t=>{s(t,e)}),!0)}function S(t,e){var i,s;let n=c("popover");n&&document.body.removeChild(n.wrapper),n=function(){const t=document.createElement("div");t.classList.add("driver-popover");const e=document.createElement("div");e.classList.add("driver-popover-arrow");const i=document.createElement("header");i.id="driver-popover-title",i.classList.add("driver-popover-title"),i.style.display="none",i.innerText="Popover Title";const s=document.createElement("div");s.id="driver-popover-description",s.classList.add("driver-popover-description"),s.style.display="none",s.innerText="Popover description is here";const n=document.createElement("button");n.type="button",n.classList.add("driver-popover-close-btn"),n.setAttribute("aria-label","Close"),n.innerHTML="×";const r=document.createElement("footer");r.classList.add("driver-popover-footer");const a=document.createElement("span");a.classList.add("driver-popover-progress-text"),a.innerText="";const o=document.createElement("span");o.classList.add("driver-popover-navigation-btns");const h=document.createElement("button");h.type="button",h.classList.add("driver-popover-prev-btn"),h.innerHTML="← Previous";const l=document.createElement("button");return l.type="button",l.classList.add("driver-popover-next-btn"),l.innerHTML="Next →",o.appendChild(h),o.appendChild(l),r.appendChild(a),r.appendChild(o),t.appendChild(n),t.appendChild(e),t.appendChild(i),t.appendChild(s),t.appendChild(r),{wrapper:t,arrow:e,title:i,description:s,footer:r,previousButton:h,nextButton:l,closeButton:n,footerButtons:o,progress:a}}(),document.body.appendChild(n.wrapper);const{title:a,description:l,showButtons:p,disableButtons:u,showProgress:f,nextBtnText:m=r("nextBtnText")||"Next →",prevBtnText:v=r("prevBtnText")||"← Previous",progressText:y=r("progressText")||"{current} of {total}"}=e.popover||{};n.nextButton.innerHTML=m,n.previousButton.innerHTML=v,n.progress.innerHTML=y,a?(n.title.innerHTML=a,n.title.style.display="block"):n.title.style.display="none",l?(n.description.innerHTML=l,n.description.style.display="block"):n.description.style.display="none";const b=p||r("showButtons"),w=f||r("showProgress")||!1,_=(null==b?void 0:b.includes("next"))||(null==b?void 0:b.includes("previous"))||w;n.closeButton.style.display=b.includes("close")?"block":"none",_?(n.footer.style.display="flex",n.progress.style.display=w?"block":"none",n.nextButton.style.display=b.includes("next")?"block":"none",n.previousButton.style.display=b.includes("previous")?"block":"none"):n.footer.style.display="none";const k=u||r("disableButtons")||[];null!=k&&k.includes("next")&&(n.nextButton.disabled=!0,n.nextButton.classList.add("driver-popover-btn-disabled")),null!=k&&k.includes("previous")&&(n.previousButton.disabled=!0,n.previousButton.classList.add("driver-popover-btn-disabled")),null!=k&&k.includes("close")&&(n.closeButton.disabled=!0,n.closeButton.classList.add("driver-popover-btn-disabled"));const x=n.wrapper;x.style.display="block",x.style.left="",x.style.top="",x.style.bottom="",x.style.right="",x.id="driver-popover-content",x.setAttribute("role","dialog"),x.setAttribute("aria-labelledby","driver-popover-title"),x.setAttribute("aria-describedby","driver-popover-description"),n.arrow.className="driver-popover-arrow";const A=(null==(i=e.popover)?void 0:i.popoverClass)||r("popoverClass")||"";x.className=`driver-popover ${A}`.trim(),C(n.wrapper,(i=>{var s,n,a;const o=i.target,h=(null==(s=e.popover)?void 0:s.onNextClick)||r("onNextClick"),l=(null==(n=e.popover)?void 0:n.onPrevClick)||r("onPrevClick"),p=(null==(a=e.popover)?void 0:a.onCloseClick)||r("onCloseClick");return o.classList.contains("driver-popover-next-btn")?h?h(t,e,{config:r(),state:c()}):g("nextClick"):o.classList.contains("driver-popover-prev-btn")?l?l(t,e,{config:r(),state:c()}):g("prevClick"):o.classList.contains("driver-popover-close-btn")?p?p(t,e,{config:r(),state:c()}):g("closeClick"):void 0}),(t=>!(null!=n&&n.description.contains(t))&&!(null!=n&&n.title.contains(t))&&"string"==typeof t.className&&t.className.includes("driver-popover"))),d("popover",n);const S=(null==(s=e.popover)?void 0:s.onPopoverRender)||r("onPopoverRender");S&&S(n,{config:r(),state:c()}),M(t,e),h(x);const E=o([x,...t.classList.contains("driver-dummy-element")?[]:[t]]);E.length>0&&E[0].focus()}function E(){const t=c("popover");if(null==t||!t.wrapper)return;const e=t.wrapper.getBoundingClientRect(),i=r("stagePadding")||0,s=r("popoverOffset")||0;return{width:e.width+i+s,height:e.height+i+s,realWidth:e.width,realHeight:e.height}}function P(t,e){const{elementDimensions:i,popoverDimensions:s,popoverPadding:n,popoverArrowDimensions:r}=e;return"start"===t?Math.max(Math.min(i.top-n,window.innerHeight-s.realHeight-r.width),r.width):"end"===t?Math.max(Math.min(i.top-(null==s?void 0:s.realHeight)+i.height+n,window.innerHeight-(null==s?void 0:s.realHeight)-r.width),r.width):"center"===t?Math.max(Math.min(i.top+i.height/2-(null==s?void 0:s.realHeight)/2,window.innerHeight-(null==s?void 0:s.realHeight)-r.width),r.width):0}function T(t,e){const{elementDimensions:i,popoverDimensions:s,popoverPadding:n,popoverArrowDimensions:r}=e;return"start"===t?Math.max(Math.min(i.left-n,window.innerWidth-s.realWidth-r.width),r.width):"end"===t?Math.max(Math.min(i.left-(null==s?void 0:s.realWidth)+i.width+n,window.innerWidth-(null==s?void 0:s.realWidth)-r.width),r.width):"center"===t?Math.max(Math.min(i.left+i.width/2-(null==s?void 0:s.realWidth)/2,window.innerWidth-(null==s?void 0:s.realWidth)-r.width),r.width):0}function M(t,e){const i=c("popover");if(!i)return;const{align:s="start",side:n="left"}=(null==e?void 0:e.popover)||{},a=s,o="driver-dummy-element"===t.id?"over":n,h=r("stagePadding")||0,l=E(),p=i.arrow.getBoundingClientRect(),d=t.getBoundingClientRect(),u=d.top-l.height;let f=u>=0;const m=window.innerHeight-(d.bottom+l.height);let g=m>=0;const v=d.left-l.width;let y=v>=0;const b=window.innerWidth-(d.right+l.width);let w=b>=0;const _=!(f||g||y||w);let k=o;if("top"===o&&f?w=y=g=!1:"bottom"===o&&g?w=y=f=!1:"left"===o&&y?w=f=g=!1:"right"===o&&w&&(y=f=g=!1),"over"===o){const t=window.innerWidth/2-l.realWidth/2,e=window.innerHeight/2-l.realHeight/2;i.wrapper.style.left=`${t}px`,i.wrapper.style.right="auto",i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto"}else if(_){const t=window.innerWidth/2-(null==l?void 0:l.realWidth)/2,e=10;i.wrapper.style.left=`${t}px`,i.wrapper.style.right="auto",i.wrapper.style.bottom=`${e}px`,i.wrapper.style.top="auto"}else if(y){const t=Math.min(v,window.innerWidth-(null==l?void 0:l.realWidth)-p.width),e=P(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.left=`${t}px`,i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.right="auto",k="left"}else if(w){const t=Math.min(b,window.innerWidth-(null==l?void 0:l.realWidth)-p.width),e=P(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.right=`${t}px`,i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.left="auto",k="right"}else if(f){const t=Math.min(u,window.innerHeight-l.realHeight-p.width);let e=T(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.top=`${t}px`,i.wrapper.style.left=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.right="auto",k="top"}else if(g){const t=Math.min(m,window.innerHeight-(null==l?void 0:l.realHeight)-p.width);let e=T(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.left=`${e}px`,i.wrapper.style.bottom=`${t}px`,i.wrapper.style.top="auto",i.wrapper.style.right="auto",k="bottom"}_?i.arrow.classList.add("driver-popover-arrow-none"):function(t,e,i){const s=c("popover");if(!s)return;const n=i.getBoundingClientRect(),r=E(),a=s.arrow,o=r.width,h=window.innerWidth,l=n.width,p=n.left,d=r.height,u=window.innerHeight,f=n.top,m=n.height;a.className="driver-popover-arrow";let g=e,v=t;"top"===e?(p+l<=0?(g="right",v="end"):p+l-o<=0&&(g="top",v="start"),p>=h?(g="left",v="end"):p+o>=h&&(g="top",v="end")):"bottom"===e?(p+l<=0?(g="right",v="start"):p+l-o<=0&&(g="bottom",v="start"),p>=h?(g="left",v="start"):p+o>=h&&(g="bottom",v="end")):"left"===e?(f+m<=0?(g="bottom",v="end"):f+m-d<=0&&(g="left",v="start"),f>=u?(g="top",v="end"):f+d>=u&&(g="left",v="end")):"right"===e&&(f+m<=0?(g="bottom",v="start"):f+m-d<=0&&(g="right",v="start"),f>=u?(g="top",v="start"):f+d>=u&&(g="right",v="end")),g?(a.classList.add(`driver-popover-arrow-side-${g}`),a.classList.add(`driver-popover-arrow-align-${v}`)):a.classList.add("driver-popover-arrow-none")}(a,k,t)}const D=window.wp.i18n;if(window.vrts_admin_vars.onboarding){const i=1===window.vrts_admin_vars.onboarding.steps.length,s=function(t={}){function e(){r("allowClose")&&p()}function i(){const t=c("activeIndex"),e=r("steps")||[];if(void 0===t)return;const i=t+1;e[i]?l(i):p()}function s(){const t=c("activeIndex"),e=r("steps")||[];if(void 0===t)return;const i=t-1;e[i]?l(i):p()}function a(){var t;if(c("__transitionCallback"))return;const e=c("activeIndex"),i=c("__activeStep"),n=c("__activeElement");if(void 0===e||void 0===i||void 0===c("activeIndex"))return;const a=(null==(t=i.popover)?void 0:t.onPrevClick)||r("onPrevClick");if(a)return a(n,i,{config:r(),state:c()});s()}function o(){var t;if(c("__transitionCallback"))return;const e=c("activeIndex"),s=c("__activeStep"),n=c("__activeElement");if(void 0===e||void 0===s)return;const a=(null==(t=s.popover)?void 0:t.onNextClick)||r("onNextClick");if(a)return a(n,s,{config:r(),state:c()});i()}function h(){c("isInitialized")||(d("isInitialized",!0),document.body.classList.add("driver-active",r("animate")?"driver-fade":"driver-simple"),window.addEventListener("keyup",A,!1),window.addEventListener("keydown",x,!1),window.addEventListener("resize",k),window.addEventListener("scroll",k),m("overlayClick",e),m("escapePress",e),m("arrowLeftPress",a),m("arrowRightPress",o))}function l(t=0){var e,i,s,n,a,o,h,c;const u=r("steps");if(!u)return console.error("No steps to drive through"),void p();if(!u[t])return void p();d("__activeOnDestroyed",document.activeElement),d("activeIndex",t);const f=u[t],m=u[t+1],g=u[t-1],v=(null==(e=f.popover)?void 0:e.doneBtnText)||r("doneBtnText")||"Done",y=r("allowClose"),b=void 0!==(null==(i=f.popover)?void 0:i.showProgress)?null==(s=f.popover)?void 0:s.showProgress:r("showProgress"),_=((null==(n=f.popover)?void 0:n.progressText)||r("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${t+1}`).replace("{{total}}",`${u.length}`),k=(null==(a=f.popover)?void 0:a.showButtons)||r("showButtons"),x=["next","previous",...y?["close"]:[]].filter((t=>!(null!=k&&k.length)||k.includes(t))),A=(null==(o=f.popover)?void 0:o.onNextClick)||r("onNextClick"),C=(null==(h=f.popover)?void 0:h.onPrevClick)||r("onPrevClick"),S=(null==(c=f.popover)?void 0:c.onCloseClick)||r("onCloseClick");w({...f,popover:{showButtons:x,nextBtnText:m?void 0:v,disableButtons:[...g?[]:["previous"]],showProgress:b,progressText:_,onNextClick:A||(()=>{m?l(t+1):p()}),onPrevClick:C||(()=>{l(t-1)}),onCloseClick:S||(()=>{p()}),...(null==f?void 0:f.popover)||{}}})}function p(t=!0){const e=c("__activeElement"),i=c("__activeStep"),s=c("__activeOnDestroyed"),n=r("onDestroyStarted");if(t&&n)return void n(e&&"driver-dummy-element"!==(null==e?void 0:e.id)?e:void 0,i,{config:r(),state:c()});const a=(null==i?void 0:i.onDeselected)||r("onDeselected"),o=r("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),window.removeEventListener("keyup",A),window.removeEventListener("resize",k),window.removeEventListener("scroll",k),function(){var t;const e=c("popover");e&&(null==(t=e.wrapper.parentElement)||t.removeChild(e.wrapper))}(),function(){var t;null==(t=document.getElementById("driver-dummy-element"))||t.remove(),document.querySelectorAll(".driver-active-element").forEach((t=>{t.classList.remove("driver-active-element","driver-no-interaction"),t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls")}))}(),function(){const t=c("__overlaySvg");t&&t.remove()}(),f={},u(),e&&i){const t="driver-dummy-element"===e.id;a&&a(t?void 0:e,i,{config:r(),state:c()}),o&&o(t?void 0:e,i,{config:r(),state:c()})}s&&s.focus()}return n(t),{isActive:()=>c("isInitialized")||!1,refresh:k,drive:(t=0)=>{h(),l(t)},setConfig:n,setSteps:t=>{u(),n({...r(),steps:t})},getConfig:r,getState:c,getActiveIndex:()=>c("activeIndex"),isFirstStep:()=>0===c("activeIndex"),isLastStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&e===t.length-1},getActiveStep:()=>c("activeStep"),getActiveElement:()=>c("activeElement"),getPreviousElement:()=>c("previousElement"),getPreviousStep:()=>c("previousStep"),moveNext:i,movePrevious:s,moveTo:function(t){(r("steps")||[])[t]?l(t):p()},hasNextStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&t[e+1]},hasPreviousStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&t[e-1]},highlight:t=>{h(),w({...t,popover:t.popover?{showButtons:[],showProgress:!1,progressText:"",...t.popover}:void 0})},destroy:()=>{p(!1)}}}({overlayColor:"rgba(44, 51, 56, 0.35)",stageRadius:0,stagePadding:0,popoverOffset:20,allowClose:!1,showProgress:!i,popoverClass:i?"vrts-onboarding-nonblocking":"vrts-onboarding",disableActiveInteraction:!1,progressText:(0,D.__)("{{current}} of {{total}}","visual-regression-tests"),prevBtnText:(0,D.__)("Previous","visual-regression-tests"),nextBtnText:(0,D.__)("Next","visual-regression-tests"),doneBtnText:(0,D.__)("Got it!","visual-regression-tests"),onPopoverRender:(t,{config:e,state:s})=>{const n=e.steps[s.activeIndex+1];e.stagePadding=window.vrts_admin_vars.onboarding.steps[s.activeIndex].padding||0,t.previousButton.classList.add("button","button-secondary","button-large"),t.nextButton.classList.add("button","button-primary","button-large"),n||t.nextButton.classList.add("driver-popover-success-btn"),i&&t.previousButton.setAttribute("hidden",!0)},onNextClick:(t,e,{config:i,state:n})=>{i.steps[n.activeIndex+1]?s.moveNext():s.destroy()},onCloseClick:()=>{s.destroy()}, steps:window.vrts_admin_vars.onboarding.steps.map((t=>({element:t.element,popover:{title:t.title,description:t.description,side:t.side||"left",align:t.align||"start"}})))});s.drive(),async function(){const{currentUserId:i,onboarding:{id:s}}=window.vrts_admin_vars,n=(await(0,t.resolveSelect)(e.store).getEntityRecord("root","user",i)).vrts_onboarding||{},r=n.completed||[];(0,t.dispatch)(e.store).saveEntityRecord("root","user",{id:i,vrts_onboarding:{...n,completed:[...r,s].filter(((t,e,i)=>i.indexOf(t)===e))}})}()}var F;F=i(962),i(300),i(328),F.keys().forEach(F)})()})();1 (()=>{var t={300:(t,e,i)=>{var s={"./admin-header/_style.scss":179,"./admin-notification/_style.scss":809,"./alert-actions/_style.scss":168,"./comparisons/_style.scss":234,"./metabox-classic-editor/_style.scss":271,"./modal/_style.scss":799,"./settings-page/_style.scss":793,"./test-run-alerts/_style.scss":800,"./test-run-info/_style.scss":177,"./test-run-page/_style.scss":364,"./test-run-pagination/_style.scss":821,"./test-run-receipt/_style.scss":305,"./test-run-success/_style.scss":140,"./test-runs-page/_style.scss":479,"./tests-page/_style.scss":423,"./upgrade-page/_style.scss":946};function n(t){var e=r(t);return i(e)}function r(t){if(!i.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}n.keys=function(){return Object.keys(s)},n.resolve=r,t.exports=n,n.id=300},962:(t,e,i)=>{var s={"./admin-notification/script.js":415,"./alert-actions/script.js":303,"./comparisons/script.js":784,"./modal/script.js":417,"./settings-page/script.js":563,"./test-run-alerts/script.js":650,"./test-run-page/script.js":74,"./test-run-pagination/script.js":191,"./test-run-success/script.js":486,"./test-runs-page/script.js":937,"./tests-page/script.js":318,"./upgrade-page/script.js":92};function n(t){var e=r(t);return i(e)}function r(t){if(!i.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}n.keys=function(){return Object.keys(s)},n.resolve=r,t.exports=n,n.id=962},328:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=328,t.exports=e},407:()=>{class t extends window.HTMLElement{static get observedAttributes(){return["time"]}attributeChangedCallback(t,e,i){"time"===t&&(this.time=new Date(i),this.update())}update(){var t;this.innerText=`${function(t){const{__}=wp.i18n,i=new Date;i.setHours(0,0,0,0);const s=new Date(t);s.setHours(0,0,0,0);const n=(s-i)/864e5;return 0===n?__("Today","visual-regression-testing"):1===n?__("Tomorrow","visual-regression-testing"):-1===n?__("Yesterday","visual-regression-testing"):e(t,"D, Y/m/d")}(this.time)} at ${t=this.time,e(t,"g:i a")}`}}function e(t,e){const i=t=>t<10?`0${t}`:t,s=i(t.getDate()),n=i(t.getMonth()+1),r=t.getFullYear(),a=t.getFullYear(),o=t.getHours(),h=i(t.getMinutes()),l=t.getSeconds(),p=t.getHours()%12||12,d=t.getHours()>=12?"pm":"am",c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][t.getDay()];return e.replace("d",s).replace("m",n).replace("y",r).replace("Y",a).replace("H",o).replace("i",h).replace("s",l).replace("g",p).replace("a",d).replace("D",c)}window.customElements.define("vrts-relative-time",t)},415:(t,e,i)=>{"use strict";i.r(e),i(407),jQuery(document).ready((function(t){t(document).on("click",".vrts-notice .notice-dismiss",(e=>{if(ajaxurl){const i=e.target.parentElement.querySelector("#_wpnonce").value,s=e.target.parentElement.dataset.view,n={action:"vrts_admin_notice_dismiss",url:ajaxurl,security:i,view:s};t.ajax({type:"POST",url:ajaxurl,data:n})}}))}))},303:()=>{"use strict";class t extends window.HTMLElement{constructor(){super(),this.dropdown=null,this.setAsReadTimeout=null,this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$actionButtons=this.querySelectorAll("[data-vrts-alert-action]"),this.$hideElementsForm=this.querySelector("[data-vrts-hide-elements-form]"),this.$hideElementsModal=document.getElementById("vrts-modal-hide-elements"),this.$spinner=this.querySelector(".spinner"),this.$success=this.querySelector(".vrts-alert-actions__modal-action-success")}bindFunctions(){this.onActionClick=this.onActionClick.bind(this),this.onHideElementsFormSubmit=this.onHideElementsFormSubmit.bind(this),this.onHideElementsModalClose=this.onHideElementsModalClose.bind(this)}bindEvents(){this.$actionButtons.forEach((t=>{t.addEventListener("click",this.onActionClick)})),this.$hideElementsForm.addEventListener("submit",this.onHideElementsFormSubmit),this.$hideElementsModal.addEventListener("hide",this.onHideElementsModalClose)}connectedCallback(){this.dropdown=function(t){const e=t.querySelector("[data-vrts-dropdown-open]"),i=t=>{const e=t.currentTarget,i=e.getAttribute("aria-controls"),s=document.getElementById(i),n="true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",!n),s.setAttribute("aria-hidden",n)},s=i=>{t&&t!==i.target&&!t.contains(i.target)&&(e.setAttribute("aria-expanded",!1),document.getElementById(e.getAttribute("aria-controls")).setAttribute("aria-hidden",!0))};return e?.addEventListener("click",i),document.addEventListener("click",s),()=>{e?.removeEventListener("click",i),document.removeEventListener("click",s)}}(this),this.setAsReadOnView()}setAsReadOnView(){this.$actionButtons.forEach((t=>{const e="read-status"===t.getAttribute("data-vrts-alert-action"),i="primary"===t.getAttribute("data-vrts-action-state");e&&i&&(this.setAsReadTimeout=setTimeout((()=>{t.click()}),1e3))}))}onHideElementsFormSubmit(t){t.preventDefault();const e=t.currentTarget,i=new window.FormData(e),s=i.get("post_id");this.$spinner.classList.add("is-active"),this.$success.classList.remove("is-active"),fetch(`${window.vrts_admin_vars.rest_url}/tests/post/${s}`,{method:"PUT",headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce},body:new URLSearchParams(i)}).then((t=>t.json())).then((()=>{this.$spinner.classList.remove("is-active"),this.$success.classList.add("is-active")}))}onHideElementsModalClose(){this.$success.classList.remove("is-active")}onActionClick(t){const e=t.currentTarget,i="true"===e.getAttribute("data-vrts-loading"),s="primary"===e.getAttribute("data-vrts-action-state");if(i)return;const n=e.getAttribute("data-vrts-alert-action"),r=e.getAttribute("data-vrts-alert-id");this.handleAction(n,e,r,s)}handleAction(t,e,i,s){const n=`${window.vrts_admin_vars.rest_url}/alerts/${i}/${t}`,r=s?"POST":"DELETE";let a=0,o=null;const h=setTimeout((()=>{e.setAttribute("data-vrts-loading","true");const t=window.Date.now();o=setInterval((()=>{a=window.Date.now()-t}),50)}),200);fetch(n,{method:r,headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce}}).then((t=>t.json())).then((()=>{const n=a>0?Math.abs(a-400):0;setTimeout((()=>{e.setAttribute("data-vrts-loading","false"),e.setAttribute("data-vrts-action-state",s?"secondary":"primary");const n=document.getElementById(`vrts-alert-${i}`);n&&("false-positive"===t&&n.setAttribute("data-vrts-false-positive",s?"true":"false"),"read-status"===t&&n.setAttribute("data-vrts-state",s?"read":"unread"))}),n),clearTimeout(h),clearInterval(o)}))}disconnectedCallback(){this.dropdown?.(),clearTimeout(this.setAsReadTimeout),this.$actionButtons?.forEach((t=>{t.removeEventListener("click",this.onActionClick)})),this.$hideElementsForm?.removeEventListener("submit",this.onHideElementsFormSubmit),this.$hideElementsModal?.removeEventListener("hide",this.onHideElementsModalClose)}}window.customElements.define("vrts-alert-actions",t)},784:(t,e,i)=>{class s extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents(),this.init()}resolveElements(){this.$content=document.querySelector("[data-vrts-fullscreen]"),this.$fullscreen=this.querySelector("[data-vrts-fullscreen-open]"),this.$control=this.querySelector("[data-vrts-comparisons-slider-control]"),this.$diffIndicator=this.querySelector("[data-vrts-comparisons-diff-inidicator]"),this.$comparison=this.querySelector('[data-vrts-comparisons-slot="comparison"] img')}bindFunctions(){this.onFullscreenToggle=this.onFullscreenToggle.bind(this),this.onControlChange=this.onControlChange.bind(this),this.onFullScreenChange=this.onFullScreenChange.bind(this),this.onLoadComparison=this.onLoadComparison.bind(this)}bindEvents(){this.$fullscreen.addEventListener("click",this.onFullscreenToggle),this.$control.addEventListener("input",this.onControlChange),document.addEventListener("fullscreenchange",this.onFullScreenChange)}init(){this.worker=new window.Worker(new URL(i(392),i.b)),this.worker.onmessage=this.onWorkerMessage.bind(this),this.$comparison.complete?this.onLoadComparison():this.$comparison.onload=this.onLoadComparison}onLoadComparison(){const t=this.createOffscreenCanvarImageData(this.$comparison);this.worker.postMessage({action:"analyzeImage",imageData:t})}createOffscreenCanvarImageData(t){const e=new window.OffscreenCanvas(t.naturalWidth,t.naturalHeight),i=e.getContext("2d");return i.drawImage(t,0,0),i.getImageData(0,0,e.width,e.height)}requestFullscreen(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()}exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}getFullscreenElement(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement}onFullscreenToggle(t){t.preventDefault(),this.getFullscreenElement()===this.$content?this.exitFullscreen():this.requestFullscreen(this.$content)}onFullScreenChange(){this.$content.setAttribute("data-vrts-fullscreen",this.getFullscreenElement()===this.$content)}onControlChange(t){this.style.setProperty("--vrts-comparisons-slider-position",`${t.target.value}%`)}onWorkerMessage(t){"analyzedImage"===t.data?.action&&this.highlightPixels(t.data.coloredPixels)}highlightPixels(t){const e=this.$diffIndicator.getContext("2d");this.$diffIndicator.width=this.$comparison.naturalWidth,this.$diffIndicator.height=this.$comparison.naturalHeight,e.clearRect(0,0,this.$comparison.naturalWidth,this.$comparison.naturalHeight),e.fillStyle="#cc1818",t.forEach((t=>{e.fillRect(0,t-2,e.canvas.width,3)}))}connectedCallback(){}disconnectedCallback(){this.$fullscreen?.removeEventListener("click",this.onFullscreenToggle),this.$control?.removeEventListener("input",this.onControlChange),document.removeEventListener("fullscreenchange",this.onFullScreenChange),this.worker?.terminate(),this.worker=null}}window.customElements.define("vrts-comparisons",s)},417:()=>{"use strict";const t=":not([inert]):not([inert] *)",e=':not([tabindex^="-"])',i=":not(:disabled)";var s=[`a[href]${t}${e}`,`area[href]${t}${e}`,`input:not([type="hidden"]):not([type="radio"])${t}${e}${i}`,`input[type="radio"]${t}${e}${i}`,`select${t}${e}${i}`,`textarea${t}${e}${i}`,`button${t}${e}${i}`,`details${t} > summary:first-of-type${e}`,`iframe${t}${e}`,`audio[controls]${t}${e}`,`video[controls]${t}${e}`,`[contenteditable]${t}${e}`,`[tabindex]${t}${e}`];function n(t){(t.querySelector("[autofocus]")||t).focus()}function r(t,e){if(e&&h(t))return t;if(function(t){return!(t.shadowRoot&&"-1"===t.getAttribute("tabindex")||t.matches(":disabled,[hidden],[inert]"))}(t))if(t.shadowRoot){let i=a(t.shadowRoot,e);for(;i;){const t=r(i,e);if(t)return t;i=o(i,e)}}else if("slot"===t.localName){const i=t.assignedElements({flatten:!0});e||i.reverse();for(const t of i){const i=r(t,e);if(i)return i}}else{let i=a(t,e);for(;i;){const t=r(i,e);if(t)return t;i=o(i,e)}}return!e&&h(t)?t:null}function a(t,e){return e?t.firstElementChild:t.lastElementChild}function o(t,e){return e?t.nextElementSibling:t.previousElementSibling}const h=t=>!t.shadowRoot?.delegatesFocus&&t.matches(s.join(","))&&!(t=>!(!t.matches("details:not([open]) *")||t.matches("details>summary:first-of-type"))||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))(t);function l(t=document){const e=t.activeElement;return e?e.shadowRoot?l(e.shadowRoot)||document.activeElement:e:null}function p(t,e){return function e(i){return i&&i!==document&&i!==window?(i.assignedSlot&&(i=i.assignedSlot),i.closest(t)||e(i.getRootNode().host)):null}(e)}const d="data-a11y-dialog";class c{$el;id;previouslyFocused;shown;constructor(t){this.$el=t,this.id=this.$el.getAttribute(d)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(t){return this.shown||this.fire("show",t).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=l(),"BODY"===this.previouslyFocused?.tagName&&t?.target&&(this.previouslyFocused=t.target),"focus"===t?.type?this.maintainFocus(t):n(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(t){return this.shown?(this.fire("hide",t).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this.previouslyFocused?.focus?.(),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0)),this):this}on(t,e,i){return this.$el.addEventListener(t,e,i),this}off(t,e,i){return this.$el.removeEventListener(t,e,i),this}fire(t,e){const i=new CustomEvent(t,{detail:e,cancelable:!0});return this.$el.dispatchEvent(i),i}handleTriggerClicks(t){const e=t.composedPath()[0],i=p(`[${d}-show="${this.id}"]`,e),s=p(`[${d}-hide="${this.id}"]`,e),n=p(`[${d}-hide]`,e)&&p('[aria-modal="true"]',e)===this.$el;i&&this.show(t),(s||n)&&this.hide(t)}bindKeypress(t){if(p('[aria-modal="true"]',l())!==this.$el)return;let e=!1;try{e=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==t.key||"alertdialog"===this.$el.getAttribute("role")||e||(t.preventDefault(),this.hide(t)),"Tab"===t.key&&function(t,e){const[i,s]=function(t){const e=r(t,!0);return[e,e?r(t,!1)||e:null]}(t);if(!i)return e.preventDefault();const n=l();e.shiftKey&&n===i?(s.focus(),e.preventDefault()):e.shiftKey||n!==s||(i.focus(),e.preventDefault())}(this.$el,t)}maintainFocus(t){t.target.closest(`[aria-modal="true"], [${d}-ignore-focus-trap]`)||n(this.$el)}}function u(){for(const t of document.querySelectorAll("[data-a11y-dialog]"))new c(t)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",u):u());class f extends window.HTMLElement{connectedCallback(){this.modal=new c(this)}disconnectedCallback(){this.modal.destroy()}}window.customElements.define("vrts-modal",f)},563:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$proSettingsCheckboxes=this.querySelectorAll('[data-a11y-dialog-show] input[type="checkbox"]')}bindFunctions(){this.onCheckboxChange=this.onCheckboxChange.bind(this)}bindEvents(){this.$proSettingsCheckboxes?.forEach((t=>{t.addEventListener("change",this.onCheckboxChange)}))}onCheckboxChange(t){t.preventDefault(),t.currentTarget.checked=!t.currentTarget.checked}disconnectedCallback(){this.$proSettingsCheckboxes?.forEach((t=>{t.removeEventListener("change",this.onCheckboxChange)}))}}window.customElements.define("vrts-settings",t)},650:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents(),this.unreadAlerts=new Set,this.initialUnreadAlerts=0,this.unreadRuns=parseInt(this.getAttribute("data-vrts-unread-runs"),10)}resolveElements(){this.$heading=this.querySelector(".vrts-test-run-alerts__heading"),this.$alerts=this.querySelectorAll("[data-vrts-alert]"),this.$actionButtons=this.querySelectorAll("[data-vrts-test-run-action]"),this.$runsMenuItems=[document.querySelector('.vrts-admin-header [href*="page=vrts-runs"]'),document.querySelector('#adminmenu .menu-top[href*="page=vrts"] .wp-menu-name'),document.querySelector('#adminmenu .wp-submenu a[href*="page=vrts-runs"]')]}bindFunctions(){this.handleAlertClick=this.handleAlertClick.bind(this),this.handleActionClick=this.handleActionClick.bind(this),this.updateRunsCount=this.updateRunsCount.bind(this)}bindEvents(){this.$alerts?.forEach((t=>{t.addEventListener("click",this.handleAlertClick)})),this.$actionButtons?.forEach((t=>{t.addEventListener("click",this.handleActionClick)}))}connectedCallback(){this.checkHeadingSticky(),this.checkReadStatusChange(),this.$alerts.forEach((t=>{"unread"===t.getAttribute("data-vrts-state")&&this.unreadAlerts.add(t.getAttribute("data-vrts-alert"))})),this.initialUnreadAlerts=this.unreadAlerts.size}checkHeadingSticky(){new window.IntersectionObserver((t=>{const e=!t[0].isIntersecting;this.$heading.setAttribute("data-is-sticky",e)}),{root:document,threshold:[1]}).observe(this.$heading)}checkReadStatusChange(){const t=new window.MutationObserver((t=>{t.forEach((t=>{if("attributes"===t.type&&"data-vrts-state"===t.attributeName){const e=t.target.getAttribute("data-vrts-alert"),i=t.target.getAttribute("data-vrts-state");if("receipt"===e)return;"unread"===i?this.unreadAlerts.add(e):this.unreadAlerts.delete(e),this.querySelector('[data-vrts-test-run-action="read-status"]').setAttribute("data-vrts-action-state",this.unreadAlerts.size>0?"primary":"secondary"),this.updateRunsCount(this.unreadAlerts.size)}}))}));this.$alerts.forEach((e=>{t.observe(e,{attributes:!0})}))}updateRunsCount(t){let e=this.unreadRuns;t>0&&0===this.initialUnreadAlerts?e+=1:0===t&&this.initialUnreadAlerts>0&&(e-=1),this.$runsMenuItems.forEach((t=>{if(t&&(t.querySelector(".update-plugins")?.remove(),t.textContent=t.textContent.replace(/\u00A0/g,""),e>0)){const i=document.createElement("span"),s=document.createTextNode(" ");i.classList.add("update-plugins"),i.textContent=e,t.appendChild(s),t.appendChild(i)}}))}handleAlertClick(t){t.preventDefault();const e=t.currentTarget;if("true"===e.getAttribute("data-vrts-current"))return;const i=e.getAttribute("href"),s=document.querySelector("vrts-comparisons")||document.querySelector("vrts-test-run-success"),n=document.querySelector("vrts-test-run-pagination");this.$alerts.forEach((t=>{t.setAttribute("data-vrts-current","false")})),e.setAttribute("data-vrts-current","true");const r=setTimeout((()=>{s.setAttribute("data-vrts-loading","true")}),200);fetch(i).then((t=>t.text())).then((t=>{const e=(new window.DOMParser).parseFromString(t,"text/html"),a=e.querySelector("vrts-comparisons")||e.querySelector("vrts-test-run-success"),o=e.querySelector("vrts-test-run-pagination");window.history.replaceState({},"",i),this.scrollTo(s.offsetTop-62),a&&s.replaceWith(a),o&&n.replaceWith(o),clearTimeout(r)}))}handleActionClick(t){const e=t.currentTarget,i="true"===e.getAttribute("data-vrts-loading"),s="primary"===e.getAttribute("data-vrts-action-state");if(i)return;const n=e.getAttribute("data-vrts-test-run-action"),r=e.getAttribute("data-vrts-test-run-id");this.handleAction(n,e,r,s)}handleAction(t,e,i,s){const n=`${window.vrts_admin_vars.rest_url}/test-runs/${i}/${t}`,r=s?"POST":"DELETE";let a=0,o=null;const h=setTimeout((()=>{e.setAttribute("data-vrts-loading","true");const t=window.Date.now();o=setInterval((()=>{a=window.Date.now()-t}),50)}),200);fetch(n,{method:r,headers:{"X-WP-Nonce":window.vrts_admin_vars.rest_nonce}}).then((t=>t.json())).then((()=>{const t=a>0?Math.abs(a-400):0;setTimeout((()=>{e.setAttribute("data-vrts-loading","false"),e.setAttribute("data-vrts-action-state",s?"secondary":"primary"),document.querySelectorAll("[data-vrts-alert]").forEach((t=>{t.setAttribute("data-vrts-state",s?"read":"unread")}))}),t),clearTimeout(h),clearInterval(o)}))}scrollTo(t){(document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||window).scrollTo({top:t,behavior:"smooth"})}disconnectedCallback(){this.$alerts?.forEach((t=>{t.removeEventListener("click",this.handleAlertClick)})),this.$actionButtons?.forEach((t=>{t.removeEventListener("click",this.handleActionClick)}))}}window.customElements.define("vrts-test-run-alerts",t)},74:()=>{class t extends window.HTMLElement{constructor(){super(),this.bindFunctions(),this.bindEvents(),this.isScrolling=!1}bindFunctions(){this.onScroll=this.onScroll.bind(this),this.setOffset=this.setOffset.bind(this)}bindEvents(){document.addEventListener("scroll",this.onScroll)}onScroll(){this.isScrolling||(this.isScrolling=!0,window.requestAnimationFrame(this.setOffset))}setOffset(){const t=Math.max(0,this.offset-window.scrollY);this.style.setProperty("--vrts-test-run-page-offset",`${t}px`),this.isScrolling=!1}connectedCallback(){const t=this.getBoundingClientRect(),e=document.getElementById("wpadminbar").offsetHeight;this.offset=t.top+window.scrollY-e,this.setOffset()}disconnectedCallback(){document.removeEventListener("scroll",this.onScroll)}}window.customElements.define("vrts-test-run-page",t)},191:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements(),this.bindFunctions(),this.bindEvents()}resolveElements(){this.$alerts=document.querySelectorAll("[data-vrts-alert]"),this.$buttons=this.querySelectorAll(".button")}bindFunctions(){this.handleClick=this.handleClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}bindEvents(){this.$buttons?.forEach((t=>{t.addEventListener("click",this.handleClick)})),document.addEventListener("keydown",this.handleKeyDown)}handleClick(t){t.preventDefault();const e=t.currentTarget,i=e.getAttribute("data-vrts-alert-id");let s=document.getElementById(`vrts-alert-${i}`);if(!s)return;const n=e.getAttribute("href"),r=document.querySelector("vrts-comparisons")||document.querySelector("vrts-test-run-success"),a=document.querySelector(".vrts-test-run-page__sidebar");this.$alerts.forEach((t=>{t.setAttribute("data-vrts-current","false")})),s.setAttribute("data-vrts-current","true");let o=0,h=null;const l=setTimeout((()=>{r.setAttribute("data-vrts-loading","true");const t=window.Date.now();h=setInterval((()=>{o=window.Date.now()-t}),50)}),200);let p=0;for(;s&&s!==a;)p+=s.offsetTop,s=s.offsetParent;a.scrollTo({top:p-82,behavior:"smooth"}),fetch(n).then((t=>t.text())).then((t=>{const e=(new window.DOMParser).parseFromString(t,"text/html"),i=e.querySelector("vrts-comparisons")||e.querySelector("vrts-test-run-success"),s=e.querySelector("vrts-test-run-pagination");window.history.replaceState({},"",n),this.scrollTo(r.offsetTop-62);const a=o>0?Math.abs(o-400):0;setTimeout((()=>{i&&r.replaceWith(i),s&&this.replaceWith(s)}),a),clearTimeout(l),clearInterval(h)}))}handleKeyDown(t){"ArrowUp"===t.key&&(t.preventDefault(),this.querySelector('[data-vrts-pagination="prev"]').click()),"ArrowDown"===t.key&&(t.preventDefault(),this.querySelector('[data-vrts-pagination="next"]').click())}scrollTo(t){(document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||window).scrollTo({top:t,behavior:"smooth"})}disconnectedCallback(){this.$buttons?.forEach((t=>{t.removeEventListener("click",this.handleClick)})),document.removeEventListener("keydown",this.handleKeyDown)}}window.customElements.define("vrts-test-run-pagination",t)},486:(t,e,i)=>{"use strict";i.r(e);var s=i(816),n=i.n(s);class r extends window.HTMLElement{constructor(){super(),this.resolveElements()}resolveElements(){this.$lottiePlayer=this.querySelector("[vrts-lottie-player]")}connectedCallback(){this.lottieAnimation=n().loadAnimation({path:`${window.vrts_admin_vars.pluginUrl}/assets/animations/success-check.json`,container:this.$lottiePlayer,renderer:"svg",loop:!1,autoplay:!0})}disconnectedCallback(){this.lottieAnimation.destroy()}loaAnimation(){this.$lottiePlayer.play()}}window.customElements.define("vrts-test-run-success",r)},937:()=>{class t extends window.HTMLElement{constructor(){super(),this.resolveElements()}resolveElements(){this.$runsListTable=this.querySelector("form .vrts-test-runs-list-table")}connectedCallback(){this.highlightNewTestRuns()}highlightNewTestRuns(){const t=new Set(JSON.parse(window.localStorage.getItem("vrtsNewTestRuns")||"[]")),e=this.$runsListTable.querySelectorAll("tr[data-test-run-id]");let i=0;e.forEach((e=>{const s=e.getAttribute("data-test-run-id");"true"===e.getAttribute("data-test-run-new")?t.has(s)||(t.add(s),setTimeout((()=>{e.classList.add("test-run-highlighted")}),i),i+=200):t.has(s)&&t.delete(s)})),window.localStorage.setItem("vrtsNewTestRuns",JSON.stringify([...t]))}}window.customElements.define("vrts-test-runs-page",t)},318:()=>{document.getElementById("show-modal-add-new")?.addEventListener("click",(()=>{window.wpLink.open("input_hidden_internal_url")})),window.wp=window.wp||{},function(t,e){window.inlineEditTest={init(){const e=this,i=t("#inline-edit");e.type="test",e.what="#test-",i.on("keyup",(function(t){if(27===t.which)return inlineEditTest.revert()})),t(".cancel",i).on("click",(function(){return inlineEditTest.revert()})),t(".save",i).on("click",(function(){return inlineEditTest.save(this)})),t("td",i).on("keydown",(function(e){if(13===e.which&&!e.shiftKey&&!t(e.target).hasClass("cancel"))return inlineEditTest.save(this)})),t("#the-list").on("click",".editinline",(function(){t(this).attr("aria-expanded","true"),inlineEditTest.edit(this)})),t("#doaction").on("click",(function(i){e.whichBulkButtonId=t(this).attr("id");const s=e.whichBulkButtonId.substr(2);"edit"===t('select[name="'+s+'"]').val()?i.preventDefault():t("form#posts-filter tr.inline-editor").length>0&&e.revert()}))},toggle(e){const i=this;"none"===t(i.what+i.getId(e)).css("display")?i.revert():i.edit(e)},edit(e){const i=this;i.revert(),"object"==typeof e&&(e=i.getId(e));const s=t("#inline-edit").clone(!0);t("td",s).attr("colspan",t("th:visible, td:visible",".widefat:first thead").length),t("td",s).find("#quick-edit-legend").removeAttr("id"),t("td",s).find('p[id^="quick-edit-"]').removeAttr("id"),t(i.what+e).removeClass("is-expanded").hide().after(s).after('<tr class="hidden"></tr>');const n=t("#inline_"+e),r=t(".hide_css_selectors",n).text();return t(':input[name="hide_css_selectors"]',s).val(r),t(s).attr("id","edit-"+e).addClass("inline-editor").show(),t(':input[name="hide_css_selectors"]',s).trigger("focus"),!1},save(i){"object"==typeof i&&(i=this.getId(i)),t("table.widefat .spinner").addClass("is-active");const s={action:"vrts_test_quick_edit_save",test_id:i,hide_css_selectors:t("#edit-"+i+' [name="hide_css_selectors"]').val(),nonce:t("#_vrts_test_quick_edit_nonce").val()};return t.post(ajaxurl,s,(function(s){if(t("table.widefat .spinner").removeClass("is-active"),!(s=t.parseJSON(s)).success){const n=t("#edit-"+i+" .inline-edit-save .notice-error");return n.removeClass("hidden"),n.text(s.message),void e.a11y.speak(s.message)}t("#inline_"+i+" .hide_css_selectors").text(s.hide_css_selectors);const n=t(".widefat");(i=t(".inline-editor",n).attr("id"))&&(t(".spinner",n).removeClass("is-active"),t("#"+i).siblings("tr.hidden").addBack().remove(),i=i.substr(i.lastIndexOf("-")+1),t("#test-"+i).fadeIn(400).find(".editinline").attr("aria-expanded","false").trigger("focus")),e.a11y.speak(s.message);const r=s.snapshot_status,a=t("#test-"+i+" .base_screenshot_date");null!=r&&""!==r&&a.text(r)}),"html"),!1},revert(){const e=t(".widefat");let i=t(".inline-editor",e).attr("id");return i&&(t(".spinner",e).removeClass("is-active"),t("#"+i).siblings("tr.hidden").addBack().remove(),i=i.substr(i.lastIndexOf("-")+1),t(this.what+i).show().find(".editinline").attr("aria-expanded","false").trigger("focus")),!1},getId(e){const i=t(e).closest("tr").attr("id").split("-");return i[i.length-1]}},t((function(){t(".vrts-list-table-page").length&&inlineEditTest.init()}))}(jQuery,window.wp)},92:(t,e,i)=>{"use strict";i.r(e);var s=i(570),n=i.n(s);document.querySelector(".vrts_upgrade_page")&&n()({checkOrigin:!1,heightCalculationMethod:"taggedElement"},"#vrts_upgrade_iframe")},570:(t,e)=>{var i,s,n;!function(r){if("undefined"!=typeof window){var a,o,h=0,l=!1,p=!1,d="[iFrameSizer]",c=null,u=window.requestAnimationFrame,f=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},g=null,v=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){C("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),y={};window.jQuery!==r&&((o=window.jQuery).fn?o.fn.iFrameResize||(o.fn.iFrameResize=function(t){return this.filter("iframe").each((function(e,i){z(i,t)})).end()}):A("","Unable to bind to jQuery, it is not fully loaded.")),s=[],(n="function"==typeof(i=j)?i.apply(e,s):i)===r||(t.exports=n),window.iFrameResize=window.iFrameResize||j()}function b(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(t,e,i){t.addEventListener(e,i,!1)}function _(t,e,i){t.removeEventListener(e,i,!1)}function k(t){return m[t]?m[t].log:l}function x(t,e){S("log",t,e,k(t))}function A(t,e){S("info",t,e,k(t))}function C(t,e){S("warn",t,e,!0)}function S(t,e,i,s){!0===s&&"object"==typeof window.console&&console[t](function(t){return d+"["+function(t){var e="Host page: "+t;return window.top!==window.self&&(e=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),e}(t)+"]"}(e),i)}function E(t){function e(){i("Height"),i("Width"),$((function(){R(S),F(E),l("onResized",S)}),S,"init")}function i(t){var e=Number(m[E]["max"+t]),i=Number(m[E]["min"+t]),s=t.toLowerCase(),n=Number(S[s]);x(E,"Checking "+s+" is in range "+i+"-"+e),n<i&&(n=i,x(E,"Set "+s+" to min value")),n>e&&(n=e,x(E,"Set "+s+" to max value")),S[s]=""+n}function s(t){return k.slice(k.indexOf(":")+7+t)}function n(t,e){var i,s;i=function(){var i,s;O("Send Page Info","pageInfo:"+(i=document.body.getBoundingClientRect(),s=S.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:s.height,iframeWidth:s.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(s.top-i.top,10),offsetLeft:parseInt(s.left-i.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),t,e)},y[s=e]||(y[s]=setTimeout((function(){y[s]=null,i()}),32))}function r(t){var e=t.getBoundingClientRect();return D(E),{x:Math.floor(Number(e.left)+Number(c.x)),y:Math.floor(Number(e.top)+Number(c.y))}}function a(t){var e=t?r(S.iframe):{x:0,y:0},i={x:Number(S.width)+e.x,y:Number(S.height)+e.y};x(E,"Reposition requested from iFrame (offset x:"+e.x+" y:"+e.y+")"),window.top===window.self?(c=i,o(),x(E,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](i.x,i.y):C(E,"Unable to scroll to requested position, window.parentIFrame not found")}function o(){!1===l("onScroll",c)?I():F(E)}function h(t){var e={};if(0===Number(S.width)&&0===Number(S.height)){var i=s(9).split(":");e={x:i[1],y:i[0]}}else e={x:S.width,y:S.height};l(t,{iframe:S.iframe,screenX:Number(e.x),screenY:Number(e.y),type:S.type})}function l(t,e){return P(E,t,e)}var p,u,f,g,v,b,k=t.data,S={},E=null;"[iFrameResizerChild]Ready"===k?function(){for(var t in m)O("iFrame requested init",N(t),m[t].iframe,t)}():d===(""+k).slice(0,13)&&k.slice(13).split(":")[0]in m?(g=(f=k.slice(13).split(":"))[1]?parseInt(f[1],10):0,v=m[f[0]]&&m[f[0]].iframe,b=getComputedStyle(v),S={iframe:v,id:f[0],height:g+function(t){return"border-box"!==t.boxSizing?0:(t.paddingTop?parseInt(t.paddingTop,10):0)+(t.paddingBottom?parseInt(t.paddingBottom,10):0)}(b)+function(t){return"border-box"!==t.boxSizing?0:(t.borderTopWidth?parseInt(t.borderTopWidth,10):0)+(t.borderBottomWidth?parseInt(t.borderBottomWidth,10):0)}(b),width:f[2],type:f[3]},E=S.id,m[E]&&(m[E].loaded=!0),(u=S.type in{true:1,false:1,undefined:1})&&x(E,"Ignoring init message from meta parent page"),!u&&function(t){var e=!0;return m[t]||(e=!1,C(S.type+" No settings for "+t+". Message was: "+k)),e}(E)&&(x(E,"Received: "+k),p=!0,null===S.iframe&&(C(E,"IFrame ("+S.id+") not found"),p=!1),p&&function(){var e,i=t.origin,s=m[E]&&m[E].checkOrigin;if(s&&""+i!="null"&&!(s.constructor===Array?function(){var t=0,e=!1;for(x(E,"Checking connection is from allowed list of origins: "+s);t<s.length;t++)if(s[t]===i){e=!0;break}return e}():(e=m[E]&&m[E].remoteHost,x(E,"Checking connection is from: "+e),i===e)))throw new Error("Unexpected message received from: "+i+" for "+S.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(m[E]&&m[E].firstRun&&m[E]&&(m[E].firstRun=!1),S.type){case"close":M(S.iframe);break;case"message":u=s(6),x(E,"onMessage passed: {iframe: "+S.iframe.id+", message: "+u+"}"),l("onMessage",{iframe:S.iframe,message:JSON.parse(u)}),x(E,"--");break;case"mouseenter":h("onMouseEnter");break;case"mouseleave":h("onMouseLeave");break;case"autoResize":m[E].autoResize=JSON.parse(s(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":n(m[E]&&m[E].iframe,E),function(){function t(t,s){function r(){m[i]?n(m[i].iframe,i):e()}["scroll","resize"].forEach((function(e){x(i,t+e+" listener for sendPageInfo"),s(window,e,r)}))}function e(){t("Remove ",_)}var i=E;t("Add ",w),m[i]&&(m[i].stopPageInfo=e)}();break;case"pageInfoStop":m[E]&&m[E].stopPageInfo&&(m[E].stopPageInfo(),delete m[E].stopPageInfo);break;case"inPageLink":i=s(9).split("#")[1]||"",p=decodeURIComponent(i),(d=document.getElementById(p)||document.getElementsByName(p)[0])?(t=r(d),x(E,"Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),c={x:t.x,y:t.y},o(),x(E,"--")):window.top===window.self?x(E,"In page link #"+i+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(i):x(E,"In page link #"+i+" not found and window.parentIFrame not found");break;case"reset":L(S);break;case"init":e(),l("onInit",S.iframe);break;default:0===Number(S.width)&&0===Number(S.height)?C("Unsupported message received ("+S.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):e()}var t,i,p,d,u}())):A(E,"Ignored: "+k)}function P(t,e,i){var s=null,n=null;if(m[t]){if("function"!=typeof(s=m[t][e]))throw new TypeError(e+" on iFrame["+t+"] is not a function");n=s(i)}return n}function T(t){var e=t.id;delete m[e]}function M(t){var e=t.id;if(!1!==P(e,"onClose",e)){x(e,"Removing iFrame: "+e);try{t.parentNode&&t.parentNode.removeChild(t)}catch(t){C(t)}P(e,"onClosed",e),x(e,"--"),T(t),a&&(a.disconnect(),a=null)}else x(e,"Close iframe cancelled by onClose event")}function D(t){null===c&&x(t,"Get page position: "+(c={x:window.pageXOffset===r?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===r?document.documentElement.scrollTop:window.pageYOffset}).x+","+c.y)}function F(t){null!==c&&(window.scrollTo(c.x,c.y),x(t,"Set page position: "+c.x+","+c.y),I())}function I(){c=null}function L(t){x(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),D(t.id),$((function(){R(t),O("reset","reset",t.iframe,t.id)}),t,"reset")}function R(t){function e(e){p||"0"!==t[e]||(p=!0,x(s,"Hidden iFrame detected, creating visibility listener"),function(){function t(){Object.keys(m).forEach((function(t){!function(t){function e(e){return"0px"===(m[t]&&m[t].iframe.style[e])}m[t]&&null!==m[t].iframe.offsetParent&&(e("height")||e("width"))&&O("Visibility change","resize",m[t].iframe,t)}(t)}))}function e(e){x("window","Mutation observed: "+e[0].target+" "+e[0].type),B(t,16)}var i,s=b();s&&(i=document.querySelector("body"),new s(e).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function i(i){!function(e){t.id?(t.iframe.style[e]=t[e]+"px",x(t.id,"IFrame ("+s+") "+e+" set to "+t[e]+"px")):x("undefined","messageData id not set")}(i),e(i)}var s=t.iframe.id;m[s]&&(m[s].sizeHeight&&i("height"),m[s].sizeWidth&&i("width"))}function $(t,e,i){i!==e.type&&u&&!window.jasmine?(x(e.id,"Requesting animation frame"),u(t)):t()}function O(t,e,i,s,n){var r,a=!1;s=s||i.id,m[s]&&(i&&"contentWindow"in i&&null!==i.contentWindow?(r=m[s]&&m[s].targetOrigin,x(s,"["+t+"] Sending msg to iframe["+s+"] ("+e+") targetOrigin: "+r),i.contentWindow.postMessage(d+e,r)):C(s,"["+t+"] IFrame("+s+") not found"),n&&m[s]&&m[s].warningTimeout&&(m[s].msgTimeout=setTimeout((function(){!m[s]||m[s].loaded||a||(a=!0,C(s,"IFrame has not responded within "+m[s].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[s].warningTimeout)))}function N(t){return t+":"+m[t].bodyMarginV1+":"+m[t].sizeWidth+":"+m[t].log+":"+m[t].interval+":"+m[t].enablePublicMethods+":"+m[t].autoResize+":"+m[t].bodyMargin+":"+m[t].heightCalculationMethod+":"+m[t].bodyBackground+":"+m[t].bodyPadding+":"+m[t].tolerance+":"+m[t].inPageLinks+":"+m[t].resizeFrom+":"+m[t].widthCalculationMethod+":"+m[t].mouseEvents}function z(t,e){function i(t){var e=t.split("Callback");if(2===e.length){var i="on"+e[0].charAt(0).toUpperCase()+e[0].slice(1);this[i]=this[t],delete this[t],C(o,"Deprecated: '"+t+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}var s,n,o=function(i){if("string"!=typeof i)throw new TypeError("Invaild id for iFrame. Expected String");var s;return""===i&&(t.id=(s=e&&e.id||v.id+h++,null!==document.getElementById(s)&&(s+=h++),i=s),l=(e||{}).log,x(i,"Added missing iframe ID: "+i+" ("+t.src+")")),i}(t.id);o in m&&"iFrameResizer"in t?C(o,"Ignored iFrame, already setup."):(function(e){var s;e=e||{},m[o]=Object.create(null),m[o].iframe=t,m[o].firstRun=!0,m[o].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),function(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(i,e),function(t){for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&(m[o][e]=Object.prototype.hasOwnProperty.call(t,e)?t[e]:v[e])}(e),m[o]&&(m[o].targetOrigin=!0===m[o].checkOrigin?""===(s=m[o].remoteHost)||null!==s.match(/^(about:blank|javascript:|file:\/\/)/)?"*":s:"*")}(e),function(){switch(x(o,"IFrame scrolling "+(m[o]&&m[o].scrolling?"enabled":"disabled")+" for "+o),t.style.overflow=!1===(m[o]&&m[o].scrolling)?"hidden":"auto",m[o]&&m[o].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=m[o]?m[o].scrolling:"no"}}(),function(){function e(e){var i=m[o][e];1/0!==i&&0!==i&&(t.style[e]="number"==typeof i?i+"px":i,x(o,"Set "+e+" = "+t.style[e]))}function i(t){if(m[o]["min"+t]>m[o]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}i("Height"),i("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(m[o]&&m[o].bodyMargin)&&"0"!==(m[o]&&m[o].bodyMargin)||(m[o].bodyMarginV1=m[o].bodyMargin,m[o].bodyMargin=m[o].bodyMargin+"px"),s=N(o),(n=b())&&(a=function(e){if(!t.parentNode)return null;var i=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&M(t)}))}))}));return i.observe(t.parentNode,{childList:!0}),i}(n)),w(t,"load",(function(){var e,i;O("iFrame.onload",s,t,r,!0),e=m[o]&&m[o].firstRun,i=m[o]&&m[o].heightCalculationMethod in f,!e&&i&&L({iframe:t,height:0,width:0,type:"init"})})),O("init",s,t,r,!0),m[o]&&(m[o].iframe.iFrameResizer={close:M.bind(null,m[o].iframe),removeListeners:T.bind(null,m[o].iframe),resize:O.bind(null,"Window resize","resize",m[o].iframe),moveToAnchor:function(t){O("Move to anchor","moveToAnchor:"+t,m[o].iframe,o)},sendMessage:function(t){O("Send Message","message:"+(t=JSON.stringify(t)),m[o].iframe,o)}}))}function B(t,e){null===g&&(g=setTimeout((function(){g=null,t()}),e))}function V(){"hidden"!==document.visibilityState&&(x("document","Trigger event: Visibility change"),B((function(){q("Tab Visible","resize")}),16))}function q(t,e){Object.keys(m).forEach((function(i){(function(t){return m[t]&&"parent"===m[t].resizeFrom&&m[t].autoResize&&!m[t].firstRun})(i)&&O(t,e,m[i].iframe,i)}))}function j(){function t(t,i){i&&(function(){if(!i.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==i.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+i.tagName+">")}(),z(i,t),e.push(i))}var e;return function(){var t,e=["moz","webkit","o","ms"];for(t=0;t<e.length&&!u;t+=1)u=window[e[t]+"RequestAnimationFrame"];u?u=u.bind(window):x("setup","RequestAnimationFrame not supported")}(),w(window,"message",E),w(window,"resize",(function(){x("window","Trigger event: resize"),B((function(){q("Window resize","resize")}),16)})),w(document,"visibilitychange",V),w(document,"-webkit-visibilitychange",V),function(i,s){switch(e=[],function(t){t&&t.enablePublicMethods&&C("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof s){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(s||"iframe"),t.bind(r,i));break;case"object":t(i,s);break;default:throw new TypeError("Unexpected data type ("+typeof s+")")}return e}}}()},816:function(t,e,i){"undefined"!=typeof navigator&&(t.exports=function(){"use strict";var t="",s=!1,n=-999999,r=function(){return t};function a(t){return document.createElement(t)}function o(t,e){var i,s,n=t.length;for(i=0;i<n;i+=1)for(var r in s=t[i].prototype)Object.prototype.hasOwnProperty.call(s,r)&&(e.prototype[r]=s[r])}var h=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),l=function(){function t(t,e){var i,s=0,n=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)n.push(i);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function p(t){return Array.apply(null,{length:t})}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}var c=!0,u=null,f="",m=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),g=Math.pow,v=Math.sqrt,y=Math.floor,b=(Math.max,Math.min),w={};(function(){var t,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"],i=e.length;for(t=0;t<i;t+=1)w[e[t]]=Math[e[t]]})(),w.random=Math.random,w.abs=function(t){if("object"===d(t)&&t.length){var e,i=p(t.length),s=t.length;for(e=0;e<s;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var _=150,k=Math.PI/180,x=.5519;function A(t,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function C(t,e){this.type=t,this.direction=e<0?-1:1}function S(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function E(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function P(t,e){this.type=t,this.target=e}function T(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function M(t){this.type="configError",this.nativeError=t}var D,F=(D=0,function(){return f+"__lottie_element_"+(D+=1)});function I(t,e,i){var s,n,r,a,o,h,l,p;switch(h=i*(1-e),l=i*(1-(o=6*t-(a=Math.floor(6*t)))*e),p=i*(1-(1-o)*e),a%6){case 0:s=i,n=p,r=h;break;case 1:s=l,n=i,r=h;break;case 2:s=h,n=i,r=p;break;case 3:s=h,n=l,r=i;break;case 4:s=p,n=h,r=i;break;case 5:s=i,n=h,r=l}return[s,n,r]}function L(t,e,i){var s,n=Math.max(t,e,i),r=Math.min(t,e,i),a=n-r,o=0===n?0:a/n,h=n/255;switch(n){case r:s=0;break;case t:s=e-i+a*(e<i?6:0),s/=6*a;break;case e:s=i-t+2*a,s/=6*a;break;case i:s=t-e+4*a,s/=6*a}return[s,o,h]}function R(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),I(i[0],i[1],i[2])}function $(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),I(i[0],i[1],i[2])}function O(t,e){var i=L(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),I(i[0],i[1],i[2])}!function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e}();var N=function(){return u},z=function(t){_=t},B=function(){return _};function V(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}var j=function(){var t,e,i=1,n=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){r.onmessage({data:t})}};function o(e){if(window.Worker&&window.Blob&&s){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(i);return new Worker(n)}return t=e,r}function h(){e||(e=o((function(t){if(a.dataManager||(a.dataManager=function(){function t(n,r){var a,o,h,l,p,d,c,u=n.length;for(o=0;o<u;o+=1)if("ks"in(a=n[o])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(l=f.length,h=0;h<l;h+=1)if(f[h].pt.k.i)s(f[h].pt.k);else for(d=f[h].pt.k.length,p=0;p<d;p+=1)f[h].pt.k[p].s&&s(f[h].pt.k[p].s[0]),f[h].pt.k[p].e&&s(f[h].pt.k[p].e[0])}0===a.ty?(a.layers=e(a.refId,r),t(a.layers,r)):4===a.ty?i(a.shapes):5===a.ty&&(0===(c=a).t.a.length&&c.t.p)}}function e(t,e){var i=function(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,n,r;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)s(t[e].ks.k);else for(r=t[e].ks.k.length,n=0;n<r;n+=1)t[e].ks.k[n].s&&s(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&s(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function s(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var r,a=function(){var t=[4,4,14];function e(t){var e,i,s,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=t[e],s=void 0,s=i.t.d,i.t.d={k:[{s,t:0}]})}return function(i){if(n(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),o=(r=[4,7,99],function(t){if(t.chars&&!n(r,t.v)){var e,s=t.chars.length;for(e=0;e<s;e+=1){var a=t.chars[e];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={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),h=function(){var t=[5,7,15];function e(t){var e,i,s,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=t[e],s=void 0,"number"==typeof(s=i.t.p).a&&(s.a={a:0,k:s.a}),"number"==typeof s.p&&(s.p={a:0,k:s.p}),"number"==typeof s.r&&(s.r={a:0,k:s.r}))}return function(i){if(n(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),l=function(){var t=[4,1,9];function e(t){var i,s,n,r=t.length;for(i=0;i<r;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(n=t[i].c.k.length,s=0;s<n;s+=1)t[i].c.k[s].s&&(t[i].c.k[s].s[0]/=255,t[i].c.k[s].s[1]/=255,t[i].c.k[s].s[2]/=255,t[i].c.k[s].s[3]/=255),t[i].c.k[s].e&&(t[i].c.k[s].e[0]/=255,t[i].c.k[s].e[1]/=255,t[i].c.k[s].e[2]/=255,t[i].c.k[s].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),p=function(){var t=[4,4,18];function e(t){var i,s,n;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(n=t[i].ks.k.length,s=0;s<n;s+=1)t[i].ks.k[s].s&&(t[i].ks.k[s].s[0].c=t[i].closed),t[i].ks.k[s].e&&(t[i].ks.k[s].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,s,n,r,a,o,h=t.length;for(s=0;s<h;s+=1){if((i=t[s]).hasMask){var l=i.masksProperties;for(r=l.length,n=0;n<r;n+=1)if(l[n].pt.k.i)l[n].pt.k.c=l[n].cl;else for(o=l[n].pt.k.length,a=0;a<o;a+=1)l[n].pt.k[a].s&&(l[n].pt.k[a].s[0].c=l[n].cl),l[n].pt.k[a].e&&(l[n].pt.k[a].e[0].c=l[n].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),d={completeData:function(i){i.__complete||(l(i),a(i),o(i),h(i),p(i),t(i.layers,i.assets),function(i,s){if(i){var n=0,r=i.length;for(n=0;n<r;n+=1)1===i[n].t&&(i[n].data.layers=e(i[n].data.refId,s),t(i[n].data.layers,s))}}(i.chars,i.assets),i.__complete=!0)}};return d.checkColors=l,d.checkChars=o,d.checkPathProperties=h,d.checkShapes=p,d.completeLayers=t,d}()),a.assetLoader||(a.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===q(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,s,n){var r,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)r=t(a),s(r);else try{r=t(a),s(r)}catch(t){n&&n(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),i+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,i=e.id,s=n[i];n[i]=null,"success"===e.status?s.onComplete(e.payload):s.onError&&s.onError()})}function l(t,e){var s="processId_"+(i+=1);return n[s]={onComplete:t,onError:e},s}return{loadAnimation:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,i,s){h();var n=l(i,s);e.postMessage({type:"complete",animation:t,id:n})}}}(),H=function(){var t=function(){var t=a("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(t,e,i){var s="";if(t.e)s=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),s=e+n}else s=i,s+=t.u?t.u:"",s+=t.p;return s}function n(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function r(t){var e={assetData:t},i=s(t,this.assetsPath,this.path);return j.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=r.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var s=t.length;for(i=0;i<s;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=s(e,this.assetsPath,this.path),n=a("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),n.src=i;var r={img:n,assetData:e};return r},createImageData:function(e){var i=s(e,this.assetsPath,this.path),n=V("image");m?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var r={img:n,assetData:e};return r},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function W(){}W.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var Y=function(){function t(t){for(var e,i=t.split("\r\n"),s={},n=0,r=0;r<i.length;r+=1)2===(e=i[r].split(":")).length&&(s[e[0]]=e[1].trim(),n+=1);if(0===n)throw new Error;return s}return function(e){for(var i=[],s=0;s<e.length;s+=1){var n=e[s],r={time:n.tm,duration:n.dr};try{r.payload=JSON.parse(e[s].cm)}catch(i){try{r.payload=t(e[s].cm)}catch(t){r.payload={name:e[s].cm}}}i.push(r)}return i}}(),U=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),X={};function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}var G=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=F(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=c,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=U(),this.imagePreloader=new H,this.audioController=h(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new A("drawnFrame",0,0,0),this.expressionsPlugin=N()};o([W],G),G.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=X[e];this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),j.loadAnimation(t.path,this.configAnimation,this.onSetupError))},G.prototype.onSetupError=function(){this.trigger("data_failed")},G.prototype.setupAnimation=function(t){j.completeAnimation(t,this.configAnimation)},G.prototype.setData=function(t,e){e&&"object"!==K(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},s=t.attributes;i.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",i.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:function(){if(X.canvas)return"canvas";for(var t in X)if(X[t])return t;return""}()||"canvas";var n=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";"false"===n?i.loop=!1:"true"===n?i.loop=!0:""!==n&&(i.loop=parseInt(n,10));var r=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value;i.autoplay="false"!==r,i.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"","false"===(s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},G.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,s=this.animationData.layers,n=s.length,r=t.layers,a=r.length;for(i=0;i<a;i+=1)for(e=0;e<n;){if(s[e].id===r[i].id){s[e]=r[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,j.completeAnimation(this.animationData,this.onSegmentComplete)},G.prototype.onSegmentComplete=function(t){this.animationData=t;var e=N();e&&e.initExpressions(this),this.loadNextSegment()},G.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,j.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},G.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},G.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},G.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},G.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=Y(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},G.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},G.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=N();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},G.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,s="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,s)},G.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},G.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},G.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},G.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},G.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},G.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},G.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},G.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},G.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},G.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(s,e,i);this.play()}},G.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},G.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},G.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},G.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===K(t[0])){var i,s=t.length;for(i=0;i<s;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},G.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},G.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},G.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},G.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},G.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},G.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},G.prototype.setLoop=function(t){this.loop=t},G.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},G.prototype.getVolume=function(){return this.audioController.getVolume()},G.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},G.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},G.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},G.prototype.getPath=function(){return this.path},G.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},G.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},G.prototype.hide=function(){this.renderer.hide()},G.prototype.show=function(){this.renderer.show()},G.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},G.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},G.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new A(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new S(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new C(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new E(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new P(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new A(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new S(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new C(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new E(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new P(t,this))},G.prototype.triggerRenderFrameError=function(t){var e=new T(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},G.prototype.triggerConfigError=function(t){var e=new M(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var J=function(){var t={},e=[],i=0,s=0,n=0,r=!0,o=!1;function h(t){for(var i=0,n=t.target;i<s;)e[i].animation===n&&(e.splice(i,1),i-=1,s-=1,n.isPaused||d()),i+=1}function l(t,i){if(!t)return null;for(var n=0;n<s;){if(e[n].elem===t&&null!==e[n].elem)return e[n].animation;n+=1}var r=new G;return c(r,t),r.setData(t,i),r}function p(){n+=1,m()}function d(){n-=1}function c(t,i){t.addEventListener("destroy",h),t.addEventListener("_active",p),t.addEventListener("_idle",d),e.push({elem:i,animation:t}),s+=1}function u(t){var a,h=t-i;for(a=0;a<s;a+=1)e[a].animation.advanceTime(h);i=t,n&&!o?window.requestAnimationFrame(u):r=!0}function f(t){i=t,window.requestAnimationFrame(u)}function m(){!o&&n&&r&&(window.requestAnimationFrame(f),r=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new G;return c(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setSpeed(t,i)},t.setDirection=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var s,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),r=n.length;for(s=0;s<r;s+=1)i&&n[s].setAttribute("data-bm-type",i),l(n[s],t);if(e&&0===r){i||(i="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var h=a("div");h.style.width="100%",h.style.height="100%",h.setAttribute("data-bm-type",i),o.appendChild(h),l(h,t)}},t.resize=function(){var t;for(t=0;t<s;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,n){var r;for(r=0;r<s;r+=1)e[r].animation.goToAndStop(t,i,n)},t.destroy=function(t){var i;for(i=s-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,m()},t.setVolume=function(t,i){var n;for(n=0;n<s;n+=1)e[n].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,s=[];for(t=0;t<i;t+=1)s.push(e[t].animation);return s},t}(),Z=function(){var t={getBezierEasing:function(t,i,s,n,r){var a=r||("bez_"+t+"_"+i+"_"+s+"_"+n).replace(/\./g,"p");if(e[a])return e[a];var o=new p([t,i,s,n]);return e[a]=o,o}},e={};var i=11,s=1/(i-1),n="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function o(t){return 3*t}function h(t,e,i){return((r(e,i)*t+a(e,i))*t+o(e))*t}function l(t,e,i){return 3*r(e,i)*t*t+2*a(e,i)*t+o(e)}function p(t){this._p=t,this._mSampleValues=n?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return p.prototype={get:function(t){var e=this._p[0],i=this._p[1],s=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===i&&s===n?t:0===t?0:1===t?1:h(this._getTForX(t),i,n)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,t===e&&i===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<i;++n)this._mSampleValues[n]=h(n*s,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],r=this._mSampleValues,a=0,o=1,p=i-1;o!==p&&r[o]<=t;++o)a+=s;var d=a+(t-r[--o])/(r[o+1]-r[o])*s,c=l(d,e,n);return c>=.001?function(t,e,i,s){for(var n=0;n<4;++n){var r=l(e,i,s);if(0===r)return e;e-=(h(e,i,s)-t)/r}return e}(t,d,e,n):0===c?d:function(t,e,i,s,n){var r,a,o=0;do{(r=h(a=e+(i-e)/2,s,n)-t)>0?i=a:e=a}while(Math.abs(r)>1e-7&&++o<10);return a}(t,a,a+s,e,n)}},t}(),Q={double:function(t){return t.concat(p(t.length))}},tt=function(t,e,i){var s=0,n=t,r=p(n);return{newElement:function(){return s?r[s-=1]:e()},release:function(t){s===n&&(r=Q.double(r),n*=2),i&&i(t),r[s]=t,s+=1}}},et=tt(8,(function(){return{addedLength:0,percents:l("float32",B()),lengths:l("float32",B())}})),it=tt(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)et.release(t.lengths[e]);t.lengths.length=0}));var st=function(){var t=Math;function e(t,e,i,s,n,r){var a=t*s+e*n+i*r-n*s-r*t-i*e;return a>-.001&&a<.001}var i=function(t,e,i,s){var n,r,a,o,h,l,p=B(),d=0,c=[],u=[],f=et.newElement();for(a=i.length,n=0;n<p;n+=1){for(h=n/(p-1),l=0,r=0;r<a;r+=1)o=g(1-h,3)*t[r]+3*g(1-h,2)*h*i[r]+3*(1-h)*g(h,2)*s[r]+g(h,3)*e[r],c[r]=o,null!==u[r]&&(l+=g(c[r]-u[r],2)),u[r]=c[r];l&&(d+=l=v(l)),f.percents[n]=h,f.lengths[n]=d}return f.addedLength=d,f};function s(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var r,a=(r={},function(t,i,a,o){var h=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!r[h]){var l,d,c,u,f,m,y,b=B(),w=0,_=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(b=2);var k=new s(b);for(c=a.length,l=0;l<b;l+=1){for(y=p(c),f=l/(b-1),m=0,d=0;d<c;d+=1)u=g(1-f,3)*t[d]+3*g(1-f,2)*f*(t[d]+a[d])+3*(1-f)*g(f,2)*(i[d]+o[d])+g(f,3)*i[d],y[d]=u,null!==_&&(m+=g(y[d]-_[d],2));w+=m=v(m),k.points[l]=new n(m,y),_=y}k.segmentLength=w,r[h]=k}return r[h]});function o(t,e){var i=e.percents,s=e.lengths,n=i.length,r=y((n-1)*t),a=t*e.addedLength,o=0;if(r===n-1||0===r||a===s[r])return i[r];for(var h=s[r]>a?-1:1,l=!0;l;)if(s[r]<=a&&s[r+1]>a?(o=(a-s[r])/(s[r+1]-s[r]),l=!1):r+=h,r<0||r>=n-1){if(r===n-1)return i[r];l=!1}return i[r]+(i[r+1]-i[r])*o}var h=l("float32",8);return{getSegmentsLength:function(t){var e,s=it.newElement(),n=t.c,r=t.v,a=t.o,o=t.i,h=t._length,l=s.lengths,p=0;for(e=0;e<h-1;e+=1)l[e]=i(r[e],r[e+1],a[e],o[e+1]),p+=l[e].addedLength;return n&&h&&(l[e]=i(r[e],r[0],a[e],o[0]),p+=l[e].addedLength),s.totalLength=p,s},getNewSegment:function(e,i,s,n,r,a,l){r<0?r=0:r>1&&(r=1);var p,d=o(r,l),c=o(a=a>1?1:a,l),u=e.length,f=1-d,m=1-c,g=f*f*f,v=d*f*f*3,y=d*d*f*3,b=d*d*d,w=f*f*m,_=d*f*m+f*d*m+f*f*c,k=d*d*m+f*d*c+d*f*c,x=d*d*c,A=f*m*m,C=d*m*m+f*c*m+f*m*c,S=d*c*m+f*c*c+d*m*c,E=d*c*c,P=m*m*m,T=c*m*m+m*c*m+m*m*c,M=c*c*m+m*c*c+c*m*c,D=c*c*c;for(p=0;p<u;p+=1)h[4*p]=t.round(1e3*(g*e[p]+v*s[p]+y*n[p]+b*i[p]))/1e3,h[4*p+1]=t.round(1e3*(w*e[p]+_*s[p]+k*n[p]+x*i[p]))/1e3,h[4*p+2]=t.round(1e3*(A*e[p]+C*s[p]+S*n[p]+E*i[p]))/1e3,h[4*p+3]=t.round(1e3*(P*e[p]+T*s[p]+M*n[p]+D*i[p]))/1e3;return h},getPointInSegment:function(e,i,s,n,r,a){var h=o(r,a),l=1-h;return[t.round(1e3*(l*l*l*e[0]+(h*l*l+l*h*l+l*l*h)*s[0]+(h*h*l+l*h*h+h*l*h)*n[0]+h*h*h*i[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(h*l*l+l*h*l+l*l*h)*s[1]+(h*h*l+l*h*h+h*l*h)*n[1]+h*h*h*i[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(i,s,n,r,a,o,h,l,p){if(0===n&&0===o&&0===p)return e(i,s,r,a,h,l);var d,c=t.sqrt(t.pow(r-i,2)+t.pow(a-s,2)+t.pow(o-n,2)),u=t.sqrt(t.pow(h-i,2)+t.pow(l-s,2)+t.pow(p-n,2)),f=t.sqrt(t.pow(h-r,2)+t.pow(l-a,2)+t.pow(p-o,2));return(d=c>u?c>f?c-u-f:f-u-c:f>u?f-u-c:u-c-f)>-1e-4&&d<1e-4}}}(),nt=n,rt=Math.abs;function at(t,e){var i,s=this.offsetTime;"multidimensional"===this.propType&&(i=l("float32",this.pv.length));for(var n,r,a,o,h,p,d,c,u,f=e.lastIndex,m=f,g=this.keyframes.length-1,v=!0;v;){if(n=this.keyframes[m],r=this.keyframes[m+1],m===g-1&&t>=r.t-s){n.h&&(n=r),f=0;break}if(r.t-s>t){f=m;break}m<g-1?m+=1:(f=0,v=!1)}a=this.keyframesMetadata[m]||{};var y,b,w,_,x,A,C,S,E,P,T,M,D,F,I,L,R,$,O=r.t-s,N=n.t-s;if(n.to){a.bezierData||(a.bezierData=st.buildBezierData(n.s,r.s||n.e,n.to,n.ti));var z=a.bezierData;if(t>=O||t<N){var B=t>=O?z.points.length-1:0;for(h=z.points[B].point.length,o=0;o<h;o+=1)i[o]=z.points[B].point[o]}else{a.__fnct?u=a.__fnct:(u=Z.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,a.__fnct=u),p=u((t-N)/(O-N));var V,q=z.segmentLength*p,j=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastAddedLength:0;for(c=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastPoint:0,v=!0,d=z.points.length;v;){if(j+=z.points[c].partialLength,0===q||0===p||c===z.points.length-1){for(h=z.points[c].point.length,o=0;o<h;o+=1)i[o]=z.points[c].point[o];break}if(q>=j&&q<j+z.points[c+1].partialLength){for(V=(q-j)/z.points[c+1].partialLength,h=z.points[c].point.length,o=0;o<h;o+=1)i[o]=z.points[c].point[o]+(z.points[c+1].point[o]-z.points[c].point[o])*V;break}c<d-1?c+=1:v=!1}e._lastPoint=c,e._lastAddedLength=j-z.points[c].partialLength,e._lastKeyframeIndex=m}}else{var H,W,Y,U,X;if(g=n.s.length,y=r.s||n.e,this.sh&&1!==n.h)t>=O?(i[0]=y[0],i[1]=y[1],i[2]=y[2]):t<=N?(i[0]=n.s[0],i[1]=n.s[1],i[2]=n.s[2]):function(t,e){var i=e[0],s=e[1],n=e[2],r=e[3],a=Math.atan2(2*s*r-2*i*n,1-2*s*s-2*n*n),o=Math.asin(2*i*s+2*n*r),h=Math.atan2(2*i*r-2*s*n,1-2*i*i-2*n*n);t[0]=a/k,t[1]=o/k,t[2]=h/k}(i,(b=ot(n.s),w=ot(y),_=(t-N)/(O-N),P=[],T=b[0],M=b[1],D=b[2],F=b[3],I=w[0],L=w[1],R=w[2],$=w[3],(A=T*I+M*L+D*R+F*$)<0&&(A=-A,I=-I,L=-L,R=-R,$=-$),1-A>1e-6?(x=Math.acos(A),C=Math.sin(x),S=Math.sin((1-_)*x)/C,E=Math.sin(_*x)/C):(S=1-_,E=_),P[0]=S*T+E*I,P[1]=S*M+E*L,P[2]=S*D+E*R,P[3]=S*F+E*$,P));else for(m=0;m<g;m+=1)1!==n.h&&(t>=O?p=1:t<N?p=0:(n.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[m]?u=a.__fnct[m]:(H=void 0===n.o.x[m]?n.o.x[0]:n.o.x[m],W=void 0===n.o.y[m]?n.o.y[0]:n.o.y[m],Y=void 0===n.i.x[m]?n.i.x[0]:n.i.x[m],U=void 0===n.i.y[m]?n.i.y[0]:n.i.y[m],u=Z.getBezierEasing(H,W,Y,U).get,a.__fnct[m]=u)):a.__fnct?u=a.__fnct:(H=n.o.x,W=n.o.y,Y=n.i.x,U=n.i.y,u=Z.getBezierEasing(H,W,Y,U).get,n.keyframeMetadata=u),p=u((t-N)/(O-N)))),y=r.s||n.e,X=1===n.h?n.s[m]:n.s[m]+(y[m]-n.s[m])*p,"multidimensional"===this.propType?i[m]=X:i=X}return e.lastIndex=f,i}function ot(t){var e=t[0]*k,i=t[1]*k,s=t[2]*k,n=Math.cos(e/2),r=Math.cos(i/2),a=Math.cos(s/2),o=Math.sin(e/2),h=Math.sin(i/2),l=Math.sin(s/2);return[o*h*a+n*r*l,o*r*a+n*h*l,n*h*a-o*r*l,n*r*a-o*h*l]}function ht(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==nt&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv}function lt(t){var e;if("unidimensional"===this.propType)e=t*this.mult,rt(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,rt(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function pt(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function dt(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ct(t,e,i,s){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=pt,this.setVValue=lt,this.addEffect=dt}function ut(t,e,i,s){var n;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r=e.k.length;for(this.v=l("float32",r),this.pv=l("float32",r),this.vel=l("float32",r),n=0;n<r;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=pt,this.setVValue=lt,this.addEffect=dt}function ft(t,e,i,s){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:nt,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.v=nt,this.pv=nt,this._isFirstFrame=!0,this.getValue=pt,this.setVValue=lt,this.interpolateValue=at,this.effectsSequence=[ht.bind(this)],this.addEffect=dt}function mt(t,e,i,s){var n;this.propType="multidimensional";var r,a,o,h,p=e.k.length;for(n=0;n<p-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n+1]&&e.k[n+1].s&&(r=e.k[n].s,a=e.k[n+1].s,o=e.k[n].to,h=e.k[n].ti,(2===r.length&&(r[0]!==a[0]||r[1]!==a[1])&&st.pointOnLine2D(r[0],r[1],a[0],a[1],r[0]+o[0],r[1]+o[1])&&st.pointOnLine2D(r[0],r[1],a[0],a[1],a[0]+h[0],a[1]+h[1])||3===r.length&&(r[0]!==a[0]||r[1]!==a[1]||r[2]!==a[2])&&st.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],r[0]+o[0],r[1]+o[1],r[2]+o[2])&&st.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],a[0]+h[0],a[1]+h[1],a[2]+h[2]))&&(e.k[n].to=null,e.k[n].ti=null),r[0]===a[0]&&r[1]===a[1]&&0===o[0]&&0===o[1]&&0===h[0]&&0===h[1]&&(2===r.length||r[2]===a[2]&&0===o[2]&&0===h[2])&&(e.k[n].to=null,e.k[n].ti=null));this.effectsSequence=[ht.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.getValue=pt,this.setVValue=lt,this.interpolateValue=at,this.frameId=-1;var d=e.k[0].s.length;for(this.v=l("float32",d),this.pv=l("float32",d),n=0;n<d;n+=1)this.v[n]=nt,this.pv[n]=nt;this._caching={lastFrame:nt,lastIndex:0,value:l("float32",d)},this.addEffect=dt}var gt={getProp:function(t,e,i,s,n){var r;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])r=new ut(t,e,s,n);else switch(i){case 0:r=new ft(t,e,s,n);break;case 1:r=new mt(t,e,s,n)}else r=new ct(t,e,s,n);return r.effectsSequence.length&&n.addDynamicProperty(r),r}};function vt(){}vt.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var yt=tt(8,(function(){return l("float32",2)}));function bt(){this.c=!1,this._length=0,this._maxLength=8,this.v=p(this._maxLength),this.o=p(this._maxLength),this.i=p(this._maxLength)}bt.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=yt.newElement(),this.o[i]=yt.newElement(),this.i[i]=yt.newElement(),i+=1},bt.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},bt.prototype.doubleArrayLength=function(){this.v=this.v.concat(p(this._maxLength)),this.i=this.i.concat(p(this._maxLength)),this.o=this.o.concat(p(this._maxLength)),this._maxLength*=2},bt.prototype.setXYAt=function(t,e,i,s,n){var r;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}(!r[s]||r[s]&&!n)&&(r[s]=yt.newElement()),r[s][0]=t,r[s][1]=e},bt.prototype.setTripleAt=function(t,e,i,s,n,r,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,s,"o",a,o),this.setXYAt(n,r,"i",a,o)},bt.prototype.reverse=function(){var t=new bt;t.setPathData(this.c,this._length);var e=this.v,i=this.o,s=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],s[0][0],s[0][1],i[0][0],i[0][1],0,!1),n=1);var r,a=this._length-1,o=this._length;for(r=n;r<o;r+=1)t.setTripleAt(e[a][0],e[a][1],s[a][0],s[a][1],i[a][0],i[a][1],r,!1),a-=1;return t},bt.prototype.length=function(){return this._length};var wt,_t=((wt=tt(4,(function(){return new bt}),(function(t){var e,i=t._length;for(e=0;e<i;e+=1)yt.release(t.v[e]),yt.release(t.i[e]),yt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}))).clone=function(t){var e,i=wt.newElement(),s=void 0===t._length?t.v.length:t._length;for(i.setLength(s),i.c=t.c,e=0;e<s;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},wt);function kt(){this._length=0,this._maxLength=4,this.shapes=p(this._maxLength)}kt.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(p(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},kt.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)_t.release(this.shapes[t]);this._length=0};var xt=function(){var t={newShapeCollection:function(){return e?s[e-=1]:new kt},release:function(t){var n,r=t._length;for(n=0;n<r;n+=1)_t.release(t.shapes[n]);t._length=0,e===i&&(s=Q.double(s),i*=2),s[e]=t,e+=1}},e=0,i=4,s=p(i);return t}(),At=function(){var t=-999999;function e(t,e,i){var s,n,r,a,o,h,l,p,d,c=i.lastIndex,u=this.keyframes;if(t<u[0].t-this.offsetTime)s=u[0].s[0],r=!0,c=0;else if(t>=u[u.length-1].t-this.offsetTime)s=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],r=!0;else{for(var f,m,g,v=c,y=u.length-1,b=!0;b&&(f=u[v],!((m=u[v+1]).t-this.offsetTime>t));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},c=v,!(r=1===f.h)){if(t>=m.t-this.offsetTime)p=1;else if(t<f.t-this.offsetTime)p=0;else{var w;g.__fnct?w=g.__fnct:(w=Z.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=w),p=w((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}n=m.s?m.s[0]:f.e[0]}s=f.s[0]}for(h=e._length,l=s.i[0].length,i.lastIndex=c,a=0;a<h;a+=1)for(o=0;o<l;o+=1)d=r?s.i[a][o]:s.i[a][o]+(n.i[a][o]-s.i[a][o])*p,e.i[a][o]=d,d=r?s.o[a][o]:s.o[a][o]+(n.o[a][o]-s.o[a][o])*p,e.o[a][o]=d,d=r?s.v[a][o]:s.v[a][o]+(n.v[a][o]-s.v[a][o])*p,e.v[a][o]=d}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==t&&(n<i&&e<i||n>s&&e>s)||(this._caching.lastIndex=n<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function s(){this.paths=this.localShapeCollection}function n(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,s=t._length;for(i=0;i<s;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=_t.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function r(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===i?e.pt.k:e.ks.k;this.v=_t.clone(n),this.pv=_t.clone(this.v),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,n,r){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===r?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=_t.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=_t.clone(this.v),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=r,a.prototype.setVValue=n,a.prototype.addEffect=h,l.prototype.getValue=r,l.prototype.interpolateShape=e,l.prototype.setVValue=n,l.prototype.addEffect=h;var p=function(){var t=x;function e(t,e){this.v=_t.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=xt.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=gt.getProp(t,e.p,1,0,this),this.s=gt.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],s=this.s.v[0]/2,n=this.s.v[1]/2,r=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=i-n,a.v[1][0]=r?e+s:e-s,a.v[1][1]=i,a.v[2][0]=e,a.v[2][1]=i+n,a.v[3][0]=r?e-s:e+s,a.v[3][1]=i,a.i[0][0]=r?e-s*t:e+s*t,a.i[0][1]=i-n,a.i[1][0]=r?e+s:e-s,a.i[1][1]=i-n*t,a.i[2][0]=r?e+s*t:e-s*t,a.i[2][1]=i+n,a.i[3][0]=r?e-s:e+s,a.i[3][1]=i+n*t,a.o[0][0]=r?e+s*t:e-s*t,a.o[0][1]=i-n,a.o[1][0]=r?e+s:e-s,a.o[1][1]=i+n*t,a.o[2][0]=r?e-s*t:e+s*t,a.o[2][1]=i+n,a.o[3][0]=r?e-s:e+s,a.o[3][1]=i-n*t}},o([vt],e),e}(),d=function(){function t(t,e){this.v=_t.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=gt.getProp(t,e.ir,0,0,this),this.is=gt.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=gt.getProp(t,e.pt,0,0,this),this.p=gt.getProp(t,e.p,1,0,this),this.r=gt.getProp(t,e.r,0,k,this),this.or=gt.getProp(t,e.or,0,0,this),this.os=gt.getProp(t,e.os,0,.01,this),this.localShapeCollection=xt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,s,n=2*Math.floor(this.pt.v),r=2*Math.PI/n,a=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,d=2*Math.PI*o/(2*n),c=2*Math.PI*h/(2*n),u=-Math.PI/2;u+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<n;t+=1){i=a?l:p,s=a?d:c;var m=(e=a?o:h)*Math.cos(u),g=e*Math.sin(u),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*s*i*f,g-y*s*i*f,m+v*s*i*f,g+y*s*i*f,t,!0),a=!a,u+=r*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,n=this.os.v,r=2*Math.PI*s/(4*e),a=.5*-Math.PI,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(a),l=s*Math.sin(a),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),d=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*r*n*o,l-d*r*n*o,h+p*r*n*o,l+d*r*n*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},o([vt],t),t}(),c=function(){function t(t,e){this.v=_t.newElement(),this.v.c=!0,this.localShapeCollection=xt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=gt.getProp(t,e.p,1,0,this),this.s=gt.getProp(t,e.s,1,0,this),this.r=gt.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,n=b(i,s,this.r.v),r=n*(1-x);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+n,t+i,e-s+r,0,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-r,t+i,e+s-n,1,!0),0!==n?(this.v.setTripleAt(t+i-n,e+s,t+i-n,e+s,t+i-r,e+s,2,!0),this.v.setTripleAt(t-i+n,e+s,t-i+r,e+s,t-i+n,e+s,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-n,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+r,t-i,e-s+n,5,!0),this.v.setTripleAt(t-i+n,e-s,t-i+n,e-s,t-i+r,e-s,6,!0),this.v.setTripleAt(t+i-n,e-s,t+i-r,e-s,t+i-n,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+r,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+r,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+r,t+i,e-s+n,0,!0),0!==n?(this.v.setTripleAt(t+i-n,e-s,t+i-n,e-s,t+i-r,e-s,1,!0),this.v.setTripleAt(t-i+n,e-s,t-i+r,e-s,t-i+n,e-s,2,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+n,t-i,e-s+r,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-r,t-i,e+s-n,4,!0),this.v.setTripleAt(t-i+n,e+s,t-i+n,e+s,t-i+r,e+s,5,!0),this.v.setTripleAt(t+i-n,e+s,t+i-r,e+s,t+i-n,e+s,6,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-n,t+i,e+s-r,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+r,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-r,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-r,e+s,t+i,e+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},o([vt],t),t}();var u={getShapeProp:function(t,e,i){var s;return 3===i||4===i?s=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new a(t,e,i):5===i?s=new c(t,e):6===i?s=new p(t,e):7===i&&(s=new d(t,e)),s.k&&t.addDynamicProperty(s),s},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return u}(),Ct=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function r(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,-n,0,0,n,s,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(1,0,0,0,0,s,-n,0,0,n,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,0,n,0,0,1,0,0,-n,0,s,0,0,0,0,1)}function h(i){if(0===i)return this;var s=t(i),n=e(i);return this._t(s,-n,0,0,n,s,0,0,0,0,1,0,0,0,0,1)}function p(t,e){return this._t(1,e,t,1,0,0)}function d(t,e){return this.shear(i(t),i(e))}function c(s,n){var r=t(n),a=e(n);return this._t(r,a,0,0,-a,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(s),1,0,0,0,0,1,0,0,0,0,1)._t(r,-a,0,0,a,r,0,0,0,0,1,0,0,0,0,1)}function u(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function f(t,e,i,s,n,r,a,o,h,l,p,d,c,u,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=n,this.props[5]=r,this.props[6]=a,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=d,this.props[12]=c,this.props[13]=u,this.props[14]=f,this.props[15]=m,this}function m(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function g(t,e,i,s,n,r,a,o,h,l,p,d,c,u,f,m){var g=this.props;if(1===t&&0===e&&0===i&&0===s&&0===n&&1===r&&0===a&&0===o&&0===h&&0===l&&1===p&&0===d)return g[12]=g[12]*t+g[15]*c,g[13]=g[13]*r+g[15]*u,g[14]=g[14]*p+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],w=g[3],_=g[4],k=g[5],x=g[6],A=g[7],C=g[8],S=g[9],E=g[10],P=g[11],T=g[12],M=g[13],D=g[14],F=g[15];return g[0]=v*t+y*n+b*h+w*c,g[1]=v*e+y*r+b*l+w*u,g[2]=v*i+y*a+b*p+w*f,g[3]=v*s+y*o+b*d+w*m,g[4]=_*t+k*n+x*h+A*c,g[5]=_*e+k*r+x*l+A*u,g[6]=_*i+k*a+x*p+A*f,g[7]=_*s+k*o+x*d+A*m,g[8]=C*t+S*n+E*h+P*c,g[9]=C*e+S*r+E*l+P*u,g[10]=C*i+S*a+E*p+P*f,g[11]=C*s+S*o+E*d+P*m,g[12]=T*t+M*n+D*h+F*c,g[13]=T*e+M*r+D*l+F*u,g[14]=T*i+M*a+D*p+F*f,g[15]=T*s+M*o+D*d+F*m,this._identityCalculated=!1,this}function v(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function b(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function w(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function k(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function x(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function A(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function C(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function S(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,s=-this.props[4]/t,n=this.props[0]/t,r=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Ct;return o.props[0]=e,o.props[1]=i,o.props[4]=s,o.props[5]=n,o.props[12]=r,o.props[13]=a,o}function E(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function P(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=E(t[e]);return s}function T(t,e,i){var s=l("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=e[0],s[3]=e[1],s[4]=i[0],s[5]=i[1];else{var n=this.props[0],r=this.props[1],a=this.props[4],o=this.props[5],h=this.props[12],p=this.props[13];s[0]=t[0]*n+t[1]*a+h,s[1]=t[0]*r+t[1]*o+p,s[2]=e[0]*n+e[1]*a+h,s[3]=e[0]*r+e[1]*o+p,s[4]=i[0]*n+i[1]*a+h,s[5]=i[0]*r+i[1]*o+p}return s}function M(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function D(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function F(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=s(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function I(t){return t<1e-6&&t>0||t>-1e-6&&t<0?s(1e4*t)/1e4:t}function L(){var t=this.props;return"matrix("+I(t[0])+","+I(t[1])+","+I(t[4])+","+I(t[5])+","+I(t[12])+","+I(t[13])+")"}return function(){this.reset=n,this.rotate=r,this.rotateX=a,this.rotateY=o,this.rotateZ=h,this.skew=d,this.skewFromAxis=c,this.shear=p,this.scale=u,this.setTransform=f,this.translate=m,this.transform=g,this.multiply=v,this.applyToPoint=k,this.applyToX=x,this.applyToY=A,this.applyToZ=C,this.applyToPointArray=M,this.applyToTriplePoints=T,this.applyToPointStringified=D,this.toCSS=F,this.to2dCSS=L,this.clone=w,this.cloneFromProps=_,this.equals=b,this.inversePoints=P,this.inversePoint=E,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=l("float32",16),this.reset()}}();function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}var Et={},Pt="__[STANDALONE]__";function Tt(){J.searchAnimations()}Et.play=J.play,Et.pause=J.pause,Et.setLocationHref=function(e){t=e},Et.togglePause=J.togglePause,Et.setSpeed=J.setSpeed,Et.setDirection=J.setDirection,Et.stop=J.stop,Et.searchAnimations=Tt,Et.registerAnimation=J.registerAnimation,Et.loadAnimation=function(t){return J.loadAnimation(t)},Et.setSubframeRendering=function(t){!function(t){c=!!t}(t)},Et.resize=J.resize,Et.goToAndStop=J.goToAndStop,Et.destroy=J.destroy,Et.setQuality=function(t){if("string"==typeof t)switch(t){case"high":z(200);break;default:case"medium":z(50);break;case"low":z(10)}else!isNaN(t)&&t>1&&z(t);B()},Et.inBrowser=function(){return"undefined"!=typeof navigator},Et.installPlugin=function(t,e){"expressions"===t&&(u=e)},Et.freeze=J.freeze,Et.unfreeze=J.unfreeze,Et.setVolume=J.setVolume,Et.mute=J.mute,Et.unmute=J.unmute,Et.getRegisteredAnimations=J.getRegisteredAnimations,Et.useWebWorker=function(t){s=!!t},Et.setIDPrefix=function(t){f=t},Et.__getFactory=function(t){switch(t){case"propertyFactory":return gt;case"shapePropertyFactory":return At;case"matrix":return Ct;default:return null}},Et.version="5.12.2";var Mt="";if(Pt){var Dt=document.getElementsByTagName("script"),Ft=Dt[Dt.length-1]||{src:""};Mt=Ft.src?Ft.src.replace(/^[^\?]+\??/,""):"",function(t){for(var e=Mt.split("&"),i=0;i<e.length;i+=1){var s=e[i].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}return null}("renderer")}var It=setInterval((function(){"complete"===document.readyState&&(clearInterval(It),Tt())}),100);try{"object"!==St(e)&&i.amdO}catch(t){}var Lt=function(){var t={},e={};return t.registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,s){return new e[t](i,s)},t}();function Rt(){}function $t(){}function Ot(){}Rt.prototype.initModifierProperties=function(){},Rt.prototype.addShapeToModifier=function(){},Rt.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:xt.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},Rt.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=n,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Rt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},o([vt],Rt),o([Rt],$t),$t.prototype.initModifierProperties=function(t,e){this.s=gt.getProp(t,e.s,0,.01,this),this.e=gt.getProp(t,e.e,0,.01,this),this.o=gt.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},$t.prototype.addShapeToModifier=function(t){t.pathsData=[]},$t.prototype.calculateShapeEdges=function(t,e,i,s,n){var r=[];e<=1?r.push({s:t,e}):t>=1?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));var a,o,h=[],l=r.length;for(a=0;a<l;a+=1){var p,d;(o=r[a]).e*n<s||o.s*n>s+i||(p=o.s*n<=s?0:(o.s*n-s)/i,d=o.e*n>=s+i?1:(o.e*n-s)/i,h.push([p,d]))}return h.length||h.push([0,0]),h},$t.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)it.release(t[e]);return t.length=0,t},$t.prototype.processShapes=function(t){var e,i,s,n;if(this._mdf||t){var r=this.o.v%360/360;if(r<0&&(r+=1),(e=this.s.v>1?1+r:this.s.v<0?0+r:this.s.v+r)>(i=this.e.v>1?1+r:this.e.v<0?0+r:this.e.v+r)){var a=e;e=i,i=a}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,h,l,p,d,c=this.shapes.length,u=0;if(i===e)for(n=0;n<c;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(n=0;n<c;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var f,m,g=[];for(n=0;n<c;n+=1)if((f=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(h=(s=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(l=this.releasePathsData(f.pathsData),o=0;o<h;o+=1)p=st.getSegmentsLength(s.shapes[o]),l.push(p),d+=p.totalLength;f.totalShapeLength=d,f.pathsData=l}u+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=e,b=i,w=0;for(n=c-1;n>=0;n-=1)if((f=this.shapes[n]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&c>1?(v=this.calculateShapeEdges(e,i,f.totalShapeLength,w,u),w+=f.totalShapeLength):v=[[y,b]],h=v.length,o=0;o<h;o+=1){y=v[o][0],b=v[o][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var _=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var k=_.pop();this.addPaths(_,m),_=this.addShapes(f,g[1],k)}else this.addPaths(_,m),_=this.addShapes(f,g[1]);this.addPaths(_,m)}}f.shape.paths=m}}},$t.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e.addShape(t[i])},$t.prototype.addSegment=function(t,e,i,s,n,r,a){n.setXYAt(e[0],e[1],"o",r),n.setXYAt(i[0],i[1],"i",r+1),a&&n.setXYAt(t[0],t[1],"v",r),n.setXYAt(s[0],s[1],"v",r+1)},$t.prototype.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),s&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},$t.prototype.addShapes=function(t,e,i){var s,n,r,a,o,h,l,p,d=t.pathsData,c=t.shape.paths.shapes,u=t.shape.paths._length,f=0,m=[],g=!0;for(i?(o=i._length,p=i._length):(i=_t.newElement(),o=0,p=0),m.push(i),s=0;s<u;s+=1){for(h=d[s].lengths,i.c=c[s].c,r=c[s].c?h.length:h.length+1,n=1;n<r;n+=1)if(f+(a=h[n-1]).addedLength<e.s)f+=a.addedLength,i.c=!1;else{if(f>e.e){i.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(c[s].v[n-1],c[s].o[n-1],c[s].i[n],c[s].v[n],i,o,g),g=!1):(l=st.getNewSegment(c[s].v[n-1],c[s].v[n],c[s].o[n-1],c[s].i[n],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,h[n-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1),f+=a.addedLength,o+=1}if(c[s].c&&h.length){if(a=h[n-1],f<=e.e){var v=h[n-1].addedLength;e.s<=f&&e.e>=f+v?(this.addSegment(c[s].v[n-1],c[s].o[n-1],c[s].i[0],c[s].v[0],i,o,g),g=!1):(l=st.getNewSegment(c[s].v[n-1],c[s].v[0],c[s].o[n-1],c[s].i[0],(e.s-f)/v,(e.e-f)/v,h[n-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1)}else i.c=!1;f+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],"i",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;s<u-1&&(i=_t.newElement(),g=!0,m.push(i),o=0)}return m},o([Rt],Ot),Ot.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=gt.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ot.prototype.processPath=function(t,e){var i=e/100,s=[0,0],n=t._length,r=0;for(r=0;r<n;r+=1)s[0]+=t.v[r][0],s[1]+=t.v[r][1];s[0]/=n,s[1]/=n;var a,o,h,l,p,d,c=_t.newElement();for(c.c=t.c,r=0;r<n;r+=1)a=t.v[r][0]+(s[0]-t.v[r][0])*i,o=t.v[r][1]+(s[1]-t.v[r][1])*i,h=t.o[r][0]+(s[0]-t.o[r][0])*-i,l=t.o[r][1]+(s[1]-t.o[r][1])*-i,p=t.i[r][0]+(s[0]-t.i[r][0])*-i,d=t.i[r][1]+(s[1]-t.i[r][1])*-i,c.setTripleAt(a,o,h,l,p,d,r);return c},Ot.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amount.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Nt=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Ct,this.pre=new Ct,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=gt.getProp(t,e.p.x,0,0,this),this.py=gt.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=gt.getProp(t,e.p.z,0,0,this))):this.p=gt.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=gt.getProp(t,e.rx,0,k,this),this.ry=gt.getProp(t,e.ry,0,k,this),this.rz=gt.getProp(t,e.rz,0,k,this),e.or.k[0].ti){var s,n=e.or.k.length;for(s=0;s<n;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null}this.or=gt.getProp(t,e.or,1,k,this),this.or.sh=!0}else this.r=gt.getProp(t,e.r||{k:0},0,k,this);e.sk&&(this.sk=gt.getProp(t,e.sk,0,k,this),this.sa=gt.getProp(t,e.sa,0,k,this)),this.a=gt.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=gt.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=gt.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var s,n;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],n=[];var r=this.px,a=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(s[0]=r.getValueAtTime((r.keyframes[0].t+.01)/i,0),s[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),n[0]=r.getValueAtTime(r.keyframes[0].t/i,0),n[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(s[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/i,0),s[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),n[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(s=[r.pv,a.pv],n[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/i,r.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else s=n=t;this.v.rotate(-Math.atan2(s[1]-n[1],s[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.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,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},o([vt],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=vt.prototype.addDynamicProperty,{getTransformProperty:function(t,i,s){return new e(t,i,s)}}}();function zt(){}function Bt(){}function Vt(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function qt(t){return Math.abs(t)<=1e-5}function jt(t,e,i){return t*(1-i)+e*i}function Ht(t,e,i){return[jt(t[0],e[0],i),jt(t[1],e[1],i)]}function Wt(t,e,i,s){return[3*e-t-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function Yt(t){return new Ut(t,t,t,t,!1)}function Ut(t,e,i,s,n){n&&ie(t,e)&&(e=Ht(t,s,1/3)),n&&ie(i,s)&&(i=Ht(t,s,2/3));var r=Wt(t[0],e[0],i[0],s[0]),a=Wt(t[1],e[1],i[1],s[1]);this.a=[r[0],a[0]],this.b=[r[1],a[1]],this.c=[r[2],a[2]],this.d=[r[3],a[3]],this.points=[t,e,i,s]}function Xt(t,e){var i=t.points[0][e],s=t.points[t.points.length-1][e];if(i>s){var n=s;s=i,i=n}for(var r=function(t,e,i){if(0===t)return[];var s=e*e-4*t*i;if(s<0)return[];var n=-e/(2*t);if(0===s)return[n];var r=Math.sqrt(s)/(2*t);return[n-r,n+r]}(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<r.length;a+=1)if(r[a]>0&&r[a]<1){var o=t.point(r[a])[e];o<i?i=o:o>s&&(s=o)}return{min:i,max:s}}function Kt(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function Gt(t){var e=t.bez.split(.5);return[Kt(e[0],t.t1,t.t),Kt(e[1],t.t,t.t2)]}function Jt(t,e,i,s,n,r){if(h=t,l=e,2*Math.abs(h.cx-l.cx)<h.width+l.width&&2*Math.abs(h.cy-l.cy)<h.height+l.height)if(i>=r||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s)n.push([t.t,e.t]);else{var a=Gt(t),o=Gt(e);Jt(a[0],o[0],i+1,s,n,r),Jt(a[0],o[1],i+1,s,n,r),Jt(a[1],o[0],i+1,s,n,r),Jt(a[1],o[1],i+1,s,n,r)}var h,l}function Zt(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Qt(t,e,i,s){var n=[t[0],t[1],1],r=[e[0],e[1],1],a=[i[0],i[1],1],o=[s[0],s[1],1],h=Zt(Zt(n,r),Zt(a,o));return qt(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function te(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function ee(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function ie(t,e){return Vt(t[0],e[0])&&Vt(t[1],e[1])}function se(){}function ne(t,e,i,s,n,r,a){var o=i-Math.PI/2,h=i+Math.PI/2,l=e[0]+Math.cos(i)*s*n,p=e[1]-Math.sin(i)*s*n;t.setTripleAt(l,p,l+Math.cos(o)*r,p-Math.sin(o)*r,l+Math.cos(h)*a,p-Math.sin(h)*a,t.length())}function re(t,e){var i,s,n,r,a=0===e?t.length()-1:e-1,o=(e+1)%t.length(),h=(i=t.v[a],s=t.v[o],n=[s[0]-i[0],s[1]-i[1]],r=.5*-Math.PI,[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]);return Math.atan2(0,1)-Math.atan2(h[1],h[0])}function ae(t,e,i,s,n,r,a){var o=re(e,i),h=e.v[i%e._length],l=e.v[0===i?e._length-1:i-1],p=e.v[(i+1)%e._length],d=2===r?Math.sqrt(Math.pow(h[0]-l[0],2)+Math.pow(h[1]-l[1],2)):0,c=2===r?Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)):0;ne(t,e.v[i%e._length],o,a,s,c/(2*(n+1)),d/(2*(n+1)))}function oe(t,e,i,s,n,r){for(var a=0;a<s;a+=1){var o=(a+1)/(s+1),h=2===n?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);ne(t,e.point(o),l,r,i,h/(2*(s+1)),h/(2*(s+1))),r=-r}return r}function he(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[te(t,s,i),te(e,s,i)]}function le(t,e){var i,s,n,r,a,o,h;i=(h=he(t.points[0],t.points[1],e))[0],s=h[1],n=(h=he(t.points[1],t.points[2],e))[0],r=h[1],a=(h=he(t.points[2],t.points[3],e))[0],o=h[1];var l=Qt(i,s,n,r);null===l&&(l=s);var p=Qt(a,o,n,r);return null===p&&(p=a),new Ut(i,l,p,o)}function pe(t,e,i,s,n){var r=e.points[3],a=i.points[0];if(3===s)return r;if(ie(r,a))return r;if(2===s){var o=-e.tangentAngle(1),h=-i.tangentAngle(0)+Math.PI,l=Qt(r,te(r,o+Math.PI/2,100),a,te(a,o+Math.PI/2,100)),p=l?ee(l,r):ee(r,a)/2,d=te(r,o,2*p*x);return t.setXYAt(d[0],d[1],"o",t.length()-1),d=te(a,h,2*p*x),t.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],t.length()),a}var c=Qt(ie(r,e.points[2])?e.points[0]:e.points[2],r,a,ie(a,i.points[1])?i.points[3]:i.points[1]);return c&&ee(c,r)<n?(t.setTripleAt(c[0],c[1],c[0],c[1],c[0],c[1],t.length()),c):r}function de(t,e){var i=t.intersections(e);return i.length&&Vt(i[0][0],1)&&i.shift(),i.length?i[0]:null}function ce(t,e){var i=t.slice(),s=e.slice(),n=de(t[t.length-1],e[0]);return n&&(i[t.length-1]=t[t.length-1].split(n[0])[0],s[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=de(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[i,s]}function ue(t,e){var i,s,n,r,a=t.inflectionPoints();if(0===a.length)return[le(t,e)];if(1===a.length||Vt(a[1],1))return i=(n=t.split(a[0]))[0],s=n[1],[le(i,e),le(s,e)];i=(n=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return r=(n=n[1].split(o))[0],s=n[1],[le(i,e),le(r,e),le(s,e)]}function fe(){}function me(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",s="normal",n=e.length,r=0;r<n;r+=1)switch(e[r].toLowerCase()){case"italic":s="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:s,weight:t.fWeight||i}}o([Rt],zt),zt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=gt.getProp(t,e.c,0,null,this),this.o=gt.getProp(t,e.o,0,null,this),this.tr=Nt.getTransformProperty(t,e.tr,this),this.so=gt.getProp(t,e.tr.so,0,.01,this),this.eo=gt.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ct,this.rMatrix=new Ct,this.sMatrix=new Ct,this.tMatrix=new Ct,this.matrix=new Ct},zt.prototype.applyTransforms=function(t,e,i,s,n,r){var a=r?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-n),h=s.s.v[1]+(1-s.s.v[1])*(1-n);t.translate(s.p.v[0]*a*n,s.p.v[1]*a*n,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*a*n),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(r?1/o:o,r?1/h:h),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},zt.prototype.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},zt.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},zt.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},zt.prototype.changeGroupRender=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},zt.prototype.processShapes=function(t){var e,i,s,n,r,a=!1;if(this._mdf||t){var o,h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(r=0,s=0;s<=this._groups.length-1;s+=1){if(o=r<h,this._groups[s]._render=o,this.changeGroupRender(this._groups[s].it,o),!o){var p=this.elemsData[s].it,d=p[p.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}r+=1}this._currentCopies=h;var c=this.o.v,u=c%1,f=c>0?Math.floor(c):Math.ceil(c),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,w=0;if(c>0){for(;w<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),w+=u)}else if(c<0){for(;w>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),w-=u)}for(s=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,r=this._currentCopies;r;){if(b=(i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(s/(this._currentCopies-1)),0!==w){for((0!==s&&1===n||s!==this._currentCopies-1&&-1===n)&&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(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)i[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)i[y]=this.matrix.props[y];w+=1,r-=1,s+=n}}else for(r=this._currentCopies,s=0,n=1;r;)i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,r-=1,s+=n;return a},zt.prototype.addShape=function(){},o([Rt],Bt),Bt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=gt.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Bt.prototype.processPath=function(t,e){var i,s=_t.newElement();s.c=t.c;var n,r,a,o,h,l,p,d,c,u,f,m,g=t._length,v=0;for(i=0;i<g;i+=1)n=t.v[i],a=t.o[i],r=t.i[i],n[0]===a[0]&&n[1]===a[1]&&n[0]===r[0]&&n[1]===r[1]?0!==i&&i!==g-1||t.c?(o=0===i?t.v[g-1]:t.v[i-1],l=(h=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=f=n[0]+(o[0]-n[0])*l,d=m=n[1]-(n[1]-o[1])*l,c=p-(p-n[0])*x,u=d-(d-n[1])*x,s.setTripleAt(p,d,c,u,f,m,v),v+=1,o=i===g-1?t.v[0]:t.v[i+1],l=(h=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=c=n[0]+(o[0]-n[0])*l,d=u=n[1]+(o[1]-n[1])*l,f=p-(p-n[0])*x,m=d-(d-n[1])*x,s.setTripleAt(p,d,c,u,f,m,v),v+=1):(s.setTripleAt(n[0],n[1],a[0],a[1],r[0],r[1],v),v+=1):(s.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],v),v+=1);return s},Bt.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.rd.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Ut.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Ut.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Ut.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},Ut.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},Ut.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(qt(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var s=Math.sqrt(i);return qt(s)?s>0&&s<1?[e]:[]:[e-s,e+s].filter((function(t){return t>0&&t<1}))},Ut.prototype.split=function(t){if(t<=0)return[Yt(this.points[0]),this];if(t>=1)return[this,Yt(this.points[this.points.length-1])];var e=Ht(this.points[0],this.points[1],t),i=Ht(this.points[1],this.points[2],t),s=Ht(this.points[2],this.points[3],t),n=Ht(e,i,t),r=Ht(i,s,t),a=Ht(n,r,t);return[new Ut(this.points[0],e,n,a,!0),new Ut(a,r,s,this.points[3],!0)]},Ut.prototype.bounds=function(){return{x:Xt(this,0),y:Xt(this,1)}},Ut.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},Ut.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return Jt(Kt(this,0,1),Kt(t,0,1),0,e,s,i),s},Ut.shapeSegment=function(t,e){var i=(e+1)%t.length();return new Ut(t.v[e],t.o[e],t.i[i],t.v[i],!0)},Ut.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new Ut(t.v[i],t.i[i],t.o[e],t.v[e],!0)},o([Rt],se),se.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=gt.getProp(t,e.s,0,null,this),this.frequency=gt.getProp(t,e.r,0,null,this),this.pointsType=gt.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},se.prototype.processPath=function(t,e,i,s){var n=t._length,r=_t.newElement();if(r.c=t.c,t.c||(n-=1),0===n)return r;var a=-1,o=Ut.shapeSegment(t,0);ae(r,t,0,e,i,s,a);for(var h=0;h<n;h+=1)a=oe(r,o,e,i,s,-a),o=h!==n-1||t.c?Ut.shapeSegment(t,(h+1)%n):null,ae(r,t,h+1,e,i,s,a);return r},se.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h,l,p));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},o([Rt],fe),fe.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=gt.getProp(t,e.a,0,null,this),this.miterLimit=gt.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},fe.prototype.processPath=function(t,e,i,s){var n=_t.newElement();n.c=t.c;var r,a,o,h=t.length();t.c||(h-=1);var l=[];for(r=0;r<h;r+=1)o=Ut.shapeSegment(t,r),l.push(ue(o,e));if(!t.c)for(r=h-1;r>=0;r-=1)o=Ut.shapeSegmentInverted(t,r),l.push(ue(o,e));l=function(t){for(var e,i=1;i<t.length;i+=1)e=ce(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=ce(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}(l);var p=null,d=null;for(r=0;r<l.length;r+=1){var c=l[r];for(d&&(p=pe(n,d,c[0],i,s)),d=c[c.length-1],a=0;a<c.length;a+=1)o=c[a],p&&ie(o.points[0],p)?n.setXYAt(o.points[1][0],o.points[1][1],"o",n.length()-1):n.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],n.length()),n.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],n.length()),p=o.points[3]}return l.length&&pe(n,d,l[0][0],i,s),n},fe.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,h=this.amount.v,l=this.miterLimit.v,p=this.lineJoin;if(0!==h)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],h,p,l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var ge=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,s=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(t,e){var i=a("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var s=a("span");s.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(s),document.body.appendChild(i);var n=s.offsetWidth;return s.style.fontFamily=function(t){var e,i=t.split(","),s=i.length,n=[];for(e=0;e<s;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&n.push(i[e]);return n.join(",")}(t)+", "+e,{node:s,w:n,parent:i}}function r(t,e){var i,s=document.body&&e?"svg":"canvas",n=me(t);if("svg"===s){var r=V("text");r.style.fontSize="100px",r.setAttribute("font-family",t.fFamily),r.setAttribute("font-style",n.style),r.setAttribute("font-weight",n.weight),r.textContent="1",t.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",t.fClass)):r.style.fontFamily=t.fFamily,e.appendChild(r),i=r}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=n.style+" "+n.weight+" 100px "+t.fFamily,i=a}return{measureText:function(t){return"svg"===s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function o(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var s=t.charCodeAt(1);s>=56320&&s<=57343&&(e=1024*(i-55296)+s-56320+65536)}return e}function h(t){var e=o(t);return e>=127462&&e<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return l.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==s.indexOf(i)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return h(t.substr(0,2))&&h(t.substr(2,2))},l.isRegionalCode=h,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var s=o(t.substr(e,2));if(s!==i)return!1;var n=0;for(e+=2;n<5;){if((s=o(t.substr(e,2)))<917601||s>917626)return!1;n+=1,e+=2}return 917631===o(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=i,l.prototype={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,s,n=t.length,r=this.chars.length;for(e=0;e<n;e+=1){for(i=0,s=!1;i<r;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(s=!0),i+=1;s||(this.chars.push(t[e]),r+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=r(t),t.cache={}})),void(this.fonts=t.list);var i,s=t.list,o=s.length,h=o;for(i=0;i<o;i+=1){var l,p,d=!0;if(s[i].loaded=!1,s[i].monoCase=n(s[i].fFamily,"monospace"),s[i].sansCase=n(s[i].fFamily,"sans-serif"),s[i].fPath){if("p"===s[i].fOrigin||3===s[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[i].fFamily+'"], style[f-origin="3"][f-family="'+s[i].fFamily+'"]')).length>0&&(d=!1),d){var c=a("style");c.setAttribute("f-forigin",s[i].fOrigin),c.setAttribute("f-origin",s[i].origin),c.setAttribute("f-family",s[i].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+s[i].fFamily+"; font-style: normal; src: url('"+s[i].fPath+"');}",e.appendChild(c)}}else if("g"===s[i].fOrigin||1===s[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),p=0;p<l.length;p+=1)-1!==l[p].href.indexOf(s[i].fPath)&&(d=!1);if(d){var u=a("link");u.setAttribute("f-forigin",s[i].fOrigin),u.setAttribute("f-origin",s[i].origin),u.type="text/css",u.rel="stylesheet",u.href=s[i].fPath,document.body.appendChild(u)}}else if("t"===s[i].fOrigin||2===s[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),p=0;p<l.length;p+=1)s[i].fPath===l[p].src&&(d=!1);if(d){var f=a("link");f.setAttribute("f-forigin",s[i].fOrigin),f.setAttribute("f-origin",s[i].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",s[i].fPath),e.appendChild(f)}}}else s[i].loaded=!0,h-=1;s[i].helper=r(s[i],e),s[i].cache={},this.fonts.push(s[i])}0===h?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,s){for(var n=0,r=this.chars.length;n<r;){if(this.chars[n].ch===e&&this.chars[n].style===i&&this.chars[n].fFamily===s)return this.chars[n];n+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,s)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var s=this.getFontByName(e),n=t;if(!s.cache[n]){var r=s.helper;if(" "===t){var a=r.measureText("|"+t+"|"),o=r.measureText("||");s.cache[n]=(a-o)/100}else s.cache[n]=r.measureText(t)/100}return s.cache[n]*i},checkLoadedFonts:function(){var t,e,i,s=this.fonts.length,n=s;for(t=0;t<s;t+=1)this.fonts[t].loaded?n-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(n-=1,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)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},l}();function ve(t){this.animationData=t}function ye(){}ve.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},ye.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var be,we=(be={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return be[t]||""});function _e(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function ke(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function xe(t,e,i){this.p=gt.getProp(e,t.v,1,0,i)}function Ae(t,e,i){this.p=gt.getProp(e,t.v,1,0,i)}function Ce(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Se(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Ee(t,e,i){this.p=gt.getProp(e,t.v,0,0,i)}function Pe(){this.p={}}function Te(t,e){var i,s=t.ef||[];this.effectElements=[];var n,r=s.length;for(i=0;i<r;i+=1)n=new Me(s[i],e),this.effectElements.push(n)}function Me(t,e){this.init(t,e)}function De(){}function Fe(){}function Ie(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function Le(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?gt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=gt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function Re(){}o([vt],Me),Me.prototype.getValue=Me.prototype.iterateDynamicProperties,Me.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var s,n=this.data.ef.length,r=this.data.ef;for(i=0;i<n;i+=1){switch(s=null,r[i].ty){case 0:s=new _e(r[i],e,this);break;case 1:s=new ke(r[i],e,this);break;case 2:s=new xe(r[i],e,this);break;case 3:s=new Ae(r[i],e,this);break;case 4:case 7:s=new Ee(r[i],e,this);break;case 10:s=new Ce(r[i],e,this);break;case 11:s=new Se(r[i],e,this);break;case 5:s=new Te(r[i],e,this);break;default:s=new Pe(r[i],e,this)}s&&this.effectElements.push(s)}},De.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=null;if(t){var e=t("layer"),i=t("effects"),s=t("shape"),n=t("text"),r=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=r(this):4===this.data.ty?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=we(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=F(),this.data.sr||(this.data.sr=1),this.effectsManager=new Te(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Fe.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},Ie.prototype.prepareFrame=function(){},o([ye,De,Fe],Ie),Ie.prototype.getBaseElement=function(){return null},Ie.prototype.renderFrame=function(){},Ie.prototype.destroy=function(){},Ie.prototype.initExpressions=function(){var t=null;if(t){var e=t("footage");this.layerInterface=e(this)}},Ie.prototype.getFootageData=function(){return this.footageData},Le.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},o([ye,De,Fe],Le),Le.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Le.prototype.show=function(){},Le.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Le.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Le.prototype.resume=function(){this._canPlay=!0},Le.prototype.setRate=function(t){this.audio.rate(t)},Le.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},Le.prototype.getBaseElement=function(){return null},Le.prototype.destroy=function(){},Le.prototype.sourceRectAtTime=function(){},Le.prototype.initExpressions=function(){},Re.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},Re.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},Re.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Re.prototype.createAudio=function(t){return new Le(t,this.globalData,this)},Re.prototype.createFootage=function(t){return new Ie(t,this.globalData,this)},Re.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},Re.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,s=t.length,n=this.layers.length;for(e=0;e<s;e+=1)for(i=0;i<n;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},Re.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},Re.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Re.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,n=this.layers,r=0,a=n.length;r<a;)n[r].ind==e&&(s[r]&&!0!==s[r]?(i.push(s[r]),s[r].setAsParent(),void 0!==n[r].parent?this.buildElementParenting(t,n[r].parent,i):t.setHierarchy(i)):(this.buildItem(r),this.addPendingElement(t))),r+=1},Re.prototype.addPendingElement=function(t){this.pendingElements.push(t)},Re.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var s=this.createComp(t[e]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},Re.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},Re.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.nm===i){e=this.elements[s];break}}return 0===t.length?e:e.getElementByPath(t)},Re.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new ge,this.globalData.slotManager=function(t){return new ve(t)}(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var $e="transformEFfect";function Oe(){}function Ne(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s,n,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=p(o),this.solidPath="";var h,l,d,c,u,f,m=this.masksProperties,g=0,v=[],y=F(),b="clipPath",w="clip-path";for(s=0;s<o;s+=1)if(("a"!==m[s].mode&&"n"!==m[s].mode||m[s].inv||100!==m[s].o.k||m[s].o.x)&&(b="mask",w="mask"),"s"!==m[s].mode&&"i"!==m[s].mode||0!==g?d=null:((d=V("rect")).setAttribute("fill","#ffffff"),d.setAttribute("width",this.element.comp.data.w||0),d.setAttribute("height",this.element.comp.data.h||0),v.push(d)),n=V("path"),"n"===m[s].mode)this.viewData[s]={op:gt.getProp(this.element,m[s].o,0,.01,this.element),prop:At.getShapeProp(this.element,m[s],3),elem:n,lastPath:""},a.appendChild(n);else{var _;if(g+=1,n.setAttribute("fill","s"===m[s].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==m[s].x.k?(b="mask",w="mask",f=gt.getProp(this.element,m[s].x,0,null,this.element),_=F(),(c=V("filter")).setAttribute("id",_),(u=V("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),c.appendChild(u),a.appendChild(c),n.setAttribute("stroke","s"===m[s].mode?"#000000":"#ffffff")):(u=null,f=null),this.storedData[s]={elem:n,x:f,expan:u,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},"i"===m[s].mode){l=v.length;var k=V("g");for(h=0;h<l;h+=1)k.appendChild(v[h]);var x=V("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",y+"_"+g),x.appendChild(n),a.appendChild(x),k.setAttribute("mask","url("+r()+"#"+y+"_"+g+")"),v.length=0,v.push(k)}else v.push(n);m[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:n,lastPath:"",op:gt.getProp(this.element,m[s].o,0,.01,this.element),prop:At.getShapeProp(this.element,m[s],3),invRect:d},this.viewData[s].prop.k||this.drawPath(m[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=V(b),o=v.length,s=0;s<o;s+=1)this.maskElement.appendChild(v[s]);g>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(w,"url("+r()+"#"+y+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Oe.prototype={initTransform:function(){var t=new Ct;this.finalTransform={mProp:this.data.ks?Nt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<s;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)n*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects($e);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Ct;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,s=!0,n=this.comp;s;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):s=!1;var r,a=e.length;for(i=0;i<a;i+=1)r=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-r[0],t[1]-r[1],0];return t},mHelper:new Ct},Ne.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Ne.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,s=this.masksProperties.length;for(e=0;e<s;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+r()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},Ne.prototype.getMaskelement=function(){return this.maskElement},Ne.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},Ne.prototype.drawPath=function(t,e,i){var s,n,r=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,s=1;s<n;s+=1)r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[s][0]+","+e.i[s][1]+" "+e.v[s][0]+","+e.v[s][1];if(e.c&&n>1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",a)),i.lastPath=r}},Ne.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var ze,Be=function(){var t={};return t.createFilter=function(t,e){var i=V("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},t.createAlphaToLuminanceFilter=function(){var t=V("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},t}(),Ve=(ze={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(ze.maskType=!1),/firefox/i.test(navigator.userAgent)&&(ze.svgLumaHidden=!1),ze),qe={},je="filter_result_";function He(t){var e,i,s="SourceGraphic",n=t.data.ef?t.data.ef.length:0,a=F(),o=Be.createFilter(a,!0),h=0;for(this.filters=[],e=0;e<n;e+=1){i=null;var l=t.data.ef[e].ty;qe[l]&&(i=new(0,qe[l].effect)(o,t.effectsManager.effectElements[e],t,je+h,s),s=je+h,qe[l].countsAsEffect&&(h+=1)),i&&this.filters.push(i)}h&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+r()+"#"+a+")")),this.filters.length&&t.addRenderableComponent(this)}function We(){}function Ye(){}function Ue(){}function Xe(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Ke(t,e){this.elem=t,this.pos=e}function Ge(){}He.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},He.prototype.getEffects=function(t){var e,i=this.filters.length,s=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s},We.prototype={initRendererElement:function(){this.layerElement=V("g")},createContainerElements:function(){this.matteElement=V("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=V("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=V("clipPath"),s=V("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=F();if(i.setAttribute("id",n),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var a=V("g");a.setAttribute("clip-path","url("+r()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+r()+"#"+n+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Ne(this.data,this,this.globalData),this.renderableEffectsManager=new He(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,s,n,a=this.layerId+"_"+t;if(1===t||3===t){var o=V("mask");o.setAttribute("id",a),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(s=V("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(s),this.globalData.defs.appendChild(o),Ve.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=F(),i=Be.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(Be.createAlphaToLuminanceFilter()),(n=V("g")).appendChild(s),o.appendChild(n),n.setAttribute("filter","url("+r()+"#"+e+")"))}else if(2===t){var h=V("mask");h.setAttribute("id",a),h.setAttribute("mask-type","alpha");var l=V("g");h.appendChild(l),e=F(),i=Be.createFilter(e);var p=V("feComponentTransfer");p.setAttribute("in","SourceGraphic"),i.appendChild(p);var d=V("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),p.appendChild(d),this.globalData.defs.appendChild(i);var c=V("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),l.setAttribute("filter","url("+r()+"#"+e+")"),l.appendChild(c),(s=V("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(s),Ve.maskType||(h.setAttribute("mask-type","luminance"),i.appendChild(Be.createAlphaToLuminanceFilter()),n=V("g"),l.appendChild(c),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(h)}this.matteMasks[t]=a}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+r()+"#"+t+")")}},Ye.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},o([ye,function(t){function e(){}return e.prototype=t,e}({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],Ue),o([De,Oe,We,Ye,Fe,Ue],Xe),Xe.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=V("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},Xe.prototype.sourceRectAtTime=function(){return this.sourceRect},Ge.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[s-=1].elem===t)return void(i[s].pos=e);i.push(new Ke(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var Je={1:"butt",2:"round",3:"square"},Ze={1:"miter",2:"round",3:"bevel"};function Qe(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var s=0,n=t.length;s<n;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function ti(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=V("path"),this.msElem=null}function ei(t,e,i,s){var n;this.elem=t,this.frameId=-1,this.dataProps=p(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=l("float32",e.length?e.length-1:0),this.dashoffset=l("float32",1),this.initDynamicPropertyContainer(s);var r,a=e.length||0;for(n=0;n<a;n+=1)r=gt.getProp(t,e[n].v,0,0,this),this.k=r.k||this.k,this.dataProps[n]={n:e[n].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}function ii(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=gt.getProp(t,e.o,0,.01,this),this.w=gt.getProp(t,e.w,0,null,this),this.d=new ei(t,e.d||{},"svg",this),this.c=gt.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function si(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=gt.getProp(t,e.o,0,.01,this),this.c=gt.getProp(t,e.c,1,255,this),this.style=i}function ni(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function ri(t,e,i){this.data=e,this.c=l("uint8c",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=l("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=gt.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function ai(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function oi(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=gt.getProp(t,e.w,0,null,this),this.d=new ei(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function hi(){this.it=[],this.prevViewData=[],this.gr=V("g")}function li(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}Qe.prototype.setAsAnimated=function(){this._isAnimated=!0},ti.prototype.reset=function(){this.d="",this._mdf=!1},ei.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},o([vt],ei),o([vt],ii),o([vt],si),o([vt],ni),ri.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},ri.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},ri.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,s,n=4*this.data.p;for(e=0;e<n;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},o([vt],ri),ai.prototype.initGradientData=function(t,e,i){this.o=gt.getProp(t,e.o,0,.01,this),this.s=gt.getProp(t,e.s,1,null,this),this.e=gt.getProp(t,e.e,1,null,this),this.h=gt.getProp(t,e.h||{k:0},0,.01,this),this.a=gt.getProp(t,e.a||{k:0},0,k,this),this.g=new ri(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},ai.prototype.setGradientData=function(t,e){var i=F(),s=V(1===e.t?"linearGradient":"radialGradient");s.setAttribute("id",i),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var n,a,o,h=[];for(o=4*e.g.p,a=0;a<o;a+=4)n=V("stop"),s.appendChild(n),h.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+r()+"#"+i+")"),this.gf=s,this.cst=h},ai.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,n,a=V("mask"),o=V("path");a.appendChild(o);var h=F(),l=F();a.setAttribute("id",l);var p=V(1===t.t?"linearGradient":"radialGradient");p.setAttribute("id",h),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var d=this.stops;for(s=4*t.g.p;s<n;s+=2)(i=V("stop")).setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(i),d.push(i);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+r()+"#"+h+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",Je[t.lc||2]),o.setAttribute("stroke-linejoin",Ze[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=p,this.ms=a,this.ost=d,this.maskId=l,e.msElem=o}},o([vt],ai),o([ai,vt],oi);var pi=function(t,e,i,s){if(0===e)return"";var n,r=t.o,a=t.i,o=t.v,h=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(n=1;n<e;n+=1)h+=" C"+s.applyToPointStringified(r[n-1][0],r[n-1][1])+" "+s.applyToPointStringified(a[n][0],a[n][1])+" "+s.applyToPointStringified(o[n][0],o[n][1]);return i&&e&&(h+=" C"+s.applyToPointStringified(r[n-1][0],r[n-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1]),h+="z"),h},di=function(){var t=new Ct,e=new Ct;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function s(){}function n(i,s,n){var r,a,o,h,l,p,d,c,u,f,m=s.styles.length,g=s.lvl;for(p=0;p<m;p+=1){if(h=s.sh._mdf||n,s.styles[p].lvl<g){for(c=e.reset(),u=g-s.styles[p].lvl,f=s.transformers.length-1;!h&&u>0;)h=s.transformers[f].mProps._mdf||h,u-=1,f-=1;if(h)for(u=g-s.styles[p].lvl,f=s.transformers.length-1;u>0;)c.multiply(s.transformers[f].mProps.v),u-=1,f-=1}else c=t;if(a=(d=s.sh.paths)._length,h){for(o="",r=0;r<a;r+=1)(l=d.shapes[r])&&l._length&&(o+=pi(l,l._length,l.c,c));s.caches[p]=o}else o=s.caches[p];s.styles[p].d+=!0===i.hd?"":o,s.styles[p]._mdf=h||s.styles[p]._mdf}}function r(t,e,i){var s=e.style;(e.c._mdf||i)&&s.pElem.setAttribute("fill","rgb("+y(e.c.v[0])+","+y(e.c.v[1])+","+y(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){o(t,e,i),h(0,e,i)}function o(t,e,i){var s,n,r,a,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,d=e.e.v;if(e.o._mdf||i){var c="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(c,e.o.v)}if(e.s._mdf||i){var u=1===t.t?"x1":"cx",f="x1"===u?"y1":"cy";h.setAttribute(u,p[0]),h.setAttribute(f,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(u,p[0]),e.of.setAttribute(f,p[1]))}if(e.g._cmdf||i){s=e.cst;var m=e.g.c;for(r=s.length,n=0;n<r;n+=1)(a=s[n]).setAttribute("offset",m[4*n]+"%"),a.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(l&&(e.g._omdf||i)){var g=e.g.o;for(r=(s=e.g._collapsable?e.cst:e.ost).length,n=0;n<r;n+=1)a=s[n],e.g._collapsable||a.setAttribute("offset",g[2*n]+"%"),a.setAttribute("stop-opacity",g[2*n+1])}if(1===t.t)(e.e._mdf||i)&&(h.setAttribute("x2",d[0]),h.setAttribute("y2",d[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",d[0]),e.of.setAttribute("y2",d[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)),h.setAttribute("r",o),l&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)));var v=Math.atan2(d[1]-p[1],d[0]-p[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=o*y,w=Math.cos(v+e.a.v)*b+p[0],_=Math.sin(v+e.a.v)*b+p[1];h.setAttribute("fx",w),h.setAttribute("fy",_),l&&!e.g._collapsable&&(e.of.setAttribute("fx",w),e.of.setAttribute("fy",_))}}function h(t,e,i){var s=e.style,n=e.d;n&&(n._mdf||i)&&n.dashStr&&(s.pElem.setAttribute("stroke-dasharray",n.dashStr),s.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+y(e.c.v[0])+","+y(e.c.v[1])+","+y(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute("stroke-width",e.w.v),s.msElem&&s.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return r;case"gf":return o;case"gs":return a;case"st":return h;case"sh":case"el":case"rc":case"sr":return n;case"tr":return i;case"no":return s;default:return null}}}}();function ci(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function ui(t,e,i,s,n,r){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=n,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function fi(t,e){this._frameId=n,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}o([De,Oe,We,Ge,Ye,Fe,Ue],ci),ci.prototype.initSecondaryElement=function(){},ci.prototype.identityMatrix=new Ct,ci.prototype.buildExpressionInterface=function(){},ci.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ci.prototype.filterUniqueShapes=function(){var t,e,i,s,n=this.shapes.length,r=this.stylesList.length,a=[],o=!1;for(i=0;i<r;i+=1){for(s=this.stylesList[i],o=!1,a.length=0,t=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(s)&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},ci.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},ci.prototype.createStyleElement=function(t,e){var i,s=new ti(t,e),n=s.pElem;return"st"===t.ty?i=new ii(this,t,s):"fl"===t.ty?i=new si(this,t,s):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?ai:oi)(this,t,s),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),n.setAttribute("mask","url("+r()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new ni(this,t,s)),"st"!==t.ty&&"gs"!==t.ty||(n.setAttribute("stroke-linecap",Je[t.lc||2]),n.setAttribute("stroke-linejoin",Ze[t.lj||2]),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=we(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,i),i},ci.prototype.createGroupElement=function(t){var e=new hi;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=we(t.bm)),e},ci.prototype.createTransformElement=function(t,e){var i=Nt.getTransformProperty(this,t,this),s=new li(i,i.o,e);return this.addToAnimatedContents(t,s),s},ci.prototype.createShapeElement=function(t,e,i){var s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7);var n=new Qe(e,i,At.getShapeProp(this,t,s,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},ci.prototype.addToAnimatedContents=function(t,e){for(var i=0,s=this.animatedContents.length;i<s;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:di.createRenderFunction(t),element:e,data:t})},ci.prototype.setElementStyles=function(t){var e,i=t.styles,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},ci.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},ci.prototype.searchShapes=function(t,e,i,s,n,r,a){var o,h,l,p,d,c,u=[].concat(r),f=t.length-1,m=[],g=[];for(o=f;o>=0;o-=1){if((c=this.searchProcessedElement(t[o]))?e[o]=i[c-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)c?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],n),t[o]._render&&e[o].style.pElem.parentNode!==s&&s.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"===t[o].ty){if(c)for(l=e[o].it.length,h=0;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,n+1,u,a),t[o]._render&&e[o].gr.parentNode!==s&&s.appendChild(e[o].gr)}else"tr"===t[o].ty?(c||(e[o]=this.createTransformElement(t[o],s)),p=e[o].transform,u.push(p)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(c||(e[o]=this.createShapeElement(t[o],u,n)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(c?(d=e[o]).closed=!1:((d=Lt.getModifier(t[o].ty)).init(this,t[o]),e[o]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===t[o].ty&&(c?(d=e[o]).closed=!0:(d=Lt.getModifier(t[o].ty),e[o]=d,d.init(this,t,o,e),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(t[o],o+1)}for(f=m.length,o=0;o<f;o+=1)m[o].closed=!0;for(f=g.length,o=0;o<f;o+=1)g[o].closed=!0},ci.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},ci.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},ci.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},ui.prototype.update=function(t,e,i,s,n,r){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,a=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,a=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,this._mdf.p=!0,a=!0),a},fi.prototype.defaultBoxWidth=[0,0],fi.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},fi.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},fi.prototype.searchProperty=function(){return this.searchKeyframes()},fi.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},fi.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},fi.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var s;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(s=0;s<n;s+=1)r=i!==this.keysIndex?this.effectsSequence[s](r,r.t):this.effectsSequence[s](this.currentData,r.t);e!==r&&this.setCurrentData(r),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},fi.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,s=t.length;i<=s-1&&!(i===s-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},fi.prototype.buildFinalText=function(t){for(var e,i,s=[],n=0,r=t.length,a=!1,o=!1,h="";n<r;)a=o,o=!1,e=t.charCodeAt(n),h=t.charAt(n),ge.isCombinedCharacter(e)?a=!0:e>=55296&&e<=56319?ge.isRegionalFlag(t,n)?h=t.substr(n,14):(i=t.charCodeAt(n+1))>=56320&&i<=57343&&(ge.isModifier(e,i)?(h=t.substr(n,2),a=!0):h=ge.isFlagEmoji(t.substr(n,4))?t.substr(n,4):t.substr(n,2)):e>56319?(i=t.charCodeAt(n+1),ge.isVariationSelector(e)&&(a=!0)):ge.isZeroWidthJoiner(e)&&(a=!0,o=!0),a?(s[s.length-1]+=h,a=!1):s.push(h),n+=h.length;return s},fi.prototype.completeTextData=function(t){t.__complete=!0;var e,i,s,n,r,a,o,h=this.elem.globalData.fontManager,l=this.data,p=[],d=0,c=l.m.g,u=0,f=0,m=0,g=[],v=0,y=0,b=h.getFontByName(t.f),w=0,_=me(b);t.fWeight=_.weight,t.fStyle=_.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var k,x=t.tr/1e3*t.finalSize;if(t.sz)for(var A,C,S=!0,E=t.sz[0],P=t.sz[1];S;){A=0,v=0,i=(C=this.buildFinalText(t.t)).length,x=t.tr/1e3*t.finalSize;var T=-1;for(e=0;e<i;e+=1)k=C[e].charCodeAt(0),s=!1," "===C[e]?T=e:13!==k&&3!==k||(v=0,s=!0,A+=t.finalLineHeight||1.2*t.finalSize),h.chars?(o=h.getCharData(C[e],b.fStyle,b.fFamily),w=s?0:o.w*t.finalSize/100):w=h.measureText(C[e],t.f,t.finalSize),v+w>E&&" "!==C[e]?(-1===T?i+=1:e=T,A+=t.finalLineHeight||1.2*t.finalSize,C.splice(e,T===e?1:0,"\r"),T=-1,v=0):(v+=w,v+=x);A+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<A?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=C,i=t.finalText.length,S=!1)}v=-x,w=0;var M,D=0;for(e=0;e<i;e+=1)if(s=!1,13===(k=(M=t.finalText[e]).charCodeAt(0))||3===k?(D=0,g.push(v),y=v>y?v:y,v=-2*x,n="",s=!0,m+=1):n=M,h.chars?(o=h.getCharData(M,b.fStyle,h.getFontByName(t.f).fFamily),w=s?0:o.w*t.finalSize/100):w=h.measureText(n,t.f,t.finalSize)," "===M?D+=w+x:(v+=w+x+D,D=0),p.push({l:w,an:w,add:u,n:s,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==c){if(u+=w,""===n||" "===n||e===i-1){for(""!==n&&" "!==n||(u-=w);f<=e;)p[f].an=u,p[f].ind=d,p[f].extra=w,f+=1;d+=1,u=0}}else if(3==c){if(u+=w,""===n||e===i-1){for(""===n&&(u-=w);f<=e;)p[f].an=u,p[f].ind=d,p[f].extra=w,f+=1;u=0,d+=1}}else p[d].ind=d,p[d].extra=0,d+=1;if(t.l=p,y=v>y?v:y,g.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var F,I,L,R,$=l.a;a=$.length;var O=[];for(r=0;r<a;r+=1){for((F=$[r]).a.sc&&(t.strokeColorAnim=!0),F.a.sw&&(t.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(t.fillColorAnim=!0),R=0,L=F.s.b,e=0;e<i;e+=1)(I=p[e]).anIndexes[r]=R,(1==L&&""!==I.val||2==L&&""!==I.val&&" "!==I.val||3==L&&(I.n||" "==I.val||e==i-1)||4==L&&(I.n||e==i-1))&&(1===F.s.rn&&O.push(R),R+=1);l.a[r].s.totalChars=R;var N,z=-1;if(1===F.s.rn)for(e=0;e<i;e+=1)z!=(I=p[e]).anIndexes[r]&&(z=I.anIndexes[r],N=O.splice(Math.floor(Math.random()*O.length),1)[0]),I.anIndexes[r]=N}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},fi.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},fi.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},fi.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},fi.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var mi=function(){var t=Math.max,e=Math.min,i=Math.floor;function s(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=gt.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?gt.getProp(t,e.e,0,0,this):{v:100},this.o=gt.getProp(t,e.o||{k:0},0,0,this),this.xe=gt.getProp(t,e.xe||{k:0},0,0,this),this.ne=gt.getProp(t,e.ne||{k:0},0,0,this),this.sm=gt.getProp(t,e.sm||{k:100},0,0,this),this.a=gt.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,r=0,a=1,o=1;this.ne.v>0?n=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var h=Z.getBezierEasing(n,r,a,o).get,l=0,p=this.finalS,d=this.finalE,c=this.data.sh;if(2===c)l=h(l=d===p?s>=d?1:0:t(0,e(.5/(d-p)+(s-p)/(d-p),1)));else if(3===c)l=h(l=d===p?s>=d?0:1:1-t(0,e(.5/(d-p)+(s-p)/(d-p),1)));else if(4===c)d===p?l=0:(l=t(0,e(.5/(d-p)+(s-p)/(d-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===c){if(d===p)l=0;else{var u=d-p,f=-u/2+(s=e(t(0,s+.5-p),d-p)),m=u/2;l=Math.sqrt(1-f*f/(m*m))}l=h(l)}else 6===c?(d===p?l=0:(s=e(t(0,s+.5-p),d-p),l=(1+Math.cos(Math.PI+2*Math.PI*s/(d-p)))/2),l=h(l)):(s>=i(p)&&(l=t(0,e(s-p<0?e(d,1)-(p-s):d-s,1))),l=h(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;l<v?l=0:(l=(l-v)/g)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,s=this.s.v/e+i,n=this.e.v/e+i;if(s>n){var r=s;s=n,n=r}this.finalS=s,this.finalE=n}},o([vt],s),{getTextSelectorProp:function(t,e,i){return new s(t,e,i)}}}();function gi(t,e,i){var s={propType:!1},n=gt.getProp,r=e.a;this.a={r:r.r?n(t,r.r,0,k,i):s,rx:r.rx?n(t,r.rx,0,k,i):s,ry:r.ry?n(t,r.ry,0,k,i):s,sk:r.sk?n(t,r.sk,0,k,i):s,sa:r.sa?n(t,r.sa,0,k,i):s,s:r.s?n(t,r.s,1,.01,i):s,a:r.a?n(t,r.a,1,0,i):s,o:r.o?n(t,r.o,0,.01,i):s,p:r.p?n(t,r.p,1,0,i):s,sw:r.sw?n(t,r.sw,0,0,i):s,sc:r.sc?n(t,r.sc,1,0,i):s,fc:r.fc?n(t,r.fc,1,0,i):s,fh:r.fh?n(t,r.fh,0,0,i):s,fs:r.fs?n(t,r.fs,0,.01,i):s,fb:r.fb?n(t,r.fb,0,.01,i):s,t:r.t?n(t,r.t,0,0,i):s},this.s=mi.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function vi(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=p(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function yi(){}vi.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,s=gt.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new gi(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this),p:s(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m.a,1,0,this)},vi.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,s,n,r,a,o,h,l,p,d,c,u,f,m,g,v,y,b,w,_=this._moreOptions.alignment.v,k=this._animatorsData,x=this._textData,A=this.mHelper,C=this._renderType,S=this.renderedLetters.length,E=t.l;if(this._hasMaskedPath){if(w=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=w.v;for(this._pathData.r.v&&(T=T.reverse()),a={tLength:0,segments:[]},r=T._length-1,v=0,n=0;n<r;n+=1)P=st.buildBezierData(T.v[n],T.v[n+1],[T.o[n][0]-T.v[n][0],T.o[n][1]-T.v[n][1]],[T.i[n+1][0]-T.v[n+1][0],T.i[n+1][1]-T.v[n+1][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength;n=r,w.v.c&&(P=st.buildBezierData(T.v[n],T.v[0],[T.o[n][0]-T.v[n][0],T.o[n][1]-T.v[n][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),a.tLength+=P.segmentLength,a.segments.push(P),v+=P.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,c=0,d=1,l=0,p=!0,m=a.segments,o<0&&w.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),d=(f=m[c=m.length-1].points).length-1;o<0;)o+=f[d].partialLength,(d-=1)<0&&(d=(f=m[c-=1].points).length-1);u=(f=m[c].points)[d-1],g=(h=f[d]).partialLength}r=E.length,i=0,s=0;var M,D,F,I,L,N=1.2*t.finalSize*.714,z=!0;F=k.length;var B,V,q,j,H,W,Y,U,X,K,G,J,Z=-1,Q=o,tt=c,et=d,it=-1,nt="",rt=this.defaultPropsArray;if(2===t.j||1===t.j){var at=0,ot=0,ht=2===t.j?-.5:-1,lt=0,pt=!0;for(n=0;n<r;n+=1)if(E[n].n){for(at&&(at+=ot);lt<n;)E[lt].animatorJustifyOffset=at,lt+=1;at=0,pt=!0}else{for(D=0;D<F;D+=1)(M=k[D].a).t.propType&&(pt&&2===t.j&&(ot+=M.t.v*ht),(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?at+=M.t.v*L[0]*ht:at+=M.t.v*L*ht);pt=!1}for(at&&(at+=ot);lt<n;)E[lt].animatorJustifyOffset=at,lt+=1}for(n=0;n<r;n+=1){if(A.reset(),j=1,E[n].n)i=0,s+=t.yOffset,s+=z?1:0,o=Q,z=!1,this._hasMaskedPath&&(d=et,u=(f=m[c=tt].points)[d-1],g=(h=f[d]).partialLength,l=0),nt="",G="",X="",J="",rt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==E[n].line){switch(t.j){case 1:o+=v-t.lineWidths[E[n].line];break;case 2:o+=(v-t.lineWidths[E[n].line])/2}it=E[n].line}Z!==E[n].ind&&(E[Z]&&(o+=E[Z].extra),o+=E[n].an/2,Z=E[n].ind),o+=_[0]*E[n].an*.005;var dt=0;for(D=0;D<F;D+=1)(M=k[D].a).p.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?dt+=M.p.v[0]*L[0]:dt+=M.p.v[0]*L),M.a.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?dt+=M.a.v[0]*L[0]:dt+=M.a.v[0]*L);for(p=!0,this._pathData.a.v&&(o=.5*E[0].an+(v-this._pathData.f.v-.5*E[0].an-.5*E[E.length-1].an)*Z/(r-1),o+=this._pathData.f.v);p;)l+g>=o+dt||!f?(y=(o+dt-l)/h.partialLength,V=u.point[0]+(h.point[0]-u.point[0])*y,q=u.point[1]+(h.point[1]-u.point[1])*y,A.translate(-_[0]*E[n].an*.005,-_[1]*N*.01),p=!1):f&&(l+=h.partialLength,(d+=1)>=f.length&&(d=0,m[c+=1]?f=m[c].points:w.v.c?(d=0,f=m[c=0].points):(l-=h.partialLength,f=null)),f&&(u=h,g=(h=f[d]).partialLength));B=E[n].an/2-E[n].add,A.translate(-B,0,0)}else B=E[n].an/2-E[n].add,A.translate(-B,0,0),A.translate(-_[0]*E[n].an*.005,-_[1]*N*.01,0);for(D=0;D<F;D+=1)(M=k[D].a).t.propType&&(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?L.length?o+=M.t.v*L[0]:o+=M.t.v*L:L.length?i+=M.t.v*L[0]:i+=M.t.v*L));for(t.strokeWidthAnim&&(W=t.sw||0),t.strokeColorAnim&&(H=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(Y=[t.fc[0],t.fc[1],t.fc[2]]),D=0;D<F;D+=1)(M=k[D].a).a.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?A.translate(-M.a.v[0]*L[0],-M.a.v[1]*L[1],M.a.v[2]*L[2]):A.translate(-M.a.v[0]*L,-M.a.v[1]*L,M.a.v[2]*L));for(D=0;D<F;D+=1)(M=k[D].a).s.propType&&((L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars)).length?A.scale(1+(M.s.v[0]-1)*L[0],1+(M.s.v[1]-1)*L[1],1):A.scale(1+(M.s.v[0]-1)*L,1+(M.s.v[1]-1)*L,1));for(D=0;D<F;D+=1){if(M=k[D].a,L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),M.sk.propType&&(L.length?A.skewFromAxis(-M.sk.v*L[0],M.sa.v*L[1]):A.skewFromAxis(-M.sk.v*L,M.sa.v*L)),M.r.propType&&(L.length?A.rotateZ(-M.r.v*L[2]):A.rotateZ(-M.r.v*L)),M.ry.propType&&(L.length?A.rotateY(M.ry.v*L[1]):A.rotateY(M.ry.v*L)),M.rx.propType&&(L.length?A.rotateX(M.rx.v*L[0]):A.rotateX(M.rx.v*L)),M.o.propType&&(L.length?j+=(M.o.v*L[0]-j)*L[0]:j+=(M.o.v*L-j)*L),t.strokeWidthAnim&&M.sw.propType&&(L.length?W+=M.sw.v*L[0]:W+=M.sw.v*L),t.strokeColorAnim&&M.sc.propType)for(U=0;U<3;U+=1)L.length?H[U]+=(M.sc.v[U]-H[U])*L[0]:H[U]+=(M.sc.v[U]-H[U])*L;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for(U=0;U<3;U+=1)L.length?Y[U]+=(M.fc.v[U]-Y[U])*L[0]:Y[U]+=(M.fc.v[U]-Y[U])*L;M.fh.propType&&(Y=L.length?O(Y,M.fh.v*L[0]):O(Y,M.fh.v*L)),M.fs.propType&&(Y=L.length?R(Y,M.fs.v*L[0]):R(Y,M.fs.v*L)),M.fb.propType&&(Y=L.length?$(Y,M.fb.v*L[0]):$(Y,M.fb.v*L))}}for(D=0;D<F;D+=1)(M=k[D].a).p.propType&&(L=k[D].s.getMult(E[n].anIndexes[D],x.a[D].s.totalChars),this._hasMaskedPath?L.length?A.translate(0,M.p.v[1]*L[0],-M.p.v[2]*L[1]):A.translate(0,M.p.v[1]*L,-M.p.v[2]*L):L.length?A.translate(M.p.v[0]*L[0],M.p.v[1]*L[1],-M.p.v[2]*L[2]):A.translate(M.p.v[0]*L,M.p.v[1]*L,-M.p.v[2]*L));if(t.strokeWidthAnim&&(X=W<0?0:W),t.strokeColorAnim&&(K="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),t.fillColorAnim&&t.fc&&(G="rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"),this._hasMaskedPath){if(A.translate(0,-t.ls),A.translate(0,_[1]*N*.01+s,0),this._pathData.p.v){b=(h.point[1]-u.point[1])/(h.point[0]-u.point[0]);var ct=180*Math.atan(b)/Math.PI;h.point[0]<u.point[0]&&(ct+=180),A.rotate(-ct*Math.PI/180)}A.translate(V,q,0),o-=_[0]*E[n].an*.005,E[n+1]&&Z!==E[n+1].ind&&(o+=E[n].an/2,o+=.001*t.tr*t.finalSize)}else{switch(A.translate(i,s,0),t.ps&&A.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:A.translate(E[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[n].line]),0,0);break;case 2:A.translate(E[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[n].line])/2,0,0)}A.translate(0,-t.ls),A.translate(B,0,0),A.translate(_[0]*E[n].an*.005,_[1]*N*.01,0),i+=E[n].l+.001*t.tr*t.finalSize}"html"===C?nt=A.toCSS():"svg"===C?nt=A.to2dCSS():rt=[A.props[0],A.props[1],A.props[2],A.props[3],A.props[4],A.props[5],A.props[6],A.props[7],A.props[8],A.props[9],A.props[10],A.props[11],A.props[12],A.props[13],A.props[14],A.props[15]],J=j}S<=n?(I=new ui(J,X,K,G,nt,rt),this.renderedLetters.push(I),S+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[n],this.lettersChangedFlag=I.update(J,X,K,G,nt,rt)||this.lettersChangedFlag)}}},vi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},vi.prototype.mHelper=new Ct,vi.prototype.defaultPropsArray=[],o([vt],vi),yi.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new fi(this,t.t,this.dynamicProperties),this.textAnimator=new vi(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},yi.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},yi.prototype.createPathShape=function(t,e){var i,s,n=e.length,r="";for(i=0;i<n;i+=1)"sh"===e[i].ty&&(s=e[i].ks.k,r+=pi(s,s.i.length,!0,t));return r},yi.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},yi.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},yi.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},yi.prototype.applyTextPropertiesToMatrix=function(t,e,i,s,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(s,n,0)},yi.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},yi.prototype.emptyProp=new ui,yi.prototype.destroy=function(){},yi.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var bi,wi={shapes:[]};function _i(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ki(t,e,i){this.initElement(t,e,i)}function xi(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function Ai(){}function Ci(){}function Si(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?p(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?gt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function Ei(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=V("svg");var i="";if(e&&e.title){var s=V("title"),n=F();s.setAttribute("id",n),s.textContent=e.title,this.svgElement.appendChild(s),i+=n}if(e&&e.description){var r=V("desc"),a=F();r.setAttribute("id",a),r.textContent=e.description,this.svgElement.appendChild(r),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=V("defs");this.svgElement.appendChild(o);var h=V("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return o([De,Oe,We,Ye,Fe,Ue,yi],_i),_i.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=V("text"))},_i.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],n="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(s.push(n),n=""):n+=t[e],e+=1;return s.push(n),s},_i.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var s=i.it[i.it.length-1];s.s&&(s.s.k[0]=e,s.s.k[1]=e)}}return t},_i.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=p(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var s=this.globalData.fontManager.getFontByName(i.f);if(s.fClass)this.layerElement.setAttribute("class",s.fClass);else{this.layerElement.setAttribute("font-family",s.fFamily);var n=i.fWeight,r=i.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",i.t);var a,o=i.l||[],h=!!this.globalData.fontManager.chars;e=o.length;var l=this.mHelper,d=this.data.singleShape,c=0,u=0,f=!0,m=.001*i.tr*i.finalSize;if(!d||h||i.sz){var g,v=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!h||!d||0===t){if(a=v>t?this.textSpans[t].span:V(h?"g":"text"),v<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,h){var y=V("g");a.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(l.reset(),d&&(o[t].n&&(c=-m,u+=i.yOffset,u+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(i,l,o[t].line,c,u),c+=o[t].l||0,c+=m),h){var b;if(1===(g=this.globalData.fontManager.getCharData(i.finalText[t],s.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)b=new Si(g.data,this.globalData,this);else{var w=wi;g.data&&g.data.shapes&&(w=this.buildShapeData(g.data,i.finalSize)),b=new ci(w,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[t].childSpan.appendChild(b.layerElement),1===g.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else d&&a.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&a&&a.setAttribute("d","")}else{var k=this.textContainer,x="start";switch(i.j){case 1:x="end";break;case 2:x="middle";break;default:x="start"}k.setAttribute("text-anchor",x),k.setAttribute("letter-spacing",m);var A=this.buildTextContents(i.finalText);for(e=A.length,u=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||V("tspan")).textContent=A[t],a.setAttribute("x",0),a.setAttribute("y",u),a.style.display="inherit",k.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,u+=i.finalLineHeight;this.layerElement.appendChild(k)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},_i.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},_i.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},_i.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,s,n,r=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(i=r[t],s=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),i._mdf.m&&s.setAttribute("transform",i.m),i._mdf.o&&s.setAttribute("opacity",i.o),i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i._mdf.sc&&s.setAttribute("stroke",i.sc),i._mdf.fc&&s.setAttribute("fill",i.fc))}},o([Xe],ki),ki.prototype.createContent=function(){var t=V("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},xi.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},xi.prototype.renderFrame=function(){},xi.prototype.getBaseElement=function(){return null},xi.prototype.destroy=function(){},xi.prototype.sourceRectAtTime=function(){},xi.prototype.hide=function(){},o([De,Oe,Ye,Fe],xi),o([Re],Ai),Ai.prototype.createNull=function(t){return new xi(t,this.globalData,this)},Ai.prototype.createShape=function(t){return new ci(t,this.globalData,this)},Ai.prototype.createText=function(t){return new _i(t,this.globalData,this)},Ai.prototype.createImage=function(t){return new Xe(t,this.globalData,this)},Ai.prototype.createSolid=function(t){return new ki(t,this.globalData,this)},Ai.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=V("clipPath"),s=V("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var n=F();i.setAttribute("id",n),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+r()+"#"+n+")"),e.appendChild(i),this.layers=t.layers,this.elements=p(t.layers.length)},Ai.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ai.prototype.updateContainerSize=function(){},Ai.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},Ai.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,N()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var s="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===s)return;if(this.elements[s]&&!0!==this.elements[s]){var n=e[s].getMatte(this.layers[t].tt);i.setMatte(n)}else this.buildItem(s),this.addPendingElement(i)}}},Ai.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},Ai.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},Ai.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var s,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(s=this.elements[n].getBaseElement()),n+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},Ai.prototype.hide=function(){this.layerElement.style.display="none"},Ai.prototype.show=function(){this.layerElement.style.display="block"},o([De,Oe,Ye,Fe,Ue],Ci),Ci.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},Ci.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},Ci.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Ci.prototype.setElements=function(t){this.elements=t},Ci.prototype.getElements=function(){return this.elements},Ci.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},Ci.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},o([Ai,Ci,We],Si),Si.prototype.createComp=function(t){return new Si(t,this.globalData,this)},o([Ai],Ei),Ei.prototype.createComp=function(t){return new Si(t,this.globalData,this)},bi=Ei,X["svg"]=bi,Lt.registerModifier("tm",$t),Lt.registerModifier("pb",Ot),Lt.registerModifier("rp",zt),Lt.registerModifier("rd",Bt),Lt.registerModifier("zz",se),Lt.registerModifier("op",fe),Et}())},179:(t,e,i)=>{"use strict";i.r(e)},809:(t,e,i)=>{"use strict";i.r(e)},168:(t,e,i)=>{"use strict";i.r(e)},234:(t,e,i)=>{"use strict";i.r(e)},271:(t,e,i)=>{"use strict";i.r(e)},799:(t,e,i)=>{"use strict";i.r(e)},793:(t,e,i)=>{"use strict";i.r(e)},800:(t,e,i)=>{"use strict";i.r(e)},177:(t,e,i)=>{"use strict";i.r(e)},364:(t,e,i)=>{"use strict";i.r(e)},821:(t,e,i)=>{"use strict";i.r(e)},305:(t,e,i)=>{"use strict";i.r(e)},140:(t,e,i)=>{"use strict";i.r(e)},479:(t,e,i)=>{"use strict";i.r(e)},423:(t,e,i)=>{"use strict";i.r(e)},946:(t,e,i)=>{"use strict";i.r(e)},392:(t,e,i)=>{"use strict";t.exports=i.p+"f94a181ecedc0c6314c5.js"}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var r=e[s]={exports:{}};return t[s].call(r.exports,r,r.exports,i),r.exports}i.m=t,i.amdO={},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var s=e.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=s[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t})(),i.b=document.baseURI||self.location.href,(()=>{"use strict";const t=window.wp.data,e=window.wp.coreData;let s={};function n(t={}){s={animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...t}}function r(t){return t?s[t]:s}function a(t,e,i,s){return(t/=s/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e}function o(t){const e='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return t.flatMap((t=>{const i=t.matches(e),s=Array.from(t.querySelectorAll(e));return[...i?[t]:[],...s]})).filter((t=>"none"!==getComputedStyle(t).pointerEvents&&function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}(t)))}function h(t){if(!t||function(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}(t))return;const e=r("smoothScroll");t.scrollIntoView({behavior:!e||l(t)?"auto":"smooth",inline:"center",block:"center"})}function l(t){if(!t||!t.parentElement)return;const e=t.parentElement;return e.scrollHeight>e.clientHeight}let p={};function d(t,e){p[t]=e}function c(t){return t?p[t]:p}function u(){p={}}let f={};function m(t,e){f[t]=e}function g(t){var e;null==(e=f[t])||e.call(f)}function v(t){if(!t)return;const e=t.getBoundingClientRect(),i={x:e.x,y:e.y,width:e.width,height:e.height};d("__activeStagePosition",i),y(i)}function y(t){const e=c("__overlaySvg");if(!e)return void function(t){const e=function(t){const e=window.innerWidth,i=window.innerHeight,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.classList.add("driver-overlay","driver-overlay-animated"),s.setAttribute("viewBox",`0 0 ${e} ${i}`),s.setAttribute("xmlSpace","preserve"),s.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),s.setAttribute("version","1.1"),s.setAttribute("preserveAspectRatio","xMinYMin slice"),s.style.fillRule="evenodd",s.style.clipRule="evenodd",s.style.strokeLinejoin="round",s.style.strokeMiterlimit="2",s.style.zIndex="10000",s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height="100%";const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",b(t)),n.style.fill=r("overlayColor")||"rgb(0,0,0)",n.style.opacity=`${r("overlayOpacity")}`,n.style.pointerEvents="auto",n.style.cursor="auto",s.appendChild(n),s}(t);document.body.appendChild(e),C(e,(t=>{"path"===t.target.tagName&&g("overlayClick")})),d("__overlaySvg",e)}(t);const i=e.firstElementChild;if("path"!==(null==i?void 0:i.tagName))throw new Error("no path element found in stage svg");i.setAttribute("d",b(t))}function b(t){const e=window.innerWidth,i=window.innerHeight,s=r("stagePadding")||0,n=r("stageRadius")||0,a=t.width+2*s,o=t.height+2*s,h=Math.min(n,a/2,o/2),l=Math.floor(Math.max(h,0)),p=a-2*l,d=o-2*l;return`M${e},0L0,0L0,${i}L${e},${i}L${e},0Z\n M${t.x-s+l},${t.y-s} h${p} a${l},${l} 0 0 1 ${l},${l} v${d} a${l},${l} 0 0 1 -${l},${l} h-${p} a${l},${l} 0 0 1 -${l},-${l} v-${d} a${l},${l} 0 0 1 ${l},-${l} z`}function w(t){const{element:e}=t;let i="string"==typeof e?document.querySelector(e):e;i||(i=function(){const t=document.getElementById("driver-dummy-element");if(t)return t;let e=document.createElement("div");return e.id="driver-dummy-element",e.style.width="0",e.style.height="0",e.style.pointerEvents="none",e.style.opacity="0",e.style.position="fixed",e.style.top="50%",e.style.left="50%",document.body.appendChild(e),e}()),function(t,e){const i=Date.now(),s=c("__activeStep"),n=c("__activeElement")||t,o=!n||n===t,l="driver-dummy-element"===t.id,p="driver-dummy-element"===n.id,u=r("animate"),f=e.onHighlightStarted||r("onHighlightStarted"),m=(null==e?void 0:e.onHighlighted)||r("onHighlighted"),g=(null==s?void 0:s.onDeselected)||r("onDeselected"),b=r(),w=c();!o&&g&&g(p?void 0:n,s,{config:b,state:w}),f&&f(l?void 0:t,e,{config:b,state:w});const _=!o&&u;let k=!1;(function(){const t=c("popover");t&&(t.wrapper.style.display="none")})(),d("previousStep",s),d("previousElement",n),d("activeStep",e),d("activeElement",t);const x=()=>{if(c("__transitionCallback")!==x)return;const o=Date.now()-i,h=400-o<=200;e.popover&&h&&!k&&_&&(S(t,e),k=!0),r("animate")&&o<400?function(t,e,i,s){let n=c("__activeStagePosition");const r=n||i.getBoundingClientRect(),o=s.getBoundingClientRect();n={x:a(t,r.x,o.x-r.x,e),y:a(t,r.y,o.y-r.y,e),width:a(t,r.width,o.width-r.width,e),height:a(t,r.height,o.height-r.height,e)},y(n),d("__activeStagePosition",n)}(o,400,n,t):(v(t),m&&m(l?void 0:t,e,{config:r(),state:c()}),d("__transitionCallback",void 0),d("__previousStep",s),d("__previousElement",n),d("__activeStep",e),d("__activeElement",t)),window.requestAnimationFrame(x)};d("__transitionCallback",x),window.requestAnimationFrame(x),h(t),!_&&e.popover&&S(t,e),n.classList.remove("driver-active-element","driver-no-interaction"),n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-expanded"),n.removeAttribute("aria-controls"),r("disableActiveInteraction")&&t.classList.add("driver-no-interaction"),t.classList.add("driver-active-element"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls","driver-popover-content")}(i,t)}function _(){const t=c("__activeElement"),e=c("__activeStep");t&&(v(t),function(){const t=c("__activeStagePosition"),e=c("__overlaySvg");if(!t)return;if(!e)return void console.warn("No stage svg found.");const i=window.innerWidth,s=window.innerHeight;e.setAttribute("viewBox",`0 0 ${i} ${s}`)}(),M(t,e))}function k(){const t=c("__resizeTimeout");t&&window.cancelAnimationFrame(t),d("__resizeTimeout",window.requestAnimationFrame(_))}function x(t){var e;if(!c("isInitialized")||"Tab"!==t.key&&9!==t.keyCode)return;const i=c("__activeElement"),s=null==(e=c("popover"))?void 0:e.wrapper,n=o([...s?[s]:[],...i?[i]:[]]),r=n[0],a=n[n.length-1];if(t.preventDefault(),t.shiftKey){const t=n[n.indexOf(document.activeElement)-1]||a;null==t||t.focus()}else{const t=n[n.indexOf(document.activeElement)+1]||r;null==t||t.focus()}}function A(t){var e;(null==(e=r("allowKeyboardControl"))||e)&&("Escape"===t.key?g("escapePress"):"ArrowRight"===t.key?g("arrowRightPress"):"ArrowLeft"===t.key&&g("arrowLeftPress"))}function C(t,e,i){const s=(e,s)=>{const n=e.target;t.contains(n)&&((!i||i(n))&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()),null==s||s(e))};document.addEventListener("pointerdown",s,!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerup",s,!0),document.addEventListener("mouseup",s,!0),document.addEventListener("click",(t=>{s(t,e)}),!0)}function S(t,e){var i,s;let n=c("popover");n&&document.body.removeChild(n.wrapper),n=function(){const t=document.createElement("div");t.classList.add("driver-popover");const e=document.createElement("div");e.classList.add("driver-popover-arrow");const i=document.createElement("header");i.id="driver-popover-title",i.classList.add("driver-popover-title"),i.style.display="none",i.innerText="Popover Title";const s=document.createElement("div");s.id="driver-popover-description",s.classList.add("driver-popover-description"),s.style.display="none",s.innerText="Popover description is here";const n=document.createElement("button");n.type="button",n.classList.add("driver-popover-close-btn"),n.setAttribute("aria-label","Close"),n.innerHTML="×";const r=document.createElement("footer");r.classList.add("driver-popover-footer");const a=document.createElement("span");a.classList.add("driver-popover-progress-text"),a.innerText="";const o=document.createElement("span");o.classList.add("driver-popover-navigation-btns");const h=document.createElement("button");h.type="button",h.classList.add("driver-popover-prev-btn"),h.innerHTML="← Previous";const l=document.createElement("button");return l.type="button",l.classList.add("driver-popover-next-btn"),l.innerHTML="Next →",o.appendChild(h),o.appendChild(l),r.appendChild(a),r.appendChild(o),t.appendChild(n),t.appendChild(e),t.appendChild(i),t.appendChild(s),t.appendChild(r),{wrapper:t,arrow:e,title:i,description:s,footer:r,previousButton:h,nextButton:l,closeButton:n,footerButtons:o,progress:a}}(),document.body.appendChild(n.wrapper);const{title:a,description:l,showButtons:p,disableButtons:u,showProgress:f,nextBtnText:m=r("nextBtnText")||"Next →",prevBtnText:v=r("prevBtnText")||"← Previous",progressText:y=r("progressText")||"{current} of {total}"}=e.popover||{};n.nextButton.innerHTML=m,n.previousButton.innerHTML=v,n.progress.innerHTML=y,a?(n.title.innerHTML=a,n.title.style.display="block"):n.title.style.display="none",l?(n.description.innerHTML=l,n.description.style.display="block"):n.description.style.display="none";const b=p||r("showButtons"),w=f||r("showProgress")||!1,_=(null==b?void 0:b.includes("next"))||(null==b?void 0:b.includes("previous"))||w;n.closeButton.style.display=b.includes("close")?"block":"none",_?(n.footer.style.display="flex",n.progress.style.display=w?"block":"none",n.nextButton.style.display=b.includes("next")?"block":"none",n.previousButton.style.display=b.includes("previous")?"block":"none"):n.footer.style.display="none";const k=u||r("disableButtons")||[];null!=k&&k.includes("next")&&(n.nextButton.disabled=!0,n.nextButton.classList.add("driver-popover-btn-disabled")),null!=k&&k.includes("previous")&&(n.previousButton.disabled=!0,n.previousButton.classList.add("driver-popover-btn-disabled")),null!=k&&k.includes("close")&&(n.closeButton.disabled=!0,n.closeButton.classList.add("driver-popover-btn-disabled"));const x=n.wrapper;x.style.display="block",x.style.left="",x.style.top="",x.style.bottom="",x.style.right="",x.id="driver-popover-content",x.setAttribute("role","dialog"),x.setAttribute("aria-labelledby","driver-popover-title"),x.setAttribute("aria-describedby","driver-popover-description"),n.arrow.className="driver-popover-arrow";const A=(null==(i=e.popover)?void 0:i.popoverClass)||r("popoverClass")||"";x.className=`driver-popover ${A}`.trim(),C(n.wrapper,(i=>{var s,n,a;const o=i.target,h=(null==(s=e.popover)?void 0:s.onNextClick)||r("onNextClick"),l=(null==(n=e.popover)?void 0:n.onPrevClick)||r("onPrevClick"),p=(null==(a=e.popover)?void 0:a.onCloseClick)||r("onCloseClick");return o.classList.contains("driver-popover-next-btn")?h?h(t,e,{config:r(),state:c()}):g("nextClick"):o.classList.contains("driver-popover-prev-btn")?l?l(t,e,{config:r(),state:c()}):g("prevClick"):o.classList.contains("driver-popover-close-btn")?p?p(t,e,{config:r(),state:c()}):g("closeClick"):void 0}),(t=>!(null!=n&&n.description.contains(t))&&!(null!=n&&n.title.contains(t))&&"string"==typeof t.className&&t.className.includes("driver-popover"))),d("popover",n);const S=(null==(s=e.popover)?void 0:s.onPopoverRender)||r("onPopoverRender");S&&S(n,{config:r(),state:c()}),M(t,e),h(x);const E=o([x,...t.classList.contains("driver-dummy-element")?[]:[t]]);E.length>0&&E[0].focus()}function E(){const t=c("popover");if(null==t||!t.wrapper)return;const e=t.wrapper.getBoundingClientRect(),i=r("stagePadding")||0,s=r("popoverOffset")||0;return{width:e.width+i+s,height:e.height+i+s,realWidth:e.width,realHeight:e.height}}function P(t,e){const{elementDimensions:i,popoverDimensions:s,popoverPadding:n,popoverArrowDimensions:r}=e;return"start"===t?Math.max(Math.min(i.top-n,window.innerHeight-s.realHeight-r.width),r.width):"end"===t?Math.max(Math.min(i.top-(null==s?void 0:s.realHeight)+i.height+n,window.innerHeight-(null==s?void 0:s.realHeight)-r.width),r.width):"center"===t?Math.max(Math.min(i.top+i.height/2-(null==s?void 0:s.realHeight)/2,window.innerHeight-(null==s?void 0:s.realHeight)-r.width),r.width):0}function T(t,e){const{elementDimensions:i,popoverDimensions:s,popoverPadding:n,popoverArrowDimensions:r}=e;return"start"===t?Math.max(Math.min(i.left-n,window.innerWidth-s.realWidth-r.width),r.width):"end"===t?Math.max(Math.min(i.left-(null==s?void 0:s.realWidth)+i.width+n,window.innerWidth-(null==s?void 0:s.realWidth)-r.width),r.width):"center"===t?Math.max(Math.min(i.left+i.width/2-(null==s?void 0:s.realWidth)/2,window.innerWidth-(null==s?void 0:s.realWidth)-r.width),r.width):0}function M(t,e){const i=c("popover");if(!i)return;const{align:s="start",side:n="left"}=(null==e?void 0:e.popover)||{},a=s,o="driver-dummy-element"===t.id?"over":n,h=r("stagePadding")||0,l=E(),p=i.arrow.getBoundingClientRect(),d=t.getBoundingClientRect(),u=d.top-l.height;let f=u>=0;const m=window.innerHeight-(d.bottom+l.height);let g=m>=0;const v=d.left-l.width;let y=v>=0;const b=window.innerWidth-(d.right+l.width);let w=b>=0;const _=!(f||g||y||w);let k=o;if("top"===o&&f?w=y=g=!1:"bottom"===o&&g?w=y=f=!1:"left"===o&&y?w=f=g=!1:"right"===o&&w&&(y=f=g=!1),"over"===o){const t=window.innerWidth/2-l.realWidth/2,e=window.innerHeight/2-l.realHeight/2;i.wrapper.style.left=`${t}px`,i.wrapper.style.right="auto",i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto"}else if(_){const t=window.innerWidth/2-(null==l?void 0:l.realWidth)/2,e=10;i.wrapper.style.left=`${t}px`,i.wrapper.style.right="auto",i.wrapper.style.bottom=`${e}px`,i.wrapper.style.top="auto"}else if(y){const t=Math.min(v,window.innerWidth-(null==l?void 0:l.realWidth)-p.width),e=P(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.left=`${t}px`,i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.right="auto",k="left"}else if(w){const t=Math.min(b,window.innerWidth-(null==l?void 0:l.realWidth)-p.width),e=P(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.right=`${t}px`,i.wrapper.style.top=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.left="auto",k="right"}else if(f){const t=Math.min(u,window.innerHeight-l.realHeight-p.width);let e=T(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.top=`${t}px`,i.wrapper.style.left=`${e}px`,i.wrapper.style.bottom="auto",i.wrapper.style.right="auto",k="top"}else if(g){const t=Math.min(m,window.innerHeight-(null==l?void 0:l.realHeight)-p.width);let e=T(a,{elementDimensions:d,popoverDimensions:l,popoverPadding:h,popoverArrowDimensions:p});i.wrapper.style.left=`${e}px`,i.wrapper.style.bottom=`${t}px`,i.wrapper.style.top="auto",i.wrapper.style.right="auto",k="bottom"}_?i.arrow.classList.add("driver-popover-arrow-none"):function(t,e,i){const s=c("popover");if(!s)return;const n=i.getBoundingClientRect(),r=E(),a=s.arrow,o=r.width,h=window.innerWidth,l=n.width,p=n.left,d=r.height,u=window.innerHeight,f=n.top,m=n.height;a.className="driver-popover-arrow";let g=e,v=t;"top"===e?(p+l<=0?(g="right",v="end"):p+l-o<=0&&(g="top",v="start"),p>=h?(g="left",v="end"):p+o>=h&&(g="top",v="end")):"bottom"===e?(p+l<=0?(g="right",v="start"):p+l-o<=0&&(g="bottom",v="start"),p>=h?(g="left",v="start"):p+o>=h&&(g="bottom",v="end")):"left"===e?(f+m<=0?(g="bottom",v="end"):f+m-d<=0&&(g="left",v="start"),f>=u?(g="top",v="end"):f+d>=u&&(g="left",v="end")):"right"===e&&(f+m<=0?(g="bottom",v="start"):f+m-d<=0&&(g="right",v="start"),f>=u?(g="top",v="start"):f+d>=u&&(g="right",v="end")),g?(a.classList.add(`driver-popover-arrow-side-${g}`),a.classList.add(`driver-popover-arrow-align-${v}`)):a.classList.add("driver-popover-arrow-none")}(a,k,t)}const D=window.wp.i18n;if(window.vrts_admin_vars.onboarding){const i=1===window.vrts_admin_vars.onboarding.steps.length,s=function(t={}){function e(){r("allowClose")&&p()}function i(){const t=c("activeIndex"),e=r("steps")||[];if(void 0===t)return;const i=t+1;e[i]?l(i):p()}function s(){const t=c("activeIndex"),e=r("steps")||[];if(void 0===t)return;const i=t-1;e[i]?l(i):p()}function a(){var t;if(c("__transitionCallback"))return;const e=c("activeIndex"),i=c("__activeStep"),n=c("__activeElement");if(void 0===e||void 0===i||void 0===c("activeIndex"))return;const a=(null==(t=i.popover)?void 0:t.onPrevClick)||r("onPrevClick");if(a)return a(n,i,{config:r(),state:c()});s()}function o(){var t;if(c("__transitionCallback"))return;const e=c("activeIndex"),s=c("__activeStep"),n=c("__activeElement");if(void 0===e||void 0===s)return;const a=(null==(t=s.popover)?void 0:t.onNextClick)||r("onNextClick");if(a)return a(n,s,{config:r(),state:c()});i()}function h(){c("isInitialized")||(d("isInitialized",!0),document.body.classList.add("driver-active",r("animate")?"driver-fade":"driver-simple"),window.addEventListener("keyup",A,!1),window.addEventListener("keydown",x,!1),window.addEventListener("resize",k),window.addEventListener("scroll",k),m("overlayClick",e),m("escapePress",e),m("arrowLeftPress",a),m("arrowRightPress",o))}function l(t=0){var e,i,s,n,a,o,h,c;const u=r("steps");if(!u)return console.error("No steps to drive through"),void p();if(!u[t])return void p();d("__activeOnDestroyed",document.activeElement),d("activeIndex",t);const f=u[t],m=u[t+1],g=u[t-1],v=(null==(e=f.popover)?void 0:e.doneBtnText)||r("doneBtnText")||"Done",y=r("allowClose"),b=void 0!==(null==(i=f.popover)?void 0:i.showProgress)?null==(s=f.popover)?void 0:s.showProgress:r("showProgress"),_=((null==(n=f.popover)?void 0:n.progressText)||r("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${t+1}`).replace("{{total}}",`${u.length}`),k=(null==(a=f.popover)?void 0:a.showButtons)||r("showButtons"),x=["next","previous",...y?["close"]:[]].filter((t=>!(null!=k&&k.length)||k.includes(t))),A=(null==(o=f.popover)?void 0:o.onNextClick)||r("onNextClick"),C=(null==(h=f.popover)?void 0:h.onPrevClick)||r("onPrevClick"),S=(null==(c=f.popover)?void 0:c.onCloseClick)||r("onCloseClick");w({...f,popover:{showButtons:x,nextBtnText:m?void 0:v,disableButtons:[...g?[]:["previous"]],showProgress:b,progressText:_,onNextClick:A||(()=>{m?l(t+1):p()}),onPrevClick:C||(()=>{l(t-1)}),onCloseClick:S||(()=>{p()}),...(null==f?void 0:f.popover)||{}}})}function p(t=!0){const e=c("__activeElement"),i=c("__activeStep"),s=c("__activeOnDestroyed"),n=r("onDestroyStarted");if(t&&n)return void n(e&&"driver-dummy-element"!==(null==e?void 0:e.id)?e:void 0,i,{config:r(),state:c()});const a=(null==i?void 0:i.onDeselected)||r("onDeselected"),o=r("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),window.removeEventListener("keyup",A),window.removeEventListener("resize",k),window.removeEventListener("scroll",k),function(){var t;const e=c("popover");e&&(null==(t=e.wrapper.parentElement)||t.removeChild(e.wrapper))}(),function(){var t;null==(t=document.getElementById("driver-dummy-element"))||t.remove(),document.querySelectorAll(".driver-active-element").forEach((t=>{t.classList.remove("driver-active-element","driver-no-interaction"),t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls")}))}(),function(){const t=c("__overlaySvg");t&&t.remove()}(),f={},u(),e&&i){const t="driver-dummy-element"===e.id;a&&a(t?void 0:e,i,{config:r(),state:c()}),o&&o(t?void 0:e,i,{config:r(),state:c()})}s&&s.focus()}return n(t),{isActive:()=>c("isInitialized")||!1,refresh:k,drive:(t=0)=>{h(),l(t)},setConfig:n,setSteps:t=>{u(),n({...r(),steps:t})},getConfig:r,getState:c,getActiveIndex:()=>c("activeIndex"),isFirstStep:()=>0===c("activeIndex"),isLastStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&e===t.length-1},getActiveStep:()=>c("activeStep"),getActiveElement:()=>c("activeElement"),getPreviousElement:()=>c("previousElement"),getPreviousStep:()=>c("previousStep"),moveNext:i,movePrevious:s,moveTo:function(t){(r("steps")||[])[t]?l(t):p()},hasNextStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&t[e+1]},hasPreviousStep:()=>{const t=r("steps")||[],e=c("activeIndex");return void 0!==e&&t[e-1]},highlight:t=>{h(),w({...t,popover:t.popover?{showButtons:[],showProgress:!1,progressText:"",...t.popover}:void 0})},destroy:()=>{p(!1)}}}({overlayColor:"rgba(44, 51, 56, 0.35)",stageRadius:0,stagePadding:0,popoverOffset:20,allowClose:!1,showProgress:!i,popoverClass:i?"vrts-onboarding-nonblocking":"vrts-onboarding",disableActiveInteraction:!1,progressText:(0,D.__)("{{current}} of {{total}}","visual-regression-tests"),prevBtnText:(0,D.__)("Previous","visual-regression-tests"),nextBtnText:(0,D.__)("Next","visual-regression-tests"),doneBtnText:(0,D.__)("Got it!","visual-regression-tests"),onPopoverRender:(t,{config:e,state:s})=>{const n=e.steps[s.activeIndex+1];e.stagePadding=window.vrts_admin_vars.onboarding.steps[s.activeIndex].padding||0,t.previousButton.classList.add("button","button-secondary","button-large"),t.nextButton.classList.add("button","button-primary","button-large"),n||t.nextButton.classList.add("driver-popover-success-btn"),i&&t.previousButton.setAttribute("hidden",!0)},onNextClick:(t,e,{config:i,state:n})=>{i.steps[n.activeIndex+1]?s.moveNext():s.destroy()},onCloseClick:()=>{s.destroy()},onDestroyed:()=>{window.removeEventListener("keyup",a)},steps:window.vrts_admin_vars.onboarding.steps.map((t=>({element:t.element,popover:{title:t.title,description:t.description,side:t.side||"left",align:t.align||"start"}})))}),a=t=>{"Escape"===t.key&&s.destroy()};window.addEventListener("keyup",a),s.drive(),async function(){const{currentUserId:i,onboarding:{id:s}}=window.vrts_admin_vars,n=(await(0,t.resolveSelect)(e.store).getEntityRecord("root","user",i)).vrts_onboarding||{},r=n.completed||[];(0,t.dispatch)(e.store).saveEntityRecord("root","user",{id:i,vrts_onboarding:{...n,completed:[...r,s].filter(((t,e,i)=>i.indexOf(t)===e))}})}()}var F;F=i(962),i(300),i(328),F.keys().forEach(F)})()})(); -
visual-regression-tests/trunk/includes/features/class-enqueue-scripts.php
r3178219 r3202952 101 101 102 102 // Localize scripts. 103 $test = (object) Test::get_item_by_post_id( $post->ID ); 103 $test_id = Test::get_item_id( $post->ID ); 104 $test = (object) Test::get_item( $test_id ); 104 105 105 106 wp_localize_script( … … 109 110 'plugin_name' => vrts()->get_plugin_info( 'name' ), 110 111 'rest_url' => esc_url_raw( rest_url() ), 111 'has_post_alert' => Test::has_post_alert( $post->ID ),112 'has_post_alert' => isset( $test->current_alert_id ) ? ! is_null( $test->current_alert_id ) : false, 112 113 'base_screenshot_url' => Image_Helpers::get_screenshot_url( $test, 'base' ), 113 114 'base_screenshot_date' => Date_Time_Helpers::get_formatted_date_time( $test->base_screenshot_date ?? null ), -
visual-regression-tests/trunk/includes/features/class-metaboxes.php
r3178219 r3202952 110 110 public function render_metabox() { 111 111 global $post; 112 112 113 $post_id = $post->ID ? $post->ID : 0; 113 $run_tests_checked = ! empty( Test::get_item_id( $post_id ) ); 114 115 $alert_id = Test::get_alert_id( $post_id ); 114 $test_id = Test::get_item_id( $post_id ); 115 $test = (object) Test::get_item( $test_id ); 116 117 $run_tests_checked = ! is_null( $test_id ); 118 $alert_id = $test->current_alert_id ?? null; 116 119 $testing_status_instructions = ''; 120 117 121 if ( $alert_id ) { 118 122 $alert_link = Url_Helpers::get_alert_page( $alert_id ); … … 125 129 } 126 130 127 $test_id = Test::get_item_id( $post_id );128 $test = (object) Test::get_item( $test_id );129 130 131 vrts()->component('metabox-classic-editor', [ 131 132 'post_id' => $post_id, … … 134 135 'run_tests_checked' => $run_tests_checked, 135 136 'field_test_status_key' => self::$field_test_status_key, 136 'has_post_alert' => Test::has_post_alert( $post_id ),137 'has_post_alert' => isset( $test->current_alert_id ) ? ! is_null( $test->current_alert_id ) : false, 137 138 'base_screenshot_url' => Image_Helpers::get_screenshot_url( $test, 'base' ), 138 'base_screenshot_date' => Date_Time_Helpers::get_formatted_date_time( $test->base_screenshot_date ),139 'base_screenshot_date' => Date_Time_Helpers::get_formatted_date_time( $test->base_screenshot_date ?? null ), 139 140 'testing_status_instructions' => $testing_status_instructions, 140 141 'is_new_test' => self::is_new_test( $post_id ), -
visual-regression-tests/trunk/includes/features/class-service.php
r3178219 r3202952 49 49 */ 50 50 private static function create_site() { 51 if ( ! empty( get_option( 'vrts_project_id' ) ) || ! empty( get_option( 'vrts_project_token' )) ) {51 if ( static::is_connected() ) { 52 52 return; 53 53 } … … 64 64 ]; 65 65 66 if ( ! empty( get_option( 'vrts_project_id' ) ) && ! empty( get_option( 'vrts_project_token' ) ) ) { 67 $parameters['project_id'] = get_option( 'vrts_project_id' ); 68 $parameters['project_token'] = get_option( 'vrts_project_token' ); 69 $parameters['project_secret'] = get_option( 'vrts_project_secret' ); 70 $parameters['tests'] = Test::get_all_service_test_ids(); 71 } 72 66 73 $service_request = self::rest_service_request( $service_api_route, $parameters, 'post' ); 67 74 68 if ( 201 === $service_request['status_code'] ) { 75 delete_option( 'vrts_disconnected' ); 76 if ( 201 === $service_request['status_code'] || 200 === $service_request['status_code'] ) { 69 77 $data = $service_request['response']; 70 78 … … 78 86 79 87 return true; 88 } else { 89 update_option( 'vrts_disconnected', 1 ); 80 90 } 81 91 return false; … … 206 216 207 217 /** 218 * Send request to server to resume tests. 219 */ 220 public static function resume_tests() { 221 $service_project_id = get_option( 'vrts_project_id' ); 222 $service_api_route = 'sites/' . $service_project_id; 223 self::rest_service_request( $service_api_route . '/resume', [], 'post' ); 224 } 225 226 /** 208 227 * Add homepage as a default test. 209 228 */ … … 298 317 299 318 /** 319 * Get test runs from the service. 320 * 321 * @param string[] $test_run_ids the test run ids. 322 */ 323 public static function fetch_test_runs( $test_run_ids ) { 324 $service_project_id = get_option( 'vrts_project_id' ); 325 $service_api_route = 'sites/' . $service_project_id . '/runs'; 326 $service_api_route = add_query_arg( 'ids', implode( ',', $test_run_ids ), $service_api_route ); 327 return self::rest_service_request( $service_api_route, [], 'get' ); 328 } 329 330 /** 300 331 * Delete project from the service. 301 332 */ … … 303 334 $service_project_id = get_option( 'vrts_project_id' ); 304 335 $service_api_route = 'sites/' . $service_project_id; 305 self::rest_service_request( $service_api_route, [], 'delete' ); 336 $response = self::rest_service_request( $service_api_route, [], 'delete' ); 337 if ( 200 === $response['status_code'] ) { 338 update_option( 'vrts_disconnected', 1 ); 339 } 306 340 } 307 341 … … 325 359 */ 326 360 public static function is_connected() { 327 return (bool) get_option( 'vrts_project_id' ) && (bool) get_option( 'vrts_project_token' );361 return ! (bool) get_option( 'vrts_disconnected' ) && (bool) get_option( 'vrts_project_id' ) && (bool) get_option( 'vrts_project_token' ); 328 362 } 329 363 -
visual-regression-tests/trunk/includes/features/class-settings-page.php
r3178219 r3202952 6 6 use Vrts\Core\Utilities\Url_Helpers; 7 7 use Vrts\Features\Subscription; 8 use Vrts\Services\Test_Service; 8 9 9 10 class Settings_Page { … … 298 299 $parameters = [ 299 300 'screenshot_options' => [ 300 'clickSelectors' => $new,301 'clickSelectors' => $new, 301 302 ], 302 303 ]; 303 304 304 305 $response = Service::rest_service_request( $service_api_route, $parameters, 'put' ); 306 307 $service = new Test_Service(); 308 $service->resume_tests(); 305 309 } 306 310 } -
visual-regression-tests/trunk/includes/features/class-test-runs-page.php
r3178219 r3202952 94 94 95 95 if ( $run ) { 96 $service = new Test_Run_Service();97 $service->update_latest_alert_for_all_tests( $run );98 99 96 $tests = $this->prepare_tests( maybe_unserialize( $run->tests ) ); 100 97 $alerts = $this->prepare_alerts( $run_id, $tests ); -
visual-regression-tests/trunk/includes/features/class-tests-page.php
r3178219 r3202952 38 38 remove_submenu_page( 'vrts', 'vrts' ); 39 39 40 add_action( 'load-' . $submenu_page, [ $this, 'screen_option' ] );41 40 add_action( 'load-' . $submenu_page, [ $this, 'add_assets' ] ); 42 41 add_action( 'load-' . $submenu_page, [ $this, 'submit_add_new_test' ] ); … … 45 44 add_action( 'load-' . $submenu_page, [ $this, 'process_column_actions' ] ); 46 45 add_action( 'load-' . $submenu_page, [ $this, 'init_notifications' ] ); 47 }48 49 /**50 * Add screen options.51 */52 public function screen_option() {53 // Set Screen Option.54 $option = 'per_page';55 $args = [56 'default' => 20,57 'option' => 'vrts_tests_per_page',58 ];59 60 // screen_option are user meta.61 add_screen_option( $option, $args );62 46 } 63 47 -
visual-regression-tests/trunk/includes/features/class-tests.php
r3178219 r3202952 143 143 $language = $translation['language']; 144 144 if ( 'plugin' === $type ) { 145 $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' .$slug );145 $plugin_data = static::get_plugin_data( $slug ); 146 146 $name = $plugin_data['Name']; 147 147 } elseif ( 'theme' === $type ) { … … 157 157 'language' => $language, 158 158 ]; 159 } 160 161 /** 162 * Get plugin data. 163 * 164 * @param string $plugin_slug_or_file Plugin slug or file. 165 * 166 * @return array 167 */ 168 private static function get_plugin_data( $plugin_slug_or_file ) { 169 $plugin_file = WP_PLUGIN_DIR . '/' . $plugin_slug_or_file; 170 $plugin_data = get_plugin_data( $plugin_file ); 171 if ( empty( $plugin_data['Name'] ) ) { 172 $plugins = get_plugins(); 173 foreach ( $plugins as $file => $local_plugin_data ) { 174 $slug = dirname( $file ); 175 if ( $slug === $plugin_slug_or_file ) { 176 $plugin_data = $local_plugin_data; 177 break; 178 } 179 } 180 } 181 return $plugin_data; 159 182 } 160 183 -
visual-regression-tests/trunk/includes/list-tables/class-test-runs-list-table.php
r3184288 r3202952 37 37 public function __construct() { 38 38 parent::__construct([ 39 'singular' => __( 'Run', 'visual-regression-tests' ),40 'plural' => __( 'Runs', 'visual-regression-tests' ),39 'singular' => 'vrts-run', 40 'plural' => 'vrts-runs', 41 41 'ajax' => false, 42 42 ]); -
visual-regression-tests/trunk/includes/list-tables/class-test-runs-queue-list-table.php
r3178219 r3202952 22 22 public function __construct() { 23 23 parent::__construct([ 24 'singular' => ' test',25 'plural' => ' tests',24 'singular' => 'vrts-run-queue', 25 'plural' => 'vrts-run-queues', 26 26 'ajax' => false, 27 27 ]); … … 109 109 $sortable = $this->get_sortable_columns(); 110 110 $this->_column_headers = [ $columns, $hidden, $sortable ]; 111 112 // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing -- It's the list search query parameter. 113 $filter_status_query = isset( $_REQUEST['status'] ) && '' !== $_REQUEST['status'] ? sanitize_text_field( wp_unslash( $_REQUEST['status'] ) ) : null; 114 115 $args = [ 116 'number' => -1, 117 'filter_status' => $filter_status_query, 118 ]; 119 120 $this->items = Test_Run::get_queued_items( $args ); 121 $total_items = count( $this->items ); 122 123 $this->set_pagination_args([ 124 'total_items' => $total_items, 125 'per_page' => 100000, 126 ]); 111 $this->items = Test_Run::get_queued_items(); 127 112 } 128 113 -
visual-regression-tests/trunk/includes/models/class-alert.php
r3178219 r3202952 209 209 210 210 /** 211 * Get latest alert id by post id212 *213 * @param int $post_id the id of the post.214 * @param int $alert_state the state of the item.215 *216 * @return int217 */218 public static function get_latest_alert_id_by_post_id( $post_id = 0, $alert_state = 0 ) {219 global $wpdb;220 221 $alerts_table = Alerts_Table::get_table_name();222 223 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok.224 return (int) $wpdb->get_var(225 $wpdb->prepare(226 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok.227 "SELECT id FROM $alerts_table228 WHERE alert_state = %d229 AND post_id = %d230 ORDER BY id DESC231 LIMIT 1",232 $alert_state,233 $post_id234 )235 );236 }237 238 /**239 211 * Get latest alert ids by post ids 240 212 * -
visual-regression-tests/trunk/includes/models/class-test-run.php
r3184288 r3202952 258 258 259 259 /** 260 * Delete duplicate test runs by service_test_run_id from database. 261 * 262 * @return void 263 */ 264 public static function delete_duplicates() { 265 global $wpdb; 266 267 $test_runs_table = Test_Runs_Table::get_table_name(); 268 269 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 270 $wpdb->query( 271 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 272 "DELETE t1 FROM $test_runs_table t1 INNER JOIN $test_runs_table t2 WHERE t1.id > t2.id AND t1.service_test_run_id = t2.service_test_run_id" 273 ); 274 } 275 276 /** 277 * Delete empty test runs from database. 278 * 279 * @return void 280 */ 281 public static function delete_empty() { 282 global $wpdb; 283 284 $test_runs_table = Test_Runs_Table::get_table_name(); 285 286 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 287 $wpdb->query( 288 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 289 "DELETE FROM $test_runs_table WHERE service_test_run_id IS NULL" 290 ); 291 } 292 293 /** 260 294 * Insert multiple test data 261 295 * … … 408 442 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 409 443 return $wpdb->delete( $test_runs_table, [ 'id' => $test_id ] ); 444 } 445 446 /** 447 * Delete all not finished test runs from database. 448 * 449 * @return int 450 */ 451 public static function delete_all_not_finished() { 452 global $wpdb; 453 454 $test_runs_table = Test_Runs_Table::get_table_name(); 455 456 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 457 return $wpdb->query( "DELETE FROM $test_runs_table WHERE finished_at IS NULL" ); 410 458 } 411 459 … … 561 609 return $test_run; 562 610 } 611 612 /** 613 * Get test run by service test run id 614 * 615 * @return mixed 616 */ 617 public static function get_stalled_test_run_ids() { 618 global $wpdb; 619 620 $test_runs_table = Test_Runs_Table::get_table_name(); 621 622 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 623 $test_runs = $wpdb->get_results( 624 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 625 "SELECT service_test_run_id FROM $test_runs_table 626 WHERE ( finished_at IS NULL AND started_at IS NULL AND scheduled_at < DATE_SUB( now(), INTERVAL 1 HOUR ) ) 627 OR ( finished_at IS NULL AND started_at IS NOT NULL AND started_at < DATE_SUB( NOW(), INTERVAL 1 HOUR ) ) 628 OR ( finished_at IS NULL AND started_at IS NULL AND scheduled_at IS NULL ) 629 " 630 ); 631 return $test_runs; 632 } 563 633 } -
visual-regression-tests/trunk/includes/models/class-test.php
r3178219 r3202952 100 100 tests.status, 101 101 tests.post_id, 102 tests.current_alert_id,102 alerts.latest_id as current_alert_id, 103 103 tests.service_test_id, 104 104 tests.base_screenshot_url, … … 110 110 posts.post_title, 111 111 CASE 112 WHEN tests.current_alert_id is not null THEN '6-has-alert'112 WHEN alerts.latest_id is not null THEN '6-has-alert' 113 113 WHEN tests.service_test_id is null THEN '1-post-not-published' 114 114 WHEN tests.base_screenshot_date is null THEN '2-waiting' … … 118 118 END as calculated_status, 119 119 CASE 120 WHEN tests.current_alert_id is not null THEN alerts.target_screenshot_finish_date120 WHEN alerts.latest_id is not null THEN alerts.target_screenshot_finish_date 121 121 WHEN tests.service_test_id is null THEN tests.base_screenshot_date 122 122 WHEN tests.base_screenshot_date is null THEN tests.base_screenshot_date … … 127 127 FROM $tests_table as tests 128 128 INNER JOIN $wpdb->posts as posts ON posts.id = tests.post_id 129 LEFT JOIN $alerts_table as alerts ON alerts.id = tests.current_alert_id 129 LEFT JOIN ( 130 SELECT MAX(id) as latest_id, post_id, target_screenshot_finish_date 131 FROM $alerts_table 132 WHERE alert_state = 0 133 GROUP BY post_id 134 ) as alerts ON tests.post_id = alerts.post_id 130 135 GROUP BY tests.id 131 136 ) tests … … 201 206 202 207 $tests_table = Tests_Table::get_table_name(); 208 $alerts_table = Alerts_Table::get_table_name(); 203 209 204 210 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 205 211 return $wpdb->get_row( 206 212 $wpdb->prepare( 207 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 208 "SELECT * FROM $tests_table WHERE id = %d", 213 // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 214 "SELECT 215 test.id, 216 test.status, 217 test.post_id, 218 alert.latest_id as current_alert_id, 219 test.service_test_id, 220 test.base_screenshot_url, 221 test.base_screenshot_date, 222 test.last_comparison_date, 223 test.next_run_date, 224 test.is_running, 225 test.hide_css_selectors 226 FROM $tests_table as test 227 LEFT JOIN ( 228 SELECT MAX(id) as latest_id, post_id 229 FROM $alerts_table 230 WHERE alert_state = 0 231 GROUP BY post_id 232 ) alert ON test.post_id = alert.post_id 233 WHERE id = %d", 209 234 $id 235 // phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared 210 236 ) 211 237 ); … … 344 370 345 371 /** 346 * Get the id of the alert347 *348 * @param int $post_id the id of the post.349 *350 * @return int351 */352 public static function get_alert_id( $post_id = 0 ) {353 global $wpdb;354 355 $tests_table = Tests_Table::get_table_name();356 357 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok.358 return $wpdb->get_var(359 $wpdb->prepare(360 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok.361 "SELECT current_alert_id FROM $tests_table WHERE post_id = %d",362 $post_id363 )364 );365 }366 367 /**368 372 * Get post id by test id 369 373 * … … 431 435 432 436 return $service_test_id; 433 }434 435 /**436 * Does an alert exits?437 *438 * @param int $post_id the id of the post.439 *440 * @return boolean441 */442 public static function has_post_alert( $post_id = 0 ) {443 global $wpdb;444 445 $tests_table = Tests_Table::get_table_name();446 447 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok.448 $current_alert_id = $wpdb->get_var(449 $wpdb->prepare(450 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok.451 "SELECT current_alert_id FROM $tests_table WHERE post_id = %d",452 $post_id453 )454 );455 456 return null === $current_alert_id ? false : true;457 437 } 458 438 … … 590 570 591 571 /** 592 * Set alert for a test.593 *594 * @param int $post_id The id of the post.595 * @param int $alert_id The id of the alert.596 */597 public static function set_alert( $post_id = 0, $alert_id = 0 ) {598 global $wpdb;599 600 $alert_id = 0 === $alert_id ? null : $alert_id;601 $tests_table = Tests_Table::get_table_name();602 $data = [ 'current_alert_id' => $alert_id ];603 $where = [ 'post_id' => $post_id ];604 605 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok.606 return $wpdb->update( $tests_table, $data, $where );607 }608 609 /**610 572 * Get post status 611 573 * … … 804 766 ], 805 767 [ 'id' => $test_id ] 768 ); 769 } 770 771 /** 772 * Unset screenshots for tests. 773 */ 774 public static function reset_base_screenshots() { 775 global $wpdb; 776 777 $table_test = Tests_Table::get_table_name(); 778 779 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 780 return $wpdb->query( 781 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. 782 "UPDATE $table_test SET base_screenshot_url = null, base_screenshot_date = null, last_comparison_date = null, next_run_date = null, is_running = null" 806 783 ); 807 784 } -
visual-regression-tests/trunk/includes/rest-api/class-rest-alerts-controller.php
r3178219 r3202952 3 3 namespace Vrts\Rest_Api; 4 4 5 use Vrts\Services\Test_Service;6 5 use WP_Error; 7 6 use WP_REST_Server; … … 107 106 Alert::set_alert_state( $id, $should_mark_as_read ); 108 107 109 $test_service = new Test_Service();110 $test_service->update_latest_alert( $alert->post_id );111 112 108 return new WP_REST_Response( true, 200 ); 113 109 } -
visual-regression-tests/trunk/includes/rest-api/class-rest-test-runs-controller.php
r3178219 r3202952 3 3 namespace Vrts\Rest_Api; 4 4 5 use Vrts\Services\Test_Run_Service;6 5 use WP_Error; 7 6 use WP_REST_Server; … … 73 72 Alert::set_read_status_by_test_run( $id, $should_mark_as_read ); 74 73 75 $service = new Test_Run_Service();76 $service->update_latest_alert_for_all_tests( $test_run );77 78 74 return new WP_REST_Response( true, 200 ); 79 75 } -
visual-regression-tests/trunk/includes/services/class-test-run-service.php
r3184288 r3202952 3 3 namespace Vrts\Services; 4 4 5 use Vrts\Core\Utilities\Url_Helpers;6 5 use Vrts\Features\Service; 7 6 use Vrts\Features\Subscription; 8 use Vrts\Models\Alert;9 7 use Vrts\Models\Test; 10 8 use Vrts\Models\Test_Run; … … 17 15 * 18 16 * @param array $data Data. 17 * @param bool $with_cleanup With cleanup. 19 18 * 20 19 * @return boolean 21 20 */ 22 public function update_run_from_api_data( $data ) {21 public function update_run_from_api_data( $data, $with_cleanup = true ) { 23 22 $run_id = $data['run_id']; 23 24 if ( empty( $run_id ) ) { 25 return false; 26 } 27 24 28 $test_run = Test_Run::get_by_service_test_run_id( $run_id ); 25 29 … … 48 52 'trigger_notes' => $data['trigger_notes'], 49 53 'trigger_meta' => maybe_serialize( $data['trigger_meta'] ), 50 ], true );54 ], true, $with_cleanup ); 51 55 52 56 if ( $test_run_just_finished && ! empty( $alert_ids ) ) { … … 94 98 * @param array $data Data. 95 99 * @param bool $update Update. 100 * @param bool $with_cleanup With cleanup. 96 101 * 97 102 * @return boolean 98 103 */ 99 public function create_test_run( $service_test_run_id, $data, $update = false ) {104 public function create_test_run( $service_test_run_id, $data, $update = false, $with_cleanup = true ) { 100 105 $test_run = Test_Run::get_by_service_test_run_id( $service_test_run_id ); 101 106 … … 103 108 return false; 104 109 } 105 returnTest_Run::save(array_merge( $data, [110 $test_run_id = Test_Run::save(array_merge( $data, [ 106 111 'service_test_run_id' => $service_test_run_id, 107 112 ]), $test_run->id ?? null); 113 if ( $with_cleanup ) { 114 Test_Run::delete_duplicates(); 115 Test_Run::delete_empty(); 116 $this->check_stalled_test_runs(); 117 } 118 return $test_run_id; 119 } 120 121 /** 122 * Check stalled test runs. 123 * 124 * @return void 125 */ 126 public function check_stalled_test_runs() { 127 $test_run_ids = array_column( Test_Run::get_stalled_test_run_ids(), 'service_test_run_id' ); 128 if ( empty( $test_run_ids ) ) { 129 return; 130 } 131 $response = Service::fetch_test_runs( $test_run_ids ); 132 if ( 200 === $response['status_code'] ) { 133 $test_runs = $response['response']['data'] ?? []; 134 foreach ( $test_runs as $test_run ) { 135 $this->update_run_from_api_data( $test_run, false ); 136 } 137 $missing_test_run_ids = array_diff( $test_run_ids, array_column( $test_runs, 'run_id' ) ); 138 foreach ( $missing_test_run_ids as $missing_test_run_id ) { 139 Test_Run::delete_by_service_test_run_id( $missing_test_run_id ); 140 } 141 } 108 142 } 109 143 … … 120 154 $updates = $response['run_updates']; 121 155 foreach ( $updates as $update ) { 122 $this->update_run_from_api_data( $update );156 $this->update_run_from_api_data( $update, false ); 123 157 } 124 158 } … … 133 167 } 134 168 } 135 136 /**137 * Update latest alert for all tests.138 *139 * @param object $test_run Test run.140 *141 * @return void142 */143 public function update_latest_alert_for_all_tests( $test_run ) {144 $tests = maybe_unserialize( $test_run->tests );145 146 if ( ! empty( $tests ) ) {147 $service = new Test_Service();148 $service->update_latest_alerts( $tests );149 }150 }151 169 } -
visual-regression-tests/trunk/includes/services/class-test-service.php
r3178219 r3202952 36 36 'is_running' => false, 37 37 ]; 38 if ( $alert_id ) {39 $update_data['current_alert_id'] = $alert_id;40 }41 38 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 42 39 return $wpdb->update( … … 386 383 $args['service_test_id'] = null; 387 384 unset( $args['id'] ); 385 unset( $args['current_alert_id'] ); 388 386 Test::save( $args, $test->id ); 389 387 return $test; … … 465 463 466 464 /** 467 * Update latest alert. 468 * 469 * @param int $post_id Post id. 470 * 471 * @return int|false 472 */ 473 public function update_latest_alert( $post_id ) { 474 $latest_alert_id = Alert::get_latest_alert_id_by_post_id( $post_id ); 475 return Test::set_alert( $post_id, $latest_alert_id ); 476 } 477 478 /** 479 * Update latest alerts. 480 * 481 * @param array $test_ids Test ids. 482 * 483 * @return int|false|void 484 */ 485 public function update_latest_alerts( $test_ids ) { 486 $test_ids = array_map( 'intval', $test_ids ); 487 $test_ids = array_filter( $test_ids ); 488 if ( ! empty( $test_ids ) ) { 489 global $wpdb; 490 $table_test = Tests_Table::get_table_name(); 491 $table_alert = Alerts_Table::get_table_name(); 492 493 $placeholders = implode( ',', array_fill( 0, count( $test_ids ), '%d' ) ); 494 495 $query = "UPDATE $table_test t 496 LEFT JOIN ( 497 SELECT a.post_id, MAX(a.id) as latest_id 498 FROM $table_alert a 499 WHERE a.alert_state = 0 500 GROUP BY a.post_id 501 ) a ON t.post_id = a.post_id 502 SET t.current_alert_id = a.latest_id 503 WHERE t.id IN ( $placeholders )"; 504 505 // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. 506 return $wpdb->query( $wpdb->prepare( $query, $test_ids ) ); 507 }//end if 465 * Resume tests. 466 */ 467 public function resume_tests() { 468 Test::reset_base_screenshots(); 469 Service::resume_tests(); 508 470 } 509 471 } -
visual-regression-tests/trunk/includes/tables/class-tests-table.php
r3012504 r3202952 5 5 class Tests_Table { 6 6 7 const DB_VERSION = '1. 4';7 const DB_VERSION = '1.5'; 8 8 const TABLE_NAME = 'vrts_tests'; 9 9 … … 41 41 } 42 42 43 if ( $installed_version && version_compare( $installed_version, '1.5', '<' ) ) { 44 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's OK. 45 $wpdb->query( 46 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's OK. 47 "ALTER TABLE {$table_name} DROP COLUMN current_alert_id;" 48 ); 49 } 50 43 51 $sql = "CREATE TABLE {$table_name} ( 44 52 id bigint(20) unsigned NOT NULL AUTO_INCREMENT, 45 53 status boolean NOT NULL, 46 54 post_id bigint(20), 47 current_alert_id bigint(20),48 55 service_test_id varchar(40), 49 56 base_screenshot_url varchar(2048), -
visual-regression-tests/trunk/readme.txt
r3184288 r3202952 3 3 Tags: vrts, visual regression, visual, regression, tests 4 4 Requires at least: 5.0 5 Tested up to: 6. 6.26 Stable tag: 2.0. 15 Tested up to: 6.7 6 Stable tag: 2.0.2 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 182 182 == Changelog == 183 183 184 = 2.0.2 = 185 * Fixed empty and stalled Runs 186 * Fixed runs queue pagination 187 * Fixed wrong test status and the associated current alert 188 * Fixed wrong translations info for update trigger 189 184 190 = 2.0.1 = 185 191 * Fixed issue with wrong alerts count in Runs -
visual-regression-tests/trunk/visual-regression-tests.php
r3184288 r3202952 4 4 * Plugin URI: https://vrts.app/ 5 5 * Description: Find issues before others do – every time. With automatic screenshots, daily comparisons, and instant tests after WordPress and plugin updates. 6 * Version: 2.0. 16 * Version: 2.0.2 7 7 * Requires at least: 5.0 8 8 * Requires PHP: 7.0
Note: See TracChangeset
for help on using the changeset viewer.