targetj 1.0.259 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Export.js +16 -1
- package/README.md +18 -25
- package/build/AnimationManager.js +1 -1
- package/build/AnimationUtil.js +1 -8
- package/build/App.js +13 -4
- package/build/BaseModel.js +39 -14
- package/build/Bracket.js +7 -1
- package/build/Child.js +504 -0
- package/build/EventListener.js +10 -1
- package/build/LocationManager.js +161 -40
- package/build/PageManager.js +35 -134
- package/build/ParticleChild.js +575 -0
- package/build/ParticleRenderer.js +818 -0
- package/build/ParticleRuntime.js +1513 -0
- package/build/ParticleTModel.js +1423 -0
- package/build/ParticleUtil.js +265 -0
- package/build/RunScheduler.js +10 -3
- package/build/ScheduleUtil.js +2 -2
- package/build/StateManager.js +235 -31
- package/build/StateUtil.js +14 -15
- package/build/TModel.js +62 -28
- package/build/TModelFactory.js +48 -0
- package/build/TModelManager.js +146 -98
- package/build/TModelUtil.js +11 -8
- package/build/TUtil.js +57 -47
- package/build/TargetData.js +7 -1
- package/build/TargetExecutor.js +63 -9
- package/build/TargetManager.js +39 -23
- package/build/TargetParser.js +38 -2
- package/build/TargetUtil.js +26 -5
- package/build/Viewport.js +2 -2
- package/build/VisibilityUtil.js +4 -2
- package/build/index.js +6 -1
- package/dist/targetjs.js +1 -1
- package/dist/targetjs.js.gz +0 -0
- package/package.json +1 -1
package/dist/targetjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";var __webpack_modules__={768:function(e,t,r){r.d(t,{J:function(){return s}});var n=r(34),i=r(855);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var s=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"==typeof t)this.selector=t,this.element=e.query(t);else if(t&&(this.element=t,1===t.nodeType)){var r=this.element.getAttribute("id");this.selector="string"==typeof r?r.startsWith("#")?r:"#"+r:null}this.hasRealChildren=!1,this.slotModeEnabled=!1,this.contentSlot=null,this.originalContent=void 0,this.textOnly=!0,this.transformProp=null,this.initTransformProp(),this.restoreSlotState()}return t=e,r=[{key:"create",value:function(e){this.element=document.createElement(e),this.initTransformProp()}},{key:"initTransformProp",value:function(){if(this.element&&this.element.style){var e=this.element.style;this.transformProp="transform"in e?"transform":"webkitTransform"in e?"webkitTransform":null}else this.transformProp=null}},{key:"cloneTemplate",value:function(){var t;return new e(null===(t=this.element.content)||void 0===t?void 0:t.cloneNode(!0).children[0])}},{key:"clone",value:function(){return this.element.cloneNode(!0)}},{key:"exists",value:function(){var e;return!(null===(e=this.element)||void 0===e||!e.isConnected)}},{key:"getElement",value:function(){return this.element}},{key:"supportsWAAPI",value:function(){return!(!this.element||"function"!=typeof this.element.animate)}},{key:"restoreSlotState",value:function(){var e;if(1===(null===(e=this.element)||void 0===e?void 0:e.nodeType)&&!this.isNoSlotHost()){var t=this.element.querySelector(':scope > [data-tj-slot="content"]');t&&(this.contentSlot=t,this.slotModeEnabled=!0,this.hasRealChildren=Array.from(this.element.childNodes).some((function(e){return e!==t&&"true"===e.getAttribute("tgjs")})))}}},{key:"findContentSlot",value:function(){if(this.contentSlot&&this.contentSlot.parentNode===this.element)return this.contentSlot;if(!this.element.firstElementChild)return null;var e=this.element.querySelector(':scope > [data-tj-slot="content"]');return e&&(this.contentSlot=e),e}},{key:"isNoSlotHost",value:function(){var e;return 1!==(null===(e=this.element)||void 0===e?void 0:e.nodeType)||"body"===this.getTagName()||"true"===this.element.getAttribute("data-tj-no-slot")}},{key:"ensureContentSlotFirst",value:function(){var e=this.findContentSlot();return e?this.element.firstChild!==e&&this.element.insertBefore(e,this.element.firstChild):((e=document.createElement("div")).setAttribute("data-tj-slot","content"),this.element.insertBefore(e,this.element.firstChild),this.contentSlot=e),e}},{key:"isManagedChildNode",value:function(e){return 1===(null==e?void 0:e.nodeType)&&"true"===e.getAttribute("tgjs")}},{key:"enableSlotMode",value:function(){var e=this;if(!this.slotModeEnabled)if(this.isNoSlotHost())this.slotModeEnabled=!0;else{var t=this.findContentSlot();if(!t){var r=Array.from(this.element.childNodes);(t=document.createElement("div")).setAttribute("data-tj-slot","content"),this.element.insertBefore(t,this.element.firstChild);for(var n=0,i=r;n<i.length;n++){var a=i[n];this.isManagedChildNode(a)||t.appendChild(a)}}this.contentSlot=t,this.slotModeEnabled=!0,this.hasRealChildren=Array.from(this.element.children).some((function(r){return r!==t&&e.isManagedChildNode(r)}))}}},{key:"ensureSlotMode",value:function(){if(this.isNoSlotHost())this.slotModeEnabled=!0;else{this.enableSlotMode();var e=this.findContentSlot();e&&this.element.firstChild!==e&&this.element.insertBefore(e,this.element.firstChild)}}},{key:"getComputedStyle",value:function(e){if(this.element){var t=window.getComputedStyle(this.element);return e?t.getPropertyValue(e)||t[e]:t}}},{key:"contains",value:function(e){return e instanceof Node&&this.element.contains(e)}},{key:"getTagName",value:function(){var e;return null===(e=this.element)||void 0===e||null===(e=e.tagName)||void 0===e?void 0:e.toLowerCase()}},{key:"setSelector",value:function(e){this.selector=e}},{key:"ensureId",value:function(e){this.selector="#"===e[0]?e:"#"+e,this.attr("id",this.selector.slice(1))}},{key:"getId",value:function(){return this.attr("id")}},{key:"focus",value:function(){this.element.focus()}},{key:"blur",value:function(){this.element.blur()}},{key:"attr",value:function(e,t){if(this.element)return n.d.isDefined(t)?void this.element.setAttribute(e,t):this.element.getAttribute(e)}},{key:"value",value:function(e){if(this.element){var t=this.element.value;return n.d.isDefined(e)&&(this.element.value=e),t}}},{key:"select",value:function(){this.element&&"function"==typeof this.element.select&&this.element.select()}},{key:"width",value:function(e){if(!n.d.isDefined(e))return this.element.offsetWidth;this.element.style.width=n.d.isNumber(e)?"".concat(e,"px"):e}},{key:"height",value:function(e){if(!n.d.isDefined(e))return this.element.offsetHeight;this.element.style.height=n.d.isNumber(e)?"".concat(e,"px"):e}},{key:"css",value:function(e){if(!n.d.isDefined(e))return this.element.className;this.element.className=e}},{key:"setStyleByMap",value:function(e){var t=this;Object.keys(e).forEach((function(r){t.style(r,e[r])}))}},{key:"style",value:function(e,t){if(2!==arguments.length)return 1===arguments.length?this.element.style[e]:this.element.style;this.element.style[e]=t}},{key:"getStyleValue",value:function(e){var t=this.style(e),r=n.d.isDefined(t)?t.replace(/[^-\d.]/g,""):0;return parseFloat(r)}},{key:"getBoundingClientRect",value:function(){return this.element.getBoundingClientRect()}},{key:"isXYWithinElement",value:function(e,t){var r=this.getBoundingClientRect();return e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}},{key:"parent",value:function(){return this.element?this.element.parentElement:null}},{key:"detach",value:function(){e.detach(this.element)}},{key:"child",value:function(e){return this.element.children[e]}},{key:"elementCount",value:function(){return this.element.children.length}},{key:"swapElements",value:function(e,t){var r=t.nextSibling;r===e?this.element.insertBefore(e,t):(this.element.insertBefore(t,e),this.element.insertBefore(e,r))}},{key:"insertAfterContentSlot",value:function(e){if(this.element)if(this.isNoSlotHost())this.element.appendChild(e);else{var t=this.ensureContentSlotFirst(),r=t?t.nextSibling:this.element.firstChild;r?this.element.insertBefore(e,r):this.element.appendChild(e)}}},{key:"insertFirst$Dom",value:function(e){this.ensureSlotMode(),this.insertAfterContentSlot(e.element),this.hasRealChildren=!0}},{key:"relocate",value:function(e,t){this.ensureSlotMode();var r=t+(this.findContentSlot()?1:0);this.element.insertBefore(e.$dom.element,this.element.children[r]||null)}},{key:"appendTModel$Dom",value:function(e){this.ensureSlotMode(),this.element.appendChild(e.$dom.element),this.hasRealChildren=!0}},{key:"append$Dom",value:function(e){this.ensureSlotMode(),this.element.appendChild(e.element),this.hasRealChildren=!0}},{key:"appendElement",value:function(e){this.ensureSlotMode(),this.element.appendChild(e),this.hasRealChildren=!0}},{key:"removeElement",value:function(e){if(e){var t=e.parentNode;return t===this.element?(this.element.removeChild(e),!0):t?(t.removeChild(e),!1):void 0}}},{key:"html",value:function(e){n.d.isDefined(e)&&(this.isNoSlotHost()||!this.hasRealChildren?this.element.innerHTML=e:this.ensureContentSlotFirst().innerHTML=e,this.originalContent=e,this.textOnly=!1)}},{key:"text",value:function(e){n.d.isDefined(e)&&(this.isNoSlotHost()||!this.hasRealChildren?this.element.textContent=e:this.ensureContentSlotFirst().textContent=e,this.originalContent=e,this.textOnly=!0)}},{key:"clearContent",value:function(){this.element&&(!this.isNoSlotHost()&&this.hasRealChildren?this.ensureContentSlotFirst().innerHTML=this.originalContent||"":this.element.innerHTML=this.originalContent||"")}},{key:"deleteAll",value:function(){this.element&&(this.element.innerHTML=this.originalContent||"",this.hasRealChildren=!1,this.contentSlot=null,this.slotModeEnabled=!1)}},{key:"outerHTML",value:function(e){this.element.outerHTML=e}},{key:"isEmpty",value:function(){return""===this.element.innerHTML}},{key:"innerHTML",value:function(e){if(!n.d.isDefined(e))return this.element.innerHTML;this.element.innerHTML=e}},{key:"innerText",value:function(e){if(!n.d.isDefined(e))return this.element.innerText;this.element.innerText=e}},{key:"addClass",value:function(e){var t=this.attr("class"),r=t?t.includes(e)?t:"".concat(t," ").concat(e):e;r!==t&&this.attr("class",r)}},{key:"addEvent",value:function(e,t,r,n){this.element.addEventListener?this.element.addEventListener(e,t,{capture:!!r,passive:!!n}):this.element.attachEvent("on".concat(e),t)}},{key:"detachEvent",value:function(e,t,r){this.element.removeEventListener?this.element.removeEventListener(e,t,r):this.element.detachEvent?this.element.detachEvent("on".concat(e),t):this.element["on".concat(e)]=null}},{key:"transform",value:function(e){this.element.style[this.transformProp]=e}},{key:"animate",value:function(e,t){return this.element.animate(e,t)}},{key:"getContext",value:function(t,r){var i=n.d.isDefined(r)?e.query(r):this.query("canvas");return i?i.getContext(t):void 0}},{key:"query",value:function(e){return this.element.querySelector(e)}},{key:"queryAll",value:function(e){return this.element.querySelectorAll(e)}},{key:"findFirstByClass",value:function(t){return e.findFirstByClass(t,this.element)}},{key:"findFirstByTag",value:function(t){return e.findFirstByTag(t,this.element)}},{key:"getScrollTop",value:function(){var e,t;return null!==(e=null===(t=this.element)||void 0===t?void 0:t.scrollTop)&&void 0!==e?e:0}},{key:"getScrollLeft",value:function(){var e,t;return null!==(e=null===(t=this.element)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0}}],a=[{key:"createTemplate",value:function(t){var r=new e;return r.create("template"),r.innerHTML(t.trim()),r}},{key:"createDocumentFragment",value:function(){return document.createDocumentFragment()}},{key:"query",value:function(t){return"#"===t[0]?e.findById(t):"."===t[0]?e.findFirstByClass(t):e.findFirstByTag(t)}},{key:"querySelector",value:function(e){return document.querySelector(e)}},{key:"findById",value:function(e){return document.getElementById("#"===e[0]?e.slice(1):e)}},{key:"findFirstByClass",value:function(t,r){var n=e.findByClass(t,r);return n.length>0?n[0]:null}},{key:"findFirstByTag",value:function(t,r){var n=e.findByTag(t,r);return n.length>0?n[0]:null}},{key:"findByTag",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).getElementsByTagName(e)}},{key:"findByClass",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).getElementsByClassName("."===e[0]?e.slice(1):e)}},{key:"findNearestParentWithId",value:function(e){for(;e;){var t="function"==typeof e.getAttribute&&e.getAttribute("id")?e.getAttribute("id"):null;if(t&&(0,i.EI)().visibleOidMap[t])return t;e=e.parentElement}}},{key:"detach",value:function(e){var t=n.d.isDefined(e)?e.parentElement:null;t&&t.removeChild(e)}},{key:"hasFocus",value:function(e){return e.hasDom()&&document.activeElement===e.$dom.element}},{key:"getWindowScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||0}},{key:"getWindowScrollLeft",value:function(){return window.pageXOffset||document.documentElement.scrollLeft||0}},{key:"getScreenWidth",value:function(){return document.documentElement.clientWidth||document.body.clientWidth}},{key:"getScreenHeight",value:function(){return document.documentElement.clientHeight||document.body.clientHeight}},{key:"ready",value:function(t){new e(document).addEvent("DOMContentLoaded",t)}},{key:"ajax",value:function(e){var t=new XMLHttpRequest,r="";e.data&&(r=Object.keys(e.data).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(e.data[t]))})).join("&")),t.onreadystatechange=function(){if(4===t.readyState)if(200===t.status){var r="json"===e.dataType?JSON.parse(this.responseText):this.responseText;e.success(r)}else e.error(t.status)},"POST"===e.type?(t.open(e.type,e.url,!0),t.setRequestHeader("Content-type","application/x-www-form-urlencoded"),t.send(r)):(e.url+=r?e.url>""&&e.url.indexOf("?")>=0?"&".concat(r):"?".concat(r):"",t.open(e.type,e.url,!0),t.send())}}],r&&o(t.prototype,r),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}()},357:function(e,t,r){r.d(t,{_:function(){return M}});var n=r(249),i=r(980),a=r(585),o=r(855),l=r(333),s=r(34),u=r(161);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(){d=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),l=new A(n||[]);return i(o,"_invoke",{value:x(e,r,l)}),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var v="suspendedStart",y="suspendedYield",g="executing",p="completed",m={};function b(){}function T(){}function w(){}var k={};u(k,o,(function(){return this}));var S=Object.getPrototypeOf,M=S&&S(S(_([])));M&&M!==r&&n.call(M,o)&&(k=M);var E=w.prototype=b.prototype=Object.create(k);function D(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(i,a,o,l){var s=f(e[i],e,a);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==c(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function x(t,r,n){var i=v;return function(a,o){if(i===g)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=O(l,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===v)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=g;var u=f(t,r,n);if("normal"===u.type){if(i=n.done?p:y,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=p,n.method="throw",n.arg=u.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(c(t)+" is not iterable")}return T.prototype=w,i(E,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:T,configurable:!0}),T.displayName=u(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},D(C.prototype),u(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new C(h(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},D(E),u(E,s,"Generator"),u(E,o,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=_,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function h(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){h(a,n,i,o,l,"next",e)}function l(e){h(a,n,i,o,l,"throw",e)}o(void 0)}))}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=p(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return(t=S(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S(n.key),n)}}function S(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var M=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.waapiPoller={rafId:0,alive:!0},this.recordMap=new Map,this.isShuttingDown=!1,this.toid="blank"},t=[{key:"animate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.T.emptyBatch(),r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;if(!this.isShuttingDown){if(t.frames.sort((function(e,t){return e.keyTime-t.keyTime})),e.lastBatch){var o=Math.min(s.d.now()-e.lastBatch.startTime,e.lastBatch.totalDuration);if(e.lastBatch=this.cutLastBatch(e,e.lastBatch,o),i.T.rebaseCutBatchMeta(e,e.lastBatch),null!=a&&a.size){var u={styleMap:T({},e.lastBatch.frames[0].styleMap),tfMap:T({},e.lastBatch.frames[0].tfMap),keyMeta:new Map(e.lastBatch.frames[0].keyMeta)};i.T.addToUpdatingTargets(e,a),i.T.removeKeysFromBatch(e.lastBatch,a),this.callFireOnEndOnConflict(e,e.lastBatch,t),this.mergeBatches(e.lastBatch,t),this.deleteAnimation(e),this.fixTModelStyleFromFrame(e,u)}else this.callFireOnEndOnConflict(e,e.lastBatch,t),this.mergeBatches(e.lastBatch,t),this.deleteAnimation(e)}if(e.hasDom()&&t.frames.length&&Object.keys(t.keyMap).length){var c,d=e.$dom.getElement(),h=Math.max(t.totalDuration,1),f=g(new Set(Object.values(t.keyMap).flatMap((function(e){return g(e)})))),v=y(f);try{for(v.s();!(c=v.n()).done;){var p=c.value;this.backfillKeyAcrossFramesUsingMorph(e,p,t.frames)}}catch(e){v.e(e)}finally{v.f()}for(var m=!1,b={},w=0,k=Object.keys(e.tfMap);w<k.length;w++){var S=k[w];b[S]=e.val(S)}var M=t.frames.map((function(t){var r=T({},t.styleMap);if(r.offset=t.keyTime/h,Object.keys(t.tfMap).length){var a=T(T({},b),t.tfMap);r.transform=n.a.getTransformString(e,a),m=!0}return i.T.addUnitsToFrame(r),r})),E=this.filterRedundantKeyframes(M),D={duration:h,fill:"none",iterations:1,easing:t.easing||"linear"};t.startTime=s.d.now(),e.lastBatch=t,e.lastBatch.transformAnimation=m,e.finalKeyframe=E[E.length-1],e.finalRawFrame=t.frames[t.frames.length-1];var C,x=d.animate(E,D),O=y(f);try{for(O.s();!(C=O.n()).done;){var L=C.value,P=l.g.getTargetName(L),A=this.getRecordId(e,L),_=l.g.getOriginalNames(e,L),j=_.originalTModel,I=_.originalTargetName,V={recId:A,cleanKey:P,originalKey:L,tmodel:e,anim:x,originalTModel:j,originalTargetName:I,frames:this.collectFramesForKey(t,P),status:"playing",needsFireOnStep:!0,hooks:r},N=e.targetValues[L];N&&(e.addToAnimatingMap(L),N.status=N.snapAnimation?"done":"updating"),this.recordMap.set(A,V)}}catch(e){O.e(e)}finally{O.f()}this.startProgressPoller()}}}},{key:"pauseAnimations",value:function(e,t){var r,n,a;(r=t?t instanceof Map?new Set(t.keys()):new Set(t):new Set(null!==(n=null===(a=e.animatingMap)||void 0===a?void 0:a.keys())&&void 0!==n?n:[])).size&&this.animate(e,i.T.emptyBatch(),i.T.getAnimationHooks(),r)}},{key:"finalizeAnimation",value:function(e){var t,r=!1,n=y(this.recordMap);try{for(n.s();!(t=n.n()).done;){var a=v(t.value,2),l=a[0],s=a[1];if(s.anim===e&&"playing"!==s.status&&"canceled"!==s.status){r=!0;var u=s.tmodel,c=s.originalKey,d=s.cleanKey;u.removeFromAnimatingMap(c),this.recordMap.delete(l),this.completeRecord(u,s,d,c),u.hasAnimatingTargets()||(u.finalKeyframe&&u.hasDom()&&i.T.fixStyleByAnimation(u,u.finalKeyframe),u.lastBatch=void 0),s.status="complete",s.hooks.fireOnEnd(u,c),(0,o.fB)().scheduleOnlyIfEarlier(1,"animate-".concat(u.oid,"---").concat(c))}}}catch(e){n.e(e)}finally{n.f()}if(r)try{e.cancel()}catch(e){}(0,o.fB)().schedule(35,"finalizeAnimation")}},{key:"startProgressPoller",value:function(){var e=this;if(!this.waapiPoller.rafId){this.waapiPoller.alive=!0;var t=function(){var r,n=new Set,a=new Map,o=!1,l=y(e.recordMap);try{for(l.s();!(r=l.n()).done;){var s,c,d,h,f=v(r.value,2)[1];if("canceled"!==f.status&&"detached"!==f.status){var g=f.tmodel,p=f.originalKey;if("finished"!==f.status&&u.O.shouldPauseTarget(g,p)){var m=a.get(g);m||(m=new Set,a.set(g,m)),m.add(p)}else{"playing"===f.status&&(o=!0);var b=f.anim.playState,T=null===(s=f.anim.effect)||void 0===s||null===(c=(d=s).getComputedTiming)||void 0===c?void 0:c.call(d),w=null!==(h=null==T?void 0:T.progress)&&void 0!==h?h:0;if(("finished"===b||"idle"===b||w>=.999999)&&(f.status="done",n.add(f.anim)),w>0&&"finished"!==f.status){var k=i.T.updateTModelFromRecord(f);"finished"===(null==k?void 0:k.status)&&(f.status="finished")}}}}}catch(e){l.e(e)}finally{l.f()}var S,M=y(a);try{for(M.s();!(S=M.n()).done;){var E=v(S.value,2),D=E[0],C=E[1];e.pauseAnimations(D,C)}}catch(e){M.e(e)}finally{M.f()}var x,O=y(n);try{for(O.s();!(x=O.n()).done;){var L=x.value;e.finalizeAnimation(L)}}catch(e){O.e(e)}finally{O.f()}e.recordMap.size>0||o?e.waapiPoller.rafId=requestAnimationFrame(t):(e.waapiPoller.alive=!1,e.waapiPoller.rafId=0)};this.waapiPoller.rafId=requestAnimationFrame(t)}}},{key:"getAt",value:function(e,t){return a.u.isTransformKey(t)?e.tfMap[t]:e.styleMap[t]}},{key:"setAt",value:function(e,t,r){a.u.isTransformKey(t)?e.tfMap[t]=r:e.styleMap[t]=r}},{key:"completeRecord",value:function(e,t,r,n){if(e.finalRawFrame){var i=t.frames,a=i&&i[i.length-1],o=a?a.value:this.getAt(e.finalRawFrame,r);this.setAt(e,r,o),e.val(n,o);var l,s=e.targetValues[n];s&&(s.step=e.getTargetSteps(n),s.valuePointer=null!==(l=s.valueList)&&void 0!==l&&l.length?s.valueList.length-1:0,e.setActual(n,o),e.isTargetImperative(n)&&(s.cycle=s.cycles))}}},{key:"backfillKeyAcrossFramesUsingMorph",value:function(e,t,r){for(var i=l.g.getTargetName(t),a=[],o=0;o<r.length;o++)void 0!==this.getAt(r[o],i)&&a.push(o);if(a.length>=2)for(var u=0;u<a.length-1;u++){var c,d,h=a[u],f=a[u+1],v=r[h],y=r[f],g=this.getAt(v,i),p=this.getAt(y,i),m=null===(c=y.keyMeta)||void 0===c?void 0:c.get(i);if(m){var b=m.steps,w=m.stepOffset||0,k=null!==(d=m.segmentSteps)&&void 0!==d?d:b,S=v.keyTime,M=y.keyTime-S;if(!(!s.d.isDefined(b)||b<=0||M<=0))for(var E=w,D=h+1;D<f;D++){var C=r[D],x=s.d.limit((C.keyTime-S)/M,0,1),O=Math.round(x*b),L=s.d.limit(w+O,0,k),P=Math.max(L-E,0),A=n.a.morph(t,g,p,x);this.setAt(C,i,A),C.keyMeta.set(i,T(T({},m),{},{steps:P,stepOffset:E,segmentSteps:k,done:!1})),E=L}}}if(a.length){var _,j,I,V=a[a.length-1],N=r[V],R=this.getAt(N,i),F=null===(_=N.keyMeta)||void 0===_?void 0:_.get(i);if(!F)return;for(var H=null!==(j=null!==(I=F.segmentSteps)&&void 0!==I?I:F.steps)&&void 0!==j?j:0,B=V+1;B<r.length;B++){var U=r[B];this.setAt(U,i,R),U.keyMeta.set(i,T(T({},F),{},{steps:0,stepOffset:H,segmentSteps:H,done:!0}))}}}},{key:"fixTModelStyleFromFrame",value:function(e,t){if(e.hasDom()&&t){var r=T({},t.styleMap);if(Object.keys(t.tfMap).length>0){Object.keys(e.tfMap).forEach((function(t){e.tfMap[t]=e.val(t)}));var a=T(T({},e.tfMap),t.tfMap);t.tfMap=a,r.transform=n.a.getTransformString(e,a)}i.T.addUnitsToFrame(r),i.T.fixStyleByAnimation(e,r)}}},{key:"collectFramesForKey",value:function(e,t){var r,n=[],i=e.totalDuration,a=y(e.frames);try{for(a.s();!(r=a.n()).done;){var o=r.value,l=this.getAt(o,t);if(void 0!==l){var s=o.keyMeta.get(t);n.push({value:l,time:o.keyTime,offset:o.keyTime/i,steps:null==s?void 0:s.steps,segmentSteps:null==s?void 0:s.segmentSteps,interval:null==s?void 0:s.interval,easing:null==s?void 0:s.easing,stepOffset:(null==s?void 0:s.stepOffset)||0,valuePointer:null==s?void 0:s.valuePointer,cycle:null==s?void 0:s.cycle,done:!(null==s||!s.done)})}}}catch(e){a.e(e)}finally{a.f()}return n.sort((function(e,t){return e.time-t.time})),n.length>=2?n:void 0}},{key:"getRecordId",value:function(e,t){return"".concat(e.oid,"-").concat(t)}},{key:"delete",value:function(e){var t=e.recId,r=e.originalKey,n=e.tmodel;e.anim.cancel(),n.removeFromAnimatingMap(r),this.recordMap.delete(t)}},{key:"deleteAnimation",value:function(e){var t,r=[],i=y(this.recordMap.values());try{for(i.s();!(t=i.n()).done;){var a=t.value;a.tmodel===e&&r.push(a)}}catch(e){i.e(e)}finally{i.f()}if(!r.length)return!1;for(var o=new Set,l=new Set,s=0,u=r;s<u.length;s++){var c=u[s];o.add(c.originalKey),l.add(c.anim)}n.a.commitAnimatedStyles(e,o);var d,h=y(l);try{for(h.s();!(d=h.n()).done;){var f=d.value;try{f.cancel()}catch(e){}}}catch(e){h.e(e)}finally{h.f()}return e.clearAnimatingMap(),e.lastBatch=void 0,e.waapiBatch=void 0,e.finalKeyframe=void 0,e.finalRawFrame=void 0,!0}},{key:"cancelKey",value:function(e,t){var r=this.getRecordId(e,t),n=this.recordMap.get(r);n&&(n.status="canceled")}},{key:"deleteAll",value:(h=f(d().mark((function e(){var t,r,a,o,l,s,u,c,h,f,g,p,m,b,T,w;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.isShuttingDown=!0,this.waapiPoller.rafId&&(cancelAnimationFrame(this.waapiPoller.rafId),this.waapiPoller.rafId=0,this.waapiPoller.alive=!1),t=new Set,r=new Map,a=y(this.recordMap.values()),e.prev=5,a.s();case 7:if((o=a.n()).done){e.next=18;break}if("canceled"!==(l=o.value).status&&"detached"!==l.status){e.next=11;break}return e.abrupt("continue",16);case 11:i.T.updateTModelFromRecord(l),t.add(l.anim),(s=r.get(l.tmodel))||(s=new Set,r.set(l.tmodel,s)),s.add(l.originalKey);case 16:e.next=7;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(5),a.e(e.t0);case 23:return e.prev=23,a.f(),e.finish(23);case 26:u=y(r);try{for(u.s();!(c=u.n()).done;)h=v(c.value,2),f=h[0],g=h[1],n.a.commitAnimatedStyles(f,g),i.T.addToUpdatingTargets(f,g),f.lastBatch=void 0,f.waapiBatch=void 0,f.finalKeyframe=void 0,f.finalRawFrame=void 0}catch(e){u.e(e)}finally{u.f()}p=y(this.recordMap.values());try{for(p.s();!(m=p.n()).done;)m.value.status="detached"}catch(e){p.e(e)}finally{p.f()}b=y(t);try{for(b.s();!(T=b.n()).done;){w=T.value;try{w.cancel()}catch(e){}}}catch(e){b.e(e)}finally{b.f()}this.recordMap.clear();case 33:case"end":return e.stop()}}),e,this,[[5,20,23,26]])}))),function(){return h.apply(this,arguments)})},{key:"flushOneFrame",value:(c=f(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(requestAnimationFrame);case 2:this.isShuttingDown=!1;case 3:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"cancelTModelAnimation",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.mode,o=void 0===a?"resume":a,l=r.commitStyle,s=void 0===l||l,u=[],c=y(this.recordMap.values());try{for(c.s();!(t=c.n()).done;){var d=t.value;d.tmodel===e&&u.push(d)}}catch(e){c.e(e)}finally{c.f()}if(!u.length)return!1;for(var h=new Set,f=new Set,v=0,g=u;v<g.length;v++){var p=g[v];"canceled"!==p.status&&"detached"!==p.status&&i.T.updateTModelFromRecord(p),h.add(p.originalKey),f.add(p.anim)}s&&n.a.commitAnimatedStyles(e,h);for(var m=0,b=u;m<b.length;m++){var T=b[m];T.status="detached",this.recordMap.delete(T.recId)}var w,k=y(f);try{for(k.s();!(w=k.n()).done;){var S=w.value;try{S.cancel()}catch(e){}}}catch(e){k.e(e)}finally{k.f()}return e.clearAnimatingMap(),this.applyCanceledTargetMode(e,h,o),e.lastBatch=void 0,e.waapiBatch=void 0,e.finalKeyframe=void 0,e.finalRawFrame=void 0,!0}},{key:"applyCanceledTargetMode",value:function(e,t,r){var n,i=y(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;e.targetValues[a]&&("resume"!==r?"finish"!==r||this.finishCanceledTarget(e,a):e.setTargetStatus(a,"updating"))}}catch(e){i.e(e)}finally{i.f()}}},{key:"finishCanceledTarget",value:function(e,t){var r=this.recordMap.get(this.getRecordId(e,t));r&&(this.completeRecord(e,r,r.cleanKey,t),e.removeFromAnimatingMap(t),r.hooks.fireOnEnd(e,t))}},{key:"fillCutFrameFromRecords",value:function(e,t,r,n){var a,o=n>0?s.d.limit(r/n,0,1):1,l=y(this.recordMap);try{for(l.s();!(a=l.n()).done;){var u,c,d,h,f,g,p,m=v(a.value,2)[1];if(m.tmodel===e&&"canceled"!==m.status&&"detached"!==m.status){var b=i.T.getValueFromFrames(m,o);if(b){var T=m.cleanKey,w=m.originalKey,k=e.targetValues[w];this.setAt(t,T,b.value),t.keyMeta.set(T,{steps:null!==(u=null!==(c=null!==(d=b.remainingSteps)&&void 0!==d?d:b.steps)&&void 0!==c?c:null==k?void 0:k.steps)&&void 0!==u?u:0,segmentSteps:null!==(h=null!==(f=b.steps)&&void 0!==f?f:null==k?void 0:k.steps)&&void 0!==h?h:0,interval:null!==(g=null==k?void 0:k.interval)&&void 0!==g?g:8,stepOffset:null!==(p=b.step)&&void 0!==p?p:0,valuePointer:b.valuePointer,cycle:b.cycle,done:"finished"===b.status})}}}}catch(e){l.e(e)}finally{l.f()}}},{key:"cutLastBatch",value:function(e,t,r){for(var n=0;n<t.frames.length&&t.frames[n].keyTime<=r;)n++;var i=t.totalDuration;if(n<t.frames.length&&r!==t.frames[n].keyTime){var a={keyTime:r,tfMap:{},styleMap:{},keyMeta:new Map};t.frames.splice(n,0,a),this.fillCutFrameFromRecords(e,a,r,i);var o,l=y(g(new Set(Object.values(t.keyMap).flatMap((function(e){return g(e)})))));try{for(l.s();!(o=l.n()).done;){var s=o.value;this.backfillKeyAcrossFramesUsingMorph(e,s,t.frames)}}catch(e){l.e(e)}finally{l.f()}t.frames=t.frames.slice(n)}return t.frames.forEach((function(e){e.keyTime=Math.max(0,e.keyTime-r)})),t.totalDuration=t.frames.length?t.frames[t.frames.length-1].keyTime:0,t}},{key:"callFireOnEndOnConflict",value:function(e,t,r){for(var n=t.keyMap,i=r.keyMap,a=0,o=Object.keys(i);a<o.length;a++){var l=o[a],s=n[l],u=i[l];if(s&&u){var c,d=y(s);try{for(d.s();!(c=d.n()).done;){var h=c.value;if(!u.has(h)){var f=this.getRecordId(e,h),v=this.recordMap.get(f);v&&(this.completeRecord(e,v,l,h),v.status="complete",v.hooks.fireOnEnd(v.tmodel,h),v.tmodel.removeFromAnimatingMap(h),this.recordMap.delete(f))}}}catch(e){d.e(e)}finally{d.f()}}}}},{key:"mergeBatches",value:function(e,t){for(var r=new Set(Object.keys(t.keyMap)),n={},i=0,a=Object.entries(e.keyMap);i<a.length;i++){var o=v(a[i],2),l=o[0],u=o[1];r.has(l)||(n[l]=u)}var c=Object.keys(n),d=[];if(c.length){var h,f=y(e.frames);try{for(f.s();!(h=f.n()).done;){var p,m=h.value,b={keyTime:m.keyTime,tfMap:{},styleMap:{},keyMeta:new Map},w=y(c);try{for(w.s();!(p=w.n()).done;){var k,S=p.value;s.d.isDefined(m.tfMap[S])&&(b.tfMap[S]=m.tfMap[S]),s.d.isDefined(m.styleMap[S])&&(b.styleMap[S]=m.styleMap[S]);var M=null===(k=m.keyMeta)||void 0===k?void 0:k.get(S);M&&b.keyMeta.set(S,M)}}catch(e){w.e(e)}finally{w.f()}(Object.keys(b.tfMap).length||Object.keys(b.styleMap).length)&&d.push(b)}}catch(e){f.e(e)}finally{f.f()}}var E=[].concat(d,g(t.frames));E.sort((function(e,t){return e.keyTime-t.keyTime}));var D,C=[],x=y(E);try{for(x.s();!(D=x.n()).done;){var O=D.value,L=C[C.length-1];if(L&&Math.abs(L.keyTime-O.keyTime)<1e-4){Object.assign(L.styleMap,O.styleMap),Object.assign(L.tfMap,O.tfMap);var P,A=y(O.keyMeta);try{for(A.s();!(P=A.n()).done;){var _=v(P.value,2),j=_[0],I=_[1];L.keyMeta.set(j,I)}}catch(e){A.e(e)}finally{A.f()}}else C.push(O)}}catch(e){x.e(e)}finally{x.f()}t.frames=C,t.keyMap=T(T({},n),t.keyMap),t.totalDuration=C.reduce((function(e,t){return Math.max(e,t.keyTime)}),0)}},{key:"areFramesEqual",value:function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0,a=r;i<a.length;i++){var o=a[i];if("offset"!==o&&e[o]!==t[o])return!1}return!0}},{key:"filterRedundantKeyframes",value:function(e){if(e.length<=2)return e;for(var t=[e[0]],r=1;r<e.length-1;r++){var n=t[t.length-1],i=e[r];this.areFramesEqual(n,i)||t.push(i)}return t.push(e[e.length-1]),t}},{key:"rebaseAutoLayoutTransform",value:function(e,t){if(!e.lastBatch)return!1;var r=Math.min(s.d.now()-e.lastBatch.startTime,e.lastBatch.totalDuration),n=this.cutLastBatch(e,e.lastBatch,r);i.T.rebaseCutBatchMeta(e,n);var a,o=y(n.frames);try{for(o.s();!(a=o.n()).done;)for(var l=a.value,u=0,c=Object.entries(t);u<c.length;u++){var d=v(c[u],2),h=d[0],f=d[1];l.tfMap[h]=f}}catch(e){o.e(e)}finally{o.f()}for(var g=0,p=Object.entries(t);g<p.length;g++){var m=v(p[g],2),b=m[0],T=m[1];e.tfMap[b]=T,e.val(b,T),e.actualValues[b]=T}return this.deleteAnimation(e),this.animate(e,n,i.T.getAnimationHooks()),!0}}],t&&k(e.prototype,t),r&&k(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,c,h}()},980:function(e,t,r){r.d(t,{T:function(){return p}});var n=r(333),i=r(585),a=r(249),o=r(855),l=r(161),s=r(34);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function f(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function g(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,u=[{key:"emptyBatch",value:function(){return{frames:[],keyMap:{},totalDuration:0}}},{key:"overrideAnimatedKeyWithSnap",value:function(t,r,a){for(var l=Array.isArray(r)?r:[r],s=Array.isArray(a)?a:[a],u={},c={},d=new Map,h={},f={},v=new Map,y={},g=!1,p=0;p<l.length;p++){var m=l[p];g=!0;var b=s[p],T=t.targetValues[m]||n.g.emptyValue(),w=n.g.getTargetName(m);i.u.isTransformKey(w)?(u[w]=b,h[w]=b):(c[w]=b,f[w]=b),d.set(w,{steps:1,interval:1}),v.set(w,{steps:1,interval:1}),(y[w]=new Set).add(m),T.value=b,T.steps=1,T.interval=0,T.snapAnimation=!0}if(g){var k=[];k.push({keyTime:0,tfMap:u,styleMap:c,keyMeta:d}),k.push({keyTime:1,tfMap:h,styleMap:f,keyMeta:v});var S={frames:k,keyMap:y,snap:!0,totalDuration:1};(0,o.s)().animate(t,S,e.getAnimationHooks())}}},{key:"fixStyleByAnimation",value:function(e,t){if(e.hasDom())for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];if("offset"!==a){var o=t[a];if(null!==o){var l=o;if("string"==typeof o&&o.endsWith("px")){var s=Number(o.slice(0,-2));Number.isNaN(s)||(l=s)}"width"===a?(e.styleMap.width=l,e.$dom.width(o)):"height"===a?(e.styleMap.height=l,e.$dom.height(o)):"transform"===a?e.$dom.transform(o,e.val("transformOrder")):i.u.transformMap[a]||(e.$dom.style(a,o),e.styleMap[a]=l)}}}}},{key:"addUnitsToFrame",value:function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if("offset"!==n&&"transform"!==n){var a=e[n];null==a||Number.isNaN(a)?delete e[n]:"number"==typeof a&&i.u.styleWithUnitMap[n]&&(("width"===n||"height"===n)&&a<0&&(a=0),e[n]="".concat(a,"px"))}}}},{key:"getAnimationHooks",value:function(){return{morph:function(e,t,r,n,i,o){return a.a.easingMorph(e,t,r,n,i,o)},fireOnStep:function(e,t,r){return(0,o.HJ)().fireOnStep(e,t,r)},fireOnEnd:function(e,t){return(0,o.HJ)().fireOnEnd(e,t)}}}},{key:"addToUpdatingTargets",value:function(e,t){var r,n=[],i=h((0,o.s)().recordMap);try{for(i.s();!(r=i.n()).done;){var a=d(r.value,2)[1];a.tmodel===e&&(t&&!t.has(a.originalKey)||n.push(a))}}catch(e){i.e(e)}finally{i.f()}for(var l=0,s=n;l<s.length;l++){var u,c,f=s[l].originalKey;e.targetValues[f]&&(null===(u=e.noDomUpdatingTargets)||void 0===u||u.delete(f),0===(null===(c=e.noDomUpdatingTargets)||void 0===c?void 0:c.size)&&(e.noDomUpdatingTargets=void 0),e.setTargetStatus(f,"updating"),e.removeFromAnimatingMap(f))}}},{key:"addToNODomUpdatingTargets",value:function(e,t){var r,n=[],i=h((0,o.s)().recordMap);try{for(i.s();!(r=i.n()).done;){var a=d(r.value,2)[1];a.tmodel===e&&(t&&!t.has(a.originalKey)||n.push(a))}}catch(e){i.e(e)}finally{i.f()}for(var l=s.d.now(),u=0,c=n;u<c.length;u++){var f=c[u].originalKey,v=e.targetValues[f];v&&(v.catchupAt=l,e.removeFromAnimatingMap(f),(e.noDomUpdatingTargets||(e.noDomUpdatingTargets=new Set)).add(f))}}},{key:"removeKeysFromBatch",value:function(e,t){if(e&&null!=t&&t.size){var r,i=h(e.frames);try{for(i.s();!(r=i.n()).done;){var a,o=r.value,l=h(t);try{for(l.s();!(a=l.n()).done;){var s=a.value,u=n.g.getTargetName(s);delete o.styleMap[u],delete o.tfMap[u],o.keyMeta&&o.keyMeta.delete(u)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){i.e(e)}finally{i.f()}var c,d=h(t);try{for(d.s();!(c=d.n()).done;){var f=c.value,v=n.g.getTargetName(f);delete e.keyMap[v]}}catch(e){d.e(e)}finally{d.f()}e.frames=e.frames.filter((function(e){return Object.keys(e.styleMap).length||Object.keys(e.tfMap).length})),e.totalDuration=e.frames.length?e.frames[e.frames.length-1].keyTime:0}}},{key:"updateTModelFromRecord",value:function(t){var r=t.tmodel,n=t.originalKey,i=t.cleanKey;if(r.hasDom()){var a=e.getValueFromAnim(t);if(a){var l=a.value,u=a.step,c=a.steps,d=a.cycle,h=a.valuePointer,f=a.from,v=a.to,y=a.interval,g=a.easing;(0,o.s)().setAt(r,i,l),r.val(n,l);var p=r.targetValues[n];if(p){var m;null!==(m=p.valueList)&&void 0!==m&&m.length?e.syncListTargetSegment(p,a):(s.d.isDefined(f)&&(p.initialValue=f),s.d.isDefined(v)&&(p.value=v),s.d.isDefined(c)&&(p.steps=c),s.d.isDefined(y)&&(p.interval=y),s.d.isDefined(g)&&(p.easing=g)),s.d.isDefined(u)&&(p.step=u),s.d.isDefined(h)&&(p.valuePointer=h),s.d.isDefined(d)&&(p.cycle=d),p.lastUpdate=s.d.now(),r.setActual(n,l);var b="".concat(d,":").concat(h,":").concat(u);t.needsFireOnStep&&u>0&&c>0&&t.lastFireOnStepKey!==b&&(t.lastFireOnStepKey=b,t.hooks.fireOnStep(r,n,u)||(t.needsFireOnStep=!1))}return a}}}},{key:"getValueFromAnim",value:function(t){var r,n,i=null===(r=t.anim.effect)||void 0===r||null===(n=r.getComputedTiming)||void 0===n?void 0:n.call(r);if(i){var a=s.d.isDefined(i.progress)?s.d.limit(i.progress,0,1):1;return e.getValueFromFrames(t,a)}}},{key:"getValueFromFrames",value:function(e,t){var r,n,i,o,l,u=e.originalKey,c=e.frames;if(c&&!(c.length<2)){var d=s.d.limit(t,0,1),h=c.length-1,f=0;if(d<=c[0].offset)f=0;else if(d>=c[h].offset)f=h-1;else for(var v=0;v<h;v++)if(d>=c[v].offset&&d<c[v+1].offset){f=v;break}var y=c[f],g=c[f+1],p=y.value,m=g.value,b=y.offset,T=g.offset-b;if(!(T<=0)){var w,k,S,M,E=s.d.limit((d-b)/T,0,1),D=a.a.morph(u,p,m,E),C=g.steps;if(!s.d.isDefined(C)||C<=0)return{value:D,framePointer:f,step:g.segmentSteps,steps:g.segmentSteps,from:p,to:m,interval:g.interval,easing:g.easing,valuePointer:null!==(w=null!==(k=g.valuePointer)&&void 0!==k?k:y.valuePointer)&&void 0!==w?w:0,cycle:null!==(S=null!==(M=g.cycle)&&void 0!==M?M:y.cycle)&&void 0!==S?S:0,status:g.done?"finished":"playing"};var x=Math.round(E*C);x=s.d.limit(x,0,C);var O=g.stepOffset||0,L=null!==(r=g.segmentSteps)&&void 0!==r?r:O+C;return{value:D,step:s.d.limit(O+x,0,L),steps:L,from:p,to:m,interval:g.interval,easing:g.easing,valuePointer:null!==(n=null!==(i=g.valuePointer)&&void 0!==i?i:y.valuePointer)&&void 0!==n?n:0,cycle:null!==(o=null!==(l=g.cycle)&&void 0!==l?l:y.cycle)&&void 0!==o?o:0,status:g.done?"finished":"playing"}}}}},{key:"detachAnimationsOnDeleteDom",value:function(t){var r,n=(0,o.s)().recordMap,i=new Set,a=new Set,s=h(n);try{for(s.s();!(r=s.n()).done;){var u=d(r.value,2)[1];u.tmodel===t&&(l.O.shouldPauseTarget(t,u.originalKey)?i.add(u.originalKey):a.add(u.originalKey))}}catch(e){s.e(e)}finally{s.f()}i.size&&e.addToUpdatingTargets(t,i),a.size&&e.addToNODomUpdatingTargets(t,a),e.deleteDetachedRecords(t,new Set([].concat(c(i),c(a))))}},{key:"deleteDetachedRecords",value:function(e,t){var r,n=(0,o.s)().recordMap,i=h(n);try{for(i.s();!(r=i.n()).done;){var a=d(r.value,2),l=a[0],s=a[1];if(s.tmodel===e&&t.has(s.originalKey)){s.status="detached";try{s.anim.cancel()}catch(e){}e.removeFromAnimatingMap(s.originalKey),n.delete(l)}}}catch(e){i.e(e)}finally{i.f()}e.clearAnimatingMap(),e.lastBatch=void 0,e.finalKeyframe=void 0,e.finalRawFrame=void 0}},{key:"rebaseCutBatchMeta",value:function(e,t){var r;if(t&&null!==(r=t.frames)&&void 0!==r&&r.length)for(var n=0,i=Object.entries(t.keyMap);n<i.length;n++){var a,l=d(i[n],2),u=l[0],c=h(l[1]);try{for(c.s();!(a=c.n()).done;){var f=a.value,v=e.targetValues[f];if(v)for(var y=v.step||0,g=1;g<t.frames.length;g++){var p,m=t.frames[g];if(void 0!==(0,o.s)().getAt(m,u)){var b=null===(p=m.keyMeta)||void 0===p?void 0:p.get(u);if(b&&s.d.isDefined(b.steps)){var T=b.stepOffset||0,w=T+b.steps;y>T&&y<w&&(b.stepOffset=y,b.steps=w-y);break}}}}}catch(e){c.e(e)}finally{c.f()}}}},{key:"removeCleanKeyFromBatch",value:function(e,t){if(!e)return!1;var r,n=e.totalDuration||0,i=!1,a=h(e.frames);try{for(a.s();!(r=a.n()).done;){var o,l=r.value;void 0===l.tfMap[t]&&void 0===l.styleMap[t]||(i=!0),delete l.tfMap[t],delete l.styleMap[t],null===(o=l.keyMeta)||void 0===o||o.delete(t)}}catch(e){a.e(e)}finally{a.f()}return delete e.keyMap[t],e.frames=e.frames.filter((function(e){return Object.keys(e.tfMap).length||Object.keys(e.styleMap).length})),e.frames.sort((function(e,t){return e.keyTime-t.keyTime})),e.totalDuration=e.frames.length?Math.max.apply(Math,[n].concat(c(e.frames.map((function(e){return e.keyTime}))))):0,i}},{key:"syncListTargetSegment",value:function(e,t){var r,n,i,a,o,l;if(null!=e&&null!==(r=e.valueList)&&void 0!==r&&r.length){var u=e.valueList.length-1,c=s.d.limit(null!==(n=null!==(i=t.valuePointer)&&void 0!==i?i:e.valuePointer)&&void 0!==n?n:1,1,u),d=c-1;e.valuePointer=c,e.initialValue=e.valueList[d],e.value=e.valueList[c],null!==(a=e.stepList)&&void 0!==a&&a.length&&(e.steps=e.stepList[d%e.stepList.length]),null!==(o=e.intervalList)&&void 0!==o&&o.length&&(e.interval=e.intervalList[d%e.intervalList.length]),null!==(l=e.easingList)&&void 0!==l&&l.length&&(e.easing=e.easingList[d%e.easingList.length])}}},{key:"handleWebAnimationAPI",value:function(t,r,n,a,o,l,s,u,c,d,h){var f,v=arguments.length>11&&void 0!==arguments[11]&&arguments[11],y=!(arguments.length>12&&void 0!==arguments[12])||arguments[12],g=t.waapiBatch||(t.waapiBatch={frames:[],easing:void 0,keyMap:{},totalDuration:0});y&&e.removeCleanKeyFromBatch(g,r)&&(h=0);var p=i.u.isTransformKey(r),m=function(e){for(var t=Math.max(0,e+h),r=0;r<g.frames.length;r++){var n=g.frames[r];if(Math.abs(n.keyTime-t)<1e-4)return n}var i={keyTime:t,tfMap:{},styleMap:{},keyMeta:new Map};return g.frames.push(i),i},b=function(e,t){p?e.tfMap[r]=t:e.styleMap[r]=t},T=0;if(a.valueList&&a.valueList.length){var w,k,S=a.valueList,M=a.stepList||[1],E=a.intervalList||[d||8],D=null!==(w=a.cycles)&&void 0!==w?w:1,C=null!==(k=a.cycle)&&void 0!==k?k:0,x=s;if(!v){var O,L,P=m(0);b(P,o),P.keyMeta.set(r,{steps:0,segmentSteps:c||a.steps||0,interval:d||a.interval||8,stepOffset:u||0,valuePointer:null!==(O=null!=s?s:a.valuePointer)&&void 0!==O?O:1,cycle:null!==(L=a.cycle)&&void 0!==L?L:0})}for(;C<D;){for(var A=x;A<S.length;A++){var _,j=M[(A-1)%M.length],I=E[(A-1)%E.length]||8,V=C===(null!==(_=a.cycle)&&void 0!==_?_:0)&&A===s?u:0,N=Math.max(j-V,0);if(!(N<=0)){var R=m(T+=N*I);b(R,S[A]),R.keyMeta.set(r,{steps:N,segmentSteps:j,interval:I,stepOffset:V,valuePointer:A,cycle:C})}}C++,x=1}}else{var F;d=d||8;var H=Math.max(c-u,0);if(H<=0)return t.val(n,l),a.step=c,0;T=H*d,v||b(m(0),o);var B=m(T);b(B,l),B.keyMeta.set(r,{steps:H,segmentSteps:c,interval:d,stepOffset:u,valuePointer:0,cycle:null!==(F=a.cycle)&&void 0!==F?F:0})}return T<=0?(t.removeFromUpdatingTargets(n),0):(t.getTargetEasing(n)&&(g.easing=t.getTargetEasing(n)),g.totalDuration=Math.max(0,g.totalDuration,h+T),((f=g.keyMap)[r]||(f[r]=new Set)).add(n),t.removeFromUpdatingTargets(n),t.addToAnimatingMap(n),T)}}],(r=null)&&y(t.prototype,r),u&&y(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,u}()},855:function(e,t,r){r.d(t,{qw:function(){return ht},hd:function(){return mt},aK:function(){return bt},s:function(){return kt},UR:function(){return Pt},kQ:function(){return yt},qI:function(){return pt},zw:function(){return Mt},EI:function(){return Tt},cI:function(){return gt},S9:function(){return xt},fB:function(){return St},c$:function(){return Dt},r5:function(){return Et},iP:function(){return Lt},HJ:function(){return wt},U$:function(){return Ct},W_:function(){return ft},wk:function(){return Ot},E_:function(){return et},Bt:function(){return vt}});var n=r(768),i=r(90),a=r(756),o=r(34),l=r(585),s=r(484);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function y(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var p=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$document=new n.J(document),this.currentTouch={deltaY:0,deltaX:0,prevDeltaX:0,prevDeltaY:0,pinchDelta:0,key:"",manualMomentumFlag:!1,orientation:"none",dir:"",source:""},this.lastEvent=void 0,this.touchTimeStamp=0,this.cursor={x:0,y:0},this.start0=void 0,this.start1=void 0,this.end0=void 0,this.end1=void 0,this.touchCount=0,this.canFindHandlers=!0,this.swipeStartX=0,this.swipeStartY=0,this.currentEventName="",this.currentEventType="",this.currentEventTModel=void 0,this.currentOriginalEvent=void 0,this.currentKey="",this.currentHandlers={gestureTarget:null,touch:null,click:null,scrollLeft:null,scrollTop:null,swipe:null,pinch:null,focus:null,justFocused:null,blur:null,leave:null,enter:null,start:null,endCandidate:null,end:null,hover:null},this.eventQueue=[],this.attachedEventMap={},this.eventTargetMap={},this.allEvents={},this.windowScrollX=0|window.scrollX,this.windowScrollY=0|window.scrollY,this.windowScrollEndTimer=0,this.scrollEndTimeStamp={x:0,y:0},this.windowEpoch=0,this.eventEpoch=0,Object.values(l.u.events).forEach((function(e){Object.assign(t.allEvents,e)})),this.hovered=new Set,this.bindedHandleWindowEvent=this.handleWindowEvent.bind(this),this.bindedHandleEvent=this.handleEvent.bind(this),this.bindedParentHandleEvent=this.handleDocEvent.bind(this),this.maxPointerMoveDistance=0}return t=e,r=[{key:"detachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){et.$window.detachEvent(t,e.bindedHandleWindowEvent)}))}},{key:"attachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){et.$window.addEvent(t,e.bindedHandleWindowEvent)}))}},{key:"detachDocumentEvents",value:function(e){var t=this,r=l.u.events[e];Object.keys(r).forEach((function(e){var n=r[e];t.$document.detachEvent(e,t.bindedParentHandleEvent,n.capture)}))}},{key:"attachDocumentEvents",value:function(e){var t=this,r=l.u.events[e];Object.keys(r).forEach((function(e){var n=r[e];t.$document.addEvent(e,t.bindedParentHandleEvent,n.capture,n.passive)}))}},{key:"attachEvents",value:function(e){var t,r=d(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.externalEventMap){var i,a=d(n.externalEventMap);try{for(a.s();!(i=a.n()).done;){var o=c(i.value,1)[0];this.attachTargetEvents(n,o,!0)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"attachTargetEvents",value:function(e,t,r){var n=this,i="".concat(e.oid," ").concat(t),a=l.u.targetToEventsMapping[t];a&&Array.isArray(a)&&0!==a.length&&a.forEach((function(t){var a=l.u.events[t];if(a){var o="undefined"!=typeof window&&!!window.PointerEvent;Object.keys(a).forEach((function(t){if(!o||!t.startsWith("mouse")){var l=a[t],s=!!l.windowEvent,u=s?et.$window:e.hasDom()?e.$dom:null;if(!u)return!1;var c="".concat(i," ").concat(s?"win":"dom"),d=n.eventTargetMap[c]===u,h="".concat(e.oid," ").concat(t," ").concat(s?"win":"dom"),f=n.attachedEventMap[h]&&n.attachedEventMap[h].$dom===u;!r&&d&&f||(u.detachEvent(t,n.bindedHandleEvent,l.capture),u.addEvent(t,n.bindedHandleEvent,l.capture,l.passive),n.eventTargetMap[c]=u,n.attachedEventMap[h]={$dom:u,event:t,capture:!!l.capture})}}))}}))}},{key:"detachAll",value:function(){for(var e=0,t=Object.keys(this.attachedEventMap);e<t.length;e++){var r=t[e],n=this.attachedEventMap[r],i=n.$dom,a=n.event,o=n.capture;i.exists()&&i.detachEvent(a,this.bindedHandleEvent,o)}this.attachedEventMap={},this.eventTargetMap={}}},{key:"resetEventsOnTimeout",value:function(){if((this.scrollEndTimeStamp.x>0||this.scrollEndTimeStamp.y>0||0!==this.currentTouch.pinchDelta)&&!(this.touchCount>0)){var e=o.d.now(),t=Math.max(this.scrollEndTimeStamp.x-e,this.scrollEndTimeStamp.y-e);t>100&&(this.currentTouch.deltaY*=.95,this.currentTouch.deltaX*=.95,this.currentTouch.pinchDelta*=.95,Math.abs(this.currentTouch.deltaY)<.1&&(this.currentTouch.deltaY=0),Math.abs(this.currentTouch.deltaX)<.1&&(this.currentTouch.deltaX=0),Math.abs(this.currentTouch.pinchDelta)<.1&&(this.currentTouch.pinchDelta=0)),t<=0&&(this.currentTouch.deltaY=0,this.currentTouch.deltaX=0,this.currentTouch.pinchDelta=0),!this.currentTouch.deltaX&&this.scrollEndTimeStamp.x&&e>=this.scrollEndTimeStamp.x&&(this.scrollEndTimeStamp.x=0,this.queueScrollEndEvent("x",this.currentHandlers.scrollLeft)),!this.currentTouch.deltaY&&this.scrollEndTimeStamp.y&&e>=this.scrollEndTimeStamp.y&&(this.queueScrollEndEvent("y",this.currentHandlers.scrollTop),this.scrollEndTimeStamp.y=0),St().schedule(10,"scroll decay")}}},{key:"findEventHandlers",value:function(e){var t,r,i,o,l,s,u,c,d,h,f=e.tmodel,v=e.eventType;f&&(t=a.X.findFirstClickHandler(f),r=a.X.findFirstSwipeHandler(f),d=a.X.findFirstStartHandler(f),h=a.X.findFirstEndHandler(f),u=a.X.findFirstEnterHandler(f),c=a.X.findFirstLeaveHandler(f),i=a.X.findFirstScrollLeftHandler(f,v),o=a.X.findFirstScrollTopHandler(f,v),l=a.X.findFirstPinchHandler(f),s=n.J.hasFocus(f)?f:this.currentHandlers.focus),this.currentHandlers.scrollLeft===i&&this.currentHandlers.scrollTop===o||this.clearTouch(),this.currentHandlers.focus!==s&&(this.currentHandlers.justFocused=s,this.currentHandlers.blur=this.currentHandlers.focus),this.currentHandlers.hover=null!=f&&f.canHandleEvent("onHover")?f:void 0,this.currentHandlers.click=t,this.currentHandlers.swipe=r,this.currentHandlers.start=d,this.currentHandlers.endCandidate=h,this.currentHandlers.scrollLeft=i,this.currentHandlers.scrollTop=o,this.currentHandlers.pinch=l,this.currentHandlers.focus=s,this.currentHandlers.enter=u,this.currentHandlers.leave=c}},{key:"captureEvents",value:function(){if(this.currentTouch.prevDeltaX=0,this.currentTouch.prevDeltaY=0,this.currentHandlers.enter=void 0,this.currentHandlers.leave=void 0,this.currentHandlers.justFocused=void 0,this.currentHandlers.blur=void 0,this.currentHandlers.end=void 0,this.currentKey=this.currentTouch.key,0===this.eventQueue.length)return this.currentEventName="",this.currentEventType="",this.currentEventTModel=void 0,this.currentOriginalEvent=void 0,void(this.currentKey="");var e=this.eventQueue.shift();return this.canFindHandlers&&!e.synthetic&&this.findEventHandlers(e),"end"===e.eventType&&(this.currentHandlers.end=this.currentHandlers.endCandidate,this.currentHandlers.start=void 0,this.currentHandlers.endCandidate=void 0,this.currentHandlers.gestureTarget=void 0),this.currentEventName=e.eventName,this.currentEventType=e.eventType,this.currentEventTModel=e.tmodel,this.currentOriginalEvent=e.originalEvent,this.currentTouch.key="",this.markCapturedEventDirty(e),"end"!==e.eventType&&"click"!==e.eventType||(this.canFindHandlers=!0),e}},{key:"markCapturedEventDirty",value:function(e){var t=function(e,t){e&&(e.markEventDirty(),e.markLayoutDirty(t))};switch(t(e.tmodel,"".concat(e.eventType,"-event")),e.eventType){case"click":t(this.currentHandlers.click,"click-event");break;case"start":t(this.currentHandlers.start,"start-event");break;case"end":t(this.currentHandlers.end,"end-event");break;case"move":t(this.currentHandlers.swipe,"swipe-event"),t(this.currentHandlers.scrollLeft,"scrollleft-event"),t(this.currentHandlers.scrollTop,"scrolltop-event"),t(this.currentHandlers.pinch,"pinch-event")}}},{key:"handleDocEvent",value:function(e){this.handleEvent(e,!0,!1)}},{key:"handleWindowEvent",value:function(e){this.handleEvent(e,!1,!0)}},{key:"handleEvent",value:function(t,r,n){var i,l,s,u,c,d,h,f,v,y,g=this;if(t){var p=t.type,m=this.allEvents[p];if(m){var b,T,w=m.eventName,k=m.inputType,S=m.eventType,M=m.order,E=m.queue,D=m.rateLimit,C=o.d.now(),x={eventName:w,eventItem:m,eventType:S,originalName:p,tmodel:b="move"===S&&this.touchCount>0&&this.currentHandlers.gestureTarget?this.currentHandlers.gestureTarget:this.getTModelFromEvent(t),originalEvent:t,timeStamp:C};if(null!==(i=this.lastEvent)&&void 0!==i&&i.eventItem){var O=this.lastEvent,L=O.eventItem,P=C-O.timeStamp;if("end"!==S&&"cancel"!==S&&"start"!==S&&k&&L.inputType&&L.inputType!==k&&M>L.order)return;if(this.eventQueue.length>e.MAX_EVENT_QUEUE_SIZE&&D>0&&P<D)for(var A=0,_=this.eventQueue.length-1;_>=0;_--){var j;if((null===(j=this.eventQueue[_].eventItem)||void 0===j?void 0:j.eventType)!==S)break;if(++A>e.MAX_EVENT_TYPE_CAPACITY)return void(this.preventDefault(b,w)&&(t.preventDefault(),t.stopPropagation()))}}switch(this.eventEpoch++,null===(l=b)||void 0===l||l.markEventDirty(),null===(s=b)||void 0===s||s.markLayoutDirty("event"),this.lastEvent=x,E&&this.eventQueue.push(this.lastEvent),w){case"mousedown":case"touchstart":this.maxPointerMoveDistance=0,this.clearStart(),this.clearEnd(),this.clearTouch(),this.eventQueue.length=0,this.eventQueue.push(this.lastEvent),this.touchCount=this.countTouches(t)||1,this.preventDefault(b,w)&&t.cancelable&&t.preventDefault(),this.start0=this.getTouch(t),this.start1=this.getTouch(t,1),this.cursor.x=this.start0.x,this.cursor.y=this.start0.y,this.currentHandlers.gestureTarget=b,this.findEventHandlers(x),this.canFindHandlers=!1,this.swipeStartX=this.start0.x-(null!==(u=null===(c=this.currentHandlers.swipe)||void 0===c?void 0:c.getX())&&void 0!==u?u:0),this.swipeStartY=this.start0.y-(null!==(d=null===(h=this.currentHandlers.swipe)||void 0===h?void 0:h.getY())&&void 0!==d?d:0),t.stopPropagation(),this.detachDocumentEvents("documentDragEvents"),this.attachDocumentEvents("documentDragEvents");break;case"mousemove":case"touchmove":var I;T=this.getTouch(t),this.cursor.x=T.x,this.cursor.y=T.y,this.preventDefault(b,w)&&t.cancelable&&t.preventDefault(),this.touchCount>0?(this.scrollEndTimeStamp.x=0,this.scrollEndTimeStamp.y=0,this.move(t),t.stopPropagation(),null===(I=this.currentHandlers.swipe)||void 0===I||I.markLayoutDirty("swipe-event")):this.isCurrentSource("wheel")&&this.clearTouch();break;case"mouseup":case"touchend":this.detachDocumentEvents("documentDragEvents"),this.preventDefault(b,w)&&t.cancelable&&t.preventDefault(),this.end(t),this.clearEnd(),this.touchCount=0,t.stopPropagation();break;case"click":this.preventDefault(b,w)&&t.preventDefault(),this.end0=this.getTouch(t);var V=a.X.findFirstClickHandler(b),N=!this.start0||V===this.currentHandlers.click&&this.maxPointerMoveDistance<e.CLICK_MOVE_THRESHOLD;V&&N&&(this.eventQueue.length=0,this.eventQueue.push({eventName:w,eventItem:m,eventType:S,originalName:p,tmodel:b,originalEvent:t,timeStamp:C})),this.clearEnd(),this.clearStart(),this.maxPointerMoveDistance=0,this.touchCount=0,t.stopPropagation();break;case"wheel":this.preventDefault(b,w)&&(t.preventDefault(),t.stopPropagation()),this.touchCount=0,this.wheel(t);break;case"mouseleave":r&&this.touchCount>0&&(this.detachDocumentEvents("documentDragEvents"),T=this.getTouch(t),this.cursor.x=T.x,this.cursor.y=T.y,this.end(t),this.clearEnd(),this.touchCount=0,t.stopPropagation());break;case"mousecancel":case"touchcancel":this.canFindHandlers=!0,this.detachDocumentEvents("documentDragEvents"),this.clearStart(),this.clearEnd(),this.clearTouch(),this.maxPointerMoveDistance=0,this.touchCount=0,t.stopPropagation();break;case"key":this.currentTouch.key=t.which||t.keyCode,null===(f=this.currentHandlers.focus)||void 0===f||f.markLayoutDirty("key-event");break;case"keydown":this.currentTouch.key=t.which||t.keyCode,null===(v=this.currentHandlers.focus)||void 0===v||v.markLayoutDirty("keydown-event");break;case"resize":this.windowEpoch++,this.resizeRoot(),Tt().getAvailableDoms().forEach((function(e){e.targets.onResize&&e.markLayoutDirty("resize-event")}));break;case"scroll":clearTimeout(this.windowScrollEndTimer),this.windowScrollEndTimer=setTimeout((function(){g.queueWindowScrollEndEvent("x",b),g.queueWindowScrollEndEvent("y",b),g.windowScrollEndTimer=0}),450),n?(this.windowEpoch++,this.windowScrollX=0|window.scrollX,this.windowScrollY=0|window.scrollY,Mt().domIslandSet.forEach((function(e){e.markLayoutDirty("window-scroll-event")}))):b.markLayoutDirty("container-scroll-event")}St().schedule(0,"".concat(null===(y=b)||void 0===y?void 0:y.oid,"-").concat(p,"-").concat(w,"-").concat((t.target.tagName||"").toUpperCase()))}}}},{key:"queueScrollEndEvent",value:function(e,t){if(t){var r="x"===e?"scrollleftend":"scrolltopend";this.removeScrollEndEvents(e),this.eventQueue.push({eventName:r,eventType:r,originalName:r,tmodel:t,originalEvent:void 0,timeStamp:o.d.now(),synthetic:!0}),this.eventEpoch++,t.markEventDirty(),t.markLayoutDirty(r),St().schedule(0,r)}}},{key:"queueWindowScrollEndEvent",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"window",n="x"===e?"windowscrollleftend":"windowscrolltopend";this.removeScrollEndEvents(e),this.eventQueue.push({eventName:n,eventType:n,originalName:n,tmodel:t,originalEvent:void 0,timeStamp:o.d.now(),synthetic:!0,scrollSource:r}),this.eventEpoch++,Mt().domIslandSet.forEach((function(e){e.markEventDirty(),e.markLayoutDirty(n)})),St().schedule(0,n)}},{key:"removeScrollEndEvents",value:function(e){var t="x"===e?new Set(["scrollleftend","windowscrollleftend"]):new Set(["scrolltopend","windowscrolltopend"]);this.eventQueue=this.eventQueue.filter((function(e){return!t.has(e.eventType)}))}},{key:"resizeRoot",value:function(){s.j.executeDeclarativeTarget(vt(),"screenWidth"),s.j.executeDeclarativeTarget(vt(),"screenHeight")}},{key:"preventDefault",value:function(e,t){return!(!e||!(!0===e.preventDefault()||Array.isArray(e.preventDefault())&&e.preventDefault().includes(t)))}},{key:"getTModelFromEvent",value:function(e){var t,r=e.currentTarget||e.target;return r&&1===r.nodeType&&(t=r.getAttribute("tgjs-oid")||r.id),t&&et.manager.visibleOidMap[t]||(t=null==r?void 0:r.id)&&Tt().visibleOidMap[t]||(t=n.J.findNearestParentWithId(e.target)),Tt().visibleOidMap[t]}},{key:"clearStart",value:function(){this.start0=void 0,this.start1=void 0}},{key:"clearEnd",value:function(){this.end0=void 0,this.end1=void 0}},{key:"clearTouch",value:function(){this.currentTouch={deltaY:0,deltaX:0,prevDeltaX:0,prevDeltaY:0,pinchDelta:0,key:"",manualMomentumFlag:!1,orientation:"none",dir:"",source:""}}},{key:"clearAll",value:function(){this.clearStart(),this.clearEnd(),this.clearTouch(),this.eventQueue.length=0,this.touchCount=0,this.canFindHandlers=!0,this.lastEvent=void 0,this.attachedEventMap={},this.eventTargetMap={},this.swipeStartX=0,this.swipeStartY=0,this.hovered.clear(),clearTimeout(this.windowScrollEndTimer),this.windowScrollEndTimer=0,this.scrollEndTimeStamp.x=0,this.scrollEndTimeStamp.y=0,this.maxPointerMoveDistance=0,this.currentHandlers={touch:null,click:null,scrollLeft:null,scrollTop:null,swipe:null,pinch:null,focus:null,justFocused:null,blur:null,leave:null,enter:null,start:null,end:null,hover:null}}},{key:"deltaX",value:function(){return this.currentTouch.deltaX}},{key:"deltaY",value:function(){return this.currentTouch.deltaY}},{key:"cursorX",value:function(){return this.cursor.x}},{key:"cursorY",value:function(){return this.cursor.y}},{key:"swipeX",value:function(){return this.cursor.x-this.swipeStartX}},{key:"swipeY",value:function(){return this.cursor.y-this.swipeStartY}},{key:"pinchDelta",value:function(){return this.currentTouch.pinchDelta}},{key:"dir",value:function(){return this.currentTouch.dir}},{key:"getScrollLeftHandler",value:function(){return this.currentHandlers.scrollLeft}},{key:"getScrollTopHandler",value:function(){return this.currentHandlers.scrollTop}},{key:"getWindowScrollX",value:function(){return this.windowScrollX}},{key:"getWindowScrollY",value:function(){return this.windowScrollY}},{key:"getWindowEpoch",value:function(){return this.windowEpoch}},{key:"getPinchHandler",value:function(){return this.currentHandlers.pinch}},{key:"getClickHandler",value:function(){return this.currentHandlers.click}},{key:"getTouchCount",value:function(){return this.touchCount}},{key:"isClickEvent",value:function(){return"click"===this.getEventType()}},{key:"isMoveEvent",value:function(){return"move"===this.getEventType()}},{key:"isResizeEvent",value:function(){return"resize"===this.getEventType()}},{key:"isSwipeEvent",value:function(){return this.isMoveEvent()&&this.hasDelta()&&1===this.touchCount}},{key:"isScrollEvent",value:function(){return this.hasDelta()&&this.isCurrentSource("wheel")}},{key:"hasDelta",value:function(){return 0!==this.deltaX()||0!==this.deltaY()}},{key:"isEndEvent",value:function(){return"end"===this.getEventType()||"click"===this.getEventType()}},{key:"isStartEvent",value:function(){return"start"===this.getEventType()}},{key:"getEventName",value:function(){return this.currentEventName}},{key:"getCurrentOriginalEvent",value:function(){return this.currentOriginalEvent}},{key:"getEventType",value:function(){return this.currentEventType}},{key:"getEventTModel",value:function(){return this.currentEventTModel}},{key:"isClickHandler",value:function(e){return this.getClickHandler()===e&&this.isClickEvent()}},{key:"isEnterHandler",value:function(e){return!(!e||e!==this.currentHandlers.enter||"mouseenter"!==this.getEventName()||this.hovered.has(e.oid)||(this.hovered.add(e.oid),0))}},{key:"isLeaveHandler",value:function(e){return!(!e||e!==this.currentHandlers.leave||"mouseleave"!==this.getEventName()||!this.hovered.has(e.oid)||(this.hovered.delete(e.oid),0))}},{key:"isHoverHandler",value:function(e){return e===this.currentHandlers.hover}},{key:"isSwipeHandler",value:function(e){return e===this.currentHandlers.swipe}},{key:"isStartHandler",value:function(e){return e===this.currentHandlers.start}},{key:"isEndHandler",value:function(e){return e===this.currentHandlers.end}},{key:"onFocus",value:function(e){return this.currentHandlers.justFocused===e}},{key:"onBlur",value:function(e){return this.currentHandlers.blur===e}},{key:"hasFocus",value:function(e){return this.currentHandlers.focus===e}},{key:"isScrollLeftHandler",value:function(e){return this.currentHandlers.scrollLeft===e}},{key:"isScrollTopHandler",value:function(e){return this.currentHandlers.scrollTop===e}},{key:"isScrollLeftEndHandler",value:function(e){return this.currentHandlers.scrollLeft===e&&"scrollleftend"===this.currentEventType}},{key:"isScrollTopEndHandler",value:function(e){return this.currentHandlers.scrollTop===e&&"scrolltopend"===this.currentEventType}},{key:"isScrolling",value:function(){return this.scrollEndTimeStamp.x>0||this.scrollEndTimeStamp.y>0}},{key:"isWindowScrolling",value:function(){return this.windowScrollEndTimer>0}},{key:"isPinchHandler",value:function(e){return this.currentHandlers.pinch===e}},{key:"isCurrentSource",value:function(e){return this.currentTouch.source===e}},{key:"isFormHandler",value:function(e){var t,r,n=this.currentOriginalEvent,i=null===(t=e.$dom)||void 0===t?void 0:t.element,a=null==n?void 0:n.target;return!!(i&&a&&(a===i||null!==(r=i.contains)&&void 0!==r&&r.call(i,a)))}},{key:"getOrientation",value:function(){return this.currentTouch.orientation}},{key:"countTouches",value:function(e){var t,r;return(null===(t=e.touches)||void 0===t?void 0:t.length)||(null===(r=e.originalEvent)||void 0===r||null===(r=r.touches)||void 0===r?void 0:r.length)}},{key:"getTouch",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(null===(t=e.touches)||void 0===t?void 0:t[n])||(null===(r=e.originalEvent)||void 0===r||null===(r=r.touches)||void 0===r?void 0:r[n])||e,a=o.d.isDefined(i.clientX)?i.clientX:i.pageX||0,l=o.d.isDefined(i.clientY)?i.clientY:i.pageY||0;return{x:a,y:l,originalX:a,originalY:l,target:i.target,timeStamp:o.d.now()}}},{key:"move",value:function(e){if(1===this.touchCount){if(this.start0.y=this.end0?this.end0.y:this.start0.y,this.start0.x=this.end0?this.end0.x:this.start0.x,this.end0=this.getTouch(e),o.d.isDefined(this.end0)){var t=o.d.distance(this.start0.originalX,this.start0.originalY,this.end0.x,this.end0.y);this.maxPointerMoveDistance=Math.max(this.maxPointerMoveDistance,t);var r=this.start0.x-this.end0.x,n=this.start0.y-this.end0.y;this.setDeltaXDeltaY(r,n,"touch")}}else if(this.touchCount>=2){this.end0=this.getTouch(e),this.end1=this.getTouch(e,1);var i=o.d.distance(this.start0.x,this.start0.y,this.start1.x,this.start1.y),a=o.d.distance(this.end0.x,this.end0.y,this.end1.x,this.end1.y)-i;this.currentTouch.pinchDelta=a>0?.3:a<0?-.3:0}}},{key:"end",value:function(){if(this.touchCount<=1&&this.start0){var e,t=0,r=0,n=0;o.d.isDefined(this.end0)&&(t=this.start0.originalX-this.end0.x,r=this.start0.originalY-this.end0.y,n=o.d.now()-this.start0.timeStamp<250?o.d.now()-this.start0.timeStamp:0),"horizontal"===this.currentTouch.orientation&&Math.abs(t)>0&&n>0?(e=o.d.momentum(0,t,n),this.scrollEndTimeStamp.x=this.end0.timeStamp+e.duration,this.scrollEndTimeStamp.x-o.d.now()>0&&(this.currentTouch.deltaX=e.distance,this.currentTouch.manualMomentumFlag=!0)):"vertical"===this.currentTouch.orientation&&Math.abs(r)>0&&n>0&&(e=o.d.momentum(0,r,n),this.scrollEndTimeStamp.y=this.end0.timeStamp+e.duration,this.scrollEndTimeStamp.y-o.d.now()>0&&(this.currentTouch.deltaY=e.distance,this.currentTouch.manualMomentumFlag=!0))}}},{key:"setDeltaXDeltaY",value:function(e,t,r){var n=Math.abs(e)-Math.abs(t);n>=1?("none"===this.currentTouch.orientation||"vertical"===this.currentTouch.orientation&&n>=2||"horizontal"===this.currentTouch.orientation)&&(this.currentTouch.orientation="horizontal"):("none"===this.currentTouch.orientation||"horizontal"===this.currentTouch.orientation&&n<=-2||"vertical"===this.currentTouch.orientation)&&(this.currentTouch.orientation="vertical");var i=o.d.now(),a="touch"===r?0:500;"horizontal"===this.currentTouch.orientation?(this.currentTouch.dir=e<0?"left":e>0?"right":this.currentTouch.dir,this.scrollEndTimeStamp.x=i+a,this.removeScrollEndEvents("x")):(this.currentTouch.dir=t<0?"up":t>0?"down":this.currentTouch.dir,this.scrollEndTimeStamp.y=i+a,this.removeScrollEndEvents("y")),this.currentTouch.source=r,this.currentTouch.prevDeltaX+=e,this.currentTouch.prevDeltaY+=t,this.currentTouch.deltaX=this.currentTouch.prevDeltaX,this.currentTouch.deltaY=this.currentTouch.prevDeltaY,a&&(this.scrollEndTimeStamp.x>0||this.scrollEndTimeStamp.y>0)&&St().schedule(a,"scroll-end-check")}},{key:"wheel",value:function(e){var t=0,r=0;this.currentTouch.pinchDelta=0,this.start0=this.getTouch(e),e.ctrlKey&&"deltaY"in e?this.currentTouch.pinchDelta=-e.deltaY/10:"deltaX"in e?(t=e.deltaX,r=e.deltaY):"wheelDeltaX"in e?(t=-e.wheelDeltaX/120,r=-e.wheelDeltaY/120):"wheelDelta"in e?t=-e.wheelDelta/120:"detail"in e&&(t=e.detail/3),this.setDeltaXDeltaY(t,r,"wheel")}}],r&&v(t.prototype,r),i&&v(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,i}();y(p,"MAX_EVENT_QUEUE_SIZE",10),y(p,"MAX_EVENT_TYPE_CAPACITY",2),y(p,"CLICK_MOVE_THRESHOLD",10);var m=r(333),b=r(791),T=["url","cacheId"];function w(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=M(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function k(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||M(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||M(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){if(e){if("string"==typeof e)return E(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t,r){return(t=P(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,P(n.key),n)}}function P(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O(t)?t:t+""}var A=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cacheMap={},this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.targetPageKeyMap=new WeakMap,this.fetchSeq=0,this.runtimeEpoch=0},t=[{key:"clear",value:function(){this.runtimeEpoch++,this.fetchingAPIMap={},this.fetchingImageMap={}}},{key:"clearAll",value:function(){this.runtimeEpoch++,this.cacheMap={},this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.targetPageKeyMap=new WeakMap,this.fetchSeq=0}},{key:"setTargetPageKey",value:function(e,t,r){var n=this.targetPageKeyMap.get(e);n||(n=new Map,this.targetPageKeyMap.set(e,n)),n.set(t,r)}},{key:"getTargetPageKey",value:function(e,t){var r,n;return null!==(r=null===(n=this.targetPageKeyMap.get(e))||void 0===n?void 0:n.get(t))&&void 0!==r?r:document.URL}},{key:"fetchCommon",value:function(e,t,r,n,i,a){m.g.markFetchAction(r);var l=document.URL,s=r.key;return this.setTargetPageKey(r,s,l),this.isFetched(t)?n[e]||(n[e]={fetchId:e,cacheId:t,request:i,startTime:o.d.now(),epoch:this.runtimeEpoch,targets:[{tmodel:r,targetName:s}],fetchMap:n}):n[e]||(n[e]={fetchId:e,cacheId:t,request:i,startTime:o.d.now(),epoch:this.runtimeEpoch,targets:[{tmodel:r,targetName:s}],fetchMap:n},a(n[e])),this.addToTModelKeyMap(r,s,e,t,n),e}},{key:"fetch",value:function(e,t,r,n){var i=this;if(!t||"object"!==O(t)||Array.isArray(t))(Array.isArray(t)?t:[t]).forEach((function(t){i.fetchOne(e,t,r,n)}));else{var a=t.url,o=t.cacheId,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,T);this.fetchOne(e,a,l,null!=o?o:n)}}},{key:"fetchOne",value:function(e,t,r,n){var i=this,a=this.getFetchKey(e,t,r),o={type:"api",url:t,query:b.s.encodeValue(r)};this.fetchCommon(a,n,e,this.fetchingAPIMap,o,(function(e){return i.ajaxAPI(t,r,e)}))}},{key:"fetchImage",value:function(e,t,r){var n=this;(Array.isArray(t)?t:[t]).forEach((function(t){var i=n.getFetchKey(e,t),a={type:"image",src:t};n.fetchCommon(i,r,e,n.fetchingImageMap,a,(function(e){return n.loadImage(t,e)}))}))}},{key:"getFetchKey",value:function(e,t,r){var n=r?"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key),"_").concat(JSON.stringify(r)):"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key));return"".concat(n,"_").concat(++this.fetchSeq)}},{key:"getTModelKey",value:function(e,t){var r=this.getTargetPageKey(e,t);return"".concat(r,"_").concat(e.oid,"_").concat(t)}},{key:"createTModelEntry",value:function(e,t){return{pageKey:this.getTargetPageKey(e,t),oid:e.oid,targetName:t,fetchMap:{},entryCount:0,resultCount:0,errorCount:0,activeIndex:0,accessIndex:0}}},{key:"addToTModelKeyMap",value:function(e,t,r,n,i){var a=this.getTModelKey(e,t),l=o.d.getLoadTargetName(t),s=this.isLoadingComplete(e,t),u=this.tmodelKeyMap[a];!s&&u&&Array.isArray(e.val(l))||(u=this.createTModelEntry(e,t),this.tmodelKeyMap[a]=u,e.val(l,[])),u.fetchMap[r]={fetchId:r,order:u.entryCount},u.entryCount++,e.val(l).push(void 0),n&&this.isFetched(n)&&(i[r].startTime=o.d.now(),this.handleSuccess(i[r],this.cacheMap[n].result))}},{key:"getPendingRequestSnapshots",value:function(e){var t=this;return Object.values(e).map((function(e){return{cacheId:e.cacheId,request:b.s.encodeValue(e.request),targets:e.targets.map((function(r){var n,i=r.tmodel,a=r.targetName,o=t.getTModelKey(i,a),l=t.tmodelKeyMap[o],s=null==l||null===(n=l.fetchMap)||void 0===n?void 0:n[e.fetchId];return{oid:i.oid,targetName:a,order:null==s?void 0:s.order}})).filter((function(e){return Number.isFinite(e.order)}))}}))}},{key:"removeFromTModelKeyMap",value:function(e,t){var r=this.getTModelKey(e,t);delete this.tmodelKeyMap[r]}},{key:"isLoading",value:function(e,t){var r=this.getTModelKey(e,t);return this.tmodelKeyMap[r]}},{key:"isLoadingSuccessful",value:function(e,t){var r=this.getTModelKey(e,t);return this.tmodelKeyMap[r]&&this.tmodelKeyMap[r].resultCount===this.tmodelKeyMap[r].entryCount}},{key:"isLoadingComplete",value:function(e,t){var r=this.getTModelKey(e,t);return!!this.tmodelKeyMap[r]&&this.tmodelKeyMap[r].resultCount===this.tmodelKeyMap[r].entryCount&&this.tmodelKeyMap[r].activeIndex===this.tmodelKeyMap[r].entryCount&&this.tmodelKeyMap[r].resultCount===e.getTargetCycles(t)}},{key:"resetLoadingError",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];n&&(n.errorCount=0)}},{key:"nextActiveItem",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];return!!n&&n.activeIndex++}},{key:"isNextLoadingItemSuccessful",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];if(!n)return!1;var i=o.d.getLoadTargetName(t),a=e.val(i);return Array.isArray(a)&&o.d.isDefined(a[n.activeIndex])&&o.d.isDefined(a[n.accessIndex])}},{key:"getLoadingItemValue",value:function(e,t,r){var n=this.getTModelKey(e,t),i=this.tmodelKeyMap[n];if(i&&!(i.accessIndex>=i.resultCount)){var a,l=o.d.getLoadTargetName(t),s=e.val(l);return s&&(null!=r&&r.endsWith("$$")?(a=s.slice(i.accessIndex,i.resultCount),i.accessIndex+=a.length):o.d.isDefined(s[i.accessIndex])&&(a=s[i.accessIndex],i.accessIndex=Math.min(i.accessIndex+1,i.entryCount))),a}}},{key:"isFetched",value:function(e){var t,r;return null!==(t=null===(r=this.cacheMap[e])||void 0===r?void 0:r.success)&&void 0!==t&&t}},{key:"getFetchingPeriod",value:function(e){return this.fetchingAPIMap[e]?o.d.now()-this.fetchingAPIMap[e].startTime:void 0}},{key:"fetchCache",value:function(e){return this.cacheMap[e]}},{key:"calculateTargetStatus",value:function(e,t){var r=e.getTargetCycle(t),n=e.getTargetCycles(t);return e.isTargetInLoop(t)||r<n-1?"active":this.isLoadingSuccessful(e,t)?"done":"fetching"}},{key:"handleSuccess",value:function(e,t){var r=this;if(e.epoch===this.runtimeEpoch){var n=o.d.now(),i=e.fetchId,a=e.cacheId,l=e.startTime,s=e.targets,u=e.fetchMap,c={fetchingPeriod:n-l,success:!0,result:t};s.forEach((function(e){var t=e.tmodel,n=e.targetName,a=r.getTModelKey(t,n),l=r.tmodelKeyMap[a],s=o.d.getLoadTargetName(n);if(l&&l.fetchMap[i]){var u=l.fetchMap[i];r.callOnSuccessHandler(t,n,C(C({},c),{},{order:u.order}));var d=t.val(s);d&&(o.d.isDefined(d[u.order])||l.resultCount++,d[u.order]=c.result),t.val(n,c.result);var h=r.calculateTargetStatus(t,n);t.setTargetStatus(n,h),t.setLastUpdate(n),m.g.shouldActivateNextTarget(t,n)}})),delete u[i],a&&(this.cacheMap[a]=c),St().schedule(0,"api_success_".concat(i))}}},{key:"handleError",value:function(e,t){var r=this;if(e.epoch===this.runtimeEpoch){var n=o.d.now(),i=e.fetchId,a=e.cacheId,l=e.startTime,s=e.targets,u=e.fetchMap;s.forEach((function(e){var a=e.tmodel,s=e.targetName,u=r.getTModelKey(a,s),c=r.tmodelKeyMap[u],d=o.d.getLoadTargetName(s);if(c&&c.fetchMap[i]){var h=c.fetchMap[i],f={fetchingPeriod:n-l,success:!1,order:h.order,error:t},v=a.val(d);v&&(o.d.isDefined(v[h.order])||c.resultCount++,v[h.order]=f),a.val(s,f),c.errorCount++,r.callOnErrorHandler(a,s);var y=r.calculateTargetStatus(a,s);a.setTargetStatus(s,y),a.setLastUpdate(s),m.g.shouldActivateNextTarget(a,s)}})),delete u[i],a&&delete this.cacheMap[a],St().schedule(0,"api_error_".concat(i))}}},{key:"callOnSuccessHandler",value:function(e,t,r){var n,i=null===(n=e.targets[t])||void 0===n?void 0:n.onSuccess;i&&("function"==typeof i?(e.setTargetMethodName(t,"onSuccess"),i.call(e,r)):Array.isArray(i)?i.forEach((function(t){return m.g.activateSingleTarget(e,t)})):m.g.activateSingleTarget(e,i))}},{key:"callOnErrorHandler",value:function(e,t){var r,n=null===(r=e.targets[t])||void 0===r?void 0:r.onError;n&&("function"==typeof n?(e.setTargetMethodName(t,"onError"),n.call(e,e.val(t))):Array.isArray(n)?n.forEach((function(t){return m.g.activateSingleTarget(e,t)})):m.g.activateSingleTarget(e,n))}},{key:"ajaxAPI",value:function(e,t,r){var i,a,o,l=this,s={url:e,dataType:"json",type:"GET",success:function(e){return l.handleSuccess(r,e)},error:function(e){return l.handleError(r,e)}};if((u=t)&&"object"===O(u)&&!Array.isArray(u)){for(var u,c=new Set(["data","type","method","requestType","dataType","headers","contentType","timeout","processData","cache","beforeSend","withCredentials","xhrFields"]),d={},h={},f=0,v=Object.entries(t);f<v.length;f++){var y=S(v[f],2),g=y[0],p=y[1];"requestType"===g?d.type=p:c.has(g)?d[g]=p:h[g]=p}var m=C(C(C({},s),d),{},{type:null!==(i=null!==(a=d.method)&&void 0!==a?a:d.type)&&void 0!==i?i:s.type,dataType:null!==(o=d.dataType)&&void 0!==o?o:s.dataType});!("data"in m)&&Object.keys(h).length&&(m.data=h),n.J.ajax(m)}else n.J.ajax(C(C({},s),{},{data:t}))}},{key:"loadImage",value:function(e,t){var r=this,n=new Image;n.src=e,n.onload=function(){var e={width:n.width,height:n.height,src:n.src};r.handleSuccess(t,e)},n.onerror=function(){r.handleError(t,"not found")}}},{key:"createRuntimeSnapshot",value:function(){return{cacheMap:b.s.encodeValue(this.cacheMap),entries:Object.values(this.tmodelKeyMap).map((function(e){return{pageKey:e.pageKey,oid:e.oid,targetName:e.targetName,entryCount:e.entryCount,resultCount:e.resultCount,errorCount:e.errorCount,activeIndex:e.activeIndex,accessIndex:e.accessIndex}})),pendingRequests:[].concat(k(this.getPendingRequestSnapshots(this.fetchingAPIMap)),k(this.getPendingRequestSnapshots(this.fetchingImageMap)))}}},{key:"restorePendingRequest",value:function(e,t){var r,n=b.s.decodeValue(e.request,t),i=[],a=w(e.targets||[]);try{for(a.s();!(r=a.n()).done;){var l=r.value,s=t[l.oid];if(s){var u=this.getTModelKey(s,l.targetName);this.tmodelKeyMap[u]&&i.push({tmodel:s,targetName:l.targetName,order:l.order})}}}catch(e){a.e(e)}finally{a.f()}if(i.length){var c="restored_".concat(++this.fetchSeq),d="image"===n.type?this.fetchingImageMap:this.fetchingAPIMap,h={fetchId:c,cacheId:e.cacheId,request:n,startTime:o.d.now(),epoch:this.runtimeEpoch,targets:i.map((function(e){return{tmodel:e.tmodel,targetName:e.targetName}})),fetchMap:d};d[c]=h;for(var f=0,v=i;f<v.length;f++){var y=v[f],g=y.tmodel,p=y.targetName,m=y.order,T=this.getTModelKey(g,p);this.tmodelKeyMap[T].fetchMap[c]={fetchId:c,order:m}}e.cacheId&&this.isFetched(e.cacheId)?this.handleSuccess(h,this.cacheMap[e.cacheId].result):"image"===n.type?this.loadImage(n.src,h):this.ajaxAPI(n.url,n.query,h)}}},{key:"restoreRuntimeSnapshot",value:function(e,t){this.clear(),this.cacheMap=b.s.decodeValue((null==e?void 0:e.cacheMap)||{},t),this.tmodelKeyMap={},this.targetPageKeyMap=new WeakMap;var r,n=w((null==e?void 0:e.entries)||[]);try{for(n.s();!(r=n.n()).done;){var i=r.value,a=t[i.oid];if(a){this.setTargetPageKey(a,i.targetName,i.pageKey);var o=this.getTModelKey(a,i.targetName);this.tmodelKeyMap[o]={pageKey:i.pageKey,oid:i.oid,targetName:i.targetName,fetchMap:{},entryCount:i.entryCount,resultCount:i.resultCount,errorCount:i.errorCount,activeIndex:i.activeIndex,accessIndex:i.accessIndex}}}}catch(e){n.e(e)}finally{n.f()}var l,s=w((null==e?void 0:e.pendingRequests)||[]);try{for(s.s();!(l=s.n()).done;){var u=l.value;this.restorePendingRequest(u,t)}}catch(e){s.e(e)}finally{s.f()}}}],t&&L(e.prototype,t),r&&L(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),_=r(714),j=r(249),I=r(161);function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=H(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){K(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function K(e,t,r){return(t=z(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $(){$=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:D(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==V(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(V(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new E(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function q(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function X(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){q(a,n,i,o,l,"next",e)}function l(e){q(a,n,i,o,l,"throw",e)}o(void 0)}))}}function Y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z(n.key),n)}}function z(e){var t=function(e,t){if("object"!=V(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==V(t)?t:t+""}var Q=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hasLocationList=[],this.hasLocationMap={},this.visibleChildrenLengthMap={},this.updatedContainerMap={},this.locationListStats=[],this.domIslandSet=new Set,this.activatedList=[],this.activatedMap={},this.calcBusy=!1,this.calcQueued=!1,this.calcEpoch=0},t=[{key:"clear",value:function(){this.visibleChildrenLengthMap={},this.updatedContainerMap={},this.activatedList=[],this.activatedMap={},this.domIslandSet.clear(),this.calcBusy=!1,this.calcQueued=!1}},{key:"calculateActivated",value:function(){var e=0,t=this.activatedList;for(this.activatedList=[],this.activatedMap={};e<t.length;){var r=t[e++],n=r.activatedTargets.slice(0);r.activatedTargets.length=0,wt().applyTargetValues(r,n),r.updatingTargetList.length>0&&wt().setActualValues(r,r.updatingTargetList),this.hasLocationMap[r.oid]||this.addToLocationList(r)}}},{key:"calculateAll",value:(i=X($().mark((function e(){var t,r,n,i,a=arguments;return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:8,r=this.calcEpoch,!this.calcBusy){e.next=5;break}return this.calcQueued=!0,e.abrupt("return");case 5:return this.calcBusy=!0,this.hasLocationList.length=0,this.hasLocationMap={},this.locationListStats=[],n=[{container:vt(),stage:"init",children:[],viewport:void 0,index:0}],i={budgetMs:t,sliceStart:o.d.now(),calcEpoch:r},e.next=13,this.processStack(n,i);case 13:if(i.calcEpoch===this.calcEpoch){e.next=15;break}return e.abrupt("return");case 15:if(this.processAfterStack(),this.calcBusy=!1,!this.calcQueued){e.next=20;break}return this.calcQueued=!1,e.abrupt("return",this.calculateAll(t));case 20:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"cancelCurrentCalculation",value:function(){this.calcEpoch++,this.calcBusy=!1,this.calcQueued=!1}},{key:"processStack",value:(n=X($().mark((function e(t,r){var n,i,a,l,s,u,c,d=this;return $().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e){var t=e.container;t.adjustViewport(),t.calcContentWidthHeight()},i=function(e){var t=e.children[e.index];t&&t.getDirtyLayout()&&t.isComplete()&&!t.hasChildren()&&t.removeLayoutDirty(t,t.dirtyLayout.oids?Object.keys(t.dirtyLayout.oids):void 0),e.stage="afterChild"},a=function(e){var t=e.container,r=e.children,n=e.viewport,i=r[e.index];i&&(i.useContentHeight()&&(i.actualValues.height!==i.getContentHeight()&&(i.actualValues.height=i.getContentHeight(),i.markLayoutDirty("contentWidthHeight")),i.addToStyleTargetList("height")),i.useContentWidth()&&(i.actualValues.width!==i.getContentWidth()&&(i.actualValues.width=i.getContentWidth(),i.markLayoutDirty("contentWidthHeight")),i.addToStyleTargetList("width")),i.isInFlow()&&(o.d.isNumber(i.val("appendNewLine"))?n.appendNewLine():n.nextLocation(),t.calcContentWidthHeight()),(i.hasEventDirty()||yt().getEventType()||yt().hasDelta())&&(d.checkExternalEvents(i),i.hasEventDirty()&&(i.processedEventEpoch=i.eventDirtyEpoch))),e.index++,e.index<e.children.length&&(e.stage="child")},l=function(e){var r,n=e.container,i=e.children,a=e.viewport,o=i[e.index];if(o){if(o.isDomIsland()&&o.originWindowEpoch!==yt().getWindowEpoch()&&o.hasDom()&&(o.calcAbsolutePositionFromDom(),o.originWindowEpoch=yt().getWindowEpoch()),a.setCurrentChild(o),!o.getDirtyLayout()&&!o.currentStatus&&0===o.activeTargetList.length)return d.calcNextLocation(o,n,a),void e.index++;o.isDomIsland()&&d.domIslandSet.add(o),a.setLocation(),a.isOverflow()&&(a.overflow(),a.setLocation(),o.markLayoutDirty("overflow"));var l,s,u,c,h=Math.floor(o.actualValues.x),f=Math.floor(o.actualValues.y);o.isIncluded()&&d.calculateTargets(o),o.isIncluded()&&o.targets.onVisibleChildrenChange&&!d.visibleChildrenLengthMap[o.oid]&&(d.visibleChildrenLengthMap[o.oid]={tmodel:o,visibleCount:o.visibleChildren.length}),d.addToLocationList(o),j.a.isXDefined(o)||(o.actualValues.x=o.x),j.a.isYDefined(o)||(o.actualValues.y=o.y),o.isDomIsland()||o.calcAbsolutePosition(o.getX(),o.getY()),o.excludeDefaultStyling()||d.fixLocation(o,h,f),d.calculateVisibility(o),(null===(r=o.getDirtyLayout())||void 0===r?void 0:r.count)>0?d.locationListStats.push("".concat(o.oid,"|").concat(null===(l=o.getDirtyLayout())||void 0===l?void 0:l.count,"|").concat(null===(s=o.getDirtyLayout())||void 0===s?void 0:s.lastKey)):d.locationListStats.push("".concat(o.oid,"|").concat(null!==(u=null===(c=o.getDirtyLayout())||void 0===c?void 0:c.count)&&void 0!==u?u:0)),e.stage="resetDirtyLayout",o.hasChildren()&&o.shouldCalculateChildren()&&t.push({container:o,stage:"init",children:[],viewport:void 0,index:0})}else e.index++};case 4:if(!t.length){e.next=25;break}if(r.calcEpoch===this.calcEpoch){e.next=7;break}return e.abrupt("return");case 7:if(!(o.d.now()-r.sliceStart>r.budgetMs)){e.next=14;break}return e.next=10,new Promise(requestAnimationFrame);case 10:if(r.calcEpoch===this.calcEpoch){e.next=12;break}return e.abrupt("return");case 12:return r.sliceStart=o.d.now(),e.abrupt("continue",4);case 14:if("init"===(s=t[t.length-1]).stage&&(u=s.container,c=this.calcChildren(u),u.childrenUpdateFlag&&(u.childrenUpdateFlag=!1,u.targets.onChildrenChange&&(this.updatedContainerMap[u.oid]=u)),u.shouldBeBracketed()&&(u.backupDirtyLayout=W({},u.dirtyLayout)),u.visibleChildren.length=0,s.children=c.slice(0),s.index=0,s.viewport=u.createViewport(),s.stage="child"),"resetDirtyLayout"===s.stage&&i(s),"afterChild"===s.stage&&a(s),!(s.index>=s.children.length)){e.next=22;break}return n(s),t.pop(),e.abrupt("continue",4);case 22:"child"===s.stage&&l(s),e.next=4;break;case 25:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"processAfterStack",value:function(){for(var e in this.visibleChildrenLengthMap){var t=this.visibleChildrenLengthMap[e],r=t.tmodel,n=t.visibleCount;!r.isVisible()||n===r.visibleChildren.length&&0!==r.visibleChildren.length||(this.runEventTargets(r,["onVisibleChildrenChange"]),this.visibleChildrenLengthMap[e].visibleCount=r.visibleChildren.length)}for(var i in this.updatedContainerMap){var a=this.updatedContainerMap[i];a.isVisible()&&this.runEventTargets(a,["onChildrenChange"]),delete this.updatedContainerMap[i]}}},{key:"calcChildren",value:function(e){return e.getChildren(),e.shouldBeBracketed()?_.M.generate(e):(e.lastChildrenUpdate.additions.length=0,e.lastChildrenUpdate.deletions.length=0,_.M.bracketMap[e.oid]&&(delete _.M.bracketMap[e.oid],delete _.M.pageMap[e.oid]),e.getChildren())}},{key:"calcNextLocation",value:function(e,t,r){var n;r.setLocation(),r.isOverflow()&&(r.overflow(),r.setLocation(),e.markLayoutDirty("overflow")),e.isIncluded()&&e.targets.onVisibleChildrenChange&&!this.visibleChildrenLengthMap[e.oid]&&(this.visibleChildrenLengthMap[e.oid]={tmodel:e,visibleCount:e.visibleChildren.length}),j.a.isXDefined(e)||(e.actualValues.x=e.x),j.a.isYDefined(e)||(e.actualValues.y=e.y),e.isDomIsland()||e.calcAbsolutePosition(e.getX(),e.getY()),e.excludeDefaultStyling()||(this.addToTransformTargetList(e,"x"),this.addToTransformTargetList(e,"y")),((null===(n=e.styleTargetMap)||void 0===n?void 0:n.size)>0||e.updatingTargetList.length>0)&&this.addToLocationList(e),this.calculateVisibility(e),e.isInFlow()&&(o.d.isNumber(e.val("appendNewLine"))?r.appendNewLine():r.nextLocation(),t.calcContentWidthHeight())}},{key:"calculateVisibility",value:function(e){var t,r,n,i=e.isVisible(),a=null!==(t=null===(r=e.visibilityStatus)||void 0===r?void 0:r.isVisible)&&void 0!==t?t:void 0;if(e.visibilityStatus||(e.visibilityStatus={}),e.visibilityStatus.lastIsVisible=e.visibilityStatus.isVisible,o.d.isDefined(e.targets.isVisible))n="function"==typeof e.targets.isVisible.value?e.targets.isVisible.value.call(e):!!e.targets.isVisible,e.actualValues.isVisible=n,e.isNowVisible=!i&&n,e.isNowInvisible=(i||void 0===i)&&!n;else{var l=e.calcVisibility();n=l,e.isNowVisible=!i&&n||!a&&l,e.isNowInvisible=(i||void 0===i)&&!n||a&&!l,e.actualValues.isVisible=n}(e.isNowVisible||e.isNowInvisible)&&e.markLayoutDirty("isNowVisible"),e.isNowInvisible&&this.addToLocationList(e),I.O.pauseResumeSchedule(e),"BI"!==e.type&&e.isVisible()&&e.isInFlow()&&e.getParent()&&e.getParent().visibleChildren.push(e)}},{key:"calculateTargets",value:function(e){this.checkInternalEvents(e);for(var t=0;e.activatedTargets.length&&t++<50;){var r=e.activatedTargets.slice(0);e.activatedTargets.length=0;var n,i=F(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;wt().applyTargetValue(e,a)}}catch(e){i.e(e)}finally{i.f()}}if(I.O.pauseResumeSchedule(e),e.activateChangedPassiveTargets(),wt().applyTargetValues(e),e.updatingTargetList.length>0&&wt().setActualValues(e,e.updatingTargetList),j.a.shouldMeasureWidthFromDom(e)&&(e.hasDom()?j.a.setWidthFromDom(e):e.markLayoutDirty("width")),j.a.shouldMeasureHeightFromDom(e)&&(e.hasDom()?j.a.setHeightFromDom(e):e.markLayoutDirty("height")),e.isNowVisible||e.hasDomNow){var o=e.pendingTargets;if(o)for(var l=0,s=R(o);l<s.length;l++){var u=s[l];m.g.cleanupTarget(e,u),m.g.shouldActivateNextTarget(e,u)}}e.isNowVisible=!1,e.hasDomNow=!1,e.targetExecutionCount++}},{key:"checkExternalEvents",value:function(e){var t=e.externalEventMap;if((null==t?void 0:t.size)>0){var r,n=[],i=l.u.allEventMap,a=F(t);try{for(a.s();!(r=a.n()).done;){var o=N(r.value,1)[0];i[o](e)&&n.push(e.allTargetMap[o])}}catch(e){a.e(e)}finally{a.f()}this.runEventTargets(e,n)}}},{key:"checkInternalEvents",value:function(e){var t=[],r=l.u.internalEventMap,n=e.internalEventMap;if((null==n?void 0:n.size)>0){var i,a=F(n);try{for(a.s();!(i=a.n()).done;){var o=N(i.value,1)[0];r[o](e)&&t.push(e.allTargetMap[o])}}catch(e){a.e(e)}finally{a.f()}}this.runEventTargets(e,t)}},{key:"runEventTargets",value:function(e,t){t.forEach((function(t){if(e.isTargetEnabled(t)&&!e.isTargetUpdating(t)){e.targetValues[t]&&(e.targetValues[t].status=""),s.j.prepareTarget(e,t),s.j.resolveTargetValue(e,t),s.j.updateTarget(e,e.targetValues[t],t,!1);var r=e.val(t);Array.isArray(r)?r.forEach((function(t){return m.g.activateSingleTarget(e,t)})):"string"==typeof r&&m.g.activateSingleTarget(e,r),m.g.shouldActivateNextTarget(e,t)}}))}},{key:"addToLocationList",value:function(e){this.hasLocationMap[e.oid]||(this.hasLocationList.push(e),this.hasLocationMap[e.oid]=e)}},{key:"addToActivatedList",value:function(e){this.activatedMap[e.oid]||(this.activatedList.push(e),this.activatedMap[e.oid]=e)}},{key:"fixLocation",value:function(e,t,r){if(e.hasValidAnimation()){var n=Math.floor(e.actualValues.x)!==t,i=Math.floor(e.actualValues.y)!==r,a={};if(n&&"updating"!==e.getTargetStatus(e.allTargetMap.x)&&(a.x=e.actualValues.x),i&&"updating"!==e.getTargetStatus(e.allTargetMap.y)&&(a.y=e.actualValues.y),Object.keys(a).length)return void kt().rebaseAutoLayoutTransform(e,a)}this.addToTransformTargetList(e,"x"),this.addToTransformTargetList(e,"y")}},{key:"addToTransformTargetList",value:function(e,t){j.a.getTransformValue(e,t)!==Math.floor(e.tfMap[t])&&e.addToStyleTargetList(t)}},{key:"isActivated",value:function(e){return this.activatedMap[e.oid]}}],t&&Y(e.prototype,t),r&&Y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n,i}(),G=r(260);function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function J(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=te(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function ee(e){return function(e){if(Array.isArray(e))return re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){if(e){if("string"==typeof e)return re(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?re(e,t):void 0}}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t,r){return(t=ce(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oe(){oe=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:D(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==Z(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(Z(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new E(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function le(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function se(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){le(a,n,i,o,l,"next",e)}function l(e){le(a,n,i,o,l,"throw",e)}o(void 0)}))}}function ue(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ce(n.key),n)}}function ce(e){var t=function(e,t){if("object"!=Z(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z(t)?t:t+""}var de=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentLink=o.d.getFullLink(document.URL),this.lastCachedLink=void 0,this.pageCache={},this.initHistory()},t=[{key:"initHistory",value:function(){"scrollRestoration"in history&&(history.scrollRestoration="manual");var e=history.state;e&&(e.link||e.browserUrl)||history.replaceState({link:this.currentLink},"",this.currentLink)}},{key:"initPage",value:function(e){et.tRoot.$dom.outerHTML(e),et.tRoot.$dom=j.a.getRootDom(),"body"!==et.tRoot.$dom.getTagName()&&et.tRoot.$dom.attr("data-tj-no-slot","true"),G.v.initPageDoms(et.tRoot.$dom)}},{key:"openLinkFromHistory",value:(s=se(oe().mark((function e(t){var r;return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.link||t.browserUrl){e.next=3;break}return e.abrupt("return");case 3:return t.browserUrl&&history.replaceState({link:r},"",r),e.next=6,this.openLink(r,!1);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"onPageClose",value:function(){et.resizeLastUpdate=o.d.now(),yt().resizeRoot(),et.manager.getAvailableDoms().forEach((function(e){Mt().runEventTargets(e,["onPageClose"])}))}},{key:"openLink",value:(l=se(oe().mark((function e(t){var r,n=arguments;return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!(n.length>1&&void 0!==n[1])||n[1],t=o.d.getFullLink(t),e.next=4,this.storePage(this.currentLink);case 4:return this.lastCachedLink=this.currentLink,e.next=7,et.reset();case 7:if(r&&history.pushState({link:t},"",t),this.currentLink=t,this.pageCache[t]){e.next=17;break}return et.tRoot.$dom.innerHTML(""),ht.oids={},ht.tmodelIdMap={},et.tRoot=et.tRootFactory(),e.next=16,et.start();case 16:return e.abrupt("return");case 17:return e.next=19,this.restorePage(t,{shouldReset:!1});case 19:St().schedule(0,"pagemanager-processOpenLink");case 20:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"back",value:function(){return history.back()}},{key:"storePage",value:(a=se(oe().mark((function e(t){var r,i,a;return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=St().getSnapshot(),t=o.d.getFullLink(t),e.next=4,et.stop();case 4:return Mt().cancelCurrentCalculation(),this.onPageClose(),i=j.a.getPageDom(),a=i.innerHTML(),this.pageCache[t]={link:t,html:a,domState:j.a.captureDomState(i),oids:ie({},ht.oids),tmodelIdMap:ie({},ht.tmodelIdMap),visibleOidMap:ie({},et.manager.visibleOidMap),scrollLeft:n.J.getWindowScrollLeft()||0,scrollTop:n.J.getWindowScrollTop()||0,tRoot:et.tRoot,runSnapshot:r},e.abrupt("return",this.pageCache[t]);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"restorePage",value:(i=se(oe().mark((function e(t){var r,n,i,a,l,s,u,c,d,h,f,v;return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.pageCache[t]){e.next=3;break}return e.abrupt("return",!1);case 3:et.tRoot=r.tRoot,ht.oids=ie({},r.oids),ht.tmodelIdMap=ie({},r.tmodelIdMap),(n=j.a.getPageDom()).innerHTML(r.html),j.a.restoreDomState(n,r.domState),et.tRoot.$dom=j.a.getRootDom(),i=Object.values(r.visibleOidMap),a=G.v.initCacheDoms(i),l=o.d.uniqueTModels([].concat(i,ee(a))),s=J(l);try{for(s.s();!(u=s.n()).done;)(c=u.value).visibilityStatus=void 0,c.hasDom()||c.markLayoutDirty("pageRestoreNoDom")}catch(e){s.e(e)}finally{s.f()}m.g.convertAnimatingTargetsToUpdating(l),et.manager.visibleOidMap={},d=J(l);try{for(d.s();!(h=d.n()).done;)(f=h.value).isIncluded()&&(et.manager.visibleOidMap[f.oid]=f)}catch(e){d.e(e)}finally{d.f()}return et.manager.activatePendingTargetsAfterDom(l,{restoredDoneTargets:!0}),et.tRoot.markLayoutDirty("pageRestore"),e.next=23,j.a.restoreScroll(r);case 23:return e.next=25,et.start();case 25:return St().restoreSnapshot(r.runSnapshot),v=j.a.getPageDom(),j.a.restoreDomState(v,r.domState),e.next=30,j.a.restoreScroll(r);case 30:return e.next=32,j.a.restoreDomInteractionState(v,r.domState);case 32:return e.abrupt("return",!0);case 33:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"getCachedPage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastCachedLink;if(e)return e=o.d.getFullLink(e),this.pageCache[e]}},{key:"getCachedTModel",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.lastCachedLink,n=this.getCachedPage(r);return null==n||null===(t=n.tmodelIdMap)||void 0===t?void 0:t[e]}}],t&&ue(e.prototype,t),r&&ue(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,i,a,l,s}(),he=r(980);function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function ve(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||pe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=pe(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function pe(e,t){if(e){if("string"==typeof e)return me(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function be(){be=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:D(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==fe(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(fe(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new E(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(r),!0).forEach((function(t){ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ke(e,t,r){return(t=De(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Se(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function Me(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){Se(a,n,i,o,l,"next",e)}function l(e){Se(a,n,i,o,l,"throw",e)}o(void 0)}))}}function Ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,De(n.key),n)}}function De(e){var t=function(e,t){if("object"!=fe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fe(t)?t:t+""}var Ce=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stateCheckpoints={}},t=[{key:"store",value:(l=Me(be().mark((function e(){var t,r,i,a,l=arguments;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:"default",this.syncAnimationsForCheckpoint(),r=St().getSnapshot(),i=j.a.getPageDom(),a={key:t,capturedAt:o.d.now(),html:i.innerHTML(),domState:j.a.captureDomState(i),oids:we({},ht.oids),rootSnapshot:et.tRoot.createRuntimeSnapshot(),loaderSnapshot:pt().createRuntimeSnapshot(),visibleOids:Object.keys(et.manager.visibleOidMap),scrollLeft:n.J.getWindowScrollLeft()||0,scrollTop:n.J.getWindowScrollTop()||0,runSnapshot:r},this.stateCheckpoints[t]=a,e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"restore",value:(a=Me(be().mark((function e(){var t,r,n,a,l,s,u,c,d,h,f=arguments;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=f.length>0&&void 0!==f[0]?f[0]:"default",m.g.currentTargetName=void 0,m.g.currentTModel=void 0,r=this.stateCheckpoints[t]){e.next=6;break}return e.abrupt("return",!1);case 6:return pt().clear(),e.next=9,et.stop();case 9:return Mt().cancelCurrentCalculation(),e.next=12,et.reset();case 12:return ht.oids={},ht.tmodelIdMap={},n=o.d.now()-r.capturedAt,a=b.s.fromRuntimeSnapshot(r.rootSnapshot,i.c,{timeOffset:n}),l=a.root,s=a.tmodelIdMap,u=a.models,et.tRoot=l,ht.oids=we({},r.oids),ht.tmodelIdMap=s,pt().restoreRuntimeSnapshot(r.loaderSnapshot,s),(c=j.a.getPageDom()).innerHTML(r.html),j.a.restoreDomState(c,r.domState),et.tRoot.$dom=j.a.getRootDom(),d=r.visibleOids.map((function(e){return s[e]})).filter(Boolean),this.connectRestoredDoms(d,u),et.tRoot.markLayoutDirty("checkpointRestore"),e.next=29,et.start();case 29:return St().restoreSnapshot(r.runSnapshot),h=j.a.getPageDom(),j.a.restoreDomState(h,r.domState),e.next=34,j.a.restoreScroll(r);case 34:return e.next=36,j.a.restoreDomInteractionState(h,r.domState);case 36:return e.abrupt("return",!0);case 37:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"syncAnimationsForCheckpoint",value:function(){var e,t=new Map,r=ge(kt().recordMap.values());try{for(r.s();!(e=r.n()).done;){var n=e.value;if("canceled"!==n.status&&"detached"!==n.status){he.T.updateTModelFromRecord(n);var i=t.get(n.tmodel);i||(i=new Set,t.set(n.tmodel,i)),i.add(n.originalKey)}}}catch(e){r.e(e)}finally{r.f()}var a,o=ge(t);try{for(o.s();!(a=o.n()).done;){var l=ye(a.value,2),s=l[0],u=l[1];j.a.commitAnimatedStyles(s,u)}}catch(e){o.e(e)}finally{o.f()}}},{key:"normalizeRestoredModels",value:function(e){var t,r=o.d.uniqueTModels(e),n=ge(r);try{for(n.s();!(t=n.n()).done;){var i=t.value,a=new Set(i.getAnimatingTargets());a.size&&i.hasDom()&&j.a.commitAnimatedStyles(i,a),i.viewport=void 0,i.visibilityStatus=void 0,i.currentStatus="new",i.originWindowEpoch=-1,i.domHeightTimestamp=0,i.domWidthTimestamp=0,i.dirtyLayout=!1,i.markLayoutDirty("stateRestore")}}catch(e){n.e(e)}finally{n.f()}return m.g.convertAnimatingTargetsToUpdating(r),r}},{key:"connectRestoredDoms",value:function(e,t){var r=G.v.initCacheDoms(e),n=o.d.uniqueTModels([].concat(ve(e),ve(r)));this.normalizeRestoredModels(t),et.manager.visibleOidMap={};var i,a=ge(n);try{for(a.s();!(i=a.n()).done;){var l=i.value;l.isIncluded()&&(et.manager.visibleOidMap[l.oid]=l)}}catch(e){a.e(e)}finally{a.f()}return et.manager.activatePendingTargetsAfterDom(n,{restoredDoneTargets:!0}),n}},{key:"has",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return Boolean(this.stateCheckpoints[e])}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.stateCheckpoints[e]}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.has(e)?this.restore(e):this.store(e)}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return!!this.stateCheckpoints[e]&&(delete this.stateCheckpoints[e],!0)}},{key:"clearAll",value:function(){this.stateCheckpoints={}}}],t&&Ee(e.prototype,t),r&&Ee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,a,l}();function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}function Oe(e){return function(e){if(Array.isArray(e))return Ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Pe(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function Pe(e,t){if(e){if("string"==typeof e)return Ae(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ae(e,t):void 0}}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(r),!0).forEach((function(t){Ie(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ie(e,t,r){return(t=Ne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ne(n.key),n)}}function Ne(e){var t=function(e,t){if("object"!=xe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=xe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xe(t)?t:t+""}var Re=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()},t=[{key:"init",value:function(){this.lists={visible:[],rerender:[],restyle:[],reasyncStyle:[],reattach:[],relocation:[],deletedDom:[],noDom:[],updatingTModels:[],activeTModels:[],updatingTargets:[],activeTargets:[]},this.visibleOidMap={},this.preservedDomMap={},this.targetMethodMap={},this.noDomMap={},this.domPolicyMap=new Map,this.deletedTModelRoots=new Set}},{key:"clearFrameLists",value:function(){this.lists.visible.length=0,this.lists.rerender.length=0,this.lists.restyle.length=0,this.lists.reasyncStyle.length=0,this.lists.reattach.length=0,this.lists.relocation.length=0,this.lists.noDom.length=0,this.lists.updatingTModels.length=0,this.lists.activeTModels.length=0,this.lists.updatingTargets.length=0,this.lists.activeTargets.length=0,this.targetMethodMap={},this.noDomMap={}}},{key:"clearAll",value:function(){this.visibleOidMap={},this.preservedDomMap={},this.clearFrameLists(),this.deleteDoms(),this.domPolicyMap.clear()}},{key:"analyze",value:function(){var e=this,t=je({},this.visibleOidMap),r=je({},this.preservedDomMap);this.clearFrameLists(),this.collectDeletedTModels();var n,i=[],a=Le(Mt().hasLocationList);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(t[o.oid]=void 0,r[o.oid]=void 0,o.exists()){var l=o.isVisible();l&&o.isIncluded()?(this.visibleOidMap[o.oid]=o,delete this.preservedDomMap[o.oid],this.lists.visible.push(o)):delete this.visibleOidMap[o.oid];var s,u,c=this.shouldPreserveDom(o);if(!l&&c&&o.hasDom()?this.preservedDomMap[o.oid]=o:delete this.preservedDomMap[o.oid],o.hasDom()&&(o.canHaveDom()&&o.isIncluded()&&(!o.canDeleteDom()||l||c)||(this.addToDeletedDom(o),o.getChildren().forEach((function(t){t.managesOwnScroll()||e.addToRecursiveDeletedDom(t)})))),l||o.isActivated()){var d,h,f=o.state();((null===(d=f.updatingTargetList)||void 0===d?void 0:d.length)>0||o.hasAnimatingTargets())&&(this.lists.updatingTModels.push(o),this.lists.updatingTargets=[].concat(Oe(this.lists.updatingTargets),Oe(f.updatingTargetList))),(null===(h=f.activeTargetList)||void 0===h?void 0:h.length)>0&&(this.lists.activeTModels.push(o),this.lists.activeTargets=[].concat(Oe(this.lists.activeTargets),Oe(f.activeTargetList)))}if(!c||l||o.isActivated()||this.needsRestyle(o)&&this.lists.restyle.push(o),l||o.isActivated()){this.needsRerender(o)&&this.lists.rerender.push(o),this.needsRestyle(o)&&this.lists.restyle.push(o),this.needsReasyncStyle(o)&&this.lists.reasyncStyle.push(o),this.needsReattach(o)&&this.lists.reattach.push(o),this.needsRelocation(o)&&this.lists.relocation.push(o);var v=o.state();v.targetMethodMap&&Object.keys(v.targetMethodMap).length>0&&(this.targetMethodMap[o.oid]=je({},v.targetMethodMap),v.targetMethodMap={}),o.isActivated()&&i.push(o)}this.shouldCreateDom(o,l)&&!this.noDomMap[o.oid]&&(null!==(s=o.getDomHolder())&&void 0!==s&&s.exists()||this.noDomMap[null===(u=o.getDomParent())||void 0===u?void 0:u.oid]?(this.lists.noDom.push(o),this.noDomMap[o.oid]=!0):o.markLayoutDirty("noDomHolder"))}else o.hasDom()&&this.addToDeletedDom(o),delete this.visibleOidMap[o.oid],delete this.preservedDomMap[o.oid]}}catch(e){a.e(e)}finally{a.f()}return i.forEach((function(e){return e.deactivate()})),Object.values(je(je({},t),r)).filter(Boolean).forEach((function(t){var r=t.exists(),n=r&&t.isIncluded();r&&n?!t.hasDom()&&t.canHaveDom()&&(delete e.visibleOidMap[t.oid],delete e.preservedDomMap[t.oid],t.visibilityStatus=void 0,t.markLayoutDirty("noDom")):t.hasDom()?e.addToDeletedDom(t):(delete e.visibleOidMap[t.oid],delete e.preservedDomMap[t.oid],e.domPolicyMap.delete(t.oid))})),this.lists.noDom.length>0?0:this.lists.reattach.length>0?1:this.lists.relocation.length>0?2:this.lists.rerender.length>0?3:this.lists.reasyncStyle.length>0?4:this.lists.deletedDom.length>0?5:this.lists.restyle.length>0?10:-1}},{key:"shouldPreserveDom",value:function(e){if(!e.isIncluded())return!1;if("keep"===this.getDomPolicy(e))return!0;if(!e.isVisible()&&o.d.isDefined(e.targets.isVisible))return!1;for(var t=e.parent;t&&t!==vt();){if(o.d.isDefined(t.targets.canDeleteDom))return!1===t.val("canDeleteDom");if(o.d.isDefined(t.targets.isVisible))return!0===t.val("isVisible");t=t.parent}return!1}},{key:"shouldHaveDom",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.isVisible();return!(!e.canHaveDom()||!e.isIncluded())&&(t||e.requiresDom()||"keep"===this.getDomPolicy(e))}},{key:"shouldCreateDom",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.isVisible();return!e.hasDom()&&this.shouldHaveDom(e,t)}},{key:"getDomPolicy",value:function(e){if(this.domPolicyMap.has(e.oid))return this.domPolicyMap.get(e.oid);for(var t=e;t&&t!==vt();){var r=t.val("dom");if(o.d.isDefined(r))return this.domPolicyMap.set(e.oid,r),r;t=t.parent}return this.domPolicyMap.set(e.oid,"auto"),"auto"}},{key:"isBracketVisible",value:function(e){for(e=e.bracket;e&&"BI"===e.type;){if(!e.isVisible())return!1;e=e.getParent()}return!0}},{key:"addToRecursiveDeletedDom",value:function(e){var t=this;delete this.visibleOidMap[e.oid],delete this.preservedDomMap[e.oid],this.lists.deletedDom.includes(e)||(e.hasDom()&&this.lists.deletedDom.push(e),e.getChildren().forEach((function(e){e.managesOwnScroll()||t.addToRecursiveDeletedDom(e)})))}},{key:"addToDeletedDom",value:function(e){delete this.visibleOidMap[e.oid],delete this.preservedDomMap[e.oid],this.lists.deletedDom.includes(e)||this.lists.deletedDom.push(e)}},{key:"markTModelDeleted",value:function(e){e&&this.deletedTModelRoots.add(e)}},{key:"collectDeletedTModels",value:function(){var e,t=Le(this.deletedTModelRoots);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.exists()||this.addDeletedTree(r)}}catch(e){t.e(e)}finally{t.f()}this.deletedTModelRoots.clear()}},{key:"addDeletedTree",value:function(e){delete this.visibleOidMap[e.oid],delete this.preservedDomMap[e.oid],this.domPolicyMap.delete(e.oid),e.hasDom()&&!this.lists.deletedDom.includes(e)&&this.lists.deletedDom.push(e);var t,r=Le(e.getChildren());try{for(r.s();!(t=r.n()).done;){var n=t.value;this.addDeletedTree(n)}}catch(e){r.e(e)}finally{r.f()}}},{key:"getVisibles",value:function(){return Object.values(this.visibleOidMap)}},{key:"getAvailableDoms",value:function(){return Object.values(je(je({},this.preservedDomMap),this.visibleOidMap))}},{key:"needsRelocation",value:function(e){return!(!e.hasDom()||!o.d.isDefined(e.domOrderIndex))}},{key:"needsRerender",value:function(e){var t=e.getHtml();return!(!e.hasDom()||!o.d.isDefined(t)||e.$dom.innerHTML()===String(t)&&e.$dom.textOnly===e.isTextOnly())}},{key:"needsRestyle",value:function(e){var t;return e.hasDom()&&(null===(t=e.styleTargetMap)||void 0===t?void 0:t.size)>0}},{key:"needsReasyncStyle",value:function(e){var t;return e.hasDom()&&(null===(t=e.asyncStyleTargetMap)||void 0===t?void 0:t.size)>0}},{key:"needsReattach",value:function(e){return!(!e.hasDom()||e.reuseDomDefinition())&&(e.hasDomHolderChanged()||e.hasBaseElementChanged())}},{key:"renderTModels",value:function(){var e,t=Le(this.lists.rerender);try{for(t.s();!(e=t.n()).done;){var r,n,i=e.value;i.isTextOnly()?null===(r=i.$dom)||void 0===r||r.text(i.getHtml()):null===(n=i.$dom)||void 0===n||n.html(i.getHtml()),i.setLastUpdate("html"),i.domHeightTimestamp=0,i.domWidthTimestamp=0}}catch(e){t.e(e)}finally{t.f()}}},{key:"reattachTModels",value:function(){var e,t=[],r=Le(this.lists.reattach);try{for(r.s();!(e=r.n()).done;){var n=e.value,i=n.hasBaseElementChanged(),a=n.getDomParent();a&&a.$dom&&(a.$dom.removeElement(n.$dom.element),i&&(j.a.createDom(n),j.a.patchDom(n),j.a.initStyleMaps(n),this.needsRestyle(n)&&this.lists.restyle.push(n),this.needsReasyncStyle(n)&&this.lists.reasyncStyle.push(n),t.push(n)),n.getDomHolder()&&n.getDomHolder().appendTModel$Dom(n))}}catch(e){r.e(e)}finally{r.f()}this.activatePendingTargetsAfterDom(t)}},{key:"relocateTModels",value:function(){this.lists.relocation.sort((function(e,t){return t.domOrderIndex-e.domOrderIndex}));var e,t=Le(this.lists.relocation);try{for(t.s();!(e=t.n()).done;){var r=e.value,n=r.getDomParent();n&&n.$dom&&(n.$dom.relocate(r,r.domOrderIndex),r.domOrderIndex=void 0)}}catch(e){t.e(e)}finally{t.f()}}},{key:"resetTModelDom",value:function(e){e.styleMap={},e.tfMap={},e.actualValues.isVisible=!1,e.hasDomNow=!1,e.$dom=null}},{key:"deleteDoms",value:function(){var e,t=Le(this.lists.deletedDom);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.val("sourceDom")||this.deleteDom(r)}}catch(e){t.e(e)}finally{t.f()}this.lists.deletedDom.length=0}},{key:"deleteDom",value:function(e){e.hasAnimatingTargets()&&he.T.detachAnimationsOnDeleteDom(e);var t=e.getDomParent();t&&t.$dom&&t.$dom.removeElement(e.$dom.element),this.resetTModelDom(e)}},{key:"fixStyles",value:function(){var e,t=Le(this.lists.restyle);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.hasDom()&&j.a.fixStyle(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"fixAsyncStyles",value:function(){var e,t=Le(this.lists.reasyncStyle);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.hasDom()&&j.a.fixAsyncStyle(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"activatePendingTargetsAfterDom",value:function(e){var t,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).restoredDoneTargets,n=void 0===r||r,i=Le(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.hasDom()){if(a.noDomUpdatingTargets){for(var o=0,l=Oe(a.noDomUpdatingTargets);o<l.length;o++){var s=l[o];a.addTargetToStatusList(s)}a.noDomUpdatingTargets=void 0}var u=a.pendingTargets,c=new Set;if(u)for(var d=0,h=Oe(u);d<h.length;d++){var f=h[d];c.add(f),m.g.cleanupTarget(a,f),m.g.shouldActivateNextTarget(a,f)}if(n)for(var v=0,y=Object.keys(a.targetValues);v<y.length;v++){var g=y[v];"done"!==a.targetValues[g].status||c.has(g)||a.isTargetInLoop(g)||a.isTargetPassiveLoop(g)||m.g.cleanupTarget(a,g)&&m.g.shouldActivateNextTarget(a,g)}}else a.markLayoutDirty("noDom")}}catch(e){i.e(e)}finally{i.f()}}},{key:"catchupNoDomTargetsBeforeStyle",value:function(e){var t;if(null!==(t=e.noDomUpdatingTargets)&&void 0!==t&&t.size){for(var r=0,n=Oe(e.noDomUpdatingTargets);r<n.length;r++){var i=n[r],a=wt().calculateTargetStatus(e,i);e.setTargetStatus(i,a)}e.noDomUpdatingTargets=void 0}}},{key:"createDoms",value:function(){if(0!==this.lists.noDom.length){var e=new Map,t=[],r=[],i=[];this.lists.noDom.sort((function(e,t){return e.getUIDepth()-t.getUIDepth()}));var a,o=Le(this.lists.noDom);try{for(o.s();!(a=o.n()).done;){var l,s=a.value,u=null!==(l=s.domId)&&void 0!==l?l:s.oid;n.J.query("#".concat(u))?(s.$dom=new n.J("#".concat(u)),s.$dom.attr("tgjs","true"),s.hasDomNow=!0,s.markLayoutDirty("hasDomNow"),i.push(s),this.needsRerender(s)&&this.lists.rerender.push(s),this.needsRestyle(s)&&this.lists.restyle.push(s),this.needsReasyncStyle(s)&&this.lists.reasyncStyle.push(s)):r.push(s)}}catch(e){o.e(e)}finally{o.f()}for(var c=0,d=r;c<d.length;c++){var h=d[c],f=h.getDomHolder();if(f)if(h.$dom=void 0,h.val("$dom"))h.$dom=h.val("$dom"),h.hasDom()||f.appendTModel$Dom(h),i.push(h);else{j.a.createDom(h),j.a.patchDom(h),t.push(h),i.push(h);var v=e.get(f);v||(v={domHolder:f,fragment:n.J.createDocumentFragment(),tmodels:[]},e.set(f,v)),v.fragment.appendChild(h.$dom.element),v.tmodels.push(h)}else h.markLayoutDirty("noDomHolder")}var y,g=Le(e.values());try{for(g.s();!(y=g.n()).done;){var p=y.value,m=p.domHolder,b=p.fragment;m.appendElement(b)}}catch(e){g.e(e)}finally{g.f()}for(var T=0,w=i;T<w.length;T++){var k=w[T];this.catchupNoDomTargetsBeforeStyle(k)}for(var S=0,M=t;S<M.length;S++){var E=M[S];E.hasDom()&&(E.hasDomNow=!0,E.markLayoutDirty("hasDomNow")),j.a.initStyleMaps(E),j.a.fixStyle(E),j.a.fixAsyncStyle(E)}this.activatePendingTargetsAfterDom(i),yt().attachEvents(i.filter((function(e){var t;return(null===(t=e.externalEventMap)||void 0===t?void 0:t.size)>0})))}}}],t&&Ve(e.prototype,t),r&&Ve(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function Fe(e){return Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fe(e)}function He(){He=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:D(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==Fe(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(Fe(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new E(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Be(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function Ue(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){Be(a,n,i,o,l,"next",e)}function l(e){Be(a,n,i,o,l,"throw",e)}o(void 0)}))}}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ke(n.key),n)}}function Ke(e){var t=function(e,t){if("object"!=Fe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fe(t)?t:t+""}var $e,qe,Xe,Ye=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.nextRuns=[],this.domProcessing=0,this.runningFlag=!1,this.runId="",this.runStartTime=void 0,this.runDuration=0,this.rerunId="",this.delayProcess=void 0,this.resetting=!1,this.activeStartTime=void 0,this.phase=0,this.runningStep=-1,this.sliceQueued=!1,this.eventSettlePending=!1}return t=e,r=[{key:"resetRuns",value:(a=Ue(He().mark((function e(){return He().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.resetting=!0,e.next=3,new Promise((function(e){return requestAnimationFrame(e)}));case 3:this.clearDelayProcess(),this.nextRuns=[],this.domProcessing=0,this.runningFlag=!1,this.runId="",this.runStartTime=void 0,this.runDuration=0,this.rerunId="",this.delayProcess=void 0,this.resetting=!1,this.activeStartTime=void 0,this.phase=0,this.runningStep=-1,this.sliceQueued=!1,this.eventSettlePending=!1;case 18:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"scheduleOnlyIfEarlier",value:function(e,t){var r,n=(this.runningFlag&&null!==(r=this.runStartTime)&&void 0!==r?r:o.d.now())+(null!=e?e:0);this.delayProcess&&n>=this.delayProcess.runTime||this.schedule(e,t)}},{key:"schedule",value:function(e,t){if(et.isRunning()&&!this.resetting){var r=0===et.throttle?null!=e?e:0:et.throttle,n=o.d.now();this.delayRun(r,t,n)}}},{key:"run",value:(i=Ue(He().mark((function e(t,r){var n,i,a,l,s;return He().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(et.isRunning()&&!this.resetting){e.next=2;break}return e.abrupt("return");case 2:if(!this.runningFlag){e.next=5;break}return this.rerunId||(this.rerunId="rerun ".concat(r)),e.abrupt("return");case 5:if(this.rerunId="",this.runId=r,this.runningFlag=!0,this.runStartTime=o.d.now(),n=!1,1===et.debugLevel&&o.d.log(!0)("Request from: ".concat(r," delay: ").concat(t," runningStep:").concat(this.runningStep," dom:").concat(this.domProcessing," runs:").concat(this.nextRuns.length," D:").concat(null===(i=this.delayProcess)||void 0===i?void 0:i.delay," events:").concat(yt().eventQueue.length)),e.prev=11,0!==this.phase){e.next=19;break}return(a=yt().captureEvents())&&(l=a.eventType,this.eventSettlePending="start"===l||"end"===l||"click"===l),et.targetManager.applyTargetValues(vt()),e.next=18,Mt().calculateAll();case 18:this.phase=1;case 19:if(!(o.d.now()-this.runStartTime>20)){e.next=23;break}return n=!0,this.requestNextSlice(r),e.abrupt("return");case 23:if(1===this.phase&&(this.runningStep=et.manager.analyze(),this.phase=2),!(o.d.now()-this.runStartTime>20)){e.next=28;break}return n=!0,this.requestNextSlice(r),e.abrupt("return");case 28:if(2===this.phase&&(Mt().calculateActivated(),et.events.resetEventsOnTimeout(),(s=et.manager.analyze())>=0&&(this.runningStep=this.runningStep<0?s:Math.min(this.runningStep,s)),this.phase=3),!(o.d.now()-this.runStartTime>20)){e.next=33;break}return n=!0,this.requestNextSlice(r),e.abrupt("return");case 33:3===this.phase&&(this.runningStep>=0&&(0===this.domProcessing?(n=!0,this.domOperations(this.runningStep)):this.rerunId||(this.rerunId="domrun ".concat(r))),this.phase=4),this.runDuration=o.d.now()-this.runStartTime,0===this.domProcessing&&this.needsRerun(),e.next=42;break;case 38:throw e.prev=38,e.t0=e.catch(11),this.phase=0,e.t0;case 42:return e.prev=42,n||0!==this.domProcessing||(this.runningFlag=!1),e.finish(42);case 45:case"end":return e.stop()}}),e,this,[[11,38,42,45]])}))),function(e,t){return i.apply(this,arguments)})},{key:"requestNextSlice",value:function(e){var t=this;this.runningFlag=!1,this.sliceQueued||(this.sliceQueued=!0,requestAnimationFrame((function(){t.sliceQueued=!1,t.schedule(0,"slice-".concat(e))})))}},{key:"needsRerun",value:function(){this.phase=0,this.runningFlag=!1;var e=this.eventSettlePending;if(this.eventSettlePending=!1,this.rerunId){var t=this.rerunId;this.rerunId="",this.schedule(0,"rerun-".concat(t))}else if(yt().eventQueue.length>0||e)this.schedule(0,"events-".concat(yt().eventQueue.length));else{var r=this.nextRuns.length>0?this.nextRuns[0].delay-(o.d.now()-this.nextRuns[0].insertTime):void 0,n=Tt(),i=n.lists.restyle.length>0||n.lists.reasyncStyle.length>0||Mt().activatedList.length>0;if(void 0===r||n.lists.activeTModels.length>0||n.lists.updatingTModels.length>0||i)if(n.lists.updatingTModels.length>0)this.schedule(1,"getManager-needsRerun-updatingTModels");else if(n.lists.activeTModels.length>0){var a=n.lists.activeTModels.find((function(e){return 0===e.targetExecutionCount||e.activeTargetList.filter((function(t){return!e.isScheduledPending(t)})).some((function(t){return e.shouldScheduleRun(t)}))}));if(a){var l=!this.activeStartTime||o.d.now()-this.activeStartTime>15?1:15;this.activeStartTime=o.d.now(),this.schedule(l,"getManager-needsRerun-".concat(a.oid,"-").concat(a.activeTargetList))}}else i&&this.schedule(1,"needsRerun-dom-work")}this.executeNextRun()}},{key:"domOperations",value:function(t){var r=this;this.domProcessing=1,10!==t?Promise.all(e.domSteps.filter((function(e,r){return r>=t})).map((function(e){return Promise.resolve().then(e)}))).then((function(){Tt().lists.restyle.length?r.domFixStyles():(r.domProcessing=0,r.needsRerun())})).catch((function(){r.domProcessing=0,r.needsRerun()})):this.domFixStyles()}},{key:"domFixStyles",value:function(){var e=this;this.domProcessing=2,requestAnimationFrame((function(){try{Tt().fixStyles()}finally{e.domProcessing=0,e.needsRerun()}}))}},{key:"clearDelayProcess",value:function(){var e;null!==(e=this.delayProcess)&&void 0!==e&&e.timeoutId&&(clearTimeout(this.delayProcess.timeoutId),this.delayProcess.timeoutId=void 0),this.delayProcess=void 0}},{key:"setDelayProcess",value:function(e,t,r,n,i){var a=this,o={runId:e,insertTime:t,runTime:n,interval:r,delay:i,timeoutId:void 0},l=function(){var t=Ue(He().mark((function t(){return He().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a.delayProcess===o){t.next=2;break}return t.abrupt("return");case 2:return a.clearDelayProcess(),t.prev=3,t.next=6,a.run(i,e);case 6:return t.prev=6,a.executeNextRun(),t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[3,,6,9]])})));return function(){return t.apply(this,arguments)}}();this.delayProcess=o,o.timeoutId=setTimeout(l,i)}},{key:"executeNextRun",value:function(){if(!(this.runningFlag||this.domProcessing>0)){if(this.delayProcess){if(!(this.nextRuns.length>0))return;var e=this.nextRuns[0];if(!(e.insertTime+e.delay<this.delayProcess.runTime))return;clearTimeout(this.delayProcess.timeoutId);var t=Math.max(0,this.delayProcess.runTime-o.d.now());this.insertRun(this.delayProcess.runId,o.d.now(),t),this.delayProcess=void 0}for(var r=null;this.nextRuns.length>0;){var n=this.nextRuns.shift(),i=o.d.now();if(!(n.delay-(i-n.insertTime)<=0)){this.nextRuns.unshift(n);break}r=n}if(r)this.setDelayProcess(r.runId,r.insertTime,r.delay,o.d.now(),0);else if(this.nextRuns.length>0){var a=this.nextRuns[0],l=o.d.now(),s=Math.max(0,a.delay-(l-a.insertTime));this.setDelayProcess(a.runId,a.insertTime,a.delay,l+s,s)}else this.clearDelayProcess()}}},{key:"delayRun",value:function(e,t,r){var n=r+e;this.delayProcess?this.delayProcess.timeoutId&&n<this.delayProcess.runTime?(clearTimeout(this.delayProcess.timeoutId),this.insertRun(this.delayProcess.runId,this.delayProcess.insertTime,this.delayProcess.interval),this.setDelayProcess(t,r,e,n,e)):this.insertRun(t,r,e):this.setDelayProcess(t,r,e,n,e)}},{key:"insertRun",value:function(e,t,r){for(var n=0,i=this.nextRuns.length;n<i;){var a,o=n+i>>1,l=this.nextRuns[o],s=l.insertTime+l.delay-(t+r);if(0===s)return l.count=(null!==(a=l.count)&&void 0!==a?a:1)+1,void(l.runId.length<500?l.runId+="-"+e:l.runId.endsWith("-...")||(l.runId+="-..."));s>0?i=o:n=o+1}this.nextRuns.splice(n,0,{runId:e,insertTime:t,delay:r})}},{key:"getSnapshot",value:function(){var e=o.d.now(),t=[],r=function(r){if(r){var n=o.d.isDefined(r.runTime)?r.runTime:r.insertTime+r.delay;t.push({runId:r.runId,delay:Math.max(0,n-e)})}};r(this.delayProcess),this.nextRuns.forEach(r);var n=t.filter((function(e){return 0===e.delay})),i=t.filter((function(e){return e.delay>0})),a=[];return n.length&&a.push({runId:n.map((function(e){return e.runId})).join("-"),delay:0}),i.forEach((function(e){a.push(e)})),a}},{key:"restoreSnapshot",value:function(){var e=this;(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){e.schedule(t.delay,"restore-".concat(t.runId))}))}}],r&&We(t.prototype,r),n&&We(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n,i,a}();function ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function Qe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ge(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ge(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ze(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Je(n.key),n)}}function Je(e){var t=function(e,t){if("object"!=ze(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ze(t)?t:t+""}$e=Ye,Xe=[function(){return Tt().createDoms()},function(){return Tt().reattachTModels()},function(){return Tt().relocateTModels()},function(){return Tt().renderTModels()},function(){return Tt().fixAsyncStyles()},function(){return Tt().deleteDoms()}],(qe=Ke(qe="domSteps"))in $e?Object.defineProperty($e,qe,{value:Xe,enumerable:!0,configurable:!0,writable:!0}):$e[qe]=Xe;var et,tt=function(){return function(e,t,r){return t&&Ze(e.prototype,t),r&&Ze(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"applyTargetValues",value:function(e){var t,r=Qe(arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.activeTargetList.slice(0));try{for(r.s();!(t=r.n()).done;){var n=t.value;e.isTargetImperative(n)||this.applyTargetValue(e,n)}}catch(e){r.e(e)}finally{r.f()}}},{key:"applyTargetValue",value:function(e,t){var r=e.targets[t];if(o.d.isDefined(r)){if(!(I.O.shouldPauseTarget(e,t)||e.isExecuted(t)&&e.hasUpdatingImperativeTargets(t))){if(e.isExecuted(t)&&e.getTargetStep(t)===e.getTargetSteps(t)){if(e.isScheduledPending(t))return;var n=I.O.scheduleExecution(e,t);if(n>0)return void St().schedule(n,"targetSchedule__".concat(e.oid))}e.isTargetEnabled(t)?(e.resetScheduleTimeStamp(t),s.j.prepareTarget(e,t),s.j.executeDeclarativeTarget(e,t),o.d.isDefined(r.fetchAction)||m.g.shouldActivateNextTarget(e,t)):r.needsReactivation&&e.removeFromActiveTargets(t)}}else e.removeFromActiveTargets(t)}},{key:"setActualValues",value:function(e,t){if(t.length){var r,n=0,i=Qe(t=t.slice(0));try{for(i.s();!(r=i.n()).done;){var a=r.value;I.O.shouldPauseTarget(e,a)||((n=I.O.scheduleExecution(e,a))>0?St().schedule(n,"setActualValues-".concat(e.oid)):(e.resetScheduleTimeStamp(a),this.setActualValue(e,a)))}}catch(e){i.e(e)}finally{i.f()}var o=e.waapiBatch;o&&e.hasDom()?(kt().animate(e,o,he.T.getAnimationHooks()),e.waapiBatch=void 0):e.waapiBatch=void 0}}},{key:"findOriginalTModel",value:function(e,t){return a.X.findParentByTarget(e,t)||Ct().find((function(e){return e.targets[t]}))}},{key:"fireOnStep",value:function(e,t,r){var n=e.targetValues[t],i=e.getTargetValue(t),a=e.getTargetSteps(t),l=e.targets[t];e.setLastUpdate(t),e.setTargetMethodName(t,"value");var s=n.originalTargetName,u=e.targets[s],c=e;e.setTargetMethodName(t,"value"),!u&&s&&(u=(c=this.findOriginalTModel(e,s))?c.targets[s]:null);var d=!1;if(e.isTargetImperative(t)){if(u){var h=m.g.getTargetName(o.d.capitalizeFirstLetter(t));"function"==typeof u["on".concat(h,"Step")]?(u["on".concat(h,"Step")].call(c,c.val(t),i,r,a),c.setTargetMethodName(s,["on".concat(h,"Step")]),d=!0):"function"==typeof u.onImperativeStep&&(u.onImperativeStep.call(c,t,c.val(t),i,r,a),c.setTargetMethodName(s,"onImperativeStep"),d=!0),u.activateNextTarget&&!u.activateNextTarget.endsWith("$$")&&u.activateNextTarget.endsWith("$")&&(d=!0,m.g.shouldActivateNextTarget(e,t))}}else d=o.d.handleValueChange(e,t),null!=l&&l.activateNextTarget&&!l.activateNextTarget.endsWith("$$")&&l.activateNextTarget.endsWith("$")&&(d=!0,m.g.shouldActivateNextTarget(e,t));return d}},{key:"fireOnEnd",value:function(e,t){var r=e.targetValues[t];if(r){var n=e.getTargetValue(t),i=e.getTargetSteps(t);e.setLastUpdate(t);var a=r.originalTargetName,l=e.targets[a],u=e;!l&&a&&(l=(u=this.findOriginalTModel(e,a))?u.targets[a]:null);var c=this.calculateTargetStatus(e,t);if(e.setTargetStatus(t,c),e.isTargetImperative(t)){var d=m.g.getTargetName(o.d.capitalizeFirstLetter(t));l&&"function"==typeof l["on".concat(d,"End")]?(l["on".concat(d,"End")].call(u,u.val(t),n,i,i),u.setTargetMethodName(a,["on".concat(d,"End")])):l&&"function"==typeof l.onImperativeEnd&&(l.onImperativeEnd.call(u,t,u.val(t)),u.setTargetMethodName(a,"onImperativeEnd")),e.getTargetCycle(t)<e.getTargetCycles(t)-1&&(e.incrementTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t),delete r.valuePointer)}else{var h;e.getTargetCycle(t)<e.getTargetCycles(t)-1&&(e.incrementTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t),e.resetTargetExecutionFlag(t),delete r.valuePointer,s.j.executeDeclarativeTarget(e,t)),"function"==typeof(null===(h=e.targets[t])||void 0===h?void 0:h.onStepsEnd)&&(e.targets[t].onStepsEnd.call(e,e.getTargetCycle(t)),e.setTargetMethodName(t,"onStepsEnd"))}m.g.shouldActivateNextTarget(e,t)}}},{key:"calculateTargetStatus",value:function(e,t){var r=e.targetValues[t];if(r){var n=e.getValueListPointer(t),i=e.getTargetCycle(t),a=e.getTargetCycles(t),o=e.getTargetStep(t),l=e.getTargetSteps(t);return Array.isArray(r.valueList)&&n<r.valueList.length||e.isTargetImperative(t)&&i<a-1||o<l?"updating":e.isTargetInLoop(t)||i<a-1?"active":"done"}}},{key:"catchupTargetByElapsed",value:function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fireEnd,n=void 0!==r&&r,i=e.targetValues[t];if(!i)return{done:!1};var a=o.d.advanceTargetByElapsed(e,t),l=a.step,s=a.valuePointer,u=a.cycle,c=e.getTargetValue(t),d=e.getTargetSteps(t),h=e.getTargetCycles(t);if(a.done){var f,v,y,g=null!==(f=i.valueList)&&void 0!==f&&f.length?i.valueList[i.valueList.length-1]:c;return e.val(t,g),e.setActual(t,g),e.addToStyleTargetList(t),i.step=d,i.valuePointer=null!==(v=null===(y=i.valueList)||void 0===y?void 0:y.length)&&void 0!==v?v:s,i.cycle=h,delete i.catchupAt,n&&this.fireOnEnd(e,t),{done:!0,step:d,cycle:h,valuePointer:i.valuePointer}}var p=e.getTargetInitialValue(t);o.d.isDefined(p)||(p=this.resolveInitialValue(e,t,c),e.setTargetInitialValue(t,p));var m=l>0?j.a.easingMorph(e,t,p,c,l,d):p;return e.val(t,m),e.setActual(t,m),e.addToStyleTargetList(t),i.step=l,i.valuePointer=s,i.cycle=u,{done:!1,step:l,cycle:u,valuePointer:s}}},{key:"setActualValue",value:function(e,t){var r,n,i=e.targetValues[t];if(i&&this.canUpdateTarget(e,t)){var a=this.getTargetUpdateState(e,t);o.d.isDefined(a.initialValue)||(a.initialValue=this.resolveInitialValue(e,t,a.theValue),e.setTargetInitialValue(t,a.initialValue));var l=this.catchupTargetByElapsed(e,t,{fireEnd:!0});if(l.done)St().scheduleOnlyIfEarlier(1,"".concat(e.oid,"---").concat(t,"-catchup-finished"));else{var s=null!==(r=l.step)&&void 0!==r?r:0,u=null!==(n=l.valuePointer)&&void 0!==n?n:e.getValueListPointer(t);e.canBeAnimated(a.cleanKey)?this.animateActualValue(e,t,i,a,s,u):this.updateActualValue(e,t,i,a,s,u)}}}},{key:"canUpdateTarget",value:function(e,t){return!(!e.isTargetImperative(t)&&!e.isTargetEnabled(t))||(St().schedule(15,"setActualValue-postpone-".concat(e.oid)),!1)}},{key:"getTargetUpdateState",value:function(e,t){return{theValue:e.getTargetValue(t),cleanKey:m.g.getTargetName(t),steps:e.getTargetSteps(t),cycle:e.getTargetCycle(t),interval:e.getTargetInterval(t),initialValue:e.getTargetInitialValue(t),lastUpdateTime:e.getLastUpdate(t),now:o.d.now()}}},{key:"resolveInitialValue",value:function(e,t,r){return o.d.isDefined(e.val(t))?e.val(t):"number"==typeof r?0:void 0}},{key:"animateActualValue",value:function(e,t,r,n,i,a){if(e.hasDom())for(var o=i>0?j.a.easingMorph(e,t,n.initialValue,n.theValue,i,n.steps):n.initialValue,l=e.isTargetImperative(t)?e.getTargetCycles(t):0,s=he.T.handleWebAnimationAPI(e,n.cleanKey,t,r,o,n.theValue,a,i,n.steps,n.interval,0,!1,!0),u=1;u<l;u++)he.T.handleWebAnimationAPI(e,n.cleanKey,t,r,o,n.theValue,a,i,n.steps,n.interval,u*s,!0,!1)}},{key:"updateActualValue",value:function(e,t,r,n,i,a){if(i<=n.steps){e.incrementTargetStep(t,n.now,n.lastUpdateTime,n.interval,n.steps);var o=j.a.easingMorph(e,t,n.initialValue,n.theValue,i,n.steps);if(e.val(t,o),e.setActual(t,o),e.addToStyleTargetList(t),this.fireOnStep(e,t,i),e.getTargetStep(t)<n.steps)return void St().scheduleOnlyIfEarlier(n.interval,"".concat(e.oid,"---").concat(t,"-").concat(i,"/").concat(n.steps,"-").concat(n.cycle,"-").concat(n.interval))}this.finishCurrentSegment(e,t,r,n,a)}},{key:"finishCurrentSegment",value:function(e,t,r,n,i){e.val(t,n.theValue),e.setActual(t,n.theValue),e.addToStyleTargetList(t),r.step=n.steps,e.setLastUpdate(t);var a=1;if(r.valueList&&i<r.valueList.length){e.incrementValueListPointer(t);var o=e.getValueListPointer(t);e.resetTargetStep(t),r.initialValue=r.value,r.value=r.valueList[o],r.steps=r.stepList[(o-1)%r.stepList.length],r.interval=Array.isArray(r.intervalList)?r.intervalList[(o-1)%r.intervalList.length]:0,r.easing=r.easingList[(o-1)%r.easingList.length],a=n.interval}else this.fireOnEnd(e,t);St().scheduleOnlyIfEarlier(a,"".concat(e.oid,"---").concat(t,"-").concat(n.steps,"/").concat(n.steps,"-").concat(n.cycle,"-").concat(a))}}])}(),rt=r(357);function nt(e){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(e)}function it(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||ot(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ot(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function ot(e,t){if(e){if("string"==typeof e)return lt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lt(e,t):void 0}}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function st(){st=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:D(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==nt(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(nt(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new E(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function ut(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function ct(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){ut(a,n,i,o,l,"next",e)}function l(e){ut(a,n,i,o,l,"throw",e)}o(void 0)}))}}var dt=[],ht=function(e){var t;if(e){var r,n=e instanceof i.c?e:new i.c("App",e);return null!==(t=et)&&void 0!==t&&t.tRoot?(et.tRoot.addChild(n),n):"loading"===document.readyState?(dt.push(n),n):(null!==(r=et)&&void 0!==r&&r.tRoot||"loading"===document.readyState||At(),et.tRoot.addChild(n),n)}};ht.unmount=ct(st().mark((function e(){var t;return st().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(et){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,et.stop();case 4:return t=et.tRoot,t.getChildren().forEach((function(e){var r,n;e.val("sourceDom")?G.v.restoreDomState(null===(n=e.$dom)||void 0===n?void 0:n.element,e.domState):null!==(r=e.$dom)&&void 0!==r&&r.attr("tgjs")&&t.$dom.removeElement(e.$dom.element)})),t.allChildrenList=[],t.allChildrenMap={},t.clearUpdatingChildren(),t.clearActiveChildren(),t.clearAnimatingChildren(),e.next=14,et.reset();case 14:et.loader.clearAll(),ht.oids={},ht.tmodelIdMap={},et=void 0;case 18:case"end":return e.stop()}}),e)}))),ht.oids={},ht.tmodelIdMap={},ht.getOid=function(e){var t=ht.oids;o.d.isDefined(t[e])||(t[e]=0);var r=t[e]++;return{oid:r>0||e.endsWith("_")?"".concat(e).concat(r):e,num:r}};var ft=function(){return!!et&&et.runningFlag},vt=function(){var e;return null===(e=et)||void 0===e?void 0:e.tRoot},yt=function(){var e;return null===(e=et)||void 0===e?void 0:e.events},gt=function(){var e;return null===(e=et)||void 0===e?void 0:e.pager},pt=function(){var e;return null===(e=et)||void 0===e?void 0:e.loader},mt=function(e,t,r,n){var i;return null===(i=et)||void 0===i||null===(i=i.loader)||void 0===i?void 0:i.fetch(e,t,r,n)},bt=function(e,t,r){var n;return null===(n=et)||void 0===n||null===(n=n.loader)||void 0===n?void 0:n.fetchImage(e,t,r)},Tt=function(){var e;return null===(e=et)||void 0===e?void 0:e.manager},wt=function(){var e;return null===(e=et)||void 0===e?void 0:e.targetManager},kt=function(){var e;return null===(e=et)||void 0===e?void 0:e.animationManager},St=function(){var e;return null===(e=et)||void 0===e?void 0:e.runScheduler},Mt=function(){var e;return null===(e=et)||void 0===e?void 0:e.locationManager},Et=function(){var e,t;return null!==(e=null===(t=et)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenWidth"))&&void 0!==e?e:0},Dt=function(){var e,t;return null!==(e=null===(t=et)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenHeight"))&&void 0!==e?e:0},Ct=function(){var e;return null===(e=et)||void 0===e||null===(e=e.manager)||void 0===e?void 0:e.getVisibles()},xt=function(){var e;return null===(e=et)||void 0===e?void 0:e.resizeLastUpdate},Ot=function(){var e,t=null===(e=et)||void 0===e?void 0:e.stateManager;if(!t)throw new Error("TargetJS state manager is not initialized.");return t},Lt=function(e){return ht.tmodelIdMap[e]},Pt=function(e){var t=ht.tmodelIdMap[e];return t&&t.targets.sourceDom?t:void 0};"undefined"!=typeof window&&(window.t=window.t||Lt);var At=function(){var e;et||(e={throttle:0,debugLevel:0,runningFlag:!1,resizeLastUpdate:0,init:function(){return e.$window=new n.J(window),e.loader=new A,e.pager=new de,e.stateManager=new Ce,e.events=new p,e.locationManager=new Q,e.targetManager=new tt,e.animationManager=new rt._,e.manager=new Re,e.runScheduler=new Ye,e.tRootFactory=function(){var t=new i.c("tRoot",{styling:!1,domHolder:!0,isVisible:!0,screenWidth:function(){var r=n.J.getScreenWidth();return r!==t.val("screenWidth")&&(e.resizeLastUpdate=o.d.now()),r},screenHeight:function(){var r=n.J.getScreenHeight();return r!==t.val("screenHeight")&&(e.resizeLastUpdate=o.d.now()),r},initPageDom:function(){var e=this;G.v.initPageDoms(this.$dom),dt.length&&(dt.forEach((function(t){return e.addChild(t)})),dt.length=0)}});return t.$dom=j.a.getRootDom(),"body"!==t.$dom.getTagName()&&t.$dom.attr("data-tj-no-slot","true"),t.val("screenWidth",n.J.getScreenWidth()),t.val("screenHeight",n.J.getScreenHeight()),e.tRoot&&e.tRoot.getChildren().forEach((function(e){if(!e.val("sourceDom")){var r=new i.c(e.type,e.targets);t.addChild(r)}})),t},e.tRoot=e.tRootFactory(),e}},e.start=ct(st().mark((function t(){return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.runningFlag=!1,s.j.executeDeclarativeTarget(e.tRoot,"screenWidth"),s.j.executeDeclarativeTarget(e.tRoot,"screenHeight"),e.events.detachAll(),e.events.detachWindowEvents(),e.events.attachWindowEvents(),e.events.clearAll(),e.events.attachEvents(e.manager.getVisibles()),t.next=10,e.runScheduler.resetRuns();case 10:return e.runningFlag=!0,e.runScheduler.schedule(0,"appStart"),t.abrupt("return",e);case 13:case"end":return t.stop()}}),t)}))),e.stop=ct(st().mark((function t(){return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.runningFlag=!1,e.events.detachAll(),e.events.detachWindowEvents(),e.events.clearAll(),t.next=6,e.animationManager.deleteAll();case 6:return t.next=8,e.animationManager.flushOneFrame();case 8:return t.next=10,e.runScheduler.resetRuns();case 10:return t.abrupt("return",e);case 11:case"end":return t.stop()}}),t)}))),e.reset=ct(st().mark((function t(){return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.manager.getVisibles().forEach((function(e){var t;if(null!==(t=e.allStyleTargetMap)&&void 0!==t&&t.size){var r,n=at(e.allStyleTargetMap);try{for(n.s();!(r=n.n()).done;){var i=it(r.value,1)[0];o.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){n.e(e)}finally{n.f()}}})),t.next=3,e.runScheduler.resetRuns();case 3:e.manager.clearAll(),e.locationManager.clear(),e.loader.clear(),a.X.clear();case 7:case"end":return t.stop()}}),t)}))),e.isRunning=function(){return e.runningFlag},e.find=function(e){return a.X.find(e)},(et=e).init().start())};"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",At):At())},966:function(e,t,r){r.d(t,{d:function(){return h}});var n=r(90),i=r(530);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function s(e,t,r){return t=c(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var h=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=s(this,t,["BI"])).parent=e,r.currentBracketStatus=2,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,(n=[{key:"canHaveDom",value:function(){return!1}},{key:"shouldBeBracketed",value:function(){return!1}},{key:"excludeDefaultStyling",value:function(){return!0}},{key:"isIncluded",value:function(){return!1}},{key:"getWidth",value:function(){return this.getContentWidth()}},{key:"getHeight",value:function(){return this.getContentHeight()}},{key:"getMinWidth",value:function(){return this.bottomBaseWidth}},{key:"getBaseWidth",value:function(){return this.bottomBaseWidth}},{key:"getBaseHeight",value:function(){return this.topBaseHeight}},{key:"useContentWidth",value:function(){return this.getRealParent().useContentWidth()}},{key:"useContentHeight",value:function(){return this.getRealParent().useContentHeight()}},{key:"getContainerOverflowMode",value:function(){return this.getRealParent().getContainerOverflowMode()}},{key:"getTopBaseHeight",value:function(){return this.topBaseHeight}},{key:"isVisible",value:function(){return!!this.visibilityStatus&&this.visibilityStatus.top&&this.visibilityStatus.bottom}},{key:"getBracketThreshold",value:function(){return this.getRealParent().getBracketSize()}},{key:"createViewport",value:function(){return this.viewport=this.viewport||new i.L,this.viewport.xNext=this.x,this.viewport.xNorth=this.x,this.viewport.xEast=this.x,this.viewport.xSouth=this.x,this.viewport.xWest=this.x,this.viewport.absX=this.getRealParent().viewport.absX,this.viewport.absY=this.getRealParent().viewport.absY,this.viewport.scrollTop=this.getRealParent().viewport.scrollTop,this.viewport.scrollLeft=this.getRealParent().viewport.scrollLeft,this.viewport.xOverflowReset=this.getRealParent().viewport.xOverflowReset,this.viewport.xOverflowLimit=this.getRealParent().viewport.xOverflowLimit,this.viewport.yNext=this.y,this.viewport.yNorth=this.y,this.viewport.yWest=this.y,this.viewport.yEast=this.y,this.viewport.ySouth=this.y,this.viewport.container=this,this.viewport}},{key:"getRealParent",value:function(){return this.realParent}},{key:"calcAbsolutePosition",value:function(e,t){this.absX=e+this.getRealParent().absX,this.absY=t+this.getRealParent().absY}},{key:"shouldCalculateChildren",value:function(){var e=this.isVisible();return!!this.hasEventDirty()||(this.currentBracketStatus>=1||this.isNowVisible||this.isNowInvisible?(this.currentBracketStatus=Math.max(0,this.currentBracketStatus-1),!0):(e&&(this.currentBracketStatus=Math.min(2,this.currentBracketStatus+1)),!1!==this.getDirtyLayout()&&e))}},{key:"getDirtyLayout",value:function(){var e=!!this.getRealParent().managesOwnScroll()&&this.getRealParent().backupDirtyLayout;return this.dirtyLayout||e||!1}},{key:"validateVisibilityInParent",value:function(){return!0}},{key:"adjustViewport",value:function(){this.viewport.xEast=Math.max(this.viewport.xEast,this.getRealParent().viewport.xEast),this.viewport.ySouth=Math.max(this.viewport.ySouth,this.getRealParent().viewport.ySouth)}},{key:"getChildren",value:function(){return this.allChildrenList}}])&&o(r.prototype,n),a&&o(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.c)},714:function(e,t,r){r.d(t,{M:function(){return f}});var n=r(966),i=r(855);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function d(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"generate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!e.bracketMap[t.oid]||e.pageMap[t.oid]!==t.allChildrenList||r?(e.bracketMap[t.oid]=e.buildTreeBottomUp(t,t.getChildren()),e.pageMap[t.oid]=t.allChildrenList):(t.lastChildrenUpdate.deletions.length>0&&(e.updateTreeOnDeletions(t,t.lastChildrenUpdate.deletions),e.reindexTree(t)),t.lastChildrenUpdate.additions.length>0&&e.updateTreeOnAdditions(t,t.lastChildrenUpdate.additions),(t.lastChildrenUpdate.deletions.length>0||t.lastChildrenUpdate.additions.length>0)&&e.reindexTree(t)),t.lastChildrenUpdate.additions.length=0,t.lastChildrenUpdate.deletions.length=0,e.bracketMap[t.oid]}},{key:"updateTreeOnDeletions",value:function(t,r){function i(r,a){if(r)if(a instanceof n.d&&a.parent===a.realParent){var o=e.bracketMap[t.oid],l=o.indexOf(a);l>=0&&o.splice(l,1)}else{var s=r.allChildrenList.indexOf(a);s>=0&&(r.allChildrenList.splice(s,1),e.markBracketDirty(r),0===r.allChildrenList.length&&i(r.parent,r))}}r.forEach((function(e){return i(e.bracket,e)}))}},{key:"reindexTree",value:function(t){function r(e,t){if(0===e.allChildrenList.length)return t;if(e.allChildrenList[0]instanceof n.d){e.startIndex=t;var i,a=l(e.allChildrenList);try{for(a.s();!(i=a.n()).done;)t=r(i.value,t)}catch(e){a.e(e)}finally{a.f()}e.endIndex=t}else e.startIndex=t,t+=e.allChildrenList.length,e.endIndex=t;return t}var i,a=0,o=l(e.bracketMap[t.oid]);try{for(o.s();!(i=o.n()).done;)a=r(i.value,a)}catch(e){o.e(e)}finally{o.f()}}},{key:"updateTreeOnAdditions",value:function(t,r){var i=t.getBracketSize();r.forEach((function(r){var a=r.index,o=r.child,l=e.findOrCreateBracket(t,a),s=a-l.startIndex;s<l.allChildrenList.length?l.allChildrenList.splice(s,0,o):l.allChildrenList.push(o),o.bracket=l;var u=l;for(u.startIndex=Math.min(u.startIndex,a),u.endIndex=u.startIndex+u.allChildrenList.length,u.currentBracketStatus=2,u.markLayoutDirty("update"),u=l.getParent();u instanceof n.d;)u.startIndex=Math.min(u.startIndex,a),u.endIndex=Math.max(u.endIndex,a+1),u.currentBracketStatus=2,u.markLayoutDirty("update"),u=u.getParent();l.allChildrenList.length>i&&e.splitBracket(t,l)}))}},{key:"splitBracket",value:function(t,r){for(var i=r.allChildrenList,a=t.getBracketSize(),l=[],s=r.startIndex,u=0;u<i.length;u+=a){var c=i.slice(u,u+a),d=s+c.length,h=e.createBracket(t,s,d,c);h.parent=r.parent,s=h.endIndex,l.push(h)}if(r.parent!==r.realParent){var f,v=r.parent.allChildrenList.indexOf(r);if(v>=0&&(f=r.parent.allChildrenList).splice.apply(f,[v,1].concat(l)),e.markBracketDirty(r),r.parent.allChildrenList.length>=a){var y=e.buildTreeBottomUp(t,r.parent.allChildrenList);if(r.parent.allChildrenList=y,r.parent.allChildrenList.forEach((function(t){t.parent=r.parent,e.markBracketDirty(t)})),r.parent.parent){var g,p=r.parent.parent.allChildrenList.indexOf(r.parent);p>=0&&((g=r.parent.parent.allChildrenList).splice.apply(g,[p,1].concat(o(y))),r.parent.parent.allChildrenList.forEach((function(e){e.parent=r.parent.parent})))}}}else{var m=e.bracketMap[t.oid],b=m.indexOf(r);b>=0&&m.splice.apply(m,[b,1].concat(l)),m.length>t.getBracketSize()&&(e.bracketMap[t.oid]=e.buildTreeBottomUp(t,m))}l.forEach((function(t){return e.markBracketDirty(t)})),l[0].parent instanceof n.d&&e.markBracketDirty(l[0].parent)}},{key:"findOrCreateBracket",value:function(t,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.bracketMap[t.oid],o=l(a);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.startIndex<=r&&s.endIndex>=r)return s.getFirstChild()instanceof n.d?e.findOrCreateBracket(t,r,s.allChildrenList):s}}catch(e){o.e(e)}finally{o.f()}var u=e.createBracket(t,r,r);if(a.push(u),a.length>t.getBracketSize()){var c=e.buildTreeBottomUp(t,a);e.bracketMap[t.oid]=c}return u}},{key:"buildTreeBottomUp",value:function(t,r){for(var i=r.length,a=t.getBracketSize(),o=[],l=0;l<i;l+=a){var s=r.slice(l,l+a),u=s[0]instanceof n.d,c=u?s[0].startIndex:l,d=u?s[s.length-1].endIndex:l+s.length,h=e.createBracket(t,c,d,s);o.push(h)}return o.length>a?e.buildTreeBottomUp(t,o):o}},{key:"createBracket",value:function(t,r,a,o){var l=new n.d(t);return i.qw.tmodelIdMap[l.oid]=l,l.realParent=t,l.allChildrenList=o||l.allChildrenList,l.startIndex=r,l.endIndex=a,l.allChildrenList.forEach((function(e){e instanceof n.d?(e.realParent=t,e.parent=l):e.bracket=l})),e.all[l.oid]=l,l}},{key:"reset",value:function(){e.bracketMap={},e.pageMap={},e.all={}}},{key:"markBracketDirty",value:function(e){for(var t=e;t&&"BI"===t.type;)t.currentBracketStatus=2,t.markLayoutDirty("update"),t=t.parent}}],(r=null)&&c(t.prototype,r),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}();d(f,"bracketMap",{}),d(f,"pageMap",{}),d(f,"all",{})},737:function(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.d(t,{I:function(){return u}});var o,l,s,u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"color2Integers",value:function(t){if(t=t?String(t):"",t=e.colors[t.toLowerCase()]||t){if(t.startsWith("#")){t=3===(t=t.slice(1)).length?t.split("").map((function(e){return e+e})).join(""):t;var r=parseInt(t,16);return[r>>16&255,r>>8&255,255&r]}var n=t.match(/\d+/g);return n&&3===n.length?n.map(Number):void 0}}}],(r=null)&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();o=u,s={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},(l=a(l="colors"))in o?Object.defineProperty(o,l,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[l]=s},260:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{v:function(){return DomInit}});var _$Dom_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(768),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(34),_App_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(855),_TargetData_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(585);function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var DomInit=function(){function DomInit(){_classCallCheck(this,DomInit)}return _createClass(DomInit,null,[{key:"initCacheDoms",value:function(e){var t=(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().$dom.queryAll("[tgjs]"),r=new Map;e.forEach((function(e){e.$dom=null,"BI"!==e.type&&r.set(e.oid,e)}));var n,i=[],a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n()).done;){var o=n.value,l=o.getAttribute("id"),s=(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.iP)(l);s?(s.$dom=new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(o),r.has(s.oid)||i.push(s)):_$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J.detach(o)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"mount",value:function(e,t){if(void 0!==t){var r=DomInit.normalizeElementTarget(t);if(r){var n;null!==(n=e.$dom)&&void 0!==n&&n.exists()&&(e.domState?DomInit.restoreDomState(e.$dom.element,e.domState):e.$dom.detach()),e.domState=DomInit.snapshotDomState(r.element),e.targets.$dom=r,e.val("$dom",r);var i=r.getTagName().toLowerCase(),a={};e.val("element")!==i&&(a.element=i),a.position=r.getStyleValue("position")||"relative",a.sourceDom=!0,a.domIsland=!0,_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.reuseDomDefinition)||(a.reuseDomDefinition=!0,a.domHolder=!0,_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeXYCalc)||(a.excludeXYCalc=!0),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.x)||_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeX)||(a.excludeX=!0),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.y)||_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeY)||(a.excludeY=!0)),e.addTargets(a);var o=r.getId();if(o&&o!==e.oid)e.domId=o;else if(!o){var l="tgjs-".concat(e.oid);r.ensureId(l),e.domId=l}r.attr("tgjs-oid",e.oid),r.attr("tgjs","true"),e.$dom=void 0}}}},{key:"initPageDoms",value:function(e){var t,r=new Map,n=_createForOfIteratorHelper(e.queryAll("*"));try{for(n.s();!(t=n.n()).done;){var i=t.value,a=void 0,o=Array.from(i.attributes),l=o.some((function(e){return"tg"===e.name||e.name.startsWith("tg-")})),s={};if(l){var u,c=_createForOfIteratorHelper(o);try{for(c.s();!(u=c.n()).done;){var d=u.value;if(d.name.startsWith("tg-")){var h=d.name.slice(3),f=_TargetData_js__WEBPACK_IMPORTED_MODULE_3__.u.toCanonicalKey(h),v=d.value.trim(),y=DomInit.parseString(v);s[f]=y}else"tg"===d.name&&(s[d.name]=!0)}}catch(e){c.e(e)}finally{c.f()}}var g=i.parentElement,p=r.get(g),m=void 0;if(Object.keys(s).length>0&&((m=i.getAttribute("id"))||p||(m=_App_js__WEBPACK_IMPORTED_MODULE_2__.qw.getOid("blank").oid,i.setAttribute("id",m)),i.getAttribute("tgjs")||i.setAttribute("tgjs",!0),a=_objectSpread({id:m,baseElement:i.tagName.toLowerCase(),$dom:new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(i)},s)),p){a||(a={textOnly:!1,html:i.outerHTML,$dom:new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(i)});var b=DomInit.getChildrenKey(p);b?Array.isArray(p[b].value)?p[b].value.push(a):"string"==typeof p[b]?p[b]={cycles:_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isNumber(+p[b])?+p[b]:1,value:[a]}:"object"===_typeof(p[b])&&(p[b].value=[a]):p.children$={cycles:1,value:[a]},r.set(i,a)}else a&&r.set(i,a)}}catch(e){n.e(e)}finally{n.f()}var T,w=[],k=_createForOfIteratorHelper(r.values());try{for(k.s();!(T=k.n()).done;){var S=T.value,M=S.$dom.element.parentElement,E=r.get(M);E?(S.$dom.detach(),delete S.$dom,delete S.id,S.sourceDom=!0,S.otype=S.id||(E.id||_App_js__WEBPACK_IMPORTED_MODULE_2__.qw.getOid("blank").oid)+"_",S.isVisible=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.isVisible)?S.isVisible:function(){return this.getParent().isVisible()},S.domParent=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.domParent)?S.domParent:function(){return this.getParent()}):(S.isVisible=!_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.isVisible)||S.isVisible,S.domHolder=!_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.domHolder)||S.domHolder,S.sourceDom=!0,(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().addChild(S),S.isVisible||w.push({$dom:S.$dom,tmodel:(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().getLastChild()}))}}catch(e){k.e(e)}finally{k.f()}w.forEach((function(e){var t=e.$dom,r=e.tmodel;t.exists()&&!r.hasChildren()&&(t.detach(),r.val("requiresDom",!1))}))}},{key:"getChildrenKey",value:function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if(n.toLowerCase().includes("children"))return n}return null}},{key:"parseString",value:function parseString(rawValue){if("string"!=typeof rawValue)return rawValue;var trimmed=rawValue.trim(),isFunction=/^function\s*\([\s\S]*?\)\s*\{[\s\S]*\}$/m.test(trimmed)||/^\(?[\w\s,]*\)?\s*=>\s*(\{[\s\S]*\}|\S+)/m.test(trimmed),isObject=/^(\{[\s\S]*\}|\[[\s\S]*\])$/.test(trimmed),containsCode=["return","setTarget","TargetJS.","addChild","addSibling","activateTarget","removeChild","removeAll"].some((function(e){return trimmed.includes(e)}));if(!isObject&&!isFunction&&containsCode)try{return new Function(trimmed)}catch(e){}if(isObject||isFunction)try{return eval("(".concat(trimmed,")"))}catch(e){}try{return JSON.parse(trimmed)}catch(e){}return rawValue}},{key:"snapshotDomState",value:function(e){if(e&&1===e.nodeType){for(var t={},r=0,n=Array.from(e.attributes);r<n.length;r++){var i=n[r],a=i.name,o=i.value;t[a]=o}return{attrs:t,styleAttr:e.getAttribute("style"),html:e.innerHTML}}}},{key:"restoreDomState",value:function(e,t){if(e&&1===e.nodeType&&t){for(var r=t.attrs,n=t.styleAttr,i=0,a=Array.from(e.attributes);i<a.length;i++){var o=a[i].name;o in r||e.removeAttribute(o)}for(var l=0,s=Object.entries(r);l<s.length;l++){var u=_slicedToArray(s[l],2),c=u[0],d=u[1];e.getAttribute(c)!==d&&e.setAttribute(c,d)}n?e.setAttribute("style",n):e.removeAttribute("style"),e.innerHTML=t.html}}},{key:"normalizeElementTarget",value:function(e){if(e instanceof _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J)return e;if(e instanceof Element)return new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(e);if("string"==typeof e){var t=_$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J.querySelector(e);return t?new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(t):null}return null}}])}()},421:function(e,t,r){var n;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function o(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}r.d(t,{G:function(){return s}});var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"easingFunction",value:function(t){return t&&e.easeMap.get(t)||u}},{key:"cubicBezier",value:function(e,t,r,n){var i=function(e,t,r){var n=3*t,i=3*(r-t)-n;return(((1-n-i)*e+i)*e+n)*e},a=function(e,t,r){var n=3*t,i=3*(r-t)-n;return(3*(1-n-i)*e+2*i)*e+n};return function(o){var l=function(t){for(var n=t,o=0;o<8;o++){var l=i(n,e,r)-t;if(Math.abs(l)<1e-6)return n;var s=a(n,e,r);if(Math.abs(s)<1e-6)break;(n-=l/s)<0?n=0:n>1&&(n=1)}for(var u=0,c=1,d=0,h=0;h<20;h++){var f=i(d=(u+c)/2,e,r);if(Math.abs(f-t)<1e-6)return d;f<t?u=d:c=d}return d}(o=function(e){return e<=0?0:e>=1?1:e}(o));return i(l,t,n)}}}],(r=null)&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function u(e){return e}n=s,o(s,"LINEAR","linear"),o(s,"EASE","ease"),o(s,"EASE_IN","ease-in"),o(s,"EASE_OUT","ease-out"),o(s,"EASE_IN_OUT","ease-in-out"),o(s,"STEP_START","step-start"),o(s,"STEP_END","step-end");var c={_:n.cubicBezier(.25,.1,.25,1)},d={_:n.cubicBezier(.42,0,1,1)},h={_:n.cubicBezier(0,0,.58,1)},f={_:n.cubicBezier(.42,0,.58,1)};o(s,"easeMap",new Map([[n.LINEAR,u],[n.EASE,c._],[n.EASE_IN,d._],[n.EASE_OUT,h._],[n.EASE_IN_OUT,f._],[n.STEP_START,function(e){return e<=0?0:1}],[n.STEP_END,function(e){return e<1?0:1}]]))},161:function(e,t,r){r.d(t,{O:function(){return h}});var n=r(34),i=r(855);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"scheduleExecution",value:function(e,t){var r=e.getTargetInterval(t),i=n.d.now();if(r<=0)return 0;if(e.isTargetImperative(t)&&0===e.getTargetStep(t))return e.setScheduleTimeStamp(t,i),0;var a=e.getScheduleRemainingTime(t);if(n.d.isDefined(a))return e.setScheduleTimeStamp(t,i-Math.max(r-a,0)),e.resetScheduleRemainingTime(t),a;var o=e.getScheduleTimeStamp(t);if(n.d.isDefined(o)){var l=i-o;return Math.max(r-l,0)}return e.setScheduleTimeStamp(t,i),r}},{key:"getSchedulingKeys",value:function(e){for(var t=[],r=0,i=Object.entries(e.targetValues);r<i.length;r++){var a=l(i[r],2),o=a[0],s=a[1];(n.d.isDefined(s.scheduleTimeStamp)||n.d.isDefined(s.scheduleRemainingTime))&&t.push(o)}return t}},{key:"pauseResumeSchedule",value:function(t){var r,a;if("BI"!==t.type){var l=e.getSchedulingKeys(t);if(l.length||t.animatingMap){var u=new Set(null!==(r=null===(a=t.animatingMap)||void 0===a?void 0:a.keys())&&void 0!==r?r:[]),c=new Set([].concat(o(l),o(u)));if(c.size){var d,h=new Set,f=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}(c);try{for(f.s();!(d=f.n()).done;){var v=d.value;if(e.shouldPauseTarget(t,v)){var y;n.d.isDefined(t.getScheduleTimeStamp(v))&&e.pauseSchedule(t,v),null!==(y=t.animatingMap)&&void 0!==y&&y.has(v)&&h.add(v)}else{var g=t.getScheduleRemainingTime(v);if(n.d.isDefined(g))e.resumeSchedule(t,v),t.addTargetToStatusList(v),(0,i.fB)().scheduleOnlyIfEarlier(g,"resume-".concat(t.oid,"-").concat(v));else if(n.d.isDefined(t.getScheduleTimeStamp(v))){var p=e.scheduleExecution(t,v);t.addTargetToStatusList(v),(0,i.fB)().scheduleOnlyIfEarlier(p,"resume-".concat(t.oid,"-").concat(v))}}}}catch(e){f.e(e)}finally{f.f()}h.size&&(0,i.s)().pauseAnimations(t,h)}}}}},{key:"pauseSchedule",value:function(e,t){var r=e.getTargetInterval(t),i=e.getScheduleTimeStamp(t);if(!(r<=0)&&n.d.isDefined(i)){var a=n.d.now()-i,o=Math.max(r-a,0);e.setScheduleRemainingTime(t,o),e.resetScheduleTimeStamp(t)}}},{key:"resumeSchedule",value:function(e,t){var r=e.getScheduleRemainingTime(t);if(n.d.isDefined(r)){var i=n.d.now(),a=e.getTargetInterval(t);e.setScheduleTimeStamp(t,i-Math.max(a-r,0)),e.resetScheduleRemainingTime(t)}}},{key:"shouldPauseTarget",value:function(e,t){if(!e.isExecuted(t))return!1;var r=e.isTargetImperative(t)?e.targetValues[t]:e.targets[t],n=null==r?void 0:r.pauseOn;return!(void 0===n||!1===n||!0!==n&&("function"==typeof n?!n.call(e,t):"hidden"===n?e.isVisible():"noDom"!==n||e.hasDom()))}}],(r=null)&&c(t.prototype,r),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}()},756:function(e,t,r){r.d(t,{X:function(){return d}});var n=r(34),i=r(855);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function u(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"clear",value:function(){e.foundParentWithType={},e.foundParentWithTarget={},e.foundTypeMap={},e.foundTargetMap={},e.foundOids={},e.foundHandler={}}},{key:"findFirstScrollHandler",value:function(t,r,n){if(t){var i="".concat(t.oid," ").concat(r," ").concat(n);if(e.foundHandler[i])return e.foundHandler[i];var a=this.findScrollHandler(t,n,r);return a&&(e.foundHandler[i]=a),a}}},{key:"findFirstHandler",value:function(t,r){if(t){var n="".concat(t.oid," ").concat(r);if(e.foundHandler[n])return e.foundHandler[n];var i=this.findEventHandler(t,r);return i&&(e.foundHandler[n]=i),i}}},{key:"findFirstScrollTopHandler",value:function(e,t){return this.findFirstScrollHandler(e,"onScrollTop",t)}},{key:"findFirstScrollLeftHandler",value:function(e,t){return this.findFirstScrollHandler(e,"onScrollLeft",t)}},{key:"findFirstPinchHandler",value:function(e){return this.findFirstHandler(e,"onPinch")}},{key:"findFirstSwipeHandler",value:function(e){return this.findFirstHandler(e,"onSwipe")}},{key:"findFirstEnterHandler",value:function(e){return this.findFirstHandler(e,"onEnter")}},{key:"findFirstLeaveHandler",value:function(e){return this.findFirstHandler(e,"onLeave")}},{key:"findFirstStartHandler",value:function(e){return this.findFirstHandler(e,"onStart")}},{key:"findFirstEndHandler",value:function(e){return this.findFirstHandler(e,"onEnd")}},{key:"findFirstClickHandler",value:function(e){return this.findFirstHandler(e,"onClick")||this.findFirstHandler(e,"onAnyClick")}},{key:"findScrollHandler",value:function(e,t,r){for(;e&&(!e.canHandleEvent("onSwipe")||"wheel"===t);){if(e.canHandleEvent(r)||e.canHandleEvent("onScroll"))return e;e=e.getParent()}}},{key:"findEventHandler",value:function(e,t){for(;e;){if(e.canHandleEvent(t))return e;e=e.getParent()}}},{key:"findParentByType",value:function(t,r){var i="".concat(t.oid,"__").concat(r);if(!n.d.isDefined(e.foundParentWithType[i]))for(var a=t.getParent();a;){if(a.type===r){e.foundParentWithType[i]=a;break}a=a.getParent()}return e.foundParentWithType[i]}},{key:"findParentByTarget",value:function(t,r,i){var a="".concat(t.oid,"__").concat(r);if(!n.d.isDefined(e.foundParentWithTarget[a]))for(var o=t.getParent();o;){if(n.d.isDefined(o.targets[r])||n.d.isDefined(o.targetValues[r])){if(!n.d.isDefined(i)){e.foundParentWithTarget[a]=o;break}if(o.getTargetValue(r)===i){e.foundParentWithTarget[a]=o;break}}o=o.getParent()}return e.foundParentWithTarget[a]}},{key:"findByType",value:function(t){if(!n.d.isDefined(e.foundTypeMap[t])){var r=function(e){if(e.type===t)return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.type===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundTypeMap[t]=a)}return e.foundTypeMap[t]}},{key:"findByTarget",value:function(t){if(!n.d.isDefined(e.foundTargetMap[t])){var r=function(e){if(e.targets[t])return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.targets[t])return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundTargetMap[t]=a)}return e.foundTargetMap[t]}},{key:"find",value:function(t){if(!n.d.isDefined(e.foundOids[t])){var r=function(e){if(e.oid===t)return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.oid===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundOids[t]=a)}return e.foundOids[t]}}],(r=null)&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}();u(d,"foundParentWithType",{}),u(d,"foundParentWithTarget",{}),u(d,"foundTypeMap",{}),u(d,"foundTargetMap",{}),u(d,"foundOids",{}),u(d,"foundHandler",{})},791:function(e,t,r){r.d(t,{s:function(){return p}});var n=r(34);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function l(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var h="__targetjsTModelRef",f=new Set(["_state","targets","targetDefinitions","restoringRuntime","restoredUsesExistingDom","type","oid","oidNum","originalId","parent","allChildrenList","allChildrenMap","$dom","viewport","visibilityStatus","currentStatus","dirtyLayout","originWindowEpoch","hasDomNow","isNowVisible","domHeightTimestamp","domWidthTimestamp","lastBatch","waapiBatch","finalKeyframe","finalRawFrame"]),v=["addedChildren","deletedChildren","movedChildren"],y=new Set(["lastUpdate","scheduleTimeStamp","completeTime","creationTime","activationTime","catchupAt","startTime","lastResizeHandledTime"]),g=["originalTargetName","originalTModel","invokerTargetName","invokerTModel","fetchAction","childAction","addChildAction"],p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,l=[{key:"rebaseRuntimeTimes",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakSet;if(t&&"object"===u(t)&&0!==r&&!e.isTModel(t)&&!n.has(t))if(n.add(t),t instanceof Map){var i,a=o(t.values());try{for(a.s();!(i=a.n()).done;){var l=i.value;e.rebaseRuntimeTimes(l,r,n)}}catch(e){a.e(e)}finally{a.f()}}else if(t instanceof Set){var s,c=o(t);try{for(c.s();!(s=c.n()).done;){var d=s.value;e.rebaseRuntimeTimes(d,r,n)}}catch(e){c.e(e)}finally{c.f()}}else for(var h=0,f=Object.keys(t);h<f.length;h++){var v=f[h],g=t[v];y.has(v)&&Number.isFinite(g)&&g>0?t[v]=g+r:e.rebaseRuntimeTimes(g,r,n)}}},{key:"isPlainObject",value:function(e){if(!e||"object"!==u(e))return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}},{key:"cloneUnboundTargets",value:function(t){for(var r=n.d.cloneTargetDefinition(t),i=0,a=Object.values(r);i<a.length;i++){var o=a[i];if(e.isPlainObject(o))for(var l=0,s=Object.keys(o);l<s.length;l++){var u=s[l],c=o[u];"function"==typeof c&&c.__isBoundTargetMethod&&(o[u]=c.__targetjsSource||c)}}return r}},{key:"isTModel",value:function(e){return Boolean(e&&"object"===u(e)&&"string"==typeof e.oid&&e.targets&&"function"==typeof e.state&&"function"==typeof e.getChildren)}},{key:"isTModelReference",value:function(t){return Boolean(e.isPlainObject(t)&&Object.prototype.hasOwnProperty.call(t,h))}},{key:"createTModelReference",value:function(e){return t={},r=h,n=e.oid,(r=d(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t;var t,r,n}},{key:"encodeValue",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null==t||"object"!==u(t))return t;if(e.isTModel(t))return e.createTModelReference(t);if(r.has(t))return r.get(t);if(t instanceof Date)return new Date(t.getTime());if(t instanceof Map){var n=new Map;r.set(t,n);var i,l=o(t);try{for(l.s();!(i=l.n()).done;){var s=a(i.value,2),c=s[0],d=s[1];n.set(e.encodeValue(c,r),e.encodeValue(d,r))}}catch(e){l.e(e)}finally{l.f()}return n}if(t instanceof Set){var h=new Set;r.set(t,h);var f,v=o(t);try{for(v.s();!(f=v.n()).done;){var y=f.value;h.add(e.encodeValue(y,r))}}catch(e){v.e(e)}finally{v.f()}return h}if(Array.isArray(t)){var g=[];r.set(t,g);var p,m=o(t);try{for(m.s();!(p=m.n()).done;){var b=p.value;g.push(e.encodeValue(b,r))}}catch(e){m.e(e)}finally{m.f()}return g}if(!e.isPlainObject(t))return t;var T={};r.set(t,T);for(var w=0,k=Object.entries(t);w<k.length;w++){var S=a(k[w],2),M=S[0],E=S[1];T[M]=e.encodeValue(E,r)}return T}},{key:"decodeValue",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(null==t||"object"!==u(t))return t;if(e.isTModelReference(t))return r[t[h]];if(n.has(t))return n.get(t);if(t instanceof Date)return new Date(t.getTime());if(t instanceof Map){var i=new Map;n.set(t,i);var l,s=o(t);try{for(s.s();!(l=s.n()).done;){var c=a(l.value,2),d=c[0],f=c[1];i.set(e.decodeValue(d,r,n),e.decodeValue(f,r,n))}}catch(e){s.e(e)}finally{s.f()}return i}if(t instanceof Set){var v=new Set;n.set(t,v);var y,g=o(t);try{for(g.s();!(y=g.n()).done;){var p=y.value;v.add(e.decodeValue(p,r,n))}}catch(e){g.e(e)}finally{g.f()}return v}if(Array.isArray(t)){var m=[];n.set(t,m);var b,T=o(t);try{for(T.s();!(b=T.n()).done;){var w=b.value;m.push(e.decodeValue(w,r,n))}}catch(e){T.e(e)}finally{T.f()}return m}if(!e.isPlainObject(t))return t;var k={};n.set(t,k);for(var S=0,M=Object.entries(t);S<M.length;S++){var E=a(M[S],2),D=E[0],C=E[1];k[D]=e.decodeValue(C,r,n)}return k}},{key:"resolveTModelReferencesInPlace",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakSet;if(null==t||"object"!==u(t))return t;if(e.isTModelReference(t))return r[t[h]];if(n.has(t))return t;if(n.add(t),t instanceof Date)return t;if(t instanceof Map){var l=i(t.entries());t.clear();var s,c=o(l);try{for(c.s();!(s=c.n()).done;){var d=a(s.value,2),f=d[0],v=d[1];t.set(e.resolveTModelReferencesInPlace(f,r,n),e.resolveTModelReferencesInPlace(v,r,n))}}catch(e){c.e(e)}finally{c.f()}return t}if(t instanceof Set){var y=i(t);t.clear();var g,p=o(y);try{for(p.s();!(g=p.n()).done;){var m=g.value;t.add(e.resolveTModelReferencesInPlace(m,r,n))}}catch(e){p.e(e)}finally{p.f()}return t}if(Array.isArray(t)){for(var b=0;b<t.length;b++)t[b]=e.resolveTModelReferencesInPlace(t[b],r,n);return t}if(!e.isPlainObject(t))return t;for(var T=0,w=Object.keys(t);T<w.length;T++){var k=w[T];t[k]=e.resolveTModelReferencesInPlace(t[k],r,n)}return t}},{key:"clearMaterializedChildOperations",value:function(e){if(e){for(var t=0,r=v;t<r.length;t++){var n=r[t];Array.isArray(e[n])?e[n].length=0:e[n]=[]}e.lastChildrenUpdate?(e.lastChildrenUpdate.additions=[],e.lastChildrenUpdate.deletions=[]):e.lastChildrenUpdate={additions:[],deletions:[]}}}},{key:"exportRuntimeState",value:function(t){for(var r={},n=0,i=Object.keys(t);n<i.length;n++){var a=i[n];f.has(a)||(r[a]=t[a])}var o=e.encodeValue({state:t.state(),fields:r});return e.clearMaterializedChildOperations(o.state),o}},{key:"importRuntimeState",value:function(t,r,n){var i=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).timeOffset,o=void 0===i?0:i,l=e.decodeValue(r,n);e.rebaseRuntimeTimes(l,o),t._state=l.state||{};for(var s=0,u=Object.entries(l.fields||{});s<u.length;s++){var c=a(u[s],2),d=c[0],h=c[1];f.has(d)||(t[d]=h)}return e.clearMaterializedChildOperations(t._state),t.childrenUpdateFlag=!1,t.$dom=null,t.viewport=void 0,t.hasDomNow=!1,t.lastBatch=void 0,t.waapiBatch=void 0,t.finalKeyframe=void 0,t.finalRawFrame=void 0,t}},{key:"createRuntimeSnapshot",value:function(t){var r,a,o,l,s=i(t.getChildren()),u=n.d.cloneTargetDefinition(t.targetDefinitions);return{oid:t.oid,oidNum:null!==(r=t.oidNum)&&void 0!==r?r:0,originalId:t.originalId,type:t.type,usesExistingDom:!0===(null===(a=t.targets)||void 0===a?void 0:a.domIsland)||!0===(null===(o=t.targets)||void 0===o?void 0:o.reuseDomDefinition)||(null===(l=t.originalTargetNames)||void 0===l?void 0:l.includes("$dom")),targets:e.encodeValue(u),targetRuntime:e.exportTargetRuntime(t),runtime:e.exportRuntimeState(t),children:s.map((function(t){return e.createRuntimeSnapshot(t)}))}}},{key:"createWithIdentity",value:function(t,r){var n;if("function"!=typeof r)throw new TypeError("A TModel constructor is required.");var i=e.encodeValue(t.targets),a=new r(t.type,i,t.oid,{restoringRuntime:!0,usesExistingDom:!0===t.usesExistingDom});return a.type=t.type,a.oid=t.oid,a.oidNum=null!==(n=t.oidNum)&&void 0!==n?n:0,void 0!==t.originalId?a.originalId=t.originalId:delete a.originalId,a.parent=void 0,a.allChildrenList=[],a.allChildrenMap={},a}},{key:"attachRestoredChild",value:function(e,t){return t.parent=e,e.allChildrenList.push(t),e.allChildrenMap[t.oid]=t,t}},{key:"fromRuntimeSnapshot",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)throw new TypeError("A runtime snapshot is required.");for(var i={},a=[],l=[],s=function(t,n){var u=e.createWithIdentity(t,r);i[u.oid]=u,a.push(u),n&&e.attachRestoredChild(n,u),l.push({tmodel:u,runtime:t.runtime,targetRuntime:t.targetRuntime});var c,d=o(t.children||[]);try{for(d.s();!(c=d.n()).done;){var h=c.value;s(h,u)}}catch(e){d.e(e)}finally{d.f()}return u},u=s(t,void 0),c=0,d=a;c<d.length;c++){var h=d[c];e.resolveTModelReferencesInPlace(h.targets,i)}for(var f=0,v=l;f<v.length;f++){var y=v[f],g=y.tmodel,p=y.targetRuntime;e.applyTargetRuntime(g,p,i)}for(var m=0,b=l;m<b.length;m++){var T=b[m],w=T.tmodel,k=T.runtime;e.importRuntimeState(w,k,i,n)}return{root:u,tmodelIdMap:i,models:a}}},{key:"exportTargetRuntime",value:function(t){for(var r={},n=0,i=Object.entries(t.targets);n<i.length;n++){var o=a(i[n],2),l=o[0],s=o[1];if(e.isPlainObject(s)){for(var u={},c=0,d=g;c<d.length;c++){var h=d[c];Object.prototype.hasOwnProperty.call(s,h)&&(u[h]=s[h])}Object.keys(u).length&&(r[l]=e.encodeValue(u))}}return r}},{key:"applyTargetRuntime",value:function(t,r,n){for(var i=0,o=Object.entries(r||{});i<o.length;i++){var l=a(o[i],2),s=l[0],u=l[1],c=t.targets[s];if(c){var d=e.decodeValue(u,n);Object.assign(c,d)}}}}],(r=null)&&c(t.prototype,r),l&&c(t,l),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,l}()},90:function(e,t,r){r.d(t,{c:function(){return V}});var n=r(855),i=r(484),a=r(34),o=r(690),l=r(333),s=r(585),u=r(768);function c(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}var m=function(){return e=function e(t,r,i){var o,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"object"===y(t)&&void 0===r&&(r=t,t=""),this.restoringRuntime=!0===l.restoringRuntime,this.restoredUsesExistingDom=!0===l.usesExistingDom,this.targetDefinitions=a.d.cloneTargetDefinition(r),this.targets=Object.assign({},r),i=i||this.targets.id,a.d.isDefined(i))n.qw.getOid(i),this.type=i,this.oid=i,this.oidNum=0;else{this.type=this.targets.otype||t||"blank";var s=n.qw.getOid(this.type);this.oid=s.oid,this.oidNum=s.num}null!==(o=r)&&void 0!==o&&o.sourceDom||!a.d.isDefined(i)||(this.originalId=i),this._state={}},t=[{key:"state",value:function(){return this._state}},{key:"targetValues",get:function(){var e,t;return null!==(t=(e=this.state()).targetValues)&&void 0!==t?t:e.targetValues={}},set:function(e){this.state().targetValues=e}},{key:"actualValues",get:function(){var e,t;return null!==(t=(e=this.state()).actualValues)&&void 0!==t?t:e.actualValues={}},set:function(e){this.state().actualValues=e}},{key:"lastActualValues",get:function(){var e,t;return null!==(t=(e=this.state()).lastActualValues)&&void 0!==t?t:e.lastActualValues={}}},{key:"activeTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).activeTargetList)&&void 0!==t?t:e.activeTargetList=[]},set:function(e){this.state().activeTargetList=e}},{key:"activeTargetMap",get:function(){var e,t;return null!==(t=(e=this.state()).activeTargetMap)&&void 0!==t?t:e.activeTargetMap={}},set:function(e){this.state().activeTargetMap=e}},{key:"updatingTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).updatingTargetList)&&void 0!==t?t:e.updatingTargetList=[]},set:function(e){this.state().updatingTargetList=e}},{key:"updatingTargetMap",get:function(){var e,t;return null!==(t=(e=this.state()).updatingTargetMap)&&void 0!==t?t:e.updatingTargetMap={}},set:function(e){this.state().updatingTargetMap=e}},{key:"fetchActionTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).fetchActionTargetList)&&void 0!==t?t:e.fetchActionTargetList=[]}},{key:"activatedTargets",get:function(){var e,t;return null!==(t=(e=this.state()).activatedTargets)&&void 0!==t?t:e.activatedTargets=[]}},{key:"targetMethodMap",get:function(){var e,t;return null!==(t=(e=this.state()).targetMethodMap)&&void 0!==t?t:e.targetMethodMap={}}},{key:"targetExecutionCount",get:function(){var e,t;return null!==(t=(e=this.state()).targetExecutionCount)&&void 0!==t?t:e.targetExecutionCount=0},set:function(e){this.state().targetExecutionCount=e}},{key:"addedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).addedChildren)&&void 0!==t?t:e.addedChildren=[]}},{key:"deletedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).deletedChildren)&&void 0!==t?t:e.deletedChildren=[]}},{key:"movedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).movedChildren)&&void 0!==t?t:e.movedChildren=[]}},{key:"lastChildrenUpdate",get:function(){var e,t;return null!==(t=(e=this.state()).lastChildrenUpdate)&&void 0!==t?t:e.lastChildrenUpdate={additions:[],deletions:[]}}},{key:"visibleChildren",get:function(){var e,t;return null!==(t=(e=this.state()).visibleChildren)&&void 0!==t?t:e.visibleChildren=[]}},{key:"passiveTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).passiveTargetList)&&void 0!==t?t:e.passiveTargetList=[]},set:function(e){this.state().passiveTargetList=e}},{key:"passiveTargetMap",get:function(){var e,t;return null!==(t=(e=this.state()).passiveTargetMap)&&void 0!==t?t:e.passiveTargetMap={}},set:function(e){this.state().passiveTargetMap=e}},{key:"getParent",value:function(){return this.parent}},{key:"initTargets",value:function(){var e=this;if(this.targetsVersion=1,this.originalTargetNames=Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})),this.functionTargetNames=[],this.allTargetMap={},!this.restoringRuntime&&a.d.isDefined(this.originalId)&&(0,n.UR)(this.originalId))return a.d.mergeTargets((0,n.UR)(this.originalId),this),void(this.toDiscard=!0);this.actualValues=s.u.defaultActualValues(),this.targetValues={},this.activeTargetMap={},this.activeTargetList=[],this.originalTargetNames=Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})).map((function(e){return e.startsWith("_")?e.slice(1):e}));var t=this.originalTargetNames.includes("$dom"),r=this.restoringRuntime?this.restoredUsesExistingDom||t:Boolean(u.J.query("#".concat(this.oid))||t);r||this.excludeDefaultStyling()?r&&(this.targets.domIsland=!0,a.d.isDefined(this.targets.reuseDomDefinition)||(this.targets.reuseDomDefinition=!0,this.targets.domHolder=!0,a.d.isDefined(this.targets.excludeXYCalc)||(this.targets.excludeXYCalc=!0),a.d.isDefined(this.targets.x)||(this.targets.excludeX=!0),a.d.isDefined(this.targets.y)||(this.targets.excludeY=!0),a.d.isDefined(this.targets.position)||(this.targets.position="relative"))):(Object.entries(s.u.defaultTargetStyles).forEach((function(t){var r=h(t,2),n=r[0],i=r[1];n in e.targets||(e.targets[n]=i)})),!1===this.targets.canHaveDom||a.d.isDefined(this.targets.domHolder)||(this.targets.domHolder=!0)),Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})).forEach((function(t,r){e.processNewTarget(t,r)}))}},{key:"processNewTarget",value:function(e,t){this.targetsVersion++;var r=l.g.getTargetName(e),n=this.targets[e];if(a.d.isDefined(n)){"passive"!==n.loop&&"function"!=typeof n.loop||this.passiveTargetMap[e]||(this.passiveTargetMap[e]=!0,this.passiveTargetList.push(e));var i=y(n),u=e.startsWith("_")||e.endsWith("$"),c=s.u.mustExecuteTargets[r]||u||"string"!==i&&"number"!==i&&"boolean"!==i,d=!!s.u.allEventMap[r],h=!!s.u.internalEventMap[r];if(("object"!==i||Array.isArray(n))&&c&&(n=l.g.wrapTarget(this,n,e)),a.d.isDefined(t)){var f=t>0?this.originalTargetNames[t-1]:void 0,v=t<this.originalTargetNames.length-1?this.originalTargetNames[t+1]:void 0;(v&&v.endsWith("$")||u||d||h||"object"===i||"function"===i)&&(a.d.isDefined(n.value)||o.D.isChildObjectTarget(e,n)||o.D.isIntervalTarget(n)||(c=!0,n=l.g.wrapTarget(this,n,e)),l.g.bindTarget(this,e,f,v,t))}if(e.startsWith("_")){var g=e.slice(1);this.targets[e]&&(this.targets[g]=this.targets[e]),delete this.targets[e],e=g,n=this.targets[g]}if(d&&(this.externalEventMap||(this.externalEventMap=new Map),this.externalEventMap.set(r,!0),n.active=!1),h&&(this.internalEventMap||(this.internalEventMap=new Map),this.internalEventMap.set(r,!0),n.active=!1),this.allTargetMap[r]=e,u&&(this.targets[e].active=!1),!s.u.bypassInitialProcessingTargetMap[r]){if(a.d.isDefined(n.initialValue)&&this.val(e,n.initialValue),(!1!==n.active||a.d.isDefined(n.initialValue))&&this.addToStyleTargetList(e),o.D.isIntervalTarget(n))n.cycles=2,n.isInterval=!0;else if(!c){var p;return void this.val(r,a.d.isDefined(null===(p=n)||void 0===p?void 0:p.value)?n.value:n)}!1!==n.active&&this.canTargetBeActivated(e)&&this.addToActiveTargets(e),this.functionTargetNames.push(e)}}else this.delVal(e)}},{key:"activate",value:function(e){(0,n.zw)().addToActivatedList(this),this.currentStatus="active",e&&this.isTargetEnabled(e)&&-1===this.activatedTargets.indexOf(e)&&this.activatedTargets.push(e)}},{key:"isActivated",value:function(){return"active"===this.currentStatus}},{key:"deactivate",value:function(){this.currentStatus=void 0}},{key:"excludeDefaultStyling",value:function(){return!1===this.targets.defaultStyling||this.excludeStyling()||this.reuseDomDefinition()&&!this.allStyleTargetMap}},{key:"canTargetBeActivated",value:function(e){var t=this.targets.onDomEvent;return!(t&&(Array.isArray(t)?t.includes(e):t===e)&&!this.hasDom())&&!this.activeTargetMap[e]}},{key:"addToStyleTargetList",value:function(e,t){var r;if(e=l.g.getTargetName(e),t||!this.excludeStyling()&&!this.targets["exclude".concat(a.d.capitalizeFirstLetter(e))]){var n,i=s.u.asyncStyleTargetMap[e],o=s.u.attributeTargetMap[e];if(i||o)null!==(n=this.asyncStyleTargetMap)&&void 0!==n&&n.has(e)||(this.asyncStyleTargetMap||(this.asyncStyleTargetMap=new Map),this.asyncStyleTargetMap.set(e,!0));else if(this.isStyleTarget(e)){var u,c=!0;if(s.u.transformMap[e])this.getParent()&&this.calcAbsolutePosition(this.getX(),this.getY());else if("width"===e||"height"===e){var d=Math.floor("width"===e?this.getWidth():this.getHeight());this.styleMap[e]===d&&(c=!1)}else"dim"===e?this.styleMap[e]===Math.floor(this.val("dim"))&&(c=!1):a.d.isDefined(this.val(e))&&this.styleMap[e]===this.val(e)&&(c=!1);!c||null!==(u=this.styleTargetMap)&&void 0!==u&&u.has(e)||(this.styleTargetMap||(this.styleTargetMap=new Map),this.styleTargetMap.set(e,!0))}!s.u.styleSet.has(e)||null!==(r=this.allStyleTargetMap)&&void 0!==r&&r.has(e)||(this.allStyleTargetMap||(this.allStyleTargetMap=new Map),this.allStyleTargetMap.set(e,!0))}}},{key:"isStyleTarget",value:function(e){return s.u.styleTargetMap[e]}},{key:"removeTarget",value:function(e){delete this.targetDefinitions[e],delete this.targets[e],this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),delete this.targetValues[e]}},{key:"addTarget",value:function(e,t){var r,n,i;this.addTargets((r={},i=t,(n=p(n=e))in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r))}},{key:"addTargets",value:function(e){for(var t,r=this,i=a.d.cloneTargetDefinition(e),o=0,l=Object.keys(i);o<l.length;o++){var s=l[o];this.targetDefinitions[s]=i[s]}Object.keys(e).forEach((function(t){r.targets[t]=e[t],r.removeFromUpdatingTargets(t),r.originalTargetNames.includes(t)||r.originalTargetNames.push(t);var n=r.originalTargetNames.indexOf(t);r.processNewTarget(t,n)})),this.hasDom()&&(0,n.kQ)().attachEvents([this]),null===(t=(0,n.fB)())||void 0===t||t.schedule(1,"addTargets-".concat(this.oid))}},{key:"getTargetStepPercent",value:function(e,t,r){return t=a.d.isDefined(t)?t:this.getTargetStep(e),r?t/r:1}},{key:"resetTargetStep",value:function(e){return this.targetValues[e]&&(this.targetValues[e].step=0),this}},{key:"resetTargetExecutionFlag",value:function(e){return this.targetValues[e]&&(this.targetValues[e].executionFlag=!1),this}},{key:"resetTargetCycle",value:function(e){return this.targetValues[e]&&(this.targetValues[e].cycle=0),this}},{key:"resetTargetInitialValue",value:function(e){return this.targetValues[e]&&(this.targetValues[e].initialValue=void 0),this}},{key:"addTargetToStatusList",value:function(e){var t=this.targetValues[e];if(t){var r;if("fetching"===t.status)return this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),void(null===(r=this.getParent())||void 0===r||r.addToActiveChildren(this));if(this.isTargetUpdating(e))return this.addToUpdatingTargets(e),void this.removeFromActiveTargets(e);if(this.isTargetActive(e))return this.addToActiveTargets(e),void this.removeFromUpdatingTargets(e);this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e)}}},{key:"setTargetStatus",value:function(e,t){var r=this.targetValues[e];if(r){var n=r.status;"done"!==t||"done"===n||"complete"===n||r.resetFlag||(r.completeCount++,r.completeTime=a.d.now()),r.resetFlag=!1,r.status=t,this.addTargetToStatusList(e)}}},{key:"getTargetStatus",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.status)&&void 0!==t?t:""}},{key:"isTargetActive",value:function(e){var t;return"active"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetUpdating",value:function(e){var t;return"updating"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetDone",value:function(e){var t;return"done"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetComplete",value:function(e){var t;return"complete"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)||void 0===this.targetValues[e]&&void 0}},{key:"isTargetTreeComplete",value:function(e,t){return!0===l.g.isTargetTreeComplete(this,e,t)}},{key:"isTargetVisibleTreeComplete",value:function(e){return this.isTargetTreeComplete(e,"visible")}},{key:"isTargetFullyCompleted",value:function(e){return!0===l.g.isTargetFullyCompleted(this,e)}},{key:"arePreviousTargetsComplete",value:function(e){return!0===l.g.arePreviousTargetsComplete(this,e)}},{key:"cleanupTarget",value:function(e){l.g.cleanupTarget(this,e)}},{key:"isComplete",value:function(){return l.g.isTModelComplete(this)}},{key:"isExecuted",value:function(e){return this.targetValues[e]&&this.targetValues[e].executionFlag}},{key:"neverExecuted",value:function(e){return!this.targetValues[e]}},{key:"isTargetImperative",value:function(e){return!!this.targetValues[e]&&this.targetValues[e].isImperative}},{key:"getTargetExecutionCount",value:function(e){return this.targetValues[e]?this.targetValues[e].executionCount:0}},{key:"setTargetComplete",value:function(e){this.targetValues[e]&&(this.targetValues[e].status="complete")}},{key:"isTargetEnabled",value:function(e){var t=this.targets[e];return!!a.d.isDefined(t)&&("function"!=typeof t.enabledOn||(this.setTargetMethodName(e,"enabledOn"),t.enabledOn.call(this)))}},{key:"doesTargetEqualActual",value:function(e){if(this.targetValues[e]){var t=!!this.targets[e]&&this.targets[e].deepEquality;return t?a.d.areEqual(this.getTargetValue(e),this.val(e),t):this.getTargetValue(e)===this.val(e)}return!1}},{key:"getTargetValue",value:function(e){var t,r=this.targetValues[e]||this.targets[e];if(r){var n=null!==(t=r.value)&&void 0!==t?t:r;return"function"==typeof n?n.call(this):n}}},{key:"getTargetStep",value:function(e){return this.targetValues[e]?this.targetValues[e].step:0}},{key:"getScheduleTimeStamp",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.scheduleTimeStamp}},{key:"isScheduledPending",value:function(e){var t=this.getScheduleRemainingTime(e);if(a.d.isDefined(t))return t>0;var r=this.getScheduleTimeStamp(e),n=this.getTargetInterval(e);return a.d.isDefined(r)&&r+n>a.d.now()}},{key:"getScheduleRemainingTime",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.scheduleRemainingTime}},{key:"setScheduleRemainingTime",value:function(e,t){var r=this.targetValues[e];r&&(r.scheduleRemainingTime=t)}},{key:"resetScheduleRemainingTime",value:function(e){var t=this.targetValues[e];t&&(t.scheduleRemainingTime=void 0)}},{key:"setScheduleTimeStamp",value:function(e,t){var r=this.targetValues[e];r&&(r.scheduleTimeStamp=t)}},{key:"resetScheduleTimeStamp",value:function(e){var t=this.targetValues[e];t&&(t.scheduleTimeStamp=void 0)}},{key:"isTargetInLoop",value:function(e){var t=this.targets[e];return!!t&&!0===("function"==typeof t.loop?t.loop.call(this,e):t.loop)}},{key:"isTargetPassiveLoop",value:function(e){var t=this.targets[e];return!!t&&"passive"===("function"==typeof t.loop?t.loop.call(this,e):t.loop)}},{key:"shouldScheduleRun",value:function(e){var t=this.targets[e];if(!t)return!1;if(void 0!==t.triggerRerun)return!!t.triggerRerun;if("passive"===("function"==typeof t.loop?t.loop.call(this,e):t.loop)){var r,n=o.D.getValueStepsCycles(this,e)[0],i=this.getTargetValue(e);return!a.d.areEqual(n,i,null!==(r=t.deepEquality)&&void 0!==r&&r)}return!0}},{key:"activateChangedPassiveTargets",value:function(){var e;if(null===(e=this.passiveTargetList)||void 0===e||!e.length)return!1;var t,r=!1,n=d(this.passiveTargetList);try{for(n.s();!(t=n.n()).done;){var i,a=t.value;this.isTargetPassiveLoop(a)&&(this.isTargetUpdating(a)||null!==(i=this.animatingMap)&&void 0!==i&&i.has(a)||this.shouldScheduleRun(a)&&(this.addToActiveTargets(a),r=!0))}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"getTargetInitialValue",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.initialValue}},{key:"getLastUpdate",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.lastUpdate}},{key:"getDimLastUpdate",value:function(){var e,t,r,n,i;return Math.max(null!==(e=this.getLastUpdate("width"))&&void 0!==e?e:0,null!==(t=this.getLastUpdate("height"))&&void 0!==t?t:0,null!==(r=this.getLastUpdate("dim"))&&void 0!==r?r:0,null!==(n=this.domHeightTimestamp)&&void 0!==n?n:0,null!==(i=this.domWidthTimestamp)&&void 0!==i?i:0)}},{key:"getTargetActivationTime",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.activationTime)&&void 0!==t?t:0}},{key:"getTargetCreationTime",value:function(e){return this.targetValues[e]?this.targetValues[e].creationTime:void 0}},{key:"incrementTargetStep",value:function(e,t,r,n,i){var a=this.targetValues[e];if(a){var o=n||8,l=t-r,s=Math.max(1,Math.floor(l/o));return a.step=Math.min(i,a.step+s),a.step}}},{key:"getTargetEasing",value:function(e){var t,r=null===(t=this.targetValues[e])||void 0===t?void 0:t.easing,n=this.targets[e];return n&&"function"==typeof n.easing?n.easing.call(this,this.getTargetCycle(e)):r}},{key:"getTargetInterval",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.interval)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.interval?i.interval.call(this,this.getTargetCycle(e)):n}},{key:"getTargetSteps",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.steps)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.steps?i.steps.call(this,this.getTargetCycle(e)):n}},{key:"getTargetCycles",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.cycles)&&void 0!==t?t:1,i=this.targets[e];return i&&"function"==typeof i.cycles?i.cycles.call(this,this.getTargetCycle(e),n):n}},{key:"getTargetCycle",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.cycle)&&void 0!==t?t:0}},{key:"getValueListPointer",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.valuePointer)&&void 0!==t?t:1}},{key:"incrementTargetCycle",value:function(e){this.targetValues[e]&&this.targetValues[e].cycle++}},{key:"incrementValueListPointer",value:function(e){this.targetValues[e]&&this.targetValues[e].valuePointer++}},{key:"setTargetInterval",value:function(e,t){return this.targetValues[e]&&(this.targetValues[e].interval=t),this.targetValues[e].interval}},{key:"setTargetInitialValue",value:function(e,t){this.targetValues[e]&&(this.targetValues[e].initialValue=t)}},{key:"setLastUpdate",value:function(e){this.targetValues[e]&&(this.targetValues[e].lastUpdate=a.d.now(),this.targetValues[e].updateCount++)}},{key:"setTarget",value:function(e,t,r,n,a){if("object"===y(e)&&null!==e){var o=[e,t,r,n,a];t=o[0],r=o[1],n=o[2],a=o[3],e=""}"string"==typeof e&&(e=e.endsWith("+")?e:e+"+");var s=l.g.currentTargetName,u=l.g.currentTModel;return this.getParent()===u&&l.g.markChildAction(u,s,this),this.markLayoutDirty(e),i.j.executeImperativeTarget(this,e,t,r,n,a,s,u),this}},{key:"cancelAnimation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mode,r=void 0===t?"hold":t,i=e.commitStyle,a=void 0===i||i;return(0,n.s)().cancelTModelAnimation(this,{mode:r,commitStyle:a})}},{key:"hasTargetUpdates",value:function(e){var t;return e?!0===this.updatingTargetMap[e]||(null===(t=this.animatingMap)||void 0===t?void 0:t.has(e)):this.updatingTargetList.length>0}},{key:"addToActiveTargets",value:function(e){var t;!this.activeTargetMap[e]&&this.canTargetBeActivated(e)&&(this.markLayoutDirty(e),this.activeTargetMap[e]=!0,this.activeTargetList.push(e),null===(t=this.getParent())||void 0===t||t.addToActiveChildren(this))}},{key:"removeFromActiveTargets",value:function(e){if(this.activeTargetMap[e]){delete this.activeTargetMap[e];var t=this.activeTargetList.indexOf(e);t>=0&&this.activeTargetList.splice(t,1)}var r;0===this.activeTargetList.length&&(null===(r=this.getParent())||void 0===r||r.removeFromActiveChildren(this))}},{key:"addToUpdatingTargets",value:function(e){var t;this.updatingTargetMap[e]||(this.markLayoutDirty(e),this.updatingTargetMap[e]=!0,this.updatingTargetList.push(e),null===(t=this.getParent())||void 0===t||t.addToUpdatingChildren(this))}},{key:"removeFromUpdatingTargets",value:function(e){if(this.updatingTargetMap[e]){delete this.updatingTargetMap[e];var t=this.updatingTargetList.indexOf(e);t>=0&&this.updatingTargetList.splice(t,1)}var r;0===this.updatingTargetList.length&&(null===(r=this.getParent())||void 0===r||r.removeFromUpdatingChildren(this))}},{key:"hasUpdatingImperativeTargets",value:function(e){var t,r,n=d([].concat(c(null!==(t=this.updatingTargetList)&&void 0!==t?t:[]),c(this.hasAnimatingTargets()?c(this.animatingMap.keys()):[])));try{for(n.s();!(r=n.n()).done;){var i,a=r.value;if(this.isTargetImperative(a)&&(null===(i=this.targetValues[a])||void 0===i?void 0:i.originalTargetName)===e)return!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"getUpdatingImperativeTargets",value:function(e){var t,r,n=[],i=d([].concat(c(null!==(t=this.updatingTargetList)&&void 0!==t?t:[]),c(this.hasAnimatingTargets()?c(this.animatingMap.keys()):[])));try{for(i.s();!(r=i.n()).done;){var a,o=r.value;this.isTargetImperative(o)&&(null===(a=this.targetValues[o])||void 0===a?void 0:a.originalTargetName)===e&&n.push(o)}}catch(e){i.e(e)}finally{i.f()}return n}},{key:"hasAnyUpdates",value:function(){var e,t;return 0!==this.updatingTargetList.length||0!==this.activeTargetList.length||0!==(null!==(e=null===(t=this.animatingMap)||void 0===t?void 0:t.size)&&void 0!==e?e:0)}},{key:"removeFromAnimatingMap",value:function(e){var t,r;null!==(t=this.animatingMap)&&void 0!==t&&t.has(e)&&(this.animatingMap.delete(e),0===this.animatingMap.size&&(null===(r=this.getParent())||void 0===r||r.removeFromAnimatingChildren(this)))}},{key:"clearAnimatingMap",value:function(){var e,t;null===(e=this.animatingMap)||void 0===e||e.clear(),null===(t=this.getParent())||void 0===t||t.removeFromAnimatingChildren(this)}},{key:"addToAnimatingMap",value:function(e){var t,r;null!==(t=this.targetValues[e])&&void 0!==t&&t.snapAnimation||(this.animatingMap||(this.animatingMap=new Map),this.animatingMap.set(e,!0),null===(r=this.getParent())||void 0===r||r.addToAnimatingChildren(this))}},{key:"getAnimatingTargets",value:function(){return this.animatingMap?c(this.animatingMap.keys()):[]}},{key:"isKeyAnimating",value:function(e){if(!this.animatingMap)return!1;var t=l.g.getOriginalNames(this,e).originalTargetName;return this.animatingMap.has(e)&&this.animatingMap.get(e).originalTargetName===t}},{key:"addToUpdatingChildren",value:function(e){this.updatingChildrenMap||(this.updatingChildrenMap=new Map),this.updatingChildrenMap.set(e.oid,e)}},{key:"removeFromUpdatingChildren",value:function(e){var t;null===(t=this.updatingChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"addToAnimatingChildren",value:function(e){this.animatingChildrenMap||(this.animatingChildrenMap=new Map),this.animatingChildrenMap.set(e.oid,e)}},{key:"removeFromAnimatingChildren",value:function(e){var t;null===(t=this.animatingChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"addToActiveChildren",value:function(e){this.activeChildrenMap||(this.activeChildrenMap=new Map),this.activeChildrenMap.set(e.oid,e)}},{key:"removeFromActiveChildren",value:function(e){var t;null===(t=this.activeChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"hasActiveChildren",value:function(){var e;return!(null===(e=this.activeChildrenMap)||void 0===e||!e.size)}},{key:"hasUpdatingChildren",value:function(){var e;return!(null===(e=this.updatingChildrenMap)||void 0===e||!e.size)}},{key:"hasAnimatingChildren",value:function(){var e;return!(null===(e=this.animatingChildrenMap)||void 0===e||!e.size)}},{key:"hasAnimatingTargets",value:function(){var e;return!(null===(e=this.animatingMap)||void 0===e||!e.size)}},{key:"hasValidAnimation",value:function(){return this.hasAnimatingTargets()&&this.lastBatch&&this.lastBatch.totalDuration>0}},{key:"deleteTargetValue",value:function(e){return delete this.targetValues[e],this.addToActiveTargets(e),this.removeFromUpdatingTargets(e),this}},{key:"clearAnimatingChildren",value:function(){var e;null===(e=this.animatingChildrenMap)||void 0===e||e.clear()}},{key:"clearUpdatingChildren",value:function(){var e;null===(e=this.updatingChildrenMap)||void 0===e||e.clear()}},{key:"clearActiveChildren",value:function(){var e;null===(e=this.activeChildrenMap)||void 0===e||e.clear()}},{key:"resetTarget",value:function(e){var t=this.targetValues[e];return t&&(t.isImperative=!1,t.executionFlag=!1,t.scheduleTimeStamp=void 0,t.step=0,t.cycle=0,t.steps=0,t.cycles=1,t.interval=0,t.status=""),this}},{key:"activateTargets",value:function(e){var t=this;Array.isArray(e)&&e.forEach((function(e){return t.activateTarget(e)}))}},{key:"activateTarget",value:function(e,t,r){var n=t,i=r;if(null!=t&&t.reset&&1===Object.keys(t).length&&!r&&(n=void 0,i=t),this.canTargetBeActivated(e)){var o=l.g.getResetOptions(i);o.shouldReset&&l.g.resetTargetState(this,e,o),a.d.isDefined(n)&&this.val("___".concat(e),n),this.isVisible()&&this.markLayoutDirty(e);var s,u,c=l.g.currentTModel,d=l.g.currentTargetName,h=this.targetValues[e]||l.g.emptyValue();this.getParent()===c&&l.g.markChildAction(c,d,this),h.invokerTModel=c,h.invokerTarget=d,this.targetValues[e]?(h.activationTime=a.d.now(),h.lastUpdate=a.d.now(),h.isImperative=!1,h.executionFlag=!1,h.scheduleTimeStamp=void 0,h.step=0,h.cycle=0,h.valuePointer=Array.isArray(h.valueList)?1:0,h.initialValue=void 0):(this.targetValues[e]=h,h.cycles=null!==(s=null===(u=this.targets[e])||void 0===u?void 0:u.cycles)&&void 0!==s?s:h.cycles),this.setTargetStatus(e,"active"),this.activate(e)}return this}},{key:"manageChildTargetExecution",value:function(e){return e.hasChildren()||e.addedChildren.length>0||e.dirtyLayout||0===e.targetExecutionCount}},{key:"setTargetMethodName",value:function(e,t){(!s.u.ignoreTargetMethodNameMap[e]||this.isTargetUpdating(e)||this.isTargetImperative(e))&&(this.targetMethodMap[e]||(this.targetMethodMap[e]=[]),this.targetMethodMap[e].includes(t)||this.targetMethodMap[e].push(t))}}],t&&g(e.prototype,t),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),b=r(530),T=r(952),w=r(756),k=r(249),S=r(260),M=r(791);function E(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=C(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function D(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return x(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,P(n.key),n)}}function P(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O(t)?t:t+""}function A(e,t,r){return t=j(t),function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_()?Reflect.construct(t,r||[],j(e).constructor):t.apply(e,r))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}var V=function(e){function t(e,r,n){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=A(this,t,[e,r,n,a])).allChildrenList=[],i.allChildrenMap={},i.childrenUpdateFlag=!1,i.$dom=null,i.x=0,i.y=0,i.absX=0,i.absY=0,i.domHeightTimestamp=0,i.domWidthTimestamp=0,i.contentWidth=0,i.contentHeight=0,i.bottomBaseWidth=0,i.topBaseHeight=0,i.styleMap={},i.tfMap={},i.visibilityStatus=void 0,i.hasDomNow=!1,i.isNowVisible=!1,i.currentStatus="new",i.dirtyLayout=!1,i.originWindowEpoch=-1,i.initTargets(),i.restoringRuntime=!1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}(t,e),r=t,i=[{key:"createViewport",value:function(){this.viewport=this.viewport||new b.L;var e=this.getScrollTop(),t=-this.getScrollLeft(),r=-e;return this.viewport.xNext=t,this.viewport.xNorth=t,this.viewport.xEast=t,this.viewport.xSouth=t,this.viewport.xWest=t,this.viewport.scrollLeft=t,this.viewport.scrollTop=r,this.viewport.absX=this.absX,this.viewport.absY=this.absY,this.viewport.xOverflowReset=t,this.viewport.xOverflowLimit=t+this.getWidth(),this.viewport.yNext=r,this.viewport.yNorth=r,this.viewport.yWest=r,this.viewport.yEast=r,this.viewport.ySouth=r,this.calcContentWidthHeight(),this.viewport.setContainer(this),this.viewport}},{key:"calcContentWidthHeight",value:function(){this.contentHeight=this.viewport.ySouth-this.viewport.yNorth,this.contentWidth=this.viewport.xEast-this.viewport.xWest,this.topBaseHeight=this.viewport.yEast-this.viewport.yNorth,this.bottomBaseWidth=this.viewport.xSouth-this.viewport.xWest}},{key:"adjustViewport",value:function(){}},{key:"calcAbsolutePosition",value:function(e,t){this.absX=a.d.isDefined(this.val("absX"))?this.val("absX"):this.getParent().absX+e,this.absY=a.d.isDefined(this.val("absY"))?this.val("absY"):this.getParent().absY+t}},{key:"calcAbsolutePositionFromDom",value:function(){k.a.calcAbsolutePositionFromDom(this)}},{key:"removeChild",value:function(e){if(e&&this.allChildrenMap[e.oid])return l.g.resetBeforeDeletion(e),(0,n.EI)().markTModelDeleted(e),this.deletedChildren.push(e),this.removeFromUpdatingChildren(e),this.removeFromActiveChildren(e),this.removeFromAnimatingChildren(e),this.childrenUpdateFlag=!0,this.markLayoutDirty("removeChild"),(0,n.zw)().calcChildren(this),(0,n.fB)().schedule(1,"removeChild-"+e.oid),this}},{key:"moveChild",value:function(e,t){return this.movedChildren.push({index:t,child:e}),e.hasDom()&&e.requiresDomRelocation()&&(e.domOrderIndex=t,e.activate()),this.childrenUpdateFlag=!0,this.markLayoutDirty("moveChild"),(0,n.fB)().schedule(1,"moveChild-"+this.oid+"-"+e.oid),this}},{key:"addChild",value:function(e){var r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addedChildren.length+this.allChildrenList.length;if("object"===O(e)){if(this.childrenUpdateFlag=!0,!(e instanceof t)){var o=Object.keys(this.actualValues).find((function(t){return r.actualValues[t]===e})),s=a.d.cloneTargetDefinition(e);e=new t(o?s.id||o:"".concat(this.oid,"_"),s)}e.toDiscard||(n.qw.tmodelIdMap[e.oid]=e,this.addedChildren.push({index:i,child:e}),e.parent=this,e.markLayoutDirty("addChild"),e.updatingTargetList.length>0&&this.addToUpdatingChildren(e),e.activeTargetList.length>0&&this.addToActiveChildren(e),l.g.markChildAction(this,l.g.currentTargetName,e))}return this}},{key:"addSibling",value:function(e){this.getParent().addChild(e)}},{key:"removeSibling",value:function(e){var t=this;e||(e=this.getParent().getChildren().find((function(e){return e!==t}))),this.getParent().removeChild(e)}},{key:"getChildren",value:function(){var e,t,r,n=this,i=this.state();if((null===(e=i.deletedChildren)||void 0===e?void 0:e.length)>0&&(this.deletedChildren.forEach((function(e){if(n.allChildrenMap[e.oid]){var t=n.allChildrenList.indexOf(e);n.lastChildrenUpdate.deletions.push(e),n.allChildrenList.splice(t,1),delete n.allChildrenMap[e.oid]}})),this.deletedChildren.length=0),(null===(t=i.addedChildren)||void 0===t?void 0:t.length)>0&&(this.addedChildren.sort((function(e,t){return e.index-t.index})),this.addedChildren.forEach((function(e){var t=e.index,r=e.child;n.allChildrenMap[r.oid]||(a.d.isDefined(r.val("canDeleteDom"))||!1!==n.val("canDeleteDom")||r.val("canDeleteDom",!1),t>=n.allChildrenList.length?n.allChildrenList.push(r):n.allChildrenList.splice(t,0,r),n.allChildrenMap[r.oid]=r,n.lastChildrenUpdate.additions.push({index:t,child:r}))})),this.addedChildren.length=0),(null===(r=i.movedChildren)||void 0===r?void 0:r.length)>0){this.movedChildren.sort((function(e,t){return e.index-t.index}));var o={},l={};this.movedChildren.forEach((function(e){var t=e.index,r=e.child;n.lastChildrenUpdate.deletions.push(r),n.lastChildrenUpdate.additions.push({index:t,child:r});var i=n.allChildrenList.indexOf(r);if(t!==i){l[r.oid]&&delete l[r.oid];var a=n.allChildrenList.splice(t,1,r);!o[t]&&a.length>0&&(l[a[0].oid]={child:a[0],index:t+1}),i>=0&&(o[i]={fromIndex:i<t?i:t,child:r}),o[t]&&delete o[t]}})),Object.values(l).forEach((function(e){var t=e.index,r=e.child;n.allChildrenList.splice(t,0,r)})),Object.values(o).forEach((function(e){var t=e.fromIndex,r=e.child,i=n.allChildrenList.indexOf(r,t);n.allChildrenList.splice(i,1)})),this.movedChildren.length=0}return this.allChildrenList}},{key:"removeChildren",value:function(){var e=D(this.getChildren());if(0===e.length)return this;this.markLayoutDirty("removeChildren");var t,r=(0,n.EI)(),i=E(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;l.g.resetBeforeDeletion(a),a.cancelAnimation(),delete r.visibleOidMap[a.oid],delete r.preservedDomMap[a.oid],r.domPolicyMap.delete(a.oid),r.deletedTModelRoots.delete(a)}}catch(e){i.e(e)}finally{i.f()}this.hasDom()&&this.$dom.deleteAll();var o,s=E(e);try{for(s.s();!(o=s.n()).done;){var u=o.value;r.resetTModelDom(u)}}catch(e){s.e(e)}finally{s.f()}return this.allChildrenList=[],this.allChildrenMap={},this.clearUpdatingChildren(),this.clearActiveChildren(),this.clearAnimatingChildren(),this}},{key:"exists",value:function(){var e=this.getParent();return!!e&&(e.getChildren(),e.allChildrenMap[this.oid]===this)}},{key:"markEventDirty",value:function(){this.eventDirtyEpoch=(0,n.kQ)().eventEpoch,this.bracket&&this.bracket.markEventDirty(),this.parent&&this.parent.markEventDirty()}},{key:"hasEventDirty",value:function(){var e,t;return(null!==(e=this.eventDirtyEpoch)&&void 0!==e?e:-1)>(null!==(t=this.processedEventEpoch)&&void 0!==t?t:-1)}},{key:"markLayoutDirty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.dirtyLayout||(this.dirtyLayout={oids:{},count:0}),this.dirtyLayout.oids[t.oid]||(this.dirtyLayout.oids[t.oid]=t,this.dirtyLayout.count++),t===this&&(e=t.oid+"#"+e),this.dirtyLayout.lastKey=e,this.bracket&&this.bracket.markLayoutDirty(e,t),this.parent&&this.parent.markLayoutDirty(e,t)}},{key:"removeLayoutDirty",value:function(e,t){var r=this;this.dirtyLayout&&(t?t.forEach((function(e){r.dirtyLayout.oids[e]&&(r.dirtyLayout.count--,delete r.dirtyLayout.oids[e])})):this.dirtyLayout.oids[e.oid]&&(this.dirtyLayout.count--,delete this.dirtyLayout.oids[e.oid]),0===this.dirtyLayout.count&&(this.dirtyLayout=!1)),this.bracket&&this.bracket.removeLayoutDirty(e,t),this.parent&&this.parent.removeLayoutDirty(e,t)}},{key:"getDirtyLayout",value:function(){return this.dirtyLayout}},{key:"shouldCalculateChildren",value:function(){if(a.d.isDefined(this.val("calculateChildren")))return this.val("calculateChildren");if(!this.isIncluded()||this.isDomIsland()&&!this.hasDom())return!1;var e=!1!==this.dirtyLayout,t=this.hasEventDirty(),r=this.hasDom(),n=this.isVisible(),i="active"===this.currentStatus||e||n&&t||this.isNowVisible||r&&t;return this.currentStatus=void 0,i}},{key:"getFirstChild",value:function(){return this.getChildren()[0]}},{key:"hasChildren",value:function(){return this.getChildren().length>0}},{key:"findChildren",value:function(e){return this.getChildren().filter((function(t){return t.type===e}))}},{key:"getLastChild",value:function(){return this.getChildren()[this.allChildrenList.length-1]}},{key:"getChild",value:function(e){return"number"==typeof e?this.getChildren()[e]:this.findChild(e)}},{key:"getChildIndex",value:function(e){return this.getChildren().indexOf(e)}},{key:"getChildrenOids",value:function(){return this.getChildren().map((function(e){return e.oid})).join(" ")}},{key:"findChild",value:function(e){return this.getChildren().find((function(t){return t.type===e}))}},{key:"findLastChild",value:function(e){return this.getChildren().findLast((function(t){return t.type===e}))}},{key:"getChildByOid",value:function(e){return this.getChildren(),this.allChildrenMap[e]}},{key:"getParentValue",value:function(e){var t;return null===(t=this.parent)||void 0===t?void 0:t.val(e)}},{key:"pval",value:function(e){return this.getParentValue(e)}},{key:"getParentValueAtMyIndex",value:function(e){var t=this.getParentValue(e);if(Array.isArray(t)){var r,n=null===(r=this.getParent())||void 0===r?void 0:r.getChildIndex(this);if("number"==typeof n)return t[n]}return t}},{key:"getLoadedItems",value:function(e){return this.val(a.d.getLoadTargetName(e))}},{key:"delVal",value:function(e){this.markLayoutDirty("del-".concat(e)),e.startsWith("_")?delete this[e.slice(1)]:delete this.actualValues[e]}},{key:"val",value:function(e,t){var r=this.actualValues,n=this.lastActualValues;return e=l.g.getTargetName(e),2===arguments.length?(n[e]=r[e],t!==r[e]&&(r[e]=t,this.markLayoutDirty("val-".concat(e))),this):r[e]}},{key:"lastVal",value:function(e){return this.lastActualValues[e]}},{key:"setActual",value:function(e,t){this.targetValues[e]&&(this.targetValues[e].actual=t)}},{key:"floorVal",value:function(e){var t;return Math.floor(null!==(t=this.val(e))&&void 0!==t?t:0)}},{key:"getDomParent",value:function(){return this.val("domParent")||w.X.findParentByTarget(this,"domHolder",!0)}},{key:"getDomHolder",value:function(){var e=this.val("domHolder");if(e&&!0!==e&&this.$dom!==e)return e;var t=this.getDomParent();return t?t.$dom:null}},{key:"debug",value:function(){var e=this;return[{oid:this.oid},{visible:this.isVisible()},{visibilityStatus:this.visibilityStatus},{hasDom:this.hasDom()},{shouldCalculateChildren:this.shouldCalculateChildren()},{dirtyLayout:this.getDirtyLayout()},{x:this.getX()},{y:this.getY()},{width:this.getWidth()},{height:this.getHeight()},{tmodelComplete:l.g.isTModelComplete(this)},{targets:this.originalTargetNames},{activeTargetList:this.activeTargetList},{activatedTargets:this.activatedTargets},{updatingTargetList:this.updatingTargetList},{animatingMap:D(this.animatingMap?D(this.animatingMap.keys()):[])},{noDomUpdatingTargets:D(this.noDomUpdatingTargets?D(this.noDomUpdatingTargets):[])},{pendingTargets:D(this.pendingTargets?D(this.pendingTargets):[])},{styleTargetMap:D(this.styleTargetMap?D(this.styleTargetMap.keys()):[])},{passiveTargetList:this.passiveTargetList},{incompleteTargets:Object.keys(this.targetValues).filter((function(t){var r;return"complete"!==(null===(r=e.targetValues[t])||void 0===r?void 0:r.status)})).map((function(t){var r;return"".concat(t,":").concat(null===(r=e.targetValues[t])||void 0===r?void 0:r.status)}))},{updatingChildren:this.updatingChildrenMap?D(this.updatingChildrenMap.keys()):[]},{activeChildren:this.activeChildrenMap?D(this.activeChildrenMap.keys()):[]},{children:this.getChildren()},{targetValues:this.targetValues},{actualValues:this.actualValues}]}},{key:"logTree",value:function(){a.d.logTree(this)}},{key:"isVisible",value:function(){return this.val("isVisible")}},{key:"makeVisible",value:function(){this.val("isVisible",!0),this.targets.isVisible=!0}},{key:"makeInvisible",value:function(){this.val("isVisible",!1),this.targets.isVisible=!1}},{key:"managesOwnScroll",value:function(){var e,t,r,n;return a.d.isDefined(this.val("managesOwnScroll"))?!!this.val("managesOwnScroll"):!!(this.allTargetMap.onScroll||this.allTargetMap.onScrollLeft||this.allTargetMap.onScrollTop||this.allTargetMap.onWindowScroll||0!==(null!==(e=null===(t=this.$dom)||void 0===t?void 0:t.getScrollTop())&&void 0!==e?e:0)||0!==(null!==(r=null===(n=this.$dom)||void 0===n?void 0:n.getScrollLeft())&&void 0!==r?r:0))}},{key:"calcVisibility",value:function(){return T.n.calcVisibility(this)}},{key:"validateVisibilityInParent",value:function(){return a.d.isDefined(this.val("validateVisibilityInParent"))?this.val("validateVisibilityInParent"):this.parent.managesOwnScroll()}},{key:"hasDomHolderChanged",value:function(){return!this.reuseDomDefinition()&&this.getDomHolder()&&this.getDomHolder().exists()&&this.$dom.parent()!==this.getDomHolder().element}},{key:"hasBaseElementChanged",value:function(){return!!this.hasDom()&&this.getBaseElement()!==this.$dom.getTagName()}},{key:"mount",value:function(e){return S.v.mount(this,e),this}},{key:"unmount",value:function(){var e;this.hasDom()&&this.val("sourceDom")&&this.domState&&S.v.restoreDomState(this.$dom.element,this.domState),null===(e=this.parent)||void 0===e||e.removeChild(this)}},{key:"hasDom",value:function(){return!!this.$dom&&this.$dom.exists()}},{key:"isDomIsland",value:function(){return this.val("domIsland")}},{key:"getRealParent",value:function(){return this.parent}},{key:"getContentHeight",value:function(){return this.contentHeight}},{key:"getContentWidth",value:function(){return this.contentWidth}},{key:"useContentWidth",value:function(){return k.a.useContentWidth(this)}},{key:"useContentHeight",value:function(){return k.a.useContentHeight(this)}},{key:"getBaseWidth",value:function(){var e;return null!==(e=this.val("baseWidth"))&&void 0!==e?e:this.getWidth()}},{key:"getBaseHeight",value:function(){var e;return null!==(e=this.val("baseHeight"))&&void 0!==e?e:this.getHeight()}},{key:"getMinWidth",value:function(){var e;return null!==(e=this.val("minWidth"))&&void 0!==e?e:Math.min(this.getWidth(),this.getBaseWidth())}},{key:"getTopBaseHeight",value:function(){var e;return null!==(e=this.val("topBaseHeight"))&&void 0!==e?e:0}},{key:"getLayoutHeight",value:function(){var e=this.getHeight();return this.usesContentBoxSizing()&&(e+=this.getPaddingTop()+this.getPaddingBottom()),e}},{key:"getLayoutWidth",value:function(){var e=this.getWidth();return this.usesContentBoxSizing()&&(e+=this.getPaddingLeft()+this.getPaddingRight()),e}},{key:"usesContentBoxSizing",value:function(){return"border-box"!==this.getBoxSizing()}},{key:"getBoxSizing",value:function(){var e,t,r;return null!==(e=null!==(t=null!==(r=this.val("boxSizing"))&&void 0!==r?r:this.val("box-sizing"))&&void 0!==t?t:this.getParentValue("boxSizing"))&&void 0!==e?e:"content-box"}},{key:"getContainerOverflowMode",value:function(){var e;return null!==(e=this.val("containerOverflowMode"))&&void 0!==e?e:"auto"}},{key:"getItemOverflowMode",value:function(){var e=this.targets.itemOverflowMode;if(void 0!==e)return"function"==typeof e?e.call(this):e;var t=this.val("itemOverflowMode");return void 0!==t?t:"auto"}},{key:"getUIDepth",value:function(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e}},{key:"canBeAnimated",value:function(e){return s.u.isGpuPreferred(e)&&!1!==this.actualValues.webAnimation}},{key:"isTextOnly",value:function(){return a.d.isDefined(this.val("textOnly"))?this.val("textOnly"):"string"!=typeof this.getHtml()||!this.getHtml().trim().startsWith("<")}},{key:"getHtml",value:function(){return this.val("html")}},{key:"isInFlow",value:function(){return!a.d.isDefined(this.val("isInFlow"))||this.val("isInFlow")}},{key:"canHandleEvent",value:function(e){return!!this.allTargetMap[e]}},{key:"preventDefault",value:function(){return a.d.isDefined(this.val("preventDefault"))?this.val("preventDefault"):this.getParentValue("preventDefault")||!1}},{key:"canDeleteDom",value:function(){return a.d.isDefined(this.val("canDeleteDom"))?this.val("canDeleteDom"):!this.reuseDomDefinition()}},{key:"requiresDom",value:function(){return a.d.isDefined(this.val("requiresDom"))?this.val("requiresDom"):this.reuseDomDefinition()}},{key:"excludeStyling",value:function(){return!1===this.targets.styling}},{key:"getBracketThreshold",value:function(){return this.val("bracketThreshold")}},{key:"getBracketSize",value:function(){return this.val("bracketSize")}},{key:"shouldBeBracketed",value:function(){return a.d.isDefined(this.val("shouldBeBracketed"))?this.val("shouldBeBracketed"):this.getChildren().length>this.getBracketThreshold()}},{key:"isIncluded",value:function(){return this.val("isIncluded")}},{key:"canHaveDom",value:function(){return!(this.targets.$dom&&!this.val("$dom"))&&this.val("canHaveDom")}},{key:"requiresDomRelocation",value:function(){return a.d.isDefined(this.val("requiresDomRelocation"))?this.val("requiresDomRelocation"):!a.d.isDefined(this.tfMap.x)&&!a.d.isDefined(this.tfMap.y)}},{key:"getBaseElement",value:function(){var e;return this.val("baseElement")||this.val("element")||(null===(e=this.$dom)||void 0===e||null===(e=e.element)||void 0===e||null===(e=e.tagName)||void 0===e?void 0:e.toLowerCase())}},{key:"getOpacity",value:function(){return this.val("opacity")}},{key:"getCenterX",value:function(){return(this.parent.getWidth()-this.getWidth())/2}},{key:"getCenterY",value:function(){return(this.parent.getHeight()-this.getHeight())/2}},{key:"getX",value:function(){return this.val("x")}},{key:"getY",value:function(){return this.val("y")}},{key:"getZ",value:function(){return this.val("z")}},{key:"getPerspective",value:function(){return this.val("perspective")}},{key:"getRotate",value:function(){return this.val("rotate")}},{key:"getRotateX",value:function(){return this.val("rotateX")}},{key:"getRotateY",value:function(){return this.val("rotateY")}},{key:"getRotateZ",value:function(){return this.val("rotateZ")}},{key:"getScale",value:function(){return this.val("scale")}},{key:"getScaleX",value:function(){return this.val("scaleX")}},{key:"getScaleY",value:function(){return this.val("scaleY")}},{key:"getScaleZ",value:function(){return this.val("scaleZ")}},{key:"getSkewX",value:function(){return this.val("skewX")}},{key:"getSkewY",value:function(){return this.val("skewY")}},{key:"getSkewZ",value:function(){return this.val("skewZ")}},{key:"getMeasuringScale",value:function(){var e;return null!==(e=this.val("measuringScale"))&&void 0!==e?e:1}},{key:"getZIndex",value:function(){return this.val("zIndex")}},{key:"getMarginTop",value:function(){var e,t;return null!==(e=null!==(t=this.val("marginTop"))&&void 0!==t?t:this.val("topMargin"))&&void 0!==e?e:k.a.getMarginValue(this,"top")}},{key:"getMarginLeft",value:function(){var e,t;return null!==(e=null!==(t=this.val("marginLeft"))&&void 0!==t?t:this.val("leftMargin"))&&void 0!==e?e:k.a.getMarginValue(this,"left")}},{key:"getMarginRight",value:function(){var e,t,r;return(null!==(e=null!==(t=this.val("marginRight"))&&void 0!==t?t:this.val("rightMargin"))&&void 0!==e?e:k.a.getMarginValue(this,"right"))+(null!==(r=this.getParentValue("gap"))&&void 0!==r?r:0)}},{key:"getMarginBottom",value:function(){var e,t,r;return(null!==(e=null!==(t=this.val("marginBottom"))&&void 0!==t?t:this.val("bottomMargin"))&&void 0!==e?e:k.a.getMarginValue(this,"bottom"))+(null!==(r=this.getParentValue("gap"))&&void 0!==r?r:0)}},{key:"getPaddingTop",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingTop"))&&void 0!==t?t:this.val("topPadding"))&&void 0!==e?e:k.a.getPaddingValue(this,"top")}},{key:"getPaddingLeft",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingLeft"))&&void 0!==t?t:this.val("leftPadding"))&&void 0!==e?e:k.a.getPaddingValue(this,"left")}},{key:"getPaddingRight",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingRight"))&&void 0!==t?t:this.val("rightPadding"))&&void 0!==e?e:k.a.getPaddingValue(this,"right")}},{key:"getPaddingBottom",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingBottom"))&&void 0!==t?t:this.val("bottomPadding"))&&void 0!==e?e:k.a.getPaddingValue(this,"bottom")}},{key:"getWidth",value:function(){return a.d.isDefined(this.targets.width)||a.d.isDefined(this.targetValues.width)?this.val("width"):a.d.isDefined(this.targets.dim)||a.d.isDefined(this.targetValues.dim)?this.val("dim"):this.val("width")}},{key:"getHeight",value:function(){return a.d.isDefined(this.targets.height)||a.d.isDefined(this.targetValues.height)?this.val("height"):a.d.isDefined(this.targets.dim)||a.d.isDefined(this.targetValues.dim)?this.val("dim"):this.val("height")}},{key:"getScrollTop",value:function(){return this.val("scrollTop")}},{key:"getScrollLeft",value:function(){return this.val("scrollLeft")}},{key:"getCss",value:function(){return this.val("css")}},{key:"getStyle",value:function(){return this.val("style")}},{key:"getBackground",value:function(){return this.val("background")}},{key:"getBackgroundColor",value:function(){return this.val("backgroundColor")}},{key:"getAttributes",value:function(){return this.val("attributes")}},{key:"getInputValue",value:function(){return this.hasDom()?this.$dom.value():void 0}},{key:"isFormControl",value:function(){var e,t=this.getBaseElement();return"input"===t||"select"===t||"textarea"===t||(null===(e=this.$dom)||void 0===e||null===(e=e.element)||void 0===e?void 0:e.isContentEditable)}},{key:"isOverflowHidden",value:function(){return"hidden"===this.val("overflow")}},{key:"reuseDomDefinition",value:function(){return this.val("reuseDomDefinition")}},{key:"createRuntimeSnapshot",value:function(){return M.s.createRuntimeSnapshot(this)}}],i&&L(r.prototype,i),o&&L(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(m)},249:function(e,t,r){r.d(t,{a:function(){return M}});var n=r(34),i=r(333),a=r(585),o=r(855),l=r(768),s=r(737),u=r(421);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return(t=S(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=p(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(){b=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var a=t&&t.prototype instanceof m?t:m,o=Object.create(a.prototype),l=new A(n||[]);return i(o,"_invoke",{value:x(e,r,l)}),o}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",v="suspendedYield",y="executing",g="completed",p={};function m(){}function T(){}function w(){}var k={};u(k,o,(function(){return this}));var S=Object.getPrototypeOf,M=S&&S(S(_([])));M&&M!==r&&n.call(M,o)&&(k=M);var E=w.prototype=m.prototype=Object.create(k);function D(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(i,a,o,l){var s=h(e[i],e,a);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==c(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function x(t,r,n){var i=f;return function(a,o){if(i===y)throw Error("Generator is already running");if(i===g){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=O(l,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var u=h(t,r,n);if("normal"===u.type){if(i=n.done?g:v,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=h(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(c(t)+" is not iterable")}return T.prototype=w,i(E,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:T,configurable:!0}),T.displayName=u(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},D(C.prototype),u(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new C(d(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},D(E),u(E,s,"Generator"),u(E,o,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=_,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function T(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){T(a,n,i,o,l,"next",e)}function l(e){T(a,n,i,o,l,"throw",e)}o(void 0)}))}}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S(n.key),n)}}function S(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var M=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=null,c=[{key:"restoreScroll",value:(f=w(b().mark((function e(t){var r,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.scrollLeft||0,n=t.scrollTop||0,window.scrollTo(r,n),e.next=5,new Promise(requestAnimationFrame);case 5:return window.scrollTo(r,n),e.next=8,new Promise(requestAnimationFrame);case 8:window.scrollTo(r,n);case 9:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)})},{key:"getRootDom",value:function(){return l.J.query("#tgjs-root")?new l.J("#tgjs-root"):new l.J("body")}},{key:"getPageDom",value:function(){return new l.J("body")}},{key:"captureDomState",value:function(e){if(null!=e&&e.getElement()){var t=[e.getElement()].concat(g(e.queryAll("*"))),r=[],n=[];t.forEach((function(e,t){var i,a=null===(i=e.tagName)||void 0===i?void 0:i.toLowerCase();"input"===a?"file"!==(e.type||"text").toLowerCase()&&r.push({index:t,kind:"input",value:e.value,checked:e.checked,indeterminate:e.indeterminate}):"textarea"===a?r.push({index:t,kind:"textarea",value:e.value}):"select"===a?r.push({index:t,kind:"select",selected:g(e.options).map((function(e){return e.selected}))}):"details"===a&&r.push({index:t,kind:"details",open:e.open}),(e.scrollLeft||e.scrollTop)&&n.push({index:t,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop})}));var i,a=document.activeElement,o=a&&e.contains(a)?t.indexOf(a):-1;return o>=0&&"number"==typeof a.selectionStart&&(i={start:a.selectionStart,end:a.selectionEnd,direction:a.selectionDirection}),{controls:r,scrollPositions:n,activeIndex:o,selection:i}}}},{key:"restoreDomState",value:function(e,t){if(null!=e&&e.getElement()&&t){var r,n=[e.getElement()].concat(g(e.queryAll("*"))),i=y(t.controls||[]);try{var a=function(){var e=r.value,t=n[e.index];if(!t)return 1;"input"===e.kind?(t.value=e.value,t.checked=e.checked,t.indeterminate=e.indeterminate):"textarea"===e.kind?t.value=e.value:"select"===e.kind?g(t.options).forEach((function(t,r){t.selected=!0===e.selected[r]})):"details"===e.kind&&(t.open=e.open)};for(i.s();!(r=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}}}},{key:"restoreDomInteractionState",value:(d=w(b().mark((function e(t,r){var n,i,a,o,l,s,u;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&t.getElement()&&r){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,new Promise(requestAnimationFrame);case 4:n=[t.getElement()].concat(g(t.queryAll("*"))),i=y(r.scrollPositions||[]),e.prev=6,i.s();case 8:if((a=i.n()).done){e.next=17;break}if(o=a.value,l=n[o.index]){e.next=13;break}return e.abrupt("continue",15);case 13:l.scrollLeft=o.scrollLeft,l.scrollTop=o.scrollTop;case 15:e.next=8;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(6),i.e(e.t0);case 22:return e.prev=22,i.f(),e.finish(22);case 25:if(s=n[r.activeIndex]){e.next=28;break}return e.abrupt("return");case 28:try{s.focus({preventScroll:!0})}catch(e){null===(u=s.focus)||void 0===u||u.call(s)}if(r.selection&&"function"==typeof s.setSelectionRange)try{s.setSelectionRange(r.selection.start,r.selection.end,r.selection.direction)}catch(e){}case 30:case"end":return e.stop()}}),e,null,[[6,19,22,25]])}))),function(e,t){return d.apply(this,arguments)})},{key:"getMarginValue",value:function(e,t){var r=e.val("margin");if("number"==typeof r)return r;if(Array.isArray(r)){if(2===r.length){var n=v(r,2),i=n[0],a=n[1];return"top"===t||"bottom"===t?i:a}if(4===r.length){var o=v(r,4),l=o[0],s=o[1],u=o[2],c=o[3];if("top"===t)return l;if("right"===t)return s;if("bottom"===t)return u;if("left"===t)return c}}return 0}},{key:"getPaddingValue",value:function(e,t){var r=e.val("padding");if("number"==typeof r)return r;if(Array.isArray(r)){if(2===r.length){var n=v(r,2),i=n[0],a=n[1];return"top"===t||"bottom"===t?i:a}if(4===r.length){var o=v(r,4),l=o[0],s=o[1],u=o[2],c=o[3];if("top"===t)return l;if("right"===t)return s;if("bottom"===t)return u;if("left"===t)return c}}return 0}},{key:"shouldMeasureHeightFromDom",value:function(t){return!1!==t.val("heightFromDom")&&(!t.excludeDefaultStyling()&&!n.d.isDefined(t.targetValues.height)&&!t.val("heightFromDom")&&!e.isHeightDefined(t)&&!t.hasChildren()||t.val("heightFromDom"))}},{key:"shouldMeasureWidthFromDom",value:function(t){return!1!==t.val("widthFromDom")&&(!t.excludeDefaultStyling()&&!t.reuseDomDefinition()&&!t.val("widthFromDom")&&!n.d.isDefined(t.targetValues.width)&&!e.isWidthDefined(t)&&!t.hasChildren()||t.val("widthFromDom"))}},{key:"isHeightDefined",value:function(e){var t;return e.isTargetImperative("height")||!!e.allTargetMap.height||!!e.allTargetMap.dim||n.d.isDefined(null===(t=e.targets.style)||void 0===t?void 0:t.height)}},{key:"isWidthDefined",value:function(e){var t;return e.isTargetImperative("width")||!!e.allTargetMap.width||!!e.allTargetMap.dim||n.d.isDefined(null===(t=e.targets.style)||void 0===t?void 0:t.width)}},{key:"isXDefined",value:function(e){return!!e.allTargetMap.x||!!e.targetValues.x}},{key:"isYDefined",value:function(e){return!!e.allTargetMap.y||!!e.targetValues.y}},{key:"useContentWidth",value:function(t){return!e.isWidthDefined(t)&&!t.val("widthFromDom")&&t.getContentWidth()>0}},{key:"useContentHeight",value:function(t){return!e.isHeightDefined(t)&&!t.val("heightFromDom")&&t.getContentHeight()>0}},{key:"createDom",value:function(e){e.$dom=new l.J,e.$dom.create(e.getBaseElement())}},{key:"patchDom",value:function(e){e.$dom.ensureId(e.oid),e.$dom.attr("tgjs","true"),e.getHtml()&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml())),e.setLastUpdate("html")}},{key:"initStyleMaps",value:function(e){e.domHeightTimestamp=0,e.domWidthTimestamp=0,e.tfMap={},e.styleMap={};var t,r=y(e.allStyleTargetMap);try{for(r.s();!(t=r.n()).done;){var i=v(t.value,1)[0];n.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){r.e(e)}finally{r.f()}}},{key:"getTransformValue",value:function(e,t){var r;return"x"===t?r=Math.floor(e.getX()):"y"===t?r=Math.floor(e.getY()):a.u.transformMap[t]&&(r=a.u.rotate3D[t]?e.val(t):a.u.scaleMap[t]?n.d.formatNum(e.val(t),2):e.floorVal(t)),r}},{key:"fixStyle",value:function(t){if(t.styleTargetMap&&t.hasDom()){for(var r=!1,i=0,o=g(t.styleTargetMap);i<o.length;i++){var l=v(o[i],1)[0];if(!t.isKeyAnimating(l))if(a.u.transformMap[l]){var s=e.getTransformValue(t,l);t.tfMap[l]!==s&&(t.tfMap[l]=s,r=!0)}else if("dim"===l){var u=Math.floor(t.val("dim"));t.styleMap.height===u&&t.$dom.getStyleValue("height")===u||(t.styleMap.height=u,t.$dom.height(u)),t.styleMap.width===u&&t.$dom.getStyleValue("width")===u||(t.styleMap.width=u,t.$dom.width(u))}else if("width"===l){var c=Math.floor(t.getWidth());t.styleMap.width===c&&t.$dom.getStyleValue("width")===c||(t.styleMap.width=c,t.$dom.width(c))}else if("height"===l){var d=Math.floor(t.getHeight());t.styleMap.height===d&&t.$dom.getStyleValue("height")===d||(t.styleMap.height=d,t.$dom.height(d))}else a.u.styleWithUnitMap[l]?n.d.isDefined(t.val(l))&&t.styleMap[l]!==t.val(l)&&(t.$dom.style(l,n.d.isNumber(t.val(l))?"".concat(t.val(l),"px"):t.val(l)),t.styleMap[l]=t.val(l)):n.d.isDefined(t.val(l))&&t.styleMap[l]!==t.val(l)&&(t.$dom.style(l,"".concat(t.val(l))),t.styleMap[l]=t.val(l))}r&&t.$dom.transform(e.getTransformString(t,t.tfMap)),t.styleTargetMap.clear()}}},{key:"commitAnimatedStyles",value:function(t,r){if(t.hasDom()&&null!=r&&r.size){var o,l=!1,s=y(r);try{for(s.s();!(o=s.n()).done;){var u=o.value,c=i.g.getTargetName(u),d=t.val(c);if(n.d.isDefined(d))if(a.u.transformMap[c]){var f=e.getTransformValue(t,c);n.d.isDefined(f)&&(t.tfMap[c]=f,l=!0)}else if("dim"!==c)if("width"!==c)if("height"!==c){var v="number"==typeof d&&a.u.styleWithUnitMap[c]?"".concat(d,"px"):"".concat(d);t.styleMap[c]=d,t.$dom.style(c,v)}else{var g=Math.floor(d);t.styleMap.height=g,t.$dom.height(g)}else{var p=Math.floor(d);t.styleMap.width=p,t.$dom.width(p)}else{var m=Math.floor(d);t.styleMap.width=m,t.styleMap.height=m,t.$dom.width(m),t.$dom.height(m)}}}catch(e){s.e(e)}finally{s.f()}if(l){var b=h(h({},e.getTransformBaseFromActualValues(t)),t.tfMap),T=e.getTransformString(t,b);t.$dom.transform(T,t.val("transformOrder"))}}}},{key:"setWidthFromDom",value:function(e){var t=e.domWidthTimestamp,r=e.getParent(),i=e.getDomParent(),a=!1;if((0,o.EI)().needsRerender(e)&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml()),a=!0),a||r&&t<=r.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.width("auto");var l=e.$dom.width();l=l>0&&e.getHtml()?l+1:l,e.domWidthTimestamp=n.d.now(),e.val("width",l),(l>0||0===l&&e.lastVal("width")>0)&&e.addToStyleTargetList("width"),e.markLayoutDirty("width"),(0,o.fB)().schedule(15,"resize")}}},{key:"setHeightFromDom",value:function(e){var t=e.domHeightTimestamp,r=e.getParent(),i=e.getDomParent(),a=!1;if((0,o.EI)().needsRerender(e)&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml()),a=!0),a||r&&t<=r.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.height("auto");var l=e.$dom.height();e.domHeightTimestamp=n.d.now(),e.val("height",l),(l>0||0===l&&e.lastVal("height")>0)&&e.addToStyleTargetList("height"),e.markLayoutDirty("height"),(0,o.fB)().schedule(15,"resize")}}},{key:"easingMorph",value:function(t,r,n,i,a,o){var l=t.getTargetEasing(r),s=l?u.G.easingFunction(l):void 0,c=s?s(t.getTargetStepPercent(r,a,o)):t.getTargetStepPercent(r,a,o);return e.morph(r,n,i,c)}},{key:"morph",value:function(e,t,r,n){if(a.u.colorMap[i.g.getTargetName(e)]){var o=s.I.color2Integers(r),l=t?s.I.color2Integers(t):s.I.color2Integers("#fff");if(o&&l){var u=Math.floor(o[0]*n+l[0]*(1-n)),c=Math.floor(o[1]*n+l[1]*(1-n)),d=Math.floor(o[2]*n+l[2]*(1-n));return"rgb(".concat(u,",").concat(c,",").concat(d,")")}return r}return"number"==typeof r?t+(r-t)*n:r}},{key:"fixAsyncStyle",value:function(e){if(e.asyncStyleTargetMap){var t,r=y(e.asyncStyleTargetMap);try{var i=function(){var r=v(t.value,1)[0];if("style"===r){var i=e.getStyle();n.d.isDefined(i)&&e.styleMap.style!==i&&(e.$dom.setStyleByMap(i),i.height&&e.val("height",parseInt(i.height,10)),i.width&&e.val("width",parseInt(i.width,10)),e.styleMap.style=i)}else if("attributes"===r){var o=e.getAttributes();n.d.isDefined(o)&&e.styleMap.attributes!==o&&(Object.keys(o).forEach((function(t){e.$dom.attr(t,o[t])})),e.styleMap.attributes=o)}else if("css"===r){var l=e.getCss();e.$dom.css()!==l&&e.$dom.css(l)}else a.u.attributeTargetMap[r]?e.$dom.attr(r,e.val(r)):n.d.isDefined(e.val(r))&&e.styleMap[r]!==e.val(r)&&(e.$dom.style(r,"".concat(e.val(r))),e.styleMap[r]=e.val(r))};for(r.s();!(t=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}e.asyncStyleTargetMap.clear()}}},{key:"getTransformBaseFromActualValues",value:function(e){var t={},r=a.u.transformMap;for(var i in e.actualValues)if(r[i]){var o=e.actualValues[i];n.d.isDefined(o)&&(t[i]=o)}return t}},{key:"num",value:function(e,t){var r=Number(e);return Number.isFinite(r)?r:t}},{key:"shouldUseImplicitTransformOrder",value:function(e){if(e.val("useTargetTransformOrder"))return!0;var t=e.originalTargetNames||[],r=function(e){return e.some((function(e){return t.indexOf(e)>=0}))},n=0;return r(["perspective"])&&n++,r(["translateX","translateY","translateZ","x","y","z"])&&n++,(r(["rotateX","rotateY","rotateZ"])||r(["rotate3DX"])&&r(["rotate3DY"])&&r(["rotate3DZ"])&&r(["rotate3DAngle"]))&&n++,r(["skewX","skewY","skew"])&&n++,(r(["scaleX","scaleY","scaleZ"])||r(["scale3DX"])&&r(["scale3DY"])&&r(["scale3DZ"]))&&n++,n>1}},{key:"buildImplicitTransformOrderMap",value:function(e){var t=function(t){return e.indexOf(t)>=0},r=function(t){var r,n=1/0,i=y(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=e.indexOf(a);o>=0&&o<n&&(n=o)}}catch(e){i.e(e)}finally{i.f()}return n},n=t("translateX")||t("translateY")||t("translateZ"),i=t("x")||t("y")||t("z"),a=t("rotate3DX")&&t("rotate3DY")&&t("rotate3DZ")&&t("rotate3DAngle"),o=t("scale3DX")&&t("scale3DY")&&t("scale3DZ"),l=t("skewX")&&t("skewY"),s=[];if(t("perspective")&&s.push({group:"perspective",order:r(["perspective"]),outputs:["perspective"]}),n?s.push({group:"translate",order:r(["translateX","translateY","translateZ"]),outputs:["translateX","translateY","translateZ"].filter(t)}):i&&s.push({group:"translate",order:r(["x","y","z"]),outputs:["translate3d"]}),a)s.push({group:"rotate",order:r(["rotate3DX","rotate3DY","rotate3DZ","rotate3DAngle"]),outputs:["rotate3d"]});else{var u=["rotateX","rotateY","rotateZ","rotate"],c=u.filter(t);c.length&&s.push({group:"rotate",order:r(u),outputs:c})}if(l)s.push({group:"skew",order:r(["skewX","skewY"]),outputs:["skew"]});else{var d=["skewX","skewY"].filter(t);d.length&&s.push({group:"skew",order:r(["skewX","skewY"]),outputs:d})}if(o)s.push({group:"scale",order:r(["scale3DX","scale3DY","scale3DZ"]),outputs:["scale3d"]});else{var h=["scaleX","scaleY","scaleZ","scale"],f=h.filter(t);f.length&&s.push({group:"scale",order:r(h),outputs:f})}var v={perspective:0,translate:1,rotate:2,skew:3,scale:4};s.sort((function(e,t){var r,n,i=Number.isFinite(e.order)?e.order:1/0,a=Number.isFinite(t.order)?t.order:1/0;return i!==a?i-a:(null!==(r=v[e.group])&&void 0!==r?r:999)-(null!==(n=v[t.group])&&void 0!==n?n:999)}));var g=s.flatMap((function(e){return e.outputs})),p={};return g.forEach((function(e,t){return p[e]=t})),p}},{key:"getTransformString",value:function(t,r){for(var i={},o={},l=n.d.isDefined(r.translateX)||n.d.isDefined(r.translateY)||n.d.isDefined(r.translateZ),s=0,u=Object.keys(r);s<u.length;s++){var c=u[s];if(!i[c])switch(c){case"translateX":case"translateY":case"translateZ":null!==r[c]&&(o[c]="".concat(c,"(").concat(e.num(r[c],0),"px)"),i[c]=!0);break;case"x":case"y":case"z":if(l){i.x=i.y=i.z=!0;break}var d="".concat(e.num(r.x,0),"px"),h="".concat(e.num(r.y,0),"px"),f="".concat(e.num(r.z,0),"px");o.translate3d="translate3d(".concat(d,", ").concat(h,", ").concat(f,")"),i.x=i.y=i.z=!0;break;case"rotate":case"rotateX":case"rotateY":case"rotateZ":case"rotate3DX":case"rotate3DY":case"rotate3DZ":case"rotate3DAngle":n.d.isDefined(r.rotate3DX)&&n.d.isDefined(r.rotate3DY)&&n.d.isDefined(r.rotate3DZ)&&n.d.isDefined(r.rotate3DAngle)?(o.rotate3d="rotate3d(".concat(e.num(r.rotate3DX,0),", ").concat(e.num(r.rotate3DY,0),", ").concat(e.num(r.rotate3DZ,0),", ").concat(e.num(r.rotate3DAngle,0),"deg)"),i.rotate3DX=i.rotate3DY=i.rotate3DZ=i.rotate3DAngle=!0):null!==r[c]&&(o[c]="".concat(c,"(").concat(e.num(r[c],0),"deg)"),i[c]=!0);break;case"scale":case"scaleX":case"scaleY":case"scaleZ":case"scale3DX":case"scale3DY":case"scale3DZ":var v,y,g;n.d.isDefined(r.scale3DX)&&n.d.isDefined(r.scale3DY)&&n.d.isDefined(r.scale3DZ)?(o.scale3d="scale3d(".concat(Number(null!==(v=r.scale3DX)&&void 0!==v?v:1),", ").concat(Number(null!==(y=r.scale3DY)&&void 0!==y?y:1),", ").concat(Number(null!==(g=r.scale3DZ)&&void 0!==g?g:1),")"),i.scale3DX=i.scale3DY=i.scale3DZ=!0):(o[c]="".concat(c,"(").concat(e.num(r[c],1),")"),i[c]=!0);break;case"skewX":case"skewY":var p,m;if(n.d.isDefined(r.skewX)&&n.d.isDefined(r.skewY))o.skew="skew(".concat(Number(null!==(p=r.skewX)&&void 0!==p?p:0),"deg, ").concat(Number(null!==(m=r.skewY)&&void 0!==m?m:0),"deg)"),i.skewX=i.skewY=!0;else if(null!==r[c]){var b;o[c]="".concat(c,"(").concat(Number(null!==(b=r[c])&&void 0!==b?b:0),"deg)"),i[c]=!0}break;case"perspective":o[c]="perspective(".concat(e.num(r.perspective,0),"px)"),i.perspective=!0}}var T={},w=t.val("transformOrder");Array.isArray(w)&&w.length?w.forEach((function(e,t){T[e]=t})):e.shouldUseImplicitTransformOrder(t)&&(t.implicitTransformOrderVersion!==t.targetsVersion&&(t.implicitTransformOrderMap=e.buildImplicitTransformOrderMap(t.originalTargetNames),t.implicitTransformOrderVersion=t.targetsVersion),T=t.implicitTransformOrderMap),Object.keys(T).length||(T=a.u.transformOrder);var k=Object.keys(o).sort((function(e,t){var r,n;return(null!==(r=T[e])&&void 0!==r?r:999)-(null!==(n=T[t])&&void 0!==n?n:999)})).map((function(e){return o[e]}));return k.join(" ")}},{key:"calcAbsolutePositionFromDom",value:function(e){if(e.hasDom()){var t=e.$dom.getBoundingClientRect(),r=Math.floor(t.left),n=Math.floor(t.top);r===Math.floor(e.absX)&&n===Math.floor(e.absY)||(e.absX=t.left,e.absY=t.top,e.markLayoutDirty("islandAbsXY"))}}}],r&&k(t.prototype,r),c&&k(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,c,d,f}()},34:function(e,t,r){r.d(t,{d:function(){return v}});var n=r(855),i=r(333),a=r(585),o=r(90);function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return d(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var v=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,c=[{key:"contains",value:function(e,t){var r;return!(!e||!t||e!==t&&t.getDomParent()!==e&&(null===(r=t.getDomParent())||void 0===r?void 0:r.getDomParent())!==e)}},{key:"uniqueTModels",value:function(e){return u(new Map(e.filter(Boolean).map((function(e){return[e.oid,e]}))).values())}},{key:"list2map",value:function(t,r){return t.reduce((function(t,n){return t[n.oid]=e.isDefined(r)?r:n,t}),{})}},{key:"getDeepList",value:function(e){var t=[];return function e(r){if(r&&r.hasChildren()){var n=r.getChildren();t.push.apply(t,u(n)),n.forEach(e)}}(e),t}},{key:"areEqual",value:function(e,t,r){return r?JSON.stringify(e)===JSON.stringify(t):e===t}},{key:"momentum",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.002,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100,a=t-e,o=r<10?Math.abs(a)/10:Math.abs(a)/r,l=o/n,s=Math.pow(o,2)/(2*n);s>i&&(s=i);var u=a>0?a+s:a-s;return{distance:Math.round(u)/5,duration:Math.round(l),momentumDistance:s}}},{key:"isDefined",value:function(e){return null!=e}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"limit",value:function(t,r,n){return t=(t=(t=e.isDefined(t)?t:r)>n?n:t)<r?r:t}},{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"getLoadTargetName",value:function(e){return"load-".concat(e)}},{key:"formatNum",value:function(e,t){return e?parseFloat(e.toString()).toFixed(t):0}},{key:"now",value:function(){return performance.now()}},{key:"log",value:function(e){return!0===e?console.log:function(){}}},{key:"distance",value:function(e,t,r,n){return Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2))}},{key:"getFullLink",value:function(t){if(e.isDefined(t)){if(!t.startsWith("http")){var r=window.location.protocol;r+=r.endsWith(":")?"//":"://";var n="".concat(r).concat(window.location.hostname);t=t.startsWith("/")?n+t:"".concat(n,"/").concat(t)}return t.endsWith("/")?t.slice(0,-1):t}}},{key:"isStringBooleanOrNumber",value:function(e){var t=s(e);return"string"===t||"boolean"===t||"number"===t}},{key:"logTree",value:function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,n.Bt)(),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=l((0,n.zw)().calcChildren(r));try{for(a.s();!(t=a.n()).done;){var o,s,u,c=t.value,d=c.isVisible()?i+"| ":i+"x ";"BI"===c.type?console.log("".concat(d).concat(c.oid," v:").concat(c.isVisible()," x:").concat(Math.floor(c.getX())," y:").concat(Math.floor(c.getY()),", absX:").concat(Math.floor(c.absX),", absY:").concat(Math.floor(c.absY)," n-e-s:").concat(Math.floor(null===(o=c.viewport)||void 0===o?void 0:o.yNorth),"-").concat(Math.floor(null===(s=c.viewport)||void 0===s?void 0:s.yEast),"-").concat(Math.floor(null===(u=c.viewport)||void 0===u?void 0:u.ySouth)," w:").concat(Math.floor(c.getBaseWidth())," ww:").concat(Math.floor(c.getContentWidth())," h:").concat(Math.floor(c.getBaseHeight())," hh:").concat(Math.floor(c.getContentHeight()))):console.log("".concat(d).concat(c.oid," v:").concat(c.isVisible()," x:").concat(Math.floor(c.getX())," y:").concat(Math.floor(c.getY())," absX:").concat(Math.floor(c.absX),", absY:").concat(Math.floor(c.absY)," w:").concat(Math.floor(c.getWidth())," h:").concat(Math.floor(c.getHeight())," hc:").concat(Math.floor(c.getContentHeight()))),c.hasChildren()&&"exampleItem"!==c.type&&e.logTree(c,d)}}catch(e){a.e(e)}finally{a.f()}}},{key:"logBranch",value:function(e){for(var t=[];e;)t.unshift(e),e=e.bracket?e.bracket:e.getParent();for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r];if((0,n.zw)().getChildren(i).indexOf(a)<0){console.log("branch is not valid: "+i.oid+", "+a.oid);break}}console.log(t.map((function(e){return e.oid})))}},{key:"handleValueChange",value:function(t,r){var n=t.targets[r];n||(r=i.g.getTargetName(r),n=t.targets[r]);var a=t.val(r),o=t.lastVal(r);return"object"===s(n)&&"function"==typeof n.onValueChange&&(!e.areEqual(a,o,n.deepEquality)&&(n.onValueChange.call(t,a,o,t.getTargetCycle(r)),t.setTargetMethodName(r,"onValueChange")),!0)}},{key:"runTargetValue",value:function(t,r,o,l,s){var u=i.g.getTargetName(o);return a.u.allEventMap[u]?"function"==typeof r.value?r.value.call(t,(0,n.kQ)().getCurrentOriginalEvent(),l,s):e.isDefined(r.value)?r.value:r:t.val("___".concat(o))?"function"==typeof r.value?r.value.call(t,t.val("___".concat(o)),l,s):e.isDefined(r.value)?r.value:r:"function"==typeof r.value?r.value.call(t,l,s):e.isDefined(r.value)?r.value:r}},{key:"mergeTargets",value:function(t,r){var n,i=r.targets,a=r.originalTargetNames,o=t.targets,l=[];a.forEach((function(t){e.isDefined(o[t])||l.push(t)})),(n=t.originalTargetNames).push.apply(n,l),l.forEach((function(e){var r=t.originalTargetNames.indexOf(e);o[e]=i[e],t.processNewTarget(e,r)}))}},{key:"cloneTargetDefinition",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(!e.isDefined(t)||"object"!==s(t))return t;if("function"==typeof t)return t;if(t instanceof o.c||t instanceof Element||t instanceof Node||t instanceof Date||t instanceof RegExp)return t;if(r.has(t))return r.get(t);if(Array.isArray(t)){var n=[];r.set(t,n);var i,a=l(t);try{for(a.s();!(i=a.n()).done;){var u=i.value;n.push(e.cloneTargetDefinition(u,r))}}catch(e){a.e(e)}finally{a.f()}return n}var c=Object.getPrototypeOf(t);if(c!==Object.prototype&&null!==c)return t;var d={};r.set(t,d);for(var h=0,f=Object.keys(t);h<f.length;h++){var v=f[h];d[v]=e.cloneTargetDefinition(t[v],r)}return d}},{key:"advanceTargetByElapsed",value:function(t,r){var n,i,a=t.targetValues[r];if(!a)return{step:0,cycle:0,valuePointer:1,done:!1};if(!a.catchupAt)return{step:t.getTargetStep(r),cycle:t.getTargetCycle(r),valuePointer:null!==(i=a.valueList)&&void 0!==i&&i.length?t.getValueListPointer(r):0,done:t.getTargetStep(r)>=t.getTargetSteps(r)};var o=e.now()-a.catchupAt;return null!==(n=a.valueList)&&void 0!==n&&n.length?e.advanceValueListTargetByElapsed(t,r,o):e.advanceSimpleTargetByElapsed(t,r,o)}},{key:"advanceSimpleTargetByElapsed",value:function(t,r,n){var i=t.getTargetSteps(r),a=t.getTargetInterval(r)||8,o=t.getTargetCycles(r),l=t.getTargetStep(r),s=t.getTargetCycle(r);if(i<=0)return{step:i,valuePointer:0,cycle:o,done:!0};for(var u=n;u>0&&s<o;){var c=Math.max(i-l,0),d=c*a;if(!(u>=d))return{step:l+=e.limit(Math.floor(u/a),0,c),steps:i,valuePointer:0,cycle:s,done:!1};if(u-=d,++s>=o)return{step:i,valuePointer:0,cycle:o,done:!0};l=0}return{step:l,steps:i,valuePointer:0,cycle:s,done:s>=o}}},{key:"advanceValueListTargetByElapsed",value:function(t,r,n){for(var i=t.targetValues[r],a=i.valueList,o=i.stepList||[1],l=i.intervalList||[i.interval||8],s=t.getTargetCycles(r),u=t.getTargetCycle(r),c=t.getValueListPointer(r),d=t.getTargetStep(r),h=n;h>0&&u<s;){for(;h>0&&c<a.length;){var f=o[(c-1)%o.length],v=l[(c-1)%l.length]||8;d=e.limit(d,0,f);var y=Math.max(f-d,0),g=y*v;if(!(h>=g))return{step:d+=e.limit(Math.floor(h/v),0,y),steps:f,valuePointer:c,cycle:u,done:!1};h-=g,c++,d=0}if(++u>=s){var p=a.length,m=o[Math.max(0,a.length-2)%o.length];return{step:m,steps:m,valuePointer:p,cycle:s,done:!0}}c=1,d=0}return{step:d,steps:o[(c-1)%o.length],valuePointer:c,cycle:u,done:u>=s}}}],(r=null)&&h(t.prototype,r),c&&h(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,c}()},585:function(e,t,r){r.d(t,{u:function(){return y}});var n,i=r(855),a=r(34),o=r(333);function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v(n.key),n)}}function f(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"defaultActualValues",value:function(){return{x:0,y:0,width:0,height:0,opacity:1,scale:1,scrollLeft:0,scrollTop:0,borderRadius:0,children:[],isInFlow:!0,element:"div",canHaveDom:!0,isIncluded:!0,bracketThreshold:40,bracketSize:2,preventDefault:void 0,canDeleteDom:void 0}}},{key:"toCanonicalKey",value:function(t){var r,n=String(t),i=n.toLowerCase();return null!==(r=e.attributesToTargets[i])&&void 0!==r?r:n}},{key:"isLifeCycleMethod",value:function(t){return e.lifecycleMethodSet.has(t)||e.lifecyclePatterns.step.test(t)||e.lifecyclePatterns.end.test(t)}},{key:"isGpuPreferred",value:function(t){return!!e.gpuTargetMap[o.g.getTargetName(t)]}},{key:"isTransformKey",value:function(t){return!!e.transformMap[t]}}],(r=null)&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();n=y,f(y,"transformOrder",{perspective:0,translateX:1,translateY:1,translateZ:1,translate:1,translate3d:1,rotate:2,rotateX:2,rotateY:2,rotateZ:2,rotate3d:2,skew:3,skewX:3,skewY:3,scale:4,scaleX:4,scaleY:4,scaleZ:4,scale3DX:4,scale3DY:4,scale3DZ:4}),f(y,"defaultTargetStyles",{position:"absolute",left:0,top:0,zIndex:1}),f(y,"transformMap",{x:!0,y:!0,z:!0,translateX:!0,translateY:!0,translateZ:!0,perspective:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,rotate3DX:!0,rotate3DY:!0,rotate3DZ:!0,rotate3DAngle:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,scale3DX:!0,scale3DY:!0,scale3DZ:!0,skew:!0,skewX:!0,skewY:!0}),f(y,"dimMap",{width:!0,height:!0,dim:!0}),f(y,"styleWithUnitMap",{width:!0,height:!0,fontSize:!0,lineHeight:!0,borderRadius:!0,padding:!0,paddingLeft:!0,paddingRight:!0,paddingTop:!0,paddingBottom:!0,left:!0,top:!0,right:!0,bottom:!0,wordSpacing:!0,letterSpacing:!0}),f(y,"colorMap",{color:!0,backgroundColor:!0,borderColor:!0,background:!0}),f(y,"styleTargetMap",c(c(c(c({},n.transformMap),n.styleWithUnitMap),n.colorMap),{},{dim:!0,color:!0,opacity:!0,zIndex:!0,border:!0,borderTop:!0,borderLeft:!0,borderRight:!0,borderBottom:!0})),f(y,"gpuTargetMap",c(c({},n.transformMap),{},{color:!0,backgroundColor:!0,borderColor:!0,opacity:!0,width:!0,height:!0})),f(y,"asyncStyleTargetMap",{position:!0,css:!0,style:!0,textAlign:!0,boxSizing:!0,transformStyle:!0,transformOrigin:!0,attributes:!0,justifyContent:!0,flexDirection:!0,alignItems:!0,display:!0,cursor:!0,fontFamily:!0,overflow:!0,overflowX:!0,overflowY:!0,textDecoration:!0,boxShadow:!0,fontWeight:!0,willChange:!0,backgroundImage:!0,backgroundSize:!0,flexWrap:!0,userSelect:!0,outline:!0,backfaceVisibility:!0,filter:!0}),f(y,"scaleMap",{scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,scale3DX:!0,scale3DY:!0,scale3DZ:!0}),f(y,"rotate3D",{rotate3DX:!0,rotate3DY:!0,rotate3DZ:!0}),f(y,"attributeTargetMap",{lang:!0,autoFocus:!0,placeholder:!0,autoComplete:!0,name:!0,type:!0,src:!0,href:!0,method:!0,size:!0,value:!0,maxLength:!0,minLength:!0,max:!0,min:!0,readOnly:!0,required:!0,alt:!0,disabled:!0,action:!0,accept:!0,selected:!0,rows:!0,cols:!0,tabIndex:!0,role:!0,ariaLabel:!0,ariaCurrent:!0,ariaPressed:!0}),f(y,"mustExecuteTargets",{width:!0,height:!0,heightFromDom:!0,widthFromDom:!0,fetch:!0,fetchImage:!0,isVisible:!0,canDeleteDom:!0}),f(y,"ignoreRerun",{isVisible:!0}),f(y,"ignoreTargetMethodNameMap",{isVisible:!0}),f(y,"cssFunctionMap",{skew:{x:0,y:0},translate3d:{x:0,y:0,z:0},rotate3d:{x:0,y:0,z:0,a:0},scale3d:{x:0,y:0,z:0}}),f(y,"bypassInitialProcessingTargetMap",{onChildrenChange:!0,onVisibleChildrenChange:!0,onPageClose:!0}),f(y,"controlTargetMap",{defaultStyling:!0,styling:!0,reuseDomDefinition:!0,useWindowFrame:!0,canDeleteDom:!0,onDomEvent:!0,canHaveDom:!0}),f(y,"events",{mouseStart:{pointerdown:{eventName:"mousedown",inputType:"pointer",eventType:"start",order:2,windowEvent:!1,queue:!0,rateLimit:0},mousedown:{eventName:"mousedown",inputType:"mouse",eventType:"start",order:3,windowEvent:!1,queue:!0,rateLimit:0}},mouseEnd:{pointerup:{eventName:"mouseup",inputType:"pointer",eventType:"end",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseup:{eventName:"mouseup",inputType:"mouse",eventType:"end",order:3,windowEvent:!1,queue:!0,rateLimit:0}},clickEvents:{click:{eventName:"click",inputType:"mouse",eventType:"click",order:1,windowEvent:!1,queue:!1,rateLimit:0}},touchStart:{touchstart:{eventName:"touchstart",inputType:"touch",eventType:"start",order:1,windowEvent:!1,queue:!0,rateLimit:0}},touchEnd:{touchend:{eventName:"touchend",inputType:"touch",eventType:"end",order:1,windowEvent:!1,queue:!0,rateLimit:0}},cancelEvents:{touchcancel:{eventName:"touchcancel",inputType:"touch",eventType:"cancel",order:1,windowEvent:!1,queue:!0,rateLimit:0},pointercancel:{eventName:"mousecancel",inputType:"pointer",eventType:"cancel",order:2,windowEvent:!1,queue:!0,rateLimit:0}},windowEvents:{keyup:{eventName:"key",inputType:"",eventType:"key",order:1,windowEvent:!0,queue:!0,rateLimit:50},keydown:{eventName:"keydown",inputType:"",eventType:"keydown",order:1,windowEvent:!0,queue:!0,rateLimit:50},blur:{eventName:"blur",inputType:"mouse",eventType:"cancel",order:2,windowEvent:!0,queue:!0,rateLimit:0},resize:{eventName:"resize",inputType:"",eventType:"resize",order:1,windowEvent:!0,queue:!0,rateLimit:50},orientationchange:{eventName:"resize",inputType:"",eventType:"resize",order:1,windowEvent:!0,queue:!0,rateLimit:50},scroll:{eventName:"scroll",inputType:"",eventType:"scroll",order:1,windowEvent:!0,queue:!0,rateLimit:50}},containerScroll:{scroll:{eventName:"scroll",inputType:"",eventType:"scroll",order:1,windowEvent:!1,queue:!0,rateLimit:50}},inputEvents:{input:{eventName:"input",inputType:"",eventType:"input",order:1,windowEvent:!1,queue:!0,rateLimit:50}},changeEvents:{change:{eventName:"change",inputType:"",eventType:"change",order:1,windowEvent:!1,queue:!0,rateLimit:0}},submitEvents:{submit:{eventName:"submit",inputType:"form",eventType:"submit",order:1,windowEvent:!1,queue:!0,rateLimit:0}},popState:{popstate:{eventName:"popstate",inputType:"",eventType:"popstate",order:1,windowEvent:!0,queue:!0,rateLimit:0}},leaveEvents:{pointerleave:{eventName:"mouseleave",inputType:"pointer",eventType:"leave",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseleave:{eventName:"mouseleave",inputType:"mouse",eventType:"leave",order:3,windowEvent:!1,queue:!0,rateLimit:0}},enterEvents:{pointerenter:{eventName:"mouseenter",inputType:"pointer",eventType:"enter",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseenter:{eventName:"mouseenter",inputType:"mouse",eventType:"enter",order:3,windowEvent:!1,queue:!0,rateLimit:0}},moveEvents:{touchmove:{eventName:"touchmove",inputType:"touch",eventType:"move",order:1,windowEvent:!1,queue:!0,rateLimit:50},pointermove:{eventName:"mousemove",inputType:"pointer",eventType:"move",order:2,windowEvent:!1,queue:!0,rateLimit:50},mousemove:{eventName:"mousemove",inputType:"mouse",eventType:"move",order:3,windowEvent:!1,queue:!0,rateLimit:50}},documentDragEvents:{pointermove:{eventName:"mousemove",inputType:"pointer",eventType:"move",order:2,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},mousemove:{eventName:"mousemove",inputType:"mouse",eventType:"move",order:3,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},touchmove:{eventName:"touchmove",inputType:"touch",eventType:"move",order:1,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},pointerup:{eventName:"mouseup",inputType:"pointer",eventType:"end",order:2,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},mouseup:{eventName:"mouseup",inputType:"mouse",eventType:"end",order:3,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},touchend:{eventName:"touchend",inputType:"touch",eventType:"end",order:1,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},pointercancel:{eventName:"mousecancel",inputType:"pointer",eventType:"cancel",order:2,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},touchcancel:{eventName:"touchcancel",inputType:"touch",eventType:"cancel",order:1,windowEvent:!1,queue:!0,rateLimit:0,capture:!0}},wheelEvents:{wheel:{eventName:"wheel",inputType:"",eventType:"wheel",order:1,windowEvent:!1,queue:!0,rateLimit:50},mousewheel:{eventName:"wheel",inputType:"",eventType:"wheel",order:1,windowEvent:!1,queue:!0,rateLimit:50}}}),f(y,"attributesToTargets",{onstart:"onStart",onend:"onEnd",onkey:"onKey",onkeydown:"onKeyDown",onanykey:"onAnyKey",onclick:"onClick",onanyclick:"onAnyClick",onhover:"onHover",onswipe:"onSwipe",onanyswipe:"onAnySwipe",onpinch:"onPinch",onenter:"onEnter",onleave:"onLeave",onblur:"onBlur",onfocus:"onFocus",onscroll:"onScroll",onscrollleft:"onScrollLeft",onscrolltop:"onScrollTop",onscrollleftend:"onScrollLeftEnd",onscrolltopend:"onScrollTopEnd",onwindowscroll:"onWindowScroll",onwindowscrolltopend:"onWindowScrollTopEnd",onwindowscrollleftend:"onWindowScrollLeftEnd",onpopstate:"onPopState",onchange:"onChange",oninput:"onInput",onsubmit:"onSubmit",onvisible:"onVisible",oninvisible:"oInvisible",onresize:"onResize",textalign:"textAlign",preventdefault:"preventDefault",translatex:"translateX",translatey:"translateY",translatez:"translateZ",rotate3dx:"rotate3DX",rotate3dy:"rotate3DY",rotate3dz:"rotate3DZ",rotate3dangle:"rotate3DAngle",scale3dx:"scale3DX",scale3dy:"scale3DY",scale3dz:"scale3DZ",skewx:"skewX",skewy:"skewY",lineheight:"lineHeight",fontsize:"fontSize",borderradius:"borderRadius",letterspacing:"letterSpacing",backgroundcolor:"backgroundColor",backgroundimage:"backgroundImage",backgroundsize:"backgroundSize",bordertop:"borderTop",borderleft:"borderLeft",borderright:"borderRight",borderbottom:"borderBottom",boxsizing:"boxSizing",transformstyle:"transformStyle",transformorigin:"transformOrigin",justifycontent:"justifyContent",flexdirection:"flexDirection",flexwrap:"flexWrap",alignitems:"alignItems",fontfamily:"fontFamily",overflowx:"overflowX",overflowy:"overflowY",textdecoration:"textDecoration",boxshadow:"boxShadow",fontweight:"fontWeight",willchange:"willChange",domholder:"domHolder",shouldcalculatechildtargets:"shouldCalculateChildTargets",domparent:"domParent",containeroverflowmode:"containerOverflowMode",itemoverflowmode:"itemOverflowMode",onvisiblechildrenchange:"onVisibleChildrenChange",onchildrenchange:"onChildrenChange",isvisible:"isVisible",isinflow:"isInFlow",basewidth:"baseWidth",baseheight:"baseHeight",paddingleft:"paddingLeft",paddingright:"paddingRight",paddingtop:"paddingTop",paddingbottom:"paddingBottom",marginleft:"marginLeft",marginright:"marginRight",margintop:"marginTop",marginbottom:"marginBottom",userselect:"userSelect",arialabel:"ariaLabel",ariacurrent:"ariaCurrent",ariapressed:"ariaPressed",tabindex:"tabIndex",backfacevisibility:"backfaceVisibility"}),f(y,"targetToEventsMapping",{onStart:["touchStart","mouseStart"],onEnd:[],onKey:[],onKeyDown:[],onAnyKey:[],onBlur:[],onFocus:[],onClick:["clickEvents","touchStart","mouseStart"],onAnyClick:["clickEvents","touchStart","mouseStart"],onHover:["moveEvents"],onSwipe:["touchStart","mouseStart"],onAnySwipe:["touchStart","mouseStart"],onPinch:["touchStart"],onEnter:["enterEvents"],onLeave:["leaveEvents"],onScroll:["touchStart","mouseStart","wheelEvents"],onScrollLeft:["touchStart","mouseStart","wheelEvents"],onScrollTop:["touchStart","mouseStart","wheelEvents"],onScrollLeftEnd:["touchStart","mouseStart","wheelEvents"],onScrollTopEnd:["touchStart","mouseStart","wheelEvents"],onWindowScroll:["containerScroll"],onWindowScrollTopEnd:["containerScroll"],onWindowScrollLeftEnd:["containerScroll"],onPopState:["popState"],onChange:["changeEvents"],onInput:["inputEvents"],onSubmit:["submitEvents"]}),f(y,"internalEventMap",{onDomEvent:function(e){return e.hasDomNow},onVisible:function(e){return e.isNowVisible},onInvisible:function(e){return e.isNowInvisible},onResize:function(e){var t,r=e.getParent(),n=(0,i.S9)(),a=r?r.getDimLastUpdate():0,o=Math.max(n,a);return!!o&&(!((null!==(t=e.lastResizeHandledTime)&&void 0!==t?t:0)>=o)&&(e.lastResizeHandledTime=o,!0))}}),f(y,"allEventMap",{onStart:function(e){return(0,i.kQ)().isStartEvent()&&(0,i.kQ)().isStartHandler(e)},onEnd:function(e){return(0,i.kQ)().isEndEvent()&&(0,i.kQ)().isEndHandler(e)},onAnySwipe:function(){return(0,i.kQ)().isSwipeEvent()&&a.d.isDefined((0,i.kQ)().swipeStartX)},onHover:function(e){return(0,i.kQ)().isMoveEvent()&&(0,i.kQ)().isHoverHandler(e)},onClick:function(e){return(0,i.kQ)().isClickEvent()&&(0,i.kQ)().isClickHandler(e)},onAnyClick:function(){return(0,i.kQ)().isClickEvent()},onEnter:function(e){return(0,i.kQ)().isEnterHandler(e)},onLeave:function(e){return(0,i.kQ)().isLeaveHandler(e)},onSwipe:function(e){return(0,i.kQ)().isSwipeHandler(e)&&(0,i.kQ)().isSwipeEvent()&&a.d.isDefined((0,i.kQ)().swipeStartX)},onFocus:function(e){return(0,i.kQ)().onFocus(e)},onBlur:function(e){return(0,i.kQ)().onBlur(e)},onPinch:function(e){return(0,i.kQ)().isPinchHandler(e)},onKey:function(e){return"key"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey&&(0,i.kQ)().currentHandlers.focus===e&&(0,i.kQ)().currentHandlers.justFocused!==e},onKeyDown:function(e){return"keydown"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey&&(0,i.kQ)().currentHandlers.focus===e&&(0,i.kQ)().currentHandlers.justFocused!==e},onAnyKey:function(){return"key"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey},onScroll:function(e){return(0,i.kQ)().isScrollLeftHandler(e)&&(0,i.kQ)().deltaX()||(0,i.kQ)().isScrollTopHandler(e)&&(0,i.kQ)().deltaY()},onScrollTop:function(e){return"horizontal"!==(0,i.kQ)().getOrientation()&&(0,i.kQ)().isScrollTopHandler(e)&&(0,i.kQ)().deltaY()},onScrollLeft:function(e){return"vertical"!==(0,i.kQ)().getOrientation()&&(0,i.kQ)().isScrollLeftHandler(e)&&(0,i.kQ)().deltaX()},onScrollTopEnd:function(e){return"scrolltopend"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isScrollTopEndHandler(e)},onScrollLeftEnd:function(e){return"scrollleftend"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isScrollLeftEndHandler(e)},onWindowScroll:function(e){return"scroll"===(0,i.kQ)().getEventType()&&(0,i.kQ)().getEventTModel()===e},onWindowScrollTopEnd:function(e){return"windowscrolltopend"===(0,i.kQ)().getEventType()&&(0,i.kQ)().getEventTModel()===e},onWindowScrollLeftEnd:function(e){return"windowscrollleftend"===(0,i.kQ)().getEventType()&&(0,i.kQ)().getEventTModel()===e},onPopState:function(){return"popstate"===(0,i.kQ)().getEventType()},onChange:function(e){return"change"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isFormHandler(e)},onInput:function(e){return"input"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isFormHandler(e)},onSubmit:function(){return"submit"===(0,i.kQ)().getEventType()}}),f(y,"excludedTargetKeys",new Set(["originalTargetName","originalTModel","activateNextTarget","invokerTarget","invokerTModel","active","addChildAction","childAction","fetchAction"])),f(y,"lifecycleCallbackSet",new Set(["onComplete","onVisibleComplete","onValueChange","onImperativeEnd","onImperativeStep","onStepsEnd","onSuccess","onError"])),f(y,"lifecycleCoreSet",new Set(["value","steps","cycles","enabledOn","pauseOn","loop","interval"])),f(y,"lifecycleMethodSet",new Set([].concat(l(n.lifecycleCallbackSet),l(n.lifecycleCoreSet)))),f(y,"lifecyclePatterns",{step:/^on[A-Za-z]+Step$/,end:/^on[A-Za-z]+End$/}),f(y,"eventSet",new Set([].concat(l(Object.keys(n.allEventMap)),l(Object.keys(n.internalEventMap))))),f(y,"styleSet",new Set([].concat(l(Object.keys(n.styleTargetMap)),l(Object.keys(n.asyncStyleTargetMap)),l(Object.keys(n.attributeTargetMap))))),f(y,"reservedKeywordSet",new Set([].concat(l(n.styleSet),l(Object.keys(n.defaultActualValues())),l(Object.keys(n.allEventMap)),l(Object.keys(n.internalEventMap)),l(Object.keys(n.mustExecuteTargets)),["html","isInFlow","domHolder","domParent","gap","widthFromDom","heightFromDom","requiresDom","preventDefault","canDeleteDom","textOnly","styling","$dom","defaultStyling","reuseDomDefinition","canHaveDom","excludeXYCalc","excludeX","excludeY","containerOverflowMode","itemOverflowMode","baseElement","element","otype","calculateChildren","domIsland","bracketThreshold","bracketSize","shouldBeBracketed","sourceDom"]))),f(y,"activationKeywordSet",new Set(["originalTModel","originalTargetName","activateNextTarget"]))},484:function(e,t,r){r.d(t,{j:function(){return w}});var n=r(333),i=r(690),a=r(585),o=r(90),l=r(34),s=r(980),u=r(421),c=r(855);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T(n.key),n)}}function T(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,f=[{key:"prepareTarget",value:function(e,t){n.g.currentTargetName=t,n.g.currentTModel=e,e.isExecuted(t)&&(e.getTargetCycles(t)>1&&e.getTargetCycle(t)<e.getTargetCycles(t)-1?e.incrementTargetCycle(t):e.resetTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t))}},{key:"executeDeclarativeTarget",value:function(t,r){var i=n.g.getTargetName(r);t.allTargetMap[i]=r,e.resolveTargetValue(t,r),e.updateTarget(t,t.targetValues[r],r,!1)}},{key:"assignImperativeTargetValue",value:function(e,t,r,i){var a;e.targetValues[t]=e.targetValues[t]||n.g.emptyValue();var o=e.targetValues[t];return o.isImperative=!0,o.originalTargetName=r,o.originalTModel=i,(null===(a=e.animatingMap)||void 0===a?void 0:a.has(t))&&e.getTargetSteps(t)>0&&(0,c.s)().cancelKey(e,t),o}},{key:"resetImperativeProgress",value:function(e){e.step=0,e.cycle=0,Array.isArray(e.valueList)?e.valuePointer=1:e.valuePointer=0}},{key:"executeImperativeTarget",value:function(t,r,n,i,a,o,l,u){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{},h=new Map;e._executeImperativeTarget(t,r,n,i,a,o,l,u,c,d,h),h.size&&s.T.overrideAnimatedKeyWithSnap(t,g(h.keys()),g(h.values()))}},{key:"_executeImperativeTarget",value:function(t,r,o,s,u,c,d,f){var y,g=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{},m=arguments.length>10?arguments[10]:void 0;if("string"==typeof r){var b=n.g.getTargetName(r);r=r.endsWith("+")?r:r+"+",t.allTargetMap[b]=r}if(i.D.isListTarget(o)){var T=l.d.isDefined(o.steps)?o.steps:s,w=l.d.isDefined(o.interval)?o.interval:u,k=l.d.isDefined(o.easing)?o.easing:c,S=l.d.isDefined(o.cycles)?o.cycles:g;y=e.assignImperativeTargetValue(t,r,d,f),e.assignListTarget(t,r,y,o.list,o.list[0],T,w,k,S)}else{if(i.D.isTargetSpecObject(o)){var M=e.getTargetOptions(o),E=i.D.getValueStepsCycles(t,r,o),D=E[0],C=l.d.isDefined(E[1])?E[1]:s,x=l.d.isDefined(E[2])?E[2]:u,O=l.d.isDefined(E[3])?E[3]:c,L=l.d.isDefined(E[4])?E[4]:g;return void e._executeImperativeTarget(t,r,D,C,x,O,d,f,L,M,m)}if(i.D.isObjectTarget(r,o)){var P=a.u.cssFunctionMap[r]?v(v({},a.u.cssFunctionMap[r]),o):o;Object.keys(P).forEach((function(r){var n=P[r],a=s,o=u,v=c,y=g,b=p;if("object"===h(n)&&!i.D.isListTarget(n)){b=e.getTargetOptions(n);var T=i.D.getValueStepsCycles(t,r,n);n=T[0],a=l.d.isDefined(T[1])?T[1]:s,o=l.d.isDefined(T[2])?T[2]:u,v=l.d.isDefined(T[3])?T[3]:c,y=l.d.isDefined(T[4])?T[4]:g}e._executeImperativeTarget(t,r,n,a,o,v,d,f,y,b,m)}))}else{if("object"===h(o)&&!i.D.isListTarget(o)){var A=i.D.getValueStepsCycles(t,r,o);if(o!==A[0])return o=A[0],s=l.d.isDefined(A[1])?A[1]:s,u=l.d.isDefined(A[2])?A[2]:u,c=l.d.isDefined(A[3])?A[3]:c,g=l.d.isDefined(A[4])?A[4]:g,void e._executeImperativeTarget(t,r,o,s,u,c,d,f,g,p,m)}y=e.assignImperativeTargetValue(t,r,d,f),e.assignSingleTarget(y,o,void 0,s,g,u,c)}}y&&(e.resetImperativeProgress(y),e.assignTargetOptions(y,p),e.updateTarget(t,y,r,!0,m),t.isTargetDone(r)&&n.g.shouldActivateNextTarget(t,r))}},{key:"updateTarget",value:function(t,r,n,i,o){t.setLastUpdate(n),0===t.getTargetSteps(n)&&e.snapActualToTarget(t,n,o),r.executionFlag=!0,r.executionCount++,r.snapAnimation||t.addToStyleTargetList(n,i),t.setTargetMethodName(n,"value");var l=e.calculateTargetStatus(t,r,n);t.setTargetStatus(n,l);var s=t.isTargetImperative(n)||t.shouldScheduleRun(n);!a.u.ignoreRerun[n]&&s&&(0,c.fB)().schedule(1,"updateTarget-".concat(t.oid,"-").concat(n))}},{key:"calculateTargetStatus",value:function(e,t,r){var n,i=e.getValueListPointer(r),a=e.getTargetCycle(r),o=e.getTargetCycles(r),l=e.getTargetStep(r),s=e.getTargetSteps(r);return t.snapAnimation?"done":l<s||Array.isArray(t.valueList)&&i<t.valueList.length-1?"updating":e.isTargetInLoop(r)||a<o-1?"active":null!==(n=e.targets[r])&&void 0!==n&&n.fetchAction&&!(0,c.qI)().isLoadingSuccessful(e,r)?"fetching":"done"}},{key:"assignListTarget",value:function(e,t,r,n,i,a,o,s,c){r.valueList=n,r.stepList=Array.isArray(a)?a:l.d.isDefined(a)?[a]:[1],r.intervalList=Array.isArray(o)?o:l.d.isDefined(o)?[o||8]:[8],r.easingList=Array.isArray(s)?s:l.d.isDefined(s)?[s]:[u.G.LINEAR],r.cycles=c,r.valuePointer=1,r.value=n[1],r.initialValue=i,r.steps=r.stepList[0],r.interval=r.intervalList[0],r.easing=r.easingList[0],r.step=0,r.snapAnimation=!1,e.val(t,i),e.setActual(t,i)}},{key:"assignSingleTarget",value:function(e,t,r,n,i,a,o){delete e.valueList,delete e.stepList,delete e.intervalList,delete e.easingList,l.d.isDefined(e.valuePointer)&&(e.valuePointer=0),e.initialValue=r,e.lastValue=e.value,e.value=t,e.steps=n||0,e.cycles=i||1,e.interval=a||0,e.easing=o,e.snapAnimation=!1}},{key:"snapActualToTarget",value:function(e,t,r){var n,i,a=e.targetValues[t];if(Array.isArray(a.valueList))a.valuePointer=a.valueList.length-1,i=a.valueList[a.valuePointer],a.value=i;else{var o=a.value;i="function"==typeof o?o.call(e):o}var u=e.val(t)!==i,c=null===(n=e.animatingMap)||void 0===n?void 0:n.has(t);(u||c)&&(u&&(e.val(t,i),e.setActual(t,i),l.d.handleValueChange(e,t)),e.hasValidAnimation()&&e.canBeAnimated(t)?(a.snapAnimation=!0,r?r.set(t,i):s.T.overrideAnimatedKeyWithSnap(e,t,i)):a.snapAnimation=!1)}},{key:"getTargetOptions",value:function(e){var t={};return e&&"object"===h(e)?(Object.prototype.hasOwnProperty.call(e,"pauseOn")&&(t.pauseOn=e.pauseOn),t):t}},{key:"assignTargetOptions",value:function(e,t){t&&(Object.prototype.hasOwnProperty.call(t,"pauseOn")?e.pauseOn=t.pauseOn:delete e.pauseOn)}},{key:"resolveTargetValue",value:function(t,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.getTargetCycle(r);if(!i.D.isIntervalTarget(t.targets[r])||1!==s){var u=!t.targetValues[r]&&l.d.isDefined(t.targets[r].initialValue)?t.targets[r].initialValue:void 0,f=i.D.getValueStepsCycles(t,r,t.targets[r],s),v=f[0],y=f[1]||0,g=f[2]||0,p=f[3],m=f[4]||1,b=t.targetValues[r]||n.g.emptyValue();t.targetValues[r]=b;var T=l.d.isDefined(p)?p:l.d.isDefined(t.targets[r].easing)?t.targets[r].easing:void 0;if(i.D.isIntervalTarget(v))e.assignSingleTarget(b,void 0,u,0,2,v.interval,T);else if(i.D.isChildTarget(r,v))t.addChild(v),e.assignSingleTarget(b,v,void 0,0,m,g,T);else if(i.D.isChildrenTarget(r,v))(Array.isArray(v)?v:v?[v]:[]).forEach((function(e){t.addChild(e),n.g.markAddChild(t,n.g.currentTargetName,t.addedChildren[t.addedChildren.length-1].child)})),e.assignSingleTarget(b,v,void 0,0,m,g,T);else if(i.D.isChildObjectTarget(r,t.targets[r])){var w=new o.c(r,t.targets[r]);t.addChild(w);var k=Object.fromEntries(Object.entries(v).filter((function(e){var t=d(e,1)[0];return!a.u.excludedTargetKeys.has(t)})));e.assignSingleTarget(b,k,void 0,0,m,g,T)}else if("object"===h(v)&&!0===v.asChild){var S=new o.c(r,v);t.addChild(S),e.assignSingleTarget(b,v,void 0,0,m,g,T)}else if(i.D.isFetchTarget(r,v))e.assignSingleTarget(b,v,void 0,0,m,g,T),(0,c.qI)().fetch(t,v);else if(i.D.isFetchImageTarget(r,v))e.assignSingleTarget(b,v,void 0,0,m,g,T),(0,c.qI)().fetchImage(t,v);else if(i.D.isListTarget(v))e.assignListTarget(t,r,b,v.list,v.list[0],y,g,T,m);else{var M,E;y>0&&!l.d.areEqual(t.val(r),v,null!==(M=null===(E=t.targets[r])||void 0===E?void 0:E.deepEquality)&&void 0!==M&&M)&&t.resetTargetStep(r),e.assignSingleTarget(b,v,u,y,m,g,T)}}}}],(r=null)&&b(t.prototype,r),f&&b(t,f),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,f}()},690:function(e,t,r){r.d(t,{D:function(){return d}});var n=r(333),i=r(585),a=r(34),o=r(90),l=r(421);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,c=[{key:"isPlainObject",value:function(e){return!!e&&"object"===s(e)&&!Array.isArray(e)&&e.constructor===Object}},{key:"hasLifecycle",value:function(e){for(var t in e)if("function"==typeof e[t]&&i.u.isLifeCycleMethod(t))return!0;return!1}},{key:"hasTargetSuffix",value:function(e){return/\${1,2}$/.test(e)||e.startsWith("_")}},{key:"isTargetKey",value:function(e){return e=n.g.getTargetName(e),i.u.reservedKeywordSet.has(e)}},{key:"scoreChild",value:function(t){var r=0,n=0;for(var a in t){var o=t[a];if(!i.u.defaultTargetStyles[a]&&!i.u.excludedTargetKeys.has(a)&&"active"!==a){if(e.hasTargetSuffix(a))return!0;if(this.hasLifecycle(o))return!0;e.isTargetKey(a)?r++:i.u.activationKeywordSet.has(a)||"function"==typeof t[a]||n++}}return r-n>=1}},{key:"classifyEntry",value:function(t,r){return e.isPlainObject(r)?e.isTargetKey(t)?"target2":"originalTModel"===t?"target3":r instanceof o.c?"children":e.isListTarget(r)||e.isFetchTarget(t,r)||e.isFetchImageTarget(t,r)?"target4":this.hasLifecycle(r)?"target5":this.scoreChild(r)?"children":"target6":"target1"}},{key:"isTargetSpecObject",value:function(e){return!(!e||"object"!==s(e)||Array.isArray(e)||Object.getPrototypeOf(e)!==Object.prototype)&&(Object.prototype.hasOwnProperty.call(e,"value")||Object.prototype.hasOwnProperty.call(e,"steps")||Object.prototype.hasOwnProperty.call(e,"interval")||Object.prototype.hasOwnProperty.call(e,"easing")||Object.prototype.hasOwnProperty.call(e,"cycles"))}},{key:"isChildrenTarget",value:function(e,t){return("children"===n.g.getTargetName(e)||"addChildren"===n.g.getTargetName(e))&&"object"===s(t)}},{key:"isChildTarget",value:function(e,t){return"child"===n.g.getTargetName(e)&&"object"===s(t)}},{key:"isChildObjectTarget",value:function(t,r){return"children"===e.classifyEntry(t,r)}},{key:"isListTarget",value:function(e){return"object"===s(e)&&null!==e&&Array.isArray(e.list)}},{key:"isFetchTarget",value:function(e,t){return!("fetch"!==n.g.getTargetName(e)||"string"!=typeof t&&!Array.isArray(t)&&(!t||"object"!==s(t)||"string"!=typeof t.url))}},{key:"isFetchImageTarget",value:function(e,t){return"fetchImage"===n.g.getTargetName(e)&&t&&("string"==typeof t||Array.isArray(t))}},{key:"isObjectTarget",value:function(t,r){return"style"!==n.g.getTargetName(t)&&"object"===s(r)&&null!==r&&!Array.isArray(r)&&Object.getPrototypeOf(r)===Object.prototype&&!e.isTargetSpecObject(r)}},{key:"isIntervalTarget",value:function(e){return!(!e||"object"!==s(e))&&(!(!e.isInterval||!a.d.isDefined(e.interval))||a.d.isDefined(e.interval)&&!a.d.isDefined(e.loop)&&!a.d.isDefined(e.steps)&&!a.d.isDefined(e.cycles))}},{key:"isPrimitiveArray",value:function(e){return!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}))}},{key:"isValueStepsCycleArray",value:function(t){if(!Array.isArray(t)||0===t.length||t.length>5)return!1;if("number"!=typeof t[0]&&"string"!=typeof t[0]&&!e.isListTarget(t[0]))return!1;if(t.length>=2&&"number"!=typeof t[1])return!1;if(t.length>=3&&"number"!=typeof t[2])return!1;if(t.length>=4){var r=t[3],n="number"==typeof r,i="string"==typeof r&&l.G.easeMap.has(r);if(!n&&!i)return!1}if(5===t.length){var a=t[3],o=t[4];if("string"!=typeof a||!l.G.easeMap.has(a))return!1;if("number"!=typeof o)return!1}return e.isListTarget(t[0])||t.length>=2}},{key:"getValueStepsCycles",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.targets[r],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.getTargetCycle(r),o=n&&n.valueOnly,l=t.val(r),u=null,c=0,d=0,h=void 0,f=1,v=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return"function"==typeof e?e.call.apply(e,[t].concat(n)):e};return function n(y){if(Array.isArray(y))return g=y,o||!e.isValueStepsCycleArray(g)?[g,c,d,h,f]:(u=g[0],c=g.length>=2?g[1]:c,d=g.length>=3?g[2]:d,g.length>=4&&("string"==typeof g[3]?(h=g[3],f=g.length>=5?g[4]:f):f=g[3]),[u,c,d,h,f]);var g;if("object"===s(y)&&null!==y&&Object.getPrototypeOf(y)===Object.prototype){var p=a.d.runTargetValue(t,y,r,i,l);return e.isPrimitiveArray(p)&&(a.d.isDefined(y.steps)||a.d.isDefined(y.interval)||a.d.isDefined(y.easing)||a.d.isDefined(y.cycles))?(u={list:p},c=a.d.isDefined(y.steps)?v(y.steps,i):0,d=a.d.isDefined(y.interval)?v(y.interval,i):8,h=a.d.isDefined(y.easing)?v(y.easing,i):h,f=a.d.isDefined(y.cycles)?v(y.cycles,i,t.getTargetCycles(r)):1,[u,c,d,h,f]):"object"===s(p)&&a.d.isDefined(p.value)&&a.d.isDefined(p.steps)?n(p):(u=p,c=a.d.isDefined(y.steps)?v(y.steps,i):0,d=a.d.isDefined(y.interval)?v(y.interval,i):0,h=a.d.isDefined(y.easing)?v(y.easing,i):h,f=a.d.isDefined(y.cycles)?v(y.cycles,i,t.getTargetCycles(r)):1,Array.isArray(u)?n(u):[u,c,d,h,f])}return"function"==typeof y?n(y.call(t,i,l)):[y,c,d,h,f]}(n)}}],(r=null)&&u(t.prototype,r),c&&u(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,c}()},333:function(e,t,r){r.d(t,{g:function(){return f}});var n=r(855),i=r(34),a=r(585);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,u=[{key:"emptyValue",value:function(){return{value:void 0,actual:void 0,step:0,steps:0,cycle:0,valuePointer:0,cycles:1,interval:0,initialValue:void 0,scheduleTimeStamp:void 0,lastUpdate:0,updateCount:0,completeCount:0,completeTime:0,executionCount:0,visibleCompleteCount:0,status:"",executionFlag:!1,isImperative:!1,originalTargetName:void 0,easing:void 0,creationTime:i.d.now()}}},{key:"getTargetName",value:function(e){if(e){for(var t=e.startsWith("_")?1:0,r=e.length;r>t&&"$"===e[r-1];)r--;return"+"===e[r-1]&&r--,e.slice(t,r)}}},{key:"bindTarget",value:function(t,r,i,o,l){var s=t.targets[r],u=void 0!==i?t.getLastUpdate(i):void 0,c=function(){return void 0!==i?t.getLastUpdate(i):void 0},d=function(){var e=c();return(void 0!==u||void 0!==e)&&(void 0===u&&void 0!==e||e!==u)};s.originalTargetName=e.currentTargetName,s.originalTModel=e.currentTModel;var h=r.startsWith("_")?r.slice(1):r,f=!(!o||!o.endsWith("$"));if(!s.activateNextTarget){var v;if(f)v=o;else for(var y=t.originalTargetNames,g=l+1;g<y.length;g++){var p=y[g];if(p.endsWith("$$")){v=p;break}}v&&(s.activateNextTarget=v)}Object.keys(s).forEach((function(o){var l,f=s[o],v=null!==(l=null==f?void 0:f.__targetjsSource)&&void 0!==l?l:f;if("value"===o||"function"==typeof v&&a.u.isLifeCycleMethod(o)){var y=function(){var l;a.u.lifecycleCoreSet.has(o)||(e.currentTargetName=r,e.currentTModel=t),this.key=h,this.value=this.val(h),this.prevTargetValue=function(){if(i)return(0,n.qI)().isLoading(t,i)?(0,n.qI)().getLoadingItemValue(t,i,r):t.targetValues[i]?t.targetValues[i].actual:t.val(i)}(),this.isPrevTargetUpdated=d;var s="function"==typeof v?v.apply(this,arguments):v;return u=null!==(l=c())&&void 0!==l?l:u,s};y.__targetjsSource=v,s[o]=y}}))}},{key:"shouldActivateNextTarget",value:function(t,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!(a>4)&&t){var s="update"===(arguments.length>5&&void 0!==arguments[5]?arguments[5]:"complete"),u=!s;if(t.isTargetImperative(r)){var c=t.targetValues[r],d=c.originalTModel,h=c.originalTargetName;return e.shouldActivateNextTarget(d,h,a+1,o,!0,"update"),void(u&&(e.cleanupTarget(t,r),e.isTargetFullyCompleted(t,r)&&e.shouldActivateNextTarget(d,h,a+1,o,!0,"complete")))}var f=t.targets[r],v=t.targetValues[r];if(f&&v){var y=f.activateNextTarget,g=null!==(i=null==y?void 0:y.endsWith("$$"))&&void 0!==i&&i,p=f.fetchAction;if(!s||!g){var m=!1,b=!1;if(y){if(g){var T=e.getTriggeredByCompleteCount(t,y,r);v.completeCount>T&&(b=!0)}else{var w,k=null!==(w=v.nextTargetUpdateCount)&&void 0!==w?w:0;b=v.updateCount>k}if(!g&&0===o&&(b||l)||g&&b){var S=!!g&&e.arePreviousTargetsComplete(t,y);if(p)if(g)!0===S?e.activateTargetOnce(t,y)&&(m=!0,e.clearPendingTargetsForNextTarget(t,y)):e.markPendingTargets(t,r);else for(;(0,n.qI)().isNextLoadingItemSuccessful(t,r);)t.activatedTargets.indexOf(y)>=0?t.activatedTargets.push(y):e.activateTarget(t,y),(0,n.qI)().nextActiveItem(t,r),m=!0;else g?!0===S?(e.activateTarget(t,y),m=!0,e.clearPendingTargetsForNextTarget(t,y)):e.markPendingTargets(t,r):g||(t.activatedTargets.indexOf(y)>=0&&!t.isTargetUpdating(r)?t.activatedTargets.push(y):(e.activateTarget(t,y),m=!0))}else u&&t.isTargetDone(y)&&e.cleanupTarget(t,y)}m&&(g?e.snapshotTriggeredByCompleteCounts(t,y):v.nextTargetUpdateCount=v.updateCount);var M=!1;if(g&&y){var E=e.getTriggeredByCompleteCount(t,y,r);M=v.completeCount<=E}if(!m&&u)if(y&&M&&!p)e.shouldActivateNextTarget(t,y,a,o+1,l,"complete");else if(!y){var D=f.originalTModel,C=f.originalTargetName;D&&C&&e.shouldActivateNextTarget(D,C,a+1,o,l,"complete")}u&&e.cleanupTarget(t,r)}}}}},{key:"markPendingTargets",value:function(e,t){(e.pendingTargets||(e.pendingTargets=new Set)).add(t)}},{key:"clearPendingTarget",value:function(e,t){var r=e.pendingTargets;r&&(r.delete(t),0===r.size&&(e.pendingTargets=void 0))}},{key:"clearPendingTargetsForNextTarget",value:function(e,t){var r=e.pendingTargets;if(r){for(var n=0,i=s(r);n<i.length;n++){var a,o=i[n];(null===(a=e.targets[o])||void 0===a?void 0:a.activateNextTarget)===t&&r.delete(o)}0===r.size&&(e.pendingTargets=void 0)}}},{key:"cleanupTarget",value:function(t,r){if(e.cleanupVisibleComplete(t,r),t.isTargetComplete(r)||!e.isTargetFullyCompleted(t,r))return!1;t.setTargetComplete(r);var i=t.targets[r];if("function"==typeof(null==i?void 0:i.onComplete)&&(i.onComplete.call(t),t.setTargetMethodName(r,"onComplete")),(null==i?void 0:i.fetchAction)&&(0,n.qI)().isLoadingSuccessful(t,r)){var a=t.fetchActionTargetList.indexOf(r);a>=0&&t.fetchActionTargetList.splice(a,1),i.fetchAction=!1}return e.bubbleInvokerCompletion(t,r),!0}},{key:"cleanupVisibleComplete",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.targets[r];if(!n||"function"!=typeof n.onVisibleComplete)return!1;var i=t.targetValues[r];if(!i)return!1;if(!0!==e.isTargetTreeComplete(t,r,"visible"))return!1;var a=e.getVisibleCompletionSignature(t);return i.visibleCompleteSignature!==a&&(i.visibleCompleteSignature=a,n.onVisibleComplete.call(t),t.setTargetMethodName(r,"onVisibleComplete"),!0)}},{key:"getVisibleCompletionSignature",value:function(e){return e.visibleChildren.map((function(e){return e.oid})).sort().join("|")}},{key:"bubbleInvokerCompletion",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(t&&r){var o="".concat(t.oid,":").concat(r);if(!(n.has(o)||a>4)){n.add(o);var l=t.targetValues[r];if(l){var s,u,c=function(t,r){if(t&&r){var o="".concat(t.oid,":").concat(r);i.has(o)||(i.add(o),e.cleanupTarget(t,r)),e.bubbleInvokerCompletion(t,r,n,i,a+1)}};c(l.originalTModel,l.originalTargetName),t.isTargetImperative(r)||(c(l.invokerTModel,l.invokerTargetName),c(null===(s=t.targets[r])||void 0===s?void 0:s.originalTModel,null===(u=t.targets[r])||void 0===u?void 0:u.originalTargetName))}}}}},{key:"getTriggeredByCompleteCount",value:function(e,t,r){var n,i;return null!==(n=null===(i=e.targetValues[t])||void 0===i||null===(i=i.triggeredByCompleteCountMap)||void 0===i?void 0:i.get(r))&&void 0!==n?n:0}},{key:"snapshotTriggeredByCompleteCounts",value:function(t,r){var n,i=(n=t.targetValues)[r]||(n[r]=e.emptyValue()),a=i.triggeredByCompleteCountMap||(i.triggeredByCompleteCountMap=new Map),o=t.functionTargetNames.indexOf(r);if(!(o<0))for(var l=0;l<o;l++){var s,u,c=t.functionTargetNames[l],d=t.targets[c];if((null==d?void 0:d.activateNextTarget)===r){var h=null!==(s=null===(u=t.targetValues[c])||void 0===u?void 0:u.completeCount)&&void 0!==s?s:0;a.set(c,h)}}}},{key:"activateTargetOnce",value:function(t,r){var n,i,a=(n=t.targetValues)[r]||(n[r]=e.emptyValue()),o=null!==(i=a.activationTime)&&void 0!==i?i:0;return!(o>0&&o>=t.getLastUpdate(r)||(a.activationTime=t.getLastUpdate(r)+.001,t.activateTarget(r),0))}},{key:"activateTarget",value:function(e,t){e.activateTarget(t)}},{key:"isTModelComplete",value:function(t){var r,i,a,o,l,s,u,c,d,h,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",v=t.state();return"visible"===f?!!e.shouldIgnoreChildForCompletion(t,"visible")||!(null!==(s=v.updatingTargetList)&&void 0!==s&&s.length)&&!(null!==(u=v.activeTargetList)&&void 0!==u&&u.length)&&!(null!==(c=v.activatedTargets)&&void 0!==c&&c.length)&&!t.hasAnimatingTargets()&&e.isFetchingComplete(t)&&0===e.getUpdatingChildren(t,void 0,"visible").size&&0===e.getActiveChildren(t,"visible").size&&!(null!==(d=v.lastChildrenUpdate)&&void 0!==d&&null!==(d=d.deletions)&&void 0!==d&&d.length)&&!(null!==(h=v.lastChildrenUpdate)&&void 0!==h&&null!==(h=h.additions)&&void 0!==h&&h.length)&&!t.noDomUpdatingTargets&&!t.pendingTargets&&!(0,n.EI)().needsReattach(t):!(null!==(r=v.updatingTargetList)&&void 0!==r&&r.length)&&!(null!==(i=v.activeTargetList)&&void 0!==i&&i.length)&&!(null!==(a=v.activatedTargets)&&void 0!==a&&a.length)&&!t.hasAnimatingTargets()&&e.isFetchingComplete(t)&&!t.hasAnimatingChildren()&&!t.hasUpdatingChildren()&&!t.hasActiveChildren()&&!(null!==(o=v.lastChildrenUpdate)&&void 0!==o&&null!==(o=o.deletions)&&void 0!==o&&o.length)&&!(null!==(l=v.lastChildrenUpdate)&&void 0!==l&&null!==(l=l.additions)&&void 0!==l&&l.length)&&!t.noDomUpdatingTargets&&!t.pendingTargets&&!(0,n.EI)().needsReattach(t)}},{key:"getCompletionBlockers",value:function(t){var r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",o=t.state(),l=[],u=function(e,t){t&&l.push({name:e,value:t})},c=function(e){return e?e instanceof Set?s(e):e instanceof Map?s(e.keys()):Array.isArray(e)?e:[e]:[]};if("visible"===a){var d,h;if(e.shouldIgnoreChildForCompletion(t,"visible"))return[];var f=e.getUpdatingChildren(t,void 0,"visible"),v=e.getActiveChildren(t,"visible");return u("updatingTargetList",c(o.updatingTargetList)),u("activeTargetList",c(o.activeTargetList)),u("activatedTargets",c(o.activatedTargets)),u("animatingTargets",t.hasAnimatingTargets()?c(t.animatingMap):[]),u("fetching",!e.isFetchingComplete(t)),u("updatingChildren",s(f.keys())),u("activeChildren",s(v.keys())),u("deletedChildren",c(null===(d=o.lastChildrenUpdate)||void 0===d?void 0:d.deletions)),u("addedChildren",c(null===(h=o.lastChildrenUpdate)||void 0===h?void 0:h.additions)),u("noDomUpdatingTargets",c(t.noDomUpdatingTargets)),u("pendingTargets",c(t.pendingTargets)),u("needsReattach",!!(0,n.EI)().needsReattach(t)),l.filter((function(e){return Array.isArray(e.value)?e.value.length>0:!!e.value}))}return u("updatingTargetList",c(o.updatingTargetList)),u("activeTargetList",c(o.activeTargetList)),u("activatedTargets",c(o.activatedTargets)),u("animatingTargets",t.hasAnimatingTargets()?c(t.animatingMap):[]),u("fetching",!e.isFetchingComplete(t)),u("animatingChildren",!!t.hasAnimatingChildren()),u("updatingChildren",t.hasUpdatingChildren()?c(t.updatingChildrenMap):[]),u("activeChildren",t.hasActiveChildren()?c(t.activeChildrenMap):[]),u("deletedChildren",c(null===(r=o.lastChildrenUpdate)||void 0===r?void 0:r.deletions)),u("addedChildren",c(null===(i=o.lastChildrenUpdate)||void 0===i?void 0:i.additions)),u("noDomUpdatingTargets",c(t.noDomUpdatingTargets)),u("pendingTargets",c(t.pendingTargets)),u("needsReattach",!!(0,n.EI)().needsReattach(t)),l.filter((function(e){return Array.isArray(e.value)?e.value.length>0:!!e.value}))}},{key:"isFetchingComplete",value:function(e){var t=e.state().fetchActionTargetList;if(!t)return!0;var r,i=l(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!(0,n.qI)().isLoadingSuccessful(e,a))return!1}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"isTargetFullyCompleted",value:function(t,r){var n=!t.isTargetUpdating(r)&&!0===t.isTargetTreeComplete(r);return n&&!t.isTargetImperative(r)&&(n=!t.hasUpdatingImperativeTargets(r)),n&&r.endsWith("$$")&&(n=!0===e.arePreviousTargetsComplete(t,r)),n}},{key:"arePreviousTargetsComplete",value:function(e,t){for(var r=e.functionTargetNames.findIndex((function(e){return t===e}))-1;r>=0;r--){var n=e.functionTargetNames[r];if(!e.isTargetImperative(n)){if(e.activatedTargets.indexOf(n)>=0)return"activated targets";if(e.hasUpdatingImperativeTargets(n))return e.oid+"."+n+": "+e.getUpdatingImperativeTargets(n);if(!0!==e.isTargetTreeComplete(n))return!1}}return!0}},{key:"isTargetTreeComplete",value:function(t,r,i){var l=t.targets[r];if(l){var s,u,c,d=null!=i?i:l.completionScope,h=o(l.value);if(a.u.controlTargetMap[r])return!0;if(!l.fetchAction&&("string"===h||"number"===h||"boolean"===h))return!0;if((0,n.EI)().needsReattach(t))return"needs Reattach";if((0,n.EI)().shouldHaveDom(t)&&!t.hasDom())return"no dom";if(!t.isTargetComplete(r)&&!t.isTargetDone(r))return"not done";if((null===(s=l.childAction)||void 0===s?void 0:s.length)>0&&e.getUpdatingChildren(t,r,d).size>0)return"updating children";if((null===(u=l.childAction)||void 0===u?void 0:u.length)>0&&e.getActiveChildren(t,d).size>0)return"active children";if((null===(c=l.childAction)||void 0===c?void 0:c.length)>0&&!0!==e.areTargetChildrenComplete(l.childAction,d))return"incomplete children";if(l.fetchAction&&!(0,n.qI)().isLoadingSuccessful(t,r))return"incomplete loading"}return!0}},{key:"areTargetChildrenComplete",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";if(!t)return!0;var n,i=l(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(!e.shouldIgnoreChildForCompletion(a,r)){if(a.exists()&&!e.isTModelComplete(a,r))return a.oid;if(a.hasChildren()){var o=e.areTargetChildrenComplete(a.getChildren(),r);if(!0!==o)return o}}}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"getUpdatingChildren",value:function(t,r){var n,i,a,o,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",c=new Map;return[].concat(s(null!==(n=null===(i=t.updatingChildrenMap)||void 0===i?void 0:i.values())&&void 0!==n?n:[]),s(null!==(a=null===(o=t.animatingChildrenMap)||void 0===o?void 0:o.values())&&void 0!==a?a:[])).forEach((function(t){var n;if(!e.shouldIgnoreChildForCompletion(t,u)){var i,a=l([].concat(s(null!==(n=t.updatingTargetList)&&void 0!==n?n:[]),s(t.animatingMap?s(t.animatingMap.keys()):[])));try{for(a.s();!(i=a.n()).done;){var o,d,h=i.value;if(null===(o=t.targetValues[h])||void 0===o||!o.snapAnimation)if(t.isTargetImperative(h)){var f,v=null===(f=t.targetValues[h])||void 0===f?void 0:f.originalTargetName;if(v===r)c.set(t.oid,t);else if(v){var y,g;(null===(g=(null===(y=t.targetValues[h])||void 0===y?void 0:y.originalTModel).targets[v])||void 0===g?void 0:g.originalTargetName)===r&&c.set(t.oid,t)}}else(null===(d=t.targets[h])||void 0===d?void 0:d.invokerTargetName)===r&&c.set(t.oid,t)}}catch(e){a.e(e)}finally{a.f()}}})),c}},{key:"hasVisibleActiveChild",value:function(t){var r,n,i;if(e.shouldIgnoreChildForCompletion(t,"visible"))return!1;if((null===(r=t.activeTargetList)||void 0===r?void 0:r.length)>0)return!0;var a,o=l(null!==(n=null===(i=t.getChildren)||void 0===i?void 0:i.call(t))&&void 0!==n?n:[]);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(e.hasVisibleActiveChild(s))return!0}}catch(e){o.e(e)}finally{o.f()}return!1}},{key:"getActiveChildren",value:function(t){var r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",a=new Map;return s(null!==(r=null===(n=t.activeChildrenMap)||void 0===n?void 0:n.values())&&void 0!==r?r:[]).forEach((function(t){"visible"!==i?e.shouldIgnoreChildForCompletion(t,i)||t.activeTargetList.length&&a.set(t.oid,t):e.hasVisibleActiveChild(t)&&a.set(t.oid,t)})),a}},{key:"shouldIgnoreChildForCompletion",value:function(e,t){return!e||!e.exists()||"none"===t||"visible"===t&&!0!==(null===(r=e.visibilityStatus)||void 0===r?void 0:r.isVisible);var r}},{key:"activateSingleTarget",value:function(e,t){e.targets[t]&&e.canTargetBeActivated(t)&&(e.isTargetEnabled(t)?e.activateTarget(t):e.addToActiveTargets(t))}},{key:"markChildAction",value:function(e,t,r){var n=e.targets[t];"object"===o(n)&&(n.childAction?n.childAction.includes(r)||n.childAction.push(r):n.childAction=[r])}},{key:"markAddChild",value:function(e,t,r){var n=e.targets[t];"object"===o(n)&&(n.addChildAction?n.addChildAction.includes(r)||n.addChildAction.push(r):n.addChildAction=[r])}},{key:"markFetchAction",value:function(t){if(t){var r=e.currentTargetName,n=t.targets[r];"object"===o(n)&&(n.fetchAction=!0,t.fetchActionTargetList.includes(r)||t.fetchActionTargetList.push(r))}}},{key:"wrapTarget",value:function(t,r,n){return a.u.controlTargetMap[n]||(t.targets[n]={value:r,originalTargetName:e.currentTargetName,originalTModel:e.currentTModel},r=t.targets[n]),r}},{key:"resetBeforeDeletion",value:function(e){var t;e.updatingTargetList.length=0,e.activeTargetList.length=0,null===(t=e.animatingMap)||void 0===t||t.clear(),e.clearUpdatingChildren(),e.clearActiveChildren(),e.clearAnimatingChildren(),(0,n.zw)().domIslandSet.delete(e),n.qw.tmodelIdMap[e.oid]===e&&delete n.qw.tmodelIdMap[e.oid]}},{key:"getOriginalNames",value:function(e,t){var r,n,i,a,o,l;return e.isTargetImperative(t)?(r=null===(i=e.targetValues[t])||void 0===i?void 0:i.originalTModel,n=null===(a=e.targetValues[t])||void 0===a?void 0:a.originalTargetName):(r=null===(o=e.targets[t])||void 0===o?void 0:o.originalTModel,n=null===(l=e.targets[t])||void 0===l?void 0:l.originalTargetName),{originalTModel:r,originalTargetName:n}}},{key:"resetTargetState",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;if(t&&r){e.resetSingleTargetState(t,r),e.resetTargetChildActions(t,r,n,i);var a=t.targets[r],o=null==a?void 0:a.activateNextTarget,l=t.targets[o];l&&(o.endsWith("$")||!1!==l.active)&&(e.resetTargetsBetween(t,r,o,n,i),e.resetTargetPipelineState(t,o,n,i))}}},{key:"resetTargetPipelineState",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;if(t&&r){e.resetSingleTargetState(t,r),e.resetTargetChildActions(t,r,n,i);var a=t.targets[r],o=null==a?void 0:a.activateNextTarget;if(o){var l=t.targets[o];l&&(o.endsWith("$")||!1!==l.active)&&(e.resetTargetsBetween(t,r,o,n,i),e.resetTargetPipelineState(t,o,n,i))}}}},{key:"resetTargetsBetween",value:function(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Set,o=t.functionTargetNames,l=o.indexOf(r),s=o.indexOf(n);if(!(l<0||s<0||s<=l))for(var u=l+1;u<s;u++){var c=o[u];e.resetSingleTargetState(t,c),e.resetTargetChildActions(t,c,i,a)}}},{key:"resetTargetChildState",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,i="".concat(t.oid);if(!n.has(i)){n.add(i);for(var a=Object.keys(t.targetValues),o=0;o<a.length;o++){var l=a[o];e.resetSingleTargetState(t,l),e.resetTargetChildActions(t,l,r,n)}}}},{key:"resetTargetChildActions",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set,a=t.targets[r];if(a){var o=a.childAction?s(a.childAction):[],l=a.addChildAction?s(a.addChildAction):[];o.forEach((function(t){t&&e.resetTargetChildState(t,n,i)})),l.forEach((function(t){t&&e.resetTargetChildState(t,n,i)})),n.clearChildActions&&(Array.isArray(a.childAction)&&(a.childAction.length=0),Array.isArray(a.addChildAction)&&(a.addChildAction.length=0))}}},{key:"clearTriggeredByCompleteCount",value:function(e,t,r){var n=e.targetValues[t],i=null==n?void 0:n.triggeredByCompleteCountMap;i&&(i.delete(r),0===i.size&&(n.triggeredByCompleteCountMap=void 0))}},{key:"resetSingleTargetState",value:function(t,r){var n,i=t.targetValues[r],a=null===(n=t.targets[r])||void 0===n?void 0:n.activateNextTarget;null!=a&&a.endsWith("$$")&&e.clearTriggeredByCompleteCount(t,a,r),i&&(i.completeCount=0,i.triggeredByCompleteCountMap=void 0,i.resetFlag=!0,i.nextTargetUpdateCount=0,i.visibleCompleteSignature=void 0,i.status=""),t.cancelAnimation(),t.activatedTargets.length=0,t.removeFromActiveTargets(r),t.removeFromAnimatingMap(r),t.removeFromUpdatingTargets(r),e.clearPendingTarget(t,r)}},{key:"convertAnimatingTargetsToUpdating",value:function(e){var t,r=l(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(null!=n&&n.hasAnimatingTargets()){var i,a=l(s(n.getAnimatingTargets()));try{for(a.s();!(i=a.n()).done;){var o=i.value;n.setTargetStatus(o,"updating"),n.removeFromAnimatingMap(o)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"getResetOptions",value:function(e){var t=null==e?void 0:e.reset;return{shouldReset:!0===t||"pipeline"===t||"tree"===t||"all"===t,clearChildActions:"tree"===t||"all"===t}}}],(r=null)&&d(t.prototype,r),u&&d(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,u}()},530:function(e,t,r){r.d(t,{L:function(){return l}});var n=r(249);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.xNext=0,this.xNorth=0,this.xWest=0,this.xEast=0,this.xSouth=0,this.scrollLeft=0,this.scrollTop=0,this.absX=0,this.absY=0,this.xOverflowReset=0,this.xOverflowLimit=0,this.yNext=0,this.yNorth=0,this.yWest=0,this.yEast=0,this.ySouth=0,this.container=void 0,this.time=0},(t=[{key:"setContainer",value:function(e){this.container=e}},{key:"setCurrentChild",value:function(e){this.currentChild=e}},{key:"setLocation",value:function(){var e=this.currentChild;e.targets.excludeXYCalc||(e.x=this.xNext+e.getMarginLeft()+this.container.getPaddingLeft(),e.y=this.yNext+e.getMarginTop()+this.container.getPaddingTop())}},{key:"isOverflow",value:function(){return"BI"!==this.currentChild.type&&(!("always"!==this.container.getContainerOverflowMode()&&"always"!==this.currentChild.getItemOverflowMode()&&("auto"!==this.container.getContainerOverflowMode()||"auto"!==this.currentChild.getItemOverflowMode()||this.currentChild.useContentWidth()||!this.checkChildOverflow()))||void 0)}},{key:"checkChildOverflow",value:function(){var e=this.currentChild,t=e.getMinWidth();return this.xNext+e.getMarginLeft()+t+e.getMarginRight()>this.xOverflowLimit}},{key:"overflow",value:function(){this.xNext=this.scrollLeft-this.xOverflowReset,this.yNext=Math.max(this.currentChild.getRealParent().viewport.ySouth,this.ySouth)}},{key:"appendNewLine",value:function(){var e=this.currentChild,t=e.getMeasuringScale(),r=e.getHeight()*t+this.currentChild.getMarginTop()+this.currentChild.getMarginBottom();this.xNext=this.scrollLeft-this.xOverflowReset;var n=this.yNext+r+e.val("appendNewLine");this.yEast=this.yNext,this.xSouth=this.xNext,this.ySouth=Math.max(this.ySouth,n),this.yEast=this.ySouth,this.yNext=this.ySouth,e.getRealParent().viewport.xEast=Math.max(e.getRealParent().viewport.xEast,this.xEast),e.getRealParent().viewport.ySouth=Math.max(e.getRealParent().viewport.ySouth,this.ySouth)}},{key:"computeBoundary",value:function(e,t){var r,n,i,a,o,l,s=e.getMeasuringScale(),u=e.getBaseWidth()*s,c=e.getBaseHeight()*s;return"layout"===t?(r=e.x,n=e.y,i=r-e.getMarginLeft(),a=r+u+e.getMarginRight(),o=n-e.getMarginTop(),l=n+c+e.getMarginBottom()):"absolute"===t?(r=e.absX-this.absX,n=e.absY-this.absY,i=r,a=r+u+e.getMarginRight(),o=n,l=n+c+e.getMarginBottom()):(i=r=e.getX(),a=r+u,o=n=e.getY(),l=n+c),{left:i,top:o,right:a,bottom:l}}},{key:"nextLocation",value:function(){var e=this.currentChild,t=e.getMeasuringScale(),r=e.getTopBaseHeight()*t,i=e.getLayoutHeight()*t+this.currentChild.getMarginTop()+this.currentChild.getMarginBottom(),a="always"===e.getItemOverflowMode()&&n.a.isWidthDefined(this.container)?this.container.getWidth():e.getBaseWidth()*t+this.currentChild.getMarginLeft()+this.currentChild.getMarginRight();if("BI"!==e.type&&"BI"===this.container.type){var o=this.computeBoundary(e,"layout"),l=this.computeBoundary(e,"animated");i=Math.max(i,o.bottom-l.top,l.bottom-o.top,o.bottom-o.top,l.bottom-l.top),a=Math.max(a,o.right-l.left,l.right-o.left,o.right-o.left,l.right-l.left)}var s=this.yNext+i;if(this.xNext+=a,e.isDomIsland()&&e.hasDom()){var u=this.computeBoundary(e,"absolute");s=u.bottom,this.xNext=u.right,this.xWest=u.left,this.yWest=u.top}this.yNext+=r,this.xSouth=this.xNext,this.yEast=this.yNext,this.xEast=Math.max(this.xNext,this.xEast),this.ySouth=Math.max(s,this.ySouth),e.getRealParent().viewport.xEast=Math.max(e.getRealParent().viewport.xEast,this.xEast),e.getRealParent().viewport.ySouth=Math.max(e.getRealParent().viewport.ySouth,this.ySouth),"always"!==this.container.getContainerOverflowMode()&&"always"!==this.currentChild.getItemOverflowMode()||(this.yEast=e.getRealParent().viewport.ySouth,this.yNext=e.getRealParent().viewport.ySouth,this.xNext=e.getRealParent().viewport.xWest,this.xSouth=e.getRealParent().viewport.xWest)}}])&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},952:function(e,t,r){r.d(t,{n:function(){return s}});var n=r(855),i=r(34);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"calcVisibility",value:function(t){var r,n=t.getRealParent();if((null===(r=null==n?void 0:n.targets.onVisibleChildrenChange)||void 0===r||!r)&&t.isVisible()&&(t.isTargetUpdating(t.allTargetMap.x)||t.isTargetUpdating(t.allTargetMap.y)))return!0;var a=(t.getDomParent().getMeasuringScale()||1)*t.getMeasuringScale(),o=t.absX,l=t.absY,s=i.d.isDefined(t.getWidth())?a*t.getWidth():0,u=i.d.isDefined(t.getHeight())?a*t.getHeight():0,c={x:o-20,y:l-20,r:o+s+20,b:l+u+20},d=e.checkVisibility(t,c);return d.x=o,d.y=l,d.width=s,d.height=u,t.visibilityStatus=d,t.actualValues.isVisible=d.isVisible,d.isVisible}},{key:"checkVisibility",value:function(t,r){for(;t;){var i=t.getRealParent();if(!i||i===(0,n.Bt)())break;if(e.shouldClipByAncestor(i)){var a=e.getParentClip(i);if(!e.rectsOverlap(r,a))return{clip:a,isVisible:!1};r=e.intersectRects(i,r,a)}t=i}var o=e.getScreenViewportRect();return e.rectsOverlap(r,o)?{isVisible:!0}:{clip:o,isVisible:!1}}},{key:"getScreenViewportRect",value:function(){return{x:0,y:0,r:(0,n.r5)(),b:(0,n.c$)(),source:"screen"}}},{key:"shouldClipByAncestor",value:function(e){var t=e.val("overflow");return e.managesOwnScroll()||"hidden"===t||"auto"===t||"scroll"===t||"clip"===t}},{key:"getParentClip",value:function(e){var t,r,n=(null===(t=e.$dom)||void 0===t?void 0:t.getScrollLeft())||0,i=(null===(r=e.$dom)||void 0===r?void 0:r.getScrollTop())||0,a=e.getHeight(),o=e.getWidth();return{x:e.absX+n,y:e.absY+i,r:e.absX+o+n,b:e.absY+a+i,source:e}}},{key:"rectsOverlap",value:function(e,t){return e.x<=t.r&&e.r>=t.x&&e.y<=t.b&&e.b>=t.y}},{key:"intersectRects",value:function(e,t,r){var n,i,a=(null===(n=e.$dom)||void 0===n?void 0:n.getScrollLeft())||0,o=(null===(i=e.$dom)||void 0===i?void 0:i.getScrollTop())||0;return{x:Math.max(t.x-a,r.x-a),y:Math.max(t.y-o,r.y-o),r:Math.min(t.r-a,r.r-a),b:Math.min(t.b-o,r.b-o),source:r.source}}}],(r=null)&&o(t.prototype,r),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{$Dom:function(){return $Dom.J},AnimationManager:function(){return AnimationManager._},AnimationUtil:function(){return AnimationUtil.T},App:function(){return App.qw},Bracket:function(){return Bracket.d},BracketGenerator:function(){return BracketGenerator.M},ColorUtil:function(){return ColorUtil.I},DomInit:function(){return DomInit.v},Easing:function(){return Easing.G},Moves:function(){return Moves},ScheduleUtil:function(){return ScheduleUtil.O},SearchUtil:function(){return SearchUtil.X},StateUtil:function(){return StateUtil.s},TModel:function(){return TModel.c},TModelUtil:function(){return TModelUtil.a},TUtil:function(){return TUtil.d},TargetData:function(){return TargetData.u},TargetExecutor:function(){return TargetExecutor.j},TargetParser:function(){return TargetParser.D},TargetUtil:function(){return TargetUtil.g},VisibilityUtil:function(){return VisibilityUtil.n},fetch:function(){return App.hd},fetchImage:function(){return App.aK},getAnimationManager:function(){return App.s},getDomTModelById:function(){return App.UR},getEvents:function(){return App.kQ},getLoader:function(){return App.qI},getLocationManager:function(){return App.zw},getManager:function(){return App.EI},getPager:function(){return App.cI},getResizeLastUpdate:function(){return App.S9},getRunScheduler:function(){return App.fB},getScreenHeight:function(){return App.c$},getScreenWidth:function(){return App.r5},getTModelById:function(){return App.iP},getTargetManager:function(){return App.HJ},getVisibles:function(){return App.U$},isRunning:function(){return App.W_},state:function(){return App.wk},tApp:function(){return App.E_},tRoot:function(){return App.Bt}});var App=__webpack_require__(855),TModel=__webpack_require__(90),TUtil=__webpack_require__(34);function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Moves=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"bounce",value:function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.yStart,i=void 0===n?void 0:n,a=r.xStart,o=void 0===a?(0,App.r5)()/2:a,l=r.widthStart,s=void 0===l?50:l,u=r.heightStart,c=void 0===u?50:u,d=r.bFactor,h=void 0===d?.6:d,f=r.cFactor,v=void 0===f?.2:f,y=r.rotationStart,g=void 0===y?0:y,p=r.rIncrement,m=void 0===p?360:p,b=Math.max(10,(t-e)*h),T=TUtil.d.isDefined(i)?[i,e]:[e],w=[o],k=[s],S=[c],M=[g];Math.abs(0|b)>1;){T.push(t),T.push(t-b);var E=s*(1+v),D=c*(1-v);k.push(E),k.push(s),S.push(D),S.push(c),w.push(o-(E-s)/2),w.push(o),M.push(M[M.length-1]+m),b*=h,m*=.8,v*=h}w.push(o),T.push(t),k.push(s),S.push(c);var C=M[M.length-1]%360;return C>0&&C<360&&M.push(360),{x:{list:w},y:{list:T},width:{list:k},height:{list:S},rotate:{list:M}}}},{key:"bounceSimple",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.from,i=void 0===n?void 0:n,a=r.to,o=void 0===a?void 0:a,l=r.widthStart,s=void 0===l?void 0:l,u=r.heightStart,c=void 0===u?void 0:u,d=r.xStart,h=void 0===d?void 0:d,f=r.yStart,v=void 0===f?void 0:f,y=r.bFactor,g=void 0===y?.5:y,p=r.cFactor,m=void 0===p?.7:p;i=TUtil.d.isDefined(i)?i:t.getY()-70,o=TUtil.d.isDefined(o)?o:t.getY(),s=TUtil.d.isDefined(s)?s:t.getWidth(),c=TUtil.d.isDefined(c)?c:t.getHeight(),v=TUtil.d.isDefined(v)?v:t.getY(),h=TUtil.d.isDefined(h)?h:t.getX();return e.bounce(i,o,{yStart:v,xStart:h,widthStart:s,heightStart:c,bFactor:g,cFactor:m,rIncrement:0})}},{key:"shake",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.xStart,i=void 0===n?void 0:n,a=r.width,o=void 0===a?void 0:a,l=r.height,s=void 0===l?void 0:l,u=r.bFactor,c=void 0===u?.6:u,d=r.cFactor,h=void 0===d?.3:d,f=r.strength,v=void 0===f?20:f,y=TUtil.d.isDefined(o)?o:t.getWidth(),g=TUtil.d.isDefined(s)?s:t.getHeight(),p=TUtil.d.isDefined(i)?i:t.getX(),m=t.getY(),b=e.bounce(m-v,m,{xStart:p,widthStart:y,heightStart:g,bFactor:c,cFactor:h,rIncrement:0});return{x:b.x,width:b.width}}},{key:"spiral",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.startAngle,r=void 0===t?0:t,n=e.endAngle,i=void 0===n?360:n,a=e.angleStep,o=void 0===a?18:a,l=e.x,s=void 0===l?0:l,u=e.y,c=void 0===u?0:u,d=e.width,h=void 0===d?100:d,f=e.height,v=void 0===f?100:f,y=[],g=[],p=[],m=r;m<=i;m+=o){var b=m*(Math.PI/180);y.push(Math.floor(s+h*Math.cos(b))),g.push(Math.floor(c+v*Math.sin(b))),p.push(90+m)}return{x:{list:y},y:{list:g},rotate:{list:p}}}}])}();_defineProperty(Moves,"shakeMap",{});var SearchUtil=__webpack_require__(756),TargetData=__webpack_require__(585),TargetUtil=__webpack_require__(333),TargetParser=__webpack_require__(690),TModelUtil=__webpack_require__(249),DomInit=__webpack_require__(260),$Dom=__webpack_require__(768),Bracket=__webpack_require__(966),BracketGenerator=__webpack_require__(714),ColorUtil=__webpack_require__(737),Easing=__webpack_require__(421),TargetExecutor=__webpack_require__(484),AnimationManager=__webpack_require__(357),AnimationUtil=__webpack_require__(980),VisibilityUtil=__webpack_require__(952),ScheduleUtil=__webpack_require__(161),StateUtil=__webpack_require__(791);window.TargetJS=__webpack_exports__})();
|
|
1
|
+
(function(){"use strict";var __webpack_modules__={768:function(e,t,r){r.d(t,{J:function(){return s}});var n=r(34),i=r(855);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var s=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"==typeof t)this.selector=t,this.element=e.query(t);else if(t&&(this.element=t,1===t.nodeType)){var r=this.element.getAttribute("id");this.selector="string"==typeof r?r.startsWith("#")?r:"#"+r:null}this.hasRealChildren=!1,this.slotModeEnabled=!1,this.contentSlot=null,this.originalContent=void 0,this.textOnly=!0,this.transformProp=null,this.initTransformProp(),this.restoreSlotState()}return t=e,r=[{key:"create",value:function(e){this.element=document.createElement(e),this.initTransformProp()}},{key:"initTransformProp",value:function(){if(this.element&&this.element.style){var e=this.element.style;this.transformProp="transform"in e?"transform":"webkitTransform"in e?"webkitTransform":null}else this.transformProp=null}},{key:"cloneTemplate",value:function(){var t;return new e(null===(t=this.element.content)||void 0===t?void 0:t.cloneNode(!0).children[0])}},{key:"clone",value:function(){return this.element.cloneNode(!0)}},{key:"exists",value:function(){var e;return!(null===(e=this.element)||void 0===e||!e.isConnected)}},{key:"getElement",value:function(){return this.element}},{key:"supportsWAAPI",value:function(){return!(!this.element||"function"!=typeof this.element.animate)}},{key:"restoreSlotState",value:function(){var e;if(1===(null===(e=this.element)||void 0===e?void 0:e.nodeType)&&!this.isNoSlotHost()){var t=this.element.querySelector(':scope > [data-tj-slot="content"]');t&&(this.contentSlot=t,this.slotModeEnabled=!0,this.hasRealChildren=Array.from(this.element.childNodes).some((function(e){return e!==t&&"true"===e.getAttribute("tgjs")})))}}},{key:"findContentSlot",value:function(){if(this.contentSlot&&this.contentSlot.parentNode===this.element)return this.contentSlot;if(!this.element.firstElementChild)return null;var e=this.element.querySelector(':scope > [data-tj-slot="content"]');return e&&(this.contentSlot=e),e}},{key:"isNoSlotHost",value:function(){var e;return 1!==(null===(e=this.element)||void 0===e?void 0:e.nodeType)||"body"===this.getTagName()||"true"===this.element.getAttribute("data-tj-no-slot")}},{key:"ensureContentSlotFirst",value:function(){var e=this.findContentSlot();return e?this.element.firstChild!==e&&this.element.insertBefore(e,this.element.firstChild):((e=document.createElement("div")).setAttribute("data-tj-slot","content"),this.element.insertBefore(e,this.element.firstChild),this.contentSlot=e),e}},{key:"isManagedChildNode",value:function(e){return 1===(null==e?void 0:e.nodeType)&&"true"===e.getAttribute("tgjs")}},{key:"enableSlotMode",value:function(){var e=this;if(!this.slotModeEnabled)if(this.isNoSlotHost())this.slotModeEnabled=!0;else{var t=this.findContentSlot();if(!t){var r=Array.from(this.element.childNodes);(t=document.createElement("div")).setAttribute("data-tj-slot","content"),this.element.insertBefore(t,this.element.firstChild);for(var n=0,i=r;n<i.length;n++){var a=i[n];this.isManagedChildNode(a)||t.appendChild(a)}}this.contentSlot=t,this.slotModeEnabled=!0,this.hasRealChildren=Array.from(this.element.children).some((function(r){return r!==t&&e.isManagedChildNode(r)}))}}},{key:"ensureSlotMode",value:function(){if(this.isNoSlotHost())this.slotModeEnabled=!0;else{this.enableSlotMode();var e=this.findContentSlot();e&&this.element.firstChild!==e&&this.element.insertBefore(e,this.element.firstChild)}}},{key:"getComputedStyle",value:function(e){if(this.element){var t=window.getComputedStyle(this.element);return e?t.getPropertyValue(e)||t[e]:t}}},{key:"contains",value:function(e){return e instanceof Node&&this.element.contains(e)}},{key:"getTagName",value:function(){var e;return null===(e=this.element)||void 0===e||null===(e=e.tagName)||void 0===e?void 0:e.toLowerCase()}},{key:"setSelector",value:function(e){this.selector=e}},{key:"ensureId",value:function(e){this.selector="#"===e[0]?e:"#"+e,this.attr("id",this.selector.slice(1))}},{key:"getId",value:function(){return this.attr("id")}},{key:"focus",value:function(){this.element.focus()}},{key:"blur",value:function(){this.element.blur()}},{key:"attr",value:function(e,t){if(this.element)return n.d.isDefined(t)?void this.element.setAttribute(e,t):this.element.getAttribute(e)}},{key:"value",value:function(e){if(this.element){var t=this.element.value;return n.d.isDefined(e)&&(this.element.value=e),t}}},{key:"select",value:function(){this.element&&"function"==typeof this.element.select&&this.element.select()}},{key:"width",value:function(e){if(!n.d.isDefined(e))return this.element.offsetWidth;this.element.style.width=n.d.isNumber(e)?"".concat(e,"px"):e}},{key:"height",value:function(e){if(!n.d.isDefined(e))return this.element.offsetHeight;this.element.style.height=n.d.isNumber(e)?"".concat(e,"px"):e}},{key:"css",value:function(e){if(!n.d.isDefined(e))return this.element.className;this.element.className=e}},{key:"setStyleByMap",value:function(e){var t=this;Object.keys(e).forEach((function(r){t.style(r,e[r])}))}},{key:"style",value:function(e,t){if(2!==arguments.length)return 1===arguments.length?this.element.style[e]:this.element.style;this.element.style[e]=t}},{key:"getStyleValue",value:function(e){var t=this.style(e),r=n.d.isDefined(t)?t.replace(/[^-\d.]/g,""):0;return parseFloat(r)}},{key:"getBoundingClientRect",value:function(){return this.element.getBoundingClientRect()}},{key:"isXYWithinElement",value:function(e,t){var r=this.getBoundingClientRect();return e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}},{key:"parent",value:function(){return this.element?this.element.parentElement:null}},{key:"detach",value:function(){e.detach(this.element)}},{key:"child",value:function(e){return this.element.children[e]}},{key:"elementCount",value:function(){return this.element.children.length}},{key:"swapElements",value:function(e,t){var r=t.nextSibling;r===e?this.element.insertBefore(e,t):(this.element.insertBefore(t,e),this.element.insertBefore(e,r))}},{key:"insertAfterContentSlot",value:function(e){if(this.element)if(this.isNoSlotHost())this.element.appendChild(e);else{var t=this.ensureContentSlotFirst(),r=t?t.nextSibling:this.element.firstChild;r?this.element.insertBefore(e,r):this.element.appendChild(e)}}},{key:"insertFirst$Dom",value:function(e){this.ensureSlotMode(),this.insertAfterContentSlot(e.element),this.hasRealChildren=!0}},{key:"relocate",value:function(e,t){this.ensureSlotMode();var r=t+(this.findContentSlot()?1:0);this.element.insertBefore(e.$dom.element,this.element.children[r]||null)}},{key:"appendTModel$Dom",value:function(e){this.ensureSlotMode(),this.element.appendChild(e.$dom.element),this.hasRealChildren=!0}},{key:"append$Dom",value:function(e){this.ensureSlotMode(),this.element.appendChild(e.element),this.hasRealChildren=!0}},{key:"appendElement",value:function(e){this.ensureSlotMode(),this.element.appendChild(e),this.hasRealChildren=!0}},{key:"removeElement",value:function(e){if(e){var t=e.parentNode;return t===this.element?(this.element.removeChild(e),!0):t?(t.removeChild(e),!1):void 0}}},{key:"html",value:function(e){n.d.isDefined(e)&&(this.isNoSlotHost()||!this.hasRealChildren?this.element.innerHTML=e:this.ensureContentSlotFirst().innerHTML=e,this.originalContent=e,this.textOnly=!1)}},{key:"text",value:function(e){n.d.isDefined(e)&&(this.isNoSlotHost()||!this.hasRealChildren?this.element.textContent=e:this.ensureContentSlotFirst().textContent=e,this.originalContent=e,this.textOnly=!0)}},{key:"clearContent",value:function(){this.element&&(!this.isNoSlotHost()&&this.hasRealChildren?this.ensureContentSlotFirst().innerHTML=this.originalContent||"":this.element.innerHTML=this.originalContent||"")}},{key:"deleteAll",value:function(){this.element&&(this.element.innerHTML=this.originalContent||"",this.hasRealChildren=!1,this.contentSlot=null,this.slotModeEnabled=!1)}},{key:"outerHTML",value:function(e){this.element.outerHTML=e}},{key:"isEmpty",value:function(){return""===this.element.innerHTML}},{key:"innerHTML",value:function(e){if(!n.d.isDefined(e))return this.element.innerHTML;this.element.innerHTML=e}},{key:"innerText",value:function(e){if(!n.d.isDefined(e))return this.element.innerText;this.element.innerText=e}},{key:"addClass",value:function(e){var t=this.attr("class"),r=t?t.includes(e)?t:"".concat(t," ").concat(e):e;r!==t&&this.attr("class",r)}},{key:"addEvent",value:function(e,t,r,n){this.element.addEventListener?this.element.addEventListener(e,t,{capture:!!r,passive:!!n}):this.element.attachEvent("on".concat(e),t)}},{key:"detachEvent",value:function(e,t,r){this.element.removeEventListener?this.element.removeEventListener(e,t,r):this.element.detachEvent?this.element.detachEvent("on".concat(e),t):this.element["on".concat(e)]=null}},{key:"transform",value:function(e){this.element.style[this.transformProp]=e}},{key:"animate",value:function(e,t){return this.element.animate(e,t)}},{key:"getContext",value:function(t,r){var i=n.d.isDefined(r)?e.query(r):this.query("canvas");return i?i.getContext(t):void 0}},{key:"query",value:function(e){return this.element.querySelector(e)}},{key:"queryAll",value:function(e){return this.element.querySelectorAll(e)}},{key:"findFirstByClass",value:function(t){return e.findFirstByClass(t,this.element)}},{key:"findFirstByTag",value:function(t){return e.findFirstByTag(t,this.element)}},{key:"getScrollTop",value:function(){var e,t;return null!==(e=null===(t=this.element)||void 0===t?void 0:t.scrollTop)&&void 0!==e?e:0}},{key:"getScrollLeft",value:function(){var e,t;return null!==(e=null===(t=this.element)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0}}],a=[{key:"createTemplate",value:function(t){var r=new e;return r.create("template"),r.innerHTML(t.trim()),r}},{key:"createDocumentFragment",value:function(){return document.createDocumentFragment()}},{key:"query",value:function(t){return"#"===t[0]?e.findById(t):"."===t[0]?e.findFirstByClass(t):e.findFirstByTag(t)}},{key:"querySelector",value:function(e){return document.querySelector(e)}},{key:"findById",value:function(e){return document.getElementById("#"===e[0]?e.slice(1):e)}},{key:"findFirstByClass",value:function(t,r){var n=e.findByClass(t,r);return n.length>0?n[0]:null}},{key:"findFirstByTag",value:function(t,r){var n=e.findByTag(t,r);return n.length>0?n[0]:null}},{key:"findByTag",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).getElementsByTagName(e)}},{key:"findByClass",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).getElementsByClassName("."===e[0]?e.slice(1):e)}},{key:"findNearestParentWithId",value:function(e){for(;e;){var t="function"==typeof e.getAttribute&&e.getAttribute("id")?e.getAttribute("id"):null;if(t&&(0,i.EI)().visibleOidMap[t])return t;e=e.parentElement}}},{key:"detach",value:function(e){var t=n.d.isDefined(e)?e.parentElement:null;t&&t.removeChild(e)}},{key:"hasFocus",value:function(e){return e.hasDom()&&document.activeElement===e.$dom.element}},{key:"getWindowScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||0}},{key:"getWindowScrollLeft",value:function(){return window.pageXOffset||document.documentElement.scrollLeft||0}},{key:"getScreenWidth",value:function(){return document.documentElement.clientWidth||document.body.clientWidth}},{key:"getScreenHeight",value:function(){return document.documentElement.clientHeight||document.body.clientHeight}},{key:"ready",value:function(t){new e(document).addEvent("DOMContentLoaded",t)}},{key:"ajax",value:function(e){var t=new XMLHttpRequest,r="";e.data&&(r=Object.keys(e.data).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(e.data[t]))})).join("&")),t.onreadystatechange=function(){if(4===t.readyState)if(200===t.status){var r="json"===e.dataType?JSON.parse(this.responseText):this.responseText;e.success(r)}else e.error(t.status)},"POST"===e.type?(t.open(e.type,e.url,!0),t.setRequestHeader("Content-type","application/x-www-form-urlencoded"),t.send(r)):(e.url+=r?e.url>""&&e.url.indexOf("?")>=0?"&".concat(r):"?".concat(r):"",t.open(e.type,e.url,!0),t.send())}}],r&&o(t.prototype,r),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}()},357:function(e,t,r){r.d(t,{_:function(){return x}});var n=r(249),i=r(980),a=r(585),o=r(855),l=r(333),s=r(34),u=r(161);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(){d=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),l=new A(n||[]);return i(o,"_invoke",{value:D(e,r,l)}),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var v="suspendedStart",g="suspendedYield",p="executing",y="completed",m={};function b(){}function T(){}function w(){}var k={};u(k,o,(function(){return this}));var S=Object.getPrototypeOf,x=S&&S(S(j([])));x&&x!==r&&n.call(x,o)&&(k=x);var M=w.prototype=b.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(i,a,o,l){var s=f(e[i],e,a);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==c(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,r,n){var i=v;return function(a,o){if(i===p)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=P(l,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===v)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=f(t,r,n);if("normal"===u.type){if(i=n.done?y:g,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(c(t)+" is not iterable")}return T.prototype=w,i(M,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:T,configurable:!0}),T.displayName=u(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,s,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},C(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new E(h(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(M),u(M,s,"Generator"),u(M,o,(function(){return this})),u(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function h(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){h(a,n,i,o,l,"next",e)}function l(e){h(a,n,i,o,l,"throw",e)}o(void 0)}))}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=y(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function p(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return(t=S(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S(n.key),n)}}function S(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var x=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.waapiPoller={rafId:0,alive:!0},this.recordMap=new Map,this.isShuttingDown=!1,this.toid="blank"},t=[{key:"animate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.T.emptyBatch(),r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;if(!this.isShuttingDown){if(t.frames.sort((function(e,t){return e.keyTime-t.keyTime})),e.lastBatch){var o=Math.min(s.d.now()-e.lastBatch.startTime,e.lastBatch.totalDuration);if(e.lastBatch=this.cutLastBatch(e,e.lastBatch,o),i.T.rebaseCutBatchMeta(e,e.lastBatch),null!=a&&a.size){var u={styleMap:T({},e.lastBatch.frames[0].styleMap),tfMap:T({},e.lastBatch.frames[0].tfMap),keyMeta:new Map(e.lastBatch.frames[0].keyMeta)};i.T.addToUpdatingTargets(e,a),i.T.removeKeysFromBatch(e.lastBatch,a),this.callFireOnEndOnConflict(e,e.lastBatch,t),this.mergeBatches(e.lastBatch,t),this.deleteAnimation(e),this.fixTModelStyleFromFrame(e,u)}else this.callFireOnEndOnConflict(e,e.lastBatch,t),this.mergeBatches(e.lastBatch,t),this.deleteAnimation(e)}if(e.hasDom()&&t.frames.length&&Object.keys(t.keyMap).length){var c,d=e.$dom.getElement(),h=Math.max(t.totalDuration,1),f=p(new Set(Object.values(t.keyMap).flatMap((function(e){return p(e)})))),v=g(f);try{for(v.s();!(c=v.n()).done;){var y=c.value;this.backfillKeyAcrossFramesUsingMorph(e,y,t.frames)}}catch(e){v.e(e)}finally{v.f()}for(var m=!1,b={},w=0,k=Object.keys(e.tfMap);w<k.length;w++){var S=k[w];b[S]=e.val(S)}var x=t.frames.map((function(t){var r=T({},t.styleMap);if(r.offset=t.keyTime/h,Object.keys(t.tfMap).length){var a=T(T({},b),t.tfMap);r.transform=n.a.getTransformString(e,a),m=!0}return i.T.addUnitsToFrame(r),r})),M=this.filterRedundantKeyframes(x),C={duration:h,fill:"none",iterations:1,easing:t.easing||"linear"};t.startTime=s.d.now(),e.lastBatch=t,e.lastBatch.transformAnimation=m,e.finalKeyframe=M[M.length-1],e.finalRawFrame=t.frames[t.frames.length-1];var E,D=d.animate(M,C),P=g(f);try{for(P.s();!(E=P.n()).done;){var L=E.value,O=l.g.getTargetName(L),A=this.getRecordId(e,L),j=l.g.getOriginalNames(e,L),_=j.originalTModel,I=j.originalTargetName,V={recId:A,cleanKey:O,originalKey:L,tmodel:e,anim:D,originalTModel:_,originalTargetName:I,frames:this.collectFramesForKey(t,O),status:"playing",needsFireOnStep:!0,hooks:r},N=e.targetValues[L];N&&(e.addToAnimatingMap(L),N.status=N.snapAnimation?"done":"updating"),this.recordMap.set(A,V)}}catch(e){P.e(e)}finally{P.f()}this.startProgressPoller()}}}},{key:"pauseAnimations",value:function(e,t){var r,n,a;(r=t?t instanceof Map?new Set(t.keys()):new Set(t):new Set(null!==(n=null===(a=e.animatingMap)||void 0===a?void 0:a.keys())&&void 0!==n?n:[])).size&&this.animate(e,i.T.emptyBatch(),i.T.getAnimationHooks(),r)}},{key:"finalizeAnimation",value:function(e){var t,r=!1,n=g(this.recordMap);try{for(n.s();!(t=n.n()).done;){var a=v(t.value,2),l=a[0],s=a[1];if(s.anim===e&&"playing"!==s.status&&"canceled"!==s.status){r=!0;var u=s.tmodel,c=s.originalKey,d=s.cleanKey;u.removeFromAnimatingMap(c),this.recordMap.delete(l),this.completeRecord(u,s,d,c),u.hasAnimatingTargets()||(u.finalKeyframe&&u.hasDom()&&i.T.fixStyleByAnimation(u,u.finalKeyframe),u.lastBatch=void 0),s.status="complete",s.hooks.fireOnEnd(u,c),(0,o.fB)().scheduleOnlyIfEarlier(1,"animate-".concat(u.oid,"---").concat(c))}}}catch(e){n.e(e)}finally{n.f()}if(r)try{e.cancel()}catch(e){}(0,o.fB)().schedule(35,"finalizeAnimation")}},{key:"startProgressPoller",value:function(){var e=this;if(!this.waapiPoller.rafId){this.waapiPoller.alive=!0;var t=function(){var r,n=new Set,a=new Map,o=!1,l=g(e.recordMap);try{for(l.s();!(r=l.n()).done;){var s,c,d,h,f=v(r.value,2)[1];if("canceled"!==f.status&&"detached"!==f.status){var p=f.tmodel,y=f.originalKey;if("finished"!==f.status&&u.O.shouldPauseTarget(p,y)){var m=a.get(p);m||(m=new Set,a.set(p,m)),m.add(y)}else{"playing"===f.status&&(o=!0);var b=f.anim.playState,T=null===(s=f.anim.effect)||void 0===s||null===(c=(d=s).getComputedTiming)||void 0===c?void 0:c.call(d),w=null!==(h=null==T?void 0:T.progress)&&void 0!==h?h:0;if(("finished"===b||"idle"===b||w>=.999999)&&(f.status="done",n.add(f.anim)),w>0&&"finished"!==f.status){var k=i.T.updateTModelFromRecord(f);"finished"===(null==k?void 0:k.status)&&(f.status="finished")}}}}}catch(e){l.e(e)}finally{l.f()}var S,x=g(a);try{for(x.s();!(S=x.n()).done;){var M=v(S.value,2),C=M[0],E=M[1];e.pauseAnimations(C,E)}}catch(e){x.e(e)}finally{x.f()}var D,P=g(n);try{for(P.s();!(D=P.n()).done;){var L=D.value;e.finalizeAnimation(L)}}catch(e){P.e(e)}finally{P.f()}e.recordMap.size>0||o?e.waapiPoller.rafId=requestAnimationFrame(t):(e.waapiPoller.alive=!1,e.waapiPoller.rafId=0)};this.waapiPoller.rafId=requestAnimationFrame(t)}}},{key:"getAt",value:function(e,t){return a.u.isTransformKey(t)?e.tfMap[t]:e.styleMap[t]}},{key:"setAt",value:function(e,t,r){a.u.isTransformKey(t)?e.tfMap[t]=r:e.styleMap[t]=r}},{key:"completeRecord",value:function(e,t,r,n){if(e.finalRawFrame){var i=t.frames,a=i&&i[i.length-1],o=a?a.value:this.getAt(e.finalRawFrame,r);this.setAt(e,r,o),e.val(n,o);var l,s=e.targetValues[n];s&&(s.step=e.getTargetSteps(n),s.valuePointer=null!==(l=s.valueList)&&void 0!==l&&l.length?s.valueList.length:0,e.setActual(n,o),e.isTargetImperative(n)&&(s.cycle=s.cycles))}}},{key:"backfillKeyAcrossFramesUsingMorph",value:function(e,t,r){for(var i=l.g.getTargetName(t),a=[],o=0;o<r.length;o++)void 0!==this.getAt(r[o],i)&&a.push(o);if(a.length>=2)for(var u=0;u<a.length-1;u++){var c,d,h=a[u],f=a[u+1],v=r[h],g=r[f],p=this.getAt(v,i),y=this.getAt(g,i),m=null===(c=g.keyMeta)||void 0===c?void 0:c.get(i);if(m){var b=m.steps,w=m.stepOffset||0,k=null!==(d=m.segmentSteps)&&void 0!==d?d:b,S=v.keyTime,x=g.keyTime-S;if(!(!s.d.isDefined(b)||b<=0||x<=0))for(var M=w,C=h+1;C<f;C++){var E=r[C],D=s.d.limit((E.keyTime-S)/x,0,1),P=Math.round(D*b),L=s.d.limit(w+P,0,k),O=Math.max(L-M,0),A=n.a.morph(t,p,y,D);this.setAt(E,i,A),E.keyMeta.set(i,T(T({},m),{},{steps:O,stepOffset:M,segmentSteps:k,done:!1})),M=L}}}if(a.length){var j,_,I,V=a[a.length-1],N=r[V],R=this.getAt(N,i),F=null===(j=N.keyMeta)||void 0===j?void 0:j.get(i);if(!F)return;for(var B=null!==(_=null!==(I=F.segmentSteps)&&void 0!==I?I:F.steps)&&void 0!==_?_:0,H=V+1;H<r.length;H++){var U=r[H];this.setAt(U,i,R),U.keyMeta.set(i,T(T({},F),{},{steps:0,stepOffset:B,segmentSteps:B,done:!0}))}}}},{key:"fixTModelStyleFromFrame",value:function(e,t){if(e.hasDom()&&t){var r=T({},t.styleMap);if(Object.keys(t.tfMap).length>0){Object.keys(e.tfMap).forEach((function(t){e.tfMap[t]=e.val(t)}));var a=T(T({},e.tfMap),t.tfMap);t.tfMap=a,r.transform=n.a.getTransformString(e,a)}i.T.addUnitsToFrame(r),i.T.fixStyleByAnimation(e,r)}}},{key:"collectFramesForKey",value:function(e,t){var r,n=[],i=e.totalDuration,a=g(e.frames);try{for(a.s();!(r=a.n()).done;){var o=r.value,l=this.getAt(o,t);if(void 0!==l){var s=o.keyMeta.get(t);n.push({value:l,time:o.keyTime,offset:o.keyTime/i,steps:null==s?void 0:s.steps,segmentSteps:null==s?void 0:s.segmentSteps,interval:null==s?void 0:s.interval,easing:null==s?void 0:s.easing,stepOffset:(null==s?void 0:s.stepOffset)||0,valuePointer:null==s?void 0:s.valuePointer,cycle:null==s?void 0:s.cycle,done:!(null==s||!s.done)})}}}catch(e){a.e(e)}finally{a.f()}return n.sort((function(e,t){return e.time-t.time})),n.length>=2?n:void 0}},{key:"getRecordId",value:function(e,t){return"".concat(e.oid,"-").concat(t)}},{key:"delete",value:function(e){var t=e.recId,r=e.originalKey,n=e.tmodel;e.anim.cancel(),n.removeFromAnimatingMap(r),this.recordMap.delete(t)}},{key:"deleteAnimation",value:function(e){var t,r=[],i=g(this.recordMap.values());try{for(i.s();!(t=i.n()).done;){var a=t.value;a.tmodel===e&&r.push(a)}}catch(e){i.e(e)}finally{i.f()}if(!r.length)return!1;for(var o=new Set,l=new Set,s=0,u=r;s<u.length;s++){var c=u[s];o.add(c.originalKey),l.add(c.anim)}n.a.commitAnimatedStyles(e,o);var d,h=g(l);try{for(h.s();!(d=h.n()).done;){var f=d.value;try{f.cancel()}catch(e){}}}catch(e){h.e(e)}finally{h.f()}return e.clearAnimatingMap(),e.lastBatch=void 0,e.waapiBatch=void 0,e.finalKeyframe=void 0,e.finalRawFrame=void 0,!0}},{key:"cancelKey",value:function(e,t){var r=this.getRecordId(e,t),n=this.recordMap.get(r);n&&(n.status="canceled")}},{key:"deleteAll",value:(h=f(d().mark((function e(){var t,r,a,o,l,s,u,c,h,f,p,y,m,b,T,w;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.isShuttingDown=!0,this.waapiPoller.rafId&&(cancelAnimationFrame(this.waapiPoller.rafId),this.waapiPoller.rafId=0,this.waapiPoller.alive=!1),t=new Set,r=new Map,a=g(this.recordMap.values()),e.prev=5,a.s();case 7:if((o=a.n()).done){e.next=18;break}if("canceled"!==(l=o.value).status&&"detached"!==l.status){e.next=11;break}return e.abrupt("continue",16);case 11:i.T.updateTModelFromRecord(l),t.add(l.anim),(s=r.get(l.tmodel))||(s=new Set,r.set(l.tmodel,s)),s.add(l.originalKey);case 16:e.next=7;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(5),a.e(e.t0);case 23:return e.prev=23,a.f(),e.finish(23);case 26:u=g(r);try{for(u.s();!(c=u.n()).done;)h=v(c.value,2),f=h[0],p=h[1],n.a.commitAnimatedStyles(f,p),i.T.addToUpdatingTargets(f,p),f.lastBatch=void 0,f.waapiBatch=void 0,f.finalKeyframe=void 0,f.finalRawFrame=void 0}catch(e){u.e(e)}finally{u.f()}y=g(this.recordMap.values());try{for(y.s();!(m=y.n()).done;)m.value.status="detached"}catch(e){y.e(e)}finally{y.f()}b=g(t);try{for(b.s();!(T=b.n()).done;){w=T.value;try{w.cancel()}catch(e){}}}catch(e){b.e(e)}finally{b.f()}this.recordMap.clear();case 33:case"end":return e.stop()}}),e,this,[[5,20,23,26]])}))),function(){return h.apply(this,arguments)})},{key:"flushOneFrame",value:(c=f(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(requestAnimationFrame);case 2:this.isShuttingDown=!1;case 3:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"cancelTModelAnimation",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.mode,o=void 0===a?"resume":a,l=r.commitStyle,s=void 0===l||l,u=[],c=g(this.recordMap.values());try{for(c.s();!(t=c.n()).done;){var d=t.value;d.tmodel===e&&u.push(d)}}catch(e){c.e(e)}finally{c.f()}if(!u.length)return!1;for(var h=new Set,f=new Set,v=0,p=u;v<p.length;v++){var y=p[v];"canceled"!==y.status&&"detached"!==y.status&&i.T.updateTModelFromRecord(y),h.add(y.originalKey),f.add(y.anim)}s&&n.a.commitAnimatedStyles(e,h);for(var m=0,b=u;m<b.length;m++){var T=b[m];T.status="detached",this.recordMap.delete(T.recId)}var w,k=g(f);try{for(k.s();!(w=k.n()).done;){var S=w.value;try{S.cancel()}catch(e){}}}catch(e){k.e(e)}finally{k.f()}return e.clearAnimatingMap(),this.applyCanceledTargetMode(e,h,o),e.lastBatch=void 0,e.waapiBatch=void 0,e.finalKeyframe=void 0,e.finalRawFrame=void 0,!0}},{key:"applyCanceledTargetMode",value:function(e,t,r){var n,i=g(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;e.targetValues[a]&&("resume"!==r?"finish"!==r||this.finishCanceledTarget(e,a):e.setTargetStatus(a,"updating"))}}catch(e){i.e(e)}finally{i.f()}}},{key:"finishCanceledTarget",value:function(e,t){var r=this.recordMap.get(this.getRecordId(e,t));r&&(this.completeRecord(e,r,r.cleanKey,t),e.removeFromAnimatingMap(t),r.hooks.fireOnEnd(e,t))}},{key:"fillCutFrameFromRecords",value:function(e,t,r,n){var a,o=n>0?s.d.limit(r/n,0,1):1,l=g(this.recordMap);try{for(l.s();!(a=l.n()).done;){var u,c,d,h,f,p,y,m=v(a.value,2)[1];if(m.tmodel===e&&"canceled"!==m.status&&"detached"!==m.status){var b=i.T.getValueFromFrames(m,o);if(b){var T=m.cleanKey,w=m.originalKey,k=e.targetValues[w];this.setAt(t,T,b.value),t.keyMeta.set(T,{steps:null!==(u=null!==(c=null!==(d=b.remainingSteps)&&void 0!==d?d:b.steps)&&void 0!==c?c:null==k?void 0:k.steps)&&void 0!==u?u:0,segmentSteps:null!==(h=null!==(f=b.steps)&&void 0!==f?f:null==k?void 0:k.steps)&&void 0!==h?h:0,interval:null!==(p=null==k?void 0:k.interval)&&void 0!==p?p:8,stepOffset:null!==(y=b.step)&&void 0!==y?y:0,valuePointer:b.valuePointer,cycle:b.cycle,done:"finished"===b.status})}}}}catch(e){l.e(e)}finally{l.f()}}},{key:"cutLastBatch",value:function(e,t,r){for(var n=0;n<t.frames.length&&t.frames[n].keyTime<=r;)n++;var i=t.totalDuration;if(n<t.frames.length&&r!==t.frames[n].keyTime){var a={keyTime:r,tfMap:{},styleMap:{},keyMeta:new Map};t.frames.splice(n,0,a),this.fillCutFrameFromRecords(e,a,r,i);var o,l=g(p(new Set(Object.values(t.keyMap).flatMap((function(e){return p(e)})))));try{for(l.s();!(o=l.n()).done;){var s=o.value;this.backfillKeyAcrossFramesUsingMorph(e,s,t.frames)}}catch(e){l.e(e)}finally{l.f()}t.frames=t.frames.slice(n)}return t.frames.forEach((function(e){e.keyTime=Math.max(0,e.keyTime-r)})),t.totalDuration=t.frames.length?t.frames[t.frames.length-1].keyTime:0,t}},{key:"callFireOnEndOnConflict",value:function(e,t,r){for(var n=t.keyMap,i=r.keyMap,a=0,o=Object.keys(i);a<o.length;a++){var l=o[a],s=n[l],u=i[l];if(s&&u){var c,d=g(s);try{for(d.s();!(c=d.n()).done;){var h=c.value;if(!u.has(h)){var f=this.getRecordId(e,h),v=this.recordMap.get(f);v&&(this.completeRecord(e,v,l,h),v.status="complete",v.hooks.fireOnEnd(v.tmodel,h),v.tmodel.removeFromAnimatingMap(h),this.recordMap.delete(f))}}}catch(e){d.e(e)}finally{d.f()}}}}},{key:"mergeBatches",value:function(e,t){for(var r=new Set(Object.keys(t.keyMap)),n={},i=0,a=Object.entries(e.keyMap);i<a.length;i++){var o=v(a[i],2),l=o[0],u=o[1];r.has(l)||(n[l]=u)}var c=Object.keys(n),d=[];if(c.length){var h,f=g(e.frames);try{for(f.s();!(h=f.n()).done;){var y,m=h.value,b={keyTime:m.keyTime,tfMap:{},styleMap:{},keyMeta:new Map},w=g(c);try{for(w.s();!(y=w.n()).done;){var k,S=y.value;s.d.isDefined(m.tfMap[S])&&(b.tfMap[S]=m.tfMap[S]),s.d.isDefined(m.styleMap[S])&&(b.styleMap[S]=m.styleMap[S]);var x=null===(k=m.keyMeta)||void 0===k?void 0:k.get(S);x&&b.keyMeta.set(S,x)}}catch(e){w.e(e)}finally{w.f()}(Object.keys(b.tfMap).length||Object.keys(b.styleMap).length)&&d.push(b)}}catch(e){f.e(e)}finally{f.f()}}var M=[].concat(d,p(t.frames));M.sort((function(e,t){return e.keyTime-t.keyTime}));var C,E=[],D=g(M);try{for(D.s();!(C=D.n()).done;){var P=C.value,L=E[E.length-1];if(L&&Math.abs(L.keyTime-P.keyTime)<1e-4){Object.assign(L.styleMap,P.styleMap),Object.assign(L.tfMap,P.tfMap);var O,A=g(P.keyMeta);try{for(A.s();!(O=A.n()).done;){var j=v(O.value,2),_=j[0],I=j[1];L.keyMeta.set(_,I)}}catch(e){A.e(e)}finally{A.f()}}else E.push(P)}}catch(e){D.e(e)}finally{D.f()}t.frames=E,t.keyMap=T(T({},n),t.keyMap),t.totalDuration=E.reduce((function(e,t){return Math.max(e,t.keyTime)}),0)}},{key:"areFramesEqual",value:function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0,a=r;i<a.length;i++){var o=a[i];if("offset"!==o&&e[o]!==t[o])return!1}return!0}},{key:"filterRedundantKeyframes",value:function(e){if(e.length<=2)return e;for(var t=[e[0]],r=1;r<e.length-1;r++){var n=t[t.length-1],i=e[r];this.areFramesEqual(n,i)||t.push(i)}return t.push(e[e.length-1]),t}},{key:"rebaseAutoLayoutTransform",value:function(e,t){if(!e.lastBatch)return!1;var r=Math.min(s.d.now()-e.lastBatch.startTime,e.lastBatch.totalDuration),n=this.cutLastBatch(e,e.lastBatch,r);i.T.rebaseCutBatchMeta(e,n);var a,o=g(n.frames);try{for(o.s();!(a=o.n()).done;)for(var l=a.value,u=0,c=Object.entries(t);u<c.length;u++){var d=v(c[u],2),h=d[0],f=d[1];l.tfMap[h]=f}}catch(e){o.e(e)}finally{o.f()}for(var p=0,y=Object.entries(t);p<y.length;p++){var m=v(y[p],2),b=m[0],T=m[1];e.tfMap[b]=T,e.val(b,T),e.actualValues[b]=T}return this.deleteAnimation(e),this.animate(e,n,i.T.getAnimationHooks()),!0}}],t&&k(e.prototype,t),r&&k(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,c,h}()},980:function(e,t,r){r.d(t,{T:function(){return y}});var n=r(333),i=r(585),a=r(249),o=r(855),l=r(161),s=r(34);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function f(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,u=[{key:"emptyBatch",value:function(){return{frames:[],keyMap:{},totalDuration:0}}},{key:"overrideAnimatedKeyWithSnap",value:function(t,r,a){for(var l=Array.isArray(r)?r:[r],s=Array.isArray(a)?a:[a],u={},c={},d=new Map,h={},f={},v=new Map,g={},p=!1,y=0;y<l.length;y++){var m=l[y];p=!0;var b=s[y],T=t.targetValues[m]||n.g.emptyValue(),w=n.g.getTargetName(m);i.u.isTransformKey(w)?(u[w]=b,h[w]=b):(c[w]=b,f[w]=b),d.set(w,{steps:1,interval:1}),v.set(w,{steps:1,interval:1}),(g[w]=new Set).add(m),T.value=b,T.steps=1,T.interval=0,T.snapAnimation=!0}if(p){var k=[];k.push({keyTime:0,tfMap:u,styleMap:c,keyMeta:d}),k.push({keyTime:1,tfMap:h,styleMap:f,keyMeta:v});var S={frames:k,keyMap:g,snap:!0,totalDuration:1};(0,o.s)().animate(t,S,e.getAnimationHooks())}}},{key:"fixStyleByAnimation",value:function(e,t){if(e.hasDom())for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];if("offset"!==a){var o=t[a];if(null!==o){var l=o;if("string"==typeof o&&o.endsWith("px")){var s=Number(o.slice(0,-2));Number.isNaN(s)||(l=s)}"width"===a?(e.styleMap.width=l,e.$dom.width(o)):"height"===a?(e.styleMap.height=l,e.$dom.height(o)):"transform"===a?e.$dom.transform(o,e.val("transformOrder")):i.u.transformMap[a]||(e.$dom.style(a,o),e.styleMap[a]=l)}}}}},{key:"addUnitsToFrame",value:function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if("offset"!==n&&"transform"!==n){var a=e[n];null==a||Number.isNaN(a)?delete e[n]:"number"==typeof a&&i.u.styleWithUnitMap[n]&&(("width"===n||"height"===n)&&a<0&&(a=0),e[n]="".concat(a,"px"))}}}},{key:"getAnimationHooks",value:function(){return{morph:function(e,t,r,n,i,o){return a.a.easingMorph(e,t,r,n,i,o)},fireOnStep:function(e,t,r){return(0,o.HJ)().fireOnStep(e,t,r)},fireOnEnd:function(e,t){return(0,o.HJ)().fireOnEnd(e,t)}}}},{key:"addToUpdatingTargets",value:function(e,t){var r,n=[],i=h((0,o.s)().recordMap);try{for(i.s();!(r=i.n()).done;){var a=d(r.value,2)[1];a.tmodel===e&&(t&&!t.has(a.originalKey)||n.push(a))}}catch(e){i.e(e)}finally{i.f()}for(var l=0,s=n;l<s.length;l++){var u,c,f=s[l].originalKey;e.targetValues[f]&&(null===(u=e.noDomUpdatingTargets)||void 0===u||u.delete(f),0===(null===(c=e.noDomUpdatingTargets)||void 0===c?void 0:c.size)&&(e.noDomUpdatingTargets=void 0),e.setTargetStatus(f,"updating"),e.removeFromAnimatingMap(f))}}},{key:"addToNODomUpdatingTargets",value:function(e,t){var r,n=[],i=h((0,o.s)().recordMap);try{for(i.s();!(r=i.n()).done;){var a=d(r.value,2)[1];a.tmodel===e&&(t&&!t.has(a.originalKey)||n.push(a))}}catch(e){i.e(e)}finally{i.f()}for(var l=0,s=n;l<s.length;l++){var u=s[l].originalKey;e.addToNoDomUpdatingTargets(u)}}},{key:"removeKeysFromBatch",value:function(e,t){if(e&&null!=t&&t.size){var r,i=h(e.frames);try{for(i.s();!(r=i.n()).done;){var a,o=r.value,l=h(t);try{for(l.s();!(a=l.n()).done;){var s=a.value,u=n.g.getTargetName(s);delete o.styleMap[u],delete o.tfMap[u],o.keyMeta&&o.keyMeta.delete(u)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){i.e(e)}finally{i.f()}var c,d=h(t);try{for(d.s();!(c=d.n()).done;){var f=c.value,v=n.g.getTargetName(f);delete e.keyMap[v]}}catch(e){d.e(e)}finally{d.f()}e.frames=e.frames.filter((function(e){return Object.keys(e.styleMap).length||Object.keys(e.tfMap).length})),e.totalDuration=e.frames.length?e.frames[e.frames.length-1].keyTime:0}}},{key:"updateTModelFromRecord",value:function(t){var r=t.tmodel,n=t.originalKey,i=t.cleanKey;if(r.hasDom()){var a=e.getValueFromAnim(t);if(a){var l=a.value,u=a.step,c=a.steps,d=a.cycle,h=a.valuePointer,f=a.from,v=a.to,g=a.interval,p=a.easing;(0,o.s)().setAt(r,i,l),r.val(n,l);var y=r.targetValues[n];if(y){var m;null!==(m=y.valueList)&&void 0!==m&&m.length?e.syncListTargetSegment(y,a):(s.d.isDefined(f)&&(y.initialValue=f),s.d.isDefined(v)&&(y.value=v),s.d.isDefined(c)&&(y.steps=c),s.d.isDefined(g)&&(y.interval=g),s.d.isDefined(p)&&(y.easing=p)),s.d.isDefined(u)&&(y.step=u),s.d.isDefined(h)&&(y.valuePointer=h),s.d.isDefined(d)&&(y.cycle=d),y.lastUpdate=s.d.now(),r.setActual(n,l);var b="".concat(d,":").concat(h,":").concat(u);t.needsFireOnStep&&u>0&&c>0&&t.lastFireOnStepKey!==b&&(t.lastFireOnStepKey=b,t.hooks.fireOnStep(r,n,u)||(t.needsFireOnStep=!1))}return a}}}},{key:"getValueFromAnim",value:function(t){var r,n,i=null===(r=t.anim.effect)||void 0===r||null===(n=r.getComputedTiming)||void 0===n?void 0:n.call(r);if(i){var a=s.d.isDefined(i.progress)?s.d.limit(i.progress,0,1):1;return e.getValueFromFrames(t,a)}}},{key:"getValueFromFrames",value:function(e,t){var r,n,i,o,l,u=e.originalKey,c=e.frames;if(c&&!(c.length<2)){var d=s.d.limit(t,0,1),h=c.length-1,f=0;if(d<=c[0].offset)f=0;else if(d>=c[h].offset)f=h-1;else for(var v=0;v<h;v++)if(d>=c[v].offset&&d<c[v+1].offset){f=v;break}var g=c[f],p=c[f+1],y=g.value,m=p.value,b=g.offset,T=p.offset-b;if(!(T<=0)){var w,k,S,x,M=s.d.limit((d-b)/T,0,1),C=a.a.morph(u,y,m,M),E=p.steps;if(!s.d.isDefined(E)||E<=0)return{value:C,framePointer:f,step:p.segmentSteps,steps:p.segmentSteps,from:y,to:m,interval:p.interval,easing:p.easing,valuePointer:null!==(w=null!==(k=p.valuePointer)&&void 0!==k?k:g.valuePointer)&&void 0!==w?w:0,cycle:null!==(S=null!==(x=p.cycle)&&void 0!==x?x:g.cycle)&&void 0!==S?S:0,status:p.done?"finished":"playing"};var D=Math.round(M*E);D=s.d.limit(D,0,E);var P=p.stepOffset||0,L=null!==(r=p.segmentSteps)&&void 0!==r?r:P+E;return{value:C,step:s.d.limit(P+D,0,L),steps:L,from:y,to:m,interval:p.interval,easing:p.easing,valuePointer:null!==(n=null!==(i=p.valuePointer)&&void 0!==i?i:g.valuePointer)&&void 0!==n?n:0,cycle:null!==(o=null!==(l=p.cycle)&&void 0!==l?l:g.cycle)&&void 0!==o?o:0,status:p.done?"finished":"playing"}}}}},{key:"detachAnimationsOnDeleteDom",value:function(t){var r,n=(0,o.s)().recordMap,i=new Set,a=new Set,s=h(n);try{for(s.s();!(r=s.n()).done;){var u=d(r.value,2)[1];u.tmodel===t&&(l.O.shouldPauseTarget(t,u.originalKey)?i.add(u.originalKey):a.add(u.originalKey))}}catch(e){s.e(e)}finally{s.f()}i.size&&e.addToUpdatingTargets(t,i),a.size&&e.addToNODomUpdatingTargets(t,a),e.deleteDetachedRecords(t,new Set([].concat(c(i),c(a))))}},{key:"deleteDetachedRecords",value:function(e,t){var r,n=(0,o.s)().recordMap,i=h(n);try{for(i.s();!(r=i.n()).done;){var a=d(r.value,2),l=a[0],s=a[1];if(s.tmodel===e&&t.has(s.originalKey)){s.status="detached";try{s.anim.cancel()}catch(e){}e.removeFromAnimatingMap(s.originalKey),n.delete(l)}}}catch(e){i.e(e)}finally{i.f()}e.clearAnimatingMap(),e.lastBatch=void 0,e.finalKeyframe=void 0,e.finalRawFrame=void 0}},{key:"rebaseCutBatchMeta",value:function(e,t){var r;if(t&&null!==(r=t.frames)&&void 0!==r&&r.length)for(var n=0,i=Object.entries(t.keyMap);n<i.length;n++){var a,l=d(i[n],2),u=l[0],c=h(l[1]);try{for(c.s();!(a=c.n()).done;){var f=a.value,v=e.targetValues[f];if(v)for(var g=v.step||0,p=1;p<t.frames.length;p++){var y,m=t.frames[p];if(void 0!==(0,o.s)().getAt(m,u)){var b=null===(y=m.keyMeta)||void 0===y?void 0:y.get(u);if(b&&s.d.isDefined(b.steps)){var T=b.stepOffset||0,w=T+b.steps;g>T&&g<w&&(b.stepOffset=g,b.steps=w-g);break}}}}}catch(e){c.e(e)}finally{c.f()}}}},{key:"removeCleanKeyFromBatch",value:function(e,t){if(!e)return!1;var r,n=e.totalDuration||0,i=!1,a=h(e.frames);try{for(a.s();!(r=a.n()).done;){var o,l=r.value;void 0===l.tfMap[t]&&void 0===l.styleMap[t]||(i=!0),delete l.tfMap[t],delete l.styleMap[t],null===(o=l.keyMeta)||void 0===o||o.delete(t)}}catch(e){a.e(e)}finally{a.f()}return delete e.keyMap[t],e.frames=e.frames.filter((function(e){return Object.keys(e.tfMap).length||Object.keys(e.styleMap).length})),e.frames.sort((function(e,t){return e.keyTime-t.keyTime})),e.totalDuration=e.frames.length?Math.max.apply(Math,[n].concat(c(e.frames.map((function(e){return e.keyTime}))))):0,i}},{key:"syncListTargetSegment",value:function(e,t){var r,n,i,a,o,l;if(null!=e&&null!==(r=e.valueList)&&void 0!==r&&r.length){var u=e.valueList.length-1,c=s.d.limit(null!==(n=null!==(i=t.valuePointer)&&void 0!==i?i:e.valuePointer)&&void 0!==n?n:1,1,u),d=c-1;e.valuePointer=c,e.initialValue=e.valueList[d],e.value=e.valueList[c],null!==(a=e.stepList)&&void 0!==a&&a.length&&(e.steps=e.stepList[d%e.stepList.length]),null!==(o=e.intervalList)&&void 0!==o&&o.length&&(e.interval=e.intervalList[d%e.intervalList.length]),null!==(l=e.easingList)&&void 0!==l&&l.length&&(e.easing=e.easingList[d%e.easingList.length])}}},{key:"handleWebAnimationAPI",value:function(t,r,n,a,o,l,s,u,c,d,h){var f,v=arguments.length>11&&void 0!==arguments[11]&&arguments[11],g=!(arguments.length>12&&void 0!==arguments[12])||arguments[12],p=t.waapiBatch||(t.waapiBatch={frames:[],easing:void 0,keyMap:{},totalDuration:0});g&&e.removeCleanKeyFromBatch(p,r)&&(h=0);var y=i.u.isTransformKey(r),m=function(e){for(var t=Math.max(0,e+h),r=0;r<p.frames.length;r++){var n=p.frames[r];if(Math.abs(n.keyTime-t)<1e-4)return n}var i={keyTime:t,tfMap:{},styleMap:{},keyMeta:new Map};return p.frames.push(i),i},b=function(e,t){y?e.tfMap[r]=t:e.styleMap[r]=t},T=0;if(a.valueList&&a.valueList.length){var w,k,S=a.valueList,x=a.stepList||[1],M=a.intervalList||[d||8],C=null!==(w=a.cycles)&&void 0!==w?w:1,E=null!==(k=a.cycle)&&void 0!==k?k:0,D=s;if(!v){var P,L,O=m(0);b(O,o),O.keyMeta.set(r,{steps:0,segmentSteps:c||a.steps||0,interval:d||a.interval||8,stepOffset:u||0,valuePointer:null!==(P=null!=s?s:a.valuePointer)&&void 0!==P?P:1,cycle:null!==(L=a.cycle)&&void 0!==L?L:0})}for(;E<C;){for(var A=D;A<S.length;A++){var j,_=x[(A-1)%x.length],I=M[(A-1)%M.length]||8,V=E===(null!==(j=a.cycle)&&void 0!==j?j:0)&&A===s?u:0,N=Math.max(_-V,0);if(!(N<=0)){var R=m(T+=N*I);b(R,S[A]),R.keyMeta.set(r,{steps:N,segmentSteps:_,interval:I,stepOffset:V,valuePointer:A,cycle:E})}}E++,D=1}}else{var F;d=d||8;var B=Math.max(c-u,0);if(B<=0)return t.val(n,l),a.step=c,0;T=B*d,v||b(m(0),o);var H=m(T);b(H,l),H.keyMeta.set(r,{steps:B,segmentSteps:c,interval:d,stepOffset:u,valuePointer:0,cycle:null!==(F=a.cycle)&&void 0!==F?F:0})}return T<=0?(t.removeFromUpdatingTargets(n),0):(t.getTargetEasing(n)&&(p.easing=t.getTargetEasing(n)),p.totalDuration=Math.max(0,p.totalDuration,h+T),((f=p.keyMap)[r]||(f[r]=new Set)).add(n),t.removeFromUpdatingTargets(n),t.addToAnimatingMap(n),T)}}],(r=null)&&g(t.prototype,r),u&&g(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,u}()},855:function(e,t,r){r.d(t,{qw:function(){return at},hd:function(){return dt},aK:function(){return ht},s:function(){return gt},UR:function(){return xt},kQ:function(){return st},qI:function(){return ct},zw:function(){return yt},EI:function(){return ft},cI:function(){return ut},S9:function(){return wt},fB:function(){return pt},c$:function(){return bt},r5:function(){return mt},iP:function(){return St},HJ:function(){return vt},U$:function(){return Tt},W_:function(){return ot},wk:function(){return kt},E_:function(){return Ye},Bt:function(){return lt}});var n=r(768),i=r(90),a=r(756),o=r(34),l=r(585),s=r(484);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function g(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var y=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$document=new n.J(document),this.currentTouch={deltaY:0,deltaX:0,prevDeltaX:0,prevDeltaY:0,pinchDelta:0,key:"",manualMomentumFlag:!1,orientation:"none",dir:"",source:""},this.lastEvent=void 0,this.touchTimeStamp=0,this.cursor={x:0,y:0},this.start0=void 0,this.start1=void 0,this.end0=void 0,this.end1=void 0,this.touchCount=0,this.canFindHandlers=!0,this.swipeStartX=0,this.swipeStartY=0,this.currentEventName="",this.currentEventType="",this.currentEventTModel=void 0,this.currentOriginalEvent=void 0,this.currentKey="",this.currentHandlers={gestureTarget:null,touch:null,click:null,scrollLeft:null,scrollTop:null,swipe:null,pinch:null,focus:null,justFocused:null,blur:null,leave:null,enter:null,start:null,endCandidate:null,end:null,hover:null},this.eventQueue=[],this.attachedEventMap={},this.eventTargetMap={},this.allEvents={},this.windowScrollX=0|window.scrollX,this.windowScrollY=0|window.scrollY,this.windowScrollEndTimer=0,this.scrollEndTimeStamp={x:0,y:0},this.windowEpoch=0,this.eventEpoch=0,Object.values(l.u.events).forEach((function(e){Object.assign(t.allEvents,e)})),this.hovered=new Set,this.bindedHandleWindowEvent=this.handleWindowEvent.bind(this),this.bindedHandleEvent=this.handleEvent.bind(this),this.bindedParentHandleEvent=this.handleDocEvent.bind(this),this.maxPointerMoveDistance=0}return t=e,r=[{key:"detachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){Ye.$window.detachEvent(t,e.bindedHandleWindowEvent)}))}},{key:"attachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){Ye.$window.addEvent(t,e.bindedHandleWindowEvent)}))}},{key:"detachDocumentEvents",value:function(e){var t=this,r=l.u.events[e];Object.keys(r).forEach((function(e){var n=r[e];t.$document.detachEvent(e,t.bindedParentHandleEvent,n.capture)}))}},{key:"attachDocumentEvents",value:function(e){var t=this,r=l.u.events[e];Object.keys(r).forEach((function(e){var n=r[e];t.$document.addEvent(e,t.bindedParentHandleEvent,n.capture,n.passive)}))}},{key:"attachEvents",value:function(e){var t,r=d(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.externalEventMap){var i,a=d(n.externalEventMap);try{for(a.s();!(i=a.n()).done;){var o=c(i.value,1)[0];this.attachTargetEvents(n,o,!0)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"attachTargetEvents",value:function(e,t,r){var n=this,i="".concat(e.oid," ").concat(t),a=l.u.targetToEventsMapping[t];a&&Array.isArray(a)&&0!==a.length&&a.forEach((function(t){var a=l.u.events[t];if(a){var o="undefined"!=typeof window&&!!window.PointerEvent;Object.keys(a).forEach((function(t){if(!o||!t.startsWith("mouse")){var l=a[t],s=!!l.windowEvent,u=s?Ye.$window:e.hasDom()?e.$dom:null;if(!u)return!1;var c="".concat(i," ").concat(s?"win":"dom"),d=n.eventTargetMap[c]===u,h="".concat(e.oid," ").concat(t," ").concat(s?"win":"dom"),f=n.attachedEventMap[h]&&n.attachedEventMap[h].$dom===u;!r&&d&&f||(u.detachEvent(t,n.bindedHandleEvent,l.capture),u.addEvent(t,n.bindedHandleEvent,l.capture,l.passive),n.eventTargetMap[c]=u,n.attachedEventMap[h]={$dom:u,event:t,capture:!!l.capture})}}))}}))}},{key:"detachAll",value:function(){for(var e=0,t=Object.keys(this.attachedEventMap);e<t.length;e++){var r=t[e],n=this.attachedEventMap[r],i=n.$dom,a=n.event,o=n.capture;i.exists()&&i.detachEvent(a,this.bindedHandleEvent,o)}this.attachedEventMap={},this.eventTargetMap={}}},{key:"resetEventsOnTimeout",value:function(){if((this.scrollEndTimeStamp.x>0||this.scrollEndTimeStamp.y>0||0!==this.currentTouch.pinchDelta)&&!(this.touchCount>0)){var e=o.d.now(),t=Math.max(this.scrollEndTimeStamp.x-e,this.scrollEndTimeStamp.y-e);t>100&&(this.currentTouch.deltaY*=.95,this.currentTouch.deltaX*=.95,this.currentTouch.pinchDelta*=.95,Math.abs(this.currentTouch.deltaY)<.1&&(this.currentTouch.deltaY=0),Math.abs(this.currentTouch.deltaX)<.1&&(this.currentTouch.deltaX=0),Math.abs(this.currentTouch.pinchDelta)<.1&&(this.currentTouch.pinchDelta=0)),t<=0&&(this.currentTouch.deltaY=0,this.currentTouch.deltaX=0,this.currentTouch.pinchDelta=0),!this.currentTouch.deltaX&&this.scrollEndTimeStamp.x&&e>=this.scrollEndTimeStamp.x&&(this.scrollEndTimeStamp.x=0,this.queueScrollEndEvent("x",this.currentHandlers.scrollLeft)),!this.currentTouch.deltaY&&this.scrollEndTimeStamp.y&&e>=this.scrollEndTimeStamp.y&&(this.queueScrollEndEvent("y",this.currentHandlers.scrollTop),this.scrollEndTimeStamp.y=0),pt().schedule(10,"scroll decay")}}},{key:"findEventHandlers",value:function(e){var t,r,i,o,l,s,u,c,d,h,f=e.tmodel,v=e.eventType;f&&(t=a.X.findFirstClickHandler(f),r=a.X.findFirstSwipeHandler(f),d=a.X.findFirstStartHandler(f),h=a.X.findFirstEndHandler(f),u=a.X.findFirstEnterHandler(f),c=a.X.findFirstLeaveHandler(f),i=a.X.findFirstScrollLeftHandler(f,v),o=a.X.findFirstScrollTopHandler(f,v),l=a.X.findFirstPinchHandler(f),s=n.J.hasFocus(f)?f:this.currentHandlers.focus),this.currentHandlers.scrollLeft===i&&this.currentHandlers.scrollTop===o||this.clearTouch(),this.currentHandlers.focus!==s&&(this.currentHandlers.justFocused=s,this.currentHandlers.blur=this.currentHandlers.focus),this.currentHandlers.hover=null!=f&&f.canHandleEvent("onHover")?f:void 0,this.currentHandlers.click=t,this.currentHandlers.swipe=r,this.currentHandlers.start=d,this.currentHandlers.endCandidate=h,this.currentHandlers.scrollLeft=i,this.currentHandlers.scrollTop=o,this.currentHandlers.pinch=l,this.currentHandlers.focus=s,this.currentHandlers.enter=u,this.currentHandlers.leave=c}},{key:"captureEvents",value:function(){if(this.currentTouch.prevDeltaX=0,this.currentTouch.prevDeltaY=0,this.currentHandlers.enter=void 0,this.currentHandlers.leave=void 0,this.currentHandlers.justFocused=void 0,this.currentHandlers.blur=void 0,this.currentHandlers.end=void 0,this.currentKey=this.currentTouch.key,0===this.eventQueue.length)return this.currentEventName="",this.currentEventType="",this.currentEventTModel=void 0,this.currentOriginalEvent=void 0,void(this.currentKey="");var e=this.eventQueue.shift();return this.canFindHandlers&&!e.synthetic&&this.findEventHandlers(e),"end"===e.eventType&&(this.currentHandlers.end=this.currentHandlers.endCandidate,this.currentHandlers.start=void 0,this.currentHandlers.endCandidate=void 0,this.currentHandlers.gestureTarget=void 0),this.currentEventName=e.eventName,this.currentEventType=e.eventType,this.currentEventTModel=e.tmodel,this.currentOriginalEvent=e.originalEvent,this.currentTouch.key="",this.markCapturedEventDirty(e),"end"!==e.eventType&&"click"!==e.eventType||(this.canFindHandlers=!0),e}},{key:"markCapturedEventDirty",value:function(e){var t=function(e,t){e&&(e.markEventDirty(),e.markLayoutDirty(t))};switch(t(e.tmodel,"".concat(e.eventType,"-event")),e.eventType){case"click":t(this.currentHandlers.click,"click-event");break;case"start":t(this.currentHandlers.start,"start-event");break;case"end":t(this.currentHandlers.end,"end-event");break;case"move":t(this.currentHandlers.swipe,"swipe-event"),t(this.currentHandlers.scrollLeft,"scrollleft-event"),t(this.currentHandlers.scrollTop,"scrolltop-event"),t(this.currentHandlers.pinch,"pinch-event");break;case"popstate":for(var r=0,n=Object.values(ft().visibleOidMap);r<n.length;r++){var i,a=n[r];null!==(i=a.externalEventMap)&&void 0!==i&&i.has("onPopState")&&t(a,"popstate-event")}}}},{key:"handleDocEvent",value:function(e){this.handleEvent(e,!0,!1)}},{key:"handleWindowEvent",value:function(e){this.handleEvent(e,!1,!0)}},{key:"handleEvent",value:function(t,r,n){var i,l,s,u,c,d,h,f,v,g,p=this;if(t){var y=t.type,m=this.allEvents[y];if(m){var b,T,w=m.eventName,k=m.inputType,S=m.eventType,x=m.order,M=m.queue,C=m.rateLimit,E=o.d.now(),D={eventName:w,eventItem:m,eventType:S,originalName:y,tmodel:b="move"===S&&this.touchCount>0&&this.currentHandlers.gestureTarget?this.currentHandlers.gestureTarget:this.getTModelFromEvent(t),originalEvent:t,timeStamp:E};if(null!==(i=this.lastEvent)&&void 0!==i&&i.eventItem){var P=this.lastEvent,L=P.eventItem,O=E-P.timeStamp;if("end"!==S&&"cancel"!==S&&"start"!==S&&k&&L.inputType&&L.inputType!==k&&x>L.order)return;if(this.eventQueue.length>e.MAX_EVENT_QUEUE_SIZE&&C>0&&O<C)for(var A=0,j=this.eventQueue.length-1;j>=0;j--){var _;if((null===(_=this.eventQueue[j].eventItem)||void 0===_?void 0:_.eventType)!==S)break;if(++A>e.MAX_EVENT_TYPE_CAPACITY)return void(this.preventDefault(b,w)&&(t.preventDefault(),t.stopPropagation()))}}switch(this.eventEpoch++,null===(l=b)||void 0===l||l.markEventDirty(),null===(s=b)||void 0===s||s.markLayoutDirty("event"),this.lastEvent=D,M&&this.eventQueue.push(this.lastEvent),w){case"mousedown":case"touchstart":this.maxPointerMoveDistance=0,this.clearStart(),this.clearEnd(),this.clearTouch(),this.eventQueue.length=0,this.eventQueue.push(this.lastEvent),this.touchCount=this.countTouches(t)||1,this.preventDefault(b,w)&&t.cancelable&&t.preventDefault(),this.start0=this.getTouch(t),this.start1=this.getTouch(t,1),this.cursor.x=this.start0.x,this.cursor.y=this.start0.y,this.currentHandlers.gestureTarget=b,this.findEventHandlers(D),this.canFindHandlers=!1,this.swipeStartX=this.start0.x-(null!==(u=null===(c=this.currentHandlers.swipe)||void 0===c?void 0:c.getX())&&void 0!==u?u:0),this.swipeStartY=this.start0.y-(null!==(d=null===(h=this.currentHandlers.swipe)||void 0===h?void 0:h.getY())&&void 0!==d?d:0),t.stopPropagation(),this.detachDocumentEvents("documentDragEvents"),this.attachDocumentEvents("documentDragEvents");break;case"mousemove":case"touchmove":var I;T=this.getTouch(t),this.cursor.x=T.x,this.cursor.y=T.y,this.preventDefault(b,w)&&t.cancelable&&t.preventDefault(),this.touchCount>0?(this.scrollEndTimeStamp.x=0,this.scrollEndTimeStamp.y=0,this.move(t),t.stopPropagation(),null===(I=this.currentHandlers.swipe)||void 0===I||I.markLayoutDirty("swipe-event")):this.isCurrentSource("wheel")&&this.clearTouch();break;case"mouseup":case"touchend":this.detachDocumentEvents("documentDragEvents"),this.preventDefault(b,w)&&t.cancelable&&t.preventDefault(),this.end(t),this.clearEnd(),this.touchCount=0,t.stopPropagation();break;case"click":this.preventDefault(b,w)&&t.preventDefault(),this.end0=this.getTouch(t);var V=a.X.findFirstClickHandler(b),N=!this.start0||V===this.currentHandlers.click&&this.maxPointerMoveDistance<e.CLICK_MOVE_THRESHOLD;V&&N&&(this.eventQueue.length=0,this.eventQueue.push({eventName:w,eventItem:m,eventType:S,originalName:y,tmodel:b,originalEvent:t,timeStamp:E})),this.clearEnd(),this.clearStart(),this.maxPointerMoveDistance=0,this.touchCount=0,t.stopPropagation();break;case"wheel":this.preventDefault(b,w)&&(t.preventDefault(),t.stopPropagation()),this.touchCount=0,this.wheel(t);break;case"mouseleave":r&&this.touchCount>0&&(this.detachDocumentEvents("documentDragEvents"),T=this.getTouch(t),this.cursor.x=T.x,this.cursor.y=T.y,this.end(t),this.clearEnd(),this.touchCount=0,t.stopPropagation());break;case"mousecancel":case"touchcancel":this.canFindHandlers=!0,this.detachDocumentEvents("documentDragEvents"),this.clearStart(),this.clearEnd(),this.clearTouch(),this.maxPointerMoveDistance=0,this.touchCount=0,t.stopPropagation();break;case"key":this.currentTouch.key=t.which||t.keyCode,null===(f=this.currentHandlers.focus)||void 0===f||f.markLayoutDirty("key-event");break;case"keydown":this.currentTouch.key=t.which||t.keyCode,null===(v=this.currentHandlers.focus)||void 0===v||v.markLayoutDirty("keydown-event");break;case"resize":this.windowEpoch++,this.resizeRoot(),ft().getAvailableDoms().forEach((function(e){e.targets.onResize&&e.markLayoutDirty("resize-event")}));break;case"scroll":clearTimeout(this.windowScrollEndTimer),this.windowScrollEndTimer=setTimeout((function(){p.queueWindowScrollEndEvent("x",b),p.queueWindowScrollEndEvent("y",b),p.windowScrollEndTimer=0}),450),n?(this.windowEpoch++,this.windowScrollX=0|window.scrollX,this.windowScrollY=0|window.scrollY,yt().domIslandSet.forEach((function(e){e.markLayoutDirty("window-scroll-event")}))):b.markLayoutDirty("container-scroll-event")}pt().schedule(0,"".concat(null===(g=b)||void 0===g?void 0:g.oid,"-").concat(y,"-").concat(w,"-").concat((t.target.tagName||"").toUpperCase()))}}}},{key:"queueScrollEndEvent",value:function(e,t){if(t){var r="x"===e?"scrollleftend":"scrolltopend";this.removeScrollEndEvents(e),this.eventQueue.push({eventName:r,eventType:r,originalName:r,tmodel:t,originalEvent:void 0,timeStamp:o.d.now(),synthetic:!0}),this.eventEpoch++,t.markEventDirty(),t.markLayoutDirty(r),pt().schedule(0,r)}}},{key:"queueWindowScrollEndEvent",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"window",n="x"===e?"windowscrollleftend":"windowscrolltopend";this.removeScrollEndEvents(e),this.eventQueue.push({eventName:n,eventType:n,originalName:n,tmodel:t,originalEvent:void 0,timeStamp:o.d.now(),synthetic:!0,scrollSource:r}),this.eventEpoch++,yt().domIslandSet.forEach((function(e){e.markEventDirty(),e.markLayoutDirty(n)})),pt().schedule(0,n)}},{key:"removeScrollEndEvents",value:function(e){var t="x"===e?new Set(["scrollleftend","windowscrollleftend"]):new Set(["scrolltopend","windowscrolltopend"]);this.eventQueue=this.eventQueue.filter((function(e){return!t.has(e.eventType)}))}},{key:"resizeRoot",value:function(){s.j.executeDeclarativeTarget(lt(),"screenWidth"),s.j.executeDeclarativeTarget(lt(),"screenHeight")}},{key:"preventDefault",value:function(e,t){return!(!e||!(!0===e.preventDefault()||Array.isArray(e.preventDefault())&&e.preventDefault().includes(t)))}},{key:"getTModelFromEvent",value:function(e){var t,r=e.currentTarget||e.target;return r&&1===r.nodeType&&(t=r.getAttribute("tgjs-oid")||r.id),t&&ft().visibleOidMap[t]||(t=null==r?void 0:r.id)&&ft().visibleOidMap[t]||(t=n.J.findNearestParentWithId(e.target)),ft().visibleOidMap[t]}},{key:"clearStart",value:function(){this.start0=void 0,this.start1=void 0}},{key:"clearEnd",value:function(){this.end0=void 0,this.end1=void 0}},{key:"clearTouch",value:function(){this.currentTouch={deltaY:0,deltaX:0,prevDeltaX:0,prevDeltaY:0,pinchDelta:0,key:"",manualMomentumFlag:!1,orientation:"none",dir:"",source:""}}},{key:"clearAll",value:function(){this.clearStart(),this.clearEnd(),this.clearTouch(),this.eventQueue.length=0,this.touchCount=0,this.canFindHandlers=!0,this.lastEvent=void 0,this.attachedEventMap={},this.eventTargetMap={},this.swipeStartX=0,this.swipeStartY=0,this.hovered.clear(),clearTimeout(this.windowScrollEndTimer),this.windowScrollEndTimer=0,this.scrollEndTimeStamp.x=0,this.scrollEndTimeStamp.y=0,this.maxPointerMoveDistance=0,this.currentHandlers={touch:null,click:null,scrollLeft:null,scrollTop:null,swipe:null,pinch:null,focus:null,justFocused:null,blur:null,leave:null,enter:null,start:null,end:null,hover:null}}},{key:"deltaX",value:function(){return this.currentTouch.deltaX}},{key:"deltaY",value:function(){return this.currentTouch.deltaY}},{key:"cursorX",value:function(){return this.cursor.x}},{key:"cursorY",value:function(){return this.cursor.y}},{key:"swipeX",value:function(){return this.cursor.x-this.swipeStartX}},{key:"swipeY",value:function(){return this.cursor.y-this.swipeStartY}},{key:"pinchDelta",value:function(){return this.currentTouch.pinchDelta}},{key:"dir",value:function(){return this.currentTouch.dir}},{key:"getScrollLeftHandler",value:function(){return this.currentHandlers.scrollLeft}},{key:"getScrollTopHandler",value:function(){return this.currentHandlers.scrollTop}},{key:"getWindowScrollX",value:function(){return this.windowScrollX}},{key:"getWindowScrollY",value:function(){return this.windowScrollY}},{key:"getWindowEpoch",value:function(){return this.windowEpoch}},{key:"getPinchHandler",value:function(){return this.currentHandlers.pinch}},{key:"getClickHandler",value:function(){return this.currentHandlers.click}},{key:"getTouchCount",value:function(){return this.touchCount}},{key:"isClickEvent",value:function(){return"click"===this.getEventType()}},{key:"isMoveEvent",value:function(){return"move"===this.getEventType()}},{key:"isResizeEvent",value:function(){return"resize"===this.getEventType()}},{key:"isSwipeEvent",value:function(){return this.isMoveEvent()&&this.hasDelta()&&1===this.touchCount}},{key:"isScrollEvent",value:function(){return this.hasDelta()&&this.isCurrentSource("wheel")}},{key:"hasDelta",value:function(){return 0!==this.deltaX()||0!==this.deltaY()}},{key:"isEndEvent",value:function(){return"end"===this.getEventType()||"click"===this.getEventType()}},{key:"isStartEvent",value:function(){return"start"===this.getEventType()}},{key:"getEventName",value:function(){return this.currentEventName}},{key:"getCurrentOriginalEvent",value:function(){return this.currentOriginalEvent}},{key:"getEventType",value:function(){return this.currentEventType}},{key:"getEventTModel",value:function(){return this.currentEventTModel}},{key:"isClickHandler",value:function(e){return this.getClickHandler()===e&&this.isClickEvent()}},{key:"isEnterHandler",value:function(e){return!(!e||e!==this.currentHandlers.enter||"mouseenter"!==this.getEventName()||this.hovered.has(e.oid)||(this.hovered.add(e.oid),0))}},{key:"isLeaveHandler",value:function(e){return!(!e||e!==this.currentHandlers.leave||"mouseleave"!==this.getEventName()||!this.hovered.has(e.oid)||(this.hovered.delete(e.oid),0))}},{key:"isHoverHandler",value:function(e){return e===this.currentHandlers.hover}},{key:"isSwipeHandler",value:function(e){return e===this.currentHandlers.swipe}},{key:"isStartHandler",value:function(e){return e===this.currentHandlers.start}},{key:"isEndHandler",value:function(e){return e===this.currentHandlers.end}},{key:"onFocus",value:function(e){return this.currentHandlers.justFocused===e}},{key:"onBlur",value:function(e){return this.currentHandlers.blur===e}},{key:"hasFocus",value:function(e){return this.currentHandlers.focus===e}},{key:"isScrollLeftHandler",value:function(e){return this.currentHandlers.scrollLeft===e}},{key:"isScrollTopHandler",value:function(e){return this.currentHandlers.scrollTop===e}},{key:"isScrollLeftEndHandler",value:function(e){return this.currentHandlers.scrollLeft===e&&"scrollleftend"===this.currentEventType}},{key:"isScrollTopEndHandler",value:function(e){return this.currentHandlers.scrollTop===e&&"scrolltopend"===this.currentEventType}},{key:"isScrolling",value:function(){return this.scrollEndTimeStamp.x>0||this.scrollEndTimeStamp.y>0}},{key:"isWindowScrolling",value:function(){return this.windowScrollEndTimer>0}},{key:"isPinchHandler",value:function(e){return this.currentHandlers.pinch===e}},{key:"isCurrentSource",value:function(e){return this.currentTouch.source===e}},{key:"isFormHandler",value:function(e){var t,r,n=this.currentOriginalEvent,i=null===(t=e.$dom)||void 0===t?void 0:t.element,a=null==n?void 0:n.target;return!!(i&&a&&(a===i||null!==(r=i.contains)&&void 0!==r&&r.call(i,a)))}},{key:"getOrientation",value:function(){return this.currentTouch.orientation}},{key:"countTouches",value:function(e){var t,r;return(null===(t=e.touches)||void 0===t?void 0:t.length)||(null===(r=e.originalEvent)||void 0===r||null===(r=r.touches)||void 0===r?void 0:r.length)}},{key:"getTouch",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(null===(t=e.touches)||void 0===t?void 0:t[n])||(null===(r=e.originalEvent)||void 0===r||null===(r=r.touches)||void 0===r?void 0:r[n])||e,a=o.d.isDefined(i.clientX)?i.clientX:i.pageX||0,l=o.d.isDefined(i.clientY)?i.clientY:i.pageY||0;return{x:a,y:l,originalX:a,originalY:l,target:i.target,timeStamp:o.d.now()}}},{key:"move",value:function(e){if(1===this.touchCount){if(this.start0.y=this.end0?this.end0.y:this.start0.y,this.start0.x=this.end0?this.end0.x:this.start0.x,this.end0=this.getTouch(e),o.d.isDefined(this.end0)){var t=o.d.distance(this.start0.originalX,this.start0.originalY,this.end0.x,this.end0.y);this.maxPointerMoveDistance=Math.max(this.maxPointerMoveDistance,t);var r=this.start0.x-this.end0.x,n=this.start0.y-this.end0.y;this.setDeltaXDeltaY(r,n,"touch")}}else if(this.touchCount>=2){this.end0=this.getTouch(e),this.end1=this.getTouch(e,1);var i=o.d.distance(this.start0.x,this.start0.y,this.start1.x,this.start1.y),a=o.d.distance(this.end0.x,this.end0.y,this.end1.x,this.end1.y)-i;this.currentTouch.pinchDelta=a>0?.3:a<0?-.3:0}}},{key:"end",value:function(){if(this.touchCount<=1&&this.start0){var e,t=0,r=0,n=0;o.d.isDefined(this.end0)&&(t=this.start0.originalX-this.end0.x,r=this.start0.originalY-this.end0.y,n=o.d.now()-this.start0.timeStamp<250?o.d.now()-this.start0.timeStamp:0),"horizontal"===this.currentTouch.orientation&&Math.abs(t)>0&&n>0?(e=o.d.momentum(0,t,n),this.scrollEndTimeStamp.x=this.end0.timeStamp+e.duration,this.scrollEndTimeStamp.x-o.d.now()>0&&(this.currentTouch.deltaX=e.distance,this.currentTouch.manualMomentumFlag=!0)):"vertical"===this.currentTouch.orientation&&Math.abs(r)>0&&n>0&&(e=o.d.momentum(0,r,n),this.scrollEndTimeStamp.y=this.end0.timeStamp+e.duration,this.scrollEndTimeStamp.y-o.d.now()>0&&(this.currentTouch.deltaY=e.distance,this.currentTouch.manualMomentumFlag=!0))}}},{key:"setDeltaXDeltaY",value:function(e,t,r){var n=Math.abs(e)-Math.abs(t);n>=1?("none"===this.currentTouch.orientation||"vertical"===this.currentTouch.orientation&&n>=2||"horizontal"===this.currentTouch.orientation)&&(this.currentTouch.orientation="horizontal"):("none"===this.currentTouch.orientation||"horizontal"===this.currentTouch.orientation&&n<=-2||"vertical"===this.currentTouch.orientation)&&(this.currentTouch.orientation="vertical");var i=o.d.now(),a="touch"===r?0:500;"horizontal"===this.currentTouch.orientation?(this.currentTouch.dir=e<0?"left":e>0?"right":this.currentTouch.dir,this.scrollEndTimeStamp.x=i+a,this.removeScrollEndEvents("x")):(this.currentTouch.dir=t<0?"up":t>0?"down":this.currentTouch.dir,this.scrollEndTimeStamp.y=i+a,this.removeScrollEndEvents("y")),this.currentTouch.source=r,this.currentTouch.prevDeltaX+=e,this.currentTouch.prevDeltaY+=t,this.currentTouch.deltaX=this.currentTouch.prevDeltaX,this.currentTouch.deltaY=this.currentTouch.prevDeltaY,a&&(this.scrollEndTimeStamp.x>0||this.scrollEndTimeStamp.y>0)&&pt().schedule(a,"scroll-end-check")}},{key:"wheel",value:function(e){var t=0,r=0;this.currentTouch.pinchDelta=0,this.start0=this.getTouch(e),e.ctrlKey&&"deltaY"in e?this.currentTouch.pinchDelta=-e.deltaY/10:"deltaX"in e?(t=e.deltaX,r=e.deltaY):"wheelDeltaX"in e?(t=-e.wheelDeltaX/120,r=-e.wheelDeltaY/120):"wheelDelta"in e?t=-e.wheelDelta/120:"detail"in e&&(t=e.detail/3),this.setDeltaXDeltaY(t,r,"wheel")}}],r&&v(t.prototype,r),i&&v(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,i}();g(y,"MAX_EVENT_QUEUE_SIZE",10),g(y,"MAX_EVENT_TYPE_CAPACITY",2),g(y,"CLICK_MOVE_THRESHOLD",10);var m=r(333),b=r(791),T=["url","cacheId"];function w(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=x(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function k(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return M(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){D(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function D(e,t,r){return(t=O(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O(n.key),n)}}function O(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}var A=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cacheMap={},this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.targetPageKeyMap=new WeakMap,this.fetchSeq=0,this.runtimeEpoch=0},t=[{key:"clear",value:function(){this.runtimeEpoch++,this.fetchingAPIMap={},this.fetchingImageMap={}}},{key:"clearAll",value:function(){this.runtimeEpoch++,this.cacheMap={},this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.targetPageKeyMap=new WeakMap,this.fetchSeq=0}},{key:"setTargetPageKey",value:function(e,t,r){var n=this.targetPageKeyMap.get(e);n||(n=new Map,this.targetPageKeyMap.set(e,n)),n.set(t,r)}},{key:"getTargetPageKey",value:function(e,t){var r,n;return null!==(r=null===(n=this.targetPageKeyMap.get(e))||void 0===n?void 0:n.get(t))&&void 0!==r?r:document.URL}},{key:"fetchCommon",value:function(e,t,r,n,i,a){m.g.markFetchAction(r);var l=document.URL,s=r.key;return this.setTargetPageKey(r,s,l),this.isFetched(t)?n[e]||(n[e]={fetchId:e,cacheId:t,request:i,startTime:o.d.now(),epoch:this.runtimeEpoch,targets:[{tmodel:r,targetName:s}],fetchMap:n}):n[e]||(n[e]={fetchId:e,cacheId:t,request:i,startTime:o.d.now(),epoch:this.runtimeEpoch,targets:[{tmodel:r,targetName:s}],fetchMap:n},a(n[e])),this.addToTModelKeyMap(r,s,e,t,n),e}},{key:"fetch",value:function(e,t,r,n){var i=this;if(!t||"object"!==P(t)||Array.isArray(t))(Array.isArray(t)?t:[t]).forEach((function(t){i.fetchOne(e,t,r,n)}));else{var a=t.url,o=t.cacheId,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,T);this.fetchOne(e,a,l,null!=o?o:n)}}},{key:"fetchOne",value:function(e,t,r,n){var i=this,a=this.getFetchKey(e,t,r),o={type:"api",url:t,query:b.s.encodeValue(r)};this.fetchCommon(a,n,e,this.fetchingAPIMap,o,(function(e){return i.ajaxAPI(t,r,e)}))}},{key:"fetchImage",value:function(e,t,r){var n=this;(Array.isArray(t)?t:[t]).forEach((function(t){var i=n.getFetchKey(e,t),a={type:"image",src:t};n.fetchCommon(i,r,e,n.fetchingImageMap,a,(function(e){return n.loadImage(t,e)}))}))}},{key:"getFetchKey",value:function(e,t,r){var n=r?"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key),"_").concat(JSON.stringify(r)):"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key));return"".concat(n,"_").concat(++this.fetchSeq)}},{key:"getTModelKey",value:function(e,t){var r=this.getTargetPageKey(e,t);return"".concat(r,"_").concat(e.oid,"_").concat(t)}},{key:"createTModelEntry",value:function(e,t){return{pageKey:this.getTargetPageKey(e,t),oid:e.oid,targetName:t,fetchMap:{},entryCount:0,resultCount:0,errorCount:0,activeIndex:0,accessIndex:0}}},{key:"addToTModelKeyMap",value:function(e,t,r,n,i){var a=this.getTModelKey(e,t),l=o.d.getLoadTargetName(t),s=this.isLoadingComplete(e,t),u=this.tmodelKeyMap[a];!s&&u&&Array.isArray(e.val(l))||(u=this.createTModelEntry(e,t),this.tmodelKeyMap[a]=u,e.val(l,[])),u.fetchMap[r]={fetchId:r,order:u.entryCount},u.entryCount++,e.val(l).push(void 0),n&&this.isFetched(n)&&(i[r].startTime=o.d.now(),this.handleSuccess(i[r],this.cacheMap[n].result))}},{key:"getPendingRequestSnapshots",value:function(e){var t=this;return Object.values(e).map((function(e){return{cacheId:e.cacheId,request:b.s.encodeValue(e.request),targets:e.targets.map((function(r){var n,i=r.tmodel,a=r.targetName,o=t.getTModelKey(i,a),l=t.tmodelKeyMap[o],s=null==l||null===(n=l.fetchMap)||void 0===n?void 0:n[e.fetchId];return{oid:i.oid,targetName:a,order:null==s?void 0:s.order}})).filter((function(e){return Number.isFinite(e.order)}))}}))}},{key:"removeFromTModelKeyMap",value:function(e,t){var r=this.getTModelKey(e,t);delete this.tmodelKeyMap[r]}},{key:"isLoading",value:function(e,t){var r=this.getTModelKey(e,t);return this.tmodelKeyMap[r]}},{key:"isLoadingSuccessful",value:function(e,t){var r=this.getTModelKey(e,t);return this.tmodelKeyMap[r]&&this.tmodelKeyMap[r].resultCount===this.tmodelKeyMap[r].entryCount}},{key:"isLoadingComplete",value:function(e,t){var r=this.getTModelKey(e,t);return!!this.tmodelKeyMap[r]&&this.tmodelKeyMap[r].resultCount===this.tmodelKeyMap[r].entryCount&&this.tmodelKeyMap[r].activeIndex===this.tmodelKeyMap[r].entryCount&&this.tmodelKeyMap[r].resultCount===e.getTargetCycles(t)}},{key:"resetLoadingError",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];n&&(n.errorCount=0)}},{key:"nextActiveItem",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];return!!n&&n.activeIndex++}},{key:"isNextLoadingItemSuccessful",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];if(!n)return!1;var i=o.d.getLoadTargetName(t),a=e.val(i);return Array.isArray(a)&&o.d.isDefined(a[n.activeIndex])&&o.d.isDefined(a[n.accessIndex])}},{key:"getLoadingItemValue",value:function(e,t,r){var n=this.getTModelKey(e,t),i=this.tmodelKeyMap[n];if(i&&!(i.accessIndex>=i.resultCount)){var a,l=o.d.getLoadTargetName(t),s=e.val(l);return s&&(null!=r&&r.endsWith("$$")?(a=s.slice(i.accessIndex,i.resultCount),i.accessIndex+=a.length):o.d.isDefined(s[i.accessIndex])&&(a=s[i.accessIndex],i.accessIndex=Math.min(i.accessIndex+1,i.entryCount))),a}}},{key:"isFetched",value:function(e){var t,r;return null!==(t=null===(r=this.cacheMap[e])||void 0===r?void 0:r.success)&&void 0!==t&&t}},{key:"getFetchingPeriod",value:function(e){return this.fetchingAPIMap[e]?o.d.now()-this.fetchingAPIMap[e].startTime:void 0}},{key:"fetchCache",value:function(e){return this.cacheMap[e]}},{key:"calculateTargetStatus",value:function(e,t){var r=e.getTargetCycle(t),n=e.getTargetCycles(t);return e.isTargetInLoop(t)||r<n-1?"active":this.isLoadingSuccessful(e,t)?"done":"fetching"}},{key:"handleSuccess",value:function(e,t){var r=this;if(e.epoch===this.runtimeEpoch){var n=o.d.now(),i=e.fetchId,a=e.cacheId,l=e.startTime,s=e.targets,u=e.fetchMap,c={fetchingPeriod:n-l,success:!0,result:t};s.forEach((function(e){var t=e.tmodel,n=e.targetName,a=r.getTModelKey(t,n),l=r.tmodelKeyMap[a],s=o.d.getLoadTargetName(n);if(l&&l.fetchMap[i]){var u=l.fetchMap[i];r.callOnSuccessHandler(t,n,E(E({},c),{},{order:u.order}));var d=t.val(s);d&&(o.d.isDefined(d[u.order])||l.resultCount++,d[u.order]=c.result),t.val(n,c.result);var h=r.calculateTargetStatus(t,n);t.setTargetStatus(n,h),t.setLastUpdate(n),m.g.shouldActivateNextTarget(t,n)}})),delete u[i],a&&(this.cacheMap[a]=c),pt().schedule(0,"api_success_".concat(i))}}},{key:"handleError",value:function(e,t){var r=this;if(e.epoch===this.runtimeEpoch){var n=o.d.now(),i=e.fetchId,a=e.cacheId,l=e.startTime,s=e.targets,u=e.fetchMap;s.forEach((function(e){var a=e.tmodel,s=e.targetName,u=r.getTModelKey(a,s),c=r.tmodelKeyMap[u],d=o.d.getLoadTargetName(s);if(c&&c.fetchMap[i]){var h=c.fetchMap[i],f={fetchingPeriod:n-l,success:!1,order:h.order,error:t},v=a.val(d);v&&(o.d.isDefined(v[h.order])||c.resultCount++,v[h.order]=f),a.val(s,f),c.errorCount++,r.callOnErrorHandler(a,s);var g=r.calculateTargetStatus(a,s);a.setTargetStatus(s,g),a.setLastUpdate(s),m.g.shouldActivateNextTarget(a,s)}})),delete u[i],a&&delete this.cacheMap[a],pt().schedule(0,"api_error_".concat(i))}}},{key:"callOnSuccessHandler",value:function(e,t,r){var n,i=null===(n=e.targets[t])||void 0===n?void 0:n.onSuccess;i&&("function"==typeof i?(e.setTargetMethodName(t,"onSuccess"),i.call(e,r)):Array.isArray(i)?i.forEach((function(t){return m.g.activateSingleTarget(e,t)})):m.g.activateSingleTarget(e,i))}},{key:"callOnErrorHandler",value:function(e,t){var r,n=null===(r=e.targets[t])||void 0===r?void 0:r.onError;n&&("function"==typeof n?(e.setTargetMethodName(t,"onError"),n.call(e,e.val(t))):Array.isArray(n)?n.forEach((function(t){return m.g.activateSingleTarget(e,t)})):m.g.activateSingleTarget(e,n))}},{key:"ajaxAPI",value:function(e,t,r){var i,a,o,l=this,s={url:e,dataType:"json",type:"GET",success:function(e){return l.handleSuccess(r,e)},error:function(e){return l.handleError(r,e)}};if((u=t)&&"object"===P(u)&&!Array.isArray(u)){for(var u,c=new Set(["data","type","method","requestType","dataType","headers","contentType","timeout","processData","cache","beforeSend","withCredentials","xhrFields"]),d={},h={},f=0,v=Object.entries(t);f<v.length;f++){var g=S(v[f],2),p=g[0],y=g[1];"requestType"===p?d.type=y:c.has(p)?d[p]=y:h[p]=y}var m=E(E(E({},s),d),{},{type:null!==(i=null!==(a=d.method)&&void 0!==a?a:d.type)&&void 0!==i?i:s.type,dataType:null!==(o=d.dataType)&&void 0!==o?o:s.dataType});!("data"in m)&&Object.keys(h).length&&(m.data=h),n.J.ajax(m)}else n.J.ajax(E(E({},s),{},{data:t}))}},{key:"loadImage",value:function(e,t){var r=this,n=new Image;n.src=e,n.onload=function(){var e={width:n.width,height:n.height,src:n.src};r.handleSuccess(t,e)},n.onerror=function(){r.handleError(t,"not found")}}},{key:"createRuntimeSnapshot",value:function(){return{cacheMap:b.s.encodeValue(this.cacheMap),entries:Object.values(this.tmodelKeyMap).map((function(e){return{pageKey:e.pageKey,oid:e.oid,targetName:e.targetName,entryCount:e.entryCount,resultCount:e.resultCount,errorCount:e.errorCount,activeIndex:e.activeIndex,accessIndex:e.accessIndex}})),pendingRequests:[].concat(k(this.getPendingRequestSnapshots(this.fetchingAPIMap)),k(this.getPendingRequestSnapshots(this.fetchingImageMap)))}}},{key:"restorePendingRequest",value:function(e,t){var r,n=b.s.decodeValue(e.request,t),i=[],a=w(e.targets||[]);try{for(a.s();!(r=a.n()).done;){var l=r.value,s=t[l.oid];if(s){var u=this.getTModelKey(s,l.targetName);this.tmodelKeyMap[u]&&i.push({tmodel:s,targetName:l.targetName,order:l.order})}}}catch(e){a.e(e)}finally{a.f()}if(i.length){var c="restored_".concat(++this.fetchSeq),d="image"===n.type?this.fetchingImageMap:this.fetchingAPIMap,h={fetchId:c,cacheId:e.cacheId,request:n,startTime:o.d.now(),epoch:this.runtimeEpoch,targets:i.map((function(e){return{tmodel:e.tmodel,targetName:e.targetName}})),fetchMap:d};d[c]=h;for(var f=0,v=i;f<v.length;f++){var g=v[f],p=g.tmodel,y=g.targetName,m=g.order,T=this.getTModelKey(p,y);this.tmodelKeyMap[T].fetchMap[c]={fetchId:c,order:m}}e.cacheId&&this.isFetched(e.cacheId)?this.handleSuccess(h,this.cacheMap[e.cacheId].result):"image"===n.type?this.loadImage(n.src,h):this.ajaxAPI(n.url,n.query,h)}}},{key:"restoreRuntimeSnapshot",value:function(e,t){this.clear(),this.cacheMap=b.s.decodeValue((null==e?void 0:e.cacheMap)||{},t),this.tmodelKeyMap={},this.targetPageKeyMap=new WeakMap;var r,n=w((null==e?void 0:e.entries)||[]);try{for(n.s();!(r=n.n()).done;){var i=r.value,a=t[i.oid];if(a){this.setTargetPageKey(a,i.targetName,i.pageKey);var o=this.getTModelKey(a,i.targetName);this.tmodelKeyMap[o]={pageKey:i.pageKey,oid:i.oid,targetName:i.targetName,fetchMap:{},entryCount:i.entryCount,resultCount:i.resultCount,errorCount:i.errorCount,activeIndex:i.activeIndex,accessIndex:i.accessIndex}}}}catch(e){n.e(e)}finally{n.f()}var l,s=w((null==e?void 0:e.pendingRequests)||[]);try{for(s.s();!(l=s.n()).done;){var u=l.value;this.restorePendingRequest(u,t)}}catch(e){s.e(e)}finally{s.f()}}}],t&&L(e.prototype,t),r&&L(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),j=r(714),_=r(249),I=r(161);function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||B(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=B(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function B(e,t){if(e){if("string"==typeof e)return H(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?H(e,t):void 0}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function W(e,t,r){return(t=X(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(){K=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:C(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",p={};function y(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=y.prototype=Object.create(T);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==V(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function C(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=E(l,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(V(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},x(M.prototype),u(M.prototype,l,(function(){return this})),t.AsyncIterator=M,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new M(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function $(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function Y(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){$(a,n,i,o,l,"next",e)}function l(e){$(a,n,i,o,l,"throw",e)}o(void 0)}))}}function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,X(n.key),n)}}function X(e){var t=function(e,t){if("object"!=V(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==V(t)?t:t+""}var G=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hasLocationList=[],this.hasLocationMap={},this.visibleChildrenLengthMap={},this.updatedContainerMap={},this.locationListStats=[],this.domIslandSet=new Set,this.activatedList=[],this.activatedMap={},this.calcBusy=!1,this.calcQueued=!1,this.calcEpoch=0},t=[{key:"clear",value:function(){this.visibleChildrenLengthMap={},this.updatedContainerMap={},this.activatedList=[],this.activatedMap={},this.domIslandSet.clear(),this.calcBusy=!1,this.calcQueued=!1}},{key:"calculateActivated",value:function(){var e=0,t=this.activatedList;for(this.activatedList=[],this.activatedMap={};e<t.length;){var r=t[e++],n=r.activatedTargets.slice(0);r.activatedTargets.length=0,vt().applyTargetValues(r,n),r.updatingTargetList.length>0&&vt().setActualValues(r,r.updatingTargetList),this.hasLocationMap[r.oid]||this.addToLocationList(r)}}},{key:"calculateAll",value:(i=Y(K().mark((function e(){var t,r,n,i,a,l=arguments;return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:8,r=l.length>1&&void 0!==l[1]&&l[1],n=this.calcEpoch,!this.calcBusy){e.next=6;break}return this.calcQueued=!0,e.abrupt("return");case 6:return this.calcBusy=!0,r||(this.hasLocationList.length=0,this.hasLocationMap={},this.locationListStats=[]),i=[{container:lt(),stage:"init",children:[],viewport:void 0,index:0}],a={budgetMs:t,sliceStart:o.d.now(),calcEpoch:n},e.next=12,this.processStack(i,a);case 12:if(a.calcEpoch===this.calcEpoch){e.next=14;break}return e.abrupt("return");case 14:if(this.processAfterStack(),this.calcBusy=!1,!this.calcQueued){e.next=19;break}return this.calcQueued=!1,e.abrupt("return",this.calculateAll(t,!0));case 19:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"cancelCurrentCalculation",value:function(){this.calcEpoch++,this.calcBusy=!1,this.calcQueued=!1}},{key:"processStack",value:(n=Y(K().mark((function e(t,r){var n,i,a,l,s,u,c,d=this;return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e){var t,r,n=e.container;n.adjustViewport(),n.calcContentWidthHeight(),null===(t=n.markLayoutComplete)||void 0===t||t.call(n,e.layoutEpoch),d.retryPendingTargets(n),null===(r=n.requestParticleRender)||void 0===r||r.call(n),n.visibilityDirty=!1},i=function(e){var t=e.children[e.index];t&&t.getDirtyLayout()&&t.isComplete()&&t.removeLayoutDirty(t),e.stage="afterChild"},a=function(e){var t=e.container,r=e.children,n=e.viewport,i=r[e.index];i&&(i.useContentHeight()&&(i.actualValues.height!==i.getContentHeight()&&(i.actualValues.height=i.getContentHeight(),i.markLayoutDirty("contentWidthHeight")),i.addToStyleTargetList("height")),i.useContentWidth()&&(i.actualValues.width!==i.getContentWidth()&&(i.actualValues.width=i.getContentWidth(),i.markLayoutDirty("contentWidthHeight")),i.addToStyleTargetList("width")),i.isInFlow()&&(o.d.isNumber(i.val("appendNewLine"))?n.appendNewLine():n.nextLocation(),t.calcContentWidthHeight()),(i.hasEventDirty()||st().getEventType()||st().hasDelta())&&(d.checkExternalEvents(i),i.hasEventDirty()&&(i.processedEventEpoch=i.eventDirtyEpoch))),e.index++,e.index<e.children.length&&(e.stage="child")},l=function(e){var r,n=e.container,i=e.children,a=e.viewport,o=i[e.index];if(o){if(o.isDomIsland()&&o.originWindowEpoch!==st().getWindowEpoch()&&o.hasDom()&&(o.calcAbsolutePositionFromDom(),o.originWindowEpoch=st().getWindowEpoch()),a.setCurrentChild(o),o.isLightweightChild)return d.calcNextLightweightLocation(o,n,a),void e.index++;if(!(o.getDirtyLayout()||o.visibilityDirty||n.visibilityDirty||o.hasEventDirty()||o.currentStatus||0!==o.activeTargetList.length)){var l=o.absX,s=o.absY;d.calcNextLocation(o,n,a);var u=o.absX!==l||o.absY!==s,c=o.visibilityDirty||o.hasChildren()&&o.isVisible()&&u;return o.getDirtyLayout()&&(d.calcQueued=!0),e.index++,void(c&&o.hasChildren()&&(o.visibilityDirty=!0,t.push({container:o,stage:"init",children:[],viewport:void 0,index:0})))}o.isDomIsland()&&d.domIslandSet.add(o),a.setLocation(),a.isOverflow()&&(a.overflow(),a.setLocation(),o.markLayoutDirty("overflow"));var h=Math.floor(o.actualValues.x),f=Math.floor(o.actualValues.y);o.isIncluded()&&d.calculateTargets(o),o.isIncluded()&&o.targets.onVisibleChildrenChange&&!d.visibleChildrenLengthMap[o.oid]&&(d.visibleChildrenLengthMap[o.oid]={tmodel:o,visibleCount:o.visibleChildren.length}),d.addToLocationList(o),_.a.isXDefined(o)||(o.actualValues.x=o.x),_.a.isYDefined(o)||(o.actualValues.y=o.y),d.catchupNoDomLayoutTargets(o),o.isDomIsland()||o.calcAbsolutePosition(o.getX(),o.getY()),o.excludeDefaultStyling()||d.fixLocation(o,h,f);var v,g,p,y,m=o.isVisible();d.calculateVisibility(o),n.visibilityDirty&&o.hasChildren()&&(m||o.isVisible())&&(o.visibilityDirty=!0),(null===(r=o.getDirtyLayout())||void 0===r?void 0:r.count)>0?d.locationListStats.push("".concat(o.oid,"|").concat(null===(v=o.getDirtyLayout())||void 0===v?void 0:v.count,"|").concat(null===(g=o.getDirtyLayout())||void 0===g?void 0:g.lastKey)):d.locationListStats.push("".concat(o.oid,"|").concat(null!==(p=null===(y=o.getDirtyLayout())||void 0===y?void 0:y.count)&&void 0!==p?p:0)),e.stage="resetDirtyLayout",o.hasChildren()&&o.shouldCalculateChildren()&&t.push({container:o,stage:"init",children:[],viewport:void 0,index:0})}else e.index++};case 4:if(!t.length){e.next=25;break}if(r.calcEpoch===this.calcEpoch){e.next=7;break}return e.abrupt("return");case 7:if(!(o.d.now()-r.sliceStart>r.budgetMs)){e.next=14;break}return e.next=10,new Promise(requestAnimationFrame);case 10:if(r.calcEpoch===this.calcEpoch){e.next=12;break}return e.abrupt("return");case 12:return r.sliceStart=o.d.now(),e.abrupt("continue",4);case 14:if("init"===(s=t[t.length-1]).stage&&(u=s.container,s.layoutEpoch=u.layoutEpoch,c=this.calcChildren(u),u.childrenUpdateFlag&&(u.childrenUpdateFlag=!1,u.targets.onChildrenChange&&(this.updatedContainerMap[u.oid]=u)),u.shouldBeBracketed()&&(u.backupDirtyLayout=q({},u.dirtyLayout)),u.visibleChildren.length=0,s.children=c.slice(0),s.index=0,s.viewport=u.createViewport(),s.stage="child"),"resetDirtyLayout"===s.stage&&i(s),"afterChild"===s.stage&&a(s),!(s.index>=s.children.length)){e.next=22;break}return n(s),t.pop(),e.abrupt("continue",4);case 22:"child"===s.stage&&l(s),e.next=4;break;case 25:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"processAfterStack",value:function(){for(var e in this.visibleChildrenLengthMap){var t=this.visibleChildrenLengthMap[e],r=t.tmodel,n=t.visibleCount;!r.isVisible()||n===r.visibleChildren.length&&0!==r.visibleChildren.length||(this.runEventTargets(r,["onVisibleChildrenChange"]),this.visibleChildrenLengthMap[e].visibleCount=r.visibleChildren.length)}for(var i in this.updatedContainerMap){var a=this.updatedContainerMap[i];a.isVisible()&&this.runEventTargets(a,["onChildrenChange"]),delete this.updatedContainerMap[i]}}},{key:"calcChildren",value:function(e){return e.getChildren(),e.shouldBeBracketed()?j.M.generate(e):(e.lastChildrenUpdate.additions.length=0,e.lastChildrenUpdate.deletions.length=0,j.M.bracketMap[e.oid]&&(delete j.M.bracketMap[e.oid],delete j.M.pageMap[e.oid]),e.getChildren())}},{key:"calcNextLocation",value:function(e,t,r){var n;if(e.isLightweightChild)this.calcNextLightweightLocation(e,t,r);else{var i=e.x,a=e.y;r.setLocation();var l=!1;r.isOverflow()&&(l=!0,r.overflow(),r.setLocation()),!l||e.x===i&&e.y===a||e.markLayoutDirty("overflow"),e.isIncluded()&&e.targets.onVisibleChildrenChange&&!this.visibleChildrenLengthMap[e.oid]&&(this.visibleChildrenLengthMap[e.oid]={tmodel:e,visibleCount:e.visibleChildren.length}),_.a.isXDefined(e)||(e.actualValues.x=e.x),_.a.isYDefined(e)||(e.actualValues.y=e.y),this.catchupNoDomLayoutTargets(e),e.isDomIsland()||e.calcAbsolutePosition(e.getX(),e.getY()),e.excludeDefaultStyling()||(this.addToTransformTargetList(e,"x"),this.addToTransformTargetList(e,"y")),((null===(n=e.styleTargetMap)||void 0===n?void 0:n.size)>0||e.updatingTargetList.length>0)&&this.addToLocationList(e),this.calculateVisibility(e);var s=ft().visibleOidMap[e.oid];(e.isVisible()&&e.isIncluded()?s!==e:void 0!==s)&&this.addToLocationList(e),e.isInFlow()&&(o.d.isNumber(e.val("appendNewLine"))?r.appendNewLine():r.nextLocation(),t.calcContentWidthHeight())}}},{key:"calcNextLightweightLocation",value:function(e,t,r){r.setLocation(),r.isOverflow()&&(r.overflow(),r.setLocation()),_.a.isXDefined(e)||(e.actualValues.x=e.x),_.a.isYDefined(e)||(e.actualValues.y=e.y),this.catchupNoDomLayoutTargets(e),e.calcAbsolutePosition(e.getX(),e.getY());var n=e.calcVisibility();e.actualValues.isVisible=n,n&&e.isInFlow()&&t.visibleChildren.push(e),o.d.isNumber(e.val("appendNewLine"))?r.appendNewLine():r.nextLocation(),t.calcContentWidthHeight()}},{key:"calculateVisibility",value:function(e){var t,r,n,i=e.isVisible(),a=null!==(t=null===(r=e.visibilityStatus)||void 0===r?void 0:r.isVisible)&&void 0!==t?t:void 0;if(e.visibilityStatus||(e.visibilityStatus={}),e.visibilityStatus.lastIsVisible=e.visibilityStatus.isVisible,o.d.isDefined(e.targets.isVisible))n="function"==typeof e.targets.isVisible.value?e.targets.isVisible.value.call(e):!!e.targets.isVisible,e.actualValues.isVisible=n,e.isNowVisible=!i&&n,e.isNowInvisible=(i||void 0===i)&&!n;else{var l=e.calcVisibility();n=l,e.isNowVisible=!i&&n||!a&&l,e.isNowInvisible=(i||void 0===i)&&!n||a&&!l,e.actualValues.isVisible=n}(e.isNowVisible||e.isNowInvisible)&&(e.markLayoutDirty("isNowVisible"),this.addToLocationList(e)),e.isNowVisible&&e.hasChildren()&&(e.visibilityDirty=!0),I.O.pauseResumeSchedule(e),"BI"!==e.type&&e.isVisible()&&e.isInFlow()&&e.getParent()&&e.getParent().visibleChildren.push(e)}},{key:"calculateTargets",value:function(e){this.checkInternalEvents(e);for(var t=0;e.activatedTargets.length&&t++<50;){var r=e.activatedTargets.slice(0);e.activatedTargets.length=0;var n,i=F(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;vt().applyTargetValue(e,a)}}catch(e){i.e(e)}finally{i.f()}}I.O.pauseResumeSchedule(e),e.activateChangedPassiveTargets(),vt().applyTargetValues(e),e.updatingTargetList.length>0&&vt().setActualValues(e,e.updatingTargetList),_.a.shouldMeasureWidthFromDom(e)&&(e.hasDom()?_.a.setWidthFromDom(e):e.markLayoutDirty("width")),_.a.shouldMeasureHeightFromDom(e)&&(e.hasDom()?_.a.setHeightFromDom(e):e.markLayoutDirty("height")),(e.isNowVisible||e.hasDomNow)&&this.retryPendingTargets(e),e.isNowVisible=!1,e.hasDomNow=!1,e.targetExecutionCount++}},{key:"retryPendingTargets",value:function(e){var t=e.pendingTargets;if(null!=t&&t.size)for(var r=0,n=R(t);r<n.length;r++){var i,a=n[r];null!==(i=e.pendingTargets)&&void 0!==i&&i.has(a)&&(m.g.cleanupTarget(e,a),m.g.shouldActivateNextTarget(e,a))}}},{key:"catchupNoDomLayoutTargets",value:function(e){var t;if(null!==(t=e.noDomUpdatingTargets)&&void 0!==t&&t.size)if(e.isLightweightChild)e.catchupNoDomLayoutTargets();else{var r,n=F(e.noDomUpdatingTargets);try{for(n.s();!(r=n.n()).done;){var i=r.value;l.u.affectsVisibility(i)&&vt().catchupTargetByElapsed(e,i,{fireEnd:!1})}}catch(e){n.e(e)}finally{n.f()}}}},{key:"checkExternalEvents",value:function(e){var t=e.externalEventMap;if((null==t?void 0:t.size)>0){var r,n=[],i=l.u.allEventMap,a=F(t);try{for(a.s();!(r=a.n()).done;){var o=N(r.value,1)[0];i[o](e)&&n.push(e.allTargetMap[o])}}catch(e){a.e(e)}finally{a.f()}this.runEventTargets(e,n)}}},{key:"checkInternalEvents",value:function(e){var t=[],r=l.u.internalEventMap,n=e.internalEventMap;if((null==n?void 0:n.size)>0){var i,a=F(n);try{for(a.s();!(i=a.n()).done;){var o=N(i.value,1)[0];r[o](e)&&t.push(e.allTargetMap[o])}}catch(e){a.e(e)}finally{a.f()}}this.runEventTargets(e,t)}},{key:"runEventTargets",value:function(e,t){t.forEach((function(t){if(e.isTargetEnabled(t)&&!e.isTargetUpdating(t)){e.targetValues[t]&&(e.targetValues[t].status=""),s.j.prepareTarget(e,t),s.j.resolveTargetValue(e,t),s.j.updateTarget(e,e.targetValues[t],t,!1);var r=e.val(t);Array.isArray(r)?r.forEach((function(t){return m.g.activateSingleTarget(e,t)})):"string"==typeof r&&m.g.activateSingleTarget(e,r),m.g.shouldActivateNextTarget(e,t)}}))}},{key:"addToLocationList",value:function(e){this.hasLocationMap[e.oid]||(this.hasLocationList.push(e),this.hasLocationMap[e.oid]=e)}},{key:"addToActivatedList",value:function(e){this.activatedMap[e.oid]||(this.activatedList.push(e),this.activatedMap[e.oid]=e)}},{key:"fixLocation",value:function(e,t,r){if(e.hasValidAnimation()){var n=Math.floor(e.actualValues.x)!==t,i=Math.floor(e.actualValues.y)!==r,a={};if(n&&"updating"!==e.getTargetStatus(e.allTargetMap.x)&&(a.x=e.actualValues.x),i&&"updating"!==e.getTargetStatus(e.allTargetMap.y)&&(a.y=e.actualValues.y),Object.keys(a).length)return void gt().rebaseAutoLayoutTransform(e,a)}this.addToTransformTargetList(e,"x"),this.addToTransformTargetList(e,"y")}},{key:"addToTransformTargetList",value:function(e,t){_.a.getTransformValue(e,t)!==Math.floor(e.tfMap[t])&&e.addToStyleTargetList(t)}},{key:"isActivated",value:function(e){return this.activatedMap[e.oid]}}],t&&z(e.prototype,t),r&&z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n,i}(),Q=r(260);function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function J(){J=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:C(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",p={};function y(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=y.prototype=Object.create(T);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==Z(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function C(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=E(l,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(Z(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},x(M.prototype),u(M.prototype,l,(function(){return this})),t.AsyncIterator=M,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new M(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function ee(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function te(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){ee(a,n,i,o,l,"next",e)}function l(e){ee(a,n,i,o,l,"throw",e)}o(void 0)}))}}function re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ne(n.key),n)}}function ne(e){var t=function(e,t){if("object"!=Z(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z(t)?t:t+""}var ie=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentLink=o.d.getFullLink(document.URL),this.lastCachedLink=void 0,this.initHistory()},t=[{key:"initHistory",value:function(){"scrollRestoration"in history&&(history.scrollRestoration="manual");var e=history.state;e&&(e.link||e.browserUrl)||history.replaceState({link:this.currentLink},"",this.currentLink)}},{key:"initPage",value:function(e){Ye.tRoot.$dom.outerHTML(e),Ye.tRoot.$dom=_.a.getRootDom(),"body"!==Ye.tRoot.$dom.getTagName()&&Ye.tRoot.$dom.attr("data-tj-no-slot","true"),Q.v.initPageDoms(Ye.tRoot.$dom)}},{key:"openLinkFromHistory",value:(l=te(J().mark((function e(t){var r;return J().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.link||t.browserUrl){e.next=3;break}return e.abrupt("return");case 3:return t.browserUrl&&history.replaceState({link:r},"",r),e.next=6,this.openLink(r,!1);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"onPageClose",value:function(){Ye.resizeLastUpdate=o.d.now(),st().resizeRoot(),Ye.manager.getAvailableDoms().forEach((function(e){yt().runEventTargets(e,["onPageClose"])}))}},{key:"openLink",value:(a=te(J().mark((function e(t){var r,n=arguments;return J().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!(n.length>1&&void 0!==n[1])||n[1],t=o.d.getFullLink(t),e.next=4,this.storePage(this.currentLink);case 4:if(this.lastCachedLink=this.currentLink,r&&history.pushState({link:t},"",t),this.currentLink=t,!Ye.stateManager.has(this.getStateKey(t))){e.next=11;break}return e.next=10,this.restorePage(t);case 10:return e.abrupt("return");case 11:return e.next=13,Ye.stop();case 13:return e.next=15,Ye.reset();case 15:return Ye.tRoot.$dom.innerHTML(""),at.oids={},at.tmodelIdMap={},Ye.tRoot=Ye.tRootFactory(),e.next=21,Ye.start();case 21:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"back",value:function(){return history.back()}},{key:"getStateKey",value:function(e){return"page:".concat(o.d.getFullLink(e))}},{key:"storePage",value:(i=te(J().mark((function e(t){var r,n;return J().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.d.getFullLink(t),this.onPageClose(),r=this.getStateKey(t),e.next=5,Ye.stateManager.store(r);case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"restorePage",value:(n=te(J().mark((function e(t){var r;return J().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.getStateKey(t),!Ye.stateManager.has(r)){e.next=3;break}return e.abrupt("return",Ye.stateManager.restore(r));case 3:return e.abrupt("return",!1);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}],t&&re(e.prototype,t),r&&re(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n,i,a,l}(),ae=r(980);function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function le(e){return function(e){if(Array.isArray(e))return de(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ce(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||ce(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ce(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function ce(e,t){if(e){if("string"==typeof e)return de(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?de(e,t):void 0}}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function he(){he=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:C(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",p={};function y(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=y.prototype=Object.create(T);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==oe(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function C(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=E(l,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(oe(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},x(M.prototype),u(M.prototype,l,(function(){return this})),t.AsyncIterator=M,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new M(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ge(e,t,r){return(t=be(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pe(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function ye(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){pe(a,n,i,o,l,"next",e)}function l(e){pe(a,n,i,o,l,"throw",e)}o(void 0)}))}}function me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,be(n.key),n)}}function be(e){var t=function(e,t){if("object"!=oe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oe(t)?t:t+""}var Te=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stateCheckpoints={}},t=[{key:"store",value:(s=ye(he().mark((function e(){var t,r,i,a,l=arguments;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:"default",this.syncAnimationsForCheckpoint(),r=pt().getSnapshot(),i=_.a.getPageDom(),e.t0=t,e.t1=o.d.now(),e.t2=i.innerHTML(),e.t3=_.a.captureDomState(i),e.t4=ve({},at.oids),e.t5=Ye.tRoot.createRuntimeSnapshot(),e.t6=ct().createRuntimeSnapshot(),e.t7=Object.keys(Ye.manager.visibleOidMap),e.t8=n.J.getWindowScrollLeft()||0,e.t9=n.J.getWindowScrollTop()||0,e.t10=r,e.next=17,this.captureGpuVisuals();case 17:return e.t11=e.sent,a={key:e.t0,capturedAt:e.t1,html:e.t2,domState:e.t3,oids:e.t4,rootSnapshot:e.t5,loaderSnapshot:e.t6,visibleOids:e.t7,scrollLeft:e.t8,scrollTop:e.t9,runSnapshot:e.t10,gpuVisuals:e.t11},this.releaseGpuVisuals(this.stateCheckpoints[t]),this.stateCheckpoints[t]=a,e.abrupt("return",a);case 22:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"restore",value:(l=ye(he().mark((function e(){var t,r,n,a,l,s,u,c,d,h,f,v=arguments;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=v.length>0&&void 0!==v[0]?v[0]:"default",m.g.currentTargetName=void 0,m.g.currentTModel=void 0,r=this.stateCheckpoints[t]){e.next=6;break}return e.abrupt("return",!1);case 6:return ct().clear(),e.next=9,Ye.stop();case 9:return yt().cancelCurrentCalculation(),e.next=12,Ye.reset();case 12:return at.oids={},at.tmodelIdMap={},n=o.d.now()-r.capturedAt,a=b.s.fromRuntimeSnapshot(r.rootSnapshot,i.c,{timeOffset:n}),l=a.root,s=a.tmodelIdMap,u=a.models,Ye.tRoot=l,at.oids=ve({},r.oids),at.tmodelIdMap=s,ct().restoreRuntimeSnapshot(r.loaderSnapshot,s),(c=_.a.getPageDom()).innerHTML(r.html),_.a.restoreMountedDom(c,r.domState),this.showGpuRestoreVisuals(r.gpuVisuals),Ye.tRoot.$dom=_.a.getRootDom(),d=r.visibleOids.map((function(e){return s[e]})).filter(Boolean),h=this.connectRestoredDoms(d,u),Ye.manager.activatePendingTargetsAfterDom(h,{restoredDoneTargets:!0}),Ye.tRoot.markLayoutDirty("checkpointRestore"),e.next=31,Ye.start();case 31:return f=_.a.getPageDom(),_.a.restoreMountedDom(f,r.domState),e.next=35,_.a.restoreScroll(r);case 35:return e.next=37,_.a.restoreDomInteractionState(f,r.domState);case 37:return e.next=39,Promise.all(u.map((function(e){var t;return null===(t=e.restoreRuntimeDomDerivedState)||void 0===t?void 0:t.call(e)})));case 39:return this.hideGpuRestoreVisuals(),pt().restoreSnapshot(r.runSnapshot),e.abrupt("return",!0);case 42:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"syncAnimationsForCheckpoint",value:function(){var e,t=new Map,r=ue(gt().recordMap.values());try{for(r.s();!(e=r.n()).done;){var n=e.value;if("canceled"!==n.status&&"detached"!==n.status){ae.T.updateTModelFromRecord(n);var i=t.get(n.tmodel);i||(i=new Set,t.set(n.tmodel,i)),i.add(n.originalKey)}}}catch(e){r.e(e)}finally{r.f()}var a,o=ue(t);try{for(o.s();!(a=o.n()).done;){var l=se(a.value,2),s=l[0],u=l[1];_.a.commitAnimatedStyles(s,u)}}catch(e){o.e(e)}finally{o.f()}}},{key:"normalizeRestoredModels",value:function(e){var t,r=o.d.uniqueTModels(e),n=ue(r);try{for(n.s();!(t=n.n()).done;){var i=t.value,a=new Set(i.getAnimatingTargets());a.size&&i.hasDom()&&_.a.commitAnimatedStyles(i,a),i.viewport=void 0,i.visibilityStatus=void 0,i.currentStatus="new",i.originWindowEpoch=-1,i.domHeightTimestamp=0,i.domWidthTimestamp=0,i.dirtyLayout=!1,i.markLayoutDirty("stateRestore")}}catch(e){n.e(e)}finally{n.f()}return m.g.convertAnimatingTargetsToUpdating(r),r}},{key:"connectRestoredDoms",value:function(e,t){var r=Q.v.initCacheDoms(e),n=o.d.uniqueTModels([].concat(le(e),le(r)));this.normalizeRestoredModels(t),Ye.manager.visibleOidMap={};var i,a=ue(n);try{for(a.s();!(i=a.n()).done;){var l=i.value;l.isIncluded()&&l.isVisible()&&(Ye.manager.visibleOidMap[l.oid]=l)}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"getGpuVisualClipRect",value:function(e){for(var t=e.getBoundingClientRect(),r=Math.max(0,t.left),n=Math.max(0,t.top),i=Math.min(window.innerWidth,t.right),a=Math.min(window.innerHeight,t.bottom),o=e.parentElement;o;o=o.parentElement){var l=getComputedStyle(o),s=o.getBoundingClientRect(),u=["hidden","clip","auto","scroll"].includes(l.overflowX),c=["hidden","clip","auto","scroll"].includes(l.overflowY);if(u&&(r=Math.max(r,s.left),i=Math.min(i,s.right)),c&&(n=Math.max(n,s.top),a=Math.min(a,s.bottom)),i<=r||a<=n)return{left:r,top:n,width:0,height:0}}return{left:r,top:n,width:i-r,height:a-n}}},{key:"captureGpuVisuals",value:(a=ye(he().mark((function e(){var t,r,n,i,a,o,l,s,u;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={},r=0,n=Object.values(at.tmodelIdMap);case 2:if(!(r<n.length)){e.next=21;break}if(i=n[r],a=i.particleRenderer,(o=null==a?void 0:a.canvas)&&i.gpuChildrenEnabled){e.next=8;break}return e.abrupt("continue",18);case 8:if(l=o.getBoundingClientRect(),!((s=this.getGpuVisualClipRect(o)).width<=0||s.height<=0)){e.next=12;break}return e.abrupt("continue",18);case 12:return e.next=14,a.captureBitmap();case 14:if(u=e.sent){e.next=17;break}return e.abrupt("continue",18);case 17:t[i.oid]={bitmap:u,left:l.left,top:l.top,width:l.width,height:l.height,clipLeft:s.left,clipTop:s.top,clipWidth:s.width,clipHeight:s.height};case 18:r++,e.next=2;break;case 21:return e.abrupt("return",t);case 22:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"showGpuRestoreVisuals",value:function(e){if(this.hideGpuRestoreVisuals(),Object.keys(e||{}).length){var t=document.createElement("div");t.setAttribute("data-targetjs-gpu-restore-overlay","true"),Object.assign(t.style,{position:"fixed",left:"0px",top:"0px",width:"100vw",height:"100vh",pointerEvents:"none",zIndex:"2147483647"});for(var r=0,n=Object.values(e);r<n.length;r++){var i=n[r];if(!(null==i||!i.bitmap||i.clipWidth<=0||i.clipHeight<=0)){var a=document.createElement("div");Object.assign(a.style,{position:"absolute",left:"".concat(i.clipLeft,"px"),top:"".concat(i.clipTop,"px"),width:"".concat(i.clipWidth,"px"),height:"".concat(i.clipHeight,"px"),overflow:"hidden"});var o=document.createElement("canvas");o.width=i.bitmap.width,o.height=i.bitmap.height,Object.assign(o.style,{position:"absolute",left:"".concat(i.left-i.clipLeft,"px"),top:"".concat(i.top-i.clipTop,"px"),width:"".concat(i.width,"px"),height:"".concat(i.height,"px"),display:"block"}),o.getContext("2d").drawImage(i.bitmap,0,0),a.appendChild(o),t.appendChild(a)}}return document.body.appendChild(t),t}}},{key:"hideGpuRestoreVisuals",value:function(){var e;null===(e=document.querySelector('[data-targetjs-gpu-restore-overlay="true"]'))||void 0===e||e.remove()}},{key:"releaseGpuVisuals",value:function(e){for(var t=0,r=Object.values((null==e?void 0:e.gpuVisuals)||{});t<r.length;t++){var n,i,a,o=r[t];null==o||null===(n=o.bitmap)||void 0===n||null===(i=(a=n).close)||void 0===i||i.call(a)}}},{key:"has",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return Boolean(this.stateCheckpoints[e])}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.stateCheckpoints[e]}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.has(e)?this.restore(e):this.store(e)}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=this.stateCheckpoints[e];return!!t&&(this.releaseGpuVisuals(t),delete this.stateCheckpoints[e],!0)}},{key:"clearAll",value:function(){for(var e=0,t=Object.values(this.stateCheckpoints);e<t.length;e++){var r=t[e];this.releaseGpuVisuals(r)}this.stateCheckpoints={}}}],t&&me(e.prototype,t),r&&me(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,a,l,s}();function we(e){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}function ke(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=xe(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function xe(e,t){if(e){if("string"==typeof e)return Me(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Me(e,t):void 0}}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){De(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function De(e,t,r){return(t=Le(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Le(n.key),n)}}function Le(e){var t=function(e,t){if("object"!=we(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=we(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==we(t)?t:t+""}var Oe=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()},t=[{key:"init",value:function(){this.lists={visible:[],rerender:[],restyle:[],reasyncStyle:[],reattach:[],relocation:[],deletedDom:[],noDom:[],updatingTModels:[],activeTModels:[],noDomVisibilityTModels:[],updatingTargets:[],activeTargets:[]},this.visibleOidMap={},this.preservedDomMap={},this.targetMethodMap={},this.noDomMap={},this.domPolicyMap=new Map,this.deletedTModelRoots=new Set}},{key:"clearFrameLists",value:function(){this.lists.visible.length=0,this.lists.rerender.length=0,this.lists.restyle.length=0,this.lists.reasyncStyle.length=0,this.lists.reattach.length=0,this.lists.relocation.length=0,this.lists.noDom.length=0,this.lists.updatingTModels.length=0,this.lists.activeTModels.length=0,this.lists.noDomVisibilityTModels.length=0,this.lists.updatingTargets.length=0,this.lists.activeTargets.length=0,this.targetMethodMap={},this.noDomMap={}}},{key:"clearAll",value:function(){this.visibleOidMap={},this.preservedDomMap={},this.clearFrameLists(),this.deleteDoms(),this.domPolicyMap.clear()}},{key:"analyze",value:function(){var e=this,t=Ee({},this.visibleOidMap),r=Ee({},this.preservedDomMap);this.clearFrameLists(),this.collectDeletedTModels();var n,i=[],a=Se(yt().hasLocationList);try{var o=function(){var a,o=n.value;if(o.isLightweightChild)return delete t[o.oid],delete r[o.oid],delete e.visibleOidMap[o.oid],delete e.preservedDomMap[o.oid],e.domPolicyMap.delete(o.oid),0;if(t[o.oid]=void 0,r[o.oid]=void 0,!o.exists())return o.hasDom()&&e.addToDeletedDom(o),delete e.visibleOidMap[o.oid],delete e.preservedDomMap[o.oid],0;var s=o.isVisible();!s&&null!==(a=o.noDomUpdatingTargets)&&void 0!==a&&a.size&&ke(o.noDomUpdatingTargets).some((function(e){var t=o.targetValues[e];return l.u.affectsVisibility(e)&&void 0!==(null==t?void 0:t.catchupAt)}))&&e.lists.noDomVisibilityTModels.push(o),s&&o.isIncluded()?(e.visibleOidMap[o.oid]=o,delete e.preservedDomMap[o.oid],e.lists.visible.push(o)):delete e.visibleOidMap[o.oid];var u,c,d=e.shouldPreserveDom(o);if(!s&&d&&o.hasDom()?e.preservedDomMap[o.oid]=o:delete e.preservedDomMap[o.oid],o.hasDom()&&(o.canHaveDom()&&o.isIncluded()&&(!o.canDeleteDom()||s||d)||(e.addToDeletedDom(o),o.getChildren().forEach((function(t){t.isLightweightChild||t.managesOwnScroll()||e.addToRecursiveDeletedDom(t)})))),s||o.isActivated()){var h,f,v=o.state();((null===(h=v.updatingTargetList)||void 0===h?void 0:h.length)>0||o.hasAnimatingTargets())&&(e.lists.updatingTModels.push(o),e.lists.updatingTargets=[].concat(ke(e.lists.updatingTargets),ke(v.updatingTargetList))),(null===(f=v.activeTargetList)||void 0===f?void 0:f.length)>0&&(e.lists.activeTModels.push(o),e.lists.activeTargets=[].concat(ke(e.lists.activeTargets),ke(v.activeTargetList)))}if(!d||s||o.isActivated()||e.needsRestyle(o)&&e.lists.restyle.push(o),s||o.isActivated()){e.needsRerender(o)&&e.lists.rerender.push(o),e.needsRestyle(o)&&e.lists.restyle.push(o),e.needsReasyncStyle(o)&&e.lists.reasyncStyle.push(o),e.needsReattach(o)&&e.lists.reattach.push(o),e.needsRelocation(o)&&e.lists.relocation.push(o);var g=o.state();g.targetMethodMap&&Object.keys(g.targetMethodMap).length>0&&(e.targetMethodMap[o.oid]=Ee({},g.targetMethodMap),g.targetMethodMap={}),o.isActivated()&&i.push(o)}e.shouldCreateDom(o,s)&&!e.noDomMap[o.oid]&&(null!==(u=o.getDomHolder())&&void 0!==u&&u.exists()||e.noDomMap[null===(c=o.getDomParent())||void 0===c?void 0:c.oid]?(e.lists.noDom.push(o),e.noDomMap[o.oid]=!0):o.markLayoutDirty("noDomHolder"))};for(a.s();!(n=a.n()).done;)o()}catch(e){a.e(e)}finally{a.f()}return i.forEach((function(e){return e.deactivate()})),Object.values(Ee(Ee({},t),r)).filter(Boolean).forEach((function(t){var r=t.exists(),n=r&&t.isIncluded();r&&n?!t.hasDom()&&t.canHaveDom()&&(delete e.visibleOidMap[t.oid],delete e.preservedDomMap[t.oid],t.visibilityStatus=void 0,t.markLayoutDirty("noDom")):t.hasDom()?e.addToDeletedDom(t):(delete e.visibleOidMap[t.oid],delete e.preservedDomMap[t.oid],e.domPolicyMap.delete(t.oid))})),this.lists.noDom.length>0?0:this.lists.reattach.length>0?1:this.lists.relocation.length>0?2:this.lists.rerender.length>0?3:this.lists.reasyncStyle.length>0?4:this.lists.deletedDom.length>0?5:this.lists.restyle.length>0?10:-1}},{key:"shouldPreserveDom",value:function(e){if(!e.isIncluded())return!1;if("keep"===this.getDomPolicy(e))return!0;if(!e.isVisible()&&o.d.isDefined(e.targets.isVisible))return!1;for(var t=e.parent;t&&t!==lt();){if(o.d.isDefined(t.targets.canDeleteDom))return!1===t.val("canDeleteDom");if(o.d.isDefined(t.targets.isVisible))return!0===t.val("isVisible");t=t.parent}return!1}},{key:"shouldHaveDom",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.isVisible();return!(!e.canHaveDom()||!e.isIncluded())&&(t||e.requiresDom()||"keep"===this.getDomPolicy(e))}},{key:"shouldCreateDom",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.isVisible();return!e.hasDom()&&this.shouldHaveDom(e,t)}},{key:"getDomPolicy",value:function(e){if(this.domPolicyMap.has(e.oid))return this.domPolicyMap.get(e.oid);for(var t=e;t&&t!==lt();){var r=t.val("dom");if(o.d.isDefined(r))return this.domPolicyMap.set(e.oid,r),r;t=t.parent}return this.domPolicyMap.set(e.oid,"auto"),"auto"}},{key:"isBracketVisible",value:function(e){for(e=e.bracket;e&&"BI"===e.type;){if(!e.isVisible())return!1;e=e.getParent()}return!0}},{key:"addToRecursiveDeletedDom",value:function(e){var t=this;e.isLightweightChild||(delete this.visibleOidMap[e.oid],delete this.preservedDomMap[e.oid],this.lists.deletedDom.includes(e)||(e.hasDom()&&this.lists.deletedDom.push(e),e.getChildren().forEach((function(e){e.isLightweightChild||e.managesOwnScroll()||t.addToRecursiveDeletedDom(e)}))))}},{key:"addToDeletedDom",value:function(e){delete this.visibleOidMap[e.oid],delete this.preservedDomMap[e.oid],this.lists.deletedDom.includes(e)||this.lists.deletedDom.push(e)}},{key:"markTModelDeleted",value:function(e){e&&this.deletedTModelRoots.add(e)}},{key:"collectDeletedTModels",value:function(){var e,t=Se(this.deletedTModelRoots);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.exists()||this.addDeletedTree(r)}}catch(e){t.e(e)}finally{t.f()}this.deletedTModelRoots.clear()}},{key:"addDeletedTree",value:function(e){if(!e.isLightweightChild){delete this.visibleOidMap[e.oid],delete this.preservedDomMap[e.oid],this.domPolicyMap.delete(e.oid),e.hasDom()&&!this.lists.deletedDom.includes(e)&&this.lists.deletedDom.push(e);var t,r=Se(e.getChildren());try{for(r.s();!(t=r.n()).done;){var n=t.value;n.isLightweightChild||this.addDeletedTree(n)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"getVisibles",value:function(){return Object.values(this.visibleOidMap)}},{key:"getAvailableDoms",value:function(){return Object.values(Ee(Ee({},this.preservedDomMap),this.visibleOidMap))}},{key:"needsRelocation",value:function(e){return!(!e.hasDom()||!o.d.isDefined(e.domOrderIndex))}},{key:"needsRerender",value:function(e){var t=e.getHtml();return!(!e.hasDom()||!o.d.isDefined(t)||e.$dom.innerHTML()===String(t)&&e.$dom.textOnly===e.isTextOnly())}},{key:"needsRestyle",value:function(e){var t;return e.hasDom()&&(null===(t=e.styleTargetMap)||void 0===t?void 0:t.size)>0}},{key:"needsReasyncStyle",value:function(e){var t;return e.hasDom()&&(null===(t=e.asyncStyleTargetMap)||void 0===t?void 0:t.size)>0}},{key:"needsReattach",value:function(e){return!(!e.hasDom()||e.reuseDomDefinition())&&(e.hasDomHolderChanged()||e.hasBaseElementChanged())}},{key:"renderTModels",value:function(){var e,t=Se(this.lists.rerender);try{for(t.s();!(e=t.n()).done;){var r,n,i=e.value;i.isTextOnly()?null===(r=i.$dom)||void 0===r||r.text(i.getHtml()):null===(n=i.$dom)||void 0===n||n.html(i.getHtml()),i.setLastUpdate("html"),i.domHeightTimestamp=0,i.domWidthTimestamp=0}}catch(e){t.e(e)}finally{t.f()}}},{key:"reattachTModels",value:function(){var e,t=[],r=Se(this.lists.reattach);try{for(r.s();!(e=r.n()).done;){var n=e.value,i=n.hasBaseElementChanged(),a=n.getDomParent();a&&a.$dom&&(a.$dom.removeElement(n.$dom.element),i&&(_.a.createDom(n),_.a.patchDom(n),_.a.initStyleMaps(n),this.needsRestyle(n)&&this.lists.restyle.push(n),this.needsReasyncStyle(n)&&this.lists.reasyncStyle.push(n),t.push(n)),n.getDomHolder()&&n.getDomHolder().appendTModel$Dom(n))}}catch(e){r.e(e)}finally{r.f()}this.activatePendingTargetsAfterDom(t)}},{key:"relocateTModels",value:function(){this.lists.relocation.sort((function(e,t){return t.domOrderIndex-e.domOrderIndex}));var e,t=Se(this.lists.relocation);try{for(t.s();!(e=t.n()).done;){var r=e.value,n=r.getDomParent();n&&n.$dom&&(n.$dom.relocate(r,r.domOrderIndex),r.domOrderIndex=void 0)}}catch(e){t.e(e)}finally{t.f()}}},{key:"resetTModelDom",value:function(e){e.styleMap={},e.tfMap={},e.actualValues.isVisible=!1,e.hasDomNow=!1,e.$dom=null}},{key:"deleteDoms",value:function(){var e,t=Se(this.lists.deletedDom);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.val("sourceDom")||this.deleteDom(r)}}catch(e){t.e(e)}finally{t.f()}this.lists.deletedDom.length=0}},{key:"deleteDom",value:function(e){e.hasAnimatingTargets()&&ae.T.detachAnimationsOnDeleteDom(e);var t=e.getDomParent();t&&t.$dom&&t.$dom.removeElement(e.$dom.element),this.resetTModelDom(e)}},{key:"fixStyles",value:function(){var e,t=Se(this.lists.restyle);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.hasDom()&&_.a.fixStyle(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"fixAsyncStyles",value:function(){var e,t=Se(this.lists.reasyncStyle);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.hasDom()&&_.a.fixAsyncStyle(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"activatePendingTargetsAfterDom",value:function(e){var t,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).restoredDoneTargets,n=void 0===r||r,i=Se(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.hasDom()){if(a.noDomUpdatingTargets){for(var o=0,l=ke(a.noDomUpdatingTargets);o<l.length;o++){var s=l[o];a.addTargetToStatusList(s)}a.noDomUpdatingTargets=void 0}var u=a.pendingTargets,c=new Set;if(u)for(var d=0,h=ke(u);d<h.length;d++){var f=h[d];c.add(f),m.g.cleanupTarget(a,f),m.g.shouldActivateNextTarget(a,f)}if(n)for(var v=0,g=Object.keys(a.targetValues);v<g.length;v++){var p=g[v];"done"!==a.targetValues[p].status||c.has(p)||a.isTargetInLoop(p)||a.isTargetPassiveLoop(p)||m.g.cleanupTarget(a,p)&&m.g.shouldActivateNextTarget(a,p)}}else a.markLayoutDirty("noDom")}}catch(e){i.e(e)}finally{i.f()}}},{key:"catchupNoDomTargetsBeforeStyle",value:function(e){var t;if(null!==(t=e.noDomUpdatingTargets)&&void 0!==t&&t.size){for(var r=0,n=ke(e.noDomUpdatingTargets);r<n.length;r++){var i=n[r],a=e.targetValues[i];if(a){vt().catchupTargetByElapsed(e,i,{fireEnd:!1}),delete a.catchupAt;var o=vt().calculateTargetStatus(e,i);e.setTargetStatus(i,o)}}e.noDomUpdatingTargets=void 0}}},{key:"createDoms",value:function(){if(0!==this.lists.noDom.length){var e=new Map,t=[],r=[],i=[];this.lists.noDom.sort((function(e,t){return e.getUIDepth()-t.getUIDepth()}));var a,o=Se(this.lists.noDom);try{for(o.s();!(a=o.n()).done;){var l,s=a.value,u=null!==(l=s.domId)&&void 0!==l?l:s.oid;n.J.query("#".concat(u))?(s.$dom=new n.J("#".concat(u)),s.$dom.attr("tgjs","true"),s.hasDomNow=!0,s.markLayoutDirty("hasDomNow"),i.push(s),this.needsRerender(s)&&this.lists.rerender.push(s),this.needsRestyle(s)&&this.lists.restyle.push(s),this.needsReasyncStyle(s)&&this.lists.reasyncStyle.push(s)):r.push(s)}}catch(e){o.e(e)}finally{o.f()}for(var c=0,d=r;c<d.length;c++){var h=d[c],f=h.getDomHolder();if(f)if(h.$dom=void 0,h.val("$dom"))h.$dom=h.val("$dom"),h.hasDom()||f.appendTModel$Dom(h),i.push(h);else{_.a.createDom(h),_.a.patchDom(h),t.push(h),i.push(h);var v=e.get(f);v||(v={domHolder:f,fragment:n.J.createDocumentFragment(),tmodels:[]},e.set(f,v)),v.fragment.appendChild(h.$dom.element),v.tmodels.push(h)}else h.markLayoutDirty("noDomHolder")}var g,p=Se(e.values());try{for(p.s();!(g=p.n()).done;){var y=g.value,m=y.domHolder,b=y.fragment;m.appendElement(b)}}catch(e){p.e(e)}finally{p.f()}for(var T=0,w=i;T<w.length;T++){var k=w[T];this.catchupNoDomTargetsBeforeStyle(k)}for(var S=[],x=0,M=t;x<M.length;x++){var C=M[x];C.hasDom()&&(C.hasDomNow=!0,C.markLayoutDirty("hasDomNow"),S.push(C)),_.a.initStyleMaps(C),_.a.fixStyle(C),_.a.fixAsyncStyle(C)}for(var E=0,D=S;E<D.length;E++)D[E].onDomReady();this.activatePendingTargetsAfterDom(i),st().attachEvents(i.filter((function(e){var t;return(null===(t=e.externalEventMap)||void 0===t?void 0:t.size)>0})))}}}],t&&Pe(e.prototype,t),r&&Pe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}function je(){je=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:C(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",p={};function y(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=y.prototype=Object.create(T);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==Ae(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function C(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=E(l,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(Ae(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},x(M.prototype),u(M.prototype,l,(function(){return this})),t.AsyncIterator=M,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new M(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function _e(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function Ie(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){_e(a,n,i,o,l,"next",e)}function l(e){_e(a,n,i,o,l,"throw",e)}o(void 0)}))}}function Ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ne(n.key),n)}}function Ne(e){var t=function(e,t){if("object"!=Ae(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ae(t)?t:t+""}var Re,Fe,Be,He=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.nextRuns=[],this.domProcessing=0,this.runningFlag=!1,this.runId="",this.runStartTime=void 0,this.runDuration=0,this.rerunId="",this.delayProcess=void 0,this.resetting=!1,this.activeStartTime=void 0,this.phase=0,this.runningStep=-1,this.sliceQueued=!1,this.eventSettlePending=!1}return t=e,r=[{key:"resetRuns",value:(a=Ie(je().mark((function e(){return je().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.resetting=!0,e.next=3,new Promise((function(e){return requestAnimationFrame(e)}));case 3:this.clearDelayProcess(),this.nextRuns=[],this.domProcessing=0,this.runningFlag=!1,this.runId="",this.runStartTime=void 0,this.runDuration=0,this.rerunId="",this.delayProcess=void 0,this.resetting=!1,this.activeStartTime=void 0,this.phase=0,this.runningStep=-1,this.sliceQueued=!1,this.eventSettlePending=!1;case 18:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"scheduleOnlyIfEarlier",value:function(e,t){var r,n=(this.runningFlag&&null!==(r=this.runStartTime)&&void 0!==r?r:o.d.now())+(null!=e?e:0);this.delayProcess&&n>=this.delayProcess.runTime||this.schedule(e,t)}},{key:"schedule",value:function(e,t){if(Ye.isRunning()&&!this.resetting){var r=0===Ye.throttle?null!=e?e:0:Ye.throttle,n=o.d.now();this.delayRun(r,t,n)}}},{key:"run",value:(i=Ie(je().mark((function e(t,r){var n,i,a,l,s;return je().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ye.isRunning()&&!this.resetting){e.next=2;break}return e.abrupt("return");case 2:if(!this.runningFlag){e.next=5;break}return this.rerunId||(this.rerunId="rerun ".concat(r)),e.abrupt("return");case 5:if(this.rerunId="",this.runId=r,this.runningFlag=!0,this.runStartTime=o.d.now(),n=!1,1===Ye.debugLevel&&o.d.log(!0)("Request from: ".concat(r," delay: ").concat(t," runningStep:").concat(this.runningStep," dom:").concat(this.domProcessing," runs:").concat(this.nextRuns.length," D:").concat(null===(i=this.delayProcess)||void 0===i?void 0:i.delay," events:").concat(st().eventQueue.length)),e.prev=11,0!==this.phase){e.next=19;break}return(a=st().captureEvents())&&(l=a.eventType,this.eventSettlePending="start"===l||"end"===l||"click"===l),Ye.targetManager.applyTargetValues(lt()),e.next=18,yt().calculateAll();case 18:this.phase=1;case 19:if(!(o.d.now()-this.runStartTime>20)){e.next=23;break}return n=!0,this.requestNextSlice(r),e.abrupt("return");case 23:if(1===this.phase&&(this.runningStep=Ye.manager.analyze(),this.phase=2),!(o.d.now()-this.runStartTime>20)){e.next=28;break}return n=!0,this.requestNextSlice(r),e.abrupt("return");case 28:if(2===this.phase&&(yt().calculateActivated(),Ye.events.resetEventsOnTimeout(),(s=Ye.manager.analyze())>=0&&(this.runningStep=this.runningStep<0?s:Math.min(this.runningStep,s)),this.phase=3),!(o.d.now()-this.runStartTime>20)){e.next=33;break}return n=!0,this.requestNextSlice(r),e.abrupt("return");case 33:3===this.phase&&(this.runningStep>=0&&(0===this.domProcessing?(n=!0,this.domOperations(this.runningStep)):this.rerunId||(this.rerunId="domrun ".concat(r))),this.phase=4),this.runDuration=o.d.now()-this.runStartTime,0===this.domProcessing&&this.needsRerun(),e.next=42;break;case 38:throw e.prev=38,e.t0=e.catch(11),this.phase=0,e.t0;case 42:return e.prev=42,n||0!==this.domProcessing||(this.runningFlag=!1),e.finish(42);case 45:case"end":return e.stop()}}),e,this,[[11,38,42,45]])}))),function(e,t){return i.apply(this,arguments)})},{key:"requestNextSlice",value:function(e){var t=this;this.runningFlag=!1,this.sliceQueued||(this.sliceQueued=!0,requestAnimationFrame((function(){t.sliceQueued=!1,t.schedule(0,"slice-".concat(e))})))}},{key:"needsRerun",value:function(){this.phase=0,this.runningFlag=!1;var e=this.eventSettlePending;if(this.eventSettlePending=!1,this.rerunId){var t=this.rerunId;this.rerunId="",this.schedule(0,"rerun-".concat(t))}else if(st().eventQueue.length>0||e)this.schedule(0,"events-".concat(st().eventQueue.length));else{var r=this.nextRuns.length>0?this.nextRuns[0].delay-(o.d.now()-this.nextRuns[0].insertTime):void 0,n=ft(),i=n.lists.restyle.length>0||n.lists.reasyncStyle.length>0||yt().activatedList.length>0,a=n.lists.noDomVisibilityTModels.length>0;if(void 0===r||n.lists.activeTModels.length>0||n.lists.updatingTModels.length>0||i||a){if(n.lists.updatingTModels.length>0)return void this.schedule(1,"getManager-needsRerun-updatingTModels");if(n.lists.activeTModels.length>0){var l=n.lists.activeTModels.find((function(e){return 0===e.targetExecutionCount||e.activeTargetList.filter((function(t){return!e.isScheduledPending(t)})).some((function(t){return e.shouldScheduleRun(t)}))}));if(l){var s=!this.activeStartTime||o.d.now()-this.activeStartTime>15?1:15;return this.activeStartTime=o.d.now(),void this.schedule(s,"getManager-needsRerun-".concat(l.oid,"-").concat(l.activeTargetList))}}i&&this.schedule(1,"needsRerun-dom-work"),a&&this.schedule(15,"needsRerun-noDomVisibility")}}this.executeNextRun()}},{key:"domOperations",value:function(t){var r=this;this.domProcessing=1,10!==t?Promise.all(e.domSteps.filter((function(e,r){return r>=t})).map((function(e){return Promise.resolve().then(e)}))).then((function(){ft().lists.restyle.length?r.domFixStyles():(r.domProcessing=0,r.needsRerun())})).catch((function(){r.domProcessing=0,r.needsRerun()})):this.domFixStyles()}},{key:"domFixStyles",value:function(){var e=this;this.domProcessing=2,requestAnimationFrame((function(){try{ft().fixStyles()}finally{e.domProcessing=0,e.needsRerun()}}))}},{key:"clearDelayProcess",value:function(){var e;null!==(e=this.delayProcess)&&void 0!==e&&e.timeoutId&&(clearTimeout(this.delayProcess.timeoutId),this.delayProcess.timeoutId=void 0),this.delayProcess=void 0}},{key:"setDelayProcess",value:function(e,t,r,n,i){var a=this,o={runId:e,insertTime:t,runTime:n,interval:r,delay:i,timeoutId:void 0},l=function(){var t=Ie(je().mark((function t(){return je().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a.delayProcess===o){t.next=2;break}return t.abrupt("return");case 2:return a.clearDelayProcess(),t.prev=3,t.next=6,a.run(i,e);case 6:return t.prev=6,a.executeNextRun(),t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[3,,6,9]])})));return function(){return t.apply(this,arguments)}}();this.delayProcess=o,o.timeoutId=setTimeout(l,i)}},{key:"executeNextRun",value:function(){if(!(this.runningFlag||this.domProcessing>0)){if(this.delayProcess){if(!(this.nextRuns.length>0))return;var e=this.nextRuns[0];if(!(e.insertTime+e.delay<this.delayProcess.runTime))return;clearTimeout(this.delayProcess.timeoutId);var t=Math.max(0,this.delayProcess.runTime-o.d.now());this.insertRun(this.delayProcess.runId,o.d.now(),t),this.delayProcess=void 0}for(var r=null;this.nextRuns.length>0;){var n=this.nextRuns.shift(),i=o.d.now();if(!(n.delay-(i-n.insertTime)<=0)){this.nextRuns.unshift(n);break}r=n}if(r)this.setDelayProcess(r.runId,r.insertTime,r.delay,o.d.now(),0);else if(this.nextRuns.length>0){var a=this.nextRuns.shift(),l=o.d.now(),s=Math.max(0,a.delay-(l-a.insertTime));this.setDelayProcess(a.runId,a.insertTime,a.delay,l+s,s)}else this.clearDelayProcess()}}},{key:"delayRun",value:function(e,t,r){var n=r+e;this.delayProcess?this.delayProcess.timeoutId&&n<this.delayProcess.runTime?(clearTimeout(this.delayProcess.timeoutId),this.insertRun(this.delayProcess.runId,this.delayProcess.insertTime,this.delayProcess.interval),this.setDelayProcess(t,r,e,n,e)):this.insertRun(t,r,e):this.setDelayProcess(t,r,e,n,e)}},{key:"insertRun",value:function(e,t,r){for(var n=0,i=this.nextRuns.length;n<i;){var a,o=n+i>>1,l=this.nextRuns[o],s=l.insertTime+l.delay-(t+r);if(0===s)return l.count=(null!==(a=l.count)&&void 0!==a?a:1)+1,void(l.runId.length<500?l.runId+="-"+e:l.runId.endsWith("-...")||(l.runId+="-..."));s>0?i=o:n=o+1}this.nextRuns.splice(n,0,{runId:e,insertTime:t,delay:r})}},{key:"getSnapshot",value:function(){var e=o.d.now(),t=[],r=function(r){if(r){var n=o.d.isDefined(r.runTime)?r.runTime:r.insertTime+r.delay;t.push({runId:r.runId,delay:Math.max(0,n-e)})}};r(this.delayProcess),this.nextRuns.forEach(r);var n=t.filter((function(e){return 0===e.delay})),i=t.filter((function(e){return e.delay>0})),a=[];return n.length&&a.push({runId:n.map((function(e){return e.runId})).join("-"),delay:0}),i.forEach((function(e){a.push(e)})),a}},{key:"restoreSnapshot",value:function(){var e=this;(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){e.schedule(t.delay,"restore-".concat(t.runId))}))}}],r&&Ve(t.prototype,r),n&&Ve(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n,i,a}();function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}function qe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return We(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?We(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ke(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$e(n.key),n)}}function $e(e){var t=function(e,t){if("object"!=Ue(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ue(t)?t:t+""}Re=He,Be=[function(){return ft().createDoms()},function(){return ft().reattachTModels()},function(){return ft().relocateTModels()},function(){return ft().renderTModels()},function(){return ft().fixAsyncStyles()},function(){return ft().deleteDoms()}],(Fe=Ne(Fe="domSteps"))in Re?Object.defineProperty(Re,Fe,{value:Be,enumerable:!0,configurable:!0,writable:!0}):Re[Fe]=Be;var Ye,ze=function(){return function(e,t,r){return t&&Ke(e.prototype,t),r&&Ke(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"applyTargetValues",value:function(e){var t,r=qe(arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.activeTargetList.slice(0));try{for(r.s();!(t=r.n()).done;){var n=t.value;e.isTargetImperative(n)||this.applyTargetValue(e,n)}}catch(e){r.e(e)}finally{r.f()}}},{key:"applyTargetValue",value:function(e,t){var r=e.targets[t];if(o.d.isDefined(r)){if(!(I.O.shouldPauseTarget(e,t)||e.isExecuted(t)&&e.hasUpdatingImperativeTargets(t))){if(e.isExecuted(t)&&e.getTargetStep(t)===e.getTargetSteps(t)){if(e.isScheduledPending(t))return;var n=I.O.scheduleExecution(e,t);if(n>0)return void pt().schedule(n,"targetSchedule__".concat(e.oid))}e.isTargetEnabled(t)?(e.resetScheduleTimeStamp(t),s.j.prepareTarget(e,t),s.j.executeDeclarativeTarget(e,t),o.d.isDefined(r.fetchAction)||m.g.shouldActivateNextTarget(e,t)):r.needsReactivation&&e.removeFromActiveTargets(t)}}else e.removeFromActiveTargets(t)}},{key:"setActualValues",value:function(e,t){if(t.length){var r,n=0,i=qe(t=t.slice(0));try{for(i.s();!(r=i.n()).done;){var a=r.value;I.O.shouldPauseTarget(e,a)||((n=I.O.scheduleExecution(e,a))>0?pt().schedule(n,"setActualValues-".concat(e.oid,"-").concat(a)):(e.resetScheduleTimeStamp(a),this.setActualValue(e,a)))}}catch(e){i.e(e)}finally{i.f()}var o=e.waapiBatch;o&&e.hasDom()?(gt().animate(e,o,ae.T.getAnimationHooks()),e.waapiBatch=void 0):e.waapiBatch=void 0}}},{key:"findOriginalTModel",value:function(e,t){return a.X.findParentByTarget(e,t)||Tt().find((function(e){return e.targets[t]}))}},{key:"fireOnStep",value:function(e,t,r){var n=e.targetValues[t],i=e.getTargetValue(t),a=e.getTargetSteps(t),l=e.targets[t];e.setLastUpdate(t),e.setTargetMethodName(t,"value");var s=n.originalTargetName,u=e.targets[s],c=e;e.setTargetMethodName(t,"value"),!u&&s&&(u=(c=this.findOriginalTModel(e,s))?c.targets[s]:null);var d=!1;if(e.isTargetImperative(t)){if(u){var h=m.g.getTargetName(o.d.capitalizeFirstLetter(t));"function"==typeof u["on".concat(h,"Step")]?(u["on".concat(h,"Step")].call(c,c.val(t),i,r,a),c.setTargetMethodName(s,["on".concat(h,"Step")]),d=!0):"function"==typeof u.onImperativeStep&&(u.onImperativeStep.call(c,t,c.val(t),i,r,a),c.setTargetMethodName(s,"onImperativeStep"),d=!0),u.activateNextTarget&&!u.activateNextTarget.endsWith("$$")&&u.activateNextTarget.endsWith("$")&&(d=!0,m.g.shouldActivateNextTarget(e,t))}}else d=e.handleSpecialTargetStep(t,r,a)||d,d=o.d.handleValueChange(e,t)||d,null!=l&&l.activateNextTarget&&!l.activateNextTarget.endsWith("$$")&&l.activateNextTarget.endsWith("$")&&(d=!0,m.g.shouldActivateNextTarget(e,t));return d}},{key:"fireOnEnd",value:function(e,t){var r=e.targetValues[t];if(r){var n=e.getTargetValue(t),i=e.getTargetSteps(t);e.setLastUpdate(t);var a=r.originalTargetName,l=e.targets[a],u=e;!l&&a&&(l=(u=this.findOriginalTModel(e,a))?u.targets[a]:null);var c=this.calculateTargetStatus(e,t);if(e.setTargetStatus(t,c),e.handleSpecialTargetEnd(t),e.isTargetImperative(t)){var d=m.g.getTargetName(o.d.capitalizeFirstLetter(t));l&&"function"==typeof l["on".concat(d,"End")]?(l["on".concat(d,"End")].call(u,u.val(t),n,i,i),u.setTargetMethodName(a,["on".concat(d,"End")])):l&&"function"==typeof l.onImperativeEnd&&(l.onImperativeEnd.call(u,t,u.val(t)),u.setTargetMethodName(a,"onImperativeEnd")),e.getTargetCycle(t)<e.getTargetCycles(t)-1&&(e.incrementTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t),delete r.valuePointer)}else{var h;e.getTargetCycle(t)<e.getTargetCycles(t)-1&&(e.incrementTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t),e.resetTargetExecutionFlag(t),delete r.valuePointer,s.j.executeDeclarativeTarget(e,t)),"function"==typeof(null===(h=e.targets[t])||void 0===h?void 0:h.onStepsEnd)&&(e.targets[t].onStepsEnd.call(e,e.getTargetCycle(t)),e.setTargetMethodName(t,"onStepsEnd"))}m.g.shouldActivateNextTarget(e,t)}}},{key:"calculateTargetStatus",value:function(e,t){var r=e.targetValues[t];if(r){var n=e.getValueListPointer(t),i=e.getTargetCycle(t),a=e.getTargetCycles(t),o=e.getTargetStep(t),l=e.getTargetSteps(t);return Array.isArray(r.valueList)&&n<r.valueList.length||e.isTargetImperative(t)&&i<a-1||o<l?"updating":e.isTargetInLoop(t)||i<a-1?"active":"done"}}},{key:"catchupTargetByElapsed",value:function(e,t){var r,n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fireEnd,i=void 0!==n&&n,a=e.targetValues[t];if(!a)return{done:!1};var l=o.d.advanceTargetByElapsed(e,t),s=l.step,u=l.valuePointer,c=l.cycle,d=e.getTargetCycles(t);if(l.done){var h,f,v,g,p=null!==(h=a.valueList)&&void 0!==h&&h.length?a.valueList[a.valueList.length-1]:e.getTargetValue(t);return e.val(t,p),e.setActual(t,p),e.addToStyleTargetList(t),a.step=null!==(f=l.steps)&&void 0!==f?f:e.getTargetSteps(t),a.valuePointer=null!==(v=null===(g=a.valueList)||void 0===g?void 0:g.length)&&void 0!==v?v:u,a.value=p,a.cycle=d,delete a.catchupAt,i&&this.fireOnEnd(e,t),{done:!0,step:a.step,cycle:d,valuePointer:a.valuePointer}}null!==(r=a.valueList)&&void 0!==r&&r.length&&(a.valuePointer=u,a.initialValue=a.valueList[u-1],a.value=a.valueList[u],a.steps=a.stepList[(u-1)%a.stepList.length],a.interval=Array.isArray(a.intervalList)?a.intervalList[(u-1)%a.intervalList.length]:a.interval,a.easing=a.easingList[(u-1)%a.easingList.length]),a.step=s,a.cycle=c;var y=e.getTargetValue(t),m=e.getTargetSteps(t),b=e.getTargetInitialValue(t);o.d.isDefined(b)||(b=this.resolveInitialValue(e,t,y),e.setTargetInitialValue(t,b));var T=s>0?_.a.easingMorph(e,t,b,y,s,m):b;return e.val(t,T),e.setActual(t,T),e.addToStyleTargetList(t),{done:!1,step:s,cycle:c,valuePointer:u}}},{key:"setActualValue",value:function(e,t){var r,n,i=e.targetValues[t];if(i&&this.canUpdateTarget(e,t)){var a=this.getTargetUpdateState(e,t);o.d.isDefined(a.initialValue)||(a.initialValue=this.resolveInitialValue(e,t,a.theValue),e.setTargetInitialValue(t,a.initialValue));var l=this.catchupTargetByElapsed(e,t,{fireEnd:!0});if(l.done)pt().scheduleOnlyIfEarlier(1,"".concat(e.oid,"---").concat(t,"-catchup-finished"));else{var s=null!==(r=l.step)&&void 0!==r?r:0,u=null!==(n=l.valuePointer)&&void 0!==n?n:e.getValueListPointer(t);e.canBeAnimated(a.cleanKey)?this.animateActualValue(e,t,i,a,s,u):this.updateActualValue(e,t,i,a,s)}}}},{key:"canUpdateTarget",value:function(e,t){return!(!e.isTargetImperative(t)&&!e.isTargetEnabled(t))||(pt().schedule(15,"setActualValue-postpone-".concat(e.oid)),!1)}},{key:"getTargetUpdateState",value:function(e,t){return{theValue:e.getTargetValue(t),cleanKey:m.g.getTargetName(t),steps:e.getTargetSteps(t),cycle:e.getTargetCycle(t),interval:e.getTargetInterval(t),initialValue:e.getTargetInitialValue(t),lastUpdateTime:e.getLastUpdate(t),now:o.d.now()}}},{key:"resolveInitialValue",value:function(e,t,r){return o.d.isDefined(e.val(t))?e.val(t):"number"==typeof r?0:void 0}},{key:"animateActualValue",value:function(e,t,r,n,i,a){if(e.hasDom())for(var o=i>0?_.a.easingMorph(e,t,n.initialValue,n.theValue,i,n.steps):n.initialValue,l=e.isTargetImperative(t)?e.getTargetCycles(t):0,s=ae.T.handleWebAnimationAPI(e,n.cleanKey,t,r,o,n.theValue,a,i,n.steps,n.interval,0,!1,!0),u=1;u<l;u++)ae.T.handleWebAnimationAPI(e,n.cleanKey,t,r,o,n.theValue,a,i,n.steps,n.interval,u*s,!0,!1);else e.addToNoDomUpdatingTargets(t)}},{key:"updateActualValue",value:function(e,t,r,n,i){if(i<=n.steps){e.incrementTargetStep(t,n.now,n.lastUpdateTime,n.interval,n.steps);var a=_.a.easingMorph(e,t,n.initialValue,n.theValue,i,n.steps);if(e.val(t,a),e.setActual(t,a),e.addToStyleTargetList(t),this.fireOnStep(e,t,i),e.getTargetStep(t)<n.steps)return void pt().scheduleOnlyIfEarlier(n.interval,"".concat(e.oid,"---").concat(t,"-").concat(i,"/").concat(n.steps,"-").concat(n.cycle,"-").concat(n.interval))}this.finishCurrentSegment(e,t,r,n)}},{key:"finishCurrentSegment",value:function(e,t,r,n){e.val(t,n.theValue),e.setActual(t,n.theValue),e.addToStyleTargetList(t),r.step=n.steps,e.setLastUpdate(t);var i=1;if(r.valueList){e.incrementValueListPointer(t);var a=e.getValueListPointer(t);a<r.valueList.length?(e.resetTargetStep(t),r.initialValue=r.value,r.value=r.valueList[a],r.steps=r.stepList[(a-1)%r.stepList.length],r.interval=Array.isArray(r.intervalList)?r.intervalList[(a-1)%r.intervalList.length]:0,r.easing=r.easingList[(a-1)%r.easingList.length],i=n.interval):this.fireOnEnd(e,t)}else this.fireOnEnd(e,t);pt().scheduleOnlyIfEarlier(i,"".concat(e.oid,"---").concat(t,"-").concat(n.steps,"/").concat(n.steps,"-").concat(n.cycle,"-").concat(i))}}])}(),Xe=r(357);r(599);function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||Je(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Je(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function Je(e,t){if(e){if("string"==typeof e)return et(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?et(e,t):void 0}}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tt(){tt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:C(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",p={};function y(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=y.prototype=Object.create(T);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==Ge(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function C(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=E(l,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(Ge(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},x(M.prototype),u(M.prototype,l,(function(){return this})),t.AsyncIterator=M,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new M(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function rt(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function nt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){rt(a,n,i,o,l,"next",e)}function l(e){rt(a,n,i,o,l,"throw",e)}o(void 0)}))}}var it=[],at=function(e){var t;if(e){var r,n=e instanceof i.c?e:s.j.createTModel("App",e);return null!==(t=Ye)&&void 0!==t&&t.tRoot?(Ye.tRoot.addChild(n),n):"loading"===document.readyState?(it.push(n),n):(null!==(r=Ye)&&void 0!==r&&r.tRoot||"loading"===document.readyState||Mt(),Ye.tRoot.addChild(n),n)}};at.unmount=nt(tt().mark((function e(){var t;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ye){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Ye.stop();case 4:return t=Ye.tRoot,t.getChildren().forEach((function(e){var r,n;e.val("sourceDom")?Q.v.restoreDomState(null===(n=e.$dom)||void 0===n?void 0:n.element,e.domState):null!==(r=e.$dom)&&void 0!==r&&r.attr("tgjs")&&t.$dom.removeElement(e.$dom.element)})),t.allChildrenList=[],t.allChildrenMap={},t.clearUpdatingChildren(),t.clearActiveChildren(),t.clearAnimatingChildren(),e.next=14,Ye.reset();case 14:Ye.loader.clearAll(),at.oids={},at.tmodelIdMap={},Ye=void 0;case 18:case"end":return e.stop()}}),e)}))),at.oids={},at.tmodelIdMap={},at.getOid=function(e){var t=at.oids;o.d.isDefined(t[e])||(t[e]=0);var r=t[e]++;return{oid:r>0||e.endsWith("_")?"".concat(e).concat(r):e,num:r}};var ot=function(){return!!Ye&&Ye.runningFlag},lt=function(){var e;return null===(e=Ye)||void 0===e?void 0:e.tRoot},st=function(){var e;return null===(e=Ye)||void 0===e?void 0:e.events},ut=function(){var e;return null===(e=Ye)||void 0===e?void 0:e.pager},ct=function(){var e;return null===(e=Ye)||void 0===e?void 0:e.loader},dt=function(e,t,r,n){var i;return null===(i=Ye)||void 0===i||null===(i=i.loader)||void 0===i?void 0:i.fetch(e,t,r,n)},ht=function(e,t,r){var n;return null===(n=Ye)||void 0===n||null===(n=n.loader)||void 0===n?void 0:n.fetchImage(e,t,r)},ft=function(){var e;return null===(e=Ye)||void 0===e?void 0:e.manager},vt=function(){var e;return null===(e=Ye)||void 0===e?void 0:e.targetManager},gt=function(){var e;return null===(e=Ye)||void 0===e?void 0:e.animationManager},pt=function(){var e;return null===(e=Ye)||void 0===e?void 0:e.runScheduler},yt=function(){var e;return null===(e=Ye)||void 0===e?void 0:e.locationManager},mt=function(){var e,t;return null!==(e=null===(t=Ye)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenWidth"))&&void 0!==e?e:0},bt=function(){var e,t;return null!==(e=null===(t=Ye)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenHeight"))&&void 0!==e?e:0},Tt=function(){var e;return null===(e=Ye)||void 0===e||null===(e=e.manager)||void 0===e?void 0:e.getVisibles()},wt=function(){var e;return null===(e=Ye)||void 0===e?void 0:e.resizeLastUpdate},kt=function(){var e,t=null===(e=Ye)||void 0===e?void 0:e.stateManager;if(!t)throw new Error("TargetJS state manager is not initialized.");return t},St=function(e){return at.tmodelIdMap[e]},xt=function(e){var t=at.tmodelIdMap[e];return t&&t.targets.sourceDom?t:void 0};"undefined"!=typeof window&&(window.t=window.t||St);var Mt=function(){var e;Ye||(e={throttle:0,debugLevel:0,runningFlag:!1,resizeLastUpdate:0,init:function(){return e.$window=new n.J(window),e.loader=new A,e.pager=new ie,e.stateManager=new Te,e.events=new y,e.locationManager=new G,e.targetManager=new ze,e.animationManager=new Xe._,e.manager=new Oe,e.runScheduler=new He,e.tRootFactory=function(){var t=new i.c("tRoot",{styling:!1,domHolder:!0,isVisible:!0,screenWidth:function(){var r=n.J.getScreenWidth();return r!==t.val("screenWidth")&&(e.resizeLastUpdate=o.d.now()),r},screenHeight:function(){var r=n.J.getScreenHeight();return r!==t.val("screenHeight")&&(e.resizeLastUpdate=o.d.now()),r},initPageDom:function(){var e=this;Q.v.initPageDoms(this.$dom),it.length&&(it.forEach((function(t){return e.addChild(t)})),it.length=0)}});return t.$dom=_.a.getRootDom(),"body"!==t.$dom.getTagName()&&t.$dom.attr("data-tj-no-slot","true"),t.val("screenWidth",n.J.getScreenWidth()),t.val("screenHeight",n.J.getScreenHeight()),e.tRoot&&e.tRoot.getChildren().forEach((function(e){if(!e.val("sourceDom")){var r=s.j.createTModel(e.type,e.targets);t.addChild(r)}})),t},e.tRoot=e.tRootFactory(),e}},e.start=nt(tt().mark((function t(){return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.runningFlag=!1,s.j.executeDeclarativeTarget(e.tRoot,"screenWidth"),s.j.executeDeclarativeTarget(e.tRoot,"screenHeight"),e.events.detachAll(),e.events.detachWindowEvents(),e.events.attachWindowEvents(),e.events.clearAll(),e.events.attachEvents(Object.values(at.tmodelIdMap).filter((function(e){return e.hasDom()&&e.$dom.element.isConnected}))),t.next=10,e.runScheduler.resetRuns();case 10:return e.runningFlag=!0,e.runScheduler.schedule(0,"appStart"),t.abrupt("return",e);case 13:case"end":return t.stop()}}),t)}))),e.stop=nt(tt().mark((function t(){return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.runningFlag=!1,e.events.detachAll(),e.events.detachWindowEvents(),e.events.clearAll(),t.next=6,e.animationManager.deleteAll();case 6:return t.next=8,e.animationManager.flushOneFrame();case 8:return t.next=10,e.runScheduler.resetRuns();case 10:return t.abrupt("return",e);case 11:case"end":return t.stop()}}),t)}))),e.reset=nt(tt().mark((function t(){var r,n,i,l,s;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.manager.getVisibles().forEach((function(e){var t;if(null!==(t=e.allStyleTargetMap)&&void 0!==t&&t.size){var r,n=Ze(e.allStyleTargetMap);try{for(n.s();!(r=n.n()).done;){var i=Qe(r.value,1)[0];o.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){n.e(e)}finally{n.f()}}})),t.next=3,e.runScheduler.resetRuns();case 3:for(r=0,n=Object.values(at.tmodelIdMap);r<n.length;r++)s=n[r],null===(i=s.particleRuntime)||void 0===i||i.dispose(),null===(l=s.particleRenderer)||void 0===l||l.destroy();e.manager.clearAll(),e.locationManager.clear(),e.loader.clear(),a.X.clear();case 8:case"end":return t.stop()}}),t)}))),e.isRunning=function(){return e.runningFlag},e.find=function(e){return a.X.find(e)},(Ye=e).init().start())};"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",Mt):Mt())},966:function(e,t,r){r.d(t,{d:function(){return h}});var n=r(90),i=r(530);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function s(e,t,r){return t=c(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var h=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=s(this,t,["BI"])).parent=e,r.currentBracketStatus=2,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,(n=[{key:"canHaveDom",value:function(){return!1}},{key:"shouldBeBracketed",value:function(){return!1}},{key:"excludeDefaultStyling",value:function(){return!0}},{key:"isIncluded",value:function(){return!1}},{key:"getWidth",value:function(){return this.getContentWidth()}},{key:"getHeight",value:function(){return this.getContentHeight()}},{key:"getMinWidth",value:function(){return this.bottomBaseWidth}},{key:"getBaseWidth",value:function(){return this.bottomBaseWidth}},{key:"getBaseHeight",value:function(){return this.topBaseHeight}},{key:"useContentWidth",value:function(){return this.getRealParent().useContentWidth()}},{key:"useContentHeight",value:function(){return this.getRealParent().useContentHeight()}},{key:"getContainerOverflowMode",value:function(){return this.getRealParent().getContainerOverflowMode()}},{key:"getTopBaseHeight",value:function(){return this.topBaseHeight}},{key:"isVisible",value:function(){return!!this.visibilityStatus&&this.visibilityStatus.isVisible}},{key:"getBracketThreshold",value:function(){return this.getRealParent().getBracketSize()}},{key:"createViewport",value:function(){return this.viewport=this.viewport||new i.L,this.viewport.xNext=this.x,this.viewport.xNorth=this.x,this.viewport.xEast=this.x,this.viewport.xSouth=this.x,this.viewport.xWest=this.x,this.viewport.absX=this.getRealParent().viewport.absX,this.viewport.absY=this.getRealParent().viewport.absY,this.viewport.scrollTop=this.getRealParent().viewport.scrollTop,this.viewport.scrollLeft=this.getRealParent().viewport.scrollLeft,this.viewport.xOverflowReset=this.getRealParent().viewport.xOverflowReset,this.viewport.xOverflowLimit=this.getRealParent().viewport.xOverflowLimit,this.viewport.yNext=this.y,this.viewport.yNorth=this.y,this.viewport.yWest=this.y,this.viewport.yEast=this.y,this.viewport.ySouth=this.y,this.viewport.container=this,this.viewport}},{key:"getRealParent",value:function(){return this.realParent}},{key:"calcAbsolutePosition",value:function(e,t){this.absX=e+this.getRealParent().absX,this.absY=t+this.getRealParent().absY}},{key:"shouldCalculateChildren",value:function(){var e=this.isVisible();return!!this.hasEventDirty()||!!this.visibilityDirty||(this.currentBracketStatus>=1||this.isNowVisible||this.isNowInvisible?(this.currentBracketStatus=Math.max(0,this.currentBracketStatus-1),!0):!1!==this.dirtyLayout||(e&&(this.currentBracketStatus=Math.min(2,this.currentBracketStatus+1)),!1!==this.getDirtyLayout()&&e))}},{key:"getDirtyLayout",value:function(){var e=!!this.getRealParent().managesOwnScroll()&&this.getRealParent().backupDirtyLayout;return this.dirtyLayout||e||!1}},{key:"validateVisibilityInParent",value:function(){return!0}},{key:"adjustViewport",value:function(){this.viewport.xEast=Math.max(this.viewport.xEast,this.getRealParent().viewport.xEast),this.viewport.ySouth=Math.max(this.viewport.ySouth,this.getRealParent().viewport.ySouth)}},{key:"getChildren",value:function(){return this.allChildrenList}}])&&o(r.prototype,n),a&&o(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.c)},714:function(e,t,r){r.d(t,{M:function(){return f}});var n=r(966),i=r(855);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function d(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"generate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!e.bracketMap[t.oid]||e.pageMap[t.oid]!==t.allChildrenList||r?(e.bracketMap[t.oid]=e.buildTreeBottomUp(t,t.getChildren()),e.pageMap[t.oid]=t.allChildrenList):(t.lastChildrenUpdate.deletions.length>0&&(e.updateTreeOnDeletions(t,t.lastChildrenUpdate.deletions),e.reindexTree(t)),t.lastChildrenUpdate.additions.length>0&&e.updateTreeOnAdditions(t,t.lastChildrenUpdate.additions),(t.lastChildrenUpdate.deletions.length>0||t.lastChildrenUpdate.additions.length>0)&&e.reindexTree(t)),t.lastChildrenUpdate.additions.length=0,t.lastChildrenUpdate.deletions.length=0,e.bracketMap[t.oid]}},{key:"updateTreeOnDeletions",value:function(t,r){function i(r,a){if(r)if(a instanceof n.d&&a.parent===a.realParent){var o=e.bracketMap[t.oid],l=o.indexOf(a);l>=0&&o.splice(l,1)}else{var s=r.allChildrenList.indexOf(a);s>=0&&(r.allChildrenList.splice(s,1),e.markBracketDirty(r),0===r.allChildrenList.length&&i(r.parent,r))}}r.forEach((function(e){return i(e.bracket,e)}))}},{key:"reindexTree",value:function(t){function r(e,t){if(0===e.allChildrenList.length)return t;if(e.allChildrenList[0]instanceof n.d){e.startIndex=t;var i,a=l(e.allChildrenList);try{for(a.s();!(i=a.n()).done;)t=r(i.value,t)}catch(e){a.e(e)}finally{a.f()}e.endIndex=t}else e.startIndex=t,t+=e.allChildrenList.length,e.endIndex=t;return t}var i,a=0,o=l(e.bracketMap[t.oid]);try{for(o.s();!(i=o.n()).done;)a=r(i.value,a)}catch(e){o.e(e)}finally{o.f()}}},{key:"updateTreeOnAdditions",value:function(t,r){var i=t.getBracketSize();r.forEach((function(r){var a=r.index,o=r.child,l=e.findOrCreateBracket(t,a),s=a-l.startIndex;s<l.allChildrenList.length?l.allChildrenList.splice(s,0,o):l.allChildrenList.push(o),o.bracket=l;var u=l;for(u.startIndex=Math.min(u.startIndex,a),u.endIndex=u.startIndex+u.allChildrenList.length,u.currentBracketStatus=2,u.markLayoutDirty("update"),u=l.getParent();u instanceof n.d;)u.startIndex=Math.min(u.startIndex,a),u.endIndex=Math.max(u.endIndex,a+1),u.currentBracketStatus=2,u.markLayoutDirty("update"),u=u.getParent();l.allChildrenList.length>i&&e.splitBracket(t,l)}))}},{key:"splitBracket",value:function(t,r){for(var i=r.allChildrenList,a=t.getBracketSize(),l=[],s=r.startIndex,u=0;u<i.length;u+=a){var c=i.slice(u,u+a),d=s+c.length,h=e.createBracket(t,s,d,c);h.parent=r.parent,s=h.endIndex,l.push(h)}if(r.parent!==r.realParent){var f,v=r.parent.allChildrenList.indexOf(r);if(v>=0&&(f=r.parent.allChildrenList).splice.apply(f,[v,1].concat(l)),e.markBracketDirty(r),r.parent.allChildrenList.length>=a){var g=e.buildTreeBottomUp(t,r.parent.allChildrenList);if(r.parent.allChildrenList=g,r.parent.allChildrenList.forEach((function(t){t.parent=r.parent,e.markBracketDirty(t)})),r.parent.parent){var p,y=r.parent.parent.allChildrenList.indexOf(r.parent);y>=0&&((p=r.parent.parent.allChildrenList).splice.apply(p,[y,1].concat(o(g))),r.parent.parent.allChildrenList.forEach((function(e){e.parent=r.parent.parent})))}}}else{var m=e.bracketMap[t.oid],b=m.indexOf(r);b>=0&&m.splice.apply(m,[b,1].concat(l)),m.length>t.getBracketSize()&&(e.bracketMap[t.oid]=e.buildTreeBottomUp(t,m))}l.forEach((function(t){return e.markBracketDirty(t)})),l[0].parent instanceof n.d&&e.markBracketDirty(l[0].parent)}},{key:"findOrCreateBracket",value:function(t,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.bracketMap[t.oid],o=l(a);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.startIndex<=r&&s.endIndex>=r)return s.getFirstChild()instanceof n.d?e.findOrCreateBracket(t,r,s.allChildrenList):s}}catch(e){o.e(e)}finally{o.f()}var u=e.createBracket(t,r,r);if(a.push(u),a.length>t.getBracketSize()){var c=e.buildTreeBottomUp(t,a);e.bracketMap[t.oid]=c}return u}},{key:"buildTreeBottomUp",value:function(t,r){for(var i=r.length,a=t.getBracketSize(),o=[],l=0;l<i;l+=a){var s=r.slice(l,l+a),u=s[0]instanceof n.d,c=u?s[0].startIndex:l,d=u?s[s.length-1].endIndex:l+s.length,h=e.createBracket(t,c,d,s);o.push(h)}return o.length>a?e.buildTreeBottomUp(t,o):o}},{key:"createBracket",value:function(t,r,a,o){var l=new n.d(t);return i.qw.tmodelIdMap[l.oid]=l,l.realParent=t,l.allChildrenList=o||l.allChildrenList,l.startIndex=r,l.endIndex=a,l.allChildrenList.forEach((function(e){e instanceof n.d?(e.realParent=t,e.parent=l):e.bracket=l})),e.all[l.oid]=l,l}},{key:"reset",value:function(){e.bracketMap={},e.pageMap={},e.all={}}},{key:"markBracketDirty",value:function(e){for(var t=e;t&&"BI"===t.type;)t.currentBracketStatus=2,t.markLayoutDirty("update"),t=t.parent}}],(r=null)&&c(t.prototype,r),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}();d(f,"bracketMap",{}),d(f,"pageMap",{}),d(f,"all",{})},737:function(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.d(t,{I:function(){return u}});var o,l,s,u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"color2Integers",value:function(t){if(t=t?String(t):"",t=e.colors[t.toLowerCase()]||t){if(t.startsWith("#")){t=3===(t=t.slice(1)).length?t.split("").map((function(e){return e+e})).join(""):t;var r=parseInt(t,16);return[r>>16&255,r>>8&255,255&r]}var n=t.match(/\d+/g);return n&&3===n.length?n.map(Number):void 0}}}],(r=null)&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();o=u,s={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},(l=a(l="colors"))in o?Object.defineProperty(o,l,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[l]=s},260:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{v:function(){return DomInit}});var _$Dom_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(768),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(34),_App_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(855),_TargetData_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(585);function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var DomInit=function(){function DomInit(){_classCallCheck(this,DomInit)}return _createClass(DomInit,null,[{key:"initCacheDoms",value:function(e){var t=(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().$dom.queryAll("[tgjs]"),r=new Map;e.forEach((function(e){e.$dom=null,"BI"!==e.type&&r.set(e.oid,e)}));var n,i=[],a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n()).done;){var o=n.value,l=o.getAttribute("id"),s=(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.iP)(l);s?(s.$dom=new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(o),r.has(s.oid)||i.push(s)):_$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J.detach(o)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"mount",value:function(e,t){if(void 0!==t){var r=DomInit.normalizeElementTarget(t);if(r){var n;null!==(n=e.$dom)&&void 0!==n&&n.exists()&&(e.domState?DomInit.restoreDomState(e.$dom.element,e.domState):e.$dom.detach()),e.domState=DomInit.snapshotDomState(r.element),e.targets.$dom=r,e.val("$dom",r);var i=r.getTagName().toLowerCase(),a={};e.val("element")!==i&&(a.element=i),a.position=r.getStyleValue("position")||"relative",a.sourceDom=!0,a.domIsland=!0,_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.reuseDomDefinition)||(a.reuseDomDefinition=!0,a.domHolder=!0,_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeXYCalc)||(a.excludeXYCalc=!0),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.x)||_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeX)||(a.excludeX=!0),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.y)||_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeY)||(a.excludeY=!0)),e.addTargets(a);var o=r.getId();if(o&&o!==e.oid)e.domId=o;else if(!o){var l="tgjs-".concat(e.oid);r.ensureId(l),e.domId=l}r.attr("tgjs-oid",e.oid),r.attr("tgjs","true"),e.$dom=void 0}}}},{key:"initPageDoms",value:function(e){var t,r=new Map,n=_createForOfIteratorHelper(e.queryAll("*"));try{for(n.s();!(t=n.n()).done;){var i=t.value,a=void 0,o=Array.from(i.attributes),l=o.some((function(e){return"tg"===e.name||e.name.startsWith("tg-")})),s={};if(l){var u,c=_createForOfIteratorHelper(o);try{for(c.s();!(u=c.n()).done;){var d=u.value;if(d.name.startsWith("tg-")){var h=d.name.slice(3),f=_TargetData_js__WEBPACK_IMPORTED_MODULE_3__.u.toCanonicalKey(h),v=d.value.trim(),g=DomInit.parseString(v);s[f]=g}else"tg"===d.name&&(s[d.name]=!0)}}catch(e){c.e(e)}finally{c.f()}}var p=i.parentElement,y=r.get(p),m=void 0;if(Object.keys(s).length>0&&((m=i.getAttribute("id"))||y||(m=_App_js__WEBPACK_IMPORTED_MODULE_2__.qw.getOid("blank").oid,i.setAttribute("id",m)),i.getAttribute("tgjs")||i.setAttribute("tgjs",!0),a=_objectSpread({id:m,baseElement:i.tagName.toLowerCase(),$dom:new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(i)},s)),y){a||(a={textOnly:!1,html:i.outerHTML,$dom:new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(i)});var b=DomInit.getChildrenKey(y);b?Array.isArray(y[b].value)?y[b].value.push(a):"string"==typeof y[b]?y[b]={cycles:_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isNumber(+y[b])?+y[b]:1,value:[a]}:"object"===_typeof(y[b])&&(y[b].value=[a]):y.children$={cycles:1,value:[a]},r.set(i,a)}else a&&r.set(i,a)}}catch(e){n.e(e)}finally{n.f()}var T,w=[],k=_createForOfIteratorHelper(r.values());try{for(k.s();!(T=k.n()).done;){var S=T.value,x=S.$dom.element.parentElement,M=r.get(x);M?(S.$dom.detach(),delete S.$dom,delete S.id,S.sourceDom=!0,S.otype=S.id||(M.id||_App_js__WEBPACK_IMPORTED_MODULE_2__.qw.getOid("blank").oid)+"_",S.isVisible=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.isVisible)?S.isVisible:function(){return this.getParent().isVisible()},S.domParent=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.domParent)?S.domParent:function(){return this.getParent()}):(S.isVisible=!_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.isVisible)||S.isVisible,S.domHolder=!_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.domHolder)||S.domHolder,S.sourceDom=!0,(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().addChild(S),S.isVisible||w.push({$dom:S.$dom,tmodel:(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().getLastChild()}))}}catch(e){k.e(e)}finally{k.f()}w.forEach((function(e){var t=e.$dom,r=e.tmodel;t.exists()&&!r.hasChildren()&&(t.detach(),r.val("requiresDom",!1))}))}},{key:"getChildrenKey",value:function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if(n.toLowerCase().includes("children"))return n}return null}},{key:"parseString",value:function parseString(rawValue){if("string"!=typeof rawValue)return rawValue;var trimmed=rawValue.trim(),isFunction=/^function\s*\([\s\S]*?\)\s*\{[\s\S]*\}$/m.test(trimmed)||/^\(?[\w\s,]*\)?\s*=>\s*(\{[\s\S]*\}|\S+)/m.test(trimmed),isObject=/^(\{[\s\S]*\}|\[[\s\S]*\])$/.test(trimmed),containsCode=["return","setTarget","TargetJS.","addChild","addSibling","activateTarget","removeChild","removeAll"].some((function(e){return trimmed.includes(e)}));if(!isObject&&!isFunction&&containsCode)try{return new Function(trimmed)}catch(e){}if(isObject||isFunction)try{return eval("(".concat(trimmed,")"))}catch(e){}try{return JSON.parse(trimmed)}catch(e){}return rawValue}},{key:"snapshotDomState",value:function(e){if(e&&1===e.nodeType){for(var t={},r=0,n=Array.from(e.attributes);r<n.length;r++){var i=n[r],a=i.name,o=i.value;t[a]=o}return{attrs:t,styleAttr:e.getAttribute("style"),html:e.innerHTML}}}},{key:"restoreDomState",value:function(e,t){if(e&&1===e.nodeType&&t){for(var r=t.attrs,n=t.styleAttr,i=0,a=Array.from(e.attributes);i<a.length;i++){var o=a[i].name;o in r||e.removeAttribute(o)}for(var l=0,s=Object.entries(r);l<s.length;l++){var u=_slicedToArray(s[l],2),c=u[0],d=u[1];e.getAttribute(c)!==d&&e.setAttribute(c,d)}n?e.setAttribute("style",n):e.removeAttribute("style"),e.innerHTML=t.html}}},{key:"normalizeElementTarget",value:function(e){if(e instanceof _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J)return e;if(e instanceof Element)return new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(e);if("string"==typeof e){var t=_$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J.querySelector(e);return t?new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(t):null}return null}}])}()},421:function(e,t,r){var n;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function o(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}r.d(t,{G:function(){return s}});var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"easingFunction",value:function(t){return t&&e.easeMap.get(t)||u}},{key:"cubicBezier",value:function(e,t,r,n){var i=function(e,t,r){var n=3*t,i=3*(r-t)-n;return(((1-n-i)*e+i)*e+n)*e},a=function(e,t,r){var n=3*t,i=3*(r-t)-n;return(3*(1-n-i)*e+2*i)*e+n};return function(o){var l=function(t){for(var n=t,o=0;o<8;o++){var l=i(n,e,r)-t;if(Math.abs(l)<1e-6)return n;var s=a(n,e,r);if(Math.abs(s)<1e-6)break;(n-=l/s)<0?n=0:n>1&&(n=1)}for(var u=0,c=1,d=0,h=0;h<20;h++){var f=i(d=(u+c)/2,e,r);if(Math.abs(f-t)<1e-6)return d;f<t?u=d:c=d}return d}(o=function(e){return e<=0?0:e>=1?1:e}(o));return i(l,t,n)}}}],(r=null)&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function u(e){return e}n=s,o(s,"LINEAR","linear"),o(s,"EASE","ease"),o(s,"EASE_IN","ease-in"),o(s,"EASE_OUT","ease-out"),o(s,"EASE_IN_OUT","ease-in-out"),o(s,"STEP_START","step-start"),o(s,"STEP_END","step-end");var c={_:n.cubicBezier(.25,.1,.25,1)},d={_:n.cubicBezier(.42,0,1,1)},h={_:n.cubicBezier(0,0,.58,1)},f={_:n.cubicBezier(.42,0,.58,1)};o(s,"easeMap",new Map([[n.LINEAR,u],[n.EASE,c._],[n.EASE_IN,d._],[n.EASE_OUT,h._],[n.EASE_IN_OUT,f._],[n.STEP_START,function(e){return e<=0?0:1}],[n.STEP_END,function(e){return e<1?0:1}]]))},494:function(e,t,r){r.d(t,{$:function(){return d}});var n=r(249),i=r(333),a=r(952);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var d=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t,this.index=r,this.isLightweightChild=!0,this.type="".concat(t.type,"_"),this.oid="".concat(t.oid,"_gpu_").concat(r),this.x=0,this.y=0,this.absX=0,this.absY=0,this.targets={},this.targetValues={},this.allTargetMap={},this.actualValues={isVisible:!0},this.visibilityStatus=void 0,this.noDomUpdatingTargets=void 0,this.updatingTargetList=[],this.activeTargetList=[],this.activatedTargets=[],this.updatingTargetMap={},this.runtimeState={updatingTargetList:this.updatingTargetList,activeTargetList:this.activeTargetList,activatedTargets:this.activatedTargets,fetchActionTargetList:[],lastChildrenUpdate:{additions:[],deletions:[]}},this.pendingTargets=!1,this.currentStatus=void 0,this.dirtyLayout=!1},t=[{key:"state",value:function(){return this.runtimeState}},{key:"isTargetImperative",value:function(e){var t;return!0===(null===(t=this.targetValues[e])||void 0===t?void 0:t.isImperative)}},{key:"isComplete",value:function(){return i.g.isTModelComplete(this)}},{key:"val",value:function(e,t){var r=i.g.getTargetName(e);return 2===arguments.length?(this.parent.setChildValue(this.index,r,t),this):this.actualValues[r]}},{key:"getParent",value:function(){return this.parent}},{key:"getRealParent",value:function(){return this.parent}},{key:"getParentValue",value:function(e){var t;return null===(t=this.parent)||void 0===t?void 0:t.val(e)}},{key:"pval",value:function(e){return this.getParentValue(e)}},{key:"exists",value:function(){var e;return this.index>=0&&(null===(e=this.parent)||void 0===e?void 0:e.childHandles[this.index])===this}},{key:"hasAnimatingTargets",value:function(){return!1}},{key:"hasAnimatingChildren",value:function(){return!1}},{key:"hasUpdatingChildren",value:function(){return!1}},{key:"hasActiveChildren",value:function(){return!1}},{key:"getChildren",value:function(){return[]}},{key:"getChild",value:function(){}},{key:"hasChildren",value:function(){return!1}},{key:"clearUpdatingChildren",value:function(){this.updatingTargetList.length=0}},{key:"clearActiveChildren",value:function(){this.activeTargetList.length=0}},{key:"clearAnimatingChildren",value:function(){}},{key:"cancelAnimation",value:function(){}},{key:"hasEventDirty",value:function(){return!1}},{key:"markEventDirty",value:function(){}},{key:"markLayoutDirty",value:function(e){var t,r;null===(t=this.parent)||void 0===t||null===(r=t.markLayoutDirty)||void 0===r||r.call(t,"gpuChild-".concat(this.index,"-").concat(e))}},{key:"removeLayoutDirty",value:function(){}},{key:"getDirtyLayout",value:function(){return!1}},{key:"getX",value:function(){var e;return null!==(e=this.actualValues.x)&&void 0!==e?e:this.x}},{key:"getY",value:function(){var e;return null!==(e=this.actualValues.y)&&void 0!==e?e:this.y}},{key:"getWidth",value:function(){var e;return null!==(e=this.val("width"))&&void 0!==e?e:0}},{key:"getHeight",value:function(){var e;return null!==(e=this.val("height"))&&void 0!==e?e:0}},{key:"getBaseWidth",value:function(){return this.getWidth()}},{key:"getBaseHeight",value:function(){return this.getHeight()}},{key:"getMinWidth",value:function(){return this.getWidth()}},{key:"getTopBaseHeight",value:function(){return 0}},{key:"getMeasuringScale",value:function(){var e;return null!==(e=this.val("measuringScale"))&&void 0!==e?e:1}},{key:"getMarginTop",value:function(){var e,t;return null!==(e=null!==(t=this.val("marginTop"))&&void 0!==t?t:this.val("topMargin"))&&void 0!==e?e:0}},{key:"getMarginLeft",value:function(){var e,t;return null!==(e=null!==(t=this.val("marginLeft"))&&void 0!==t?t:this.val("leftMargin"))&&void 0!==e?e:0}},{key:"getMarginRight",value:function(){var e,t,r;return(null!==(e=null!==(t=this.val("marginRight"))&&void 0!==t?t:this.val("rightMargin"))&&void 0!==e?e:0)+(null!==(r=this.getParentValue("gap"))&&void 0!==r?r:0)}},{key:"getMarginBottom",value:function(){var e,t,r;return(null!==(e=null!==(t=this.val("marginBottom"))&&void 0!==t?t:this.val("bottomMargin"))&&void 0!==e?e:0)+(null!==(r=this.getParentValue("gap"))&&void 0!==r?r:0)}},{key:"getTopMargin",value:function(){return this.getMarginTop()}},{key:"getLeftMargin",value:function(){return this.getMarginLeft()}},{key:"getRightMargin",value:function(){return this.getMarginRight()}},{key:"getBottomMargin",value:function(){return this.getMarginBottom()}},{key:"getItemOverflowMode",value:function(){var e;return null!==(e=this.val("itemOverflowMode"))&&void 0!==e?e:"auto"}},{key:"isInFlow",value:function(){return!0}},{key:"isIncluded",value:function(){return!0}},{key:"useContentWidth",value:function(){return!1}},{key:"useContentHeight",value:function(){return!1}},{key:"getContentWidth",value:function(){return 0}},{key:"getContentHeight",value:function(){return 0}},{key:"hasDom",value:function(){return!1}},{key:"isDomIsland",value:function(){return!1}},{key:"reuseDomDefinition",value:function(){return!1}},{key:"requiresDom",value:function(){return!1}},{key:"requiresDomRelocation",value:function(){return!1}},{key:"hasDomHolderChanged",value:function(){return!1}},{key:"hasBaseElementChanged",value:function(){return!1}},{key:"getHtml",value:function(){return this.val("html")}},{key:"excludeDefaultStyling",value:function(){return!0}},{key:"excludeStyling",value:function(){return!0}},{key:"addToStyleTargetList",value:function(){}},{key:"calcAbsolutePosition",value:function(e,t){var r,n,i,a;this.absX=(null!==(r=null===(n=this.parent)||void 0===n?void 0:n.absX)&&void 0!==r?r:0)+e,this.absY=(null!==(i=null===(a=this.parent)||void 0===a?void 0:a.absY)&&void 0!==i?i:0)+t}},{key:"isVisible",value:function(){return!1!==this.actualValues.isVisible}},{key:"calcVisibility",value:function(){var e=this.parent;if(!e)return!1;var t=(e.getMeasuringScale()||1)*this.getMeasuringScale(),r=this.absX,n=this.absY,i=t*this.getWidth(),o=t*this.getHeight(),l=a.n.checkVisibility(this,{x:r-20,y:n-20,r:r+i+20,b:n+o+20});return this.actualValues.isVisible=l.isVisible,l.isVisible}},{key:"addToNoDomUpdatingTargets",value:function(e){var t,r=i.g.getTargetName(e),n=this.noDomUpdatingTargets||(this.noDomUpdatingTargets=new Set);return!n.has(r)&&(n.add(r),null===(t=this.parent)||void 0===t||t.addToUpdatingChildren(this),!0)}},{key:"removeFromNoDomUpdatingTargets",value:function(e){if(!this.noDomUpdatingTargets)return!1;var t,r=this.noDomUpdatingTargets.delete(i.g.getTargetName(e));return this.noDomUpdatingTargets.size||(this.noDomUpdatingTargets=void 0,null===(t=this.parent)||void 0===t||t.removeFromUpdatingChildren(this)),r}},{key:"catchupNoDomLayoutTargets",value:function(){var e;return null===(e=this.parent)||void 0===e?void 0:e.catchupChildLayoutTargets(this)}},{key:"validateVisibilityInParent",value:function(){return!0}},{key:"setLayoutX",value:function(e){this.x!==e&&(this.x=e,this.parent.particleValuesDirty=!0)}},{key:"setLayoutY",value:function(e){this.y!==e&&(this.y=e,this.parent.particleValuesDirty=!0)}},{key:"setTarget",value:function(e,t,r,n,a){var l=i.g.currentTargetName,u=i.g.currentTModel;if(this.parent===u&&l&&i.g.markChildAction(u,l,this),e&&"object"===s(e)&&!Array.isArray(e)){for(var c=e,d=t,h=r,f=n,v=0,g=Object.entries(c);v<g.length;v++){var p=o(g[v],2),y=p[0],m=p[1],b=i.g.getTargetName(y);this.allTargetMap[b]=y,this.parent.setChildTarget(this.index,y,m,d,h,f)}return this}var T=i.g.getTargetName(e);return this.allTargetMap[T]=e,this.parent.setChildTarget(this.index,e,t,r,n,a),this}},{key:"activateTarget",value:function(e){return this.parent.activateGpuChildTarget(this.index,e),this}},{key:"getLayoutHeight",value:function(){var e=this.getHeight();return this.usesContentBoxSizing()&&(e+=this.getPaddingTop()+this.getPaddingBottom()),e}},{key:"getLayoutWidth",value:function(){var e=this.getWidth();return this.usesContentBoxSizing()&&(e+=this.getPaddingLeft()+this.getPaddingRight()),e}},{key:"addToUpdatingTargets",value:function(e){var t;this.updatingTargetMap[e]||(this.updatingTargetMap[e]=!0,this.updatingTargetList.push(e),null===(t=this.parent)||void 0===t||t.addToUpdatingChildren(this))}},{key:"removeFromUpdatingTargets",value:function(e){if(this.updatingTargetMap[e]){delete this.updatingTargetMap[e];var t,r=this.updatingTargetList.indexOf(e);r>=0&&this.updatingTargetList.splice(r,1),this.updatingTargetList.length||null===(t=this.parent)||void 0===t||t.removeFromUpdatingChildren(this)}}},{key:"usesContentBoxSizing",value:function(){return"border-box"!==this.getBoxSizing()}},{key:"getBoxSizing",value:function(){var e,t,r;return null!==(e=null!==(t=null!==(r=this.val("boxSizing"))&&void 0!==r?r:this.val("box-sizing"))&&void 0!==t?t:this.getParentValue("boxSizing"))&&void 0!==e?e:"content-box"}},{key:"getPaddingTop",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingTop"))&&void 0!==t?t:this.val("topPadding"))&&void 0!==e?e:n.a.getPaddingValue(this,"top")}},{key:"getPaddingLeft",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingLeft"))&&void 0!==t?t:this.val("leftPadding"))&&void 0!==e?e:n.a.getPaddingValue(this,"left")}},{key:"getPaddingRight",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingRight"))&&void 0!==t?t:this.val("rightPadding"))&&void 0!==e?e:n.a.getPaddingValue(this,"right")}},{key:"getPaddingBottom",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingBottom"))&&void 0!==t?t:this.val("bottomPadding"))&&void 0!==e?e:n.a.getPaddingValue(this,"bottom")}}],t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},969:function(e,t,r){r.d(t,{e:function(){return g}});var n=r(737),i=r(34);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),l=new A(n||[]);return i(o,"_invoke",{value:D(e,r,l)}),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var v="suspendedStart",g="suspendedYield",p="executing",y="completed",m={};function b(){}function T(){}function w(){}var k={};d(k,l,(function(){return this}));var S=Object.getPrototypeOf,x=S&&S(S(j([])));x&&x!==r&&n.call(x,l)&&(k=x);var M=w.prototype=b.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(i,o,l,s){var u=f(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==a(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,l,s)}),(function(e){r("throw",e,l,s)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return r("throw",e,l,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function D(t,r,n){var i=v;return function(a,o){if(i===p)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=P(l,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===v)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=f(t,r,n);if("normal"===u.type){if(i=n.done?y:g,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(a(t)+" is not iterable")}return T.prototype=w,i(M,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:T,configurable:!0}),T.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},C(E.prototype),d(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new E(h(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(M),d(M,u,"Generator"),d(M,l,(function(){return this})),d(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function d(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){d(a,n,i,o,l,"next",e)}function l(e){d(a,n,i,o,l,"throw",e)}o(void 0)}))}}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v(n.key),n)}}function v(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var g=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tmodel=t,this.canvas=void 0,this.device=void 0,this.context=void 0,this.format=void 0,this.pipeline=void 0,this.bindGroup=void 0,this.particleBuffer=void 0,this.targetParticleBuffer=void 0,this.uniformBuffer=void 0,this.transitionStep=0,this.transitionActive=!1,this.particleCount=0,this.canvasLayer=void 0,this.canvasX=0,this.canvasY=0,this.initializationPromise=void 0},t=[{key:"init",value:(g=h(c().mark((function e(){var t=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.device){e.next=2;break}return e.abrupt("return",!0);case 2:if(this.tmodel.hasDom()){e.next=4;break}return e.abrupt("return",!1);case 4:return this.initializationPromise||(this.initializationPromise=this.initialize().catch((function(e){throw t.initializationPromise=void 0,e}))),e.next=7,this.initializationPromise;case 7:return e.abrupt("return",!!this.device);case 8:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"initialize",value:(v=h(c().mark((function e(){var t;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.gpu){e.next=2;break}throw new Error("WebGPU is not supported by this browser.");case 2:if(globalThis.GPUBufferUsage){e.next=4;break}throw new Error("GPUBufferUsage is not available in this WebGPU environment.");case 4:return this.createCanvas(),e.next=7,navigator.gpu.requestAdapter();case 7:if(t=e.sent){e.next=10;break}throw new Error("Unable to obtain a WebGPU adapter.");case 10:return e.next=12,t.requestDevice();case 12:if(this.device=e.sent,this.context=this.canvas.getContext("webgpu"),this.context){e.next=16;break}throw new Error("Unable to obtain a WebGPU canvas context.");case 16:this.format=navigator.gpu.getPreferredCanvasFormat(),this.resizeCanvas(),this.context.configure({device:this.device,format:this.format,alphaMode:"premultiplied"}),this.createUniformBuffer(),this.createPipeline();case 21:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"createCanvas",value:function(){var e,t,r,n=this;if(!this.canvas){var i=null===(e=this.tmodel.$dom)||void 0===e?void 0:e.element;if(!i)throw new Error("Unable to create a GPU child layer without a parent DOM element.");var a=i.querySelector('[data-targetjs-gpu-layer="true"]');a&&a.remove(),this.canvasLayer=document.createElement("div"),this.canvasLayer.setAttribute("data-targetjs-gpu-layer","true"),Object.assign(this.canvasLayer.style,{position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",pointerEvents:"none",zIndex:"0"}),this.canvas=document.createElement("canvas"),this.canvas.setAttribute("data-targetjs-gpu-children","true"),Object.assign(this.canvas.style,{position:"absolute",left:"0px",top:"0px",width:"1px",height:"1px",display:"block",pointerEvents:"none"}),this.canvasLayer.appendChild(this.canvas),i.prepend(this.canvasLayer),this.onScroll=function(){return n.tmodel.requestParticleRender()},this.scrollElements=l(new Set([null===(t=this.tmodel.$dom)||void 0===t?void 0:t.element,null===(r=this.tmodel.getParent())||void 0===r||null===(r=r.$dom)||void 0===r?void 0:r.element].filter(Boolean)));var s,u=o(this.scrollElements);try{for(u.s();!(s=u.n()).done;)s.value.addEventListener("scroll",this.onScroll,{passive:!0})}catch(e){u.e(e)}finally{u.f()}}}},{key:"createUniformBuffer",value:function(){this.uniformBuffer=this.device.createBuffer({size:32,usage:globalThis.GPUBufferUsage.UNIFORM|globalThis.GPUBufferUsage.COPY_DST})}},{key:"createPipeline",value:function(){var e=this.device.createShaderModule({code:"\n struct Uniforms {\n viewport: vec2f,\n contentOffset: vec2f,\n step: f32,\n transitionActive: f32,\n padding: vec2f,\n }\n\n @group(0) @binding(0)\n var<uniform> uniforms: Uniforms;\n\n struct VertexOutput {\n @builtin(position) position: vec4f,\n @location(0) localPosition: vec2f,\n @location(1) backgroundColor: vec4f,\n @location(2) size: vec2f,\n @location(3) borderRadius: f32,\n }\n\n fn getProgress(step: f32, steps: f32) -> f32 {\n if (uniforms.transitionActive < 0.5) {\n return 0.0;\n }\n\n if (steps < 0.0) {\n return 0.0;\n }\n\n if (steps == 0.0) {\n return 1.0;\n }\n\n return clamp(step / steps, 0.0, 1.0);\n }\n\n @vertex\n fn vertexMain(\n @location(0) childPosition: vec2f,\n @location(1) childSize: vec2f,\n @location(2) childBackgroundColor: vec4f,\n @location(3) childGeometry: vec2f,\n @location(4) targetPosition: vec2f,\n @location(5) targetSize: vec2f,\n @location(6) targetBackgroundColor: vec4f,\n @location(7) targetGeometry: vec2f,\n @location(8) targetPositionSteps: vec2f,\n @location(9) targetSizeSteps: vec2f,\n @location(10) targetBackgroundColorSteps: f32,\n @location(11) targetGeometrySteps: vec2f,\n @location(12) childScale: f32,\n @location(13) targetScale: f32,\n @location(14) targetScaleSteps: f32,\n @builtin(vertex_index) vertexIndex: u32\n ) -> VertexOutput {\n let corners = array<vec2f, 6>(\n vec2f(-1.0, -1.0),\n vec2f( 1.0, -1.0),\n vec2f(-1.0, 1.0),\n vec2f(-1.0, 1.0),\n vec2f( 1.0, -1.0),\n vec2f( 1.0, 1.0)\n );\n\n let xProgress = getProgress(uniforms.step, targetPositionSteps.x);\n let yProgress = getProgress(uniforms.step, targetPositionSteps.y);\n let widthProgress = getProgress(uniforms.step, targetSizeSteps.x);\n let heightProgress = getProgress(uniforms.step, targetSizeSteps.y);\n let backgroundColorProgress = getProgress(uniforms.step, targetBackgroundColorSteps);\n let borderRadiusProgress = getProgress(uniforms.step, targetGeometrySteps.x);\n let rotateProgress = getProgress(uniforms.step, targetGeometrySteps.y);\n let scaleProgress = getProgress(uniforms.step, targetScaleSteps);\n \n let position = vec2f(\n mix(childPosition.x, targetPosition.x, xProgress),\n mix(childPosition.y, targetPosition.y, yProgress)\n );\n\n let size = vec2f(\n mix(childSize.x, targetSize.x, widthProgress),\n mix(childSize.y, targetSize.y, heightProgress)\n );\n\n let backgroundColor = mix(childBackgroundColor, targetBackgroundColor, backgroundColorProgress);\n let borderRadius = mix(childGeometry.x, targetGeometry.x, borderRadiusProgress);\n let rotate = mix(childGeometry.y, targetGeometry.y, rotateProgress);\n let scale = mix(childScale, targetScale, scaleProgress);\n\n let localPosition = corners[vertexIndex];\n let localPixelPosition = localPosition * size * 0.5 * scale;\n\n let angle = rotate * 3.141592653589793 / 180.0;\n let cosine = cos(angle);\n let sine = sin(angle);\n\n let rotatedPosition = vec2f(\n localPixelPosition.x * cosine - localPixelPosition.y * sine,\n localPixelPosition.x * sine + localPixelPosition.y * cosine\n );\n\n let elementCenter = position - uniforms.contentOffset + size * 0.5;\n let pixelPosition = elementCenter + rotatedPosition;\n\n let clipPosition = vec2f(\n pixelPosition.x / uniforms.viewport.x * 2.0 - 1.0,\n 1.0 - pixelPosition.y / uniforms.viewport.y * 2.0\n );\n\n var output: VertexOutput;\n\n output.position = vec4f(clipPosition, 0.0, 1.0);\n output.localPosition = localPosition;\n output.backgroundColor = backgroundColor;\n output.size = size;\n output.borderRadius = borderRadius;\n\n return output;\n }\n @fragment\n fn fragmentMain(input: VertexOutput) -> @location(0) vec4f {\n let halfSize = max(input.size * 0.5, vec2f(0.0001));\n let radius = clamp(input.borderRadius, 0.0, min(halfSize.x, halfSize.y));\n let pixelPosition = input.localPosition * halfSize;\n let q = abs(pixelPosition) - (halfSize - vec2f(radius));\n let distance = length(max(q, vec2f(0.0))) + min(max(q.x, q.y), 0.0) - radius;\n let aa = max(fwidth(distance), 0.0001);\n\n if (radius <= 0.0) {\n return input.backgroundColor;\n }\n\n let coverage = 1.0 - smoothstep(-aa, aa, distance);\n\n if (coverage <= 0.0) {\n discard;\n }\n\n let alpha = input.backgroundColor.a * coverage;\n\n return vec4f(input.backgroundColor.rgb * alpha, alpha);\n }\n "});this.pipeline=this.device.createRenderPipeline({layout:"auto",vertex:{module:e,entryPoint:"vertexMain",buffers:[{arrayStride:80,stepMode:"instance",attributes:[{shaderLocation:0,offset:0,format:"float32x2"},{shaderLocation:1,offset:8,format:"float32x2"},{shaderLocation:2,offset:16,format:"float32x4"},{shaderLocation:3,offset:32,format:"float32x2"},{shaderLocation:12,offset:68,format:"float32"}]},{arrayStride:80,stepMode:"instance",attributes:[{shaderLocation:4,offset:0,format:"float32x2"},{shaderLocation:5,offset:8,format:"float32x2"},{shaderLocation:6,offset:16,format:"float32x4"},{shaderLocation:7,offset:32,format:"float32x2"},{shaderLocation:8,offset:40,format:"float32x2"},{shaderLocation:9,offset:48,format:"float32x2"},{shaderLocation:10,offset:56,format:"float32"},{shaderLocation:11,offset:60,format:"float32x2"},{shaderLocation:13,offset:68,format:"float32"},{shaderLocation:14,offset:72,format:"float32"}]}]},fragment:{module:e,entryPoint:"fragmentMain",targets:[{format:this.format,blend:{color:{srcFactor:"one",dstFactor:"one-minus-src-alpha",operation:"add"},alpha:{srcFactor:"one",dstFactor:"one-minus-src-alpha",operation:"add"}}}]},primitive:{topology:"triangle-list"}}),this.bindGroup=this.device.createBindGroup({layout:this.pipeline.getBindGroupLayout(0),entries:[{binding:0,resource:{buffer:this.uniformBuffer}}]})}},{key:"toNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="string"==typeof e?parseFloat(e):Number(e);return Number.isFinite(r)?r:t}},{key:"getBackgroundColor",value:function(e){if(!i.d.isDefined(e))return[0,0,0,0];if(Array.isArray(e))return[this.toNumber(e[0],0),this.toNumber(e[1],0),this.toNumber(e[2],0),this.toNumber(e[3],0)];var t=n.I.color2Integers(e);if(!t)return[0,0,0,0];var r=this.toNumber(t[3],1);return r>1&&(r/=255),[this.toNumber(t[0],0)/255,this.toNumber(t[1],0)/255,this.toNumber(t[2],0)/255,r]}},{key:"getTargetStep",value:function(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)?Math.max(0,this.toNumber(e[t],0)):-1}},{key:"writeParticleData",value:function(e,t,r,n){var i,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null===(i=r)||void 0===i?void 0:i.x,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null===(a=r)||void 0===a?void 0:a.y;r||(r={});var s=this.getBackgroundColor(r.backgroundColor),u=Math.max(0,Math.min(1,this.toNumber(r.opacity,1)));e[t]=this.toNumber(o,0),e[t+1]=this.toNumber(l,0),e[t+2]=this.toNumber(r.width,0),e[t+3]=this.toNumber(r.height,0),e[t+4]=s[0],e[t+5]=s[1],e[t+6]=s[2],e[t+7]=s[3]*u,e[t+8]=Math.max(0,this.toNumber(r.borderRadius,0)),e[t+9]=this.toNumber(r.rotate,0),e[t+10]=this.getTargetStep(n,"x"),e[t+11]=this.getTargetStep(n,"y"),e[t+12]=this.getTargetStep(n,"width"),e[t+13]=this.getTargetStep(n,"height");var c=this.getTargetStep(n,"backgroundColor"),d=this.getTargetStep(n,"opacity");e[t+14]=d>=0?d:c,e[t+15]=this.getTargetStep(n,"borderRadius"),e[t+16]=this.getTargetStep(n,"rotate"),e[t+17]=this.toNumber(r.scale,1),e[t+18]=this.getTargetStep(n,"scale")}},{key:"createChildData",value:function(e){for(var t=new Float32Array(20*e.length),r=0;r<e.length;r++){var n=e[r],i=n.actualValues,a=this.getParticlePosition(n,i),o=a.x,l=a.y;this.writeParticleData(t,20*r,i,void 0,o,l)}return t}},{key:"createParticleData",value:function(e,t){for(var r=new Float32Array(20*e.length),n=0;n<e.length;n++){var i=this.tmodel.childHandles[n],a=this.getParticlePosition(i,e[n]),o=a.x,l=a.y;this.writeParticleData(r,20*n,e[n],null==t?void 0:t[n],o,l)}return r}},{key:"uploadParticleBuffer",value:function(e,t){var r,n;if(t.length)return e&&e.size===t.byteLength||(null===(r=e)||void 0===r||r.destroy(),e=this.device.createBuffer({size:t.byteLength,usage:globalThis.GPUBufferUsage.VERTEX|globalThis.GPUBufferUsage.COPY_DST})),this.device.queue.writeBuffer(e,0,t),e;null===(n=e)||void 0===n||n.destroy()}},{key:"setParticles",value:(d=h(c().mark((function e(t){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Array.isArray(t)?t:[t],e.next=3,this.init();case 3:if(e.sent){e.next=6;break}return e.abrupt("return",!1);case 6:return r=this.createChildData(t),this.particleCount=t.length,this.particleBuffer=this.uploadParticleBuffer(this.particleBuffer,r),this.targetParticleBuffer=this.uploadParticleBuffer(this.targetParticleBuffer,r),this.transitionStep=0,this.transitionActive=!1,this.render(),e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"updateParticles",value:(u=h(c().mark((function e(t){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Array.isArray(t)?t:[t],e.next=3,this.init();case 3:if(e.sent){e.next=6;break}return e.abrupt("return",!1);case 6:return r=this.createChildData(t),this.particleCount=t.length,this.particleBuffer=this.uploadParticleBuffer(this.particleBuffer,r),t.length&&this.transitionActive||(this.targetParticleBuffer=this.uploadParticleBuffer(this.targetParticleBuffer,r)),t.length||(this.transitionStep=0,this.transitionActive=!1),this.render(),e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"setTargetParticles",value:(s=h(c().mark((function e(t,r){var n,i,a,o,l=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>2&&void 0!==l[2]?l[2]:this.tmodel.childGeneration,t=Array.isArray(t)?t:[t],e.next=4,this.init();case 4:if(e.sent&&n===this.tmodel.childGeneration){e.next=7;break}return e.abrupt("return",!1);case 7:if(i=this.tmodel.childHandles,t.length===i.length){e.next=10;break}return e.abrupt("return",!1);case 10:return this.particleCount===i.length&&this.particleBuffer||(a=this.createChildData(i),this.particleCount=i.length,this.particleBuffer=this.uploadParticleBuffer(this.particleBuffer,a)),o=this.createParticleData(t,r),this.targetParticleBuffer=this.uploadParticleBuffer(this.targetParticleBuffer,o),this.transitionStep=0,this.transitionActive=!0,this.render(),e.abrupt("return",!0);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"setTransitionStep",value:function(e){(e=Math.max(0,this.toNumber(e,0)))!==this.transitionStep&&(this.transitionStep=e,this.render())}},{key:"getRenderWidth",value:function(){var e=Number(this.tmodel.getWidth())||1,t=Number(this.tmodel.getParent().getWidth())||window.innerWidth||1;return Math.max(1,Math.min(e,t))}},{key:"getRenderHeight",value:function(){var e,t=Number(this.tmodel.getHeight())||1,r=Number(null===(e=this.tmodel.getParent())||void 0===e?void 0:e.getHeight())||window.innerHeight||1;return Math.max(1,Math.min(t,r))}},{key:"updateCanvasLayerWidthHeight",value:function(){if(this.canvasLayer){var e=Math.max(this.getRenderHeight(),Number(this.tmodel.getContentHeight())||0),t=Math.max(this.getRenderWidth(),Number(this.tmodel.getContentWidth())||0),r="".concat(e,"px"),n="".concat(t,"px");this.canvasLayer.style.height!==r&&(this.canvasLayer.style.height=r),this.canvasLayer.style.width!==n&&(this.canvasLayer.style.width=n)}}},{key:"resizeCanvas",value:function(){var e;if(this.canvas&&this.device){var t=this.getRenderWidth(),r=this.getRenderHeight(),n=window.devicePixelRatio||1,i=(null===(e=this.device.limits)||void 0===e?void 0:e.maxTextureDimension2D)||8192,a=Math.min(n,i/t,i/r),o=Math.max(1,Math.round(t*a)),l=Math.max(1,Math.round(r*a)),s="".concat(t,"px"),u="".concat(r,"px");this.canvas.style.width!==s&&(this.canvas.style.width=s),this.canvas.style.height!==u&&(this.canvas.style.height=u),this.canvas.width!==o&&(this.canvas.width=o),this.canvas.height!==l&&(this.canvas.height=l),this.updateCanvasLayerWidthHeight()}}},{key:"repositionCanvas",value:function(){var e,t;if(!this.canvas||!this.canvasLayer||!this.tmodel.hasDom())return!1;var r=this.tmodel,n=r.getParent(),i=(null==n||null===(e=n.$dom)||void 0===e?void 0:e.getScrollLeft())||r.$dom.getScrollLeft()||0,a=(null==n||null===(t=n.$dom)||void 0===t?void 0:t.getScrollTop())||r.$dom.getScrollTop()||0,o=r.getScrollLeft(),l=r.getScrollTop(),s=i-r.x,u=a-r.y;this.canvasX=o+s,this.canvasY=l+u;var c="translate3d(".concat(s,"px, ").concat(u,"px, 0px)");return this.canvas.style.transform!==c&&(this.canvas.style.transform=c,!0)}},{key:"getParticlePosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==e?void 0:e.actualValues,r=Number(this.tmodel.getScrollLeft())||0,n=Number(this.tmodel.getScrollTop())||0;return{x:e.allTargetMap.x?t.x:e.x+r,y:e.allTargetMap.y?t.y:e.y+n}}},{key:"updateUniforms",value:function(){var e=this.getRenderWidth(),t=this.getRenderHeight();this.device.queue.writeBuffer(this.uniformBuffer,0,new Float32Array([e,t,this.canvasX,this.canvasY,this.transitionStep,this.transitionActive?1:0,0,0]))}},{key:"waitForPresentedFrame",value:(a=h(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.device){e.next=3;break}return e.next=3,this.device.queue.onSubmittedWorkDone();case 3:return e.next=5,new Promise((function(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}));case 5:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){if(this.device&&this.context){this.resizeCanvas(),this.repositionCanvas();var e=this.pipeline&&this.bindGroup&&this.particleBuffer&&this.targetParticleBuffer&&this.particleCount>0;e&&this.updateUniforms();var t=this.device.createCommandEncoder(),r=t.beginRenderPass({colorAttachments:[{view:this.context.getCurrentTexture().createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:"clear",storeOp:"store"}]});e&&(r.setPipeline(this.pipeline),r.setBindGroup(0,this.bindGroup),r.setVertexBuffer(0,this.particleBuffer),r.setVertexBuffer(1,this.targetParticleBuffer),r.draw(6,this.particleCount)),r.end(),this.device.queue.submit([t.finish()])}}},{key:"completeTransition",value:function(){if(this.targetParticleBuffer&&this.transitionActive){var e=this.particleBuffer;this.particleBuffer=this.targetParticleBuffer,this.targetParticleBuffer=e,this.transitionStep=0,this.transitionActive=!1,this.render()}}},{key:"captureBitmap",value:function(){if(this.canvas&&this.device)return this.render(),createImageBitmap(this.canvas)}},{key:"destroy",value:function(){var e,t,r,n,i,a,l,s=o(null!==(a=this.scrollElements)&&void 0!==a?a:[]);try{for(s.s();!(l=s.n()).done;)l.value.removeEventListener("scroll",this.onScroll)}catch(e){s.e(e)}finally{s.f()}this.scrollElements=void 0,this.onScroll=void 0,null===(e=this.particleBuffer)||void 0===e||e.destroy(),null===(t=this.targetParticleBuffer)||void 0===t||t.destroy(),null===(r=this.uniformBuffer)||void 0===r||r.destroy(),null===(n=this.context)||void 0===n||n.unconfigure(),null===(i=this.canvasLayer)||void 0===i||i.remove(),this.particleBuffer=void 0,this.targetParticleBuffer=void 0,this.uniformBuffer=void 0,this.bindGroup=void 0,this.pipeline=void 0,this.context=void 0,this.device=void 0,this.canvasLayer=void 0,this.canvas=void 0,this.format=void 0,this.transitionStep=0,this.transitionActive=!1,this.particleCount=0,this.initializationPromise=void 0}}],t&&f(e.prototype,t),r&&f(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,a,s,u,d,v,g}()},720:function(e,t,r){r.d(t,{f:function(){return x}});var n=r(421),i=r(138),a=r(333),o=r(249),l=r(34),s=r(855),u=r(690);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||T(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(){h=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),l=new A(n||[]);return i(o,"_invoke",{value:D(e,r,l)}),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var v="suspendedStart",g="suspendedYield",p="executing",y="completed",m={};function b(){}function T(){}function w(){}var k={};u(k,o,(function(){return this}));var S=Object.getPrototypeOf,x=S&&S(S(j([])));x&&x!==r&&n.call(x,o)&&(k=x);var M=w.prototype=b.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(i,a,o,l){var s=f(e[i],e,a);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==c(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,r,n){var i=v;return function(a,o){if(i===p)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=P(l,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===v)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=f(t,r,n);if("normal"===u.type){if(i=n.done?y:g,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(c(t)+" is not iterable")}return T.prototype=w,i(M,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:T,configurable:!0}),T.displayName=u(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,s,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},C(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new E(d(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(M),u(M,s,"Generator"),u(M,o,(function(){return this})),u(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function f(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){f(a,n,i,o,l,"next",e)}function l(e){f(a,n,i,o,l,"throw",e)}o(void 0)}))}}function g(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=T(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=S(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||T(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){if(e){if("string"==typeof e)return w(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S(n.key),n)}}function S(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var x=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tmodel=t,this.activeTargets=[],this.restoredMainIndexes=[],this.restoredActivationSequences=[],this.restoredImperativeExecutions=[],this.activeRenderExecutions=new Set,this.animationFrameRequested=!1,this.startQueue=[],this.startQueueIndex=0,this.disposed=!1,this.animationFrameId=void 0},t=[{key:"registerChild",value:function(e,t,r){var n=r.runtimeTargets.some((function(e){return!1!==e.requiresRuntime}));return this.tmodel.childRuntimePrograms[e]=r.runtimeTargets,this.tmodel.childRuntimeStates[e]={ownerTargetName:t,nextTargetIndex:0,activationCount:0,executions:{},startRequested:!1,startQueued:!1,renderReady:!1,started:!1,done:!n},n&&(this.tmodel.pendingGpuChildRuntimeCounts[t]=(this.tmodel.pendingGpuChildRuntimeCounts[t]||0)+1),n}},{key:"removeChild",value:function(e){var t=this.tmodel.childRuntimeStates[e];t&&(t.cancelled=!0,t.done||this.complete(e));for(var r=0,n=b(this.activeRenderExecutions);r<n.length;r++){var i=n[r];if(i.index!==e)i.index>e&&i.index--;else{this.activeRenderExecutions.delete(i),i.cancelled=!0;var a=i.resolve;i.resolve=void 0,null==a||a()}}this.tmodel.childRuntimePrograms.splice(e,1),this.tmodel.childRuntimeStates.splice(e,1),this.activeTargets.splice(e,1),this.startQueue=this.startQueue.slice(this.startQueueIndex).filter((function(t){return t!==e})).map((function(t){return t>e?t-1:t})),this.startQueueIndex=0,this.restoredMainIndexes=this.restoredMainIndexes.filter((function(t){return t!==e})).map((function(t){return t>e?t-1:t})),this.restoredActivationSequences=this.restoredActivationSequences.filter((function(t){return t.index!==e})).map((function(t){return t.index>e?y(y({},t),{},{index:t.index-1}):t})),this.restoredImperativeExecutions=this.restoredImperativeExecutions.filter((function(t){return t.index!==e})).map((function(t){return t.index>e?y(y({},t),{},{index:t.index-1}):t}))}},{key:"hasPending",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";if("none"===r)return!1;var n=a.g.getTargetName(e);return this.tmodel.childRuntimeStates.some((function(e,i){return!(!e||e.ownerTargetName!==n||"visible"===r&&a.g.shouldIgnoreChildForCompletion(t.tmodel.childHandles[i],"visible")||e.done&&!(Object.keys(t.activeTargets[i]||{}).length>0))}))}},{key:"isIntervalTarget",value:function(e){return u.D.isIntervalTarget(e.target)}},{key:"prepareRestore",value:function(){this.restoredMainIndexes=[],this.restoredActivationSequences=[],this.restoredImperativeExecutions=[];for(var e=0;e<this.tmodel.childRuntimeStates.length;e++){var t,r,n=this.tmodel.childRuntimeStates[e];if(n){null!==(t=n.executions)&&void 0!==t||(n.executions={}),null!==(r=n.activationCount)&&void 0!==r||(n.activationCount=0);var i=Object.values(n.executions),a=i.filter((function(e){return"main"===e.sequenceId}));n.done||!n.started&&!a.length||this.restoredMainIndexes.push(e);var o,l=b(new Set(i.map((function(e){return e.sequenceId})).filter((function(e){return null==e?void 0:e.startsWith("activation:")})))),s=g(l);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.restoredActivationSequences.push({index:e,sequenceId:u})}}catch(e){s.e(e)}finally{s.f()}for(var c=0,d=i;c<d.length;c++){var h,f=d[c];null!==(h=f.sequenceId)&&void 0!==h&&h.startsWith("imperative:")&&this.restoredImperativeExecutions.push({index:e,execution:f})}n.started=!1,n.renderReady=!1,n.startRequested=!1}}}},{key:"resumeRestored",value:function(){var e,t=this.restoredMainIndexes.splice(0),r=this.restoredActivationSequences.splice(0),n=this.restoredImperativeExecutions.splice(0),i=g(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;this.resumeMainProgram(a)}}catch(e){i.e(e)}finally{i.f()}var o,l=g(r);try{for(l.s();!(o=l.n()).done;){var s=o.value,u=s.index,c=s.sequenceId;this.resumeActivationSequence(u,c)}}catch(e){l.e(e)}finally{l.f()}var d,h=g(n);try{for(h.s();!(d=h.n()).done;){var f=d.value,v=f.index,p=f.execution;this.resumeImperativeExecution(v,p)}}catch(e){h.e(e)}finally{h.f()}}},{key:"resumeActivationSequence",value:function(e,t){var r,n,i=this,a=this.tmodel.childRuntimeStates[e];if(!a)return!1;var o=Object.values(a.executions||{}).filter((function(e){return e.sequenceId===t}));if(!o.length)return!1;var l=Math.max.apply(Math,b(o.map((function(e){return e.targetIndex})))),s=t.startsWith("activation:")?t.slice(11):t,u=null!==(n=(r=this.activeTargets)[e])&&void 0!==n?n:r[e]={},c=Promise.all(o.map((function(t){return i.resumeExecution(e,t)}))).then((function(){return i.continueActivatedSequence(e,l+1,t)})).catch((function(e){console.error(e)})).finally((function(){delete u[s]}));return u[s]=c,!0}},{key:"resumeImperativeExecution",value:function(e,t){var r=this,n=this.tmodel.childHandles[e],i=this.tmodel.childRuntimeStates[e],o=null==t?void 0:t.imperativeTarget;if(!n||!i||!o)return!1;if("render"!==t.kind&&"runtime"!==t.kind)return!1;var u=t.imperativeKey||o.imperativeKey||"".concat(t.targetName,"+");t.segmentReady&&t.interval>0&&(t.segmentStartTime=l.d.now()-t.step*t.interval,t.pausedAt=void 0);var c={isImperative:!0,originalTargetName:o.originalTargetName,originalTModel:o.originalTargetIsParent?this.tmodel:void 0,status:"updating",value:o.target.value,steps:o.target.steps||0,interval:o.target.interval||0,easing:o.target.easing};n.targetValues[u]=c,n.addToUpdatingTargets(u);var d="render"===t.kind?this.runRenderTarget(e,o,t.targetIndex,t.sequenceId):this.runRuntimeTarget(e,o,t.targetIndex,t.sequenceId);return Promise.resolve(d).catch((function(e){console.error(e)})).finally((function(){r.disposed||n.targetValues[u]!==c||(c.status="done",n.removeFromUpdatingTargets(u),o.originalTargetIsParent&&o.originalTargetName&&a.g.shouldActivateNextTarget(r.tmodel,o.originalTargetName,1,0,!0,"complete"),(0,s.fB)().schedule(1,"gpuImperativeComplete-".concat(n.oid,"-").concat(u)))})),!0}},{key:"continueActivatedSequence",value:(x=v(h().mark((function e(t,r,n){var i,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.disposed){e.next=2;break}return e.abrupt("return");case 2:if(i=this.tmodel.childRuntimePrograms[t]){e.next=5;break}return e.abrupt("return");case 5:if(this.disposed||!(r<i.length)){e.next=14;break}if("deferred"===(a=i[r]).mode){e.next=9;break}return e.abrupt("break",14);case 9:return e.next=11,this.runTarget(t,a,r,n);case 11:r++,e.next=5;break;case 14:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return x.apply(this,arguments)})},{key:"resumeMainProgram",value:function(e){var t=this,r=this.tmodel.childRuntimeStates[e];if(!this.disposed&&r&&!r.done&&!r.started){r.started=!0;var n=Object.values(r.executions||{}).filter((function(e){return"main"===e.sequenceId}));Promise.all(n.map((function(r){return t.resumeExecution(e,r)}))).then((function(){return t.runProgram(e)})).catch((function(e){console.error(e)})).finally((function(){t.complete(e)}))}}},{key:"resumeExecution",value:function(e,t){var r=this.tmodel.childRuntimePrograms[e],n=null==r?void 0:r[t.targetIndex];return n?"interval"===t.kind?this.runIntervalTarget(e,n,t.targetIndex,t.sequenceId):"render"===t.kind?this.runRenderTarget(e,n,t.targetIndex,t.sequenceId):"runtime"===t.kind?this.runRuntimeTarget(e,n,t.targetIndex,t.sequenceId):Promise.resolve():Promise.resolve()}},{key:"complete",value:function(e){var t;if(!this.disposed){var r=this.tmodel,n=r.childRuntimeStates[e];if(n&&!n.done){n.done=!0,n.started=!1;var i=n.ownerTargetName,o=Math.max(0,(r.pendingGpuChildRuntimeCounts[i]||0)-1);o>0?r.pendingGpuChildRuntimeCounts[i]=o:(delete r.pendingGpuChildRuntimeCounts[i],(0,s.fB)().schedule(1,"gpuChildRuntimeComplete-".concat(r.oid))),a.g.cleanupVisibleComplete(r,i);var l=b(null!==(t=r.pendingTargets)&&void 0!==t?t:[]).find((function(e){return a.g.getTargetName(e)===i}));l&&r.isTargetDone(l)&&!0===r.isTargetTreeComplete(l)&&(a.g.cleanupTarget(r,l),a.g.shouldActivateNextTarget(r,l))}}}},{key:"queueStart",value:function(e){var t=this.tmodel.childRuntimeStates[e];!t||t.done||t.started||(t.startRequested=!0)}},{key:"markRenderReady",value:function(e){var t,r=g(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=this.tmodel.childRuntimeStates[n];i&&(i.renderReady=!0)}}catch(e){r.e(e)}finally{r.f()}this.startReady()}},{key:"markPendingRenderReady",value:function(){var e,t=g(this.tmodel.childRuntimeStates);try{for(t.s();!(e=t.n()).done;){var r=e.value;null==r||!r.startRequested||r.started||r.done||(r.renderReady=!0)}}catch(e){t.e(e)}finally{t.f()}this.startReady()}},{key:"startReady",value:function(){if(!this.disposed){var e=this.tmodel;if(!e.hasDom()||e.completeLayoutEpoch!==e.layoutEpoch)return!1;for(var t=!1,r=0;r<e.childRuntimeStates.length;r++){var n=e.childRuntimeStates[r];n&&n.startRequested&&n.renderReady&&!n.startQueued&&!n.started&&!n.done&&(n.startQueued=!0,this.startQueue.push(r),t=!0)}return t&&this.requestAnimationFrame(),t}}},{key:"startQueuedPrograms",value:function(){for(var e=l.d.now(),t=0;this.startQueueIndex<this.startQueue.length&&t<5e3&&l.d.now()-e<4;){var r=this.startQueue[this.startQueueIndex++],n=this.tmodel.childRuntimeStates[r];n&&(n.startQueued=!1,n.startRequested&&n.renderReady&&!n.started&&!n.done&&(n.startRequested=!1,this.start(r),t++))}this.startQueueIndex>=this.startQueue.length&&(this.startQueue.length=0,this.startQueueIndex=0)}},{key:"start",value:function(e){var t=this;if(!this.disposed){var r=this.tmodel.childRuntimeStates[e],n=this.tmodel.childRuntimePrograms[e];r&&null!=n&&n.length&&!r.started&&!r.done&&(r.started=!0,r.nextTargetIndex=0,Promise.resolve(this.runProgram(e)).catch((function(e){console.error(e)})).finally((function(){t.complete(e)})))}}},{key:"runProgram",value:(S=v(h().mark((function e(t){var r,n,i,a,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.disposed){e.next=2;break}return e.abrupt("return");case 2:if(r=this.tmodel.childRuntimeStates[t],n=this.tmodel.childRuntimePrograms[t],r&&n){e.next=6;break}return e.abrupt("return");case 6:for(i=[];!r.cancelled&&r.nextTargetIndex<n.length&&"immediate"===n[r.nextTargetIndex].mode;)a=r.nextTargetIndex++,i.push(this.runTarget(t,n[a],a,"main"));if(!i.length){e.next=11;break}return e.next=11,Promise.all(i);case 11:if(!r.cancelled){e.next=13;break}return e.abrupt("return");case 13:if(r.cancelled||!(r.nextTargetIndex<n.length)){e.next=19;break}return o=r.nextTargetIndex++,e.next=17,this.runTarget(t,n[o],o,"main");case 17:e.next=13;break;case 19:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"runTarget",value:(w=v(h().mark((function e(t,r,n){var i,a=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=a.length>3&&void 0!==a[3]?a[3]:"main",!this.disposed){e.next=3;break}return e.abrupt("return");case 3:if(!1!==r.requiresRuntime){e.next=5;break}return e.abrupt("return");case 5:if(this.tmodel.childHandles[t]){e.next=8;break}return e.abrupt("return");case 8:if(!this.isIntervalTarget(r)){e.next=12;break}return e.next=11,this.runIntervalTarget(t,r,n,i);case 11:case 15:return e.abrupt("return");case 12:if(!r.renderable){e.next=16;break}return e.next=15,this.runRenderTarget(t,r,n,i);case 16:return e.next=18,this.runRuntimeTarget(t,r,n,i);case 18:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return w.apply(this,arguments)})},{key:"runRuntimeTarget",value:(T=v(h().mark((function e(t,r,n){var i,a,o,s,u,c,d,f,v,g,p=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=p.length>3&&void 0!==p[3]?p[3]:"main",a=this.tmodel.childHandles[t],o=r.target,s=r.targetName,u=this.getExecution(t,i,n)){e.next=25;break}if("function"!=typeof(c=o.value)){e.next=15;break}if(c=c.call(a),null===(d=c)||void 0===d||!d.then){e.next=13;break}return e.next=12,c;case 12:c=e.sent;case 13:if(!this.disposed){e.next=15;break}return e.abrupt("return");case 15:if(l.d.isDefined(c)){e.next=17;break}return e.abrupt("return");case 17:if(f=Array.isArray(c),v=a.actualValues[s],!((g=f?c:[l.d.isDefined(v)?v:c,c]).length<2)){e.next=23;break}return g.length&&(a.actualValues[s]=g[0]),e.abrupt("return");case 23:u={sequenceId:i,targetIndex:n,kind:"runtime",targetName:s,imperativeKey:r.imperativeKey,values:g,isValueList:f,pauseOn:o.pauseOn,segmentIndex:0,segmentReady:!1,step:0,segmentStartTime:0,waiting:!1,startTime:0,imperativeTarget:i.startsWith("imperative:")?{targetName:r.targetName,imperativeKey:r.imperativeKey,renderable:r.renderable,originalTargetName:r.originalTargetName,originalTargetIsParent:r.originalTargetIsParent,target:y({},r.target)}:void 0},this.setExecution(t,i,n,u);case 25:if(!(u.segmentIndex<u.values.length-1)){e.next=39;break}return u.segmentReady||this.prepareRenderSegment(u,r,a),e.next=29,this.animateExecution(t,u);case 29:if(!u.cancelled){e.next=31;break}return e.abrupt("return");case 31:u.segmentIndex++,u.segmentReady=!1,u.step=0,u.segmentStartTime=0,u.waiting=!1,u.startTime=0,e.next=25;break;case 39:this.clearExecution(t,i,n);case 40:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return T.apply(this,arguments)})},{key:"getExecutionId",value:function(e,t){return"".concat(e,":").concat(t)}},{key:"getExecution",value:function(e,t,r){var n,i=this.tmodel.childRuntimeStates[e];return null==i||null===(n=i.executions)||void 0===n?void 0:n[this.getExecutionId(t,r)]}},{key:"setExecution",value:function(e,t,r,n){var i,a=this.tmodel.childRuntimeStates[e];a&&(null!==(i=a.executions)&&void 0!==i||(a.executions={}),a.executions[this.getExecutionId(t,r)]=n)}},{key:"clearExecution",value:function(e,t,r){var n=this.tmodel.childRuntimeStates[e];null!=n&&n.executions&&delete n.executions[this.getExecutionId(t,r)]}},{key:"runIntervalTarget",value:(m=v(h().mark((function e(t,r,n,i){var a,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.tmodel.childHandles[t],(o=this.getExecution(t,i,n))||(o={sequenceId:i,targetIndex:n,kind:"interval",interval:Math.max(0,Number(this.resolveOption(r.target.interval,a))||0),waiting:!1,startTime:0},this.setExecution(t,i,n,o)),e.next=5,this.waitForExecution(o);case 5:if(!this.disposed&&!o.cancelled){e.next=7;break}return e.abrupt("return");case 7:this.clearExecution(t,i,n);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return m.apply(this,arguments)})},{key:"waitForExecution",value:(p=v(h().mark((function e(t){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.interval,t.waiting&&t.startTime>0?r=Math.max(0,t.interval-(l.d.now()-t.startTime)):(t.waiting=!0,t.startTime=l.d.now()),!(r>0)){e.next=5;break}return e.next=5,this.wait(r);case 5:t.waiting=!1,t.startTime=0;case 7:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"resolveInitialTargets",value:function(){for(var e=this.tmodel,t=!1,r=!1,n=0;n<e.childRuntimePrograms.length;n++){var a=e.childRuntimePrograms[n],o=e.childHandles[n];if(a&&o){var l,s=g(a);try{for(s.s();!(l=s.n()).done;){var c=l.value;if(!1===c.requiresRuntime&&i.D.affectsChildLayout(c.targetName)||c.requiresInitialResolution){var d=i.D.resolveValue(c.target,o),h=u.D.isTargetSpecObject(d)?d.value:d,f=Array.isArray(h)?h[0]:h;c.requiresInitialResolution&&(c.requiresInitialResolution=!1,c.initialResolvedValue=h),e.getChildValue(n,c.targetName)!==f&&e.setChildValue(n,c.targetName,f,!1)&&(i.D.affectsChildFlowLayout(c.targetName)&&(r=!0),t=!0)}}}catch(e){s.e(e)}finally{s.f()}}}return r&&e.invalidateLayout(),t}},{key:"runRenderTarget",value:(f=v(h().mark((function e(t,r,n){var i,a,o,s,u,c,d,f,v,g=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=g.length>3&&void 0!==g[3]?g[3]:"main",a=this.tmodel,o=a.childHandles[t],s=r.target,u=r.targetName,(c=this.getExecution(t,i,n))||("main"===i&&l.d.hasProperty(r,"initialResolvedValue")?(d=r.initialResolvedValue,delete r.initialResolvedValue):"function"==typeof(d=s.value)&&(d=d.call(o)),f=Array.isArray(d),v=f?d:[a.getChildValue(t,u),d],c={sequenceId:i,targetIndex:n,kind:"render",targetName:u,imperativeKey:r.imperativeKey,values:v,isValueList:f,pauseOn:s.pauseOn,segmentIndex:0,segmentReady:!1,step:0,segmentStartTime:0,waiting:!1,startTime:0,imperativeTarget:i.startsWith("imperative:")?{targetName:r.targetName,imperativeKey:r.imperativeKey,renderable:r.renderable,originalTargetName:r.originalTargetName,originalTargetIsParent:r.originalTargetIsParent,target:y({},r.target)}:void 0},this.setExecution(t,i,n,c));case 7:if(!(c.segmentIndex<c.values.length-1)){e.next=21;break}return c.segmentReady||this.prepareRenderSegment(c,r,o),e.next=11,this.animateExecution(t,c);case 11:if(!c.cancelled){e.next=13;break}return e.abrupt("return");case 13:c.segmentIndex++,c.segmentReady=!1,c.step=0,c.segmentStartTime=0,c.waiting=!1,c.startTime=0,e.next=7;break;case 21:this.clearExecution(t,i,n);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return f.apply(this,arguments)})},{key:"prepareRenderSegment",value:function(e,t,r){var n=t.target,i=e.segmentIndex;e.from=e.values[i],e.to=e.values[i+1],e.steps=Math.max(0,Number(this.resolveOption(n.steps,r,i))||0),e.interval=Math.max(0,Number(this.resolveOption(n.interval,r,i))||0),e.steps>0&&!e.interval&&(e.interval=8),e.easingName=this.resolveOption(n.easing,r,i),e.segmentStartTime||(e.segmentStartTime=l.d.now()-e.step*e.interval),e.segmentReady=!0}},{key:"resolveOption",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return"function"==typeof e?e.call(t,r):Array.isArray(e)?e.length?e[r%e.length]:void 0:e}},{key:"animateExecution",value:function(e,t){var r=this;return t.steps<=0?(this.setExecutionValue(e,t,t.to)&&"render"===t.kind&&this.tmodel.requestParticleRender(),Promise.resolve()):new Promise((function(n){t.index=e,t.resolve=n,r.activeRenderExecutions.add(t),r.requestAnimationFrame()}))}},{key:"setExecutionValue",value:function(e,t,r){if("render"===t.kind)return this.tmodel.setChildValue(e,t.targetName,r,!1);var n=this.tmodel.childHandles[e];return!(!n||n.actualValues[t.targetName]===r||(n.actualValues[t.targetName]=r,0))}},{key:"requestAnimationFrame",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=this;this.disposed||this.animationFrameRequested||(this.animationFrameRequested=!0,this.animationFrameId=requestAnimationFrame((function(){e.animationFrameId=void 0,e.animationFrameRequested=!1,e.disposed||e.updateRenderExecutions()})))}))},{key:"updateRenderExecutions",value:function(){if(!this.disposed){this.startQueuedPrograms();var e,t=l.d.now(),r=!1,a=!1,s=g(this.activeRenderExecutions);try{for(s.s();!(e=s.n()).done;){var u=e.value,c=this.tmodel.childHandles[u.index];if("function"==typeof u.pauseOn?u.pauseOn.call(c):!0===u.pauseOn){var d;null!==(d=u.pausedAt)&&void 0!==d||(u.pausedAt=t)}else{void 0!==u.pausedAt&&(u.segmentStartTime+=t-u.pausedAt,u.pausedAt=void 0);var h=t-u.segmentStartTime,f=u.interval>0?Math.min(Math.floor(h/u.interval),u.steps):u.steps;if(!(f<=u.step)){var v=u.easingName?n.G.easingFunction(u.easingName):void 0,p=f/u.steps,y=v?v(p):p,m=o.a.morph(u.targetName,u.from,u.to,y),b=this.setExecutionValue(u.index,u,m);if("render"===u.kind&&b&&i.D.affectsChildFlowLayout(u.targetName)&&(a=!0),"render"===u.kind&&(r||(r=b)),u.step=f,f>=u.steps){this.activeRenderExecutions.delete(u);var T=u.resolve;u.resolve=void 0,T()}}}}}catch(e){s.e(e)}finally{s.f()}a&&this.tmodel.invalidateLayout(),r&&this.tmodel.requestParticleRender(),(this.startQueueIndex<this.startQueue.length||this.activeRenderExecutions.size)&&this.requestAnimationFrame()}}},{key:"wait",value:function(e){var t,r=this;if(this.disposed)return Promise.resolve();var n=Math.max(0,Number(e)||0);if(0===n)return Promise.resolve();var i=4*Math.ceil((l.d.now()+n)/4);null!==(t=this.waitBuckets)&&void 0!==t||(this.waitBuckets=new Map);var a=this.waitBuckets.get(i);return a||((a={}).promise=new Promise((function(e){a.resolve=e,a.timeoutId=setTimeout((function(){r.waitBuckets.delete(i),e()}),Math.max(0,i-l.d.now()))})),this.waitBuckets.set(i,a)),a.promise}},{key:"findTargetIndex",value:function(e,t){var r=this.tmodel.childRuntimePrograms[e];if(!r)return-1;var n=i.D.getTargetName(t),a=r.findIndex((function(e){return!1!==e.requiresRuntime&&e.key===t}));return a>=0?a:r.findIndex((function(e){return!1!==e.requiresRuntime&&e.targetName===n&&"immediate"===e.mode}))}},{key:"runActivatedSequence",value:(c=v(h().mark((function e(t,r,n){var i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.disposed){e.next=2;break}return e.abrupt("return");case 2:if(i=this.tmodel.childRuntimePrograms[t],!(this.disposed||!i||r<0||r>=i.length)){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this.runTarget(t,i[r],r,n);case 7:if(this.disposed){e.next=10;break}return e.next=10,this.continueActivatedSequence(t,r+1,n);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return c.apply(this,arguments)})},{key:"cancelImperativeExecution",value:function(e,t){for(var r=0,n=b(this.activeRenderExecutions);r<n.length;r++){var i=n[r];if(i.index===e&&i.imperativeKey===t){this.activeRenderExecutions.delete(i),i.cancelled=!0,this.clearExecution(e,i.sequenceId,i.targetIndex);var a=i.resolve;i.resolve=void 0,null==a||a()}}}},{key:"setImperativeTarget",value:function(e,t,r,n,o,c,h,f){var v=this;if(!this.disposed){var g=this.tmodel.childHandles[e];if(g){var p=t.endsWith("+")?t:"".concat(t,"+");this.cancelImperativeExecution(e,p);var m=u.D.isTargetSpecObject(r)?y({},r):{value:r};void 0===m.steps&&(m.steps=n),void 0===m.interval&&(m.interval=o),void 0===m.easing&&(m.easing=c);var b=d(u.D.getValueStepsCycles(g,p,m,0),4),T=b[0],w=b[1],k=b[2],S=b[3],x={isImperative:!0,originalTargetName:h,originalTModel:f,status:"updating",value:T,steps:w||0,interval:k||0,easing:S};g.targetValues[p]=x,g.addToUpdatingTargets(p);var M={targetName:t,imperativeKey:p,renderable:i.D.isGpuTarget(t),originalTargetName:h,originalTargetIsParent:f===this.tmodel,target:{value:u.D.isListTarget(T)?T.list:T,steps:w,interval:k,easing:S,pauseOn:m.pauseOn}},C="imperative:".concat(e,":").concat(p,":").concat(l.d.now()),E=M.renderable?this.runRenderTarget(e,M,0,C):this.runRuntimeTarget(e,M,0,C);return E.finally((function(){v.disposed||g.targetValues[p]!==x||(x.status="done",g.removeFromUpdatingTargets(p),f&&h&&a.g.shouldActivateNextTarget(f,h,1,0,!0,"complete"),(0,s.fB)().schedule(1,"gpuImperativeComplete-".concat(g.oid,"-").concat(p)))})),E}}}},{key:"activateTarget",value:function(e,t){var r,n,i=this,o=this.tmodel.childRuntimeStates[e],l=this.tmodel.childRuntimePrograms[e];if(!o||!l)return!1;var s=this.findTargetIndex(e,t);if(s<0)throw new Error('GPU child target "'.concat(t,'" cannot be activated because it is not in the child runtime program.'));var u=l[s];if(this.isIntervalTarget(u))throw new Error('GPU child target "'.concat(t,'" cannot be activated.'));var c="".concat(u.key,"-").concat(++o.activationCount),d="activation:".concat(c),h=null!==(n=(r=this.activeTargets)[e])&&void 0!==n?n:r[e]={},f=Promise.resolve().then((function(){return i.runActivatedSequence(e,s,d)})).catch((function(e){console.error(e)})).finally((function(){delete h[c],i.disposed||a.g.cleanupVisibleComplete(i.tmodel,o.ownerTargetName)}));return h[c]=f,!0}},{key:"dispose",value:function(){var e,t,r;if(!this.disposed){this.disposed=!0,void 0!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),this.animationFrameRequested=!1,this.startQueue.length=0,this.startQueueIndex=0;var n,i=g(this.tmodel.childRuntimeStates);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a){a.cancelled=!0;for(var o=0,l=Object.values(a.executions||{});o<l.length;o++)l[o].cancelled=!0}}}catch(e){i.e(e)}finally{i.f()}var s,u=g(this.activeRenderExecutions);try{for(u.s();!(s=u.n()).done;){var c=s.value;c.cancelled=!0;var d=c.resolve;c.resolve=void 0,null==d||d()}}catch(e){u.e(e)}finally{u.f()}this.activeRenderExecutions.clear();var h,f=g(null!==(t=null===(r=this.waitBuckets)||void 0===r?void 0:r.values())&&void 0!==t?t:[]);try{for(f.s();!(h=f.n()).done;){var v=h.value;clearTimeout(v.timeoutId),v.resolve()}}catch(e){f.e(e)}finally{f.f()}null===(e=this.waitBuckets)||void 0===e||e.clear()}}}],t&&k(e.prototype,t),r&&k(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,c,f,p,m,T,w,S,x}()},599:function(e,t,r){r.d(t,{G:function(){return j}});var n=r(90),i=r(611),a=r(969),o=r(720),l=r(138),s=r(494),u=r(690),c=r(333),d=r(34),h=r(855);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=C(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function y(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return T(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function k(){k=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,o=Object.create(a.prototype),l=new A(n||[]);return i(o,"_invoke",{value:D(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",p={};function y(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var S=Object.getPrototypeOf,x=S&&S(S(j([])));x&&x!==r&&n.call(x,o)&&(T=x);var M=b.prototype=y.prototype=Object.create(T);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==w(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=P(l,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?g:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(w(t)+" is not iterable")}return m.prototype=b,i(M,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},C(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new E(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(M),u(M,s,"Generator"),u(M,o,(function(){return this})),u(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function S(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function x(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){S(a,n,i,o,l,"next",e)}function l(e){S(a,n,i,o,l,"throw",e)}o(void 0)}))}}function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C(n.key),n)}}function C(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}function E(e,t,r){return t=O(t),function(e,t){if(t&&("object"==w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,D()?Reflect.construct(t,r||[],O(e).constructor):t.apply(e,r))}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(D=function(){return!!e})()}function P(e,t,r,n){var i=L(O(1&n?e.prototype:e),t,r);return 2&n?function(e){return i.apply(r,e)}:i}function L(){return L="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},L.apply(null,arguments)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}var j=function(e){function t(e,r,n){var i,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=E(this,t,[e,r,n,l])).childActualValues=[],i.childTargetMaps=[],i.particleValuesDirty=!1,i.particleRenderRequested=!1,i.childHandles=[],i.childTargetValues={},i.childTransitions={},i.pendingGpuChildren={},i.childRuntimePrograms=[],i.childRuntimeStates=[],i.pendingGpuChildRuntimeCounts={},i.activeChildTransitionKey=void 0,i.gpuChildrenEnabled=!1,i.childGeneration=0,i.layoutEpoch=0,i.completeLayoutEpoch=-1,i.layoutCompleteWaiters=[],i.particleSyncPromise=void 0,i.restoringParticleRuntime=!1,i.particleRuntime=new o.f(i),i.particleRenderer=new a.e(i),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(t,e),r=t,i=[{key:"onDomReady",value:(T=x(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.restoringParticleRuntime){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.syncParticleRenderer();case 4:this.particleRuntime.markPendingRenderReady();case 5:case"end":return e.stop()}}),e,this)}))),function(){return T.apply(this,arguments)})},{key:"restoreRuntimeDomDerivedState",value:(b=x(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.gpuChildrenEnabled&&this.hasDom()){e.next=3;break}return this.restoringParticleRuntime=!1,e.abrupt("return",!1);case 3:return t=!1,e.prev=4,e.next=7,this.waitForLayoutComplete();case 7:return e.next=9,this.syncParticleRenderer();case 9:if(t=e.sent){e.next=12;break}return e.abrupt("return",!1);case 12:return e.next=14,this.particleRenderer.waitForPresentedFrame();case 14:return e.prev=14,this.restoringParticleRuntime=!1,e.finish(14);case 17:return t&&this.particleRuntime.resumeRestored(),e.abrupt("return",t);case 19:case"end":return e.stop()}}),e,this,[[4,,14,17]])}))),function(){return b.apply(this,arguments)})},{key:"syncParticleRenderer",value:function(){var e=this;return this.particleSyncPromise||(this.particleSyncPromise=this.syncParticleRendererNow().finally((function(){e.particleSyncPromise=void 0}))),this.particleSyncPromise}},{key:"syncParticleRendererNow",value:(g=x(k().mark((function e(){var t,r,n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.gpuChildrenEnabled&&this.hasDom()){e.next=2;break}return e.abrupt("return",!1);case 2:if(!this.childHandles.length){e.next=7;break}return e.next=5,this.particleRenderer.setParticles(this.childHandles);case 5:e.next=9;break;case 7:return e.next=9,this.particleRenderer.init();case 9:if(t=this.activeChildTransitionKey){e.next=12;break}return e.abrupt("return",!0);case 12:if(r=c.g.getTargetName(t),n=this.childTransitions[r]){e.next=16;break}return e.abrupt("return",!0);case 16:return e.next=18,this.particleRenderer.setTargetParticles(n.values,n.steps,n.generation);case 18:return e.sent&&this.childTransitions[r]===n&&this.handleSpecialTargetStep(t),e.abrupt("return",!0);case 21:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"requestParticleRender",value:function(){var e=this;!this.restoringParticleRuntime&&this.gpuChildrenEnabled&&this.hasDom()&&!this.particleRenderRequested&&(this.particleRenderRequested=!0,requestAnimationFrame((function(){e.particleRenderRequested=!1,e.activeChildTransitionKey?e.particleRenderer.render():e.particleValuesDirty?(e.particleValuesDirty=!1,e.particleRenderer.updateParticles(e.childHandles)):e.particleRenderer.render()})))}},{key:"getChildrenRenderer",value:function(){var e=this.targets[c.g.currentTargetName];return(null==e?void 0:e.renderer)||"auto"}},{key:"canRenderChildren",value:function(e){var t=this;return(e=Array.isArray(e)?e:[e]).length>0&&e.every((function(e){return!(!e||"object"!==w(e)||Array.isArray(e))&&Object.entries(e).every((function(e){var r=m(e,2),n=r[0],i=r[1],a=c.g.getTargetName(n);return n===a&&l.D.isGpuTarget(a)&&t.canRenderChildValue(i)}))}))}},{key:"canRenderChildValue",value:function(e){return"function"!=typeof e&&(!u.D.isTargetSpecObject(e)||"function"!=typeof e.value&&(!Array.isArray(e.value)||e.value.length>=2))}},{key:"affectsChildLayout",value:function(e){return l.D.affectsChildLayout(e)}},{key:"getChild",value:function(e){return this.gpuChildrenEnabled&&"number"==typeof e?this.childHandles[e]:P(t,"getChild",this,3)([e])}},{key:"getChildren",value:function(){var e=P(t,"getChildren",this,3)([]);return this.gpuChildrenEnabled?[].concat(y(e),y(this.childHandles)):e}},{key:"getChildValue",value:function(e,t){var r=this.childHandles[e];if(r){var n=l.D.getTargetName(t);return"x"!==n&&"y"!==n||r.allTargetMap[n]?r.actualValues[n]:r[n]}}},{key:"setChildTarget",value:function(e,t,r,n,i,a){var o=c.g.currentTargetName,s=c.g.currentTModel,u=l.D.getTargetName(t),d=this.childHandles[e];d&&(d.allTargetMap[u]=t,this.childTargetMaps[e]=d.allTargetMap,this.particleRuntime.setImperativeTarget(e,u,r,n,i,a,o,s))}},{key:"setChildValue",value:function(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=this.childHandles[e];if(!i)return!1;var a=l.D.getTargetName(t);return i.actualValues[a]!==r&&(i.actualValues[a]=r,l.D.isGpuTarget(a)&&(this.particleValuesDirty=!0),n&&this.affectsChildLayout(a)&&this.invalidateLayout(),!0)}},{key:"getChildTargetValues",value:function(e){return this.childTargetValues[c.g.getTargetName(e)]}},{key:"handleChildTargets",value:function(e,t){for(var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=c.g.getTargetName(e),a=Math.max(0,Number(n.steps)||0),o=[],s=!1,h=0;h<t.length;h++){var f=t[h],v=this.childHandles[h];if(f&&v){for(var g={index:h,target:{},steps:{},loops:{},valueLists:{}},p=0,y=Object.entries(f);p<y.length;p++){var b=m(y[p],2),T=b[0],w=b[1],k=l.D.getTargetName(T);if(l.D.isGpuTarget(k)){var S=m(u.D.getValueStepsCycles(v,k,w,0),2),x=S[0],M=S[1],C=d.d.isDefined(null==w?void 0:w.steps)||u.D.isValueStepsCycleArray(null==w?void 0:w.value)?M:a;u.D.isListTarget(x)?(g.valueLists[k]=x.list,g.target[k]=x.list[1]):g.target[k]=x,g.steps[k]=C,g.loops[k]=!0===(null==w?void 0:w.loop)}else{var E=m(u.D.getValueStepsCycles(v,k,w,0),2),D=E[0];E[1]||(this.setChildValue(h,k,D),s=!0)}}Object.keys(g.target).length&&o.push(g)}}if(!o.length)return!!s&&(delete this.childTargetValues[i],{handled:!0,steps:0});var P=this.getChildrenSegmentCount(o),L=this.buildChildTransitionSegment(o,0,a);if(this.commitImmediateChildTransitionValues(o,L.values,L.steps),!L.hasSegment||0===L.maxSteps)return this.commitChildTransitionSegment(o,L.values,L.steps),delete this.childTargetValues[i],this.particleValuesDirty=!0,this.requestParticleRender(),{handled:!0,steps:0};var O={children:o,segmentIndex:0,segmentCount:P,defaultSteps:a,initialValues:L.initialValues,values:L.values,steps:L.steps,loops:L.loops,hasLoop:L.hasLoop,generation:this.childGeneration};return this.childTransitions[i]=O,this.activeChildTransitionKey=e,this.addChildTransitionLayoutTargets(O),this.hasDom()&&this.particleRenderer.setTargetParticles(L.values,L.steps,O.generation).then((function(t){t&&r.childTransitions[i]===O&&r.handleSpecialTargetStep(e)})),{handled:!0,steps:L.maxSteps}}},{key:"commitChildTransitionSegment",value:function(e,t,r){var n,i=p(e);try{for(i.s();!(n=i.n()).done;){var a=n.value.index,o=this.childHandles[a],s=null==r?void 0:r[a];if(o&&s){for(var u=o.isVisible(),c=[],d=0,h=Object.keys(s);d<h.length;d++){var f,v=h[d];o.actualValues[v]=null===(f=t[a])||void 0===f?void 0:f[v],l.D.affectsChildLayout(v)&&c.push(v)}if(c.length&&(o.actualValues.isVisible=o.calcVisibility(),u||o.isVisible())){var g,y=p(c);try{for(y.s();!(g=y.n()).done;){var m=g.value;o.removeFromNoDomUpdatingTargets(m)}}catch(e){y.e(e)}finally{y.f()}}}}}catch(e){i.e(e)}finally{i.f()}}},{key:"handleSpecialTarget",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.gpuChildrenEnabled)return!1;var n=this.getChildTargetValues(e);return!!n&&this.handleChildTargets(e,n,r)}},{key:"getRenderScrollLeft",value:function(){var e;return(null===(e=this.$dom)||void 0===e?void 0:e.getScrollLeft())||this.getScrollLeft()||0}},{key:"getRenderScrollTop",value:function(){var e;return(null===(e=this.$dom)||void 0===e?void 0:e.getScrollTop())||this.getScrollTop()||0}},{key:"addChild",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addedChildren.length+this.allChildrenList.length;if(e&&"object"===w(e)&&!(e instanceof n.c)&&l.D.isChildrenTarget(c.g.currentTargetName)){var i=this.getChildrenRenderer();if("dom"!==i){var a=d.d.cloneTargetDefinition(e);if("gpu"===i||this.canRenderChildren(a))return this.addGpuChild(a),this}}return P(t,"addChild",this,3)([e,r])}},{key:"addGpuChild",value:function(e){var t=c.g.currentTargetName,r=c.g.getTargetName(t),n=this.childHandles.length;this.gpuChildrenEnabled=!0;var i=new s.$(this,n);this.childHandles[n]=i,this.childActualValues[n]=i.actualValues,this.childTargetMaps[n]=i.allTargetMap;try{var a,o,u=l.D.compileChildDefinition(i,e),d=this.createGpuChild(u.renderDefinition);return d?(Object.assign(i.actualValues,d.initial),this.childActualValues[n]=i.actualValues,this.childTargetMaps[n]=i.allTargetMap,this.particleRuntime.registerChild(n,r,u),(null!==(o=(a=this.pendingGpuChildren)[r])&&void 0!==o?o:a[r]={key:t,children:[]}).children.push(v({index:n},d)),this.childGeneration++,this.childrenUpdateFlag=!0,this.markLayoutDirty("addGpuChild"),!0):(this.childHandles.pop(),this.childActualValues.pop(),this.childTargetMaps.pop(),!1)}catch(e){throw this.childHandles.pop(),this.childActualValues.pop(),this.childTargetMaps.pop(),this.childRuntimePrograms.pop(),this.childRuntimeStates.pop(),e}}},{key:"removeChild",value:function(e){if(!(this.gpuChildrenEnabled&&e instanceof s.$))return P(t,"removeChild",this,3)([e]);var r=this.childHandles.indexOf(e);if(!(r<0)){this.particleRuntime.removeChild(r),this.childHandles.splice(r,1),this.childActualValues.splice(r,1),this.childTargetMaps.splice(r,1),this.removeChildFromTransitions(r);for(var n=0,i=Object.values(this.childTargetValues);n<i.length;n++){var a=i[n];null==a||a.splice(r,1)}e.index=-1;for(var o=r;o<this.childHandles.length;o++)this.childHandles[o].index=o;return this.childGeneration++,this.particleValuesDirty=!0,this.invalidateLayout(),this.markLayoutDirty("removeGpuChild"),this.requestParticleRender(),this}}},{key:"removeChildFromTransitions",value:function(e){for(var t=0,r=Object.values(this.childTransitions);t<r.length;t++){var n,i,a,o,l=r[t];if(null===(n=l.initialValues)||void 0===n||n.splice(e,1),null===(i=l.values)||void 0===i||i.splice(e,1),null===(a=l.steps)||void 0===a||a.splice(e,1),null===(o=l.loops)||void 0===o||o.splice(e,1),l.children){l.children=l.children.filter((function(t){return t.index!==e}));var s,u=p(l.children);try{for(u.s();!(s=u.n()).done;){var c=s.value;c.index>e&&c.index--}}catch(e){u.e(e)}finally{u.f()}}}for(var d=0,h=Object.values(this.pendingGpuChildren);d<h.length;d++){var f=h[d];if(null!=f&&f.children){f.children=f.children.filter((function(t){return t.index!==e}));var v,g=p(f.children);try{for(g.s();!(v=g.n()).done;){var y=v.value;y.index>e&&y.index--}}catch(e){g.e(e)}finally{g.f()}}}}},{key:"isTargetEnabled",value:function(e){var r=this.targets[e];return!(l.D.isChildrenTarget(e)&&!0===(null==r?void 0:r.waitForChildren)&&this.isExecuted(e)&&this.particleRuntime.hasPending(e))&&P(t,"isTargetEnabled",this,3)([e])}},{key:"activateGpuChildTarget",value:function(e,t){return this.particleRuntime.activateTarget(e,t)}},{key:"createGpuChild",value:function(e){for(var t={},r={},n={},i={},a={},o=!1,l=0,s=Object.entries(e);l<s.length;l++){var u,c=m(s[l],2),d=c[0],h=c[1],f=this.resolveInitialChildProperty(h);if(!f)return;t[d]=f.initialValue,r[d]=f.targetValue,void 0!==f.steps&&(n[d]=f.steps),f.valueList&&(a[d]=f.valueList),f.loop&&(i[d]=!0),((null===(u=f.valueList)||void 0===u?void 0:u.length)>1||f.initialValue!==f.targetValue)&&(o=!0)}return{initial:t,target:r,steps:n,loops:i,valueLists:a,hasTransition:o}}},{key:"finalizeChildrenTarget",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!l.D.isChildrenTarget(e))return!1;var n=c.g.getTargetName(e),i=this.pendingGpuChildren[n];if(null==i||!i.children.length)return!1;this.invalidateLayout();var a=Math.max(0,Number(r.steps)||0),o=this.getChildrenSegmentCount(i.children),s=this.buildChildTransitionSegment(i.children,0,a);if(this.commitImmediateChildTransitionValues(i.children,s.values,s.steps),delete this.pendingGpuChildren[n],!s.hasSegment||0===s.maxSteps){this.commitChildTransitionSegment(i.children,s.values,s.steps);var u,d=i.children.map((function(e){return e.index})).filter((function(e){var r=t.childRuntimeStates[e];return r&&!r.done})),h=p(d);try{for(h.s();!(u=h.n()).done;){var f=u.value;this.particleRuntime.queueStart(f)}}catch(e){h.e(e)}finally{h.f()}return this.hasDom()&&this.particleRenderer.setParticles(this.childHandles).then((function(){t.particleRuntime.markRenderReady(d)})),{handled:!0,steps:0}}var v={children:i.children,segmentIndex:0,segmentCount:o,defaultSteps:a,initialValues:s.initialValues,values:s.values,steps:s.steps,loops:s.loops,hasLoop:s.hasLoop,generation:this.childGeneration};return this.childTransitions[n]=v,this.activeChildTransitionKey=e,this.addChildTransitionLayoutTargets(v),{handled:!0,steps:s.maxSteps}}},{key:"addChildTransitionLayoutTargets",value:function(e){var t,r=p(e.children);try{for(r.s();!(t=r.n()).done;){var n,i=t.value.index,a=this.childHandles[i],o=null===(n=e.steps)||void 0===n?void 0:n[i];if(a&&o)for(var s=0,u=Object.entries(o);s<u.length;s++){var c=m(u[s],2),d=c[0];c[1]>0&&l.D.affectsChildLayout(d)&&a.addToNoDomUpdatingTargets(d)}}}catch(e){r.e(e)}finally{r.f()}}},{key:"catchupChildLayoutTargets",value:function(e){var t,r,n,i;if(null==e||null===(t=e.noDomUpdatingTargets)||void 0===t||!t.size||e.index<0)return!1;var a=this.activeChildTransitionKey;if(!a)return!1;var o=c.g.getTargetName(a),s=this.childTransitions[o];if(!s||s.generation!==this.childGeneration)return!1;var u=e.index,h=null===(r=s.initialValues)||void 0===r?void 0:r[u],f=null===(n=s.values)||void 0===n?void 0:n[u],v=null===(i=s.steps)||void 0===i?void 0:i[u];if(!h||!f||!v)return!1;for(var g=Math.max(0,Number(this.getTargetStep(a))||0),p=!1,m=0,b=y(e.noDomUpdatingTargets);m<b.length;m++){var T=b[m];if(l.D.affectsChildLayout(T)){var w=h[T],k=f[T],S=Math.max(0,Number(v[T])||0);if(d.d.isDefined(w)&&d.d.isDefined(k)){var x=0===S?1:Math.min(1,g/S),M=w+(k-w)*x;e.actualValues[T]!==M&&(e.actualValues[T]=M,p=!0),1===x&&e.removeFromNoDomUpdatingTargets(T)}else e.removeFromNoDomUpdatingTargets(T)}else e.removeFromNoDomUpdatingTargets(T)}return p}},{key:"advanceChildTransitionSegment",value:function(e,t){var r=this;if(!(t&&Array.isArray(t.children)&&Number.isInteger(t.segmentIndex)&&Number.isInteger(t.segmentCount)))return!1;var n=t.segmentIndex+1;if(n>=t.segmentCount)return!1;this.commitChildTransitionSegment(t.children,t.values,t.steps),this.particleRenderer.completeTransition();var i=this.buildChildTransitionSegment(t.children,n,t.defaultSteps);t.segmentIndex=n,t.initialValues=i.initialValues,t.values=i.values,t.steps=i.steps,t.loops=i.loops,this.commitImmediateChildTransitionValues(t.children,i.values,i.steps),this.addChildTransitionLayoutTargets(t);var a=this.targetValues[e];return a&&(a.steps=i.maxSteps),this.resetTargetStep(e),this.resetTargetInitialValue(e),this.setTargetStatus(e,"updating"),this.hasDom()&&this.particleRenderer.setTargetParticles(i.values,i.steps,t.generation).then((function(n){n&&r.childTransitions[c.g.getTargetName(e)]===t&&r.handleSpecialTargetStep(e)})),!0}},{key:"buildChildTransitionSegment",value:function(e,t,r){var n,i=new Array(this.childHandles.length),a=this.childHandles.map((function(e){return null==e?void 0:e.actualValues})),o=new Array(this.childHandles.length),l=new Array(this.childHandles.length),s=0,u=!1,c=!1,d=p(e);try{for(d.s();!(n=d.n()).done;){var h=n.value,f=h.index,g=this.childHandles[f];if(g){for(var y=v(v({},g.actualValues),{},{x:this.getChildValue(f,"x"),y:this.getChildValue(f,"y")}),m=void 0,b=void 0,T=void 0,w=void 0,k=0,S=Object.keys(h.target);k<S.length;k++){var x=S[k],M=h.valueLists[x],C=void 0;if(M){if(t>=M.length-1)continue;C=M[t+1]}else{if(0!==t||y[x]===h.target[x])continue;C=h.target[x]}var E=this.getChildPropertySteps(h,x,t,r);m||(m={}),b||(b=v({},y)),T||(T={}),w||(w={}),m[x]=y[x],b[x]=C,T[x]=E,w[x]=!0===h.loops[x],s=Math.max(s,E),u=!0,w[x]&&(c=!0)}b&&(i[f]=m,a[f]=b,o[f]=T,l[f]=w)}}}catch(e){d.e(e)}finally{d.f()}return{initialValues:i,values:a,steps:o,loops:l,maxSteps:s,hasSegment:u,hasLoop:c}}},{key:"getChildPropertySteps",value:function(e,t,r,n){var i=e.steps[t];return Array.isArray(i)?i.length?Math.max(0,Number(i[r%i.length])||0):n:void 0!==i?Math.max(0,Number(i)||0):n}},{key:"getChildSegmentCount",value:function(e){for(var t=0,r=0,n=Object.values(e.valueLists);r<n.length;r++){var i=n[r];t=Math.max(t,i.length-1)}return t}},{key:"getChildrenSegmentCount",value:function(e){var t,r=0,n=p(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;r=Math.max(r,this.getChildSegmentCount(i))}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"getActiveChildTransition",value:function(){if(this.activeChildTransitionKey){var e=c.g.getTargetName(this.activeChildTransitionKey);return this.childTransitions[e]}}},{key:"handleSpecialTargetStep",value:function(e){var t=c.g.getTargetName(e),r=this.childTransitions[t];return!(!r||r.generation!==this.childGeneration||(this.particleRenderer.setTransitionStep(this.getTargetStep(e)),0))}},{key:"handleSpecialTargetEnd",value:function(e){var t=c.g.getTargetName(e),r=this.childTransitions[t];return!(!r||(r.generation!==this.childGeneration?(this.particleRenderer.completeTransition(),delete this.childTransitions[t],delete this.childTargetValues[t],this.activeChildTransitionKey===e&&(this.activeChildTransitionKey=void 0),this.particleValuesDirty=!0,this.requestParticleRender(),0):!this.advanceChildTransitionSegment(e,r)&&(r.hasLoop?(this.restartChildTransition(e,r),0):(this.commitChildTransitionSegment(r.children,r.values,r.steps),this.particleRenderer.completeTransition(),delete this.childTransitions[t],delete this.childTargetValues[t],this.activeChildTransitionKey===e&&(this.activeChildTransitionKey=void 0),0))))}},{key:"resolveInitialChildProperty",value:function(e){if(!u.D.isTargetSpecObject(e))return{initialValue:e,targetValue:e,valueList:void 0,steps:void 0,loop:!1};var t=e.value,r=Array.isArray(e.steps)?e.steps.map((function(e){return Math.max(0,Number(e)||0)})):void 0!==e.steps?Math.max(0,Number(e.steps)||0):void 0,n=!0===e.loop;if(Array.isArray(t)){if(t.length<2)return;return{initialValue:t[0],targetValue:t[1],valueList:y(t),steps:r,loop:n}}return{initialValue:t,targetValue:t,valueList:void 0,steps:0,loop:n}}},{key:"restartChildTransition",value:function(e,t){return!(null==t||!t.hasLoop||(this.resetTargetStep(e),this.resetTargetInitialValue(e),this.setTargetStatus(e,"updating"),this.addChildTransitionLayoutTargets(t),this.handleSpecialTargetStep(e),0))}},{key:"shouldBeBracketed",value:function(){return!this.gpuChildrenEnabled&&P(t,"shouldBeBracketed",this,3)([])}},{key:"shouldCalculateChildren",value:function(){return this.gpuChildrenEnabled?this.getDirtyLayout()||this.completeLayoutEpoch!==this.layoutEpoch||this.hasLayoutStateChanged()?P(t,"shouldCalculateChildren",this,3)([]):(this.currentStatus=void 0,this.requestParticleRender(),!1):P(t,"shouldCalculateChildren",this,3)([])}},{key:"getLayoutState",value:function(){return[this.getWidth(),this.getHeight(),this.val("gap"),this.getPaddingTop(),this.getPaddingRight(),this.getPaddingBottom(),this.getPaddingLeft(),this.getContainerOverflowMode()]}},{key:"markLayoutComplete",value:function(e){var t=this;if(e===this.layoutEpoch)if(this.completeLayoutEpoch=e,this.completeLayoutState=this.getLayoutState(),this.particleRuntime.resolveInitialTargets()&&(this.requestParticleRender(),this.completeLayoutEpoch!==this.layoutEpoch))(0,h.fB)().schedule(0,"particleInitialTargets-".concat(this.oid));else{this.particleRenderer.updateCanvasLayerWidthHeight(),this.resolveLayoutCompleteWaiters(),this.particleRuntime.startReady();var r=this.activeChildTransitionKey;if(r){var n=c.g.getTargetName(r),i=this.childTransitions[n];if(i){for(var a=["x","y","width","height"],o=0;o<this.childHandles.length;o++){var l,s,u,f=this.childHandles[o];if(f){var g=i.values[o];g&&g!==f.actualValues||(g=v({},f.actualValues),i.values[o]=g);var y,m=null!==(u=(l=i.steps)[s=o])&&void 0!==u?u:l[s]={},b=p(a);try{for(b.s();!(y=b.n()).done;){var T=y.value;if(!Object.prototype.hasOwnProperty.call(m,T)){var w=this.getChildValue(o,T);d.d.isDefined(w)&&(g[T]=w,m[T]=0)}}}catch(e){b.e(e)}finally{b.f()}}}i.generation===this.childGeneration&&!this.restoringParticleRuntime&&this.hasDom()&&this.particleRenderer.setTargetParticles(i.values,i.steps,i.generation).then((function(e){e&&t.activeChildTransitionKey===r&&t.childTransitions[n]===i&&i.generation===t.childGeneration&&t.handleSpecialTargetStep(r)}))}}}}},{key:"commitImmediateChildTransitionValues",value:function(e,t,r){var n,i=!1,a=p(e);try{for(a.s();!(n=a.n()).done;){var o=n.value.index,s=this.childHandles[o],u=null==r?void 0:r[o];if(s&&u){for(var c=!1,d=0,h=Object.entries(u);d<h.length;d++){var f,v=m(h[d],2),g=v[0];if(0===v[1]){var y=null===(f=t[o])||void 0===f?void 0:f[g];s.actualValues[g]!==y&&(s.actualValues[g]=y,i=!0,l.D.affectsChildLayout(g)&&(c=!0))}}c&&(s.actualValues.isVisible=s.calcVisibility())}}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"hasLayoutStateChanged",value:function(){var e=this.getLayoutState(),t=this.completeLayoutState;return!t||e.length!==t.length||e.some((function(e,r){return e!==t[r]}))}},{key:"invalidateLayout",value:function(){this.layoutEpoch++}},{key:"getParticleCount",value:function(){return this.childHandles.length}},{key:"excludeRuntimeSnapshotField",value:function(e){return l.D.isTransientRuntimeField(e)}},{key:"restoreRuntimeDerivedState",value:function(){var e=this;this.particleRenderer.destroy(),this.childActualValues||(this.childActualValues=[]),this.childTargetMaps||(this.childTargetMaps=[]),this.childHandles=this.childActualValues.map((function(t,r){var n=new s.$(e,r),i=e.childTargetMaps[r]||{};return Object.assign(n.actualValues,t),Object.assign(n.allTargetMap,i),e.childActualValues[r]=n.actualValues,e.childTargetMaps[r]=n.allTargetMap,n})),this.childGeneration=Number.isInteger(this.childGeneration)?this.childGeneration:0,this.particleValuesDirty=!1,this.particleRenderRequested=!1,this.pendingGpuChildren={},this.layoutEpoch=0,this.completeLayoutEpoch=-1,this.completeLayoutState=void 0,this.layoutCompleteWaiters=[],this.particleSyncPromise=void 0,this.restoringParticleRuntime=!0,this.particleRuntime=new o.f(this),this.particleRuntime.prepareRestore(),this.particleRenderer=new a.e(this)}},{key:"waitForLayoutComplete",value:function(){var e=this;return this.completeLayoutEpoch===this.layoutEpoch?Promise.resolve():new Promise((function(t){e.layoutCompleteWaiters.push(t)}))}},{key:"resolveLayoutCompleteWaiters",value:function(){var e,t=p(this.layoutCompleteWaiters.splice(0));try{for(t.s();!(e=t.n()).done;)(0,e.value)()}catch(e){t.e(e)}finally{t.f()}}}],i&&M(r.prototype,i),f&&M(r,f),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,f,g,b,T}(n.c);i.E.register((function(e){if(!e)return!1;for(var t=0,r=Object.entries(e);t<r.length;t++){var n=m(r[t],2),i=n[0],a=n[1];if(l.D.isChildrenTarget(i)&&(a&&"object"===w(a))){if("gpu"===a.renderer)return!0;if("dom"!==a.renderer&&d.d.isDefined(a.instances))return!0}}return!1}),(function(e,t,r){return new j(e,t,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})}))},138:function(e,t,r){r.d(t,{D:function(){return p}});var n=r(690),i=r(333),a=r(34);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function v(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,o=[{key:"affectsChildLayout",value:function(t){return["x","y","width","height"].includes(e.getTargetName(t))}},{key:"affectsChildFlowLayout",value:function(t){return["width","height"].includes(e.getTargetName(t))}},{key:"isChildrenTarget",value:function(t){return e.childrenTargets.has(i.g.getTargetName(t))}},{key:"getTargetName",value:function(t){var r=i.g.getTargetName(t);return e.gpuRenderAliases[r]||r}},{key:"isGpuTarget",value:function(t){return e.gpuRenderTargets.has(e.getTargetName(t))}},{key:"getTargetMode",value:function(e){return e.endsWith("$$")?"deferred":e.endsWith("$")?"reactive":"immediate"}},{key:"isTransientRuntimeField",value:function(t){return e.transientRuntimeFields.has(t)}},{key:"isFunctionBasedTarget",value:function(e){return"function"==typeof e||n.D.isTargetSpecObject(e)&&"function"==typeof e.value}},{key:"resolveValue",value:function(t,r){if("function"==typeof t)return e.resolveValue(t.call(r),r);if(!n.D.isTargetSpecObject(t))return t;var i=h({},t);return"function"==typeof i.value&&(i.value=e.resolveValue(i.value.call(r),r)),i}},{key:"getInitialValue",value:function(e){return n.D.isValueStepsCycleArray(e)?e[0]:n.D.isTargetSpecObject(e)?Array.isArray(e.value)?e.value[0]:e.value:e}},{key:"setInitialValue",value:function(e,t,r){e&&a.d.isDefined(r)&&e.val(t,r)}},{key:"requiresRuntime",value:function(t,r){var i=e.getTargetMode(t);return!(e.isGpuTarget(t)&&!n.D.isIntervalTarget(r))||"immediate"!==i||!!n.D.isValueStepsCycleArray(r)||!!n.D.isTargetSpecObject(r)&&("function"==typeof r.value||"function"==typeof r.steps||a.d.isDefined(r.interval)||a.d.isDefined(r.easing)||a.d.isDefined(r.cycles)||a.d.isDefined(r.loop)||a.d.isDefined(r.pauseOn))}},{key:"compileChildDefinition",value:function(t,r){var o,u={},c=[],d=Object.entries(r).map((function(t){var r=s(t,2),n=r[0],i=r[1];return{key:n,target:i,mode:e.getTargetMode(n),targetName:e.getTargetName(n),requiresRuntime:e.requiresRuntime(n,i)}})),f=l(d);try{for(f.s();!(o=f.n()).done;){var v=o.value,g=i.g.getTargetName(v.key);t.allTargetMap[g]=v.key}}catch(e){f.e(e)}finally{f.f()}var p,y=l(d);try{for(y.s();!(p=y.n()).done;){var m=p.value;if("immediate"===m.mode&&!e.isFunctionBasedTarget(m.target)){var b=e.resolveValue(m.target,t),T=e.getInitialValue(b);e.setInitialValue(t,m.targetName,T),e.isGpuTarget(m.key)&&!m.requiresRuntime&&(u[m.targetName]=b)}}}catch(e){y.e(e)}finally{y.f()}var w,k=l(d);try{for(k.s();!(w=k.n()).done;){var S=w.value;if("immediate"===S.mode&&e.isGpuTarget(S.key)&&e.isFunctionBasedTarget(S.target)){var x=e.resolveValue(S.target,t);if(S.requiresRuntime=e.requiresRuntime(S.key,x),S.requiresRuntime){var M=e.getInitialValue(x);a.d.isDefined(M)&&(u[S.targetName]=M,e.setInitialValue(t,S.targetName,M))}else{u[S.targetName]=x,e.setInitialValue(t,S.targetName,e.getInitialValue(x));var C=n.D.isTargetSpecObject(x)?x.value:x;e.affectsChildLayout(S.targetName)&&!Array.isArray(C)&&c.push({key:S.key,targetName:S.targetName,mode:S.mode,target:n.D.isTargetSpecObject(S.target)?h({},S.target):{value:S.target},requiresRuntime:!1,requiresInitialResolution:!1,renderable:!0})}}}}catch(e){k.e(e)}finally{k.f()}var E,D=l(d);try{for(D.s();!(E=D.n()).done;){var P=E.value;if(P.requiresRuntime){var L="immediate"===P.mode&&e.isGpuTarget(P.key)&&e.isFunctionBasedTarget(P.target),O={key:P.key,targetName:P.targetName,mode:P.mode,target:n.D.isTargetSpecObject(P.target)?h({},P.target):{value:P.target},requiresRuntime:!0,requiresInitialResolution:L,renderable:e.isGpuTarget(P.key)};if(c.push(O),e.isGpuTarget(P.key)&&"immediate"===P.mode&&!e.isFunctionBasedTarget(P.target)){var A=e.resolveValue(P.target,t),j=e.getInitialValue(A);u[P.targetName]=j,e.setInitialValue(t,P.targetName,j)}}}}catch(e){D.e(e)}finally{D.f()}return{renderDefinition:u,runtimeTargets:c}}}],(r=null)&&f(t.prototype,r),o&&f(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,o}();v(p,"gpuRenderTargets",new Set(["x","y","width","height","borderRadius","backgroundColor","rotate","opacity","scale"])),v(p,"gpuRenderAliases",{background:"backgroundColor"}),v(p,"childrenTargets",new Set(["addChildren","children"])),v(p,"transientRuntimeFields",new Set(["particleRenderer","childHandles","particleValuesDirty","particleRenderRequested","pendingGpuChildren","layoutEpoch","completeLayoutEpoch","completeChildrenLayoutState","layoutCompleteWaiters","particleSyncPromise","restoringParticleRuntime"]))},161:function(e,t,r){r.d(t,{O:function(){return h}});var n=r(34),i=r(855);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"scheduleExecution",value:function(e,t){var r=e.getTargetInterval(t),i=n.d.now();if(r<=0)return 0;if(e.isTargetImperative(t)&&0===e.getTargetStep(t))return e.setScheduleTimeStamp(t,i),0;var a=e.getScheduleRemainingTime(t);if(n.d.isDefined(a))return e.setScheduleTimeStamp(t,i-Math.max(r-a,0)),e.resetScheduleRemainingTime(t),a;var o=e.getScheduleTimeStamp(t);if(n.d.isDefined(o)){var l=i-o;return Math.max(r-l,0)}return e.setScheduleTimeStamp(t,i),r}},{key:"getSchedulingKeys",value:function(e){for(var t=[],r=0,i=Object.entries(e.targetValues);r<i.length;r++){var a=l(i[r],2),o=a[0],s=a[1];(n.d.isDefined(s.scheduleTimeStamp)||n.d.isDefined(s.scheduleRemainingTime))&&t.push(o)}return t}},{key:"pauseResumeSchedule",value:function(t){var r,a;if("BI"!==t.type){var l=e.getSchedulingKeys(t);if(l.length||t.animatingMap){var u=new Set(null!==(r=null===(a=t.animatingMap)||void 0===a?void 0:a.keys())&&void 0!==r?r:[]),c=new Set([].concat(o(l),o(u)));if(c.size){var d,h=new Set,f=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}(c);try{for(f.s();!(d=f.n()).done;){var v=d.value;if(e.shouldPauseTarget(t,v)){var g;n.d.isDefined(t.getScheduleTimeStamp(v))&&e.pauseSchedule(t,v),null!==(g=t.animatingMap)&&void 0!==g&&g.has(v)&&h.add(v)}else{var p=t.getScheduleRemainingTime(v);if(n.d.isDefined(p))e.resumeSchedule(t,v),t.addTargetToStatusList(v),(0,i.fB)().scheduleOnlyIfEarlier(p,"resume1-".concat(t.oid,"-").concat(v));else if(n.d.isDefined(t.getScheduleTimeStamp(v))){var y=e.scheduleExecution(t,v);t.addTargetToStatusList(v),(0,i.fB)().scheduleOnlyIfEarlier(y,"resume2-".concat(t.oid,"-").concat(v))}}}}catch(e){f.e(e)}finally{f.f()}h.size&&(0,i.s)().pauseAnimations(t,h)}}}}},{key:"pauseSchedule",value:function(e,t){var r=e.getTargetInterval(t),i=e.getScheduleTimeStamp(t);if(!(r<=0)&&n.d.isDefined(i)){var a=n.d.now()-i,o=Math.max(r-a,0);e.setScheduleRemainingTime(t,o),e.resetScheduleTimeStamp(t)}}},{key:"resumeSchedule",value:function(e,t){var r=e.getScheduleRemainingTime(t);if(n.d.isDefined(r)){var i=n.d.now(),a=e.getTargetInterval(t);e.setScheduleTimeStamp(t,i-Math.max(a-r,0)),e.resetScheduleRemainingTime(t)}}},{key:"shouldPauseTarget",value:function(e,t){if(!e.isExecuted(t))return!1;var r=e.isTargetImperative(t)?e.targetValues[t]:e.targets[t],n=null==r?void 0:r.pauseOn;return!(void 0===n||!1===n||!0!==n&&("function"==typeof n?!n.call(e,t):"hidden"===n?e.isVisible():"noDom"!==n||e.hasDom()))}}],(r=null)&&c(t.prototype,r),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}()},756:function(e,t,r){r.d(t,{X:function(){return d}});var n=r(34),i=r(855);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function u(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"clear",value:function(){e.foundParentWithType={},e.foundParentWithTarget={},e.foundTypeMap={},e.foundTargetMap={},e.foundOids={},e.foundHandler={}}},{key:"findFirstScrollHandler",value:function(t,r,n){if(t){var i="".concat(t.oid," ").concat(r," ").concat(n);if(e.foundHandler[i])return e.foundHandler[i];var a=this.findScrollHandler(t,n,r);return a&&(e.foundHandler[i]=a),a}}},{key:"findFirstHandler",value:function(t,r){if(t){var n="".concat(t.oid," ").concat(r);if(e.foundHandler[n])return e.foundHandler[n];var i=this.findEventHandler(t,r);return i&&(e.foundHandler[n]=i),i}}},{key:"findFirstScrollTopHandler",value:function(e,t){return this.findFirstScrollHandler(e,"onScrollTop",t)}},{key:"findFirstScrollLeftHandler",value:function(e,t){return this.findFirstScrollHandler(e,"onScrollLeft",t)}},{key:"findFirstPinchHandler",value:function(e){return this.findFirstHandler(e,"onPinch")}},{key:"findFirstSwipeHandler",value:function(e){return this.findFirstHandler(e,"onSwipe")}},{key:"findFirstEnterHandler",value:function(e){return this.findFirstHandler(e,"onEnter")}},{key:"findFirstLeaveHandler",value:function(e){return this.findFirstHandler(e,"onLeave")}},{key:"findFirstStartHandler",value:function(e){return this.findFirstHandler(e,"onStart")}},{key:"findFirstEndHandler",value:function(e){return this.findFirstHandler(e,"onEnd")}},{key:"findFirstClickHandler",value:function(e){return this.findFirstHandler(e,"onClick")||this.findFirstHandler(e,"onAnyClick")}},{key:"findScrollHandler",value:function(e,t,r){for(;e&&(!e.canHandleEvent("onSwipe")||"wheel"===t);){if(e.canHandleEvent(r)||e.canHandleEvent("onScroll"))return e;e=e.getParent()}}},{key:"findEventHandler",value:function(e,t){for(;e;){if(e.canHandleEvent(t))return e;e=e.getParent()}}},{key:"findParentByType",value:function(t,r){var i="".concat(t.oid,"__").concat(r);if(!n.d.isDefined(e.foundParentWithType[i]))for(var a=t.getParent();a;){if(a.type===r){e.foundParentWithType[i]=a;break}a=a.getParent()}return e.foundParentWithType[i]}},{key:"findParentByTarget",value:function(t,r,i){var a="".concat(t.oid,"__").concat(r);if(!n.d.isDefined(e.foundParentWithTarget[a]))for(var o=t.getParent();o;){if(n.d.isDefined(o.targets[r])||n.d.isDefined(o.targetValues[r])){if(!n.d.isDefined(i)){e.foundParentWithTarget[a]=o;break}if(o.getTargetValue(r)===i){e.foundParentWithTarget[a]=o;break}}o=o.getParent()}return e.foundParentWithTarget[a]}},{key:"findByType",value:function(t){if(!n.d.isDefined(e.foundTypeMap[t])){var r=function(e){if(e.type===t)return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.type===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundTypeMap[t]=a)}return e.foundTypeMap[t]}},{key:"findByTarget",value:function(t){if(!n.d.isDefined(e.foundTargetMap[t])){var r=function(e){if(e.targets[t])return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.targets[t])return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundTargetMap[t]=a)}return e.foundTargetMap[t]}},{key:"find",value:function(t){if(!n.d.isDefined(e.foundOids[t])){var r=function(e){if(e.oid===t)return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.oid===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundOids[t]=a)}return e.foundOids[t]}}],(r=null)&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}();u(d,"foundParentWithType",{}),u(d,"foundParentWithTarget",{}),u(d,"foundTypeMap",{}),u(d,"foundTargetMap",{}),u(d,"foundOids",{}),u(d,"foundHandler",{})},791:function(e,t,r){r.d(t,{s:function(){return m}});var n=r(34),i=r(611);function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var f="__targetjsTModelRef",v=new Set(["_state","targets","targetDefinitions","restoringRuntime","restoredUsesExistingDom","particleRenderer","particleRuntime","particleSyncPromise","layoutCompleteWaiters","isPrevTargetUpdated","type","oid","oidNum","originalId","parent","allChildrenList","allChildrenMap","$dom","viewport","visibilityStatus","currentStatus","dirtyLayout","originWindowEpoch","hasDomNow","isNowVisible","domHeightTimestamp","domWidthTimestamp","lastBatch","waapiBatch","finalKeyframe","finalRawFrame"]),g=["addedChildren","deletedChildren","movedChildren"],p=new Set(["lastUpdate","scheduleTimeStamp","completeTime","creationTime","activationTime","catchupAt","startTime","lastResizeHandledTime"]),y=["originalTargetName","originalTModel","invokerTargetName","invokerTModel","fetchAction","childAction","addChildAction"],m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,s=[{key:"rebaseRuntimeTimes",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakSet;if(t&&"object"===c(t)&&0!==r&&!e.isTModel(t)&&!n.has(t))if(n.add(t),t instanceof Map){var i,a=l(t.values());try{for(a.s();!(i=a.n()).done;){var o=i.value;e.rebaseRuntimeTimes(o,r,n)}}catch(e){a.e(e)}finally{a.f()}}else if(t instanceof Set){var s,u=l(t);try{for(u.s();!(s=u.n()).done;){var d=s.value;e.rebaseRuntimeTimes(d,r,n)}}catch(e){u.e(e)}finally{u.f()}}else for(var h=0,f=Object.keys(t);h<f.length;h++){var v=f[h],g=t[v];p.has(v)&&Number.isFinite(g)&&g>0?t[v]=g+r:e.rebaseRuntimeTimes(g,r,n)}}},{key:"isPlainObject",value:function(e){if(!e||"object"!==c(e))return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}},{key:"cloneUnboundTargets",value:function(t){for(var r=n.d.cloneTargetDefinition(t),i=0,a=Object.values(r);i<a.length;i++){var o=a[i];if(e.isPlainObject(o))for(var l=0,s=Object.keys(o);l<s.length;l++){var u=s[l],c=o[u];"function"==typeof c&&c.__isBoundTargetMethod&&(o[u]=c.__targetjsSource||c)}}return r}},{key:"isTModel",value:function(e){return Boolean(e&&"object"===c(e)&&"string"==typeof e.oid&&e.targets&&"function"==typeof e.state&&"function"==typeof e.getChildren)}},{key:"isTModelReference",value:function(t){return Boolean(e.isPlainObject(t)&&Object.prototype.hasOwnProperty.call(t,f))}},{key:"createTModelReference",value:function(e){return t={},r=f,n=e.oid,(r=h(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t;var t,r,n}},{key:"encodeValue",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null==t||"object"!==c(t))return t;if(e.isTModel(t))return e.createTModelReference(t);if(r.has(t))return r.get(t);if(t instanceof Date)return new Date(t.getTime());if(t instanceof Map){var n=new Map;r.set(t,n);var i,a=l(t);try{for(a.s();!(i=a.n()).done;){var s=o(i.value,2),u=s[0],d=s[1];n.set(e.encodeValue(u,r),e.encodeValue(d,r))}}catch(e){a.e(e)}finally{a.f()}return n}if(t instanceof Set){var h=new Set;r.set(t,h);var f,v=l(t);try{for(v.s();!(f=v.n()).done;){var g=f.value;h.add(e.encodeValue(g,r))}}catch(e){v.e(e)}finally{v.f()}return h}if(Array.isArray(t)){var p=[];r.set(t,p);var y,m=l(t);try{for(m.s();!(y=m.n()).done;){var b=y.value;p.push(e.encodeValue(b,r))}}catch(e){m.e(e)}finally{m.f()}return p}if(!e.isPlainObject(t))return t;var T={};r.set(t,T);for(var w=0,k=Object.entries(t);w<k.length;w++){var S=o(k[w],2),x=S[0],M=S[1];T[x]=e.encodeValue(M,r)}return T}},{key:"decodeValue",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(null==t||"object"!==c(t))return t;if(e.isTModelReference(t))return r[t[f]];if(n.has(t))return n.get(t);if(t instanceof Date)return new Date(t.getTime());if(t instanceof Map){var i=new Map;n.set(t,i);var a,s=l(t);try{for(s.s();!(a=s.n()).done;){var u=o(a.value,2),d=u[0],h=u[1];i.set(e.decodeValue(d,r,n),e.decodeValue(h,r,n))}}catch(e){s.e(e)}finally{s.f()}return i}if(t instanceof Set){var v=new Set;n.set(t,v);var g,p=l(t);try{for(p.s();!(g=p.n()).done;){var y=g.value;v.add(e.decodeValue(y,r,n))}}catch(e){p.e(e)}finally{p.f()}return v}if(Array.isArray(t)){var m=[];n.set(t,m);var b,T=l(t);try{for(T.s();!(b=T.n()).done;){var w=b.value;m.push(e.decodeValue(w,r,n))}}catch(e){T.e(e)}finally{T.f()}return m}if(!e.isPlainObject(t))return t;var k={};n.set(t,k);for(var S=0,x=Object.entries(t);S<x.length;S++){var M=o(x[S],2),C=M[0],E=M[1];k[C]=e.decodeValue(E,r,n)}return k}},{key:"resolveTModelReferencesInPlace",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakSet;if(null==t||"object"!==c(t))return t;if(e.isTModelReference(t))return r[t[f]];if(n.has(t))return t;if(n.add(t),t instanceof Date)return t;if(t instanceof Map){var i=a(t.entries());t.clear();var s,u=l(i);try{for(u.s();!(s=u.n()).done;){var d=o(s.value,2),h=d[0],v=d[1];t.set(e.resolveTModelReferencesInPlace(h,r,n),e.resolveTModelReferencesInPlace(v,r,n))}}catch(e){u.e(e)}finally{u.f()}return t}if(t instanceof Set){var g=a(t);t.clear();var p,y=l(g);try{for(y.s();!(p=y.n()).done;){var m=p.value;t.add(e.resolveTModelReferencesInPlace(m,r,n))}}catch(e){y.e(e)}finally{y.f()}return t}if(Array.isArray(t)){for(var b=0;b<t.length;b++)t[b]=e.resolveTModelReferencesInPlace(t[b],r,n);return t}if(!e.isPlainObject(t))return t;for(var T=0,w=Object.keys(t);T<w.length;T++){var k=w[T];t[k]=e.resolveTModelReferencesInPlace(t[k],r,n)}return t}},{key:"clearMaterializedChildOperations",value:function(e){if(e){for(var t=0,r=g;t<r.length;t++){var n=r[t];Array.isArray(e[n])?e[n].length=0:e[n]=[]}e.lastChildrenUpdate?(e.lastChildrenUpdate.additions=[],e.lastChildrenUpdate.deletions=[]):e.lastChildrenUpdate={additions:[],deletions:[]}}}},{key:"exportRuntimeState",value:function(t){for(var r={},n=0,i=Object.keys(t);n<i.length;n++){var a,o=i[n];v.has(o)||null!==(a=t.excludeRuntimeSnapshotField)&&void 0!==a&&a.call(t,o)||(r[o]=t[o])}var l=e.encodeValue({state:t.state(),fields:r});return e.clearMaterializedChildOperations(l.state),l}},{key:"importRuntimeState",value:function(t,r,n){var i,a=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).timeOffset,l=void 0===a?0:a,s=e.decodeValue(r,n);e.rebaseRuntimeTimes(s,l),t._state=s.state||{};for(var u=0,c=Object.entries(s.fields||{});u<c.length;u++){var d=o(c[u],2),h=d[0],f=d[1];v.has(h)||(t[h]=f)}return e.clearMaterializedChildOperations(t._state),t.childrenUpdateFlag=!1,t.$dom=null,t.viewport=void 0,t.hasDomNow=!1,t.lastBatch=void 0,t.waapiBatch=void 0,t.finalKeyframe=void 0,t.finalRawFrame=void 0,null===(i=t.restoreRuntimeDerivedState)||void 0===i||i.call(t),t}},{key:"createRuntimeSnapshot",value:function(t){var r,i,o,l,s,u=a(null!==(r=t.allChildrenList)&&void 0!==r?r:[]),c=n.d.cloneTargetDefinition(t.targetDefinitions);return{oid:t.oid,oidNum:null!==(i=t.oidNum)&&void 0!==i?i:0,originalId:t.originalId,type:t.type,usesExistingDom:!0===(null===(o=t.targets)||void 0===o?void 0:o.domIsland)||!0===(null===(l=t.targets)||void 0===l?void 0:l.reuseDomDefinition)||(null===(s=t.originalTargetNames)||void 0===s?void 0:s.includes("$dom")),targets:e.encodeValue(c),targetRuntime:e.exportTargetRuntime(t),runtime:e.exportRuntimeState(t),children:u.map((function(t){return e.createRuntimeSnapshot(t)}))}}},{key:"createWithIdentity",value:function(t,r){var n;if("function"!=typeof r)throw new TypeError("A TModel constructor is required.");var a=e.encodeValue(t.targets),o={restoringRuntime:!0,usesExistingDom:!0===t.usesExistingDom},l=i.E.create(t.type,a,(function(e,t,n,i){return new r(e,t,n,i)}),t.oid,o);return l.type=t.type,l.oid=t.oid,l.oidNum=null!==(n=t.oidNum)&&void 0!==n?n:0,void 0!==t.originalId?l.originalId=t.originalId:delete l.originalId,l.parent=void 0,l.allChildrenList=[],l.allChildrenMap={},l}},{key:"attachRestoredChild",value:function(e,t){return t.parent=e,e.allChildrenList.push(t),e.allChildrenMap[t.oid]=t,t}},{key:"fromRuntimeSnapshot",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)throw new TypeError("A runtime snapshot is required.");for(var i={},a=[],o=[],s=function(t,n){var u=e.createWithIdentity(t,r);i[u.oid]=u,a.push(u),n&&e.attachRestoredChild(n,u),o.push({tmodel:u,runtime:t.runtime,targetRuntime:t.targetRuntime});var c,d=l(t.children||[]);try{for(d.s();!(c=d.n()).done;){var h=c.value;s(h,u)}}catch(e){d.e(e)}finally{d.f()}return u},u=s(t,void 0),c=0,d=a;c<d.length;c++){var h=d[c];e.resolveTModelReferencesInPlace(h.targets,i)}for(var f=0,v=o;f<v.length;f++){var g=v[f],p=g.tmodel,y=g.targetRuntime;e.applyTargetRuntime(p,y,i)}for(var m=0,b=o;m<b.length;m++){var T=b[m],w=T.tmodel,k=T.runtime;e.importRuntimeState(w,k,i,n)}return{root:u,tmodelIdMap:i,models:a}}},{key:"exportTargetRuntime",value:function(t){for(var r={},n=0,i=Object.entries(t.targets);n<i.length;n++){var a=o(i[n],2),l=a[0],s=a[1];if(e.isPlainObject(s)){for(var u={},c=0,d=y;c<d.length;c++){var h=d[c];Object.prototype.hasOwnProperty.call(s,h)&&(u[h]=s[h])}Object.keys(u).length&&(r[l]=e.encodeValue(u))}}return r}},{key:"applyTargetRuntime",value:function(t,r,n){for(var i=0,a=Object.entries(r||{});i<a.length;i++){var l=o(a[i],2),s=l[0],u=l[1],c=t.targets[s];if(c){var d=e.decodeValue(u,n);Object.assign(c,d)}}}}],(r=null)&&d(t.prototype,r),s&&d(t,s),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,s}()},90:function(e,t,r){r.d(t,{c:function(){return N}});var n=r(855),i=r(484),a=r(34),o=r(690),l=r(333),s=r(585),u=r(768);function c(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function y(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}var m=function(){return e=function e(t,r,i){var o,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"object"===g(t)&&void 0===r&&(r=t,t=""),this.restoringRuntime=!0===l.restoringRuntime,this.restoredUsesExistingDom=!0===l.usesExistingDom,this.targetDefinitions=a.d.cloneTargetDefinition(r),this.targets=Object.assign({},r),i=i||this.targets.id,a.d.isDefined(i))n.qw.getOid(i),this.type=i,this.oid=i,this.oidNum=0;else{this.type=this.targets.otype||t||"blank";var s=n.qw.getOid(this.type);this.oid=s.oid,this.oidNum=s.num}null!==(o=r)&&void 0!==o&&o.sourceDom||!a.d.isDefined(i)||(this.originalId=i),this._state={}},t=[{key:"state",value:function(){return this._state}},{key:"targetValues",get:function(){var e,t;return null!==(t=(e=this.state()).targetValues)&&void 0!==t?t:e.targetValues={}},set:function(e){this.state().targetValues=e}},{key:"actualValues",get:function(){var e,t;return null!==(t=(e=this.state()).actualValues)&&void 0!==t?t:e.actualValues={}},set:function(e){this.state().actualValues=e}},{key:"lastActualValues",get:function(){var e,t;return null!==(t=(e=this.state()).lastActualValues)&&void 0!==t?t:e.lastActualValues={}}},{key:"activeTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).activeTargetList)&&void 0!==t?t:e.activeTargetList=[]},set:function(e){this.state().activeTargetList=e}},{key:"activeTargetMap",get:function(){var e,t;return null!==(t=(e=this.state()).activeTargetMap)&&void 0!==t?t:e.activeTargetMap={}},set:function(e){this.state().activeTargetMap=e}},{key:"updatingTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).updatingTargetList)&&void 0!==t?t:e.updatingTargetList=[]},set:function(e){this.state().updatingTargetList=e}},{key:"updatingTargetMap",get:function(){var e,t;return null!==(t=(e=this.state()).updatingTargetMap)&&void 0!==t?t:e.updatingTargetMap={}},set:function(e){this.state().updatingTargetMap=e}},{key:"fetchActionTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).fetchActionTargetList)&&void 0!==t?t:e.fetchActionTargetList=[]}},{key:"activatedTargets",get:function(){var e,t;return null!==(t=(e=this.state()).activatedTargets)&&void 0!==t?t:e.activatedTargets=[]}},{key:"targetMethodMap",get:function(){var e,t;return null!==(t=(e=this.state()).targetMethodMap)&&void 0!==t?t:e.targetMethodMap={}}},{key:"targetExecutionCount",get:function(){var e,t;return null!==(t=(e=this.state()).targetExecutionCount)&&void 0!==t?t:e.targetExecutionCount=0},set:function(e){this.state().targetExecutionCount=e}},{key:"addedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).addedChildren)&&void 0!==t?t:e.addedChildren=[]}},{key:"deletedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).deletedChildren)&&void 0!==t?t:e.deletedChildren=[]}},{key:"movedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).movedChildren)&&void 0!==t?t:e.movedChildren=[]}},{key:"lastChildrenUpdate",get:function(){var e,t;return null!==(t=(e=this.state()).lastChildrenUpdate)&&void 0!==t?t:e.lastChildrenUpdate={additions:[],deletions:[]}}},{key:"visibleChildren",get:function(){var e,t;return null!==(t=(e=this.state()).visibleChildren)&&void 0!==t?t:e.visibleChildren=[]}},{key:"passiveTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).passiveTargetList)&&void 0!==t?t:e.passiveTargetList=[]},set:function(e){this.state().passiveTargetList=e}},{key:"passiveTargetMap",get:function(){var e,t;return null!==(t=(e=this.state()).passiveTargetMap)&&void 0!==t?t:e.passiveTargetMap={}},set:function(e){this.state().passiveTargetMap=e}},{key:"getParent",value:function(){return this.parent}},{key:"initTargets",value:function(){var e=this;if(this.targetsVersion=1,this.originalTargetNames=Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})),this.functionTargetNames=[],this.allTargetMap={},!this.restoringRuntime&&a.d.isDefined(this.originalId)&&(0,n.UR)(this.originalId))return a.d.mergeTargets((0,n.UR)(this.originalId),this),void(this.toDiscard=!0);this.actualValues=s.u.defaultActualValues(),this.targetValues={},this.activeTargetMap={},this.activeTargetList=[],this.originalTargetNames=Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})).map((function(e){return e.startsWith("_")?e.slice(1):e}));var t=this.originalTargetNames.includes("$dom"),r=this.restoringRuntime?this.restoredUsesExistingDom||t:Boolean(u.J.query("#".concat(this.oid))||t);r||this.excludeDefaultStyling()?r&&(this.targets.domIsland=!0,a.d.isDefined(this.targets.reuseDomDefinition)||(this.targets.reuseDomDefinition=!0,this.targets.domHolder=!0,a.d.isDefined(this.targets.excludeXYCalc)||(this.targets.excludeXYCalc=!0),a.d.isDefined(this.targets.x)||(this.targets.excludeX=!0),a.d.isDefined(this.targets.y)||(this.targets.excludeY=!0),a.d.isDefined(this.targets.position)||(this.targets.position="relative"))):(Object.entries(s.u.defaultTargetStyles).forEach((function(t){var r=h(t,2),n=r[0],i=r[1];n in e.targets||(e.targets[n]=i)})),!1===this.targets.canHaveDom||a.d.isDefined(this.targets.domHolder)||(this.targets.domHolder=!0)),Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})).forEach((function(t,r){e.processNewTarget(t,r)}))}},{key:"processNewTarget",value:function(e,t){this.targetsVersion++;var r=l.g.getTargetName(e),n=this.targets[e];if(a.d.isDefined(n)){"passive"!==n.loop&&"function"!=typeof n.loop||this.passiveTargetMap[e]||(this.passiveTargetMap[e]=!0,this.passiveTargetList.push(e));var i=g(n),u=e.startsWith("_")||e.endsWith("$"),c=s.u.mustExecuteTargets[r]||u||"string"!==i&&"number"!==i&&"boolean"!==i,d=!!s.u.allEventMap[r],h=!!s.u.internalEventMap[r];if(("object"!==i||Array.isArray(n))&&c&&(n=l.g.wrapTarget(this,n,e)),a.d.isDefined(t)){var f=t>0?this.originalTargetNames[t-1]:void 0,v=t<this.originalTargetNames.length-1?this.originalTargetNames[t+1]:void 0;(v&&v.endsWith("$")||u||d||h||"object"===i||"function"===i)&&(a.d.isDefined(n.value)||o.D.isChildObjectTarget(e,n)||o.D.isIntervalTarget(n)||(c=!0,n=l.g.wrapTarget(this,n,e)),l.g.bindTarget(this,e,f,v,t))}if(e.startsWith("_")){var p=e.slice(1);this.targets[e]&&(this.targets[p]=this.targets[e]),delete this.targets[e],e=p,n=this.targets[p]}if(d&&(this.externalEventMap||(this.externalEventMap=new Map),this.externalEventMap.set(r,!0),n.active=!1),h&&(this.internalEventMap||(this.internalEventMap=new Map),this.internalEventMap.set(r,!0),n.active=!1),this.allTargetMap[r]=e,u&&(this.targets[e].active=!1),!s.u.bypassInitialProcessingTargetMap[r]){if(a.d.isDefined(n.initialValue)&&this.val(e,n.initialValue),(!1!==n.active||a.d.isDefined(n.initialValue))&&this.addToStyleTargetList(e),o.D.isIntervalTarget(n))n.cycles=2,n.isInterval=!0;else if(!c){var y;return void this.val(r,a.d.isDefined(null===(y=n)||void 0===y?void 0:y.value)?n.value:n)}!1!==n.active&&this.canTargetBeActivated(e)&&this.addToActiveTargets(e),this.functionTargetNames.push(e)}}else this.delVal(e)}},{key:"activate",value:function(e){(0,n.zw)().addToActivatedList(this),this.currentStatus="active",e&&this.isTargetEnabled(e)&&-1===this.activatedTargets.indexOf(e)&&this.activatedTargets.push(e)}},{key:"isActivated",value:function(){return"active"===this.currentStatus}},{key:"deactivate",value:function(){this.currentStatus=void 0}},{key:"excludeDefaultStyling",value:function(){return!1===this.targets.defaultStyling||this.excludeStyling()||this.reuseDomDefinition()&&!this.allStyleTargetMap}},{key:"canTargetBeActivated",value:function(e){var t=this.targets.onDomEvent;return!(t&&(Array.isArray(t)?t.includes(e):t===e)&&!this.hasDom())&&!this.activeTargetMap[e]}},{key:"addToStyleTargetList",value:function(e,t){var r;if(e=l.g.getTargetName(e),t||!this.excludeStyling()&&!this.targets["exclude".concat(a.d.capitalizeFirstLetter(e))]){var n,i=s.u.asyncStyleTargetMap[e],o=s.u.attributeTargetMap[e];if(i||o)null!==(n=this.asyncStyleTargetMap)&&void 0!==n&&n.has(e)||(this.asyncStyleTargetMap||(this.asyncStyleTargetMap=new Map),this.asyncStyleTargetMap.set(e,!0));else if(this.isStyleTarget(e)){var u,c=!0;if(s.u.transformMap[e])this.getParent()&&this.calcAbsolutePosition(this.getX(),this.getY());else if("width"===e||"height"===e){var d=Math.floor("width"===e?this.getWidth():this.getHeight());this.styleMap[e]===d&&(c=!1)}else"dim"===e?this.styleMap[e]===Math.floor(this.val("dim"))&&(c=!1):a.d.isDefined(this.val(e))&&this.styleMap[e]===this.val(e)&&(c=!1);!c||null!==(u=this.styleTargetMap)&&void 0!==u&&u.has(e)||(this.styleTargetMap||(this.styleTargetMap=new Map),this.styleTargetMap.set(e,!0))}!s.u.styleSet.has(e)||null!==(r=this.allStyleTargetMap)&&void 0!==r&&r.has(e)||(this.allStyleTargetMap||(this.allStyleTargetMap=new Map),this.allStyleTargetMap.set(e,!0))}}},{key:"isStyleTarget",value:function(e){return s.u.styleTargetMap[e]}},{key:"removeTarget",value:function(e){delete this.targetDefinitions[e],delete this.targets[e],this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),delete this.targetValues[e]}},{key:"addTarget",value:function(e,t){var r,n,i;this.addTargets((r={},i=t,(n=y(n=e))in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r))}},{key:"addTargets",value:function(e){for(var t,r=this,i=a.d.cloneTargetDefinition(e),o=0,l=Object.keys(i);o<l.length;o++){var s=l[o];this.targetDefinitions[s]=i[s]}Object.keys(e).forEach((function(t){r.targets[t]=e[t],r.removeFromUpdatingTargets(t),r.originalTargetNames.includes(t)||r.originalTargetNames.push(t);var n=r.originalTargetNames.indexOf(t);r.processNewTarget(t,n)})),this.hasDom()&&(0,n.kQ)().attachEvents([this]),null===(t=(0,n.fB)())||void 0===t||t.schedule(1,"addTargets-".concat(this.oid))}},{key:"getTargetStepPercent",value:function(e,t,r){return t=a.d.isDefined(t)?t:this.getTargetStep(e),r?t/r:1}},{key:"resetTargetStep",value:function(e){return this.targetValues[e]&&(this.targetValues[e].step=0),this}},{key:"resetTargetExecutionFlag",value:function(e){return this.targetValues[e]&&(this.targetValues[e].executionFlag=!1),this}},{key:"resetTargetCycle",value:function(e){return this.targetValues[e]&&(this.targetValues[e].cycle=0),this}},{key:"resetTargetInitialValue",value:function(e){return this.targetValues[e]&&(this.targetValues[e].initialValue=void 0),this}},{key:"addTargetToStatusList",value:function(e){var t=this.targetValues[e];if(t){var r;if("fetching"===t.status)return this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),void(null===(r=this.getParent())||void 0===r||r.addToActiveChildren(this));if(this.isTargetUpdating(e))return this.addToUpdatingTargets(e),void this.removeFromActiveTargets(e);if(this.isTargetActive(e))return this.addToActiveTargets(e),void this.removeFromUpdatingTargets(e);this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e)}}},{key:"setTargetStatus",value:function(e,t){var r=this.targetValues[e];if(r){var n=r.status;"done"!==t||"done"===n||"complete"===n||r.resetFlag||(r.completeCount++,r.completeTime=a.d.now()),r.resetFlag=!1,r.status=t,this.addTargetToStatusList(e)}}},{key:"getTargetStatus",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.status)&&void 0!==t?t:""}},{key:"isTargetActive",value:function(e){var t;return"active"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetUpdating",value:function(e){var t;return"updating"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetDone",value:function(e){var t;return"done"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetComplete",value:function(e){var t;return"complete"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)||void 0===this.targetValues[e]&&void 0}},{key:"isTargetTreeComplete",value:function(e,t){return!0===l.g.isTargetTreeComplete(this,e,t)}},{key:"isTargetVisibleTreeComplete",value:function(e){return this.isTargetTreeComplete(e,"visible")}},{key:"isTargetFullyCompleted",value:function(e){return!0===l.g.isTargetFullyCompleted(this,e)}},{key:"arePreviousTargetsComplete",value:function(e){return!0===l.g.arePreviousTargetsComplete(this,e)}},{key:"cleanupTarget",value:function(e){l.g.cleanupTarget(this,e)}},{key:"isComplete",value:function(){return l.g.isTModelComplete(this)}},{key:"isExecuted",value:function(e){return this.targetValues[e]&&this.targetValues[e].executionFlag}},{key:"neverExecuted",value:function(e){return!this.targetValues[e]}},{key:"isTargetImperative",value:function(e){return!!this.targetValues[e]&&this.targetValues[e].isImperative}},{key:"getTargetExecutionCount",value:function(e){return this.targetValues[e]?this.targetValues[e].executionCount:0}},{key:"setTargetComplete",value:function(e){this.targetValues[e]&&(this.targetValues[e].status="complete")}},{key:"isTargetEnabled",value:function(e){var t=this.targets[e];return!!a.d.isDefined(t)&&("function"!=typeof t.enabledOn||(this.setTargetMethodName(e,"enabledOn"),t.enabledOn.call(this)))}},{key:"doesTargetEqualActual",value:function(e){if(this.targetValues[e]){var t=!!this.targets[e]&&this.targets[e].deepEquality;return t?a.d.areEqual(this.getTargetValue(e),this.val(e),t):this.getTargetValue(e)===this.val(e)}return!1}},{key:"getTargetValue",value:function(e){var t=this.targetValues[e];if(void 0!==t){var r=t.value;return"function"==typeof r?r.call(this):r}var n=this.targets[e];if(void 0!==n){var i=n&&"object"===g(n)&&Object.prototype.hasOwnProperty.call(n,"value")?n.value:n;return"function"==typeof i?i.call(this):i}}},{key:"getTargetStep",value:function(e){return this.targetValues[e]?this.targetValues[e].step:0}},{key:"getScheduleTimeStamp",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.scheduleTimeStamp}},{key:"isScheduledPending",value:function(e){var t=this.getScheduleRemainingTime(e);if(a.d.isDefined(t))return t>0;var r=this.getScheduleTimeStamp(e),n=this.getTargetInterval(e);return a.d.isDefined(r)&&r+n>a.d.now()}},{key:"getScheduleRemainingTime",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.scheduleRemainingTime}},{key:"setScheduleRemainingTime",value:function(e,t){var r=this.targetValues[e];r&&(r.scheduleRemainingTime=t)}},{key:"resetScheduleRemainingTime",value:function(e){var t=this.targetValues[e];t&&(t.scheduleRemainingTime=void 0)}},{key:"setScheduleTimeStamp",value:function(e,t){var r=this.targetValues[e];r&&(r.scheduleTimeStamp=t)}},{key:"resetScheduleTimeStamp",value:function(e){var t=this.targetValues[e];t&&(t.scheduleTimeStamp=void 0)}},{key:"isTargetInLoop",value:function(e){var t=this.targets[e];return!!t&&!0===("function"==typeof t.loop?t.loop.call(this,e):t.loop)}},{key:"isTargetPassiveLoop",value:function(e){var t=this.targets[e];return!!t&&"passive"===("function"==typeof t.loop?t.loop.call(this,e):t.loop)}},{key:"shouldScheduleRun",value:function(e){var t=this.targets[e];if(!t)return!1;if(void 0!==t.triggerRerun)return!!t.triggerRerun;if("passive"===("function"==typeof t.loop?t.loop.call(this,e):t.loop)){var r,n=o.D.getValueStepsCycles(this,e)[0],i=this.getTargetValue(e);return!a.d.areEqual(n,i,null!==(r=t.deepEquality)&&void 0!==r&&r)}return!0}},{key:"activateChangedPassiveTargets",value:function(){var e;if(null===(e=this.passiveTargetList)||void 0===e||!e.length)return!1;var t,r=!1,n=d(this.passiveTargetList);try{for(n.s();!(t=n.n()).done;){var i,a=t.value;this.isTargetPassiveLoop(a)&&(this.isTargetUpdating(a)||null!==(i=this.animatingMap)&&void 0!==i&&i.has(a)||this.shouldScheduleRun(a)&&(this.addToActiveTargets(a),r=!0))}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"getTargetInitialValue",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.initialValue}},{key:"getLastUpdate",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.lastUpdate}},{key:"getDimLastUpdate",value:function(){var e,t,r,n,i;return Math.max(null!==(e=this.getLastUpdate("width"))&&void 0!==e?e:0,null!==(t=this.getLastUpdate("height"))&&void 0!==t?t:0,null!==(r=this.getLastUpdate("dim"))&&void 0!==r?r:0,null!==(n=this.domHeightTimestamp)&&void 0!==n?n:0,null!==(i=this.domWidthTimestamp)&&void 0!==i?i:0)}},{key:"getTargetActivationTime",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.activationTime)&&void 0!==t?t:0}},{key:"getTargetCreationTime",value:function(e){return this.targetValues[e]?this.targetValues[e].creationTime:void 0}},{key:"incrementTargetStep",value:function(e,t,r,n,i){var a=this.targetValues[e];if(a){var o=n||8,l=t-r,s=Math.max(1,Math.floor(l/o));return a.step=Math.min(i,a.step+s),a.step}}},{key:"getTargetEasing",value:function(e){var t,r=null===(t=this.targetValues[e])||void 0===t?void 0:t.easing,n=this.targets[e];return n&&"function"==typeof n.easing?n.easing.call(this,this.getTargetCycle(e)):r}},{key:"getTargetInterval",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.interval)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.interval?i.interval.call(this,this.getTargetCycle(e)):n}},{key:"getTargetSteps",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.steps)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.steps?i.steps.call(this,this.getTargetCycle(e)):n}},{key:"getTargetCycles",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.cycles)&&void 0!==t?t:1,i=this.targets[e];return i&&"function"==typeof i.cycles?i.cycles.call(this,this.getTargetCycle(e),n):n}},{key:"getTargetCycle",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.cycle)&&void 0!==t?t:0}},{key:"getValueListPointer",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.valuePointer)&&void 0!==t?t:1}},{key:"incrementTargetCycle",value:function(e){this.targetValues[e]&&this.targetValues[e].cycle++}},{key:"incrementValueListPointer",value:function(e){this.targetValues[e]&&this.targetValues[e].valuePointer++}},{key:"setTargetInterval",value:function(e,t){return this.targetValues[e]&&(this.targetValues[e].interval=t),this.targetValues[e].interval}},{key:"setTargetInitialValue",value:function(e,t){this.targetValues[e]&&(this.targetValues[e].initialValue=t)}},{key:"setLastUpdate",value:function(e){this.targetValues[e]&&(this.targetValues[e].lastUpdate=a.d.now(),this.targetValues[e].updateCount++)}},{key:"setTarget",value:function(e,t,r,n,a){if("object"===g(e)&&null!==e){var o=[e,t,r,n,a];t=o[0],r=o[1],n=o[2],a=o[3],e=""}"string"==typeof e&&(e=e.endsWith("+")?e:e+"+");var s=l.g.currentTargetName,u=l.g.currentTModel;return this.getParent()===u&&l.g.markChildAction(u,s,this),this.markLayoutDirty(e),i.j.executeImperativeTarget(this,e,t,r,n,a,s,u),this}},{key:"cancelAnimation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mode,r=void 0===t?"hold":t,i=e.commitStyle,a=void 0===i||i;return(0,n.s)().cancelTModelAnimation(this,{mode:r,commitStyle:a})}},{key:"hasTargetUpdates",value:function(e){var t;return e?!0===this.updatingTargetMap[e]||(null===(t=this.animatingMap)||void 0===t?void 0:t.has(e)):this.updatingTargetList.length>0}},{key:"addToActiveTargets",value:function(e){var t;!this.activeTargetMap[e]&&this.canTargetBeActivated(e)&&(this.markLayoutDirty(e),this.activeTargetMap[e]=!0,this.activeTargetList.push(e),null===(t=this.getParent())||void 0===t||t.addToActiveChildren(this))}},{key:"removeFromActiveTargets",value:function(e){if(this.activeTargetMap[e]){delete this.activeTargetMap[e];var t=this.activeTargetList.indexOf(e);t>=0&&this.activeTargetList.splice(t,1)}var r;0===this.activeTargetList.length&&(null===(r=this.getParent())||void 0===r||r.removeFromActiveChildren(this))}},{key:"addToUpdatingTargets",value:function(e){var t;this.updatingTargetMap[e]||(this.markLayoutDirty(e),this.updatingTargetMap[e]=!0,this.updatingTargetList.push(e),null===(t=this.getParent())||void 0===t||t.addToUpdatingChildren(this))}},{key:"addToNoDomUpdatingTargets",value:function(e){var t,r=this.targetValues[e];if(!r)return!1;var n=this.noDomUpdatingTargets||(this.noDomUpdatingTargets=new Set);return!n.has(e)&&(r.catchupAt=a.d.now(),n.add(e),this.removeFromAnimatingMap(e),this.removeFromUpdatingTargets(e),this.resetScheduleTimeStamp(e),this.resetScheduleRemainingTime(e),null===(t=this.getParent())||void 0===t||t.addToUpdatingChildren(this),!0)}},{key:"removeFromUpdatingTargets",value:function(e){if(this.updatingTargetMap[e]){delete this.updatingTargetMap[e];var t=this.updatingTargetList.indexOf(e);t>=0&&this.updatingTargetList.splice(t,1)}var r;0===this.updatingTargetList.length&&(null===(r=this.getParent())||void 0===r||r.removeFromUpdatingChildren(this))}},{key:"hasUpdatingImperativeTargets",value:function(e){var t,r,n=d([].concat(c(null!==(t=this.updatingTargetList)&&void 0!==t?t:[]),c(this.hasAnimatingTargets()?c(this.animatingMap.keys()):[])));try{for(n.s();!(r=n.n()).done;){var i,a=r.value;if(this.isTargetImperative(a)&&(null===(i=this.targetValues[a])||void 0===i?void 0:i.originalTargetName)===e)return!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"getUpdatingImperativeTargets",value:function(e){var t,r,n=[],i=d([].concat(c(null!==(t=this.updatingTargetList)&&void 0!==t?t:[]),c(this.hasAnimatingTargets()?c(this.animatingMap.keys()):[])));try{for(i.s();!(r=i.n()).done;){var a,o=r.value;this.isTargetImperative(o)&&(null===(a=this.targetValues[o])||void 0===a?void 0:a.originalTargetName)===e&&n.push(o)}}catch(e){i.e(e)}finally{i.f()}return n}},{key:"hasAnyUpdates",value:function(){var e,t,r,n;return 0!==this.updatingTargetList.length||0!==this.activeTargetList.length||0!==(null!==(e=null===(t=this.animatingMap)||void 0===t?void 0:t.size)&&void 0!==e?e:0)||0!==(null!==(r=null===(n=this.noDomUpdatingTargets)||void 0===n?void 0:n.size)&&void 0!==r?r:0)}},{key:"removeFromAnimatingMap",value:function(e){var t,r;null!==(t=this.animatingMap)&&void 0!==t&&t.has(e)&&(this.animatingMap.delete(e),0===this.animatingMap.size&&(null===(r=this.getParent())||void 0===r||r.removeFromAnimatingChildren(this)))}},{key:"clearAnimatingMap",value:function(){var e,t;null===(e=this.animatingMap)||void 0===e||e.clear(),null===(t=this.getParent())||void 0===t||t.removeFromAnimatingChildren(this)}},{key:"addToAnimatingMap",value:function(e){var t,r;null!==(t=this.targetValues[e])&&void 0!==t&&t.snapAnimation||(this.animatingMap||(this.animatingMap=new Map),this.animatingMap.set(e,!0),null===(r=this.getParent())||void 0===r||r.addToAnimatingChildren(this))}},{key:"getAnimatingTargets",value:function(){return this.animatingMap?c(this.animatingMap.keys()):[]}},{key:"isKeyAnimating",value:function(e){if(!this.animatingMap)return!1;var t=l.g.getOriginalNames(this,e).originalTargetName;return this.animatingMap.has(e)&&this.animatingMap.get(e).originalTargetName===t}},{key:"addToUpdatingChildren",value:function(e){this.updatingChildrenMap||(this.updatingChildrenMap=new Map),this.updatingChildrenMap.set(e.oid,e)}},{key:"removeFromUpdatingChildren",value:function(e){var t;null===(t=this.updatingChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"addToAnimatingChildren",value:function(e){this.animatingChildrenMap||(this.animatingChildrenMap=new Map),this.animatingChildrenMap.set(e.oid,e)}},{key:"removeFromAnimatingChildren",value:function(e){var t;null===(t=this.animatingChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"addToActiveChildren",value:function(e){this.activeChildrenMap||(this.activeChildrenMap=new Map),this.activeChildrenMap.set(e.oid,e)}},{key:"removeFromActiveChildren",value:function(e){var t;null===(t=this.activeChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"hasActiveChildren",value:function(){var e;return!(null===(e=this.activeChildrenMap)||void 0===e||!e.size)}},{key:"hasUpdatingChildren",value:function(){var e;return!(null===(e=this.updatingChildrenMap)||void 0===e||!e.size)}},{key:"hasAnimatingChildren",value:function(){var e;return!(null===(e=this.animatingChildrenMap)||void 0===e||!e.size)}},{key:"hasAnimatingTargets",value:function(){var e;return!(null===(e=this.animatingMap)||void 0===e||!e.size)}},{key:"hasValidAnimation",value:function(){return this.hasAnimatingTargets()&&this.lastBatch&&this.lastBatch.totalDuration>0}},{key:"deleteTargetValue",value:function(e){return delete this.targetValues[e],this.addToActiveTargets(e),this.removeFromUpdatingTargets(e),this}},{key:"clearAnimatingChildren",value:function(){var e;null===(e=this.animatingChildrenMap)||void 0===e||e.clear()}},{key:"clearUpdatingChildren",value:function(){var e;null===(e=this.updatingChildrenMap)||void 0===e||e.clear()}},{key:"clearActiveChildren",value:function(){var e;null===(e=this.activeChildrenMap)||void 0===e||e.clear()}},{key:"resetTarget",value:function(e){var t=this.targetValues[e];return t&&(t.isImperative=!1,t.executionFlag=!1,t.scheduleTimeStamp=void 0,t.step=0,t.cycle=0,t.steps=0,t.cycles=1,t.interval=0,t.status=""),this}},{key:"activateTargets",value:function(e){var t=this;Array.isArray(e)&&e.forEach((function(e){return t.activateTarget(e)}))}},{key:"activateTarget",value:function(e,t,r){var n=t,i=r;if(null!=t&&t.reset&&1===Object.keys(t).length&&!r&&(n=void 0,i=t),this.canTargetBeActivated(e)){var o=l.g.getResetOptions(i);o.shouldReset&&l.g.resetTargetState(this,e,o),a.d.isDefined(n)&&this.val("___".concat(e),n),this.isVisible()&&this.markLayoutDirty(e);var s,u,c=l.g.currentTModel,d=l.g.currentTargetName,h=this.targetValues[e]||l.g.emptyValue();this.getParent()===c&&l.g.markChildAction(c,d,this),h.invokerTModel=c,h.invokerTarget=d,this.targetValues[e]?(h.activationTime=a.d.now(),h.lastUpdate=a.d.now(),h.isImperative=!1,h.executionFlag=!1,h.scheduleTimeStamp=void 0,h.step=0,h.cycle=0,h.valuePointer=Array.isArray(h.valueList)?1:0,h.initialValue=void 0):(this.targetValues[e]=h,h.cycles=null!==(s=null===(u=this.targets[e])||void 0===u?void 0:u.cycles)&&void 0!==s?s:h.cycles),this.setTargetStatus(e,"active"),this.activate(e)}return this}},{key:"manageChildTargetExecution",value:function(e){return e.hasChildren()||e.addedChildren.length>0||e.dirtyLayout||0===e.targetExecutionCount}},{key:"setTargetMethodName",value:function(e,t){(!s.u.ignoreTargetMethodNameMap[e]||this.isTargetUpdating(e)||this.isTargetImperative(e))&&(this.targetMethodMap[e]||(this.targetMethodMap[e]=[]),this.targetMethodMap[e].includes(t)||this.targetMethodMap[e].push(t))}}],t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),b=r(530),T=r(952),w=r(756),k=r(249),S=r(260),x=r(791),M=r(611);function C(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=D(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function E(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){if(e){if("string"==typeof e)return P(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A(n.key),n)}}function A(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}function j(e,t,r){return t=I(t),function(e,t){if(t&&("object"==L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_()?Reflect.construct(t,r||[],I(e).constructor):t.apply(e,r))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function V(e,t){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},V(e,t)}var N=function(e){function t(e,r,n){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=j(this,t,[e,r,n,a])).allChildrenList=[],i.allChildrenMap={},i.childrenUpdateFlag=!1,i.$dom=null,i.x=0,i.y=0,i.absX=0,i.absY=0,i.domHeightTimestamp=0,i.domWidthTimestamp=0,i.contentWidth=0,i.contentHeight=0,i.bottomBaseWidth=0,i.topBaseHeight=0,i.styleMap={},i.tfMap={},i.visibilityStatus=void 0,i.hasDomNow=!1,i.isNowVisible=!1,i.currentStatus="new",i.dirtyLayout=!1,i.originWindowEpoch=-1,i.initTargets(),i.restoringRuntime=!1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(t,e),r=t,i=[{key:"createViewport",value:function(){this.viewport=this.viewport||new b.L;var e=this.getScrollTop(),t=-this.getScrollLeft(),r=-e;return this.viewport.xNext=t,this.viewport.xNorth=t,this.viewport.xEast=t,this.viewport.xSouth=t,this.viewport.xWest=t,this.viewport.scrollLeft=t,this.viewport.scrollTop=r,this.viewport.absX=this.absX,this.viewport.absY=this.absY,this.viewport.xOverflowReset=t,this.viewport.xOverflowLimit=t+this.getWidth(),this.viewport.yNext=r,this.viewport.yNorth=r,this.viewport.yWest=r,this.viewport.yEast=r,this.viewport.ySouth=r,this.calcContentWidthHeight(),this.viewport.setContainer(this),this.viewport}},{key:"calcContentWidthHeight",value:function(){this.contentHeight=this.viewport.ySouth-this.viewport.yNorth,this.contentWidth=this.viewport.xEast-this.viewport.xWest,this.topBaseHeight=this.viewport.yEast-this.viewport.yNorth,this.bottomBaseWidth=this.viewport.xSouth-this.viewport.xWest}},{key:"adjustViewport",value:function(){}},{key:"calcAbsolutePosition",value:function(e,t){this.absX=a.d.isDefined(this.val("absX"))?this.val("absX"):this.getParent().absX+e,this.absY=a.d.isDefined(this.val("absY"))?this.val("absY"):this.getParent().absY+t}},{key:"calcAbsolutePositionFromDom",value:function(){k.a.calcAbsolutePositionFromDom(this)}},{key:"removeChild",value:function(e){if(e&&this.allChildrenMap[e.oid])return l.g.resetBeforeDeletion(e),(0,n.EI)().markTModelDeleted(e),this.deletedChildren.push(e),this.removeFromUpdatingChildren(e),this.removeFromActiveChildren(e),this.removeFromAnimatingChildren(e),this.childrenUpdateFlag=!0,this.markLayoutDirty("removeChild"),(0,n.zw)().calcChildren(this),(0,n.fB)().schedule(1,"removeChild-"+e.oid),this}},{key:"moveChild",value:function(e,t){return this.movedChildren.push({index:t,child:e}),e.hasDom()&&e.requiresDomRelocation()&&(e.domOrderIndex=t,e.activate()),this.childrenUpdateFlag=!0,this.markLayoutDirty("moveChild"),(0,n.fB)().schedule(1,"moveChild-"+this.oid+"-"+e.oid),this}},{key:"addChild",value:function(e){var r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addedChildren.length+this.allChildrenList.length;if(!e||"object"!==L(e))return this;if(!(e instanceof t)){var o=a.d.cloneTargetDefinition(e),s=Object.keys(this.actualValues).find((function(t){return r.actualValues[t]===e})),u=s?o.id||s:"".concat(this.oid,"_");e=M.E.create(u,o,(function(e,r){return new t(e,r)}))}return this.childrenUpdateFlag=!0,e.toDiscard||(n.qw.tmodelIdMap[e.oid]=e,this.addedChildren.push({index:i,child:e}),e.parent=this,e.markLayoutDirty("addChild"),e.updatingTargetList.length>0&&this.addToUpdatingChildren(e),e.activeTargetList.length>0&&this.addToActiveChildren(e),l.g.markChildAction(this,l.g.currentTargetName,e)),this}},{key:"addSibling",value:function(e){this.getParent().addChild(e)}},{key:"removeSibling",value:function(e){var t=this;e||(e=this.getParent().getChildren().find((function(e){return e!==t}))),this.getParent().removeChild(e)}},{key:"getChildren",value:function(){var e,t,r,n=this,i=this.state();if((null===(e=i.deletedChildren)||void 0===e?void 0:e.length)>0&&(this.deletedChildren.forEach((function(e){if(n.allChildrenMap[e.oid]){var t=n.allChildrenList.indexOf(e);n.lastChildrenUpdate.deletions.push(e),n.allChildrenList.splice(t,1),delete n.allChildrenMap[e.oid]}})),this.deletedChildren.length=0),(null===(t=i.addedChildren)||void 0===t?void 0:t.length)>0&&(this.addedChildren.sort((function(e,t){return e.index-t.index})),this.addedChildren.forEach((function(e){var t=e.index,r=e.child;n.allChildrenMap[r.oid]||(a.d.isDefined(r.val("canDeleteDom"))||!1!==n.val("canDeleteDom")||r.val("canDeleteDom",!1),t>=n.allChildrenList.length?n.allChildrenList.push(r):n.allChildrenList.splice(t,0,r),n.allChildrenMap[r.oid]=r,n.lastChildrenUpdate.additions.push({index:t,child:r}))})),this.addedChildren.length=0),(null===(r=i.movedChildren)||void 0===r?void 0:r.length)>0){this.movedChildren.sort((function(e,t){return e.index-t.index}));var o={},l={};this.movedChildren.forEach((function(e){var t=e.index,r=e.child;n.lastChildrenUpdate.deletions.push(r),n.lastChildrenUpdate.additions.push({index:t,child:r});var i=n.allChildrenList.indexOf(r);if(t!==i){l[r.oid]&&delete l[r.oid];var a=n.allChildrenList.splice(t,1,r);!o[t]&&a.length>0&&(l[a[0].oid]={child:a[0],index:t+1}),i>=0&&(o[i]={fromIndex:i<t?i:t,child:r}),o[t]&&delete o[t]}})),Object.values(l).forEach((function(e){var t=e.index,r=e.child;n.allChildrenList.splice(t,0,r)})),Object.values(o).forEach((function(e){var t=e.fromIndex,r=e.child,i=n.allChildrenList.indexOf(r,t);n.allChildrenList.splice(i,1)})),this.movedChildren.length=0}return this.allChildrenList}},{key:"removeChildren",value:function(){var e=E(this.getChildren());if(0===e.length)return this;this.markLayoutDirty("removeChildren");var t,r=(0,n.EI)(),i=C(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;l.g.resetBeforeDeletion(a),a.cancelAnimation(),delete r.visibleOidMap[a.oid],delete r.preservedDomMap[a.oid],r.domPolicyMap.delete(a.oid),r.deletedTModelRoots.delete(a)}}catch(e){i.e(e)}finally{i.f()}this.hasDom()&&this.$dom.deleteAll();var o,s=C(e);try{for(s.s();!(o=s.n()).done;){var u=o.value;r.resetTModelDom(u)}}catch(e){s.e(e)}finally{s.f()}return this.allChildrenList=[],this.allChildrenMap={},this.clearUpdatingChildren(),this.clearActiveChildren(),this.clearAnimatingChildren(),this}},{key:"exists",value:function(){var e=this.getParent();return!!e&&(e.getChildren(),e.allChildrenMap[this.oid]===this)}},{key:"markEventDirty",value:function(){this.eventDirtyEpoch=(0,n.kQ)().eventEpoch,this.bracket&&this.bracket.markEventDirty(),this.parent&&this.parent.markEventDirty()}},{key:"hasEventDirty",value:function(){var e,t;return(null!==(e=this.eventDirtyEpoch)&&void 0!==e?e:-1)>(null!==(t=this.processedEventEpoch)&&void 0!==t?t:-1)}},{key:"markLayoutDirty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.dirtyLayout||(this.dirtyLayout={oids:{},count:0}),this.dirtyLayout.oids[t.oid]||(this.dirtyLayout.oids[t.oid]=t,this.dirtyLayout.count++),t===this&&(e=t.oid+"#"+e),this.dirtyLayout.lastKey=e,this.bracket&&this.bracket.markLayoutDirty(e,t),this.parent&&this.parent.markLayoutDirty(e,t)}},{key:"removeLayoutDirty",value:function(e,t){var r=this;this.dirtyLayout&&(t?t.forEach((function(e){r.dirtyLayout.oids[e]&&(r.dirtyLayout.count--,delete r.dirtyLayout.oids[e])})):this.dirtyLayout.oids[e.oid]&&(this.dirtyLayout.count--,delete this.dirtyLayout.oids[e.oid]),0===this.dirtyLayout.count&&(this.dirtyLayout=!1)),this.bracket&&this.bracket.removeLayoutDirty(e,t),this.parent&&this.parent.removeLayoutDirty(e,t)}},{key:"getDirtyLayout",value:function(){return this.dirtyLayout}},{key:"shouldCalculateChildren",value:function(){if(a.d.isDefined(this.val("calculateChildren")))return this.val("calculateChildren");if(!this.isIncluded()||this.isDomIsland()&&!this.hasDom())return!1;var e=!1!==this.dirtyLayout,t=this.hasEventDirty(),r=this.hasDom(),n=this.isVisible(),i="active"===this.currentStatus||this.visibilityDirty||e||n&&t||this.isNowVisible||r&&t;return this.currentStatus=void 0,i}},{key:"getFirstChild",value:function(){return this.getChildren()[0]}},{key:"hasChildren",value:function(){return this.getChildren().length>0}},{key:"findChildren",value:function(e){return this.getChildren().filter((function(t){return t.type===e}))}},{key:"getLastChild",value:function(){return this.getChildren()[this.allChildrenList.length-1]}},{key:"getChild",value:function(e){return"number"==typeof e?this.getChildren()[e]:this.findChild(e)}},{key:"getChildIndex",value:function(e){return this.getChildren().indexOf(e)}},{key:"getChildrenOids",value:function(){return this.getChildren().map((function(e){return e.oid})).join(" ")}},{key:"findChild",value:function(e){return this.getChildren().find((function(t){return t.type===e}))}},{key:"findLastChild",value:function(e){return this.getChildren().findLast((function(t){return t.type===e}))}},{key:"getChildByOid",value:function(e){return this.getChildren(),this.allChildrenMap[e]}},{key:"getParentValue",value:function(e){var t;return null===(t=this.parent)||void 0===t?void 0:t.val(e)}},{key:"pval",value:function(e){return this.getParentValue(e)}},{key:"getParentValueAtMyIndex",value:function(e){var t=this.getParentValue(e);if(Array.isArray(t)){var r,n=null===(r=this.getParent())||void 0===r?void 0:r.getChildIndex(this);if("number"==typeof n)return t[n]}return t}},{key:"getLoadedItems",value:function(e){return this.val(a.d.getLoadTargetName(e))}},{key:"delVal",value:function(e){this.markLayoutDirty("del-".concat(e)),e.startsWith("_")?delete this[e.slice(1)]:delete this.actualValues[e]}},{key:"val",value:function(e,t){var r=this.actualValues,n=this.lastActualValues;return e=l.g.getTargetName(e),2===arguments.length?(n[e]=r[e],t!==r[e]&&(r[e]=t,this.markLayoutDirty("val-".concat(e))),this):r[e]}},{key:"lastVal",value:function(e){return this.lastActualValues[e]}},{key:"setActual",value:function(e,t){this.targetValues[e]&&(this.targetValues[e].actual=t)}},{key:"floorVal",value:function(e){var t;return Math.floor(null!==(t=this.val(e))&&void 0!==t?t:0)}},{key:"getDomParent",value:function(){return this.val("domParent")||w.X.findParentByTarget(this,"domHolder",!0)}},{key:"getDomHolder",value:function(){var e=this.val("domHolder");if(e&&!0!==e&&this.$dom!==e)return e;var t=this.getDomParent();return t?t.$dom:null}},{key:"debug",value:function(){var e=this;return[{oid:this.oid},{visible:this.isVisible()},{visibilityStatus:this.visibilityStatus},{hasDom:this.hasDom()},{shouldCalculateChildren:this.shouldCalculateChildren()},{dirtyLayout:this.getDirtyLayout()},{x:this.getX()},{y:this.getY()},{width:this.getWidth()},{height:this.getHeight()},{tmodelComplete:l.g.isTModelComplete(this)},{targets:this.originalTargetNames},{activeTargetList:this.activeTargetList},{activatedTargets:this.activatedTargets},{updatingTargetList:this.updatingTargetList},{animatingMap:E(this.animatingMap?E(this.animatingMap.keys()):[])},{noDomUpdatingTargets:E(this.noDomUpdatingTargets?E(this.noDomUpdatingTargets):[])},{pendingTargets:E(this.pendingTargets?E(this.pendingTargets):[])},{styleTargetMap:E(this.styleTargetMap?E(this.styleTargetMap.keys()):[])},{passiveTargetList:this.passiveTargetList},{incompleteTargets:Object.keys(this.targetValues).filter((function(t){var r;return"complete"!==(null===(r=e.targetValues[t])||void 0===r?void 0:r.status)})).map((function(t){var r;return"".concat(t,":").concat(null===(r=e.targetValues[t])||void 0===r?void 0:r.status)}))},{updatingChildren:this.updatingChildrenMap?E(this.updatingChildrenMap.keys()):[]},{activeChildren:this.activeChildrenMap?E(this.activeChildrenMap.keys()):[]},{children:this.getChildren()},{targetValues:this.targetValues},{actualValues:this.actualValues}]}},{key:"logTree",value:function(){a.d.logTree(this)}},{key:"isVisible",value:function(){return this.val("isVisible")}},{key:"makeVisible",value:function(){this.val("isVisible",!0),this.targets.isVisible=!0}},{key:"makeInvisible",value:function(){this.val("isVisible",!1),this.targets.isVisible=!1}},{key:"managesOwnScroll",value:function(){var e,t,r,n;return a.d.isDefined(this.val("managesOwnScroll"))?!!this.val("managesOwnScroll"):!!(this.allTargetMap.onScroll||this.allTargetMap.onScrollLeft||this.allTargetMap.onScrollTop||this.allTargetMap.onWindowScroll||0!==(null!==(e=null===(t=this.$dom)||void 0===t?void 0:t.getScrollTop())&&void 0!==e?e:0)||0!==(null!==(r=null===(n=this.$dom)||void 0===n?void 0:n.getScrollLeft())&&void 0!==r?r:0))}},{key:"calcVisibility",value:function(){return T.n.calcVisibility(this)}},{key:"validateVisibilityInParent",value:function(){return a.d.isDefined(this.val("validateVisibilityInParent"))?this.val("validateVisibilityInParent"):this.parent.managesOwnScroll()}},{key:"hasDomHolderChanged",value:function(){return!this.reuseDomDefinition()&&this.getDomHolder()&&this.getDomHolder().exists()&&this.$dom.parent()!==this.getDomHolder().element}},{key:"hasBaseElementChanged",value:function(){return!!this.hasDom()&&this.getBaseElement()!==this.$dom.getTagName()}},{key:"mount",value:function(e){return S.v.mount(this,e),this}},{key:"unmount",value:function(){var e;this.hasDom()&&this.val("sourceDom")&&this.domState&&S.v.restoreDomState(this.$dom.element,this.domState),null===(e=this.parent)||void 0===e||e.removeChild(this)}},{key:"hasDom",value:function(){return!!this.$dom&&this.$dom.exists()}},{key:"isDomIsland",value:function(){return this.val("domIsland")}},{key:"getRealParent",value:function(){return this.parent}},{key:"getContentHeight",value:function(){return this.contentHeight}},{key:"getContentWidth",value:function(){return this.contentWidth}},{key:"useContentWidth",value:function(){return k.a.useContentWidth(this)}},{key:"useContentHeight",value:function(){return k.a.useContentHeight(this)}},{key:"getBaseWidth",value:function(){var e;return null!==(e=this.val("baseWidth"))&&void 0!==e?e:this.getWidth()}},{key:"getBaseHeight",value:function(){var e;return null!==(e=this.val("baseHeight"))&&void 0!==e?e:this.getHeight()}},{key:"getMinWidth",value:function(){var e;return null!==(e=this.val("minWidth"))&&void 0!==e?e:Math.min(this.getWidth(),this.getBaseWidth())}},{key:"getTopBaseHeight",value:function(){var e;return null!==(e=this.val("topBaseHeight"))&&void 0!==e?e:0}},{key:"getLayoutHeight",value:function(){var e=this.getHeight();return this.usesContentBoxSizing()&&(e+=this.getPaddingTop()+this.getPaddingBottom()),e}},{key:"getLayoutWidth",value:function(){var e=this.getWidth();return this.usesContentBoxSizing()&&(e+=this.getPaddingLeft()+this.getPaddingRight()),e}},{key:"usesContentBoxSizing",value:function(){return"border-box"!==this.getBoxSizing()}},{key:"getBoxSizing",value:function(){var e,t,r;return null!==(e=null!==(t=null!==(r=this.val("boxSizing"))&&void 0!==r?r:this.val("box-sizing"))&&void 0!==t?t:this.getParentValue("boxSizing"))&&void 0!==e?e:"content-box"}},{key:"getContainerOverflowMode",value:function(){var e;return null!==(e=this.val("containerOverflowMode"))&&void 0!==e?e:"auto"}},{key:"getItemOverflowMode",value:function(){var e=this.targets.itemOverflowMode;if(void 0!==e)return"function"==typeof e?e.call(this):e;var t=this.val("itemOverflowMode");return void 0!==t?t:"auto"}},{key:"getUIDepth",value:function(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e}},{key:"canBeAnimated",value:function(e){return s.u.isGpuPreferred(e)&&!1!==this.actualValues.webAnimation}},{key:"isTextOnly",value:function(){return a.d.isDefined(this.val("textOnly"))?this.val("textOnly"):"string"!=typeof this.getHtml()||!this.getHtml().trim().startsWith("<")}},{key:"getHtml",value:function(){return this.val("html")}},{key:"isInFlow",value:function(){return!a.d.isDefined(this.val("isInFlow"))||this.val("isInFlow")}},{key:"canHandleEvent",value:function(e){return!!this.allTargetMap[e]}},{key:"preventDefault",value:function(){return a.d.isDefined(this.val("preventDefault"))?this.val("preventDefault"):this.getParentValue("preventDefault")||!1}},{key:"canDeleteDom",value:function(){return a.d.isDefined(this.val("canDeleteDom"))?this.val("canDeleteDom"):!this.reuseDomDefinition()}},{key:"requiresDom",value:function(){return a.d.isDefined(this.val("requiresDom"))?this.val("requiresDom"):this.reuseDomDefinition()}},{key:"excludeStyling",value:function(){return!1===this.targets.styling}},{key:"getBracketThreshold",value:function(){return this.val("bracketThreshold")}},{key:"getBracketSize",value:function(){return this.val("bracketSize")}},{key:"shouldBeBracketed",value:function(){return a.d.isDefined(this.val("shouldBeBracketed"))?this.val("shouldBeBracketed"):this.getChildren().length>this.getBracketThreshold()}},{key:"isIncluded",value:function(){return this.val("isIncluded")}},{key:"canHaveDom",value:function(){return!(this.targets.$dom&&!this.val("$dom"))&&this.val("canHaveDom")}},{key:"requiresDomRelocation",value:function(){return a.d.isDefined(this.val("requiresDomRelocation"))?this.val("requiresDomRelocation"):!a.d.isDefined(this.tfMap.x)&&!a.d.isDefined(this.tfMap.y)}},{key:"getBaseElement",value:function(){var e;return this.val("baseElement")||this.val("element")||(null===(e=this.$dom)||void 0===e||null===(e=e.element)||void 0===e||null===(e=e.tagName)||void 0===e?void 0:e.toLowerCase())}},{key:"getOpacity",value:function(){return this.val("opacity")}},{key:"getCenterX",value:function(){return(this.parent.getWidth()-this.getWidth())/2}},{key:"getCenterY",value:function(){return(this.parent.getHeight()-this.getHeight())/2}},{key:"getX",value:function(){return this.val("x")}},{key:"getY",value:function(){return this.val("y")}},{key:"getZ",value:function(){return this.val("z")}},{key:"getPerspective",value:function(){return this.val("perspective")}},{key:"getRotate",value:function(){return this.val("rotate")}},{key:"getRotateX",value:function(){return this.val("rotateX")}},{key:"getRotateY",value:function(){return this.val("rotateY")}},{key:"getRotateZ",value:function(){return this.val("rotateZ")}},{key:"getScale",value:function(){return this.val("scale")}},{key:"getScaleX",value:function(){return this.val("scaleX")}},{key:"getScaleY",value:function(){return this.val("scaleY")}},{key:"getScaleZ",value:function(){return this.val("scaleZ")}},{key:"getSkewX",value:function(){return this.val("skewX")}},{key:"getSkewY",value:function(){return this.val("skewY")}},{key:"getSkewZ",value:function(){return this.val("skewZ")}},{key:"getMeasuringScale",value:function(){var e;return null!==(e=this.val("measuringScale"))&&void 0!==e?e:1}},{key:"getZIndex",value:function(){return this.val("zIndex")}},{key:"getMarginTop",value:function(){var e,t;return null!==(e=null!==(t=this.val("marginTop"))&&void 0!==t?t:this.val("topMargin"))&&void 0!==e?e:k.a.getMarginValue(this,"top")}},{key:"getMarginLeft",value:function(){var e,t;return null!==(e=null!==(t=this.val("marginLeft"))&&void 0!==t?t:this.val("leftMargin"))&&void 0!==e?e:k.a.getMarginValue(this,"left")}},{key:"getMarginRight",value:function(){var e,t,r;return(null!==(e=null!==(t=this.val("marginRight"))&&void 0!==t?t:this.val("rightMargin"))&&void 0!==e?e:k.a.getMarginValue(this,"right"))+(null!==(r=this.getParentValue("gap"))&&void 0!==r?r:0)}},{key:"getMarginBottom",value:function(){var e,t,r;return(null!==(e=null!==(t=this.val("marginBottom"))&&void 0!==t?t:this.val("bottomMargin"))&&void 0!==e?e:k.a.getMarginValue(this,"bottom"))+(null!==(r=this.getParentValue("gap"))&&void 0!==r?r:0)}},{key:"getPaddingTop",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingTop"))&&void 0!==t?t:this.val("topPadding"))&&void 0!==e?e:k.a.getPaddingValue(this,"top")}},{key:"getPaddingLeft",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingLeft"))&&void 0!==t?t:this.val("leftPadding"))&&void 0!==e?e:k.a.getPaddingValue(this,"left")}},{key:"getPaddingRight",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingRight"))&&void 0!==t?t:this.val("rightPadding"))&&void 0!==e?e:k.a.getPaddingValue(this,"right")}},{key:"getPaddingBottom",value:function(){var e,t;return null!==(e=null!==(t=this.val("paddingBottom"))&&void 0!==t?t:this.val("bottomPadding"))&&void 0!==e?e:k.a.getPaddingValue(this,"bottom")}},{key:"setLayoutX",value:function(e){this.x=e}},{key:"setLayoutY",value:function(e){this.y=e}},{key:"getWidth",value:function(){return a.d.isDefined(this.targets.width)||a.d.isDefined(this.targetValues.width)?this.val("width"):a.d.isDefined(this.targets.dim)||a.d.isDefined(this.targetValues.dim)?this.val("dim"):this.val("width")}},{key:"getHeight",value:function(){return a.d.isDefined(this.targets.height)||a.d.isDefined(this.targetValues.height)?this.val("height"):a.d.isDefined(this.targets.dim)||a.d.isDefined(this.targetValues.dim)?this.val("dim"):this.val("height")}},{key:"getScrollTop",value:function(){return this.val("scrollTop")}},{key:"getScrollLeft",value:function(){return this.val("scrollLeft")}},{key:"getCss",value:function(){return this.val("css")}},{key:"getStyle",value:function(){return this.val("style")}},{key:"getBackground",value:function(){return this.val("background")}},{key:"getBackgroundColor",value:function(){return this.val("backgroundColor")}},{key:"getAttributes",value:function(){return this.val("attributes")}},{key:"getInputValue",value:function(){return this.hasDom()?this.$dom.value():void 0}},{key:"isFormControl",value:function(){var e,t=this.getBaseElement();return"input"===t||"select"===t||"textarea"===t||(null===(e=this.$dom)||void 0===e||null===(e=e.element)||void 0===e?void 0:e.isContentEditable)}},{key:"isOverflowHidden",value:function(){return"hidden"===this.val("overflow")}},{key:"reuseDomDefinition",value:function(){return this.val("reuseDomDefinition")}},{key:"createRuntimeSnapshot",value:function(){return x.s.createRuntimeSnapshot(this)}},{key:"handleSpecialTarget",value:function(){return!1}},{key:"handleSpecialTargetStep",value:function(){return!1}},{key:"handleSpecialTargetEnd",value:function(){return!1}},{key:"finalizeChildrenTarget",value:function(){return!1}},{key:"onDomReady",value:function(){}}],i&&O(r.prototype,i),o&&O(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(m)},611:function(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,o=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.d(t,{E:function(){return d}});var s,u,c,d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"register",value:function(t,r){e.factories.push({match:t,create:r})}},{key:"create",value:function(e,t,r){for(var n=arguments.length,a=new Array(n>3?n-3:0),o=3;o<n;o++)a[o-3]=arguments[o];var l,s=i(this.factories);try{for(s.s();!(l=s.n()).done;){var u=l.value;if(u.match(t))return u.create.apply(u,[e,t].concat(a))}}catch(e){s.e(e)}finally{s.f()}return r.apply(void 0,[e,t].concat(a))}}],(r=null)&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();s=d,c=[],(u=l(u="factories"))in s?Object.defineProperty(s,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[u]=c},249:function(e,t,r){r.d(t,{a:function(){return x}});var n=r(34),i=r(333),a=r(585),o=r(855),l=r(768),s=r(737),u=r(421);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return(t=S(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=y(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function p(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(){b=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var a=t&&t.prototype instanceof m?t:m,o=Object.create(a.prototype),l=new A(n||[]);return i(o,"_invoke",{value:D(e,r,l)}),o}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",v="suspendedYield",g="executing",p="completed",y={};function m(){}function T(){}function w(){}var k={};u(k,o,(function(){return this}));var S=Object.getPrototypeOf,x=S&&S(S(j([])));x&&x!==r&&n.call(x,o)&&(k=x);var M=w.prototype=m.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(i,a,o,l){var s=h(e[i],e,a);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==c(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,r,n){var i=f;return function(a,o){if(i===g)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=P(l,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=g;var u=h(t,r,n);if("normal"===u.type){if(i=n.done?p:v,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=p,n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(c(t)+" is not iterable")}return T.prototype=w,i(M,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:T,configurable:!0}),T.displayName=u(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,s,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},C(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new E(d(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(M),u(M,s,"Generator"),u(M,o,(function(){return this})),u(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function T(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){T(a,n,i,o,l,"next",e)}function l(e){T(a,n,i,o,l,"throw",e)}o(void 0)}))}}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S(n.key),n)}}function S(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var x=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=null,c=[{key:"restoreScroll",value:(f=w(b().mark((function e(t){var r,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.scrollLeft||0,n=t.scrollTop||0,window.scrollTo(r,n),e.next=5,new Promise(requestAnimationFrame);case 5:return window.scrollTo(r,n),e.next=8,new Promise(requestAnimationFrame);case 8:window.scrollTo(r,n);case 9:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)})},{key:"getRootDom",value:function(){return l.J.query("#tgjs-root")?new l.J("#tgjs-root"):new l.J("body")}},{key:"getPageDom",value:function(){return new l.J("body")}},{key:"captureDomState",value:function(e){if(null!=e&&e.getElement()){var t=[e.getElement()].concat(p(e.queryAll("*"))),r=[],n=[];t.forEach((function(e,t){var i,a=null===(i=e.tagName)||void 0===i?void 0:i.toLowerCase();"input"===a?"file"!==(e.type||"text").toLowerCase()&&r.push({index:t,kind:"input",value:e.value,checked:e.checked,indeterminate:e.indeterminate}):"textarea"===a?r.push({index:t,kind:"textarea",value:e.value}):"select"===a?r.push({index:t,kind:"select",selected:p(e.options).map((function(e){return e.selected}))}):"details"===a&&r.push({index:t,kind:"details",open:e.open}),(e.scrollLeft||e.scrollTop)&&n.push({index:t,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop})}));var i,a=document.activeElement,o=a&&e.contains(a)?t.indexOf(a):-1;return o>=0&&"number"==typeof a.selectionStart&&(i={start:a.selectionStart,end:a.selectionEnd,direction:a.selectionDirection}),{controls:r,scrollPositions:n,activeIndex:o,selection:i}}}},{key:"restoreMountedDom",value:function(e,t){if(null!=e&&e.getElement()&&t){var r,n=[e.getElement()].concat(p(e.queryAll("*"))),i=g(t.controls||[]);try{var a=function(){var e,t=r.value,i=n[t.index];if(!i)return 1;var a=null===(e=i.tagName)||void 0===e?void 0:e.toLowerCase();"input"===t.kind&&"input"===a?(i.value=t.value,i.checked=t.checked,i.indeterminate=t.indeterminate):"textarea"===t.kind&&"textarea"===a?i.value=t.value:"select"===t.kind&&"select"===a?Array.from(i.options).forEach((function(e,r){var n;e.selected=!0===(null===(n=t.selected)||void 0===n?void 0:n[r])})):"details"===t.kind&&"details"===a&&(i.open=t.open)};for(i.s();!(r=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}}}},{key:"restoreDomInteractionState",value:(d=w(b().mark((function e(t,r){var n,i,a,o,l,s,u;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&t.getElement()&&r){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,new Promise(requestAnimationFrame);case 4:n=[t.getElement()].concat(p(t.queryAll("*"))),i=g(r.scrollPositions||[]),e.prev=6,i.s();case 8:if((a=i.n()).done){e.next=17;break}if(o=a.value,l=n[o.index]){e.next=13;break}return e.abrupt("continue",15);case 13:l.scrollLeft=o.scrollLeft,l.scrollTop=o.scrollTop;case 15:e.next=8;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(6),i.e(e.t0);case 22:return e.prev=22,i.f(),e.finish(22);case 25:if(s=n[r.activeIndex]){e.next=28;break}return e.abrupt("return");case 28:try{s.focus({preventScroll:!0})}catch(e){null===(u=s.focus)||void 0===u||u.call(s)}if(r.selection&&"function"==typeof s.setSelectionRange)try{s.setSelectionRange(r.selection.start,r.selection.end,r.selection.direction)}catch(e){}case 30:case"end":return e.stop()}}),e,null,[[6,19,22,25]])}))),function(e,t){return d.apply(this,arguments)})},{key:"getMarginValue",value:function(e,t){var r=e.val("margin");if("number"==typeof r)return r;if(Array.isArray(r)){if(2===r.length){var n=v(r,2),i=n[0],a=n[1];return"top"===t||"bottom"===t?i:a}if(4===r.length){var o=v(r,4),l=o[0],s=o[1],u=o[2],c=o[3];if("top"===t)return l;if("right"===t)return s;if("bottom"===t)return u;if("left"===t)return c}}return 0}},{key:"getPaddingValue",value:function(e,t){var r=e.val("padding");if("number"==typeof r)return r;if(Array.isArray(r)){if(2===r.length){var n=v(r,2),i=n[0],a=n[1];return"top"===t||"bottom"===t?i:a}if(4===r.length){var o=v(r,4),l=o[0],s=o[1],u=o[2],c=o[3];if("top"===t)return l;if("right"===t)return s;if("bottom"===t)return u;if("left"===t)return c}}return 0}},{key:"shouldMeasureHeightFromDom",value:function(t){return!1!==t.val("heightFromDom")&&(!t.excludeDefaultStyling()&&!n.d.isDefined(t.targetValues.height)&&!t.val("heightFromDom")&&!e.isHeightDefined(t)&&!t.hasChildren()||t.val("heightFromDom"))}},{key:"shouldMeasureWidthFromDom",value:function(t){return!1!==t.val("widthFromDom")&&(!t.excludeDefaultStyling()&&!t.reuseDomDefinition()&&!t.val("widthFromDom")&&!n.d.isDefined(t.targetValues.width)&&!e.isWidthDefined(t)&&!t.hasChildren()||t.val("widthFromDom"))}},{key:"isHeightDefined",value:function(e){var t;return e.isTargetImperative("height")||!!e.allTargetMap.height||!!e.allTargetMap.dim||n.d.isDefined(null===(t=e.targets.style)||void 0===t?void 0:t.height)}},{key:"isWidthDefined",value:function(e){var t;return e.isTargetImperative("width")||!!e.allTargetMap.width||!!e.allTargetMap.dim||n.d.isDefined(null===(t=e.targets.style)||void 0===t?void 0:t.width)}},{key:"isXDefined",value:function(e){return!!e.allTargetMap.x||!!e.targetValues.x}},{key:"isYDefined",value:function(e){return!!e.allTargetMap.y||!!e.targetValues.y}},{key:"useContentWidth",value:function(t){return!e.isWidthDefined(t)&&!t.val("widthFromDom")&&t.getContentWidth()>0}},{key:"useContentHeight",value:function(t){return!e.isHeightDefined(t)&&!t.val("heightFromDom")&&t.getContentHeight()>0}},{key:"createDom",value:function(e){e.$dom=new l.J,e.$dom.create(e.getBaseElement())}},{key:"patchDom",value:function(e){e.$dom.ensureId(e.oid),e.$dom.attr("tgjs","true"),e.getHtml()&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml())),e.setLastUpdate("html")}},{key:"initStyleMaps",value:function(e){e.domHeightTimestamp=0,e.domWidthTimestamp=0,e.tfMap={},e.styleMap={};var t,r=g(e.allStyleTargetMap);try{for(r.s();!(t=r.n()).done;){var i=v(t.value,1)[0];n.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){r.e(e)}finally{r.f()}}},{key:"getTransformValue",value:function(e,t){var r;return"x"===t?r=Math.floor(e.getX()):"y"===t?r=Math.floor(e.getY()):a.u.transformMap[t]&&(r=a.u.rotate3D[t]?e.val(t):a.u.scaleMap[t]?n.d.formatNum(e.val(t),2):e.floorVal(t)),r}},{key:"fixStyle",value:function(t){if(t.styleTargetMap&&t.hasDom()){for(var r=!1,i=0,o=p(t.styleTargetMap);i<o.length;i++){var l=v(o[i],1)[0];if(!t.isKeyAnimating(l))if(a.u.transformMap[l]){var s=e.getTransformValue(t,l);t.tfMap[l]!==s&&(t.tfMap[l]=s,r=!0)}else if("dim"===l){var u=Math.floor(t.val("dim"));t.styleMap.height===u&&t.$dom.getStyleValue("height")===u||(t.styleMap.height=u,t.$dom.height(u)),t.styleMap.width===u&&t.$dom.getStyleValue("width")===u||(t.styleMap.width=u,t.$dom.width(u))}else if("width"===l){var c=Math.floor(t.getWidth());t.styleMap.width===c&&t.$dom.getStyleValue("width")===c||(t.styleMap.width=c,t.$dom.width(c))}else if("height"===l){var d=Math.floor(t.getHeight());t.styleMap.height===d&&t.$dom.getStyleValue("height")===d||(t.styleMap.height=d,t.$dom.height(d))}else a.u.styleWithUnitMap[l]?n.d.isDefined(t.val(l))&&t.styleMap[l]!==t.val(l)&&(t.$dom.style(l,n.d.isNumber(t.val(l))?"".concat(t.val(l),"px"):t.val(l)),t.styleMap[l]=t.val(l)):n.d.isDefined(t.val(l))&&t.styleMap[l]!==t.val(l)&&(t.$dom.style(l,"".concat(t.val(l))),t.styleMap[l]=t.val(l))}r&&t.$dom.transform(e.getTransformString(t,t.tfMap)),t.styleTargetMap.clear()}}},{key:"commitAnimatedStyles",value:function(t,r){if(t.hasDom()&&null!=r&&r.size){var o,l=!1,s=g(r);try{for(s.s();!(o=s.n()).done;){var u=o.value,c=i.g.getTargetName(u),d=t.val(c);if(n.d.isDefined(d))if(a.u.transformMap[c]){var f=e.getTransformValue(t,c);n.d.isDefined(f)&&(t.tfMap[c]=f,l=!0)}else if("dim"!==c)if("width"!==c)if("height"!==c){var v="number"==typeof d&&a.u.styleWithUnitMap[c]?"".concat(d,"px"):"".concat(d);t.styleMap[c]=d,t.$dom.style(c,v)}else{var p=Math.floor(d);t.styleMap.height=p,t.$dom.height(p)}else{var y=Math.floor(d);t.styleMap.width=y,t.$dom.width(y)}else{var m=Math.floor(d);t.styleMap.width=m,t.styleMap.height=m,t.$dom.width(m),t.$dom.height(m)}}}catch(e){s.e(e)}finally{s.f()}if(l){var b=h(h({},e.getTransformBaseFromActualValues(t)),t.tfMap),T=e.getTransformString(t,b);t.$dom.transform(T,t.val("transformOrder"))}}}},{key:"setWidthFromDom",value:function(e){var t=e.domWidthTimestamp,r=e.getParent(),i=e.getDomParent(),a=!1;if((0,o.EI)().needsRerender(e)&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml()),a=!0),a||r&&t<=r.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.width("auto");var l=e.$dom.width();l=l>0&&e.getHtml()?l+1:l,e.domWidthTimestamp=n.d.now(),e.val("width",l),(l>0||0===l&&e.lastVal("width")>0)&&e.addToStyleTargetList("width"),e.markLayoutDirty("width"),(0,o.fB)().schedule(15,"resize")}}},{key:"setHeightFromDom",value:function(e){var t=e.domHeightTimestamp,r=e.getParent(),i=e.getDomParent(),a=!1;if((0,o.EI)().needsRerender(e)&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml()),a=!0),a||r&&t<=r.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.height("auto");var l=e.$dom.height();e.domHeightTimestamp=n.d.now(),e.val("height",l),(l>0||0===l&&e.lastVal("height")>0)&&e.addToStyleTargetList("height"),e.markLayoutDirty("height"),(0,o.fB)().schedule(15,"resize")}}},{key:"easingMorph",value:function(t,r,n,i,a,o){var l=t.getTargetEasing(r),s=l?u.G.easingFunction(l):void 0,c=s?s(t.getTargetStepPercent(r,a,o)):t.getTargetStepPercent(r,a,o);return e.morph(r,n,i,c)}},{key:"morph",value:function(e,t,r,n){if(a.u.colorMap[i.g.getTargetName(e)]){var o=s.I.color2Integers(r),l=t?s.I.color2Integers(t):s.I.color2Integers("#fff");if(o&&l){var u=Math.floor(o[0]*n+l[0]*(1-n)),c=Math.floor(o[1]*n+l[1]*(1-n)),d=Math.floor(o[2]*n+l[2]*(1-n));return"rgb(".concat(u,",").concat(c,",").concat(d,")")}return r}return"number"==typeof r?t+(r-t)*n:r}},{key:"fixAsyncStyle",value:function(e){if(e.asyncStyleTargetMap){var t,r=g(e.asyncStyleTargetMap);try{var i=function(){var r=v(t.value,1)[0];if("style"===r){var i=e.getStyle();n.d.isDefined(i)&&e.styleMap.style!==i&&(e.$dom.setStyleByMap(i),i.height&&e.val("height",parseInt(i.height,10)),i.width&&e.val("width",parseInt(i.width,10)),e.styleMap.style=i)}else if("attributes"===r){var o=e.getAttributes();n.d.isDefined(o)&&e.styleMap.attributes!==o&&(Object.keys(o).forEach((function(t){e.$dom.attr(t,o[t])})),e.styleMap.attributes=o)}else if("css"===r){var l=e.getCss();e.$dom.css()!==l&&e.$dom.css(l)}else a.u.attributeTargetMap[r]?e.$dom.attr(r,e.val(r)):n.d.isDefined(e.val(r))&&e.styleMap[r]!==e.val(r)&&(e.$dom.style(r,"".concat(e.val(r))),e.styleMap[r]=e.val(r))};for(r.s();!(t=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}e.asyncStyleTargetMap.clear()}}},{key:"getTransformBaseFromActualValues",value:function(e){var t={},r=a.u.transformMap;for(var i in e.actualValues)if(r[i]){var o=e.actualValues[i];n.d.isDefined(o)&&(t[i]=o)}return t}},{key:"num",value:function(e,t){var r=Number(e);return Number.isFinite(r)?r:t}},{key:"shouldUseImplicitTransformOrder",value:function(e){if(e.val("useTargetTransformOrder"))return!0;var t=e.originalTargetNames||[],r=function(e){return e.some((function(e){return t.indexOf(e)>=0}))},n=0;return r(["perspective"])&&n++,r(["translateX","translateY","translateZ","x","y","z"])&&n++,(r(["rotateX","rotateY","rotateZ"])||r(["rotate3DX"])&&r(["rotate3DY"])&&r(["rotate3DZ"])&&r(["rotate3DAngle"]))&&n++,r(["skewX","skewY","skew"])&&n++,(r(["scaleX","scaleY","scaleZ"])||r(["scale3DX"])&&r(["scale3DY"])&&r(["scale3DZ"]))&&n++,n>1}},{key:"buildImplicitTransformOrderMap",value:function(e){var t=function(t){return e.indexOf(t)>=0},r=function(t){var r,n=1/0,i=g(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=e.indexOf(a);o>=0&&o<n&&(n=o)}}catch(e){i.e(e)}finally{i.f()}return n},n=t("translateX")||t("translateY")||t("translateZ"),i=t("x")||t("y")||t("z"),a=t("rotate3DX")&&t("rotate3DY")&&t("rotate3DZ")&&t("rotate3DAngle"),o=t("scale3DX")&&t("scale3DY")&&t("scale3DZ"),l=t("skewX")&&t("skewY"),s=[];if(t("perspective")&&s.push({group:"perspective",order:r(["perspective"]),outputs:["perspective"]}),n?s.push({group:"translate",order:r(["translateX","translateY","translateZ"]),outputs:["translateX","translateY","translateZ"].filter(t)}):i&&s.push({group:"translate",order:r(["x","y","z"]),outputs:["translate3d"]}),a)s.push({group:"rotate",order:r(["rotate3DX","rotate3DY","rotate3DZ","rotate3DAngle"]),outputs:["rotate3d"]});else{var u=["rotateX","rotateY","rotateZ","rotate"],c=u.filter(t);c.length&&s.push({group:"rotate",order:r(u),outputs:c})}if(l)s.push({group:"skew",order:r(["skewX","skewY"]),outputs:["skew"]});else{var d=["skewX","skewY"].filter(t);d.length&&s.push({group:"skew",order:r(["skewX","skewY"]),outputs:d})}if(o)s.push({group:"scale",order:r(["scale3DX","scale3DY","scale3DZ"]),outputs:["scale3d"]});else{var h=["scaleX","scaleY","scaleZ","scale"],f=h.filter(t);f.length&&s.push({group:"scale",order:r(h),outputs:f})}var v={perspective:0,translate:1,rotate:2,skew:3,scale:4};s.sort((function(e,t){var r,n,i=Number.isFinite(e.order)?e.order:1/0,a=Number.isFinite(t.order)?t.order:1/0;return i!==a?i-a:(null!==(r=v[e.group])&&void 0!==r?r:999)-(null!==(n=v[t.group])&&void 0!==n?n:999)}));var p=s.flatMap((function(e){return e.outputs})),y={};return p.forEach((function(e,t){return y[e]=t})),y}},{key:"getTransformString",value:function(t,r){for(var i={},o={},l=n.d.isDefined(r.translateX)||n.d.isDefined(r.translateY)||n.d.isDefined(r.translateZ),s=0,u=Object.keys(r);s<u.length;s++){var c=u[s];if(!i[c])switch(c){case"translateX":case"translateY":case"translateZ":null!==r[c]&&(o[c]="".concat(c,"(").concat(e.num(r[c],0),"px)"),i[c]=!0);break;case"x":case"y":case"z":if(l){i.x=i.y=i.z=!0;break}var d="".concat(e.num(r.x,0),"px"),h="".concat(e.num(r.y,0),"px"),f="".concat(e.num(r.z,0),"px");o.translate3d="translate3d(".concat(d,", ").concat(h,", ").concat(f,")"),i.x=i.y=i.z=!0;break;case"rotate":case"rotateX":case"rotateY":case"rotateZ":case"rotate3DX":case"rotate3DY":case"rotate3DZ":case"rotate3DAngle":n.d.isDefined(r.rotate3DX)&&n.d.isDefined(r.rotate3DY)&&n.d.isDefined(r.rotate3DZ)&&n.d.isDefined(r.rotate3DAngle)?(o.rotate3d="rotate3d(".concat(e.num(r.rotate3DX,0),", ").concat(e.num(r.rotate3DY,0),", ").concat(e.num(r.rotate3DZ,0),", ").concat(e.num(r.rotate3DAngle,0),"deg)"),i.rotate3DX=i.rotate3DY=i.rotate3DZ=i.rotate3DAngle=!0):null!==r[c]&&(o[c]="".concat(c,"(").concat(e.num(r[c],0),"deg)"),i[c]=!0);break;case"scale":case"scaleX":case"scaleY":case"scaleZ":case"scale3DX":case"scale3DY":case"scale3DZ":var v,g,p;n.d.isDefined(r.scale3DX)&&n.d.isDefined(r.scale3DY)&&n.d.isDefined(r.scale3DZ)?(o.scale3d="scale3d(".concat(Number(null!==(v=r.scale3DX)&&void 0!==v?v:1),", ").concat(Number(null!==(g=r.scale3DY)&&void 0!==g?g:1),", ").concat(Number(null!==(p=r.scale3DZ)&&void 0!==p?p:1),")"),i.scale3DX=i.scale3DY=i.scale3DZ=!0):(o[c]="".concat(c,"(").concat(e.num(r[c],1),")"),i[c]=!0);break;case"skewX":case"skewY":var y,m;if(n.d.isDefined(r.skewX)&&n.d.isDefined(r.skewY))o.skew="skew(".concat(Number(null!==(y=r.skewX)&&void 0!==y?y:0),"deg, ").concat(Number(null!==(m=r.skewY)&&void 0!==m?m:0),"deg)"),i.skewX=i.skewY=!0;else if(null!==r[c]){var b;o[c]="".concat(c,"(").concat(Number(null!==(b=r[c])&&void 0!==b?b:0),"deg)"),i[c]=!0}break;case"perspective":o[c]="perspective(".concat(e.num(r.perspective,0),"px)"),i.perspective=!0}}var T={},w=t.val("transformOrder");Array.isArray(w)&&w.length?w.forEach((function(e,t){T[e]=t})):e.shouldUseImplicitTransformOrder(t)&&(t.implicitTransformOrderVersion!==t.targetsVersion&&(t.implicitTransformOrderMap=e.buildImplicitTransformOrderMap(t.originalTargetNames),t.implicitTransformOrderVersion=t.targetsVersion),T=t.implicitTransformOrderMap),Object.keys(T).length||(T=a.u.transformOrder);var k=Object.keys(o).sort((function(e,t){var r,n;return(null!==(r=T[e])&&void 0!==r?r:999)-(null!==(n=T[t])&&void 0!==n?n:999)})).map((function(e){return o[e]}));return k.join(" ")}},{key:"calcAbsolutePositionFromDom",value:function(e){if(e.hasDom()){var t=e.$dom.getBoundingClientRect(),r=Math.floor(t.left),n=Math.floor(t.top);r===Math.floor(e.absX)&&n===Math.floor(e.absY)||(e.absX=t.left,e.absY=t.top,e.markLayoutDirty("islandAbsXY"))}}}],r&&k(t.prototype,r),c&&k(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,c,d,f}()},34:function(e,t,r){r.d(t,{d:function(){return f}});var n=r(855),i=r(333),a=r(90);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,u=[{key:"contains",value:function(e,t){var r;return!(!e||!t||e!==t&&t.getDomParent()!==e&&(null===(r=t.getDomParent())||void 0===r?void 0:r.getDomParent())!==e)}},{key:"uniqueTModels",value:function(e){return s(new Map(e.filter(Boolean).map((function(e){return[e.oid,e]}))).values())}},{key:"list2map",value:function(t,r){return t.reduce((function(t,n){return t[n.oid]=e.isDefined(r)?r:n,t}),{})}},{key:"getDeepList",value:function(e){var t=[];return function e(r){if(r&&r.hasChildren()){var n=r.getChildren();t.push.apply(t,s(n)),n.forEach(e)}}(e),t}},{key:"areEqual",value:function(e,t,r){return r?JSON.stringify(e)===JSON.stringify(t):e===t}},{key:"momentum",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.002,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100,a=t-e,o=r<10?Math.abs(a)/10:Math.abs(a)/r,l=o/n,s=Math.pow(o,2)/(2*n);s>i&&(s=i);var u=a>0?a+s:a-s;return{distance:Math.round(u)/5,duration:Math.round(l),momentumDistance:s}}},{key:"isDefined",value:function(e){return null!=e}},{key:"hasProperty",value:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"limit",value:function(t,r,n){return t=(t=(t=e.isDefined(t)?t:r)>n?n:t)<r?r:t}},{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"getLoadTargetName",value:function(e){return"load-".concat(e)}},{key:"formatNum",value:function(e,t){return e?parseFloat(e.toString()).toFixed(t):0}},{key:"now",value:function(){return performance.now()}},{key:"log",value:function(e){return!0===e?console.log:function(){}}},{key:"distance",value:function(e,t,r,n){return Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2))}},{key:"getFullLink",value:function(t){if(e.isDefined(t)){if(!t.startsWith("http")){var r=window.location.protocol;r+=r.endsWith(":")?"//":"://";var n="".concat(r).concat(window.location.hostname);t=t.startsWith("/")?n+t:"".concat(n,"/").concat(t)}return t.endsWith("/")?t.slice(0,-1):t}}},{key:"isStringBooleanOrNumber",value:function(e){var t=l(e);return"string"===t||"boolean"===t||"number"===t}},{key:"logTree",value:function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,n.Bt)(),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=o((0,n.zw)().calcChildren(r));try{for(a.s();!(t=a.n()).done;){var l,s,u,c=t.value,d=c.isVisible()?i+"| ":i+"x ";"BI"===c.type?console.log("".concat(d).concat(c.oid," v:").concat(c.isVisible()," x:").concat(Math.floor(c.getX())," y:").concat(Math.floor(c.getY()),", absX:").concat(Math.floor(c.absX),", absY:").concat(Math.floor(c.absY)," n-e-s:").concat(Math.floor(null===(l=c.viewport)||void 0===l?void 0:l.yNorth),"-").concat(Math.floor(null===(s=c.viewport)||void 0===s?void 0:s.yEast),"-").concat(Math.floor(null===(u=c.viewport)||void 0===u?void 0:u.ySouth)," w:").concat(Math.floor(c.getBaseWidth())," ww:").concat(Math.floor(c.getContentWidth())," h:").concat(Math.floor(c.getBaseHeight())," hh:").concat(Math.floor(c.getContentHeight()))):console.log("".concat(d).concat(c.oid," v:").concat(c.isVisible()," x:").concat(Math.floor(c.getX())," y:").concat(Math.floor(c.getY())," absX:").concat(Math.floor(c.absX),", absY:").concat(Math.floor(c.absY)," w:").concat(Math.floor(c.getWidth())," h:").concat(Math.floor(c.getHeight())," hc:").concat(Math.floor(c.getContentHeight()))),c.hasChildren()&&"exampleItem"!==c.type&&e.logTree(c,d)}}catch(e){a.e(e)}finally{a.f()}}},{key:"logBranch",value:function(e){for(var t=[];e;)t.unshift(e),e=e.bracket?e.bracket:e.getParent();for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r];if((0,n.zw)().getChildren(i).indexOf(a)<0){console.log("branch is not valid: "+i.oid+", "+a.oid);break}}console.log(t.map((function(e){return e.oid})))}},{key:"handleValueChange",value:function(t,r){var n=t.targets[r];n||(r=i.g.getTargetName(r),n=t.targets[r]);var a=t.val(r),o=t.lastVal(r);return"object"===l(n)&&"function"==typeof n.onValueChange&&(!e.areEqual(a,o,n.deepEquality)&&(n.onValueChange.call(t,a,o,t.getTargetCycle(r)),t.setTargetMethodName(r,"onValueChange")),!0)}},{key:"mergeTargets",value:function(t,r){var n,i=r.targets,a=r.originalTargetNames,o=t.targets,l=[];a.forEach((function(t){e.isDefined(o[t])||l.push(t)})),(n=t.originalTargetNames).push.apply(n,l),l.forEach((function(e){var r=t.originalTargetNames.indexOf(e);o[e]=i[e],t.processNewTarget(e,r)}))}},{key:"cloneTargetDefinition",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(!e.isDefined(t)||"object"!==l(t))return t;if("function"==typeof t)return t;if(t instanceof a.c||t instanceof Element||t instanceof Node||t instanceof Date||t instanceof RegExp)return t;if(r.has(t))return r.get(t);if(Array.isArray(t)){var n=[];r.set(t,n);var i,s=o(t);try{for(s.s();!(i=s.n()).done;){var u=i.value;n.push(e.cloneTargetDefinition(u,r))}}catch(e){s.e(e)}finally{s.f()}return n}var c=Object.getPrototypeOf(t);if(c!==Object.prototype&&null!==c)return t;var d={};r.set(t,d);for(var h=0,f=Object.keys(t);h<f.length;h++){var v=f[h];d[v]=e.cloneTargetDefinition(t[v],r)}return d}},{key:"advanceTargetByElapsed",value:function(t,r){var n,i=t.targetValues[r];if(!i)return{step:0,cycle:0,valuePointer:1,done:!1};if(!e.isDefined(i.catchupAt)){var a,o,l=t.getTargetStep(r),s=null!==(a=i.valueList)&&void 0!==a&&a.length?t.getValueListPointer(r):0;return{step:l,cycle:t.getTargetCycle(r),valuePointer:s,done:!(null===(o=i.valueList)||void 0===o||!o.length)&&s>=i.valueList.length}}var u=e.now(),c=u-i.catchupAt,d=null!==(n=i.valueList)&&void 0!==n&&n.length?e.advanceValueListTargetByElapsed(t,r,c):e.advanceSimpleTargetByElapsed(t,r,c);return d.done||(i.catchupAt=u-d.remainingMs),d}},{key:"advanceSimpleTargetByElapsed",value:function(t,r,n){var i=t.getTargetSteps(r),a=t.getTargetInterval(r)||8,o=t.getTargetCycles(r),l=t.getTargetStep(r),s=t.getTargetCycle(r),u=n;if(i<=0)return{step:i,valuePointer:0,cycle:o,done:!0,remainingMs:0};for(;u>0&&s<o;){var c=Math.max(i-l,0),d=c*a;if(!(u>=d)){var h=e.limit(Math.floor(u/a),0,c);return{step:l+=h,steps:i,valuePointer:0,cycle:s,done:!1,remainingMs:u-=h*a}}if(u-=d,++s>=o)return{step:i,valuePointer:0,cycle:o,done:!0,remainingMs:u};l=0}return{step:l,steps:i,valuePointer:0,cycle:s,done:s>=o,remainingMs:u}}},{key:"advanceValueListTargetByElapsed",value:function(t,r,n){for(var i=t.targetValues[r],a=i.valueList,o=i.stepList||[1],l=i.intervalList||[i.interval||8],s=t.getTargetCycles(r),u=t.getTargetCycle(r),c=t.getValueListPointer(r),d=t.getTargetStep(r),h=n;u<s;){for(;h>0&&c<a.length;){var f=o[(c-1)%o.length],v=l[(c-1)%l.length]||8;d=e.limit(d,0,f);var g=Math.max(f-d,0),p=g*v;if(!(h>=p)){var y=e.limit(Math.floor(h/v),0,g);return{step:d+=y,steps:f,valuePointer:c,cycle:u,done:!1,remainingMs:h-=y*v}}h-=p,c++,d=0}if(!(c>=a.length))break;if(++u>=s){var m=a.length,b=o[Math.max(0,a.length-2)%o.length];return{step:b,steps:b,valuePointer:m,cycle:s,done:!0,remainingMs:h}}if(c=1,d=0,h<=0)break}return{step:d,steps:o[(c-1)%o.length],valuePointer:c,cycle:u,remainingMs:h,done:u>=s}}}],(r=null)&&d(t.prototype,r),u&&d(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,u}()},585:function(e,t,r){r.d(t,{u:function(){return g}});var n,i=r(855),a=r(34),o=r(333);function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v(n.key),n)}}function f(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}var g=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"defaultActualValues",value:function(){return{x:0,y:0,width:0,height:0,opacity:1,scale:1,scrollLeft:0,scrollTop:0,borderRadius:0,children:[],isInFlow:!0,element:"div",canHaveDom:!0,isIncluded:!0,bracketThreshold:40,bracketSize:2,preventDefault:void 0,canDeleteDom:void 0}}},{key:"toCanonicalKey",value:function(t){var r,n=String(t),i=n.toLowerCase();return null!==(r=e.attributesToTargets[i])&&void 0!==r?r:n}},{key:"isLifeCycleMethod",value:function(t){return e.lifecycleMethodSet.has(t)||e.lifecyclePatterns.step.test(t)||e.lifecyclePatterns.end.test(t)}},{key:"isGpuPreferred",value:function(t){return!!e.gpuTargetMap[o.g.getTargetName(t)]}},{key:"isTransformKey",value:function(t){return!!e.transformMap[t]}},{key:"affectsVisibility",value:function(e){return e=o.g.getTargetName(e),["x","y","width","height","dim"].includes(o.g.getTargetName(e))}}],(r=null)&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();n=g,f(g,"transformOrder",{perspective:0,translateX:1,translateY:1,translateZ:1,translate:1,translate3d:1,rotate:2,rotateX:2,rotateY:2,rotateZ:2,rotate3d:2,skew:3,skewX:3,skewY:3,scale:4,scaleX:4,scaleY:4,scaleZ:4,scale3DX:4,scale3DY:4,scale3DZ:4}),f(g,"defaultTargetStyles",{position:"absolute",left:0,top:0,zIndex:1}),f(g,"transformMap",{x:!0,y:!0,z:!0,translateX:!0,translateY:!0,translateZ:!0,perspective:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,rotate3DX:!0,rotate3DY:!0,rotate3DZ:!0,rotate3DAngle:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,scale3DX:!0,scale3DY:!0,scale3DZ:!0,skew:!0,skewX:!0,skewY:!0}),f(g,"dimMap",{width:!0,height:!0,dim:!0}),f(g,"styleWithUnitMap",{width:!0,height:!0,fontSize:!0,lineHeight:!0,borderRadius:!0,padding:!0,paddingLeft:!0,paddingRight:!0,paddingTop:!0,paddingBottom:!0,left:!0,top:!0,right:!0,bottom:!0,wordSpacing:!0,letterSpacing:!0}),f(g,"colorMap",{color:!0,backgroundColor:!0,borderColor:!0,background:!0}),f(g,"styleTargetMap",c(c(c(c({},n.transformMap),n.styleWithUnitMap),n.colorMap),{},{dim:!0,color:!0,opacity:!0,zIndex:!0,border:!0,borderTop:!0,borderLeft:!0,borderRight:!0,borderBottom:!0})),f(g,"gpuTargetMap",c(c({},n.transformMap),{},{color:!0,backgroundColor:!0,borderColor:!0,opacity:!0,width:!0,height:!0})),f(g,"asyncStyleTargetMap",{position:!0,css:!0,style:!0,textAlign:!0,boxSizing:!0,transformStyle:!0,transformOrigin:!0,attributes:!0,justifyContent:!0,flexDirection:!0,alignItems:!0,display:!0,cursor:!0,fontFamily:!0,overflow:!0,overflowX:!0,overflowY:!0,textDecoration:!0,boxShadow:!0,fontWeight:!0,willChange:!0,backgroundImage:!0,backgroundSize:!0,flexWrap:!0,userSelect:!0,outline:!0,backfaceVisibility:!0,filter:!0}),f(g,"scaleMap",{scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,scale3DX:!0,scale3DY:!0,scale3DZ:!0}),f(g,"rotate3D",{rotate3DX:!0,rotate3DY:!0,rotate3DZ:!0}),f(g,"attributeTargetMap",{lang:!0,autoFocus:!0,placeholder:!0,autoComplete:!0,name:!0,type:!0,src:!0,href:!0,method:!0,size:!0,value:!0,maxLength:!0,minLength:!0,max:!0,min:!0,readOnly:!0,required:!0,alt:!0,disabled:!0,action:!0,accept:!0,selected:!0,rows:!0,cols:!0,tabIndex:!0,role:!0,ariaLabel:!0,ariaCurrent:!0,ariaPressed:!0}),f(g,"mustExecuteTargets",{width:!0,height:!0,heightFromDom:!0,widthFromDom:!0,fetch:!0,fetchImage:!0,isVisible:!0,canDeleteDom:!0}),f(g,"ignoreRerun",{isVisible:!0}),f(g,"ignoreTargetMethodNameMap",{isVisible:!0}),f(g,"cssFunctionMap",{skew:{x:0,y:0},translate3d:{x:0,y:0,z:0},rotate3d:{x:0,y:0,z:0,a:0},scale3d:{x:0,y:0,z:0}}),f(g,"bypassInitialProcessingTargetMap",{onChildrenChange:!0,onVisibleChildrenChange:!0,onPageClose:!0}),f(g,"controlTargetMap",{defaultStyling:!0,styling:!0,reuseDomDefinition:!0,useWindowFrame:!0,canDeleteDom:!0,onDomEvent:!0,canHaveDom:!0}),f(g,"events",{mouseStart:{pointerdown:{eventName:"mousedown",inputType:"pointer",eventType:"start",order:2,windowEvent:!1,queue:!0,rateLimit:0},mousedown:{eventName:"mousedown",inputType:"mouse",eventType:"start",order:3,windowEvent:!1,queue:!0,rateLimit:0}},mouseEnd:{pointerup:{eventName:"mouseup",inputType:"pointer",eventType:"end",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseup:{eventName:"mouseup",inputType:"mouse",eventType:"end",order:3,windowEvent:!1,queue:!0,rateLimit:0}},clickEvents:{click:{eventName:"click",inputType:"mouse",eventType:"click",order:1,windowEvent:!1,queue:!1,rateLimit:0}},touchStart:{touchstart:{eventName:"touchstart",inputType:"touch",eventType:"start",order:1,windowEvent:!1,queue:!0,rateLimit:0}},touchEnd:{touchend:{eventName:"touchend",inputType:"touch",eventType:"end",order:1,windowEvent:!1,queue:!0,rateLimit:0}},cancelEvents:{touchcancel:{eventName:"touchcancel",inputType:"touch",eventType:"cancel",order:1,windowEvent:!1,queue:!0,rateLimit:0},pointercancel:{eventName:"mousecancel",inputType:"pointer",eventType:"cancel",order:2,windowEvent:!1,queue:!0,rateLimit:0}},windowEvents:{keyup:{eventName:"key",inputType:"",eventType:"key",order:1,windowEvent:!0,queue:!0,rateLimit:50},keydown:{eventName:"keydown",inputType:"",eventType:"keydown",order:1,windowEvent:!0,queue:!0,rateLimit:50},blur:{eventName:"blur",inputType:"mouse",eventType:"cancel",order:2,windowEvent:!0,queue:!0,rateLimit:0},resize:{eventName:"resize",inputType:"",eventType:"resize",order:1,windowEvent:!0,queue:!0,rateLimit:50},orientationchange:{eventName:"resize",inputType:"",eventType:"resize",order:1,windowEvent:!0,queue:!0,rateLimit:50},scroll:{eventName:"scroll",inputType:"",eventType:"scroll",order:1,windowEvent:!0,queue:!0,rateLimit:50}},containerScroll:{scroll:{eventName:"scroll",inputType:"",eventType:"scroll",order:1,windowEvent:!1,queue:!0,rateLimit:50}},inputEvents:{input:{eventName:"input",inputType:"",eventType:"input",order:1,windowEvent:!1,queue:!0,rateLimit:50}},changeEvents:{change:{eventName:"change",inputType:"",eventType:"change",order:1,windowEvent:!1,queue:!0,rateLimit:0}},submitEvents:{submit:{eventName:"submit",inputType:"form",eventType:"submit",order:1,windowEvent:!1,queue:!0,rateLimit:0}},popState:{popstate:{eventName:"popstate",inputType:"",eventType:"popstate",order:1,windowEvent:!0,queue:!0,rateLimit:0}},leaveEvents:{pointerleave:{eventName:"mouseleave",inputType:"pointer",eventType:"leave",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseleave:{eventName:"mouseleave",inputType:"mouse",eventType:"leave",order:3,windowEvent:!1,queue:!0,rateLimit:0}},enterEvents:{pointerenter:{eventName:"mouseenter",inputType:"pointer",eventType:"enter",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseenter:{eventName:"mouseenter",inputType:"mouse",eventType:"enter",order:3,windowEvent:!1,queue:!0,rateLimit:0}},moveEvents:{touchmove:{eventName:"touchmove",inputType:"touch",eventType:"move",order:1,windowEvent:!1,queue:!0,rateLimit:50},pointermove:{eventName:"mousemove",inputType:"pointer",eventType:"move",order:2,windowEvent:!1,queue:!0,rateLimit:50},mousemove:{eventName:"mousemove",inputType:"mouse",eventType:"move",order:3,windowEvent:!1,queue:!0,rateLimit:50}},documentDragEvents:{pointermove:{eventName:"mousemove",inputType:"pointer",eventType:"move",order:2,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},mousemove:{eventName:"mousemove",inputType:"mouse",eventType:"move",order:3,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},touchmove:{eventName:"touchmove",inputType:"touch",eventType:"move",order:1,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},pointerup:{eventName:"mouseup",inputType:"pointer",eventType:"end",order:2,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},mouseup:{eventName:"mouseup",inputType:"mouse",eventType:"end",order:3,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},touchend:{eventName:"touchend",inputType:"touch",eventType:"end",order:1,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},pointercancel:{eventName:"mousecancel",inputType:"pointer",eventType:"cancel",order:2,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},touchcancel:{eventName:"touchcancel",inputType:"touch",eventType:"cancel",order:1,windowEvent:!1,queue:!0,rateLimit:0,capture:!0}},wheelEvents:{wheel:{eventName:"wheel",inputType:"",eventType:"wheel",order:1,windowEvent:!1,queue:!0,rateLimit:50},mousewheel:{eventName:"wheel",inputType:"",eventType:"wheel",order:1,windowEvent:!1,queue:!0,rateLimit:50}}}),f(g,"attributesToTargets",{onstart:"onStart",onend:"onEnd",onkey:"onKey",onkeydown:"onKeyDown",onanykey:"onAnyKey",onclick:"onClick",onanyclick:"onAnyClick",onhover:"onHover",onswipe:"onSwipe",onanyswipe:"onAnySwipe",onpinch:"onPinch",onenter:"onEnter",onleave:"onLeave",onblur:"onBlur",onfocus:"onFocus",onscroll:"onScroll",onscrollleft:"onScrollLeft",onscrolltop:"onScrollTop",onscrollleftend:"onScrollLeftEnd",onscrolltopend:"onScrollTopEnd",onwindowscroll:"onWindowScroll",onwindowscrolltopend:"onWindowScrollTopEnd",onwindowscrollleftend:"onWindowScrollLeftEnd",onpopstate:"onPopState",onchange:"onChange",oninput:"onInput",onsubmit:"onSubmit",onvisible:"onVisible",oninvisible:"oInvisible",onresize:"onResize",textalign:"textAlign",preventdefault:"preventDefault",translatex:"translateX",translatey:"translateY",translatez:"translateZ",rotate3dx:"rotate3DX",rotate3dy:"rotate3DY",rotate3dz:"rotate3DZ",rotate3dangle:"rotate3DAngle",scale3dx:"scale3DX",scale3dy:"scale3DY",scale3dz:"scale3DZ",skewx:"skewX",skewy:"skewY",lineheight:"lineHeight",fontsize:"fontSize",borderradius:"borderRadius",letterspacing:"letterSpacing",backgroundcolor:"backgroundColor",backgroundimage:"backgroundImage",backgroundsize:"backgroundSize",bordertop:"borderTop",borderleft:"borderLeft",borderright:"borderRight",borderbottom:"borderBottom",boxsizing:"boxSizing",transformstyle:"transformStyle",transformorigin:"transformOrigin",justifycontent:"justifyContent",flexdirection:"flexDirection",flexwrap:"flexWrap",alignitems:"alignItems",fontfamily:"fontFamily",overflowx:"overflowX",overflowy:"overflowY",textdecoration:"textDecoration",boxshadow:"boxShadow",fontweight:"fontWeight",willchange:"willChange",domholder:"domHolder",shouldcalculatechildtargets:"shouldCalculateChildTargets",domparent:"domParent",containeroverflowmode:"containerOverflowMode",itemoverflowmode:"itemOverflowMode",onvisiblechildrenchange:"onVisibleChildrenChange",onchildrenchange:"onChildrenChange",isvisible:"isVisible",isinflow:"isInFlow",basewidth:"baseWidth",baseheight:"baseHeight",paddingleft:"paddingLeft",paddingright:"paddingRight",paddingtop:"paddingTop",paddingbottom:"paddingBottom",marginleft:"marginLeft",marginright:"marginRight",margintop:"marginTop",marginbottom:"marginBottom",userselect:"userSelect",arialabel:"ariaLabel",ariacurrent:"ariaCurrent",ariapressed:"ariaPressed",tabindex:"tabIndex",backfacevisibility:"backfaceVisibility"}),f(g,"targetToEventsMapping",{onStart:["touchStart","mouseStart"],onEnd:[],onKey:[],onKeyDown:[],onAnyKey:[],onBlur:[],onFocus:[],onClick:["clickEvents","touchStart","mouseStart"],onAnyClick:["clickEvents","touchStart","mouseStart"],onHover:["moveEvents"],onSwipe:["touchStart","mouseStart"],onAnySwipe:["touchStart","mouseStart"],onPinch:["touchStart"],onEnter:["enterEvents"],onLeave:["leaveEvents"],onScroll:["touchStart","mouseStart","wheelEvents"],onScrollLeft:["touchStart","mouseStart","wheelEvents"],onScrollTop:["touchStart","mouseStart","wheelEvents"],onScrollLeftEnd:["touchStart","mouseStart","wheelEvents"],onScrollTopEnd:["touchStart","mouseStart","wheelEvents"],onWindowScroll:["containerScroll"],onWindowScrollTopEnd:["containerScroll"],onWindowScrollLeftEnd:["containerScroll"],onPopState:["popState"],onChange:["changeEvents"],onInput:["inputEvents"],onSubmit:["submitEvents"]}),f(g,"internalEventMap",{onDomEvent:function(e){return e.hasDomNow},onVisible:function(e){return e.isNowVisible},onInvisible:function(e){return e.isNowInvisible},onResize:function(e){var t,r=e.getParent(),n=(0,i.S9)(),a=r?r.getDimLastUpdate():0,o=Math.max(n,a);return!!o&&(!((null!==(t=e.lastResizeHandledTime)&&void 0!==t?t:0)>=o)&&(e.lastResizeHandledTime=o,!0))}}),f(g,"allEventMap",{onStart:function(e){return(0,i.kQ)().isStartEvent()&&(0,i.kQ)().isStartHandler(e)},onEnd:function(e){return(0,i.kQ)().isEndEvent()&&(0,i.kQ)().isEndHandler(e)},onAnySwipe:function(){return(0,i.kQ)().isSwipeEvent()&&a.d.isDefined((0,i.kQ)().swipeStartX)},onHover:function(e){return(0,i.kQ)().isMoveEvent()&&(0,i.kQ)().isHoverHandler(e)},onClick:function(e){return(0,i.kQ)().isClickEvent()&&(0,i.kQ)().isClickHandler(e)},onAnyClick:function(){return(0,i.kQ)().isClickEvent()},onEnter:function(e){return(0,i.kQ)().isEnterHandler(e)},onLeave:function(e){return(0,i.kQ)().isLeaveHandler(e)},onSwipe:function(e){return(0,i.kQ)().isSwipeHandler(e)&&(0,i.kQ)().isSwipeEvent()&&a.d.isDefined((0,i.kQ)().swipeStartX)},onFocus:function(e){return(0,i.kQ)().onFocus(e)},onBlur:function(e){return(0,i.kQ)().onBlur(e)},onPinch:function(e){return(0,i.kQ)().isPinchHandler(e)},onKey:function(e){return"key"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey&&(0,i.kQ)().currentHandlers.focus===e&&(0,i.kQ)().currentHandlers.justFocused!==e},onKeyDown:function(e){return"keydown"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey&&(0,i.kQ)().currentHandlers.focus===e&&(0,i.kQ)().currentHandlers.justFocused!==e},onAnyKey:function(){return"key"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey},onScroll:function(e){return(0,i.kQ)().isScrollLeftHandler(e)&&(0,i.kQ)().deltaX()||(0,i.kQ)().isScrollTopHandler(e)&&(0,i.kQ)().deltaY()},onScrollTop:function(e){return"horizontal"!==(0,i.kQ)().getOrientation()&&(0,i.kQ)().isScrollTopHandler(e)&&(0,i.kQ)().deltaY()},onScrollLeft:function(e){return"vertical"!==(0,i.kQ)().getOrientation()&&(0,i.kQ)().isScrollLeftHandler(e)&&(0,i.kQ)().deltaX()},onScrollTopEnd:function(e){return"scrolltopend"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isScrollTopEndHandler(e)},onScrollLeftEnd:function(e){return"scrollleftend"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isScrollLeftEndHandler(e)},onWindowScroll:function(e){return"scroll"===(0,i.kQ)().getEventType()&&(0,i.kQ)().getEventTModel()===e},onWindowScrollTopEnd:function(e){return"windowscrolltopend"===(0,i.kQ)().getEventType()&&(0,i.kQ)().getEventTModel()===e},onWindowScrollLeftEnd:function(e){return"windowscrollleftend"===(0,i.kQ)().getEventType()&&(0,i.kQ)().getEventTModel()===e},onPopState:function(){return"popstate"===(0,i.kQ)().getEventType()},onChange:function(e){return"change"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isFormHandler(e)},onInput:function(e){return"input"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isFormHandler(e)},onSubmit:function(){return"submit"===(0,i.kQ)().getEventType()}}),f(g,"excludedTargetKeys",new Set(["originalTargetName","originalTModel","activateNextTarget","invokerTarget","invokerTModel","active","addChildAction","childAction","fetchAction"])),f(g,"lifecycleCallbackSet",new Set(["onComplete","onVisibleComplete","onValueChange","onImperativeEnd","onImperativeStep","onStepsEnd","onSuccess","onError"])),f(g,"lifecycleCoreSet",new Set(["value","steps","cycles","enabledOn","pauseOn","loop","interval"])),f(g,"lifecycleMethodSet",new Set([].concat(l(n.lifecycleCallbackSet),l(n.lifecycleCoreSet)))),f(g,"lifecyclePatterns",{step:/^on[A-Za-z]+Step$/,end:/^on[A-Za-z]+End$/}),f(g,"eventSet",new Set([].concat(l(Object.keys(n.allEventMap)),l(Object.keys(n.internalEventMap))))),f(g,"styleSet",new Set([].concat(l(Object.keys(n.styleTargetMap)),l(Object.keys(n.asyncStyleTargetMap)),l(Object.keys(n.attributeTargetMap))))),f(g,"reservedKeywordSet",new Set([].concat(l(n.styleSet),l(Object.keys(n.defaultActualValues())),l(Object.keys(n.allEventMap)),l(Object.keys(n.internalEventMap)),l(Object.keys(n.mustExecuteTargets)),["children","addChildren","addParticles","html","isInFlow","domHolder","domParent","gap","widthFromDom","heightFromDom","requiresDom","preventDefault","canDeleteDom","textOnly","styling","$dom","defaultStyling","reuseDomDefinition","canHaveDom","excludeXYCalc","excludeX","excludeY","containerOverflowMode","itemOverflowMode","baseElement","element","otype","calculateChildren","domIsland","bracketThreshold","bracketSize","shouldBeBracketed","sourceDom"]))),f(g,"activationKeywordSet",new Set(["originalTModel","originalTargetName","activateNextTarget"]))},484:function(e,t,r){r.d(t,{j:function(){return k}});var n=r(333),i=r(690),a=r(585),o=r(90),l=r(34),s=r(980),u=r(421),c=r(855),d=r(611);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function w(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var k=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,v=[{key:"prepareTarget",value:function(e,t){n.g.currentTargetName=t,n.g.currentTModel=e,e.isExecuted(t)&&(e.getTargetCycles(t)>1&&e.getTargetCycle(t)<e.getTargetCycles(t)-1?e.incrementTargetCycle(t):e.resetTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t))}},{key:"executeDeclarativeTarget",value:function(t,r){var i=n.g.getTargetName(r);t.allTargetMap[i]=r,e.resolveTargetValue(t,r),e.updateTarget(t,t.targetValues[r],r,!1)}},{key:"assignImperativeTargetValue",value:function(e,t,r,i){var a;e.targetValues[t]=e.targetValues[t]||n.g.emptyValue();var o=e.targetValues[t];return o.isImperative=!0,o.originalTargetName=r,o.originalTModel=i,(null===(a=e.animatingMap)||void 0===a?void 0:a.has(t))&&e.getTargetSteps(t)>0&&(0,c.s)().cancelKey(e,t),o}},{key:"resetImperativeProgress",value:function(e){e.step=0,e.cycle=0,Array.isArray(e.valueList)?e.valuePointer=1:e.valuePointer=0}},{key:"executeImperativeTarget",value:function(t,r,n,i,a,o,l,u){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{},h=new Map;e._executeImperativeTarget(t,r,n,i,a,o,l,u,c,d,h),h.size&&s.T.overrideAnimatedKeyWithSnap(t,y(h.keys()),y(h.values()))}},{key:"_executeImperativeTarget",value:function(t,r,o,s,u,c,d,h){var v,p,y=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,m=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{},b=arguments.length>10?arguments[10]:void 0;if("string"==typeof r){var T=n.g.getTargetName(r);r=r.endsWith("+")?r:r+"+",t.allTargetMap[T]=r}if(i.D.isListTarget(o)){var w=l.d.isDefined(o.steps)?o.steps:s,k=l.d.isDefined(o.interval)?o.interval:u,S=l.d.isDefined(o.easing)?o.easing:c,x=l.d.isDefined(o.cycles)?o.cycles:y;v=e.assignImperativeTargetValue(t,r,d,h),e.assignListTarget(t,r,v,o.list,o.list[0],w,k,S,x)}else{if(i.D.isTargetSpecObject(o)){var M=e.getTargetOptions(o),C=i.D.getValueStepsCycles(t,r,o),E=C[0],D=l.d.isDefined(C[1])?C[1]:s,P=l.d.isDefined(C[2])?C[2]:u,L=l.d.isDefined(C[3])?C[3]:c,O=l.d.isDefined(C[4])?C[4]:y;return void e._executeImperativeTarget(t,r,E,D,P,L,d,h,O,M,b)}if(i.D.isObjectTarget(r,o)){var A=a.u.cssFunctionMap[r]?g(g({},a.u.cssFunctionMap[r]),o):o;Object.keys(A).forEach((function(r){var n=A[r],a=s,o=u,v=c,g=y,p=m;if("object"===f(n)&&!i.D.isListTarget(n)){p=e.getTargetOptions(n);var T=i.D.getValueStepsCycles(t,r,n);n=T[0],a=l.d.isDefined(T[1])?T[1]:s,o=l.d.isDefined(T[2])?T[2]:u,v=l.d.isDefined(T[3])?T[3]:c,g=l.d.isDefined(T[4])?T[4]:y}e._executeImperativeTarget(t,r,n,a,o,v,d,h,g,p,b)}))}else{if("object"===f(o)&&!i.D.isListTarget(o)){var j=i.D.getValueStepsCycles(t,r,o);if(o!==j[0])return o=j[0],s=l.d.isDefined(j[1])?j[1]:s,u=l.d.isDefined(j[2])?j[2]:u,c=l.d.isDefined(j[3])?j[3]:c,y=l.d.isDefined(j[4])?j[4]:y,void e._executeImperativeTarget(t,r,o,s,u,c,d,h,y,m,b)}v=e.assignImperativeTargetValue(t,r,d,h),e.assignSingleTarget(v,o,void 0,s,y,u,c)}}v&&(e.resetImperativeProgress(v),e.assignTargetOptions(v,m),v.steps>0&&null!==(p=t.noDomUpdatingTargets)&&void 0!==p&&p.has(r)&&(v.catchupAt=l.d.now()),e.updateTarget(t,v,r,!0,b),t.isTargetDone(r)&&n.g.shouldActivateNextTarget(t,r))}},{key:"updateTarget",value:function(t,r,n,i,o){t.setLastUpdate(n),0===t.getTargetSteps(n)&&e.snapActualToTarget(t,n,o),r.executionFlag=!0,r.executionCount++,r.snapAnimation||t.addToStyleTargetList(n,i),t.setTargetMethodName(n,"value");var l=e.calculateTargetStatus(t,r,n);t.setTargetStatus(n,l);var s=t.isTargetImperative(n)||t.shouldScheduleRun(n);!a.u.ignoreRerun[n]&&s&&(0,c.fB)().schedule(1,"updateTarget-".concat(t.oid,"-").concat(n))}},{key:"calculateTargetStatus",value:function(e,t,r){var n,i=e.getValueListPointer(r),a=e.getTargetCycle(r),o=e.getTargetCycles(r),l=e.getTargetStep(r),s=e.getTargetSteps(r);return t.snapAnimation?"done":l<s||Array.isArray(t.valueList)&&i<t.valueList.length-1?"updating":e.isTargetInLoop(r)||a<o-1?"active":null!==(n=e.targets[r])&&void 0!==n&&n.fetchAction&&!(0,c.qI)().isLoadingSuccessful(e,r)?"fetching":"done"}},{key:"assignListTarget",value:function(e,t,r,n,i,a,o,s,c){r.valueList=n,r.stepList=Array.isArray(a)?a:l.d.isDefined(a)?[a]:[1],r.intervalList=Array.isArray(o)?o:l.d.isDefined(o)?[o||8]:[8],r.easingList=Array.isArray(s)?s:l.d.isDefined(s)?[s]:[u.G.LINEAR],r.cycles=c,r.valuePointer=1,r.value=n[1],r.initialValue=i,r.steps=r.stepList[0],r.interval=r.intervalList[0],r.easing=r.easingList[0],r.step=0,r.snapAnimation=!1,e.val(t,i),e.setActual(t,i)}},{key:"assignSingleTarget",value:function(e,t,r,n,i,a,o){delete e.valueList,delete e.stepList,delete e.intervalList,delete e.easingList,l.d.isDefined(e.valuePointer)&&(e.valuePointer=0),e.initialValue=r,e.lastValue=e.value,e.value=t,e.steps=n||0,e.cycles=i||1,e.interval=a||0,e.easing=o,e.snapAnimation=!1}},{key:"snapActualToTarget",value:function(e,t,r){var i,a,o,u=e.targetValues[t];if(Array.isArray(u.valueList))u.valuePointer=u.valueList.length-1,o=u.valueList[u.valuePointer],u.value=o;else{var c=u.value;o="function"==typeof c?c.call(e):c}var d=e.val(t)!==o,h=n.g.getTargetName(t),f=!!y(null!==(i=null===(a=e.animatingMap)||void 0===a?void 0:a.keys())&&void 0!==i?i:[]).find((function(e){return n.g.getTargetName(e)===h}));(d||f)&&(d&&(e.val(t,o),e.setActual(t,o),l.d.handleValueChange(e,t)),f&&e.hasValidAnimation()&&e.canBeAnimated(t)?(u.snapAnimation=!0,r?r.set(t,o):s.T.overrideAnimatedKeyWithSnap(e,t,o)):u.snapAnimation=!1)}},{key:"getTargetOptions",value:function(e){var t={};return e&&"object"===f(e)?(Object.prototype.hasOwnProperty.call(e,"pauseOn")&&(t.pauseOn=e.pauseOn),t):t}},{key:"assignTargetOptions",value:function(e,t){t&&(Object.prototype.hasOwnProperty.call(t,"pauseOn")?e.pauseOn=t.pauseOn:delete e.pauseOn)}},{key:"resolveTargetValue",value:function(t,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.getTargetCycle(r);if(!i.D.isIntervalTarget(t.targets[r])||1!==s){var u,d=!t.targetValues[r]&&l.d.isDefined(t.targets[r].initialValue)?t.targets[r].initialValue:void 0,v=t.targets[r],g=v&&"object"===f(v)&&l.d.isDefined(v.instances),p=g?i.D.getTargetInstances(t,r,v,s):1;if(g){var y=new Array(p);u=i.D.getValueStepsCycles(t,r,v,s,0),y[0]=u[0],u[0]=y;for(var m=t.val(r),b=1;b<p;b++){var T=Array.isArray(m)?m[b]:m;y[b]=i.D.getInstanceTargetValue(t,r,v,s,T,b)}}else u=i.D.getValueStepsCycles(t,r,v,s);var w=u[0],k=u[1]||0,S=u[2]||0,x=u[3],M=u[4]||1,C=t.targetValues[r]||n.g.emptyValue();t.targetValues[r]=C;var E,D=l.d.isDefined(x)?x:l.d.isDefined(t.targets[r].easing)?t.targets[r].easing:void 0;if(i.D.isIntervalTarget(w))e.assignSingleTarget(C,void 0,d,0,2,w.interval,D);else if(E=t.handleSpecialTarget(r,w,{steps:k,cycles:M,interval:S,easing:D})){var P,L,O,A,j=!0===E?{}:E;e.assignSingleTarget(C,w,void 0,null!==(P=j.steps)&&void 0!==P?P:k,null!==(L=j.cycles)&&void 0!==L?L:M,null!==(O=j.interval)&&void 0!==O?O:S,null!==(A=j.easing)&&void 0!==A?A:D)}else if(i.D.isChildTarget(r,w))t.addChild(w),e.assignSingleTarget(C,w,void 0,0,M,S,D);else if(i.D.isChildrenTarget(r,w)){var _,I,V,N;(Array.isArray(w)?w:w?[w]:[]).forEach((function(e){var r=t.addedChildren.length;if(t.addChild(e),t.addedChildren.length>r){var i=t.addedChildren[t.addedChildren.length-1].child;n.g.markAddChild(t,n.g.currentTargetName,i)}}));var R=t.finalizeChildrenTarget(r,{steps:k,cycles:M,interval:S,easing:D}),F=R&&"object"===f(R)?R:{};e.assignSingleTarget(C,w,void 0,null!==(_=F.steps)&&void 0!==_?_:0,null!==(I=F.cycles)&&void 0!==I?I:M,null!==(V=F.interval)&&void 0!==V?V:S,null!==(N=F.easing)&&void 0!==N?N:D)}else if(i.D.isChildObjectTarget(r,t.targets[r])){var B=e.createTModel(r,t.targets[r]);t.addChild(B);var H=Object.fromEntries(Object.entries(w).filter((function(e){var t=h(e,1)[0];return!a.u.excludedTargetKeys.has(t)})));e.assignSingleTarget(C,H,void 0,0,M,S,D)}else if("object"===f(w)&&!0===w.asChild){var U=new o.c(r,w);t.addChild(U),e.assignSingleTarget(C,w,void 0,0,M,S,D)}else if(i.D.isFetchTarget(r,w))e.assignSingleTarget(C,w,void 0,0,M,S,D),(0,c.qI)().fetch(t,w);else if(i.D.isFetchImageTarget(r,w))e.assignSingleTarget(C,w,void 0,0,M,S,D),(0,c.qI)().fetchImage(t,w);else if(i.D.isListTarget(w))e.assignListTarget(t,r,C,w.list,w.list[0],k,S,D,M);else{var q,W;k>0&&!l.d.areEqual(t.val(r),w,null!==(q=null===(W=t.targets[r])||void 0===W?void 0:W.deepEquality)&&void 0!==q&&q)&&t.resetTargetStep(r),e.assignSingleTarget(C,w,d,k,M,S,D)}}}},{key:"createTModel",value:function(e,t){return d.E.create(e,t,(function(e,t){return new o.c(e,t)}))}}],(r=null)&&T(t.prototype,r),v&&T(t,v),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,v}()},690:function(e,t,r){r.d(t,{D:function(){return h}});var n=r(333),i=r(585),a=r(34),o=r(90),l=r(421),s=r(855);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,d=[{key:"isPlainObject",value:function(e){return!!e&&"object"===u(e)&&!Array.isArray(e)&&e.constructor===Object}},{key:"hasLifecycle",value:function(e){for(var t in e)if("function"==typeof e[t]&&i.u.isLifeCycleMethod(t))return!0;return!1}},{key:"hasTargetSuffix",value:function(e){return/\${1,2}$/.test(e)||e.startsWith("_")}},{key:"isTargetKey",value:function(e){return e=n.g.getTargetName(e),i.u.reservedKeywordSet.has(e)}},{key:"scoreChild",value:function(t){var r=0,n=0;for(var a in t){var o=t[a];if(!i.u.defaultTargetStyles[a]&&!i.u.excludedTargetKeys.has(a)&&"active"!==a){if(e.hasTargetSuffix(a))return!0;if(this.hasLifecycle(o))return!0;e.isTargetKey(a)?r++:i.u.activationKeywordSet.has(a)||"function"==typeof t[a]||n++}}return r-n>=1}},{key:"classifyEntry",value:function(t,r){return e.isPlainObject(r)?e.isTargetKey(t)?"target2":"originalTModel"===t?"target3":r instanceof o.c?"children":e.isListTarget(r)||e.isFetchTarget(t,r)||e.isFetchImageTarget(t,r)?"target4":this.hasLifecycle(r)?"target5":this.scoreChild(r)?"children":"target6":"target1"}},{key:"isTargetSpecObject",value:function(e){return!(!e||"object"!==u(e)||Array.isArray(e)||Object.getPrototypeOf(e)!==Object.prototype)&&(Object.prototype.hasOwnProperty.call(e,"value")||Object.prototype.hasOwnProperty.call(e,"steps")||Object.prototype.hasOwnProperty.call(e,"interval")||Object.prototype.hasOwnProperty.call(e,"easing")||Object.prototype.hasOwnProperty.call(e,"cycles")||Object.prototype.hasOwnProperty.call(e,"instances"))}},{key:"getTargetInstances",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.targets[t],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.getTargetCycle(t);if(!r||"object"!==u(r)||!a.d.isDefined(r.instances))return 1;var i="function"==typeof r.instances?r.instances.call(e,n):r.instances;return Math.max(1,Math.floor(Number(i)||1))}},{key:"getInstanceTargetValue",value:function(t,r,n,i,a,o){return e.runTargetValue(t,n,r,i,a,o)}},{key:"runTargetValue",value:function(e,t,r,o,l){var u,c,d,h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0,f=n.g.getTargetName(r),v=i.u.allEventMap[f],g=a.d.isDefined(h)?[h]:[];return v?"function"==typeof t.value?(u=t.value).call.apply(u,[e].concat(g,[(0,s.kQ)().getCurrentOriginalEvent(),o,l])):a.d.isDefined(t.value)?t.value:t:e.val("___".concat(r))?"function"==typeof t.value?(c=t.value).call.apply(c,[e].concat(g,[e.val("___".concat(r)),o,l])):a.d.isDefined(t.value)?t.value:t:"function"==typeof t.value?(d=t.value).call.apply(d,[e].concat(g,[o,l])):a.d.isDefined(t.value)?t.value:t}},{key:"isChildrenTarget",value:function(e,t){return("children"===n.g.getTargetName(e)||"addChildren"===n.g.getTargetName(e))&&"object"===u(t)}},{key:"isChildTarget",value:function(e,t){return"child"===n.g.getTargetName(e)&&"object"===u(t)}},{key:"isChildObjectTarget",value:function(t,r){return"children"===e.classifyEntry(t,r)}},{key:"isListTarget",value:function(e){return"object"===u(e)&&null!==e&&Array.isArray(e.list)}},{key:"isFetchTarget",value:function(e,t){return!("fetch"!==n.g.getTargetName(e)||"string"!=typeof t&&!Array.isArray(t)&&(!t||"object"!==u(t)||"string"!=typeof t.url))}},{key:"isFetchImageTarget",value:function(e,t){return"fetchImage"===n.g.getTargetName(e)&&t&&("string"==typeof t||Array.isArray(t))}},{key:"isObjectTarget",value:function(t,r){return"style"!==n.g.getTargetName(t)&&"object"===u(r)&&null!==r&&!Array.isArray(r)&&Object.getPrototypeOf(r)===Object.prototype&&!e.isTargetSpecObject(r)}},{key:"isIntervalTarget",value:function(e){return!(!e||"object"!==u(e))&&(!(!e.isInterval||!a.d.isDefined(e.interval))||a.d.isDefined(e.interval)&&!a.d.isDefined(e.loop)&&!a.d.isDefined(e.steps)&&!a.d.isDefined(e.cycles))}},{key:"isPrimitiveArray",value:function(e){return!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}))}},{key:"isValueStepsCycleArray",value:function(t){if(!Array.isArray(t)||0===t.length||t.length>5)return!1;if("number"!=typeof t[0]&&"string"!=typeof t[0]&&!e.isListTarget(t[0]))return!1;if(t.length>=2&&"number"!=typeof t[1])return!1;if(t.length>=3&&"number"!=typeof t[2])return!1;if(t.length>=4){var r=t[3],n="number"==typeof r,i="string"==typeof r&&l.G.easeMap.has(r);if(!n&&!i)return!1}if(5===t.length){var a=t[3],o=t[4];if("string"!=typeof a||!l.G.easeMap.has(a))return!1;if("number"!=typeof o)return!1}return e.isListTarget(t[0])||t.length>=2}},{key:"getValueStepsCycles",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.targets[r],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.getTargetCycle(r),o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,l=n&&n.valueOnly,s=t.val(r),c=null,d=0,h=0,f=void 0,v=1,g=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return"function"==typeof e?e.call.apply(e,[t].concat(n)):e};return function n(p){if(Array.isArray(p))return y=p,l||!e.isValueStepsCycleArray(y)?[y,d,h,f,v]:(c=y[0],d=y.length>=2?y[1]:d,h=y.length>=3?y[2]:h,y.length>=4&&("string"==typeof y[3]?(f=y[3],v=y.length>=5?y[4]:v):v=y[3]),[c,d,h,f,v]);var y;if("object"===u(p)&&null!==p&&Object.getPrototypeOf(p)===Object.prototype){var m=e.runTargetValue(t,p,r,i,s,o);return e.isPrimitiveArray(m)&&(a.d.isDefined(p.steps)||a.d.isDefined(p.interval)||a.d.isDefined(p.easing)||a.d.isDefined(p.cycles))?(c={list:m},d=a.d.isDefined(p.steps)?g(p.steps,i):0,h=a.d.isDefined(p.interval)?g(p.interval,i):8,f=a.d.isDefined(p.easing)?g(p.easing,i):f,v=a.d.isDefined(p.cycles)?g(p.cycles,i,t.getTargetCycles(r)):1,[c,d,h,f,v]):"object"===u(m)&&a.d.isDefined(m.value)&&a.d.isDefined(m.steps)?n(m):(c=m,d=a.d.isDefined(p.steps)?g(p.steps,i):0,h=a.d.isDefined(p.interval)?g(p.interval,i):0,f=a.d.isDefined(p.easing)?g(p.easing,i):f,v=a.d.isDefined(p.cycles)?g(p.cycles,i,t.getTargetCycles(r)):1,Array.isArray(c)?n(c):[c,d,h,f,v])}return"function"==typeof p?n(p.call(t,i,s)):[p,d,h,f,v]}(n)}}],(r=null)&&c(t.prototype,r),d&&c(t,d),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,d}()},333:function(e,t,r){r.d(t,{g:function(){return f}});var n=r(855),i=r(34),a=r(585);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,u=[{key:"emptyValue",value:function(){return{value:void 0,actual:void 0,step:0,steps:0,cycle:0,valuePointer:0,cycles:1,interval:0,initialValue:void 0,scheduleTimeStamp:void 0,lastUpdate:0,updateCount:0,completeCount:0,completeTime:0,executionCount:0,visibleCompleteCount:0,status:"",executionFlag:!1,isImperative:!1,originalTargetName:void 0,easing:void 0,creationTime:i.d.now()}}},{key:"getTargetName",value:function(e){if(e){for(var t=e.startsWith("_")?1:0,r=e.length;r>t&&"$"===e[r-1];)r--;return"+"===e[r-1]&&r--,e.slice(t,r)}}},{key:"bindTarget",value:function(t,r,i,o,l){var s=t.targets[r],u=void 0!==i?t.getLastUpdate(i):void 0,c=function(){return void 0!==i?t.getLastUpdate(i):void 0},d=function(){var e=c();return(void 0!==u||void 0!==e)&&(void 0===u&&void 0!==e||e!==u)};s.originalTargetName=e.currentTargetName,s.originalTModel=e.currentTModel;var h=r.startsWith("_")?r.slice(1):r,f=!(!o||!o.endsWith("$"));if(!s.activateNextTarget){var v;if(f)v=o;else for(var g=t.originalTargetNames,p=l+1;p<g.length;p++){var y=g[p];if(y.endsWith("$$")){v=y;break}}v&&(s.activateNextTarget=v)}Object.keys(s).forEach((function(o){var l,f=s[o],v=null!==(l=null==f?void 0:f.__targetjsSource)&&void 0!==l?l:f;if("value"===o||"function"==typeof v&&a.u.isLifeCycleMethod(o)){var g=function(){var l;a.u.lifecycleCoreSet.has(o)||(e.currentTargetName=r,e.currentTModel=t),this.key=h,this.value=this.val(h),this.prevTargetValue=function(){if(i)return(0,n.qI)().isLoading(t,i)?(0,n.qI)().getLoadingItemValue(t,i,r):t.targetValues[i]?t.targetValues[i].actual:t.val(i)}(),this.isPrevTargetUpdated=d;var s="function"==typeof v?v.apply(this,arguments):v;return u=null!==(l=c())&&void 0!==l?l:u,s};g.__targetjsSource=v,s[o]=g}}))}},{key:"shouldActivateNextTarget",value:function(t,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!(a>4)&&t){var s="update"===(arguments.length>5&&void 0!==arguments[5]?arguments[5]:"complete"),u=!s;if(t.isTargetImperative(r)){var c=t.targetValues[r],d=c.originalTModel,h=c.originalTargetName;return e.shouldActivateNextTarget(d,h,a+1,o,!0,"update"),void(u&&(e.cleanupTarget(t,r),e.isTargetFullyCompleted(t,r)&&e.shouldActivateNextTarget(d,h,a+1,o,!0,"complete")))}var f=t.targets[r],v=t.targetValues[r];if(f&&v){var g=f.activateNextTarget,p=null!==(i=null==g?void 0:g.endsWith("$$"))&&void 0!==i&&i,y=f.fetchAction;if(!s||!p){var m=!1,b=!1;if(g){if(p){var T=e.getTriggeredByCompleteCount(t,g,r);v.completeCount>T&&(b=!0)}else{var w,k=null!==(w=v.nextTargetUpdateCount)&&void 0!==w?w:0;b=v.updateCount>k}if(!p&&0===o&&(b||l)||p&&b){var S=!!p&&e.arePreviousTargetsComplete(t,g);if(y)if(p)!0===S?e.activateTargetOnce(t,g)&&(m=!0,e.clearPendingTargetsForNextTarget(t,g)):e.markPendingTargets(t,r);else for(;(0,n.qI)().isNextLoadingItemSuccessful(t,r);)t.activatedTargets.indexOf(g)>=0?t.activatedTargets.push(g):e.activateTarget(t,g),(0,n.qI)().nextActiveItem(t,r),m=!0;else p?!0===S?(e.activateTarget(t,g),m=!0,e.clearPendingTargetsForNextTarget(t,g)):e.markPendingTargets(t,r):p||(t.activatedTargets.indexOf(g)>=0&&!t.isTargetUpdating(r)?t.activatedTargets.push(g):(e.activateTarget(t,g),m=!0))}else u&&t.isTargetDone(g)&&e.cleanupTarget(t,g)}m&&(p?e.snapshotTriggeredByCompleteCounts(t,g):v.nextTargetUpdateCount=v.updateCount);var x=!1;if(p&&g){var M=e.getTriggeredByCompleteCount(t,g,r);x=v.completeCount<=M}if(!m&&u)if(g&&x&&!y)e.shouldActivateNextTarget(t,g,a,o+1,l,"complete");else if(!g){var C=f.originalTModel,E=f.originalTargetName;C&&E&&e.shouldActivateNextTarget(C,E,a+1,o,l,"complete")}u&&e.cleanupTarget(t,r)}}}}},{key:"markPendingTargets",value:function(e,t){(e.pendingTargets||(e.pendingTargets=new Set)).add(t)}},{key:"clearPendingTarget",value:function(e,t){var r=e.pendingTargets;r&&(r.delete(t),0===r.size&&(e.pendingTargets=void 0))}},{key:"clearPendingTargetsForNextTarget",value:function(e,t){var r=e.pendingTargets;if(r){for(var n=0,i=s(r);n<i.length;n++){var a,o=i[n];(null===(a=e.targets[o])||void 0===a?void 0:a.activateNextTarget)===t&&r.delete(o)}0===r.size&&(e.pendingTargets=void 0)}}},{key:"cleanupTarget",value:function(t,r){if(e.cleanupVisibleComplete(t,r),t.isTargetComplete(r)||!e.isTargetFullyCompleted(t,r))return!1;t.setTargetComplete(r);var i=t.targets[r];if("function"==typeof(null==i?void 0:i.onComplete)&&(i.onComplete.call(t),t.setTargetMethodName(r,"onComplete")),(null==i?void 0:i.fetchAction)&&(0,n.qI)().isLoadingSuccessful(t,r)){var a=t.fetchActionTargetList.indexOf(r);a>=0&&t.fetchActionTargetList.splice(a,1),i.fetchAction=!1}return e.bubbleInvokerCompletion(t,r),!0}},{key:"cleanupVisibleComplete",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.targets[r];if(!n||"function"!=typeof n.onVisibleComplete)return!1;var i=t.targetValues[r];if(!i)return!1;if(!0!==e.isTargetTreeComplete(t,r,"visible"))return!1;var a=e.getVisibleCompletionSignature(t);return i.visibleCompleteSignature!==a&&(i.visibleCompleteSignature=a,n.onVisibleComplete.call(t),t.setTargetMethodName(r,"onVisibleComplete"),!0)}},{key:"getVisibleCompletionSignature",value:function(e){return e.visibleChildren.map((function(e){return e.oid})).sort().join("|")}},{key:"bubbleInvokerCompletion",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(t&&r){var o="".concat(t.oid,":").concat(r);if(!(n.has(o)||a>4)){n.add(o);var l=t.targetValues[r];if(l){var s,u,c=function(t,r){if(t&&r){var o="".concat(t.oid,":").concat(r);i.has(o)||(i.add(o),e.cleanupTarget(t,r)),e.bubbleInvokerCompletion(t,r,n,i,a+1)}};c(l.originalTModel,l.originalTargetName),t.isTargetImperative(r)||(c(l.invokerTModel,l.invokerTargetName),c(null===(s=t.targets[r])||void 0===s?void 0:s.originalTModel,null===(u=t.targets[r])||void 0===u?void 0:u.originalTargetName))}}}}},{key:"getTriggeredByCompleteCount",value:function(e,t,r){var n,i;return null!==(n=null===(i=e.targetValues[t])||void 0===i||null===(i=i.triggeredByCompleteCountMap)||void 0===i?void 0:i.get(r))&&void 0!==n?n:0}},{key:"snapshotTriggeredByCompleteCounts",value:function(t,r){var n,i=(n=t.targetValues)[r]||(n[r]=e.emptyValue()),a=i.triggeredByCompleteCountMap||(i.triggeredByCompleteCountMap=new Map),o=t.functionTargetNames.indexOf(r);if(!(o<0))for(var l=0;l<o;l++){var s,u,c=t.functionTargetNames[l],d=t.targets[c];if((null==d?void 0:d.activateNextTarget)===r){var h=null!==(s=null===(u=t.targetValues[c])||void 0===u?void 0:u.completeCount)&&void 0!==s?s:0;a.set(c,h)}}}},{key:"activateTargetOnce",value:function(t,r){var n,i,a=(n=t.targetValues)[r]||(n[r]=e.emptyValue()),o=null!==(i=a.activationTime)&&void 0!==i?i:0;return!(o>0&&o>=t.getLastUpdate(r)||(a.activationTime=t.getLastUpdate(r)+.001,t.activateTarget(r),0))}},{key:"activateTarget",value:function(e,t){e.activateTarget(t)}},{key:"isTModelComplete",value:function(t){var r,i,a,o,l,s,u,c,d,h,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",v=t.state();return"visible"===f?!!e.shouldIgnoreChildForCompletion(t,"visible")||!(null!==(s=v.updatingTargetList)&&void 0!==s&&s.length)&&!(null!==(u=v.activeTargetList)&&void 0!==u&&u.length)&&!(null!==(c=v.activatedTargets)&&void 0!==c&&c.length)&&!t.hasAnimatingTargets()&&e.isFetchingComplete(t)&&0===e.getUpdatingChildren(t,void 0,"visible").size&&0===e.getActiveChildren(t,"visible").size&&!(null!==(d=v.lastChildrenUpdate)&&void 0!==d&&null!==(d=d.deletions)&&void 0!==d&&d.length)&&!(null!==(h=v.lastChildrenUpdate)&&void 0!==h&&null!==(h=h.additions)&&void 0!==h&&h.length)&&!t.noDomUpdatingTargets&&!t.pendingTargets&&!(0,n.EI)().needsReattach(t):!(null!==(r=v.updatingTargetList)&&void 0!==r&&r.length)&&!(null!==(i=v.activeTargetList)&&void 0!==i&&i.length)&&!(null!==(a=v.activatedTargets)&&void 0!==a&&a.length)&&!t.hasAnimatingTargets()&&e.isFetchingComplete(t)&&!t.hasAnimatingChildren()&&!t.hasUpdatingChildren()&&!t.hasActiveChildren()&&!(null!==(o=v.lastChildrenUpdate)&&void 0!==o&&null!==(o=o.deletions)&&void 0!==o&&o.length)&&!(null!==(l=v.lastChildrenUpdate)&&void 0!==l&&null!==(l=l.additions)&&void 0!==l&&l.length)&&!t.noDomUpdatingTargets&&!t.pendingTargets&&!(0,n.EI)().needsReattach(t)}},{key:"getCompletionBlockers",value:function(t){var r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",o=t.state(),l=[],u=function(e,t){t&&l.push({name:e,value:t})},c=function(e){return e?e instanceof Set?s(e):e instanceof Map?s(e.keys()):Array.isArray(e)?e:[e]:[]};if("visible"===a){var d,h;if(e.shouldIgnoreChildForCompletion(t,"visible"))return[];var f=e.getUpdatingChildren(t,void 0,"visible"),v=e.getActiveChildren(t,"visible");return u("updatingTargetList",c(o.updatingTargetList)),u("activeTargetList",c(o.activeTargetList)),u("activatedTargets",c(o.activatedTargets)),u("animatingTargets",t.hasAnimatingTargets()?c(t.animatingMap):[]),u("fetching",!e.isFetchingComplete(t)),u("updatingChildren",s(f.keys())),u("activeChildren",s(v.keys())),u("deletedChildren",c(null===(d=o.lastChildrenUpdate)||void 0===d?void 0:d.deletions)),u("addedChildren",c(null===(h=o.lastChildrenUpdate)||void 0===h?void 0:h.additions)),u("noDomUpdatingTargets",c(t.noDomUpdatingTargets)),u("pendingTargets",c(t.pendingTargets)),u("needsReattach",!!(0,n.EI)().needsReattach(t)),l.filter((function(e){return Array.isArray(e.value)?e.value.length>0:!!e.value}))}return u("updatingTargetList",c(o.updatingTargetList)),u("activeTargetList",c(o.activeTargetList)),u("activatedTargets",c(o.activatedTargets)),u("animatingTargets",t.hasAnimatingTargets()?c(t.animatingMap):[]),u("fetching",!e.isFetchingComplete(t)),u("animatingChildren",!!t.hasAnimatingChildren()),u("updatingChildren",t.hasUpdatingChildren()?c(t.updatingChildrenMap):[]),u("activeChildren",t.hasActiveChildren()?c(t.activeChildrenMap):[]),u("deletedChildren",c(null===(r=o.lastChildrenUpdate)||void 0===r?void 0:r.deletions)),u("addedChildren",c(null===(i=o.lastChildrenUpdate)||void 0===i?void 0:i.additions)),u("noDomUpdatingTargets",c(t.noDomUpdatingTargets)),u("pendingTargets",c(t.pendingTargets)),u("needsReattach",!!(0,n.EI)().needsReattach(t)),l.filter((function(e){return Array.isArray(e.value)?e.value.length>0:!!e.value}))}},{key:"isFetchingComplete",value:function(e){var t=e.state().fetchActionTargetList;if(!t)return!0;var r,i=l(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!(0,n.qI)().isLoadingSuccessful(e,a))return!1}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"isTargetFullyCompleted",value:function(t,r){var n=!t.isTargetUpdating(r)&&!0===t.isTargetTreeComplete(r);return n&&!t.isTargetImperative(r)&&(n=!t.hasUpdatingImperativeTargets(r)),n&&r.endsWith("$$")&&(n=!0===e.arePreviousTargetsComplete(t,r)),n}},{key:"arePreviousTargetsComplete",value:function(e,t){for(var r=e.functionTargetNames.findIndex((function(e){return t===e}))-1;r>=0;r--){var n=e.functionTargetNames[r];if(!e.isTargetImperative(n)&&!e.isTargetComplete(n)){if(e.activatedTargets.indexOf(n)>=0)return"activated targets";if(e.hasUpdatingImperativeTargets(n))return e.oid+"."+n+": "+e.getUpdatingImperativeTargets(n);if(!0!==e.isTargetTreeComplete(n))return!1}}return!0}},{key:"isTargetTreeComplete",value:function(t,r,i){var l=t.targets[r];if(l){var s,u,c,d,h=null!=i?i:l.completionScope,f=o(l.value);if(a.u.controlTargetMap[r])return!0;if(!l.fetchAction&&("string"===f||"number"===f||"boolean"===f))return!0;if((0,n.EI)().needsReattach(t))return"needs Reattach";if((0,n.EI)().shouldHaveDom(t)&&!t.hasDom())return"no dom";if(!t.isTargetComplete(r)&&!t.isTargetDone(r))return"not done";if((null===(s=l.childAction)||void 0===s?void 0:s.length)>0&&e.getUpdatingChildren(t,r,h).size>0)return"updating children";if((null===(u=l.childAction)||void 0===u?void 0:u.length)>0&&e.getActiveChildren(t,h).size>0)return"active children";if((null===(c=l.childAction)||void 0===c?void 0:c.length)>0&&!0!==e.areTargetChildrenComplete(l.childAction,h))return"incomplete children";if(l.fetchAction&&!(0,n.qI)().isLoadingSuccessful(t,r))return"incomplete loading";if(null!==(d=t.particleRuntime)&&void 0!==d&&d.hasPending(r,h))return"pending GPU children"}return!0}},{key:"areTargetChildrenComplete",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";if(!t)return!0;var n,i=l(t);try{for(i.s();!(n=i.n()).done;){var a,o=n.value;if(o){if("visible"===r&&!o.isLightweightChild&&void 0===(null===(a=o.visibilityStatus)||void 0===a?void 0:a.isVisible))return"visibility not calculated";if(!e.shouldIgnoreChildForCompletion(o,r)){if(o.exists()&&!e.isTModelComplete(o,r))return o.oid;if(o.hasChildren()){var s=e.areTargetChildrenComplete(o.getChildren(),r);if(!0!==s)return s}}}}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"getUpdatingChildren",value:function(t,r){var n,i,a,o,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",c=new Map;return[].concat(s(null!==(n=null===(i=t.updatingChildrenMap)||void 0===i?void 0:i.values())&&void 0!==n?n:[]),s(null!==(a=null===(o=t.animatingChildrenMap)||void 0===o?void 0:o.values())&&void 0!==a?a:[])).forEach((function(t){var n,i;if(!e.shouldIgnoreChildForCompletion(t,u)){var a,o=l([].concat(s(null!==(n=t.updatingTargetList)&&void 0!==n?n:[]),s(t.animatingMap?s(t.animatingMap.keys()):[]),s(null!==(i=t.noDomUpdatingTargets)&&void 0!==i?i:[])));try{for(o.s();!(a=o.n()).done;){var d,h,f=a.value;if(null===(d=t.targetValues[f])||void 0===d||!d.snapAnimation)if(t.isTargetImperative(f)){var v,g=null===(v=t.targetValues[f])||void 0===v?void 0:v.originalTargetName;if(g===r)c.set(t.oid,t);else if(g){var p,y;(null===(y=(null===(p=t.targetValues[f])||void 0===p?void 0:p.originalTModel).targets[g])||void 0===y?void 0:y.originalTargetName)===r&&c.set(t.oid,t)}}else(null===(h=t.targets[f])||void 0===h?void 0:h.invokerTargetName)===r&&c.set(t.oid,t)}}catch(e){o.e(e)}finally{o.f()}}})),c}},{key:"hasVisibleActiveChild",value:function(t){var r,n,i;if(e.shouldIgnoreChildForCompletion(t,"visible"))return!1;if((null===(r=t.activeTargetList)||void 0===r?void 0:r.length)>0)return!0;var a,o=l(null!==(n=null===(i=t.getChildren)||void 0===i?void 0:i.call(t))&&void 0!==n?n:[]);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(e.hasVisibleActiveChild(s))return!0}}catch(e){o.e(e)}finally{o.f()}return!1}},{key:"getActiveChildren",value:function(t){var r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",a=new Map;return s(null!==(r=null===(n=t.activeChildrenMap)||void 0===n?void 0:n.values())&&void 0!==r?r:[]).forEach((function(t){"visible"!==i?e.shouldIgnoreChildForCompletion(t,i)||t.activeTargetList.length&&a.set(t.oid,t):e.hasVisibleActiveChild(t)&&a.set(t.oid,t)})),a}},{key:"shouldIgnoreChildForCompletion",value:function(e,t){return!e||!e.exists()||"none"===t||"visible"===t&&(e.visibilityStatus?!0!==e.visibilityStatus.isVisible:"function"!=typeof e.isVisible||!0!==e.isVisible())}},{key:"activateSingleTarget",value:function(e,t){e.targets[t]&&e.canTargetBeActivated(t)&&(e.isTargetEnabled(t)?e.activateTarget(t):e.addToActiveTargets(t))}},{key:"markChildAction",value:function(e,t,r){var n=e.targets[t];"object"===o(n)&&(n.childAction?n.childAction.includes(r)||n.childAction.push(r):n.childAction=[r])}},{key:"markAddChild",value:function(e,t,r){var n=e.targets[t];"object"===o(n)&&(n.addChildAction?n.addChildAction.includes(r)||n.addChildAction.push(r):n.addChildAction=[r])}},{key:"markFetchAction",value:function(t){if(t){var r=e.currentTargetName,n=t.targets[r];"object"===o(n)&&(n.fetchAction=!0,t.fetchActionTargetList.includes(r)||t.fetchActionTargetList.push(r))}}},{key:"wrapTarget",value:function(t,r,n){return a.u.controlTargetMap[n]||(t.targets[n]={value:r,originalTargetName:e.currentTargetName,originalTModel:e.currentTModel},r=t.targets[n]),r}},{key:"resetBeforeDeletion",value:function(e){var t;e.updatingTargetList.length=0,e.activeTargetList.length=0,null===(t=e.animatingMap)||void 0===t||t.clear(),e.clearUpdatingChildren(),e.clearActiveChildren(),e.clearAnimatingChildren(),(0,n.zw)().domIslandSet.delete(e),n.qw.tmodelIdMap[e.oid]===e&&delete n.qw.tmodelIdMap[e.oid]}},{key:"getOriginalNames",value:function(e,t){var r,n,i,a,o,l;return e.isTargetImperative(t)?(r=null===(i=e.targetValues[t])||void 0===i?void 0:i.originalTModel,n=null===(a=e.targetValues[t])||void 0===a?void 0:a.originalTargetName):(r=null===(o=e.targets[t])||void 0===o?void 0:o.originalTModel,n=null===(l=e.targets[t])||void 0===l?void 0:l.originalTargetName),{originalTModel:r,originalTargetName:n}}},{key:"resetTargetState",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;if(t&&r){e.resetSingleTargetState(t,r),e.resetTargetChildActions(t,r,n,i);var a=t.targets[r],o=null==a?void 0:a.activateNextTarget,l=t.targets[o];l&&(o.endsWith("$")||!1!==l.active)&&(e.resetTargetsBetween(t,r,o,n,i),e.resetTargetPipelineState(t,o,n,i))}}},{key:"resetTargetPipelineState",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;if(t&&r){e.resetSingleTargetState(t,r),e.resetTargetChildActions(t,r,n,i);var a=t.targets[r],o=null==a?void 0:a.activateNextTarget;if(o){var l=t.targets[o];l&&(o.endsWith("$")||!1!==l.active)&&(e.resetTargetsBetween(t,r,o,n,i),e.resetTargetPipelineState(t,o,n,i))}}}},{key:"resetTargetsBetween",value:function(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Set,o=t.functionTargetNames,l=o.indexOf(r),s=o.indexOf(n);if(!(l<0||s<0||s<=l))for(var u=l+1;u<s;u++){var c=o[u];e.resetSingleTargetState(t,c),e.resetTargetChildActions(t,c,i,a)}}},{key:"resetTargetChildState",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(!t.isLightweightChild){var i="".concat(t.oid);if(!n.has(i)){n.add(i);for(var a=Object.keys(t.targetValues),o=0;o<a.length;o++){var l=a[o];e.resetSingleTargetState(t,l),e.resetTargetChildActions(t,l,r,n)}}}}},{key:"resetTargetChildActions",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set,a=t.targets[r];if(a){var o=a.childAction?s(a.childAction):[],l=a.addChildAction?s(a.addChildAction):[];o.forEach((function(t){t&&e.resetTargetChildState(t,n,i)})),l.forEach((function(t){t&&e.resetTargetChildState(t,n,i)})),n.clearChildActions&&(Array.isArray(a.childAction)&&(a.childAction.length=0),Array.isArray(a.addChildAction)&&(a.addChildAction.length=0))}}},{key:"clearTriggeredByCompleteCount",value:function(e,t,r){var n=e.targetValues[t],i=null==n?void 0:n.triggeredByCompleteCountMap;i&&(i.delete(r),0===i.size&&(n.triggeredByCompleteCountMap=void 0))}},{key:"resetSingleTargetState",value:function(t,r){var n,i=t.targetValues[r],a=null===(n=t.targets[r])||void 0===n?void 0:n.activateNextTarget;null!=a&&a.endsWith("$$")&&e.clearTriggeredByCompleteCount(t,a,r),i&&(i.completeCount=0,i.triggeredByCompleteCountMap=void 0,i.resetFlag=!0,i.nextTargetUpdateCount=0,i.visibleCompleteSignature=void 0,i.status=""),t.cancelAnimation(),t.activatedTargets.length=0,t.removeFromActiveTargets(r),t.removeFromAnimatingMap(r),t.removeFromUpdatingTargets(r),e.clearPendingTarget(t,r)}},{key:"convertAnimatingTargetsToUpdating",value:function(e){var t,r=l(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(null!=n&&n.hasAnimatingTargets()){var i,a=l(s(n.getAnimatingTargets()));try{for(a.s();!(i=a.n()).done;){var o=i.value;n.setTargetStatus(o,"updating"),n.removeFromAnimatingMap(o)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"getResetOptions",value:function(e){var t=null==e?void 0:e.reset;return{shouldReset:!0===t||"pipeline"===t||"tree"===t||"all"===t,clearChildActions:"tree"===t||"all"===t}}}],(r=null)&&d(t.prototype,r),u&&d(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,u}()},530:function(e,t,r){r.d(t,{L:function(){return l}});var n=r(249);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.xNext=0,this.xNorth=0,this.xWest=0,this.xEast=0,this.xSouth=0,this.scrollLeft=0,this.scrollTop=0,this.absX=0,this.absY=0,this.xOverflowReset=0,this.xOverflowLimit=0,this.yNext=0,this.yNorth=0,this.yWest=0,this.yEast=0,this.ySouth=0,this.container=void 0,this.time=0},(t=[{key:"setContainer",value:function(e){this.container=e}},{key:"setCurrentChild",value:function(e){this.currentChild=e}},{key:"setLocation",value:function(){var e=this.currentChild;e.targets.excludeXYCalc||(e.setLayoutX(this.xNext+e.getMarginLeft()+this.container.getPaddingLeft()),e.setLayoutY(this.yNext+e.getMarginTop()+this.container.getPaddingTop()))}},{key:"isOverflow",value:function(){return"BI"!==this.currentChild.type&&(!("always"!==this.container.getContainerOverflowMode()&&"always"!==this.currentChild.getItemOverflowMode()&&("auto"!==this.container.getContainerOverflowMode()||"auto"!==this.currentChild.getItemOverflowMode()||this.currentChild.useContentWidth()||!this.checkChildOverflow()))||void 0)}},{key:"checkChildOverflow",value:function(){var e=this.currentChild,t=e.getMinWidth();return this.xNext+e.getMarginLeft()+t+e.getMarginRight()>this.xOverflowLimit}},{key:"overflow",value:function(){this.xNext=this.scrollLeft-this.xOverflowReset,this.yNext=Math.max(this.currentChild.getRealParent().viewport.ySouth,this.ySouth)}},{key:"appendNewLine",value:function(){var e=this.currentChild,t=e.getMeasuringScale(),r=e.getHeight()*t+this.currentChild.getMarginTop()+this.currentChild.getMarginBottom();this.xNext=this.scrollLeft-this.xOverflowReset;var n=this.yNext+r+e.val("appendNewLine");this.yEast=this.yNext,this.xSouth=this.xNext,this.ySouth=Math.max(this.ySouth,n),this.yEast=this.ySouth,this.yNext=this.ySouth,e.getRealParent().viewport.xEast=Math.max(e.getRealParent().viewport.xEast,this.xEast),e.getRealParent().viewport.ySouth=Math.max(e.getRealParent().viewport.ySouth,this.ySouth)}},{key:"computeBoundary",value:function(e,t){var r,n,i,a,o,l,s=e.getMeasuringScale(),u=e.getBaseWidth()*s,c=e.getBaseHeight()*s;return"layout"===t?(r=e.x,n=e.y,i=r-e.getMarginLeft(),a=r+u+e.getMarginRight(),o=n-e.getMarginTop(),l=n+c+e.getMarginBottom()):"absolute"===t?(r=e.absX-this.absX,n=e.absY-this.absY,i=r,a=r+u+e.getMarginRight(),o=n,l=n+c+e.getMarginBottom()):(i=r=e.getX(),a=r+u,o=n=e.getY(),l=n+c),{left:i,top:o,right:a,bottom:l}}},{key:"nextLocation",value:function(){var e=this.currentChild,t=e.getMeasuringScale(),r=e.getTopBaseHeight()*t,i=e.getLayoutHeight()*t+this.currentChild.getMarginTop()+this.currentChild.getMarginBottom(),a="always"===e.getItemOverflowMode()&&n.a.isWidthDefined(this.container)?this.container.getWidth():e.getBaseWidth()*t+this.currentChild.getMarginLeft()+this.currentChild.getMarginRight();if("BI"!==e.type&&"BI"===this.container.type){var o=this.computeBoundary(e,"layout"),l=this.computeBoundary(e,"animated");i=Math.max(i,o.bottom-l.top,l.bottom-o.top,o.bottom-o.top,l.bottom-l.top),a=Math.max(a,o.right-l.left,l.right-o.left,o.right-o.left,l.right-l.left)}var s=this.yNext+i;if(this.xNext+=a,e.isDomIsland()&&e.hasDom()){var u=this.computeBoundary(e,"absolute");s=u.bottom,this.xNext=u.right,this.xWest=u.left,this.yWest=u.top}this.yNext+=r,this.xSouth=this.xNext,this.yEast=this.yNext,this.xEast=Math.max(this.xNext,this.xEast),this.ySouth=Math.max(s,this.ySouth),e.getRealParent().viewport.xEast=Math.max(e.getRealParent().viewport.xEast,this.xEast),e.getRealParent().viewport.ySouth=Math.max(e.getRealParent().viewport.ySouth,this.ySouth),"always"!==this.container.getContainerOverflowMode()&&"always"!==this.currentChild.getItemOverflowMode()||(this.yEast=e.getRealParent().viewport.ySouth,this.yNext=e.getRealParent().viewport.ySouth,this.xNext=e.getRealParent().viewport.xWest,this.xSouth=e.getRealParent().viewport.xWest)}}])&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},952:function(e,t,r){r.d(t,{n:function(){return s}});var n=r(855),i=r(34);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"calcVisibility",value:function(t){var r,n=t.getRealParent();if((null===(r=null==n?void 0:n.targets.onVisibleChildrenChange)||void 0===r||!r)&&t.isVisible()&&(t.isTargetUpdating(t.allTargetMap.x)||t.isTargetUpdating(t.allTargetMap.y)))return!0;var a=(t.getDomParent().getMeasuringScale()||1)*t.getMeasuringScale(),o=t.absX,l=t.absY,s=i.d.isDefined(t.getWidth())?a*t.getWidth():0,u=i.d.isDefined(t.getHeight())?a*t.getHeight():0,c={x:o-20,y:l-20,r:o+s+20,b:l+u+20},d=e.checkVisibility(t,c);return d.x=o,d.y=l,d.width=s,d.height=u,t.visibilityStatus=d,t.actualValues.isVisible=d.isVisible,d.isVisible}},{key:"checkVisibility",value:function(t,r){for(;t;){var i=t.getRealParent();if(!i||i===(0,n.Bt)())break;if(e.shouldClipByAncestor(i)){var a=e.getParentClip(i);if(!e.rectsOverlap(r,a))return{clip:a,isVisible:!1};r=e.intersectRects(i,r,a)}t=i}var o=e.getScreenViewportRect(),l="BI"===t.type;return e.rectsOverlap(r,o,l)?{isVisible:!0}:{clip:o,isVisible:!1}}},{key:"getScreenViewportRect",value:function(){return{x:0,y:0,r:(0,n.r5)(),b:(0,n.c$)(),source:"screen"}}},{key:"shouldClipByAncestor",value:function(e){var t=e.val("overflow");return e.managesOwnScroll()||"hidden"===t||"auto"===t||"scroll"===t||"clip"===t}},{key:"getParentClip",value:function(e){var t,r,n=(null===(t=e.$dom)||void 0===t?void 0:t.getScrollLeft())||0,i=(null===(r=e.$dom)||void 0===r?void 0:r.getScrollTop())||0,a=e.getHeight(),o=e.getWidth();return{x:e.absX+n,y:e.absY+i,r:e.absX+o+n,b:e.absY+a+i,source:e}}},{key:"rectsOverlap",value:function(e,t){return(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||e.x<=t.r&&e.r>=t.x)&&e.y<=t.b&&e.b>=t.y}},{key:"intersectRects",value:function(e,t,r){var n,i,a=(null===(n=e.$dom)||void 0===n?void 0:n.getScrollLeft())||0,o=(null===(i=e.$dom)||void 0===i?void 0:i.getScrollTop())||0;return{x:Math.max(t.x-a,r.x-a),y:Math.max(t.y-o,r.y-o),r:Math.min(t.r-a,r.r-a),b:Math.min(t.b-o,r.b-o),source:r.source}}}],(r=null)&&o(t.prototype,r),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{$Dom:function(){return $Dom.J},AnimationManager:function(){return AnimationManager._},AnimationUtil:function(){return AnimationUtil.T},App:function(){return App.qw},Bracket:function(){return Bracket.d},BracketGenerator:function(){return BracketGenerator.M},ColorUtil:function(){return ColorUtil.I},DomInit:function(){return DomInit.v},Easing:function(){return Easing.G},Moves:function(){return Moves},ParticleChild:function(){return ParticleChild.$},ParticleRenderer:function(){return ParticleRenderer.e},ParticleRuntime:function(){return ParticleRuntime.f},ParticleTModel:function(){return ParticleTModel.G},ParticleUtil:function(){return ParticleUtil.D},ScheduleUtil:function(){return ScheduleUtil.O},SearchUtil:function(){return SearchUtil.X},StateUtil:function(){return StateUtil.s},TModel:function(){return TModel.c},TModelUtil:function(){return TModelUtil.a},TUtil:function(){return TUtil.d},TargetData:function(){return TargetData.u},TargetExecutor:function(){return TargetExecutor.j},TargetParser:function(){return TargetParser.D},TargetUtil:function(){return TargetUtil.g},VisibilityUtil:function(){return VisibilityUtil.n},fetch:function(){return App.hd},fetchImage:function(){return App.aK},getAnimationManager:function(){return App.s},getDomTModelById:function(){return App.UR},getEvents:function(){return App.kQ},getLoader:function(){return App.qI},getLocationManager:function(){return App.zw},getManager:function(){return App.EI},getPager:function(){return App.cI},getResizeLastUpdate:function(){return App.S9},getRunScheduler:function(){return App.fB},getScreenHeight:function(){return App.c$},getScreenWidth:function(){return App.r5},getTModelById:function(){return App.iP},getTargetManager:function(){return App.HJ},getVisibles:function(){return App.U$},isRunning:function(){return App.W_},state:function(){return App.wk},tApp:function(){return App.E_},tRoot:function(){return App.Bt}});var App=__webpack_require__(855),TModel=__webpack_require__(90),TUtil=__webpack_require__(34);function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Moves=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"bounce",value:function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.yStart,i=void 0===n?void 0:n,a=r.xStart,o=void 0===a?(0,App.r5)()/2:a,l=r.widthStart,s=void 0===l?50:l,u=r.heightStart,c=void 0===u?50:u,d=r.bFactor,h=void 0===d?.6:d,f=r.cFactor,v=void 0===f?.2:f,g=r.rotationStart,p=void 0===g?0:g,y=r.rIncrement,m=void 0===y?360:y,b=Math.max(10,(t-e)*h),T=TUtil.d.isDefined(i)?[i,e]:[e],w=[o],k=[s],S=[c],x=[p];Math.abs(0|b)>1;){T.push(t),T.push(t-b);var M=s*(1+v),C=c*(1-v);k.push(M),k.push(s),S.push(C),S.push(c),w.push(o-(M-s)/2),w.push(o),x.push(x[x.length-1]+m),b*=h,m*=.8,v*=h}w.push(o),T.push(t),k.push(s),S.push(c);var E=x[x.length-1]%360;return E>0&&E<360&&x.push(360),{x:{list:w},y:{list:T},width:{list:k},height:{list:S},rotate:{list:x}}}},{key:"bounceSimple",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.from,i=void 0===n?void 0:n,a=r.to,o=void 0===a?void 0:a,l=r.widthStart,s=void 0===l?void 0:l,u=r.heightStart,c=void 0===u?void 0:u,d=r.xStart,h=void 0===d?void 0:d,f=r.yStart,v=void 0===f?void 0:f,g=r.bFactor,p=void 0===g?.5:g,y=r.cFactor,m=void 0===y?.7:y;i=TUtil.d.isDefined(i)?i:t.getY()-70,o=TUtil.d.isDefined(o)?o:t.getY(),s=TUtil.d.isDefined(s)?s:t.getWidth(),c=TUtil.d.isDefined(c)?c:t.getHeight(),v=TUtil.d.isDefined(v)?v:t.getY(),h=TUtil.d.isDefined(h)?h:t.getX();return e.bounce(i,o,{yStart:v,xStart:h,widthStart:s,heightStart:c,bFactor:p,cFactor:m,rIncrement:0})}},{key:"shake",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.xStart,i=void 0===n?void 0:n,a=r.width,o=void 0===a?void 0:a,l=r.height,s=void 0===l?void 0:l,u=r.bFactor,c=void 0===u?.6:u,d=r.cFactor,h=void 0===d?.3:d,f=r.strength,v=void 0===f?20:f,g=TUtil.d.isDefined(o)?o:t.getWidth(),p=TUtil.d.isDefined(s)?s:t.getHeight(),y=TUtil.d.isDefined(i)?i:t.getX(),m=t.getY(),b=e.bounce(m-v,m,{xStart:y,widthStart:g,heightStart:p,bFactor:c,cFactor:h,rIncrement:0});return{x:b.x,width:b.width}}},{key:"spiral",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.startAngle,r=void 0===t?0:t,n=e.endAngle,i=void 0===n?360:n,a=e.angleStep,o=void 0===a?18:a,l=e.x,s=void 0===l?0:l,u=e.y,c=void 0===u?0:u,d=e.width,h=void 0===d?100:d,f=e.height,v=void 0===f?100:f,g=[],p=[],y=[],m=r;m<=i;m+=o){var b=m*(Math.PI/180);g.push(Math.floor(s+h*Math.cos(b))),p.push(Math.floor(c+v*Math.sin(b))),y.push(90+m)}return{x:{list:g},y:{list:p},rotate:{list:y}}}}])}();_defineProperty(Moves,"shakeMap",{});var SearchUtil=__webpack_require__(756),TargetData=__webpack_require__(585),TargetUtil=__webpack_require__(333),TargetParser=__webpack_require__(690),TModelUtil=__webpack_require__(249),DomInit=__webpack_require__(260),$Dom=__webpack_require__(768),Bracket=__webpack_require__(966),BracketGenerator=__webpack_require__(714),ColorUtil=__webpack_require__(737),Easing=__webpack_require__(421),TargetExecutor=__webpack_require__(484),AnimationManager=__webpack_require__(357),AnimationUtil=__webpack_require__(980),VisibilityUtil=__webpack_require__(952),ScheduleUtil=__webpack_require__(161),StateUtil=__webpack_require__(791),ParticleTModel=__webpack_require__(599),ParticleChild=__webpack_require__(494),ParticleRenderer=__webpack_require__(969),ParticleRuntime=__webpack_require__(720),ParticleUtil=__webpack_require__(138);window.TargetJS=__webpack_exports__})();
|