targetj 1.0.241 → 1.0.243

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/dist/targetjs.js CHANGED
@@ -1 +1 @@
1
- (function(){"use strict";var __webpack_modules__={768:function(e,t,n){n.d(t,{J:function(){return s}});var r=n(34),i=n(705);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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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 n=this.element.getAttribute("id");this.selector="string"==typeof n?n.startsWith("#")?n:"#"+n:null}this.hasRealChildren=!1,this.slotModeEnabled=!1,this.contentSlot=null,this.originalContent=void 0,this.textOnly=!0,this.transformProp=null,this.initTransformProp()}return t=e,n=[{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(){return!!this.selector&&!!e.query(this.selector)}},{key:"getElement",value:function(){return this.element}},{key:"supportsWAAPI",value:function(){return!(!this.element||"function"!=typeof this.element.animate)}},{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"body"===this.getTagName()||"true"===(null===(e=this.element)||void 0===e?void 0:e.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:"enableSlotMode",value:function(){var e;if(!this.slotModeEnabled)if(this.isNoSlotHost())this.slotModeEnabled=!0;else if(null!==(e=this.element)&&void 0!==e&&e.firstChild){for(var t=this.ensureContentSlotFirst(),n=t.nextSibling;n;){var r=n.nextSibling;t.appendChild(n),n=r}this.slotModeEnabled=!0}else this.slotModeEnabled=!0}},{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 r.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 r.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(!r.d.isDefined(e))return this.element.offsetWidth;this.element.style.width=r.d.isNumber(e)?"".concat(e,"px"):e}},{key:"height",value:function(e){if(!r.d.isDefined(e))return this.element.offsetHeight;this.element.style.height=r.d.isNumber(e)?"".concat(e,"px"):e}},{key:"css",value:function(e){if(!r.d.isDefined(e))return this.element.className;this.element.className=e}},{key:"setStyleByMap",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.style(n,e[n])}))}},{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),n=r.d.isDefined(t)?t.replace(/[^-\d.]/g,""):0;return parseFloat(n)}},{key:"getBoundingClientRect",value:function(){return this.element.getBoundingClientRect()}},{key:"isXYWithinElement",value:function(e,t){var n=this.getBoundingClientRect();return e>=n.left&&e<=n.right&&t>=n.top&&t<=n.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 n=t.nextSibling;n===e?this.element.insertBefore(e,t):(this.element.insertBefore(t,e),this.element.insertBefore(e,n))}},{key:"insertAfterContentSlot",value:function(e){if(this.element)if(this.isNoSlotHost())this.element.appendChild(e);else{var t=this.ensureContentSlotFirst(),n=t?t.nextSibling:this.element.firstChild;n?this.element.insertBefore(e,n):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 n=t+(this.findContentSlot()?1:0);this.element.insertBefore(e.$dom.element,this.element.children[n]||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){r.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){r.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(!r.d.isDefined(e))return this.element.innerHTML;this.element.innerHTML=e}},{key:"innerText",value:function(e){if(!r.d.isDefined(e))return this.element.innerText;this.element.innerText=e}},{key:"addClass",value:function(e){var t=this.attr("class"),n=t?t.includes(e)?t:"".concat(t," ").concat(e):e;n!==t&&this.attr("class",n)}},{key:"addEvent",value:function(e,t,n,r){this.element.addEventListener?this.element.addEventListener(e,t,{capture:!!n,passive:!!r}):this.element.attachEvent("on".concat(e),t)}},{key:"detachEvent",value:function(e,t,n){this.element.removeEventListener?this.element.removeEventListener(e,t,n):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,n){var i=r.d.isDefined(n)?e.query(n):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 n=new e;return n.create("template"),n.innerHTML(t.trim()),n}},{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,n){var r=e.findByClass(t,n);return r.length>0?r[0]:null}},{key:"findFirstByTag",value:function(t,n){var r=e.findByTag(t,n);return r.length>0?r[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=r.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,n="";e.data&&(n=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 n="json"===e.dataType?JSON.parse(this.responseText):this.responseText;e.success(n)}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(n)):(e.url+=n?e.url>""&&e.url.indexOf("?")>=0?"&".concat(n):"?".concat(n):"",t.open(e.type,e.url,!0),t.send())}}],n&&o(t.prototype,n),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,a}()},357:function(e,t,n){n.d(t,{_:function(){return M}});var r=n(249),i=n(980),a=n(585),o=n(705),l=n(333),s=n(34),u=n(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={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),l=new A(r||[]);return i(o,"_invoke",{value:x(e,n,l)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var v="suspendedStart",g="suspendedYield",y="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(P([])));M&&M!==n&&r.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 n(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)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function x(t,n,r){var i=v;return function(a,o){if(i===y)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:e,done:!0}}for(r.method=a,r.arg=o;;){var l=r.delegate;if(l){var s=O(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===v)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var u=f(t,n,r);if("normal"===u.type){if(i=r.done?p:g,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=p,r.method="throw",r.arg=u.arg)}}}function O(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.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 _(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 P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};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,n,r,i,a){void 0===a&&(a=Promise);var o=new C(h(e,n,r,i),a);return t.isGeneratorFunction(n)?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),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,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(_),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.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=r.call(o,"catchLoc"),u=r.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 n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function h(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){h(a,r,i,o,l,"next",e)}function l(e){h(a,r,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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 g(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function y(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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}function S(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;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(),n=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=e.$dom.getElement();this.cancelElementAnimationsForKeys(c,Object.keys(t.keyMap));var d,h=Math.max(t.totalDuration,1),f=y(new Set(Object.values(t.keyMap).flatMap((function(e){return y(e)})))),v=g(f);try{for(v.s();!(d=v.n()).done;){var p=d.value;this.backfillKeyAcrossFramesUsingMorph(e,p,t.frames)}}catch(e){v.e(e)}finally{v.f()}var m=!1,b=t.frames.map((function(t){var n=T({},t.styleMap);if(n.offset=t.keyTime/h,Object.keys(t.tfMap).length){Object.keys(e.tfMap).forEach((function(t){e.tfMap[t]=e.val(t)}));var a=T(T({},e.tfMap),t.tfMap);n.transform=r.a.getTransformString(e,a),t.tfMap=a,m=!0}return i.T.addUnitsToFrame(n),n})),w=this.filterRedundantKeyframes(b),k={duration:h,fill:"none",iterations:1,easing:t.easing||"linear"};t.startTime=s.d.now(),e.lastBatch=t,e.lastBatch.transformAnimation=m,e.finalKeyframe=w[w.length-1],e.finalRawFrame=t.frames[t.frames.length-1];var S,M=c.animate(w,k),E=g(f);try{for(E.s();!(S=E.n()).done;){var D=S.value,C=l.g.getTargetName(D),x=this.getRecordId(e,D),O=l.g.getOriginalNames(e,D),L=O.originalTModel,_=O.originalTargetName,A={recId:x,cleanKey:C,originalKey:D,tmodel:e,anim:M,originalTModel:L,originalTargetName:_,frames:this.collectFramesForKey(t,C),status:"playing",needsFireOnStep:!0,hooks:n};e.addToAnimatingMap(D);var P=e.targetValues[D];P&&(P.status=P.snapAnimation?P.status:"updating"),this.recordMap.set(x,A)}}catch(e){E.e(e)}finally{E.f()}this.startProgressPoller()}}}},{key:"pauseAnimations",value:function(e,t){var n,r,a;(n=t?t instanceof Map?new Set(t.keys()):new Set(t):new Set(null!==(r=null===(a=e.animatingMap)||void 0===a?void 0:a.keys())&&void 0!==r?r:[])).size&&this.animate(e,i.T.emptyBatch(),i.T.getAnimationHooks(),n)}},{key:"finalizeAnimation",value:function(e){var t,n=g(this.recordMap);try{for(n.s();!(t=n.n()).done;){var r=v(t.value,2),a=r[0],l=r[1];if(l.anim===e&&"playing"!==l.status&&"canceled"!==l.status){var s=l.tmodel,u=l.originalKey,c=l.cleanKey;s.removeFromAnimatingMap(u),this.recordMap.delete(a),this.completeRecord(s,l,c,u),s.hasAnimatingTargets()||(s.finalKeyframe&&s.hasDom()&&i.T.fixStyleByAnimation(s,s.finalKeyframe),s.lastBatch=void 0),l.status="complete",l.hooks.fireOnEnd(s,u),(0,o.fB)().scheduleOnlyIfEarlier(1,"animate-".concat(s.oid,"---").concat(u))}}}catch(e){n.e(e)}finally{n.f()}(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 n,r=new Set,a=new Map,o=!1,l=g(e.recordMap);try{for(l.s();!(n=l.n()).done;){var s,c,d,h,f=v(n.value,2)[1];if("canceled"!==f.status&&"detached"!==f.status){var y=f.tmodel,p=f.originalKey;if("finished"!==f.status&&u.O.shouldPauseTarget(y,p)){var m=a.get(y);m||(m=new Set,a.set(y,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",r.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=g(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=g(r);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,n){a.u.isTransformKey(t)?e.tfMap[t]=n:e.styleMap[t]=n}},{key:"completeRecord",value:function(e,t,n,r){if(e.finalRawFrame){var i=t.frames,a=i&&i[i.length-1],o=a?a.value:this.getAt(e.finalRawFrame,n);this.setAt(e,n,o),e.val(r,o);var l,s,u=e.targetValues[r];u&&(u.step=e.getTargetSteps(r),u.valuePointer=null!==(l=null===(s=u.valueList)||void 0===s?void 0:s.length)&&void 0!==l?l:0,u.value=o,e.setActual(r,o),e.isTargetImperative(r)&&(u.cycle=u.cycles))}}},{key:"backfillKeyAcrossFramesUsingMorph",value:function(e,t,n){for(var i=l.g.getTargetName(t),a=[],o=0;o<n.length;o++)void 0!==this.getAt(n[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=n[h],g=n[f],y=this.getAt(v,i),p=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,M=g.keyTime-S;if(!(!s.d.isDefined(b)||b<=0||M<=0))for(var E=w,D=h+1;D<f;D++){var C=n[D],x=s.d.limit((C.keyTime-S)/M,0,1),O=Math.round(x*b),L=s.d.limit(w+O,0,k),_=Math.max(L-E,0),A=r.a.morph(t,y,p,x);this.setAt(C,i,A),C.keyMeta.set(i,T(T({},m),{},{steps:_,stepOffset:E,segmentSteps:k,done:!1})),E=L}}}if(a.length){var P,j,I,V=a[a.length-1],N=n[V],F=this.getAt(N,i),H=null===(P=N.keyMeta)||void 0===P?void 0:P.get(i);if(!H)return;for(var B=null!==(j=null!==(I=H.segmentSteps)&&void 0!==I?I:H.steps)&&void 0!==j?j:0,R=V+1;R<n.length;R++){var U=n[R];this.setAt(U,i,F),U.keyMeta.set(i,T(T({},H),{},{steps:0,stepOffset:B,segmentSteps:B,done:!0}))}}}},{key:"fixTModelStyleFromFrame",value:function(e,t){if(e.hasDom()&&t){var n=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,n.transform=r.a.getTransformString(e,a)}i.T.addUnitsToFrame(n),i.T.fixStyleByAnimation(e,n)}}},{key:"freezeTModelAtCurrentTime",value:function(e){if(e.lastBatch){var t=Math.min(s.d.now()-e.lastBatch.startTime,e.lastBatch.totalDuration);e.lastBatch=this.cutLastBatch(e,e.lastBatch,t),this.fixTModelStyleFromFrame(e,e.lastBatch.frames[0])}}},{key:"collectFramesForKey",value:function(e,t){var n,r=[],i=e.totalDuration,a=g(e.frames);try{for(a.s();!(n=a.n()).done;){var o=n.value,l=this.getAt(o,t);if(void 0!==l){var s=o.keyMeta.get(t);r.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,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 r.sort((function(e,t){return e.time-t.time})),r.length>=2?r:void 0}},{key:"getRecordId",value:function(e,t){return"".concat(e.oid,"-").concat(t)}},{key:"delete",value:function(e){var t=e.recId,n=e.originalKey,r=e.tmodel;e.anim.cancel(),r.removeFromAnimatingMap(n),this.recordMap.delete(t)}},{key:"deleteAnimation",value:function(e){var t,n=g(this.recordMap);try{for(n.s();!(t=n.n()).done;){var r=v(t.value,2),i=r[0],a=r[1];i.startsWith("".concat(e.oid,"-"))&&this.delete(a)}}catch(e){n.e(e)}finally{n.f()}e.lastBatch=void 0,e.finalKeyframe=void 0,e.finalRawFrame=void 0,e.clearAnimatingMap()}},{key:"cancelKey",value:function(e,t){var n=this.getRecordId(e,t),r=this.recordMap.get(n);r&&(r.status="canceled")}},{key:"deleteAll",value:(h=f(d().mark((function e(){var t,n,r,a,o,l,s,u;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,n=g(this.recordMap);try{for(n.s();!(r=n.n()).done;)a=v(r.value,2),o=a[1],t.add(o.tmodel)}catch(e){n.e(e)}finally{n.f()}l=g(t);try{for(l.s();!(s=l.n()).done;)u=s.value,this.freezeTModelAtCurrentTime(u),i.T.detachAnimationsOnDeleteDom(u),u.lastBatch=void 0,u.finalKeyframe=void 0,u.finalRawFrame=void 0}catch(e){l.e(e)}finally{l.f()}this.recordMap.clear();case 8:case"end":return e.stop()}}),e,this)}))),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:"fillCutFrameFromRecords",value:function(e,t){var n,r=g(this.recordMap);try{for(r.s();!(n=r.n()).done;){var a,o,l,s,u,c,d,h=v(n.value,2)[1];if(h.tmodel===e&&"canceled"!==h.status&&"detached"!==h.status){var f=i.T.getValueFromAnim(h);if(f){var y=h.cleanKey,p=h.originalKey,m=e.targetValues[p];this.setAt(t,y,f.value),t.keyMeta.set(y,{steps:null!==(a=null!==(o=null!==(l=f.remainingSteps)&&void 0!==l?l:f.steps)&&void 0!==o?o:null==m?void 0:m.steps)&&void 0!==a?a:0,segmentSteps:null!==(s=null!==(u=f.steps)&&void 0!==u?u:null==m?void 0:m.steps)&&void 0!==s?s:0,interval:null!==(c=null==m?void 0:m.interval)&&void 0!==c?c:8,stepOffset:null!==(d=f.step)&&void 0!==d?d:0,valuePointer:f.valuePointer,cycle:f.cycle,done:"finished"===f.status})}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"cutLastBatch",value:function(e,t,n){for(var r=0;r<t.frames.length&&t.frames[r].keyTime<=n;)r++;if(r<t.frames.length&&n!==t.frames[r].keyTime){var i={keyTime:n,tfMap:{},styleMap:{},keyMeta:new Map};t.frames.splice(r,0,i),this.fillCutFrameFromRecords(e,i);var a,o=g(y(new Set(Object.values(t.keyMap).flatMap((function(e){return y(e)})))));try{for(o.s();!(a=o.n()).done;){var l=a.value;this.backfillKeyAcrossFramesUsingMorph(e,l,t.frames)}}catch(e){o.e(e)}finally{o.f()}t.frames=t.frames.slice(r)}return t.frames.forEach((function(e){e.keyTime=Math.max(0,e.keyTime-n)})),t.totalDuration=t.frames.length?t.frames[t.frames.length-1].keyTime:0,t}},{key:"callFireOnEndOnConflict",value:function(e,t,n){for(var r=t.keyMap,i=n.keyMap,a=0,o=Object.keys(i);a<o.length;a++){var l=o[a],s=r[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){var n,r=new Set(Object.keys(t.keyMap)),i=[],a=g(e.frames);try{for(a.s();!(n=a.n()).done;){var o,l=n.value,s=g(r);try{for(s.s();!(o=s.n()).done;){var u,c=o.value;delete l.styleMap[c],delete l.tfMap[c],null===(u=l.keyMeta)||void 0===u||u.delete(c)}}catch(e){s.e(e)}finally{s.f()}(Object.keys(l.styleMap).length||Object.keys(l.tfMap).length)&&i.push(l)}}catch(e){a.e(e)}finally{a.f()}for(var d={},h=0,f=Object.entries(e.keyMap);h<f.length;h++){var p=v(f[h],2),m=p[0],b=p[1];r.has(m)||(d[m]=b)}t.frames=[].concat(i,y(t.frames)),t.frames.sort((function(e,t){return e.keyTime-t.keyTime}));var w,k=[],S=g(t.frames);try{for(S.s();!(w=S.n()).done;){var M=w.value,E=k[k.length-1];if(E&&Math.abs(E.keyTime-M.keyTime)<1e-4){if(Object.assign(E.styleMap,M.styleMap),Object.assign(E.tfMap,M.tfMap),M.keyMeta){var D,C=g(M.keyMeta);try{for(C.s();!(D=C.n()).done;){var x=v(D.value,2),O=x[0],L=x[1];E.keyMeta.set(O,L)}}catch(e){C.e(e)}finally{C.f()}}}else k.push(M)}}catch(e){S.e(e)}finally{S.f()}t.keyMap=T(T({},d),t.keyMap),t.frames=k,t.totalDuration=t.frames.length?t.frames[t.frames.length-1].keyTime:0}},{key:"areFramesEqual",value:function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0,a=n;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]],n=1;n<e.length-1;n++){var r=t[t.length-1],i=e[n];this.areFramesEqual(r,i)||t.push(i)}return t.push(e[e.length-1]),t}},{key:"cancelElementAnimationsForKeys",value:function(e,t){if(e.getAnimations){var n,r=new Set(t),i=g(e.getAnimations());try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.effect;if(null!=o&&o.getKeyframes){var l,s=o.getKeyframes(),u=!1,c=g(s);try{for(c.s();!(l=c.n()).done;){for(var d=l.value,h=0,f=Object.keys(d);h<f.length;h++){var v=f[h];if(r.has(v)){u=!0;break}}if(u)break}}catch(e){c.e(e)}finally{c.f()}if(u)try{a.cancel()}catch(e){}}}}catch(e){i.e(e)}finally{i.f()}}}}],t&&k(e.prototype,t),n&&k(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,c,h}()},980:function(e,t,n){n.d(t,{T:function(){return p}});var r=n(333),i=n(585),a=n(249),o=n(705),l=n(161),s=n(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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function f(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;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,n,a){for(var l=Array.isArray(n)?n:[n],s=Array.isArray(a)?a:[a],u={},c={},d=new Map,h={},f={},v=new Map,g={},y=!1,p=0;p<l.length;p++){var m=l[p];y=!0;var b=s[p],T=t.targetValues[m]||r.g.emptyValue(),w=r.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(y){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,totalDuration:1};(0,o.s)().animate(t,S,e.getAnimationHooks())}}},{key:"fixStyleByAnimation",value:function(e,t){if(e.hasDom())for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];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,n=Object.keys(e);t<n.length;t++){var r=n[t];if("offset"!==r&&"transform"!==r){var a=e[r];null==a||Number.isNaN(a)?delete e[r]:"number"==typeof a&&i.u.styleWithUnitMap[r]&&(("width"===r||"height"===r)&&a<0&&(a=0),e[r]="".concat(a,"px"))}}}},{key:"getAnimationHooks",value:function(){return{morph:function(e,t,n,r,i,o){return a.a.easingMorph(e,t,n,r,i,o)},fireOnStep:function(e,t,n){return(0,o.HJ)().fireOnStep(e,t,n)},fireOnEnd:function(e,t){return(0,o.HJ)().fireOnEnd(e,t)}}}},{key:"addToUpdatingTargets",value:function(e,t){var n,r=[],i=h((0,o.s)().recordMap);try{for(i.s();!(n=i.n()).done;){var a=d(n.value,2)[1];a.tmodel===e&&(t&&!t.has(a.originalKey)||r.push(a))}}catch(e){i.e(e)}finally{i.f()}for(var l=0,s=r;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 n,r=[],i=h((0,o.s)().recordMap);try{for(i.s();!(n=i.n()).done;){var a=d(n.value,2)[1];a.tmodel===e&&(t&&!t.has(a.originalKey)||r.push(a))}}catch(e){i.e(e)}finally{i.f()}for(var l=s.d.now(),u=0,c=r;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 n,i=h(e.frames);try{for(i.s();!(n=i.n()).done;){var a,o=n.value,l=h(t);try{for(l.s();!(a=l.n()).done;){var s=a.value,u=r.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=r.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 n=t.tmodel,r=t.originalKey,i=t.cleanKey;if(n.hasDom()){var a=e.getValueFromAnim(t);if(a){var l=a.value,u=a.step,c=a.steps,d=a.cycle,h=a.valuePointer;(0,o.s)().setAt(n,i,l),n.val(r,l);var f=n.targetValues[r];if(f){s.d.isDefined(u)&&s.d.isDefined(c)&&c>0&&(f.step=u),s.d.isDefined(h)&&(f.valuePointer=h),s.d.isDefined(d)&&(f.cycle=d),n.setActual(r,l);var v="".concat(d,":").concat(h,":").concat(u);t.needsFireOnStep&&u>0&&c>0&&t.lastFireOnStepKey!==v&&(t.lastFireOnStepKey=v,t.hooks.fireOnStep(n,r,u)||(t.needsFireOnStep=!1))}return a}}}},{key:"getValueFromAnim",value:function(e){var t,n,r,i,o,l,u,c=e.originalKey,d=e.anim,h=e.frames;if(h){var f=null===(t=d.effect)||void 0===t||null===(n=t.getComputedTiming)||void 0===n?void 0:n.call(t);if(f){var v=s.d.isDefined(f.progress)?s.d.limit(f.progress,0,1):1,g=h.length-1,y=0;if(v<=h[0].offset)y=0;else if(v>=h[g].offset)y=g-1;else for(var p=0;p<g;p++)if(v>=h[p].offset&&v<h[p+1].offset){y=p;break}var m=h[y],b=h[y+1],T=m.value,w=b.value,k=m.offset,S=b.offset-k;if(!(S<=0)){var M,E,D,C,x=s.d.limit((v-k)/S,0,1),O=a.a.morph(c,T,w,x),L=b.steps;if(!s.d.isDefined(L)||L<=0)return{value:O,framePointer:y,step:b.segmentSteps,steps:b.segmentSteps,from:T,to:w,valuePointer:null!==(M=null!==(E=b.valuePointer)&&void 0!==E?E:m.valuePointer)&&void 0!==M?M:0,cycle:null!==(D=null!==(C=b.cycle)&&void 0!==C?C:m.cycle)&&void 0!==D?D:0,status:b.done?"finished":"playing"};var _=Math.round(x*L);_=s.d.limit(_,0,L);var A=b.stepOffset||0,P=null!==(r=b.segmentSteps)&&void 0!==r?r:A+L,j=s.d.limit(A+_,0,P),I=b.done?"finished":"playing";return{value:O,step:j,steps:P,valuePointer:null!==(i=null!==(o=b.valuePointer)&&void 0!==o?o:m.valuePointer)&&void 0!==i?i:0,cycle:null!==(l=null!==(u=b.cycle)&&void 0!==u?u:m.cycle)&&void 0!==l?l:0,from:T,to:w,status:I}}}}}},{key:"detachAnimationsOnDeleteDom",value:function(t){var n,r=(0,o.s)().recordMap,i=new Set,a=new Set,s=h(r);try{for(s.s();!(n=s.n()).done;){var u=d(n.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 n,r=(0,o.s)().recordMap,i=h(r);try{for(i.s();!(n=i.n()).done;){var a=d(n.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),r.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 n;if(t&&null!==(n=t.frames)&&void 0!==n&&n.length)for(var r=0,i=Object.entries(t.keyMap);r<i.length;r++){var a,l=d(i[r],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,y=1;y<t.frames.length;y++){var p,m=t.frames[y];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;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 n,r=e.totalDuration||0,i=!1,a=h(e.frames);try{for(a.s();!(n=a.n()).done;){var o,l=n.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,[r].concat(c(e.frames.map((function(e){return e.keyTime}))))):0,i}},{key:"handleWebAnimationAPI",value:function(t,n,r,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],y=t.waapiBatch||(t.waapiBatch={frames:[],easing:void 0,keyMap:{},totalDuration:0});g&&e.removeCleanKeyFromBatch(y,n)&&(h=0);var p=i.u.isTransformKey(n),m=function(e){for(var t=Math.max(0,e+h),n=0;n<y.frames.length;n++){var r=y.frames[n];if(Math.abs(r.keyTime-t)<1e-4)return r}var i={keyTime:t,tfMap:{},styleMap:{},keyMeta:new Map};return y.frames.push(i),i},b=function(e,t){p?e.tfMap[n]=t:e.styleMap[n]=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,_=m(0);b(_,o),_.keyMeta.set(n,{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 P,j=M[(A-1)%M.length],I=E[(A-1)%E.length]||8,V=C===(null!==(P=a.cycle)&&void 0!==P?P:0)&&A===s?u:0,N=Math.max(j-V,0);if(!(N<=0)){var F=m(T+=N*I);b(F,S[A]),F.keyMeta.set(n,{steps:N,segmentSteps:j,interval:I,stepOffset:V,valuePointer:A,cycle:C})}}C++,x=1}}else{var H;d=d||8;var B=Math.max(c-u,0);if(B<=0)return t.val(r,l),a.step=c,0;T=B*d,v||b(m(0),o);var R=m(T);b(R,l),R.keyMeta.set(n,{steps:B,segmentSteps:c,interval:d,stepOffset:u,valuePointer:0,cycle:null!==(H=a.cycle)&&void 0!==H?H:0})}return T<=0?(t.removeFromUpdatingTargets(r),0):(t.getTargetEasing(r)&&(y.easing=t.getTargetEasing(r)),y.totalDuration=Math.max(0,y.totalDuration,h+T),((f=y.keyMap)[n]||(f[n]=new Set)).add(r),t.removeFromUpdatingTargets(r),t.addToAnimatingMap(r),T)}}],(n=null)&&g(t.prototype,n),u&&g(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,u}()},705:function(e,t,n){n.d(t,{qw:function(){return Ue},hd:function(){return Ye},aK:function(){return ze},s:function(){return Ze},UR:function(){return ot},kQ:function(){return Ke},qI:function(){return qe},zw:function(){return et},EI:function(){return Qe},cI:function(){return Xe},S9:function(){return it},fB:function(){return Ge},c$:function(){return nt},r5:function(){return tt},iP:function(){return at},HJ:function(){return Je},U$:function(){return rt},W_:function(){return We},E_:function(){return Le},Bt:function(){return $e}});var r=n(768),i=n(90),a=n(756),o=n(34),l=n(585),s=n(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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function g(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;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 r.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={touch: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},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)}return t=e,n=[{key:"detachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){Le.$window.detachEvent(t,e.bindedHandleWindowEvent)}))}},{key:"attachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){Le.$window.addEvent(t,e.bindedHandleWindowEvent)}))}},{key:"detachDocumentEvents",value:function(e){var t=this,n=l.u.events[e];Object.keys(n).forEach((function(e){var r=n[e];t.$document.detachEvent(e,t.bindedParentHandleEvent,r.capture)}))}},{key:"attachDocumentEvents",value:function(e){var t=this,n=l.u.events[e];Object.keys(n).forEach((function(e){var r=n[e];t.$document.addEvent(e,t.bindedParentHandleEvent,r.capture,r.passive)}))}},{key:"attachEvents",value:function(e){var t,n=d(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.externalEventMap){var i,a=d(r.externalEventMap);try{for(a.s();!(i=a.n()).done;){var o=c(i.value,1)[0];this.attachTargetEvents(r,o,!0)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){n.e(e)}finally{n.f()}}},{key:"attachTargetEvents",value:function(e,t,n){var r=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?Le.$window:e.hasDom()?e.$dom:null;if(!u)return!1;var c="".concat(i," ").concat(s?"win":"dom"),d=r.eventTargetMap[c]===u,h="".concat(e.oid," ").concat(t," ").concat(s?"win":"dom"),f=r.attachedEventMap[h]&&r.attachedEventMap[h].$dom===u;!n&&d&&f||(u.detachEvent(t,r.bindedHandleEvent,l.capture),u.addEvent(t,r.bindedHandleEvent,l.capture,l.passive),r.eventTargetMap[c]=u,r.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 n=t[e],r=this.attachedEventMap[n],i=r.$dom,a=r.event,o=r.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||this.currentTouch.pinchDelta){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&&0===this.touchCount&&(this.scrollEndTimeStamp.x=0,this.queueScrollEndEvent("x",this.currentHandlers.scrollLeft)),!this.currentTouch.deltaY&&this.scrollEndTimeStamp.y&&e>=this.scrollEndTimeStamp.y&&0===this.touchCount&&(this.queueScrollEndEvent("y",this.currentHandlers.scrollTop),this.scrollEndTimeStamp.y=0),Ge().schedule(10,"scroll decay")}}},{key:"findEventHandlers",value:function(e){var t,n,i,o,l,s,u,c,d=e.tmodel,h=e.eventType;d&&(t=a.X.findFirstClickHandler(d),n=a.X.findFirstSwipeHandler(d),u=a.X.findFirstEnterHandler(d),c=a.X.findFirstLeaveHandler(d),i=a.X.findFirstScrollLeftHandler(d,h),o=a.X.findFirstScrollTopHandler(d,h),l=a.X.findFirstPinchHandler(d),s=r.J.hasFocus(d)?d: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!=d&&d.canHandleEvent("onHover")?d:void 0,this.currentHandlers.click=t,this.currentHandlers.swipe=n,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,t=this.eventQueue.shift();(this.canFindHandlers&&!t.synthetic&&this.findEventHandlers(t),"end"===t.eventType||"click"===t.eventType)&&("end"===t.eventType&&(this.currentHandlers.end=this.currentHandlers.start,null===(e=this.currentHandlers.end)||void 0===e||e.markLayoutDirty("end-event"),this.currentHandlers.start=void 0),this.canFindHandlers=!0);this.currentEventName=t.eventName,this.currentEventType=t.eventType,this.currentEventTModel=t.tmodel,this.currentOriginalEvent=t.originalEvent,this.currentTouch.key=""}},{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,n,r){var i,l,s,u,c,d,h,f,v,g=this;if(t){var y=t.type,p=this.allEvents[y];if(p){var m,b,T=p.eventName,w=p.inputType,k=p.eventType,S=p.order,M=p.queue,E=p.rateLimit,D=o.d.now(),C={eventName:T,eventItem:p,eventType:k,originalName:y,tmodel:m="move"===k&&this.touchCount>0&&this.currentHandlers.start?this.currentHandlers.start:this.getTModelFromEvent(t),originalEvent:t,timeStamp:D};if(null!==(i=this.lastEvent)&&void 0!==i&&i.eventItem){var x=this.lastEvent,O=x.eventItem,L=D-x.timeStamp;if("end"!==k&&"cancel"!==k&&"start"!==k&&w&&O.inputType&&O.inputType!==w&&S>O.order)return;if(this.eventQueue.length>e.MAX_EVENT_QUEUE_SIZE&&E>0&&L<E)for(var _=0,A=this.eventQueue.length-1;A>=0;A--){var P;if((null===(P=this.eventQueue[A].eventItem)||void 0===P?void 0:P.eventType)!==k)break;if(++_>e.MAX_EVENT_TYPE_CAPACITY)return void(this.preventDefault(m,T)&&(t.preventDefault(),t.stopPropagation()))}}switch(this.eventEpoch++,null===(l=m)||void 0===l||l.markEventDirty(),null===(s=m)||void 0===s||s.markLayoutDirty("event"),this.lastEvent=C,M&&this.eventQueue.push(this.lastEvent),T){case"mousedown":case"touchstart":this.clearStart(),this.clearEnd(),this.clearTouch(),this.eventQueue.length=0,this.eventQueue.push(this.lastEvent),this.touchCount=this.countTouches(t)||1,this.preventDefault(m,T)&&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.start=m,this.findEventHandlers(C),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 j;b=this.getTouch(t),this.cursor.x=b.x,this.cursor.y=b.y,this.preventDefault(m,T)&&t.cancelable&&t.preventDefault(),this.touchCount>0?(this.scrollEndTimeStamp.x=0,this.scrollEndTimeStamp.y=0,this.move(t),t.stopPropagation(),null===(j=this.currentHandlers.swipe)||void 0===j||j.markLayoutDirty("swipe-event")):this.isCurrentSource("wheel")&&this.clearTouch();break;case"mouseup":case"touchend":this.detachDocumentEvents("documentDragEvents"),this.preventDefault(m,T)&&t.cancelable&&t.preventDefault(),this.end(t),this.clearEnd(),this.touchCount=0,t.stopPropagation();break;case"click":this.preventDefault(m,T)&&t.preventDefault(),this.end0=this.getTouch(t);var I=a.X.findFirstClickHandler(m),V=!this.start0||I===this.currentHandlers.click&&(I!==this.currentHandlers.swipe||this.getSwipeDistance()<5);I&&V&&(I.markEventDirty(),I.markLayoutDirty("event"),this.eventQueue.length=0,this.eventQueue.push({eventName:T,eventItem:p,eventType:k,originalName:y,tmodel:m,originalEvent:t,timeStamp:D})),this.clearEnd(),this.clearStart(),this.touchCount=0,t.stopPropagation();break;case"wheel":this.preventDefault(m,T)&&(t.preventDefault(),t.stopPropagation()),this.touchCount=0,this.wheel(t);break;case"mouseleave":n&&this.touchCount>0&&(this.detachDocumentEvents("documentDragEvents"),b=this.getTouch(t),this.cursor.x=b.x,this.cursor.y=b.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.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(),Qe().getAvailableDoms().forEach((function(e){e.targets.onResize&&e.markLayoutDirty("resize-event")}));break;case"scroll":clearTimeout(this.windowScrollEndTimer),this.windowScrollEndTimer=setTimeout((function(){g.queueWindowScrollEndEvent("x",m),g.queueWindowScrollEndEvent("y",m),g.windowScrollEndTimer=0}),120),r?(this.windowEpoch++,this.windowScrollX=0|window.scrollX,this.windowScrollY=0|window.scrollY,et().domIslandSet.forEach((function(e){e.markLayoutDirty("window-scroll-event")}))):(m.markLayoutDirty("container-scroll-event"),clearTimeout(m.scrollEndTimer),m.scrollEndTimer=setTimeout((function(){g.queueWindowScrollEndEvent("x",m,"container"),g.queueWindowScrollEndEvent("y",m,"container"),m.scrollEndTimer=0}),120))}Ge().schedule(0,"".concat(y,"-").concat(T,"-").concat((t.target.tagName||"").toUpperCase()))}}}},{key:"queueScrollEndEvent",value:function(e,t){if(t){var n="x"===e?"scrollleftend":"scrolltopend";this.removeScrollEndEvents(e),this.eventQueue.push({eventName:n,eventType:n,originalName:n,tmodel:t,originalEvent:void 0,timeStamp:o.d.now(),synthetic:!0}),this.eventEpoch++,t.markEventDirty(),t.markLayoutDirty(n),Ge().schedule(0,n)}}},{key:"queueWindowScrollEndEvent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"window",r="x"===e?"windowscrollleftend":"windowscrolltopend";this.removeScrollEndEvents(e),this.eventQueue.push({eventName:r,eventType:r,originalName:r,tmodel:t,originalEvent:void 0,timeStamp:o.d.now(),synthetic:!0,scrollSource:n}),this.eventEpoch++,et().domIslandSet.forEach((function(e){e.markEventDirty(),e.markLayoutDirty(r)})),Ge().schedule(0,r)}},{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($e(),"screenWidth"),s.j.executeDeclarativeTarget($e(),"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,n=e.currentTarget||e.target;return n&&1===n.nodeType&&(t=n.getAttribute("tgjs-oid")||n.id),t&&Le.manager.visibleOidMap[t]||(t=null==n?void 0:n.id)&&Qe().visibleOidMap[t]||(t=r.J.findNearestParentWithId(e.target)),Qe().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}},{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:"getSwipeDistance",value:function(){return this.start0&&this.end0?o.d.distance(this.start0.originalX,this.start0.originalY,this.end0.x,this.end0.y):0}},{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.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,n,r=this.currentOriginalEvent,i=null===(t=e.$dom)||void 0===t?void 0:t.element,a=null==r?void 0:r.target;return!!(i&&a&&(a===i||null!==(n=i.contains)&&void 0!==n&&n.call(i,a)))}},{key:"getOrientation",value:function(){return this.currentTouch.orientation}},{key:"countTouches",value:function(e){var t,n;return(null===(t=e.touches)||void 0===t?void 0:t.length)||(null===(n=e.originalEvent)||void 0===n||null===(n=n.touches)||void 0===n?void 0:n.length)}},{key:"getTouch",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(null===(t=e.touches)||void 0===t?void 0:t[r])||(null===(n=e.originalEvent)||void 0===n||null===(n=n.touches)||void 0===n?void 0:n[r])||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=this.start0.x-this.end0.x,n=this.start0.y-this.end0.y;this.setDeltaXDeltaY(t,n,"touch")}}else if(this.touchCount>=2){this.end0=this.getTouch(e),this.end1=this.getTouch(e,1);var r=o.d.distance(this.start0.x,this.start0.y,this.start1.x,this.start1.y),i=o.d.distance(this.end0.x,this.end0.y,this.end1.x,this.end1.y)-r;this.currentTouch.pinchDelta=i>0?.3:i<0?-.3:0}}},{key:"end",value:function(){if(this.touchCount<=1&&this.start0){var e,t=0,n=0,r=0;o.d.isDefined(this.end0)&&(t=this.start0.originalX-this.end0.x,n=this.start0.originalY-this.end0.y,r=o.d.now()-this.start0.timeStamp<250?o.d.now()-this.start0.timeStamp:0),"horizontal"===this.currentTouch.orientation&&Math.abs(t)>0&&r>0?(e=o.d.momentum(0,t,r),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(n)>0&&r>0&&(e=o.d.momentum(0,n,r),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,n){var r=Math.abs(e)-Math.abs(t);r>=1?("none"===this.currentTouch.orientation||"vertical"===this.currentTouch.orientation&&r>=2||"horizontal"===this.currentTouch.orientation)&&(this.currentTouch.orientation="horizontal"):("none"===this.currentTouch.orientation||"horizontal"===this.currentTouch.orientation&&r<=-2||"vertical"===this.currentTouch.orientation)&&(this.currentTouch.orientation="vertical");var i=o.d.now(),a="touch"===n?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=n,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)&&Ge().schedule(a,"scroll-end-check")}},{key:"wheel",value:function(e){var t=0,n=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,n=e.deltaY):"wheelDeltaX"in e?(t=-e.wheelDeltaX/120,n=-e.wheelDeltaY/120):"wheelDelta"in e?t=-e.wheelDelta/120:"detail"in e&&(t=e.detail/3),this.setDeltaXDeltaY(t,n,"wheel")}}],n&&v(t.prototype,n),i&&v(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,i}();g(p,"MAX_EVENT_QUEUE_SIZE",10),g(p,"MAX_EVENT_TYPE_CAPACITY",2);var m=n(333),b=["url","cacheId"];function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){return E="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},E(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function C(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(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.cacheMap={},this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.fetchSeq=0},t=[{key:"clear",value:function(){this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.fetchSeq=0}},{key:"fetchCommon",value:function(e,t,n,r,i){return m.g.markFetchAction(n),this.isFetched(t)?r[e]||(r[e]={fetchId:e,cacheId:t,startTime:o.d.now(),targets:[{tmodel:n,targetName:n.key}],fetchMap:r}):r[e]||(r[e]={fetchId:e,cacheId:t,startTime:o.d.now(),targets:[{tmodel:n,targetName:n.key}],fetchMap:r},i()),this.addToTModelKeyMap(n,n.key,e,t),e}},{key:"fetch",value:function(e,t,n,r){var i=this;if(!t||"object"!==E(t)||Array.isArray(t))(Array.isArray(t)?t:[t]).forEach((function(t){i.fetchOne(e,t,n,r)}));else{var a=t.url,o=t.cacheId,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,b);this.fetchOne(e,a,l,null!=o?o:r)}}},{key:"fetchOne",value:function(e,t,n,r){var i=this,a=this.getFetchKey(e,t,n);this.fetchCommon(a,r,e,this.fetchingAPIMap,(function(){i.ajaxAPI(t,n,i.fetchingAPIMap[a])}))}},{key:"fetchImage",value:function(e,t,n){var r=this;(Array.isArray(t)?t:[t]).forEach((function(t){var i=r.getFetchKey(e,t);r.fetchCommon(i,n,e,r.fetchingImageMap,(function(){r.loadImage(t,r.fetchingImageMap[i])}))}))}},{key:"getFetchKey",value:function(e,t,n){var r=n?"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key),"_").concat(JSON.stringify(n)):"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key));return"".concat(r,"_").concat(++this.fetchSeq)}},{key:"getTModelKey",value:function(e,t){return"".concat(document.URL,"_").concat(e.oid,"_").concat(t)}},{key:"addToTModelKeyMap",value:function(e,t,n,r){var i,a,l=this.getTModelKey(e,t),s=o.d.getLoadTargetName(t);!this.isLoadingComplete(e,t)&&this.tmodelKeyMap[l]&&e.val(s)||(null!==(a=(i=this.tmodelKeyMap)[l])&&void 0!==a||(i[l]={fetchMap:{},entryCount:0,resultCount:0,errorCount:0,activeIndex:0,accessIndex:0}),e.val(s,[])),this.tmodelKeyMap[l].fetchMap[n]||(this.tmodelKeyMap[l].fetchMap[n]={fetchId:n}),this.tmodelKeyMap[l].fetchMap[n].order=this.tmodelKeyMap[l].entryCount,this.tmodelKeyMap[l].entryCount++,e.val(s).push(void 0),r&&this.isFetched(r)&&(this.fetchingAPIMap[n].startTime=o.d.now(),this.handleSuccess(this.fetchingAPIMap[n],this.cacheMap[r].result))}},{key:"removeFromTModelKeyMap",value:function(e,t){var n=this.getTModelKey(e,t);delete this.tmodelKeyMap[n]}},{key:"isLoading",value:function(e,t){var n=this.getTModelKey(e,t);return this.tmodelKeyMap[n]}},{key:"isLoadingSuccessful",value:function(e,t){var n=this.getTModelKey(e,t);return this.tmodelKeyMap[n]&&this.tmodelKeyMap[n].resultCount===this.tmodelKeyMap[n].entryCount}},{key:"isLoadingComplete",value:function(e,t){var n=this.getTModelKey(e,t);return!!this.tmodelKeyMap[n]&&this.tmodelKeyMap[n].resultCount===this.tmodelKeyMap[n].entryCount&&this.tmodelKeyMap[n].activeIndex===this.tmodelKeyMap[n].entryCount&&this.tmodelKeyMap[n].resultCount===e.getTargetCycles(t)}},{key:"resetLoadingError",value:function(e,t){var n=this.getTModelKey(e,t),r=this.tmodelKeyMap[n];r&&(r.errorCount=0)}},{key:"nextActiveItem",value:function(e,t){var n=this.getTModelKey(e,t),r=this.tmodelKeyMap[n];return!!r&&r.activeIndex++}},{key:"isNextLoadingItemSuccessful",value:function(e,t){var n=this.getTModelKey(e,t),r=this.tmodelKeyMap[n];if(!r)return!1;var i=o.d.getLoadTargetName(t),a=e.val(i);return Array.isArray(a)&&o.d.isDefined(a[r.activeIndex])&&o.d.isDefined(a[r.accessIndex])}},{key:"getLoadingItemValue",value:function(e,t,n){var r=this.getTModelKey(e,t),i=this.tmodelKeyMap[r];if(i&&!(i.accessIndex>=i.resultCount)){var a,l=o.d.getLoadTargetName(t),s=e.val(l);return s&&(null!=n&&n.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,n;return null!==(t=null===(n=this.cacheMap[e])||void 0===n?void 0:n.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 n=e.getTargetCycle(t),r=e.getTargetCycles(t);return e.isTargetInLoop(t)||n<r-1?"active":this.isLoadingSuccessful(e,t)?"done":"fetching"}},{key:"handleSuccess",value:function(e,t){var n=this,r=o.d.now(),i=e.fetchId,a=e.cacheId,l=e.startTime,s=e.targets,u=e.fetchMap,c={fetchingPeriod:r-l,success:!0,result:t};s.forEach((function(e){var t=e.tmodel,r=e.targetName,a=n.getTModelKey(t,r),l=n.tmodelKeyMap[a],s=o.d.getLoadTargetName(r);if(l&&l.fetchMap[i]){var u=l.fetchMap[i];n.callOnSuccessHandler(t,r,S(S({},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(r,c.result);var h=n.calculateTargetStatus(t,r);t.setTargetStatus(r,h),t.setLastUpdate(r),m.g.shouldActivateNextTarget(t,r)}})),delete u[i],a&&(this.cacheMap[a]=c),Ge().schedule(0,"api_success_".concat(i))}},{key:"handleError",value:function(e,t){var n=this,r=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=n.getTModelKey(a,s),c=n.tmodelKeyMap[u],d=o.d.getLoadTargetName(s);if(c&&c.fetchMap[i]){var h=c.fetchMap[i],f={fetchingPeriod:r-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++,n.callOnErrorHandler(a,s);var g=n.calculateTargetStatus(a,s);a.setTargetStatus(s,g),a.setLastUpdate(s),m.g.shouldActivateNextTarget(a,s)}})),delete u[i],a&&delete this.cacheMap[a],Ge().schedule(0,"api_error_".concat(i))}},{key:"callOnSuccessHandler",value:function(e,t,n){var r,i=null===(r=e.targets[t])||void 0===r?void 0:r.onSuccess;i&&("function"==typeof i?(e.setTargetMethodName(t,"onSuccess"),i.call(e,n)):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 n,r=null===(n=e.targets[t])||void 0===n?void 0:n.onError;r&&("function"==typeof r?(e.setTargetMethodName(t,"onSuccess"),r.call(e,e.val(t))):Array.isArray(r)?r.forEach((function(t){return m.g.activateSingleTarget(e,t)})):m.g.activateSingleTarget(e,r))}},{key:"ajaxAPI",value:function(e,t,n){var i,a,o,l=this,s={url:e,dataType:"json",type:"GET",success:function(e){return l.handleSuccess(n,e)},error:function(e){return l.handleError(n,e)}};if((u=t)&&"object"===E(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=T(v[f],2),y=g[0],p=g[1];"requestType"===y?d.type=p:c.has(y)?d[y]=p:h[y]=p}var m=S(S(S({},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),r.J.ajax(m)}else r.J.ajax(S(S({},s),{},{data:t}))}},{key:"loadImage",value:function(e,t){var n=this,r=new Image;r.src=e,r.onload=function(){var e={width:r.width,height:r.height,src:r.src};n.handleSuccess(t,e)},r.onerror=function(){n.handleError(t,"not found")}}}],t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),O=n(714),L=n(249),_=n(161),A=n(980);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 j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||V(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 I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=V(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function V(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t,n){return(t=K(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(){R=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(r||[]);return i(o,"_invoke",{value:D(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",y={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(_([])));k&&k!==n&&r.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 n(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"==P(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,n,r){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(r.method=a,r.arg=o;;){var l=r.delegate;if(l){var s=C(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?g:f,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 _(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(P(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,n,r,i,a){void 0===a&&(a=Promise);var o=new E(c(e,n,r,i),a);return t.isGeneratorFunction(n)?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),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,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 n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.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=r.call(o,"catchLoc"),u=r.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 n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function U(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function W(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){U(a,r,i,o,l,"next",e)}function l(e){U(a,r,i,o,l,"throw",e)}o(void 0)}))}}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K(r.key),r)}}function K(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(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.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 n=t[e++],r=n.activatedTargets.slice(0);n.activatedTargets.length=0,Je().applyTargetValues(n,r),n.updatingTargetList.length>0&&Je().setActualValues(n,n.updatingTargetList),this.hasLocationMap[n.oid]||this.addToLocationList(n)}}},{key:"calculateAll",value:(i=W(R().mark((function e(){var t,n,r,i,a=arguments;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:8,n=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=[],r=[{container:$e(),stage:"init",children:[],viewport:void 0,index:0}],i={budgetMs:t,sliceStart:o.d.now(),calcEpoch:n},e.next=13,this.processStack(r,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:(r=W(R().mark((function e(t,n){var r,i,a,l,s,u,c,d=this;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=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,n=e.children,r=e.viewport,i=n[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"))?r.appendNewLine():r.nextLocation(),t.calcContentWidthHeight()),(i.hasEventDirty()||Ke().getEventType()||Ke().hasDelta())&&(d.checkExternalEvents(i),i.hasEventDirty()&&(i.processedEventEpoch=i.eventDirtyEpoch))),e.index++,e.index<e.children.length&&(e.stage="child")},l=function(e){var n,r=e.container,i=e.children,a=e.viewport,o=i[e.index];if(o){if(o.isDomIsland()&&o.originWindowEpoch!==Ke().getWindowEpoch()&&o.hasDom()&&(o.calcAbsolutePositionFromDom(),o.originWindowEpoch=Ke().getWindowEpoch()),a.setCurrentChild(o),!o.getDirtyLayout()&&!o.currentStatus&&0===o.activeTargetList.length)return d.calcNextLocation(o,r,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=o.actualValues.x,f=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),L.a.isXDefined(o)||(o.actualValues.x=o.x),L.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===(n=o.getDirtyLayout())||void 0===n?void 0:n.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(n.calcEpoch===this.calcEpoch){e.next=7;break}return e.abrupt("return");case 7:if(!(o.d.now()-n.sliceStart>n.budgetMs)){e.next=14;break}return e.next=10,new Promise(requestAnimationFrame);case 10:if(n.calcEpoch===this.calcEpoch){e.next=12;break}return e.abrupt("return");case 12:return n.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=H({},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 r(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 r.apply(this,arguments)})},{key:"processAfterStack",value:function(){for(var e in this.visibleChildrenLengthMap){var t=this.visibleChildrenLengthMap[e],n=t.tmodel,r=t.visibleCount;!n.isVisible()||r===n.visibleChildren.length&&0!==n.visibleChildren.length||(this.runEventTargets(n,["onVisibleChildrenChange"]),this.visibleChildrenLengthMap[e].visibleCount=n.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()?O.M.generate(e):(e.lastChildrenUpdate.additions.length=0,e.lastChildrenUpdate.deletions.length=0,O.M.bracketMap[e.oid]&&(delete O.M.bracketMap[e.oid],delete O.M.pageMap[e.oid]),e.getChildren())}},{key:"calcNextLocation",value:function(e,t,n){var r;n.setLocation(),n.isOverflow()&&(n.overflow(),n.setLocation(),e.markLayoutDirty("overflow")),e.isIncluded()&&e.targets.onVisibleChildrenChange&&!this.visibleChildrenLengthMap[e.oid]&&(this.visibleChildrenLengthMap[e.oid]={tmodel:e,visibleCount:e.visibleChildren.length}),L.a.isXDefined(e)||(e.actualValues.x=e.x),L.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===(r=e.styleTargetMap)||void 0===r?void 0:r.size)>0||e.updatingTargetList.length>0)&&this.addToLocationList(e),this.calculateVisibility(e),e.isInFlow()&&(o.d.isNumber(e.val("appendNewLine"))?n.appendNewLine():n.nextLocation(),t.calcContentWidthHeight())}},{key:"calculateVisibility",value:function(e){var t,n,r,i=e.isVisible(),a=null!==(t=null===(n=e.visibilityStatus)||void 0===n?void 0:n.isVisible)&&void 0!==t?t:void 0;if(e.visibilityStatus||(e.visibilityStatus={}),e.visibilityStatus.lastIsVisible=e.visibilityStatus.isVisible,o.d.isDefined(e.targets.isVisible))r="function"==typeof e.targets.isVisible.value?e.targets.isVisible.value.call(e):!!e.targets.isVisible,e.actualValues.isVisible=r,e.isNowVisible=!i&&r,e.isNowInvisible=(i||void 0===i)&&!r;else{var l=e.calcVisibility();r=l,e.isNowVisible=!i&&r||!a&&l,e.isNowInvisible=(i||void 0===i)&&!r||a&&!l,e.actualValues.isVisible=r}(e.isNowVisible||e.isNowInvisible)&&e.markLayoutDirty("isNowVisible"),e.isNowInvisible&&this.addToLocationList(e),_.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 n=e.activatedTargets.slice(0);e.activatedTargets.length=0;var r,i=I(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;Je().applyTargetValue(e,a)}}catch(e){i.e(e)}finally{i.f()}}_.O.pauseResumeSchedule(e),e.activateChangedPassiveTargets(),Je().applyTargetValues(e),e.updatingTargetList.length>0&&Je().setActualValues(e,e.updatingTargetList),L.a.shouldMeasureWidthFromDom(e)&&(e.hasDom()?L.a.setWidthFromDom(e):e.markLayoutDirty("width")),L.a.shouldMeasureHeightFromDom(e)&&(e.hasDom()?L.a.setHeightFromDom(e):e.markLayoutDirty("height")),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 n,r=[],i=l.u.allEventMap,a=I(t);try{for(a.s();!(n=a.n()).done;){var o=j(n.value,1)[0];i[o](e)&&r.push(e.allTargetMap[o])}}catch(e){a.e(e)}finally{a.f()}this.runEventTargets(e,r)}}},{key:"checkInternalEvents",value:function(e){var t=[],n=l.u.internalEventMap,r=e.internalEventMap;if((null==r?void 0:r.size)>0){var i,a=I(r);try{for(a.s();!(i=a.n()).done;){var o=j(i.value,1)[0];n[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){var n=e.targets[t];if(e.isTargetEnabled(t)&&!e.isTargetUpdating(n)){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,n){if(e.hasValidAnimation()){var r=[],i=[],a=e.actualValues.x!==t,o=e.actualValues.y!==n;if(a&&"updating"!==e.getTargetStatus(e.allTargetMap.x)&&(r.push("x"),i.push(e.val("x"))),o&&"updating"!==e.getTargetStatus(e.allTargetMap.y)&&(r.push("y"),i.push(e.val("y"))),r.length>0)return void A.T.overrideAnimatedKeyWithSnap(e,r,i)}this.addToTransformTargetList(e,"x"),this.addToTransformTargetList(e,"y")}},{key:"addToTransformTargetList",value:function(e,t){L.a.getTransformValue(e,t)!==Math.floor(e.tfMap[t])&&e.addToStyleTargetList(t)}},{key:"isActivated",value:function(e){return this.activatedMap[e.oid]}}],t&&$(e.prototype,t),n&&$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,i}(),q=n(260);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 z(){z=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(r||[]);return i(o,"_invoke",{value:D(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",y={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(_([])));k&&k!==n&&r.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 n(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"==Y(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,n,r){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(r.method=a,r.arg=o;;){var l=r.delegate;if(l){var s=C(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?g:f,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 _(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Y(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,n,r,i,a){void 0===a&&(a=Promise);var o=new E(c(e,n,r,i),a);return t.isGeneratorFunction(n)?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),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,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 n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.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=r.call(o,"catchLoc"),u=r.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 n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t,n){return(t=ne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function ee(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){G(a,r,i,o,l,"next",e)}function l(e){G(a,r,i,o,l,"throw",e)}o(void 0)}))}}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ne(r.key),r)}}function ne(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(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.lastLink=o.d.getFullLink(document.URL),this.lastCachedLink=void 0,this.pageCache={},this.initHistory()},t=[{key:"initHistory",value:function(){var e=o.d.getFullLink(document.URL),t=history.state;t&&(t.link||t.browserUrl)||history.replaceState({link:e},"",e),this.lastLink=e}},{key:"initPage",value:function(e){Le.tRoot.$dom.outerHTML(e),Le.tRoot.$dom=r.J.query("#tgjs-root")?new r.J("#tgjs-root"):new r.J("body"),"body"!==Le.tRoot.$dom.getTagName()&&Le.tRoot.$dom.attr("data-tj-no-slot","true"),q.v.initPageDoms(Le.tRoot.$dom)}},{key:"openPage",value:(l=ee(z().mark((function e(t){var n,i,a=arguments;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.length>1&&void 0!==a[1]&&!a[1]){e.next=7;break}return e.next=4,Le.stop();case 4:return et().cancelCurrentCalculation(),e.next=7,Le.reset();case 7:if(t=o.d.getFullLink(t),this.pageCache[t]){e.next=18;break}return Le.tRoot.$dom.innerHTML(""),Ue.oids={},Ue.tmodelIdMap={},Le.tRoot=Le.tRootFactory(),this.lastLink=t,e.next=16,Le.start();case 16:e.next=34;break;case 18:return Le.tRoot=this.pageCache[t].tRoot,Ue.oids=this.pageCache[t].oids,Ue.tmodelIdMap=this.pageCache[t].tmodelIdMap,Le.tRoot.$dom=r.J.query("#tgjs-root")?new r.J("#tgjs-root"):new r.J("body"),Le.tRoot.$dom.innerHTML(this.pageCache[t].html),n=Object.values(this.pageCache[t].visibleOidMap),i=q.v.initCacheDoms(n),n.forEach((function(e){e.visibilityStatus=void 0})),Le.manager.activatePendingTargetsAfterDom(n,{restoredDoneTargets:!0}),Le.manager.visibleOidMap=J({},this.pageCache[t].visibleOidMap),i.forEach((function(e){Le.manager.visibleOidMap[e.oid]=e})),window.scrollTo(this.pageCache[t].scrollLeft,this.pageCache[t].scrollTop),this.lastLink=t,e.next=33,Le.start();case 33:Ge().restoreSnapshot(this.pageCache[t].runSnapshot);case 34:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"openLinkFromHistory",value:(a=ee(z().mark((function e(t){var n;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.link||t.browserUrl){e.next=3;break}return e.abrupt("return");case 3:return t.browserUrl&&history.replaceState({link:n},"",n),e.next=6,this.openLink(n,!1);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"onPageClose",value:function(){Le.resizeLastUpdate=o.d.now(),Ke().resizeRoot(),Le.manager.getAvailableDoms().forEach((function(e){et().runEventTargets(e,["onPageClose"])}))}},{key:"openLink",value:(i=ee(z().mark((function e(t){var n,i,a,l=arguments;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(l.length>1&&void 0!==l[1])||l[1],t=o.d.getFullLink(t),!this.lastLink){e.next=14;break}return i=Ge().getSnapshot(),e.next=6,Le.stop();case 6:return et().cancelCurrentCalculation(),this.onPageClose(),Le.tRoot.$dom=r.J.query("#tgjs-root")?new r.J("#tgjs-root"):new r.J("body"),a=Le.tRoot.$dom.innerHTML(),this.pageCache[this.lastLink]={link:this.lastLink,html:a,oids:J({},Ue.oids),tmodelIdMap:J({},Ue.tmodelIdMap),visibleOidMap:J({},Le.manager.visibleOidMap),scrollLeft:r.J.getWindowScrollLeft()||0,scrollTop:r.J.getWindowScrollTop()||0,tRoot:Le.tRoot,runSnapshot:i},this.lastCachedLink=this.lastLink,e.next=14,Le.reset();case 14:return n&&history.pushState({link:t},"",t),e.next=17,this.openPage(t,!1);case 17:Ge().schedule(0,"pagemanager-processOpenLink");case 18:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"updateBrowserUrl",value:function(e,t){Le.tRoot.$dom=r.J.query("#tgjs-root")?new r.J("#tgjs-root"):new r.J("body"),this.pageCache[document.URL]={link:document.URL,html:Le.tRoot.$dom.innerHTML(),oids:J({},Ue.oids),tmodelIdMap:J({},Ue.tmodelIdMap),visibleOidMap:J({},Le.manager.visibleOidMap),scrollLeft:r.J.getWindowScrollLeft()||0,scrollTop:r.J.getWindowScrollTop()||0,tRoot:Le.tRoot,runSnapshot:Ge().getSnapshot()},t?history.pushState({browserUrl:e},"",e):history.replaceState({browserUrl:e},"",e),Ge().schedule(0,"pagemanager-processUpdateBrowserUrl")}},{key:"back",value:function(){return history.back()}},{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,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.lastCachedLink,r=this.getCachedPage(n);return null==r||null===(t=r.tmodelIdMap)||void 0===t?void 0:t[e]}}],t&&te(e.prototype,t),n&&te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,i,a,l}();function ie(e){return ie="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},ie(e)}function ae(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||le(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 oe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=le(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function le(e,t){if(e){if("string"==typeof e)return se(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t,n){return(t=fe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fe(r.key),r)}}function fe(e){var t=function(e,t){if("object"!=ie(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ie(t)?t:t+""}var ve=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={}}},{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()}},{key:"analyze",value:function(){var e=this,t=ce({},this.visibleOidMap),n=ce({},this.preservedDomMap);this.clearFrameLists();var r,i=[],a=oe(et().hasLocationList);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(t[o.oid]=void 0,n[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(ae(this.lists.updatingTargets),ae(f.updatingTargetList))),(null===(h=f.activeTargetList)||void 0===h?void 0:h.length)>0&&(this.lists.activeTModels.push(o),this.lists.activeTargets=[].concat(ae(this.lists.activeTargets),ae(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]=ce({},v.targetMethodMap),v.targetMethodMap={}),o.isActivated()&&i.push(o)}(l||o.requiresDom())&&o.canHaveDom()&&!o.hasDom()&&o.isIncluded()&&!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(ce(ce({},t),n)).filter((function(e){return void 0!==e})).forEach((function(t){t.hasDom()&&(t.exists()&&t.isIncluded()||e.addToDeletedDom(t))})),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(!e.isVisible()&&o.d.isDefined(e.targets.isVisible))return!1;for(var t=e.parent;t&&t!==$e();){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:"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:"getVisibles",value:function(){return Object.values(this.visibleOidMap)}},{key:"getAvailableDoms",value:function(){return Object.values(ce(ce({},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=oe(this.lists.rerender);try{for(t.s();!(e=t.n()).done;){var n,r,i=e.value;i.isTextOnly()?null===(n=i.$dom)||void 0===n||n.text(i.getHtml()):null===(r=i.$dom)||void 0===r||r.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=[],n=oe(this.lists.reattach);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.hasBaseElementChanged(),a=r.getDomParent();a&&a.$dom&&(a.$dom.removeElement(r.$dom.element),i&&(L.a.createDom(r),L.a.patchDom(r),L.a.initStyleMaps(r),this.needsRestyle(r)&&this.lists.restyle.push(r),this.needsReasyncStyle(r)&&this.lists.reasyncStyle.push(r),t.push(r)),r.getDomHolder()&&r.getDomHolder().appendTModel$Dom(r))}}catch(e){n.e(e)}finally{n.f()}this.activatePendingTargetsAfterDom(t)}},{key:"relocateTModels",value:function(){this.lists.relocation.sort((function(e,t){return t.domOrderIndex-e.domOrderIndex}));var e,t=oe(this.lists.relocation);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=n.getDomParent();r&&r.$dom&&(r.$dom.relocate(n,n.domOrderIndex),n.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=oe(this.lists.deletedDom);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.val("sourceDom")||this.deleteDom(n)}}catch(e){t.e(e)}finally{t.f()}this.lists.deletedDom.length=0}},{key:"deleteDom",value:function(e){e.hasAnimatingTargets()&&A.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=oe(this.lists.restyle);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.hasDom()&&L.a.fixStyle(n)}}catch(e){t.e(e)}finally{t.f()}}},{key:"fixAsyncStyles",value:function(){var e,t=oe(this.lists.reasyncStyle);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.hasDom()&&L.a.fixAsyncStyle(n)}}catch(e){t.e(e)}finally{t.f()}}},{key:"activatePendingTargetsAfterDom",value:function(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).restoredDoneTargets,r=void 0!==n&&n,i=oe(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.hasDom()){if(a.noDomUpdatingTargets){for(var o=0,l=ae(a.noDomUpdatingTargets);o<l.length;o++){var s=l[o];a.addTargetToStatusList(s)}a.noDomUpdatingTargets=void 0}var u=a.pendingTargets;if(u){for(var c=0,d=ae(u);c<d.length;c++){var h=d[c];m.g.cleanupTarget(a,h),m.g.shouldActivateNextTarget(a,h)}a.pendingTargets=void 0}if(r)for(var f=0,v=Object.keys(a.targetValues);f<v.length;f++){var g=v[f];"done"===a.targetValues[g].status&&(a.isTargetInLoop(g)||a.isTargetPassiveLoop(g)||m.g.cleanupTarget(a,g)&&m.g.shouldActivateNextTarget(a,g))}}}}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 n=0,r=ae(e.noDomUpdatingTargets);n<r.length;n++){var i=r[n],a=Je().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=[],n=[];this.lists.noDom.sort((function(e,t){return e.getUIDepth()<t.getUIDepth()?-1:1}));var i,a=oe(this.lists.noDom);try{for(a.s();!(i=a.n()).done;){var o,l=i.value,s=null!==(o=l.domId)&&void 0!==o?o:l.oid;r.J.query("#".concat(s))?(l.$dom=new r.J("#".concat(s)),l.$dom.attr("tgjs","true"),l.hasDomNow=!0,l.markLayoutDirty("hasDomNow"),this.needsRerender(l)&&this.lists.rerender.push(l),this.needsRestyle(l)&&this.lists.restyle.push(l),this.needsReasyncStyle(l)&&this.lists.reasyncStyle.push(l)):n.push(l)}}catch(e){a.e(e)}finally{a.f()}for(var u=0,c=n;u<c.length;u++){var d=c[u],h=d.getDomHolder();if(h)if(d.$dom=void 0,d.val("$dom"))d.$dom=d.val("$dom"),d.hasDom()||h.appendTModel$Dom(d);else{L.a.createDom(d),L.a.patchDom(d),t.push(d);var f=e.get(h);f||(f={domHolder:h,fragment:r.J.createDocumentFragment(),tmodels:[]},e.set(h,f)),f.fragment.appendChild(d.$dom.element),f.tmodels.push(d)}else d.markLayoutDirty("noDomHolder")}var v,g=oe(e.values());try{for(g.s();!(v=g.n()).done;){var y=v.value,p=y.domHolder,m=y.fragment;p.appendElement(m)}}catch(e){g.e(e)}finally{g.f()}var b,T=oe(this.lists.noDom);try{for(T.s();!(b=T.n()).done;){var w=b.value;this.catchupNoDomTargetsBeforeStyle(w)}}catch(e){T.e(e)}finally{T.f()}for(var k=0,S=t;k<S.length;k++){var M=S[k];M.hasDom()&&(M.hasDomNow=!0,M.markLayoutDirty("hasDomNow")),L.a.initStyleMaps(M),L.a.fixStyle(M),L.a.fixAsyncStyle(M)}this.activatePendingTargetsAfterDom(this.lists.noDom),Ke().attachEvents(this.lists.noDom.filter((function(e){var t;return(null===(t=e.externalEventMap)||void 0===t?void 0:t.size)>0})))}}}],t&&he(e.prototype,t),n&&he(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();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 ye(){ye=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(r||[]);return i(o,"_invoke",{value:D(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",y={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(_([])));k&&k!==n&&r.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 n(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)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,n,r){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(r.method=a,r.arg=o;;){var l=r.delegate;if(l){var s=C(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?g:f,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 _(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};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}},M(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new E(c(e,n,r,i),a);return t.isGeneratorFunction(n)?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),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,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 n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.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=r.call(o,"catchLoc"),u=r.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 n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function pe(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function me(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){pe(a,r,i,o,l,"next",e)}function l(e){pe(a,r,i,o,l,"throw",e)}o(void 0)}))}}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Te(r.key),r)}}function Te(e){var t=function(e,t){if("object"!=ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ge(t)?t:t+""}var we,ke,Se,Me=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}return t=e,n=[{key:"resetRuns",value:(a=me(ye().mark((function e(){return ye().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;case 17:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"scheduleOnlyIfEarlier",value:function(e,t){var n,r=(this.runningFlag&&null!==(n=this.runStartTime)&&void 0!==n?n:o.d.now())+(null!=e?e:0);this.delayProcess&&r>=this.delayProcess.runTime||this.schedule(e,t)}},{key:"schedule",value:function(e,t){if(Le.isRunning()&&!this.resetting){var n=0===Le.throttle?null!=e?e:0:Le.throttle,r=o.d.now();this.delayRun(n,t,r)}}},{key:"run",value:(i=me(ye().mark((function e(t,n){var r;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Le.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(n)),e.abrupt("return");case 5:if(this.rerunId="",this.runId=n,this.runningFlag=!0,this.runStartTime=o.d.now(),r=!1,e.prev=10,0!==this.phase){e.next=17;break}return Ke().captureEvents(),Le.targetManager.applyTargetValues($e()),e.next=16,et().calculateAll();case 16:this.phase=1;case 17:if(!(o.d.now()-this.runStartTime>20)){e.next=21;break}return r=!0,this.requestNextSlice(n),e.abrupt("return");case 21:if(1===this.phase&&(this.runningStep=Le.manager.analyze(),this.phase=2),!(o.d.now()-this.runStartTime>20)){e.next=26;break}return r=!0,this.requestNextSlice(n),e.abrupt("return");case 26:if(2===this.phase&&(et().calculateActivated(),Le.events.resetEventsOnTimeout(),this.phase=3),!(o.d.now()-this.runStartTime>20)){e.next=31;break}return r=!0,this.requestNextSlice(n),e.abrupt("return");case 31:3===this.phase&&(this.runningStep>=0&&(0===this.domProcessing?(r=!0,this.domOperations(this.runningStep)):this.rerunId||(this.rerunId="domrun ".concat(n))),this.phase=4),this.runDuration=o.d.now()-this.runStartTime,0===this.domProcessing&&this.needsRerun(),e.next=40;break;case 36:throw e.prev=36,e.t0=e.catch(10),this.phase=0,e.t0;case 40:return e.prev=40,r||0!==this.domProcessing||(this.runningFlag=!1),e.finish(40);case 43:case"end":return e.stop()}}),e,this,[[10,36,40,43]])}))),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(){if(this.phase=0,this.runningFlag=!1,this.rerunId){var e=this.rerunId;this.rerunId="",this.schedule(0,"rerun-".concat(e))}else if(Ke().eventQueue.length>0)this.schedule(0,"events-".concat(Ke().eventQueue.length));else if(void 0===(this.nextRuns.length>0?this.nextRuns[0].delay-(o.d.now()-this.nextRuns[0].insertTime):void 0)||Qe().lists.activeTModels.length>0||Qe().lists.updatingTModels.length>0||Qe().lists.restyle.length>0||Qe().lists.reasyncStyle.length>0||Ke().eventQueue.length>0||et().activatedList.length>0)if(Qe().lists.updatingTModels.length>0)this.schedule(1,"getManager-needsRerun-updatingTModels");else if(Qe().lists.activeTModels.length>0){var t=Qe().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(t){var n=!this.activeStartTime||o.d.now()-this.activeStartTime>15?1:15;this.activeStartTime=o.d.now(),this.schedule(n,"getManager-needsRerun-".concat(t.oid,"-").concat(t.activeTargetList))}}this.executeNextRun()}},{key:"domOperations",value:function(t){var n=this;this.domProcessing=1,10!==t?Promise.all(e.domSteps.filter((function(e,n){return n>=t})).map((function(e){return Promise.resolve().then(e)}))).then((function(){Qe().lists.restyle.length?n.domFixStyles():(n.domProcessing=0,n.needsRerun())})).catch((function(){n.domProcessing=0,n.needsRerun()})):this.domFixStyles()}},{key:"domFixStyles",value:function(){var e=this;this.domProcessing=2,requestAnimationFrame((function(){try{Qe().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,n,r,i){var a=this,o={runId:e,insertTime:t,runTime:r,interval:n,delay:i,timeoutId:void 0},l=function(){var t=me(ye().mark((function t(){return ye().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 n=null;this.nextRuns.length>0;){var r=this.nextRuns.shift(),i=o.d.now();if(!(r.delay-(i-r.insertTime)<=0)){this.nextRuns.unshift(r);break}n=r}if(n)this.setDelayProcess(n.runId,n.insertTime,n.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,n){var r=n+e;this.delayProcess?this.delayProcess.timeoutId&&r<this.delayProcess.runTime?(clearTimeout(this.delayProcess.timeoutId),this.insertRun(this.delayProcess.runId,this.delayProcess.insertTime,this.delayProcess.interval),this.setDelayProcess(t,n,e,r,e)):this.insertRun(t,n,e):this.setDelayProcess(t,n,e,r,e)}},{key:"insertRun",value:function(e,t,n){for(var r=0,i=this.nextRuns.length;r<i;){var a,o=r+i>>1,l=this.nextRuns[o],s=l.insertTime+l.delay-(t+n);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:r=o+1}this.nextRuns.splice(r,0,{runId:e,insertTime:t,delay:n})}},{key:"getSnapshot",value:function(){var e=o.d.now(),t=[],n=function(n){if(n){var r=o.d.isDefined(n.runTime)?n.runTime:n.insertTime+n.delay;t.push({runId:n.runId,delay:Math.max(0,r-e)})}};n(this.delayProcess),this.nextRuns.forEach(n);var r=t.filter((function(e){return 0===e.delay})),i=t.filter((function(e){return e.delay>0})),a=[];return r.length&&a.push({runId:r.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))}))}}],n&&be(t.prototype,n),r&&be(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r,i,a}();function Ee(e){return Ee="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},Ee(e)}function De(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oe(r.key),r)}}function Oe(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:t+""}we=Me,Se=[function(){return Qe().createDoms()},function(){return Qe().reattachTModels()},function(){return Qe().relocateTModels()},function(){return Qe().renderTModels()},function(){return Qe().fixAsyncStyles()},function(){return Qe().deleteDoms()}],(ke=Te(ke="domSteps"))in we?Object.defineProperty(we,ke,{value:Se,enumerable:!0,configurable:!0,writable:!0}):we[ke]=Se;var Le,_e=function(){return function(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),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,n=De(arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.activeTargetList.slice(0));try{for(n.s();!(t=n.n()).done;){var r=t.value;e.isTargetImperative(r)||this.applyTargetValue(e,r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"applyTargetValue",value:function(e,t){var n=e.targets[t];if(o.d.isDefined(n)){if(!(_.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 r=_.O.scheduleExecution(e,t);if(r>0)return void Ge().schedule(r,"targetSchedule__".concat(e.oid))}e.isTargetEnabled(t)?(e.resetScheduleTimeStamp(t),s.j.prepareTarget(e,t),s.j.executeDeclarativeTarget(e,t),o.d.isDefined(n.fetchAction)||m.g.shouldActivateNextTarget(e,t)):n.needsReactivation&&e.removeFromActiveTargets(t)}}else e.removeFromActiveTargets(t)}},{key:"setActualValues",value:function(e,t){if(t.length){var n,r=0,i=De(t=t.slice(0));try{for(i.s();!(n=i.n()).done;){var a=n.value;_.O.shouldPauseTarget(e,a)||((r=_.O.scheduleExecution(e,a))>0?Ge().schedule(r,"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()?(Ze().animate(e,o,A.T.getAnimationHooks()),e.waapiBatch=void 0):e.waapiBatch=void 0}}},{key:"findOriginalTModel",value:function(e,t){return a.X.findParentByTarget(e,t)||rt().find((function(e){return e.targets[t]}))}},{key:"fireOnStep",value:function(e,t,n){var r=e.targetValues[t],i=e.getTargetValue(t),a=e.getTargetSteps(t),l=e.targets[t];e.setLastUpdate(t),e.setTargetMethodName(t,"value");var s=r.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,n,a),c.setTargetMethodName(s,["on".concat(h,"Step")]),d=!0):"function"==typeof u.onImperativeStep&&(u.onImperativeStep.call(c,t,c.val(t),i,n,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 n=e.targetValues[t];if(n){var r=e.getTargetValue(t),i=e.getTargetSteps(t);e.setLastUpdate(t);var a=n.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),r,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 n.valuePointer)}else{var h;e.getTargetCycle(t)<e.getTargetCycles(t)-1&&(e.incrementTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t),e.resetTargetExecutionFlag(t),delete n.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 n=e.targetValues[t];if(n){var r=e.getValueListPointer(t),i=e.getTargetCycle(t),a=e.getTargetCycles(t);return Array.isArray(n.valueList)&&r<n.valueList.length||e.isTargetImperative(t)&&i<a-1?"updating":e.isTargetInLoop(t)||i<a-1?"active":"done"}}},{key:"catchupTargetByElapsed",value:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fireEnd,r=void 0!==n&&n,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,g,y=null!==(f=i.valueList)&&void 0!==f&&f.length?i.valueList[i.valueList.length-1]:c;return e.val(t,y),e.setActual(t,y),e.addToStyleTargetList(t),i.step=d,i.valuePointer=null!==(v=null===(g=i.valueList)||void 0===g?void 0:g.length)&&void 0!==v?v:s,i.value=y,i.cycle=h,delete i.catchupAt,r&&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?L.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 n,r,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)Ge().scheduleOnlyIfEarlier(1,"".concat(e.oid,"---").concat(t,"-catchup-finished"));else{var s=null!==(n=l.step)&&void 0!==n?n:0,u=null!==(r=l.valuePointer)&&void 0!==r?r: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))||(Ge().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,n){return o.d.isDefined(e.val(t))?e.val(t):"number"==typeof n?0:void 0}},{key:"animateActualValue",value:function(e,t,n,r,i,a){if(e.hasDom())for(var o=i>0?L.a.easingMorph(e,t,r.initialValue,r.theValue,i,r.steps):r.initialValue,l=e.isTargetImperative(t)?e.getTargetCycles(t):0,s=A.T.handleWebAnimationAPI(e,r.cleanKey,t,n,o,r.theValue,a,i,r.steps,r.interval,0,!1,!0),u=1;u<l;u++)A.T.handleWebAnimationAPI(e,r.cleanKey,t,n,o,r.theValue,a,i,r.steps,r.interval,u*s,!0,!1)}},{key:"updateActualValue",value:function(e,t,n,r,i,a){if(i<=r.steps){e.incrementTargetStep(t,r.now,r.lastUpdateTime,r.interval,r.steps);var o=L.a.easingMorph(e,t,r.initialValue,r.theValue,i,r.steps);if(e.val(t,o),e.setActual(t,o),e.addToStyleTargetList(t),this.fireOnStep(e,t,i),e.getTargetStep(t)<r.steps)return void Ge().scheduleOnlyIfEarlier(r.interval,"".concat(e.oid,"---").concat(t,"-").concat(i,"/").concat(r.steps,"-").concat(r.cycle,"-").concat(r.interval))}this.finishCurrentSegment(e,t,n,r,a)}},{key:"finishCurrentSegment",value:function(e,t,n,r,i){e.val(t,r.theValue),e.setActual(t,r.theValue),e.addToStyleTargetList(t),n.step=r.steps,e.setLastUpdate(t);var a=1;if(n.valueList&&i<n.valueList.length){e.incrementValueListPointer(t);var o=e.getValueListPointer(t);e.resetTargetStep(t),n.initialValue=n.value,n.value=n.valueList[o],n.steps=n.stepList[(o-1)%n.stepList.length],n.interval=Array.isArray(n.intervalList)?n.intervalList[(o-1)%n.intervalList.length]:0,n.easing=n.easingList[(o-1)%n.easingList.length],a=r.interval}else this.fireOnEnd(e,t);Ge().scheduleOnlyIfEarlier(a,"".concat(e.oid,"---").concat(t,"-").concat(r.steps,"/").concat(r.steps,"-").concat(r.cycle,"-").concat(a))}}])}(),Ae=n(357);function Pe(e){return Pe="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},Pe(e)}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||Ve(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 Ie(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ve(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function Ve(e,t){if(e){if("string"==typeof e)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fe(){Fe=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(r||[]);return i(o,"_invoke",{value:D(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",y={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(_([])));k&&k!==n&&r.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 n(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"==Pe(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,n,r){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(r.method=a,r.arg=o;;){var l=r.delegate;if(l){var s=C(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?g:f,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 _(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Pe(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,n,r,i,a){void 0===a&&(a=Promise);var o=new E(c(e,n,r,i),a);return t.isGeneratorFunction(n)?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),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,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 n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.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=r.call(o,"catchLoc"),u=r.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 n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function He(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function Be(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){He(a,r,i,o,l,"next",e)}function l(e){He(a,r,i,o,l,"throw",e)}o(void 0)}))}}var Re=[],Ue=function(e){var t;if(e){var n,r=e instanceof i.c?e:new i.c("App",e);return null!==(t=Le)&&void 0!==t&&t.tRoot?(Le.tRoot.addChild(r),r):"loading"===document.readyState?(Re.push(r),r):(null!==(n=Le)&&void 0!==n&&n.tRoot||"loading"===document.readyState||lt(),Le.tRoot.addChild(r),r)}};Ue.unmount=Be(Fe().mark((function e(){var t;return Fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Le){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Le.stop();case 4:return t=Le.tRoot,t.getChildren().forEach((function(e){var n,r;e.val("sourceDom")?q.v.restoreDomState(null===(r=e.$dom)||void 0===r?void 0:r.element,e.domState):null!==(n=e.$dom)&&void 0!==n&&n.attr("tgjs")&&t.$dom.removeElement(e.$dom.element)})),t.allChildrenList=[],t.allChildrenMap={},t.clearUpdatingChildren(),t.clearActiveChildren(),t.clearAnimatingChildren(),e.next=14,Le.reset();case 14:Ue.oids={},Ue.tmodelIdMap={},Le=void 0;case 17:case"end":return e.stop()}}),e)}))),Ue.oids={},Ue.tmodelIdMap={},Ue.getOid=function(e){var t=Ue.oids;o.d.isDefined(t[e])||(t[e]=0);var n=t[e]++;return{oid:n>0||e.endsWith("_")?"".concat(e).concat(n):e,num:n}};var We=function(){return!!Le&&Le.runningFlag},$e=function(){var e;return null===(e=Le)||void 0===e?void 0:e.tRoot},Ke=function(){var e;return null===(e=Le)||void 0===e?void 0:e.events},Xe=function(){var e;return null===(e=Le)||void 0===e?void 0:e.pager},qe=function(){var e;return null===(e=Le)||void 0===e?void 0:e.loader},Ye=function(e,t,n,r){var i;return null===(i=Le)||void 0===i||null===(i=i.loader)||void 0===i?void 0:i.fetch(e,t,n,r)},ze=function(e,t,n){var r;return null===(r=Le)||void 0===r||null===(r=r.loader)||void 0===r?void 0:r.fetchImage(e,t,n)},Qe=function(){var e;return null===(e=Le)||void 0===e?void 0:e.manager},Je=function(){var e;return null===(e=Le)||void 0===e?void 0:e.targetManager},Ze=function(){var e;return null===(e=Le)||void 0===e?void 0:e.animationManager},Ge=function(){var e;return null===(e=Le)||void 0===e?void 0:e.runScheduler},et=function(){var e;return null===(e=Le)||void 0===e?void 0:e.locationManager},tt=function(){var e,t;return null!==(e=null===(t=Le)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenWidth"))&&void 0!==e?e:0},nt=function(){var e,t;return null!==(e=null===(t=Le)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenHeight"))&&void 0!==e?e:0},rt=function(){var e;return null===(e=Le)||void 0===e||null===(e=e.manager)||void 0===e?void 0:e.getVisibles()},it=function(){var e;return null===(e=Le)||void 0===e?void 0:e.resizeLastUpdate},at=function(e){return Ue.tmodelIdMap[e]},ot=function(e){var t=Ue.tmodelIdMap[e];return t&&t.targets.sourceDom?t:void 0};"undefined"!=typeof window&&(window.t=window.t||at);var lt=function(){var e;Le||(e={throttle:0,debugLevel:0,runningFlag:!1,resizeLastUpdate:0,init:function(){return e.$window=new r.J(window),e.loader=new x,e.pager=new re,e.events=new p,e.locationManager=new X,e.targetManager=new _e,e.animationManager=new Ae._,e.manager=new ve,e.runScheduler=new Me,e.tRootFactory=function(){var t=new i.c("tRoot",{styling:!1,domHolder:!0,isVisible:!0,screenWidth:function(){var n=r.J.getScreenWidth();return n!==t.val("screenWidth")&&(e.resizeLastUpdate=o.d.now()),n},screenHeight:function(){var n=r.J.getScreenHeight();return n!==t.val("screenHeight")&&(e.resizeLastUpdate=o.d.now()),n},initPageDom:function(){var e=this;q.v.initPageDoms(this.$dom),Re.length&&(Re.forEach((function(t){return e.addChild(t)})),Re.length=0)}});return t.$dom=r.J.query("#tgjs-root")?new r.J("#tgjs-root"):new r.J("body"),"body"!==t.$dom.getTagName()&&t.$dom.attr("data-tjno-slot","true"),t.val("screenWidth",r.J.getScreenWidth()),t.val("screenHeight",r.J.getScreenHeight()),e.tRoot&&e.tRoot.getChildren().forEach((function(e){if(!e.val("sourceDom")){var n=new i.c(e.type,e.targets);t.addChild(n)}})),t},e.tRoot=e.tRootFactory(),e}},e.start=Be(Fe().mark((function t(){return Fe().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=Be(Fe().mark((function t(){return Fe().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=Be(Fe().mark((function t(){return Fe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.manager.getVisibles().forEach((function(e){var t;if(e.tfMap={},e.styleMap={},null!==(t=e.allStyleTargetMap)&&void 0!==t&&t.size){var n,r=Ie(e.allStyleTargetMap);try{for(r.s();!(n=r.n()).done;){var i=je(n.value,1)[0];o.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){r.e(e)}finally{r.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)},(Le=e).init().start())};"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",lt):lt())},966:function(e,t,n){n.d(t,{d:function(){return h}});var r=n(90),i=n(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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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,n){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,n||[],c(e).constructor):t.apply(e,n))}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 n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,t,["BI"])).parent=e,n.currentBrakcetStatus=2,n}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),n=t,(r=[{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:"getRightMargin",value:function(){return 0}},{key:"getBottomMargin",value:function(){return 0}},{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.currentBrakcetStatus>=1||this.isNowVisible||this.isNowInvisible?(this.currentBrakcetStatus=Math.max(0,this.currentBrakcetStatus-1),!0):(e&&(this.currentBrakcetStatus=Math.min(2,this.currentBrakcetStatus+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(n.prototype,r),a&&o(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(r.c)},714:function(e,t,n){n.d(t,{M:function(){return f}});var r=n(966),i=n(705);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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function d(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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 n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!e.bracketMap[t.oid]||e.pageMap[t.oid]!==t.allChildrenList||n?(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,n){function i(n,a){if(n)if(a instanceof r.d&&a.parent===a.realParent){var o=e.bracketMap[t.oid],l=o.indexOf(a);l>=0&&o.splice(l,1)}else{var s=n.allChildrenList.indexOf(a);s>=0&&(n.allChildrenList.splice(s,1),e.markBracketDirty(n),0===n.allChildrenList.length&&i(n.parent,n))}}n.forEach((function(e){return i(e.bracket,e)}))}},{key:"reindexTree",value:function(t){function n(e,t){if(0===e.allChildrenList.length)return t;if(e.allChildrenList[0]instanceof r.d){e.startIndex=t;var i,a=l(e.allChildrenList);try{for(a.s();!(i=a.n()).done;)t=n(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=n(i.value,a)}catch(e){o.e(e)}finally{o.f()}}},{key:"updateTreeOnAdditions",value:function(t,n){var i=t.getBracketSize();n.forEach((function(n){var a=n.index,o=n.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.currentBrakcetStatus=2,u.markLayoutDirty("update"),u=l.getParent();u instanceof r.d;)u.startIndex=Math.min(u.startIndex,a),u.endIndex=Math.max(u.endIndex,a+1),u.currentBrakcetStatus=2,u.markLayoutDirty("update"),u=u.getParent();l.allChildrenList.length>i&&e.splitBracket(t,l)}))}},{key:"splitBracket",value:function(t,n){for(var i=n.allChildrenList,a=t.getBracketSize(),l=[],s=n.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=n.parent,s=h.endIndex,l.push(h)}if(n.parent!==n.realParent){var f,v=n.parent.allChildrenList.indexOf(n);if(v>=0&&(f=n.parent.allChildrenList).splice.apply(f,[v,1].concat(l)),e.markBracketDirty(n),n.parent.allChildrenList.length>=a){var g=e.buildTreeBottomUp(t,n.parent.allChildrenList);if(n.parent.allChildrenList=g,n.parent.allChildrenList.forEach((function(t){t.parent=n.parent,e.markBracketDirty(t)})),n.parent.parent){var y,p=n.parent.parent.allChildrenList.indexOf(n.parent);p>=0&&((y=n.parent.parent.allChildrenList).splice.apply(y,[p,1].concat(o(g))),n.parent.parent.allChildrenList.forEach((function(e){e.parent=n.parent.parent})))}}}else{var m=e.bracketMap[t.oid],b=m.indexOf(n);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 r.d&&e.markBracketDirty(l[0].parent)}},{key:"findOrCreateBracket",value:function(t,n){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<=n&&s.endIndex>=n)return s.getFirstChild()instanceof r.d?e.findOrCreateBracket(t,n,s.allChildrenList):s}}catch(e){o.e(e)}finally{o.f()}var u=e.createBracket(t,n,n);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,n){for(var i=n.length,a=t.getBracketSize(),o=[],l=0;l<i;l+=a){var s=n.slice(l,l+a),u=s[0]instanceof r.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,n,a,o){var l=new r.d(t);return i.qw.tmodelIdMap[l.oid]=l,l.realParent=t,l.allChildrenList=o||l.allChildrenList,l.startIndex=n,l.endIndex=a,l.allChildrenList.forEach((function(e){e instanceof r.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.currentBrakcetStatus=2,t.markLayoutDirty("update"),t=t.parent}}],(n=null)&&c(t.prototype,n),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,a}();d(f,"bracketMap",{}),d(f,"pageMap",{}),d(f,"all",{})},737:function(e,t,n){function r(e){return r="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},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.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,r=[{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 n=parseInt(t,16);return[n>>16&255,n>>8&255,255&n]}var r=t.match(/\d+/g);return r&&3===r.length?r.map(Number):void 0}}}],(n=null)&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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__(705),_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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),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 n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_typeof(r))return r;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]");e.forEach((function(e){e.$dom=null}));var n,r=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.list2map(e.filter((function(e){return"BI"!==e.type}))),i=[],a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n()).done;){var o=n.value,l=o.getAttribute("id"),s=r[l];s?s.$dom=new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J("#".concat(l)):(s=(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.iP)(l))?(i.push(s),s.$dom=new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J("#".concat(l))):_$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 n=DomInit.normalizeElementTarget(t);if(n){var r;null!==(r=e.$dom)&&void 0!==r&&r.exists()&&(e.domState?DomInit.restoreDomState(e.$dom.element,e.domState):e.$dom.detach()),e.domState=DomInit.snapshotDomState(n.element),e.targets.$dom=n,e.val("$dom",n);var i=n.getTagName().toLowerCase(),a={};e.val("element")!==i&&(a.element=i),a.position=n.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=n.getId();if(o&&o!==e.oid)e.domId=o;else if(!o){var l="tgjs-".concat(e.oid);n.ensureId(l),e.domId=l}n.attr("tgjs-oid",e.oid),n.attr("tgjs","true"),e.$dom=void 0}}}},{key:"initPageDoms",value:function(e){var t,n=new Map,r=_createForOfIteratorHelper(e.queryAll("*"));try{for(r.s();!(t=r.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 y=i.parentElement,p=n.get(y),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]},n.set(i,a)}else a&&n.set(i,a)}}catch(e){r.e(e)}finally{r.f()}var T,w=[],k=_createForOfIteratorHelper(n.values());try{for(k.s();!(T=k.n()).done;){var S=T.value,M=S.$dom.element.parentElement,E=n.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,n=e.tmodel;t.exists()&&!n.hasChildren()&&(t.detach(),n.val("requiresDom",!1))}))}},{key:"getChildrenKey",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];if(r.toLowerCase().includes("children"))return r}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={},n=0,r=Array.from(e.attributes);n<r.length;n++){var i=r[n],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 n=t.attrs,r=t.styleAttr,i=0,a=Array.from(e.attributes);i<a.length;i++){var o=a[i].name;o in n||e.removeAttribute(o)}for(var l=0,s=Object.entries(n);l<s.length;l++){var u=_slicedToArray(s[l],2),c=u[0],d=u[1];e.getAttribute(c)!==d&&e.setAttribute(c,d)}r?e.setAttribute("style",r):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,n){var r;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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function o(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}n.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,r=[{key:"easingFunction",value:function(t){return t&&e.easeMap.get(t)||u}},{key:"cubicBezier",value:function(e,t,n,r){var i=function(e,t,n){var r=3*t,i=3*(n-t)-r;return(((1-r-i)*e+i)*e+r)*e},a=function(e,t,n){var r=3*t,i=3*(n-t)-r;return(3*(1-r-i)*e+2*i)*e+r};return function(o){var l=function(t){for(var r=t,o=0;o<8;o++){var l=i(r,e,n)-t;if(Math.abs(l)<1e-6)return r;var s=a(r,e,n);if(Math.abs(s)<1e-6)break;(r-=l/s)<0?r=0:r>1&&(r=1)}for(var u=0,c=1,d=0,h=0;h<20;h++){var f=i(d=(u+c)/2,e,n);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,r)}}}],(n=null)&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function u(e){return e}r=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={_:r.cubicBezier(.25,.1,.25,1)},d={_:r.cubicBezier(.42,0,1,1)},h={_:r.cubicBezier(0,0,.58,1)},f={_:r.cubicBezier(.42,0,.58,1)};o(s,"easeMap",new Map([[r.LINEAR,u],[r.EASE,c._],[r.EASE_IN,d._],[r.EASE_OUT,h._],[r.EASE_IN_OUT,f._],[r.STEP_START,function(e){return e<=0?0:1}],[r.STEP_END,function(e){return e<1?0:1}]]))},161:function(e,t,n){n.d(t,{O:function(){return h}});var r=n(34),i=n(705);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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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 n=e.getTargetInterval(t),i=r.d.now();if(n<=0)return 0;if(e.isTargetImperative(t)&&0===e.getTargetStep(t))return e.setScheduleTimeStamp(t,i),0;var a=e.getScheduleRemainingTime(t);if(r.d.isDefined(a))return e.setScheduleTimeStamp(t,i-Math.max(n-a,0)),e.resetScheduleRemainingTime(t),a;var o=e.getScheduleTimeStamp(t);if(r.d.isDefined(o)){var l=i-o;return Math.max(n-l,0)}return e.setScheduleTimeStamp(t,i),n}},{key:"getSchedulingKeys",value:function(e){for(var t=[],n=0,i=Object.entries(e.targetValues);n<i.length;n++){var a=l(i[n],2),o=a[0],s=a[1];(r.d.isDefined(s.scheduleTimeStamp)||r.d.isDefined(s.scheduleRemainingTime))&&t.push(o)}return t}},{key:"pauseResumeSchedule",value:function(t){var n,a;if("BI"!==t.type){var l=e.getSchedulingKeys(t);if(l.length||t.animatingMap){var u=new Set(null!==(n=null===(a=t.animatingMap)||void 0===a?void 0:a.keys())&&void 0!==n?n:[]),c=new Set([].concat(o(l),o(u)));if(c.size){var d,h=new Set,f=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.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;r.d.isDefined(t.getScheduleTimeStamp(v))&&e.pauseSchedule(t,v),null!==(g=t.animatingMap)&&void 0!==g&&g.has(v)&&h.add(v)}else{var y=t.getScheduleRemainingTime(v);if(r.d.isDefined(y))e.resumeSchedule(t,v),t.addTargetToStatusList(v),(0,i.fB)().scheduleOnlyIfEarlier(y,"resume-".concat(t.oid,"-").concat(v));else if(r.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 n=e.getTargetInterval(t),i=e.getScheduleTimeStamp(t);if(!(n<=0)&&r.d.isDefined(i)){var a=r.d.now()-i,o=Math.max(n-a,0);e.setScheduleRemainingTime(t,o),e.resetScheduleTimeStamp(t)}}},{key:"resumeSchedule",value:function(e,t){var n=e.getScheduleRemainingTime(t);if(r.d.isDefined(n)){var i=r.d.now(),a=e.getTargetInterval(t);e.setScheduleTimeStamp(t,i-Math.max(a-n,0)),e.resetScheduleRemainingTime(t)}}},{key:"shouldPauseTarget",value:function(e,t){if(!e.isExecuted(t))return!1;var n=e.isTargetImperative(t)?e.targetValues[t]:e.targets[t],r=null==n?void 0:n.pauseOn;return!(void 0===r||!1===r||!0!==r&&("function"==typeof r?!r.call(e,t):"hidden"===r?e.isVisible():"noDom"!==r||e.hasDom()))}}],(n=null)&&c(t.prototype,n),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,a}()},756:function(e,t,n){n.d(t,{X:function(){return d}});var r=n(34),i=n(705);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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function u(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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,n,r){if(t){var i="".concat(t.oid," ").concat(n," ").concat(r);if(e.foundHandler[i])return e.foundHandler[i];var a=this.findScrollHandler(t,r,n);return a&&(e.foundHandler[i]=a),a}}},{key:"findFirstHandler",value:function(t,n){if(t){var r="".concat(t.oid," ").concat(n);if(e.foundHandler[r])return e.foundHandler[r];var i=this.findEventHandler(t,n);return i&&(e.foundHandler[r]=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:"findFirstClickHandler",value:function(e){return this.findFirstHandler(e,"onClick")||this.findFirstHandler(e,"onAnyClick")}},{key:"findScrollHandler",value:function(e,t,n){for(;e&&(!e.canHandleEvent("onSwipe")||"wheel"===t);){if(e.canHandleEvent(n)||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,n){var i="".concat(t.oid,"__").concat(n);if(!r.d.isDefined(e.foundParentWithType[i]))for(var a=t.getParent();a;){if(a.type===n){e.foundParentWithType[i]=a;break}a=a.getParent()}return e.foundParentWithType[i]}},{key:"findParentByTarget",value:function(t,n,i){var a="".concat(t.oid,"__").concat(n);if(!r.d.isDefined(e.foundParentWithTarget[a]))for(var o=t.getParent();o;){if(r.d.isDefined(o.targets[n])||r.d.isDefined(o.targetValues[n])){if(!r.d.isDefined(i)){e.foundParentWithTarget[a]=o;break}if(o.getTargetValue(n)===i){e.foundParentWithTarget[a]=o;break}}o=o.getParent()}return e.foundParentWithTarget[a]}},{key:"findByType",value:function(t){if(!r.d.isDefined(e.foundTypeMap[t])){var n=function(e){if(e.type===t)return e;var r,i=o(e.getChildren());try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a&&a.hasChildren()){var l=n(a);if(l)return l}else if(a&&a.type===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=n((0,i.Bt)());a&&(e.foundTypeMap[t]=a)}return e.foundTypeMap[t]}},{key:"findByTarget",value:function(t){if(!r.d.isDefined(e.foundTargetMap[t])){var n=function(e){if(e.targets[t])return e;var r,i=o(e.getChildren());try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a&&a.hasChildren()){var l=n(a);if(l)return l}else if(a&&a.targets[t])return a}}catch(e){i.e(e)}finally{i.f()}},a=n((0,i.Bt)());a&&(e.foundTargetMap[t]=a)}return e.foundTargetMap[t]}},{key:"find",value:function(t){if(!r.d.isDefined(e.foundOids[t])){var n=function(e){if(e.oid===t)return e;var r,i=o(e.getChildren());try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a&&a.hasChildren()){var l=n(a);if(l)return l}else if(a&&a.oid===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=n((0,i.Bt)());a&&(e.foundOids[t]=a)}return e.foundOids[t]}}],(n=null)&&s(t.prototype,n),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,a}();u(d,"foundParentWithType",{}),u(d,"foundParentWithTarget",{}),u(d,"foundTypeMap",{}),u(d,"foundTargetMap",{}),u(d,"foundOids",{}),u(d,"foundHandler",{})},90:function(e,t,n){n.d(t,{c:function(){return P}});var r=n(705),i=n(484),a=n(34),o=n(690),l=n(333),s=n(585),u=n(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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}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 y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;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,n,i){var o;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===n&&(n=t,t=""),this.targets=Object.assign({},n),i=i||this.targets.id,a.d.isDefined(i))r.qw.getOid(i),this.type=i,this.oid=i,this.oidNum=0;else{this.type=this.targets.otype||t||"blank";var l=r.qw.getOid(this.type);this.oid=l.oid,this.oidNum=l.num}null!==(o=n)&&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={},a.d.isDefined(this.originalId)&&(0,r.UR)(this.originalId))return a.d.mergeTargets((0,r.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=u.J.query("#".concat(this.oid))||this.originalTargetNames.indexOf("$dom")>=0;t||this.excludeDefaultStyling()?t&&(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 n=h(t,2),r=n[0],i=n[1];r in e.targets||(e.targets[r]=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,n){e.processNewTarget(t,n)}))}},{key:"processNewTarget",value:function(e,t){this.targetsVersion++;var n=l.g.getTargetName(e),r=this.targets[e];if(a.d.isDefined(r)){"passive"!==r.loop&&"function"!=typeof r.loop||this.passiveTargetMap[e]||(this.passiveTargetMap[e]=!0,this.passiveTargetList.push(e));var i=g(r),u=e.startsWith("_")||e.endsWith("$"),c=s.u.mustExecuteTargets[n]||u||"string"!==i&&"number"!==i&&"boolean"!==i,d=!!s.u.allEventMap[n],h=!!s.u.internalEventMap[n];if(("object"!==i||Array.isArray(r))&&c&&(r=l.g.wrapTarget(this,r,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(r.value)||o.D.isChildObjectTarget(e,r)||o.D.isIntervalTarget(r)||(c=!0,r=l.g.wrapTarget(this,r,e)),l.g.bindTarget(this,e,f,v,t))}if(e.startsWith("_")){var y=e.slice(1);this.targets[e]&&(this.targets[y]=this.targets[e]),delete this.targets[e],e=y,r=this.targets[y]}if(d&&(this.externalEventMap||(this.externalEventMap=new Map),this.externalEventMap.set(n,!0),r.active=!1),h&&(this.internalEventMap||(this.internalEventMap=new Map),this.internalEventMap.set(n,!0),r.active=!1),this.allTargetMap[n]=e,u&&(this.targets[e].active=!1),!s.u.bypassInitialProcessingTargetMap[n]){if(a.d.isDefined(r.initialValue)&&this.val(e,r.initialValue),(!1!==r.active||a.d.isDefined(r.initialValue))&&this.addToStyleTargetList(e),o.D.isIntervalTarget(r))r.cycles=2,r.isInterval=!0;else if(!c){var p;return void this.val(n,a.d.isDefined(null===(p=r)||void 0===p?void 0:p.value)?r.value:r)}!1!==r.active&&this.canTargetBeActivated(e)&&this.addToActiveTargets(e),this.functionTargetNames.push(e)}}else this.delVal(e)}},{key:"activate",value:function(e){(0,r.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 n;if(e=l.g.getTargetName(e),t||!this.excludeStyling()&&!this.targets["exclude".concat(a.d.capitalizeFirstLetter(e))]){var r,i=s.u.asyncStyleTargetMap[e],o=s.u.attributeTargetMap[e];if(i||o)null!==(r=this.asyncStyleTargetMap)&&void 0!==r&&r.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!==(n=this.allStyleTargetMap)&&void 0!==n&&n.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.targets[e],this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),delete this.targetValues[e]}},{key:"addTarget",value:function(e,t){var n,r,i;this.addTargets((n={},i=t,(r=p(r=e))in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n))}},{key:"addTargets",value:function(e){var t,n=this;Object.keys(e).forEach((function(t){n.targets[t]=e[t],n.removeFromUpdatingTargets(t),n.originalTargetNames.includes(t)||n.originalTargetNames.push(t);var r=n.originalTargetNames.indexOf(t);n.processNewTarget(t,r)})),this.hasDom()&&(0,r.kQ)().attachEvents([this]),null===(t=(0,r.fB)())||void 0===t||t.schedule(1,"addTargets-"+this.oid)}},{key:"getTargetStepPercent",value:function(e,t,n){return t=a.d.isDefined(t)?t:this.getTargetStep(e),n?t/n: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 n;if("fetching"===t.status)return this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),void(null===(n=this.getParent())||void 0===n||n.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 n=this.targetValues[e];if(n){var r=n.status;"done"!==t||"done"===r||"complete"===r||n.resetFlag||(n.completeCount++,n.completeTime=a.d.now()),n.resetFlag=!1,n.status=t,this.addTargetToStatusList(e)}}},{key:"getTargetStatus",value:function(e){var t,n;return null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.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,n=this.targetValues[e]||this.targets[e];if(n){var r=null!==(t=n.value)&&void 0!==t?t:n;return"function"==typeof r?r.call(this):r}}},{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 n=this.getScheduleTimeStamp(e),r=this.getTargetInterval(e);return a.d.isDefined(n)&&n+r>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 n=this.targetValues[e];n&&(n.scheduleRemainingTime=t)}},{key:"resetScheduleRemainingTime",value:function(e){var t=this.targetValues[e];t&&(t.scheduleRemainingTime=void 0)}},{key:"setScheduleTimeStamp",value:function(e,t){var n=this.targetValues[e];n&&(n.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 n,r=o.D.getValueStepsCycles(this,e)[0],i=this.getTargetValue(e);return!a.d.areEqual(r,i,null!==(n=t.deepEquality)&&void 0!==n&&n)}return!0}},{key:"activateChangedPassiveTargets",value:function(){var e;if(null===(e=this.passiveTargetList)||void 0===e||!e.length)return!1;var t,n=!1,r=d(this.passiveTargetList);try{for(r.s();!(t=r.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),n=!0))}}catch(e){r.e(e)}finally{r.f()}return n}},{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,n,r,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!==(n=this.getLastUpdate("dim"))&&void 0!==n?n:0,null!==(r=this.domHeightTimestamp)&&void 0!==r?r:0,null!==(i=this.domWidthTimestamp)&&void 0!==i?i:0)}},{key:"getTargetActivationTime",value:function(e){var t,n;return null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.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,n,r,i){var a=this.targetValues[e];if(a){var o=r||8,l=t-n,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,n=null===(t=this.targetValues[e])||void 0===t?void 0:t.easing,r=this.targets[e];return r&&"function"==typeof r.easing?r.easing.call(this,this.getTargetCycle(e)):n}},{key:"getTargetInterval",value:function(e){var t,n,r=null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.interval)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.interval?i.interval.call(this,this.getTargetCycle(e)):r}},{key:"getTargetSteps",value:function(e){var t,n,r=null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.steps)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.steps?i.steps.call(this,this.getTargetCycle(e)):r}},{key:"getTargetCycles",value:function(e){var t,n,r=null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.cycles)&&void 0!==t?t:1,i=this.targets[e];return i&&"function"==typeof i.cycles?i.cycles.call(this,this.getTargetCycle(e),r):r}},{key:"getTargetCycle",value:function(e){var t,n;return null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.cycle)&&void 0!==t?t:0}},{key:"getValueListPointer",value:function(e){var t,n;return null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.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,n,r,a){if("object"===g(e)&&null!==e){var o=[e,t,n,r,a];t=o[0],n=o[1],r=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,n,r,a,s,u),this}},{key:"cancelAnimation",value:function(){if(this.hasAnimatingTargets()){var e,t=d(this.animatingMap);try{for(t.s();!(e=t.n()).done;){var n=h(e.value,1)[0];this.targetValues[n]&&(this.targetValues[n].status="done",this.removeFromUpdatingTargets(n),this.removeFromActiveTargets(n))}}catch(e){t.e(e)}finally{t.f()}(0,r.s)().deleteAnimation(this)}}},{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 n;0===this.activeTargetList.length&&(null===(n=this.getParent())||void 0===n||n.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 n;0===this.updatingTargetList.length&&(null===(n=this.getParent())||void 0===n||n.removeFromUpdatingChildren(this))}},{key:"hasUpdatingImperativeTargets",value:function(e){var t,n,r=d([].concat(c(null!==(t=this.updatingTargetList)&&void 0!==t?t:[]),c(this.hasAnimatingTargets()?c(this.animatingMap.keys()):[])));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(this.isTargetImperative(i)&&(this.targetValues[i].originalTargetName===e||l.g.getTargetName(i)===e))return!0}}catch(e){r.e(e)}finally{r.f()}return!1}},{key:"getUpdatingImperativeTargets",value:function(e){var t,n=[],r=d(this.updatingTargetList);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.isTargetImperative(i)&&this.targetValues[i].originalTargetName===e&&n.push(i)}}catch(e){r.e(e)}finally{r.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,n;null!==(t=this.animatingMap)&&void 0!==t&&t.has(e)&&(this.animatingMap.delete(e),0===this.animatingMap.size&&(null===(n=this.getParent())||void 0===n||n.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,n;null!==(t=this.targetValues[e])&&void 0!==t&&t.snapAnimation||(this.animatingMap||(this.animatingMap=new Map),this.animatingMap.set(e,!0),null===(n=this.getParent())||void 0===n||n.addToAnimatingChildren(this))}},{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,n){var r=t,i=n;if(null!=t&&t.reset&&1===Object.keys(t).length&&!n&&(r=void 0,i=t),this.canTargetBeActivated(e)){var o=l.g.getResetOptions(i);o.shouldReset&&l.g.resetTargetState(this,e,o),a.d.isDefined(r)&&this.val("___".concat(e),r),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&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),b=n(530),T=n(952),w=n(756),k=n(249),S=n(260);function M(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)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(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 E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}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 C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x(r.key),r)}}function x(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}function O(e,t,n){return t=_(t),function(e,t){if(t&&("object"==D(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,L()?Reflect.construct(t,n||[],_(e).constructor):t.apply(e,n))}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}var P=function(e){function t(e,n,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=O(this,t,[e,n,r])).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}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),n=t,i=[{key:"createViewport",value:function(){var e,t,n,r;this.viewport=this.viewport||new b.L;var i=-this.getScrollLeft(),a=-this.getScrollTop();return this.viewport.xNext=i,this.viewport.xNorth=i,this.viewport.xEast=i,this.viewport.xSouth=i,this.viewport.xWest=i,this.viewport.scrollLeft=-(this.getScrollLeft()+(null!==(e=null===(t=this.getParent())||void 0===t||null===(t=t.$dom)||void 0===t?void 0:t.getScrollLeft())&&void 0!==e?e:0)),this.viewport.scrollTop=-(this.getScrollTop()+(null!==(n=null===(r=this.getParent())||void 0===r||null===(r=r.$dom)||void 0===r?void 0:r.getScrollTop())&&void 0!==n?n:0)),this.viewport.absX=this.absX,this.viewport.absY=this.absY,this.viewport.xOverflowReset=i,this.viewport.xOverflowLimit=i+this.getWidth(),this.viewport.yNext=a,this.viewport.yNorth=a,this.viewport.yWest=a,this.viewport.yEast=a,this.viewport.ySouth=a,this.calcContentWidthHeight(),this.viewport.container=this,this.viewport}},{key:"calcContentWidthHeight",value:function(){var e=this.viewport.ySouth-this.viewport.yNorth,t=this.viewport.xEast-this.viewport.xWest,n=this.viewport.yEast-this.viewport.yNorth,r=this.viewport.xSouth-this.viewport.xWest;e===this.contentHeight&&this.contentWidth===t&&this.topBaseHeight===n&&this.bottomBaseWidth===r||(this.contentHeight=e,this.topBaseHeight=n,this.bottomBaseWidth=r,this.contentWidth=t)}},{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),this.deletedChildren.push(e),this.removeFromUpdatingChildren(e),this.removeFromActiveChildren(e),this.removeFromAnimatingChildren(e),this.childrenUpdateFlag=!0,(0,r.zw)().calcChildren(this),this.markLayoutDirty("removeChild"),(0,r.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,r.fB)().schedule(1,"moveChild-"+this.oid+"-"+e.oid),this}},{key:"addChild",value:function(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addedChildren.length+this.allChildrenList.length;if("object"===D(e)){if(this.childrenUpdateFlag=!0,!(e instanceof t)){var o=Object.keys(this.actualValues).find((function(t){return n.actualValues[t]===e})),s=a.d.cloneTargetDefinition(e);e=new t(o?s.id||o:"".concat(this.oid,"_"),s)}e.toDiscard||(r.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,n,r=this,i=this.state();if((null===(e=i.deletedChildren)||void 0===e?void 0:e.length)>0&&(this.deletedChildren.forEach((function(e){if(r.allChildrenMap[e.oid]){var t=r.allChildrenList.indexOf(e);r.lastChildrenUpdate.deletions.push(e),r.allChildrenList.splice(t,1),delete r.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,n=e.child;r.allChildrenMap[n.oid]||(a.d.isDefined(n.val("canDeleteDom"))||!1!==r.val("canDeleteDom")||n.val("canDeleteDom",!1),t>=r.allChildrenList.length?r.allChildrenList.push(n):r.allChildrenList.splice(t,0,n),r.allChildrenMap[n.oid]=n,r.lastChildrenUpdate.additions.push({index:t,child:n}))})),this.addedChildren.length=0),(null===(n=i.movedChildren)||void 0===n?void 0:n.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,n=e.child;r.lastChildrenUpdate.deletions.push(n),r.lastChildrenUpdate.additions.push({index:t,child:n});var i=r.allChildrenList.indexOf(n);if(t!==i){l[n.oid]&&delete l[n.oid];var a=r.allChildrenList.splice(t,1,n);!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:n}),o[t]&&delete o[t]}})),Object.values(l).forEach((function(e){var t=e.index,n=e.child;r.allChildrenList.splice(t,0,n)})),Object.values(o).forEach((function(e){var t=e.fromIndex,n=e.child,i=r.allChildrenList.indexOf(n,t);r.allChildrenList.splice(i,1)})),this.movedChildren.length=0}return this.allChildrenList}},{key:"removeChildren",value:function(){return this.hasChildren()?(this.markLayoutDirty("removeChildren"),this.allChildrenList.forEach((function(e){l.g.resetBeforeDeletion(e),e.$dom=void 0})),this.allChildrenList=[],this.allChildrenMap={},this.clearUpdatingChildren(),this.clearActiveChildren(),this.clearAnimatingChildren(),this.hasDom()&&this.$dom.deleteAll(),this):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,r.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 n=this;this.dirtyLayout&&(t?t.forEach((function(e){n.dirtyLayout.oids[e]&&(n.dirtyLayout.count--,delete n.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(),n=this.hasDom(),r=this.isVisible(),i="active"===this.currentStatus||e||r&&t||this.isNowVisible||n&&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 n,r=null===(n=this.getParent())||void 0===n?void 0:n.getChildIndex(this);if("number"==typeof r)return t[r]}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 n=this.actualValues,r=this.lastActualValues;return e=l.g.getTargetName(e),2===arguments.length?(r[e]=n[e],t!==n[e]&&(n[e]=t,this.markLayoutDirty("val-".concat(e))),this):n[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:"bug",value:function(){return[{visible:this.isVisible()},{visibilityStatus:this.visibilityStatus},{hasDom:this.hasDom()},{x:this.getX()},{y:this.getY()},{width:this.getWidth()},{height:this.getHeight()},{targets:this.originalTargetNames},{activeTargetList:this.activeTargetList},{updatingTargetList:this.updatingTargetList},{animatingMap:M(this.animatingMap?M(this.animatingMap.keys()):[])},{noDomUpdatingTargets:M(this.noDomUpdatingTargets?M(this.noDomUpdatingTargets):[])},{pendingTargets:M(this.pendingTargets?M(this.pendingTargets):[])},{styleTargetMap:M(this.styleTargetMap?M(this.styleTargetMap.keys()):[])},{passiveTargetList:this.passiveTargetList},{updatingChildren:this.updatingChildrenMap?M(this.updatingChildrenMap.keys()):[]},{activeChildren:this.activeChildrenMap?M(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(){return a.d.isDefined(this.val("managesOwnScroll"))?!!this.val("managesOwnScroll"):!!(this.allTargetMap.onScroll||this.allTargetMap.onScrollLeft||this.allTargetMap.onScrollTop||this.allTargetMap.onWindowScroll)}},{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:"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:"getTopMargin",value:function(){return this.val("topMargin")}},{key:"getLeftMargin",value:function(){return this.val("leftMargin")}},{key:"getRightMargin",value:function(){var e;return this.val("rightMargin")+(null!==(e=this.getParentValue("gap"))&&void 0!==e?e:0)}},{key:"getBottomMargin",value:function(){var e;return this.val("bottomMargin")+(null!==(e=this.getParentValue("gap"))&&void 0!==e?e:0)}},{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")}}],i&&C(n.prototype,i),o&&C(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(m)},249:function(e,t,n){n.d(t,{a:function(){return p}});var r=n(34),i=n(333),a=n(585),o=n(705),l=n(768),s=n(737),u=n(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){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function f(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(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,c=[{key:"shouldMeasureHeightFromDom",value:function(t){return!1!==t.val("heightFromDom")&&(!t.excludeDefaultStyling()&&!r.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")&&!r.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||r.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||r.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,n=h(e.allStyleTargetMap);try{for(n.s();!(t=n.n()).done;){var i=d(t.value,1)[0];r.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"getTransformValue",value:function(e,t){var n;return"x"===t?n=Math.floor(e.getX()):"y"===t?n=Math.floor(e.getY()):a.u.transformMap[t]&&(n=a.u.rotate3D[t]?e.val(t):a.u.scaleMap[t]?r.d.formatNum(e.val(t),2):e.floorVal(t)),n}},{key:"fixStyle",value:function(t){if(t.styleTargetMap){var n,i=!1,o=h(t.styleTargetMap);try{for(o.s();!(n=o.n()).done;){var l=d(n.value,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,i=!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 f=Math.floor(t.getHeight());t.styleMap.height===f&&t.$dom.getStyleValue("height")===f||(t.styleMap.height=f,t.$dom.height(f))}else a.u.styleWithUnitMap[l]?r.d.isDefined(t.val(l))&&t.styleMap[l]!==t.val(l)&&(t.$dom.style(l,r.d.isNumber(t.val(l))?"".concat(t.val(l),"px"):t.val(l)),t.styleMap[l]=t.val(l)):r.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))}}catch(e){o.e(e)}finally{o.f()}i&&t.$dom.transform(e.getTransformString(t,t.tfMap)),t.styleTargetMap.clear()}}},{key:"setWidthFromDom",value:function(e){var t=e.domWidthTimestamp,n=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||n&&t<=n.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.width("auto");var l=e.$dom.width();l=l>0&&e.getHtml()?l+1:l,e.domWidthTimestamp=r.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,n=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||n&&t<=n.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.height("auto");var l=e.$dom.height();e.domHeightTimestamp=r.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,n,r,i,a,o){var l=t.getTargetEasing(n),s=l?u.G.easingFunction(l):void 0,c=s?s(t.getTargetStepPercent(n,a,o)):t.getTargetStepPercent(n,a,o);return e.morph(n,r,i,c)}},{key:"morph",value:function(e,t,n,r){if(a.u.colorMap[i.g.getTargetName(e)]){var o=s.I.color2Integers(n),l=t?s.I.color2Integers(t):s.I.color2Integers("#fff");if(o&&l){var u=Math.floor(o[0]*r+l[0]*(1-r)),c=Math.floor(o[1]*r+l[1]*(1-r)),d=Math.floor(o[2]*r+l[2]*(1-r));return"rgb(".concat(u,",").concat(c,",").concat(d,")")}return n}return"number"==typeof n?t+(n-t)*r:n}},{key:"fixAsyncStyle",value:function(e){if(e.asyncStyleTargetMap){var t,n=h(e.asyncStyleTargetMap);try{var i=function(){var n=d(t.value,1)[0];if("style"===n){var i=e.getStyle();r.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"===n){var o=e.getAttributes();r.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"===n){var l=e.getCss();e.$dom.css()!==l&&e.$dom.css(l)}else a.u.attributeTargetMap[n]?e.$dom.attr(n,e.val(n)):r.d.isDefined(e.val(n))&&e.styleMap[n]!==e.val(n)&&(e.$dom.style(n,"".concat(e.val(n))),e.styleMap[n]=e.val(n))};for(n.s();!(t=n.n()).done;)i()}catch(e){n.e(e)}finally{n.f()}e.asyncStyleTargetMap.clear()}}},{key:"getTransformBaseFromActualValues",value:function(e){var t={},n=a.u.transformMap;for(var i in e.actualValues)if(n[i]){var o=e.actualValues[i];r.d.isDefined(o)&&(t[i]=o)}return t}},{key:"num",value:function(e,t){var n=Number(e);return Number.isFinite(n)?n:t}},{key:"shouldUseImplicitTransformOrder",value:function(e){if(e.val("useTargetTransformOrder"))return!0;var t=e.originalTargetNames||[],n=function(e){return e.some((function(e){return t.indexOf(e)>=0}))},r=0;return n(["perspective"])&&r++,n(["translateX","translateY","translateZ","x","y","z"])&&r++,(n(["rotateX","rotateY","rotateZ"])||n(["rotate3DX"])&&n(["rotate3DY"])&&n(["rotate3DZ"])&&n(["rotate3DAngle"]))&&r++,n(["skewX","skewY","skew"])&&r++,(n(["scaleX","scaleY","scaleZ"])||n(["scale3DX"])&&n(["scale3DY"])&&n(["scale3DZ"]))&&r++,r>1}},{key:"buildImplicitTransformOrderMap",value:function(e){var t=function(t){return e.indexOf(t)>=0},n=function(t){var n,r=1/0,i=h(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=e.indexOf(a);o>=0&&o<r&&(r=o)}}catch(e){i.e(e)}finally{i.f()}return r},r=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:n(["perspective"]),outputs:["perspective"]}),r?s.push({group:"translate",order:n(["translateX","translateY","translateZ"]),outputs:["translateX","translateY","translateZ"].filter(t)}):i&&s.push({group:"translate",order:n(["x","y","z"]),outputs:["translate3d"]}),a)s.push({group:"rotate",order:n(["rotate3DX","rotate3DY","rotate3DZ","rotate3DAngle"]),outputs:["rotate3d"]});else{var u=["rotateX","rotateY","rotateZ","rotate"],c=u.filter(t);c.length&&s.push({group:"rotate",order:n(u),outputs:c})}if(l)s.push({group:"skew",order:n(["skewX","skewY"]),outputs:["skew"]});else{var d=["skewX","skewY"].filter(t);d.length&&s.push({group:"skew",order:n(["skewX","skewY"]),outputs:d})}if(o)s.push({group:"scale",order:n(["scale3DX","scale3DY","scale3DZ"]),outputs:["scale3d"]});else{var f=["scaleX","scaleY","scaleZ","scale"],v=f.filter(t);v.length&&s.push({group:"scale",order:n(f),outputs:v})}var g={perspective:0,translate:1,rotate:2,skew:3,scale:4};s.sort((function(e,t){var n,r,i=Number.isFinite(e.order)?e.order:1/0,a=Number.isFinite(t.order)?t.order:1/0;return i!==a?i-a:(null!==(n=g[e.group])&&void 0!==n?n:999)-(null!==(r=g[t.group])&&void 0!==r?r:999)}));var y=s.flatMap((function(e){return e.outputs})),p={};return y.forEach((function(e,t){return p[e]=t})),p}},{key:"getTransformString",value:function(t,n){for(var i={},o={},l=r.d.isDefined(n.translateX)||r.d.isDefined(n.translateY)||r.d.isDefined(n.translateZ),s=0,u=Object.keys(n);s<u.length;s++){var c=u[s];if(!i[c])switch(c){case"translateX":case"translateY":case"translateZ":null!==n[c]&&(o[c]="".concat(c,"(").concat(e.num(n[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(n.x,0),"px"),h="".concat(e.num(n.y,0),"px"),f="".concat(e.num(n.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":r.d.isDefined(n.rotate3DX)&&r.d.isDefined(n.rotate3DY)&&r.d.isDefined(n.rotate3DZ)&&r.d.isDefined(n.rotate3DAngle)?(o.rotate3d="rotate3d(".concat(e.num(n.rotate3DX,0),", ").concat(e.num(n.rotate3DY,0),", ").concat(e.num(n.rotate3DZ,0),", ").concat(e.num(n.rotate3DAngle,0),"deg)"),i.rotate3DX=i.rotate3DY=i.rotate3DZ=i.rotate3DAngle=!0):null!==n[c]&&(o[c]="".concat(c,"(").concat(e.num(n[c],0),"deg)"),i[c]=!0);break;case"scale":case"scaleX":case"scaleY":case"scaleZ":case"scale3DX":case"scale3DY":case"scale3DZ":var v,g,y;r.d.isDefined(n.scale3DX)&&r.d.isDefined(n.scale3DY)&&r.d.isDefined(n.scale3DZ)?(o.scale3d="scale3d(".concat(Number(null!==(v=n.scale3DX)&&void 0!==v?v:1),", ").concat(Number(null!==(g=n.scale3DY)&&void 0!==g?g:1),", ").concat(Number(null!==(y=n.scale3DZ)&&void 0!==y?y:1),")"),i.scale3DX=i.scale3DY=i.scale3DZ=!0):(o[c]="".concat(c,"(").concat(e.num(n[c],1),")"),i[c]=!0);break;case"skewX":case"skewY":var p,m;if(r.d.isDefined(n.skewX)&&r.d.isDefined(n.skewY))o.skew="skew(".concat(Number(null!==(p=n.skewX)&&void 0!==p?p:0),"deg, ").concat(Number(null!==(m=n.skewY)&&void 0!==m?m:0),"deg)"),i.skewX=i.skewY=!0;else if(null!==n[c]){var b;o[c]="".concat(c,"(").concat(Number(null!==(b=n[c])&&void 0!==b?b:0),"deg)"),i[c]=!0}break;case"perspective":o[c]="perspective(".concat(e.num(n.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 n,r;return(null!==(n=T[e])&&void 0!==n?n:999)-(null!==(r=T[t])&&void 0!==r?r:999)})).map((function(e){return o[e]}));return k.join(" ")}},{key:"calcAbsolutePositionFromDom",value:function(e){if(e.hasDom()){var t=e.$dom.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top);n===Math.floor(e.absX)&&r===Math.floor(e.absY)||(e.absX=t.left,e.absY=t.top,e.markLayoutDirty("islandAbsXY"))}}}],(n=null)&&g(t.prototype,n),c&&g(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,c}()},34:function(e,t,n){n.d(t,{d:function(){return v}});var r=n(705),i=n(333),a=n(585),o=n(90);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;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 n;return!(!e||!t||e!==t&&t.getDomParent()!==e&&(null===(n=t.getDomParent())||void 0===n?void 0:n.getDomParent())!==e)}},{key:"list2map",value:function(t,n){return t.reduce((function(t,r){return t[r.oid]=e.isDefined(n)?n:r,t}),{})}},{key:"getDeepList",value:function(e){var t=[];return function e(n){if(n&&n.hasChildren()){var r=n.getChildren();t.push.apply(t,u(r)),r.forEach(e)}}(e),t}},{key:"areEqual",value:function(e,t,n){return n?JSON.stringify(e)===JSON.stringify(t):e===t}},{key:"momentum",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=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=n<10?Math.abs(a)/10:Math.abs(a)/n,l=o/r,s=Math.pow(o,2)/(2*r);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,n,r){return t=(t=(t=e.isDefined(t)?t:n)>r?r:t)<n?n: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,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}},{key:"getFullLink",value:function(t){if(e.isDefined(t)){if(!t.startsWith("http")){var n=window.location.protocol;n+=n.endsWith(":")?"//":"://";var r="".concat(n).concat(window.location.hostname);t=t.startsWith("/")?r+t:"".concat(r,"/").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,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.Bt)(),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=l((0,r.zw)().calcChildren(n));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 n=1;n<t.length;n++){var i=t[n-1],a=t[n];if((0,r.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,n){var r=t.targets[n];r||(n=i.g.getTargetName(n),r=t.targets[n]);var a=t.val(n),o=t.lastVal(n);return"object"===s(r)&&"function"==typeof r.onValueChange&&(!e.areEqual(a,o,r.deepEquality)&&(r.onValueChange.call(t,a,o,t.getTargetCycle(n)),t.setTargetMethodName(n,"onValueChange")),!0)}},{key:"runTargetValue",value:function(t,n,o,l,s){var u=i.g.getTargetName(o);return a.u.allEventMap[u]?"function"==typeof n.value?n.value.call(t,(0,r.kQ)().getCurrentOriginalEvent(),l,s):e.isDefined(n.value)?n.value:n:t.val("___".concat(o))?"function"==typeof n.value?n.value.call(t,t.val("___".concat(o)),l,s):e.isDefined(n.value)?n.value:n:"function"==typeof n.value?n.value.call(t,l,s):e.isDefined(n.value)?n.value:n}},{key:"mergeTargets",value:function(t,n){var r,i=n.targets,a=n.originalTargetNames,o=t.targets,l=[];a.forEach((function(t){e.isDefined(o[t])||l.push(t)})),(r=t.originalTargetNames).push.apply(r,l),l.forEach((function(e){var n=t.originalTargetNames.indexOf(e);o[e]=i[e],t.processNewTarget(e,n)}))}},{key:"cloneTargetDefinition",value:function(t){var n=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(n.has(t))return n.get(t);if(Array.isArray(t)){var r=[];n.set(t,r);var i,a=l(t);try{for(a.s();!(i=a.n()).done;){var u=i.value;r.push(e.cloneTargetDefinition(u,n))}}catch(e){a.e(e)}finally{a.f()}return r}var c=Object.getPrototypeOf(t);if(c!==Object.prototype&&null!==c)return t;var d={};n.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],n)}return d}},{key:"advanceTargetByElapsed",value:function(t,n){var r,i,a=t.targetValues[n];if(!a)return{step:0,cycle:0,valuePointer:1,done:!1};if(!a.catchupAt)return{step:t.getTargetStep(n),cycle:t.getTargetCycle(n),valuePointer:null!==(i=a.valueList)&&void 0!==i&&i.length?t.getValueListPointer(n):0,done:t.getTargetStep(n)>=t.getTargetSteps(n)};var o=e.now()-a.catchupAt;return null!==(r=a.valueList)&&void 0!==r&&r.length?e.advanceValueListTargetByElapsed(t,n,o):e.advanceSimpleTargetByElapsed(t,n,o)}},{key:"advanceSimpleTargetByElapsed",value:function(t,n,r){var i=t.getTargetSteps(n),a=t.getTargetInterval(n)||8,o=t.getTargetCycles(n),l=t.getTargetStep(n),s=t.getTargetCycle(n);if(i<=0)return{step:i,valuePointer:0,cycle:o,done:!0};for(var u=r;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,n,r){for(var i=t.targetValues[n],a=i.valueList,o=i.stepList||[1],l=i.intervalList||[i.interval||8],s=t.getTargetCycles(n),u=t.getTargetCycle(n),c=t.getValueListPointer(n),d=t.getTargetStep(n),h=r;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 g=Math.max(f-d,0),y=g*v;if(!(h>=y))return{step:d+=e.limit(Math.floor(h/v),0,g),steps:f,valuePointer:c,cycle:u,done:!1};h-=y,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}}}],(n=null)&&h(t.prototype,n),c&&h(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,c}()},585:function(e,t,n){n.d(t,{u:function(){return g}});var r,i=n(705),a=n(34),o=n(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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function f(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;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,r=[{key:"defaultActualValues",value:function(){return{x:0,y:0,width:0,height:0,leftMargin:0,rightMargin:0,topMargin:0,bottomMargin: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 n,r=String(t),i=r.toLowerCase();return null!==(n=e.attributesToTargets[i])&&void 0!==n?n:r}},{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]}}],(n=null)&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();r=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({},r.transformMap),r.styleWithUnitMap),r.colorMap),{},{dim:!0,color:!0,opacity:!0,zIndex:!0,border:!0,borderTop:!0,borderLeft:!0,borderRight:!0,borderBottom:!0})),f(g,"gpuTargetMap",c(c({},r.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",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=e.getDimLastUpdate();if(!t)return!1;var n=e.getParent(),r=(0,i.S9)(),a=n?n.getDimLastUpdate():0;return(a>r?a:r)>t}}),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","onValueChange","onImperativeEnd","onImperativeStep","onStepsEnd","onSuccess","onError"])),f(g,"lifecycleCoreSet",new Set(["value","steps","cycles","enabledOn","loop","interval"])),f(g,"lifecycleMethodSet",new Set([].concat(l(r.lifecycleCallbackSet),l(r.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(r.allEventMap)),l(Object.keys(r.internalEventMap))))),f(g,"styleSet",new Set([].concat(l(Object.keys(r.styleTargetMap)),l(Object.keys(r.asyncStyleTargetMap)),l(Object.keys(r.attributeTargetMap))))),f(g,"reservedKeywordSet",new Set([].concat(l(r.styleSet),l(Object.keys(r.defaultActualValues())),l(Object.keys(r.allEventMap)),l(Object.keys(r.internalEventMap)),l(Object.keys(r.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(g,"activationKeywordSet",new Set(["originalTModel","originalTargetName","activateNextTarget"]))},484:function(e,t,n){n.d(t,{j:function(){return b}});var r=n(333),i=n(690),a=n(585),o=n(90),l=n(34),s=n(980),u=n(421),c=n(705);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var b=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,h=[{key:"prepareTarget",value:function(e,t){r.g.currentTargetName=t,r.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,n){var i=r.g.getTargetName(n);t.allTargetMap[i]=n,e.resolveTargetValue(t,n),e.updateTarget(t,t.targetValues[n],n,!1)}},{key:"assignImperativeTargetValue",value:function(e,t,n,i){var a;e.targetValues[t]=e.targetValues[t]||r.g.emptyValue();var o=e.targetValues[t];return o.isImperative=!0,o.originalTargetName=n,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,n,o,s,u,c,d,h){var v,y=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{};if("string"==typeof n){var m=r.g.getTargetName(n);n=n.endsWith("+")?n:n+"+",t.allTargetMap[m]=n}if(i.D.isListTarget(o)){var b=l.d.isDefined(o.steps)?o.steps:s,T=l.d.isDefined(o.interval)?o.interval:u,w=l.d.isDefined(o.easing)?o.easing:c,k=l.d.isDefined(o.cycles)?o.cycles:y;v=e.assignImperativeTargetValue(t,n,d,h),e.assignListTarget(t,n,v,o.list,o.list[0],b,T,w,k)}else{if(i.D.isTargetSpecObject(o)){var S=e.getTargetOptions(o),M=i.D.getValueStepsCycles(t,n,o),E=M[0],D=M[1],C=M[2],x=M[3],O=M[4];return s=l.d.isDefined(D)?D:s,u=l.d.isDefined(C)?C:u,c=l.d.isDefined(x)?x:c,y=l.d.isDefined(O)?O:y,void e.executeImperativeTarget(t,n,E,s,u,c,d,h,y,S)}if(i.D.isObjectTarget(n,o)){var L=a.u.cssFunctionMap[n]?g(g({},a.u.cssFunctionMap[n]),o):o;Object.keys(L).forEach((function(n){var r=L[n],a=s,o=u,v=c,g=y,m=p;if("object"===f(r)&&!i.D.isListTarget(r)){m=e.getTargetOptions(r);var b=i.D.getValueStepsCycles(t,n,L[n]);r=b[0],a=l.d.isDefined(b[1])?b[1]:s,o=l.d.isDefined(b[2])?b[2]:u,v=l.d.isDefined(b[3])?b[3]:c,g=l.d.isDefined(b[4])?b[4]:y}e.executeImperativeTarget(t,n,r,a,o,v,d,h,g,m)}))}else if("object"!==f(o)||i.D.isListTarget(o))v=e.assignImperativeTargetValue(t,n,d,h,y),e.assignSingleTarget(v,o,void 0,s,y,u,c);else{var _=i.D.getValueStepsCycles(t,n,o);o!==_[0]?(o=_[0],s=l.d.isDefined(_[1])?_[1]:s,u=l.d.isDefined(_[2])?_[2]:u,c=l.d.isDefined(_[3])?_[3]:c,y=l.d.isDefined(_[4])?_[4]:y,e.executeImperativeTarget(t,n,o,s,u,c,d,h,y,p)):(v=e.assignImperativeTargetValue(t,n,d,h,y),e.assignSingleTarget(v,o,void 0,s,y,u,c))}}v&&(e.resetImperativeProgress(v),e.assignTargetOptions(v,p),e.updateTarget(t,v,n,!0),t.isTargetDone(n)&&r.g.shouldActivateNextTarget(t,n))}},{key:"updateTarget",value:function(t,n,r,i){t.setLastUpdate(r),0===t.getTargetSteps(r)&&e.snapActualToTarget(t,r),n.executionFlag=!0,n.executionCount++,n.snapAnimation||t.addToStyleTargetList(r,i),t.setTargetMethodName(r,"value");var o=e.calculateTargetStatus(t,n,r);t.setTargetStatus(r,o),!a.u.ignoreRerun[r]&&t.shouldScheduleRun(r)&&(0,c.fB)().schedule(1,"updateTarget2-"+t.oid)}},{key:"calculateTargetStatus",value:function(e,t,n){var r,i=e.getValueListPointer(n),a=e.getTargetCycle(n),o=e.getTargetCycles(n),l=e.getTargetStep(n),s=e.getTargetSteps(n);return t.snapAnimation?"done":l<s||Array.isArray(t.valueList)&&i<t.valueList.length-1?"updating":e.isTargetInLoop(n)||a<o-1?"active":null!==(r=e.targets[n])&&void 0!==r&&r.fetchAction&&!(0,c.qI)().isLoadingSuccessful(e,n)?"fetching":"done"}},{key:"assignListTarget",value:function(e,t,n,r,i,a,o,s,c){n.valueList=r,n.stepList=Array.isArray(a)?a:l.d.isDefined(a)&&a>0?[a]:[1],n.intervalList=Array.isArray(o)?o:l.d.isDefined(o)?[o||8]:[8],n.easingList=Array.isArray(s)?s:l.d.isDefined(s)?[s]:[u.G.LINEAR],n.cycles=c,n.valuePointer=1,n.value=r[1],n.initialValue=i,n.steps=n.stepList[0],n.interval=n.intervalList[0],n.easing=n.easingList[0],n.step=0,n.snapAnimation=!1,e.val(t,i),e.setActual(t,i)}},{key:"assignSingleTarget",value:function(e,t,n,r,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=n,e.lastValue=e.value,e.value=t,e.steps=r||0,e.cycles=i||1,e.interval=a||0,e.easing=o,e.snapAnimation=!1}},{key:"snapActualToTarget",value:function(e,t){var n=e.targetValues[t].value,r="function"==typeof n?n.call(e):n;if(e.val(t)!==r)return e.hasValidAnimation()&&e.canBeAnimated(t)?void s.T.overrideAnimatedKeyWithSnap(e,t,r):(e.val(t,r),e.setActual(t,r),void l.d.handleValueChange(e,t))}},{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,n){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.getTargetCycle(n);if(!i.D.isIntervalTarget(t.targets[n])||1!==s){var u=!t.targetValues[n]&&l.d.isDefined(t.targets[n].initialValue)?t.targets[n].initialValue:void 0,h=i.D.getValueStepsCycles(t,n,t.targets[n],s),v=h[0],g=h[1]||0,y=h[2]||0,p=h[3],m=h[4]||1,b=t.targetValues[n]||r.g.emptyValue();t.targetValues[n]=b;var T=l.d.isDefined(p)?p:l.d.isDefined(t.targets[n].easing)?t.targets[n].easing:void 0;if(i.D.isIntervalTarget(v))e.assignSingleTarget(b,void 0,u,0,2,v.interval,T);else if(i.D.isChildTarget(n,v))t.addChild(v),e.assignSingleTarget(b,v,void 0,0,m,y,T);else if(i.D.isChildrenTarget(n,v))(Array.isArray(v)?v:v?[v]:[]).forEach((function(e){t.addChild(e),r.g.markAddChild(t,r.g.currentTargetName,t.addedChildren[t.addedChildren.length-1].child)})),e.assignSingleTarget(b,v,void 0,0,m,y,T);else if(i.D.isChildObjectTarget(n,t.targets[n])){var w=new o.c(n,t.targets[n]);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,y,T)}else if("object"===f(v)&&!0===v.asChild){var S=new o.c(n,v);t.addChild(S),e.assignSingleTarget(b,v,void 0,0,m,y,T)}else if(i.D.isFetchTarget(n,v))e.assignSingleTarget(b,v,void 0,0,m,y,T),(0,c.qI)().fetch(t,v);else if(i.D.isFetchImageTarget(n,v))e.assignSingleTarget(b,v,void 0,0,m,y,T),(0,c.qI)().fetchImage(t,v);else if(i.D.isListTarget(v))e.assignListTarget(t,n,b,v.list,v.list[0],g,y,T,m);else{var M,E;g>0&&!l.d.areEqual(t.val(n),v,null!==(M=null===(E=t.targets[n])||void 0===E?void 0:E.deepEquality)&&void 0!==M&&M)&&t.resetTargetStep(n),e.assignSingleTarget(b,v,u,g,m,y,T)}}}}],(n=null)&&p(t.prototype,n),h&&p(t,h),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,h}()},690:function(e,t,n){n.d(t,{D:function(){return d}});var r=n(333),i=n(585),a=n(34),o=n(90),l=n(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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;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=r.g.getTargetName(e),i.u.reservedKeywordSet.has(e)}},{key:"scoreChild",value:function(t){var n=0,r=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)?n++:i.u.activationKeywordSet.has(a)||"function"==typeof t[a]||r++}}return n-r>=1}},{key:"classifyEntry",value:function(t,n){return e.isPlainObject(n)?e.isTargetKey(t)?"target2":"originalTModel"===t?"target3":n instanceof o.c?"children":e.isListTarget(n)||e.isFetchTarget(t,n)||e.isFetchImageTarget(t,n)?"target4":this.hasLifecycle(n)?"target5":this.scoreChild(n)?"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"===r.g.getTargetName(e)||"addChildren"===r.g.getTargetName(e))&&"object"===s(t)}},{key:"isChildTarget",value:function(e,t){return"child"===r.g.getTargetName(e)&&"object"===s(t)}},{key:"isChildObjectTarget",value:function(t,n){return"children"===e.classifyEntry(t,n)}},{key:"isListTarget",value:function(e){return"object"===s(e)&&null!==e&&Array.isArray(e.list)}},{key:"isFetchTarget",value:function(e,t){return!("fetch"!==r.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"===r.g.getTargetName(e)&&t&&("string"==typeof t||Array.isArray(t))}},{key:"isObjectTarget",value:function(t,n){return"style"!==r.g.getTargetName(t)&&"object"===s(n)&&null!==n&&!Array.isArray(n)&&Object.getPrototypeOf(n)===Object.prototype&&!e.isTargetSpecObject(n)}},{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 n=t[3],r="number"==typeof n,i="string"==typeof n&&l.G.easeMap.has(n);if(!r&&!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,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.targets[n],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.getTargetCycle(n),o=r&&r.valueOnly,l=t.val(n),u=null,c=0,d=0,h=void 0,f=1,v=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return"function"==typeof e?e.call.apply(e,[t].concat(r)):e};return function r(g){if(Array.isArray(g))return y=g,o||!e.isValueStepsCycleArray(y)?[y,c,d,h,f]:(u=y[0],c=y.length>=2?y[1]:c,d=y.length>=3?y[2]:d,y.length>=4&&("string"==typeof y[3]?(h=y[3],f=y.length>=5?y[4]:f):f=y[3]),[u,c,d,h,f]);var y;if("object"===s(g)&&null!==g&&Object.getPrototypeOf(g)===Object.prototype){var p=a.d.runTargetValue(t,g,n,i,l);return e.isPrimitiveArray(p)&&(a.d.isDefined(g.steps)||a.d.isDefined(g.interval)||a.d.isDefined(g.easing)||a.d.isDefined(g.cycles))?(u={list:p},c=a.d.isDefined(g.steps)?v(g.steps,i):0,d=a.d.isDefined(g.interval)?v(g.interval,i):8,h=a.d.isDefined(g.easing)?v(g.easing,i):h,f=a.d.isDefined(g.cycles)?v(g.cycles,i,t.getTargetCycles(n)):1,[u,c,d,h,f]):"object"===s(p)&&a.d.isDefined(p.value)&&a.d.isDefined(p.steps)?r(p):(u=p,c=a.d.isDefined(g.steps)?v(g.steps,i):0,d=a.d.isDefined(g.interval)?v(g.interval,i):0,h=a.d.isDefined(g.easing)?v(g.easing,i):h,f=a.d.isDefined(g.cycles)?v(g.cycles,i,t.getTargetCycles(n)):1,Array.isArray(u)?r(u):[u,c,d,h,f])}return"function"==typeof g?r(g.call(t,i,l)):[g,c,d,h,f]}(r)}}],(n=null)&&u(t.prototype,n),c&&u(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,c}()},333:function(e,t,n){n.d(t,{g:function(){return f}});var r=n(705),i=n(34),a=n(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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;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,n=e.length;n>t&&"$"===e[n-1];)n--;return"+"===e[n-1]&&n--,e.slice(t,n)}}},{key:"bindTarget",value:function(t,n,i,o,l){var s=t.targets[n],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=n.startsWith("_")?n.slice(1):n,f=!(!o||!o.endsWith("$"));if(!s.activateNextTarget){var v;if(f)v=o;else for(var g=t.originalTargetNames,y=l+1;y<g.length;y++){var p=g[y];if(p.endsWith("$$")){v=p;break}}v&&(s.activateNextTarget=v)}Object.keys(s).forEach((function(o){var l=s[o];if("value"===o||"function"==typeof l&&a.u.isLifeCycleMethod(o)){if(l.__isBoundTargetMethod)return;var f=function(){var s;a.u.lifecycleCoreSet.has(o)||(e.currentTargetName=n,e.currentTModel=t),this.key=h,this.value=this.val(h),this.prevTargetValue=function(){if(i)return(0,r.qI)().isLoading(t,i)?(0,r.qI)().getLoadingItemValue(t,i,n):t.targetValues[i]?t.targetValues[i].actual:t.val(i)}(),this.isPrevTargetUpdated=d;var f="function"==typeof l?l.apply(this,arguments):l;return u=null!==(s=c())&&void 0!==s?s:u,f};f.__isBoundTargetMethod=!0,s[o]=f}}))}},{key:"shouldActivateNextTarget",value:function(t,n){var i,a,o,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!(l>4)&&t){var c="update"===(arguments.length>5&&void 0!==arguments[5]?arguments[5]:"complete"),d=!c;if(t.isTargetImperative(n)){var h=t.targetValues[n],f=h.originalTModel,v=h.originalTargetName;return e.shouldActivateNextTarget(f,v,l+1,s,!0,"update"),void(d&&(e.cleanupTarget(t,n),e.isTargetFullyCompleted(t,n)&&e.shouldActivateNextTarget(f,v,l+1,s,!0,"complete")))}var g=t.targets[n],y=t.targetValues[n];if(g&&y){var p=g.activateNextTarget,m=null!==(i=null==p?void 0:p.endsWith("$$"))&&void 0!==i&&i,b=g.fetchAction;if(!c||!m){var T=!1,w=!1;if(p){if(m){var k,S,M=null!==(k=null===(S=t.targetValues[p])||void 0===S?void 0:S.triggeredByCompleteCount)&&void 0!==k?k:0;y.completeCount>M&&(w=!0)}else{var E,D=null!==(E=y.nextTargetUpdateCount)&&void 0!==E?E:0;w=y.updateCount>D}if(!m&&0===s&&(w||u)||m&&w){var C=!!m&&e.arePreviousTargetsComplete(t,p);if(b)if(m)!0===C?(e.activateTargetOnce(t,p),T=!0,e.clearPendingTargetsForNextTarget(t,p),t.targetValues[p].triggeredByCompleteCount=y.completeCount):e.markPendingTargets(t,n);else for(;(0,r.qI)().isNextLoadingItemSuccessful(t,n);)t.activatedTargets.indexOf(p)>=0?t.activatedTargets.push(p):e.activateTarget(t,p),(0,r.qI)().nextActiveItem(t,n),T=!0;else m?!0===C?(t.removeFromActiveTargets(p),e.activateTarget(t,p),T=!0,e.clearPendingTargetsForNextTarget(t,p),t.targetValues[p].triggeredByCompleteCount=y.completeCount):e.markPendingTargets(t,n):m||(t.activatedTargets.indexOf(p)>=0&&!t.isTargetUpdating(n)?t.activatedTargets.push(p):(e.activateTarget(t,p),T=!0))}else d&&t.isTargetDone(p)&&e.cleanupTarget(t,p)}T&&(m||(y.nextTargetUpdateCount=y.updateCount));var x=p&&null!==(a=null===(o=t.targetValues[p])||void 0===o?void 0:o.completeCount)&&void 0!==a?a:0,O=!!m&&y.completeCount<=x;if(!T&&d)if(p&&O&&!b)e.shouldActivateNextTarget(t,p,l,s+1,u,"complete");else if(!p){var L=g.originalTModel,_=g.originalTargetName;L&&_&&e.shouldActivateNextTarget(L,_,l+1,s,u,"complete")}d&&e.cleanupTarget(t,n)}}}}},{key:"markPendingTargets",value:function(e,t){(e.pendingTargets||(e.pendingTargets=new Set)).add(t)}},{key:"clearPendingTarget",value:function(e,t){var n=e.pendingTargets;n&&(n.delete(t),0===n.size&&(e.pendingTargets=void 0))}},{key:"clearPendingTargetsForNextTarget",value:function(e,t){var n=e.pendingTargets;if(n){for(var r=0,i=s(n);r<i.length;r++){var a,o=i[r];(null===(a=e.targets[o])||void 0===a?void 0:a.activateNextTarget)===t&&n.delete(o)}0===n.size&&(e.pendingTargets=void 0)}}},{key:"cleanupTarget",value:function(t,n){if(e.cleanupVisibleComplete(t,n),t.isTargetComplete(n)||!e.isTargetFullyCompleted(t,n))return!1;t.setTargetComplete(n);var i=t.targets[n];if("function"==typeof(null==i?void 0:i.onComplete)&&(i.onComplete.call(t),t.setTargetMethodName(n,"onComplete")),(null==i?void 0:i.fetchAction)&&(0,r.qI)().isLoadingSuccessful(t,n)){var a=t.fetchActionTargetList.indexOf(n);a>=0&&t.fetchActionTargetList.splice(a,1),i.fetchAction=!1}return e.bubbleInvokerCompletion(t,n),!0}},{key:"cleanupVisibleComplete",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.targets[n];if(!r||"function"!=typeof r.onVisibleComplete)return!1;var i=t.targetValues[n];if(!i)return!1;if(!0!==e.isTargetTreeComplete(t,n,"visible"))return!1;var a=e.getVisibleCompletionSignature(t);return i.visibleCompleteSignature!==a&&(i.visibleCompleteSignature=a,r.onVisibleComplete.call(t),t.setTargetMethodName(n,"onVisibleComplete"),!0)}},{key:"getVisibleCompletionSignature",value:function(e){return e.visibleChildren.map((function(e){return e.oid})).sort().join("|")}},{key:"bubbleInvokerCompletion",value:function(t,n){var r=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&&n){var o="".concat(t.oid,":").concat(n);if(!(r.has(o)||a>4)){r.add(o);var l=t.targetValues[n];if(l){var s,u,c=function(t,n){if(t&&n){var o="".concat(t.oid,":").concat(n);i.has(o)||(i.add(o),e.cleanupTarget(t,n)),e.bubbleInvokerCompletion(t,n,r,i,a+1)}};c(l.originalTModel,l.originalTargetName),t.isTargetImperative(n)||(c(l.invokerTModel,l.invokerTargetName),c(null===(s=t.targets[n])||void 0===s?void 0:s.originalTModel,null===(u=t.targets[n])||void 0===u?void 0:u.originalTargetName))}}}}},{key:"activateTargetOnce",value:function(t,n){var r,i,a=(r=t.targetValues)[n]||(r[n]=e.emptyValue()),o=null!==(i=a.activationTime)&&void 0!==i?i:0;if(o>0&&o>=t.getLastUpdate(n))return!1;a.activationTime=t.getLastUpdate(n)+.001,t.activateTarget(n)}},{key:"activateTarget",value:function(e,t){e.activateTarget(t)}},{key:"isTModelComplete",value:function(t){var n,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,r.EI)().needsReattach(t):!(null!==(n=v.updatingTargetList)&&void 0!==n&&n.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,r.EI)().needsReattach(t)}},{key:"isFetchingComplete",value:function(e){var t=e.state().fetchActionTargetList;if(!t)return!0;var n,i=l(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(!(0,r.qI)().isLoadingSuccessful(e,a))return!1}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"isTargetFullyCompleted",value:function(t,n){var r=!t.isTargetUpdating(n)&&!0===t.isTargetTreeComplete(n);return r&&!t.isTargetImperative(n)&&(r=!t.hasUpdatingImperativeTargets(n)),r&&n.endsWith("$$")&&(r=!0===e.arePreviousTargetsComplete(t,n)),r}},{key:"arePreviousTargetsComplete",value:function(e,t){for(var n=e.functionTargetNames.findIndex((function(e){return t===e}))-1;n>=0;n--){var r=e.functionTargetNames[n];if(!e.isTargetImperative(r)){if(e.activatedTargets.indexOf(r)>=0)return"activated targets";if(e.hasUpdatingImperativeTargets(r))return e.oid+"."+r+": "+e.getUpdatingImperativeTargets(r);if(!0!==e.isTargetTreeComplete(r))return!1}}return!0}},{key:"isTargetTreeComplete",value:function(t,n,i){var l=t.targets[n];if(l){var s,u,c,d=null!=i?i:l.completionScope,h=o(l.value);if(a.u.controlTargetMap[n])return!0;if(!l.fetchAction&&("string"===h||"number"===h||"boolean"===h))return!0;if((0,r.EI)().needsReattach(t))return"needs Reattach";if(t.canHaveDom()&&!t.hasDom())return"no dom";if(!t.isTargetComplete(n)&&!t.isTargetDone(n))return"not done";if((null===(s=l.childAction)||void 0===s?void 0:s.length)>0&&e.getUpdatingChildren(t,n,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,r.qI)().isLoadingSuccessful(t,n))return"incomplete loading"}return!0}},{key:"areTargetChildrenComplete",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";if(!t)return!0;var r,i=l(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!e.shouldIgnoreChildForCompletion(a,n)){if(a.exists()&&!e.isTModelComplete(a,n))return a.oid;if(a.hasChildren()){var o=e.areTargetChildrenComplete(a.getChildren(),n);if(!0!==o)return o}}}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"getUpdatingChildren",value:function(t,n){var r,i,a,o,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",c=new Map;return[].concat(s(null!==(r=null===(i=t.updatingChildrenMap)||void 0===i?void 0:i.values())&&void 0!==r?r:[]),s(null!==(a=null===(o=t.animatingChildrenMap)||void 0===o?void 0:o.values())&&void 0!==a?a:[])).forEach((function(t){var r;if(!e.shouldIgnoreChildForCompletion(t,u)){var i,a=l([].concat(s(null!==(r=t.updatingTargetList)&&void 0!==r?r:[]),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===n)c.set(t.oid,t);else if(v){var g,y;(null===(y=(null===(g=t.targetValues[h])||void 0===g?void 0:g.originalTModel).targets[v])||void 0===y?void 0:y.originalTargetName)===n&&c.set(t.oid,t)}}else(null===(d=t.targets[h])||void 0===d?void 0:d.invokerTargetName)===n&&c.set(t.oid,t)}}catch(e){a.e(e)}finally{a.f()}}})),c}},{key:"hasVisibleActiveChild",value:function(t){var n,r,i;if(e.shouldIgnoreChildForCompletion(t,"visible"))return!1;if((null===(n=t.activeTargetList)||void 0===n?void 0:n.length)>0)return!0;var a,o=l(null!==(r=null===(i=t.getChildren)||void 0===i?void 0:i.call(t))&&void 0!==r?r:[]);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 n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",a=new Map;return s(null!==(n=null===(r=t.activeChildrenMap)||void 0===r?void 0:r.values())&&void 0!==n?n:[]).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.exists()||"none"===t||"visible"===t&&!0!==(null===(n=e.visibilityStatus)||void 0===n?void 0:n.isVisible);var n}},{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,n){var r=e.targets[t];"object"===o(r)&&(r.childAction?r.childAction.includes(n)||r.childAction.push(n):r.childAction=[n])}},{key:"markAddChild",value:function(e,t,n){var r=e.targets[t];"object"===o(r)&&(r.addChildAction?r.addChildAction.includes(n)||r.addChildAction.push(n):r.addChildAction=[n])}},{key:"markFetchAction",value:function(t){if(t){var n=e.currentTargetName,r=t.targets[n];"object"===o(r)&&(r.fetchAction=!0,t.fetchActionTargetList.includes(n)||t.fetchActionTargetList.push(n))}}},{key:"wrapTarget",value:function(t,n,r){return a.u.controlTargetMap[r]||(t.targets[r]={value:n,originalTargetName:e.currentTargetName,originalTModel:e.currentTModel},n=t.targets[r]),n}},{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,r.zw)().domIslandSet.delete(e),r.qw.tmodelIdMap[e.oid]===e&&delete r.qw.tmodelIdMap[e.oid]}},{key:"getOriginalNames",value:function(e,t){var n,r,i,a,o,l;return e.isTargetImperative(t)?(n=null===(i=e.targetValues[t])||void 0===i?void 0:i.originalTModel,r=null===(a=e.targetValues[t])||void 0===a?void 0:a.originalTargetName):(n=null===(o=e.targets[t])||void 0===o?void 0:o.originalTModel,r=null===(l=e.targets[t])||void 0===l?void 0:l.originalTargetName),{originalTModel:n,originalTargetName:r}}},{key:"resetTargetState",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;if(t&&n){e.resetSingleTargetState(t,n),e.resetTargetChildActions(t,n,r,i);var a=t.targets[n],o=null==a?void 0:a.activateNextTarget,l=t.targets[o];l&&(o.endsWith("$")||!1!==l.active)&&(e.resetTargetsBetween(t,n,o,r,i),e.resetTargetPipelineState(t,o,r,i))}}},{key:"resetTargetPipelineState",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;if(t&&n){e.resetSingleTargetState(t,n),e.resetTargetChildActions(t,n,r,i);var a=t.targets[n],o=null==a?void 0:a.activateNextTarget;if(o){var l=t.targets[o];l&&(o.endsWith("$")||!1!==l.active)&&(e.resetTargetsBetween(t,n,o,r,i),e.resetTargetPipelineState(t,o,r,i))}}}},{key:"resetTargetsBetween",value:function(t,n,r){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(n),s=o.indexOf(r);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 n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,i="".concat(t.oid);if(!r.has(i)){r.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,n,r)}}}},{key:"resetTargetChildActions",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set,a=t.targets[n];if(a){var o=a.childAction?s(a.childAction):[],l=a.addChildAction?s(a.addChildAction):[];o.forEach((function(t){t&&e.resetTargetChildState(t,r,i)})),l.forEach((function(t){t&&e.resetTargetChildState(t,r,i)})),r.clearChildActions&&(Array.isArray(a.childAction)&&(a.childAction.length=0),Array.isArray(a.addChildAction)&&(a.addChildAction.length=0))}}},{key:"resetSingleTargetState",value:function(t,n){var r=t.targetValues[n];r&&(r.completeCount=0,r.triggeredByCompleteCount=0,r.resetFlag=!0,r.nextTargetUpdateCount=0,r.visibleCompleteSignature=void 0,r.status=""),t.cancelAnimation(),t.activatedTargets.length=0,t.removeFromActiveTargets(n),t.removeFromAnimatingMap(n),t.removeFromUpdatingTargets(n),e.clearPendingTarget(t,n)}},{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}}}],(n=null)&&d(t.prototype,n),u&&d(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,u}()},530:function(e,t,n){n.d(t,{L:function(){return l}});var r=n(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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;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:"setCurrentChild",value:function(e){this.currentChild=e}},{key:"setLocation",value:function(){var e=this.currentChild;e.targets.excludeXYCalc||(e.x=this.xNext+e.getLeftMargin(),e.y=this.yNext+e.getTopMargin())}},{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.getMinWidth();return this.currentChild.x+e+this.currentChild.getLeftMargin()>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(),n=e.getHeight()*t+this.currentChild.getTopMargin()+this.currentChild.getBottomMargin();this.xNext=this.scrollLeft-this.xOverflowReset;var r=this.yNext+n+e.val("appendNewLine");this.yEast=this.yNext,this.xSouth=this.xNext,this.ySouth=Math.max(this.ySouth,r),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 n,r,i,a,o,l,s=e.getMeasuringScale(),u=e.getBaseWidth()*s,c=e.getBaseHeight()*s;return"layout"===t?(n=e.x,r=e.y,i=n-e.getLeftMargin(),a=n+u+e.getRightMargin(),o=r-e.getTopMargin(),l=r+c+e.getBottomMargin()):"absolute"===t?(n=e.absX-this.absX,r=e.absY-this.absY,i=n,a=n+u+e.getRightMargin(),o=r,l=r+c+e.getBottomMargin()):(i=n=e.getX(),a=n+u,o=r=e.getY(),l=r+c),{left:i,top:o,right:a,bottom:l}}},{key:"nextLocation",value:function(){var e=this.currentChild,t=e.getMeasuringScale(),n=e.getTopBaseHeight()*t,i=e.getHeight()*t+this.currentChild.getTopMargin()+this.currentChild.getBottomMargin(),a="always"===e.getItemOverflowMode()&&r.a.isWidthDefined(this.container)?this.container.getWidth():e.getBaseWidth()*t+this.currentChild.getLeftMargin()+this.currentChild.getRightMargin();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+=n,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),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},952:function(e,t,n){n.d(t,{n:function(){return s}});var r=n(705),i=n(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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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 n,r=t.getRealParent();if((null===(n=null==r?void 0:r.targets.onVisibleChildrenChange)||void 0===n||!n)&&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;t.visibilityStatus||(t.visibilityStatus={});var c=t.visibilityStatus,d=e.getVisibilityClipRect(t.getParent());return d?(c.right=o-20<=d.r,c.left=o+s+20>=d.x,c.bottom=l-t.getTopMargin()-20<=d.b,c.top=l+u+t.getBottomMargin()+20>=d.y,c.clipX=d.x,c.clipY=d.y,c.clipR=d.r,c.clipB=d.b,c.parent=d.source,c.isVisible=c.left&&c.right&&c.top&&c.bottom):(c.right=!0,c.left=!0,c.bottom=!0,c.top=!0,c.clipX=void 0,c.clipY=void 0,c.clipR=void 0,c.clipB=void 0,c.parent="none",c.isVisible=!0),c.x=o,c.y=l,c.width=s,c.height=u,t.actualValues.isVisible=c.isVisible,c.isVisible}},{key:"getVisibilityClipRect",value:function(t){for(var n=e.getScreenViewportRect();t&&t!==(0,r.Bt)();){if(e.shouldClipByAncestor(t)){var i=e.getAncestorViewportRect(t);if((n=n&&!t.allTargetMap.onWindowScroll?e.intersectVisibilityRects(n,i):i).r<=n.x||n.b<=n.y)break}t=t.getRealParent()}return n}},{key:"getScreenViewportRect",value:function(){return{x:0,y:0,r:(0,r.r5)(),b:(0,r.c$)(),source:"screen"}}},{key:"shouldClipByAncestor",value:function(e){return e.managesOwnScroll()}},{key:"getAncestorViewportRect",value:function(e){var t,n,r=(null===(t=e.$dom)||void 0===t?void 0:t.getScrollLeft())||0,i=(null===(n=e.$dom)||void 0===n?void 0:n.getScrollTop())||0;return{x:e.absX+r,y:e.absY+i,r:e.absX+r+e.getWidth(),b:e.absY+i+e.getHeight(),source:e}}},{key:"intersectVisibilityRects",value:function(e,t){return{x:Math.max(e.x,t.x),y:Math.max(e.y,t.y),r:Math.min(e.r,t.r),b:Math.min(e.b,t.b),source:t.source}}}],(n=null)&&o(t.prototype,n),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,a}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__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},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_},tApp:function(){return App.E_},tRoot:function(){return App.Bt}});var App=__webpack_require__(705),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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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 n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_typeof(r))return r;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 n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.yStart,i=void 0===r?void 0:r,a=n.xStart,o=void 0===a?(0,App.r5)()/2:a,l=n.widthStart,s=void 0===l?50:l,u=n.heightStart,c=void 0===u?50:u,d=n.bFactor,h=void 0===d?.6:d,f=n.cFactor,v=void 0===f?.2:f,g=n.rotationStart,y=void 0===g?0:g,p=n.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=[y];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 n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.from,i=void 0===r?void 0:r,a=n.to,o=void 0===a?void 0:a,l=n.widthStart,s=void 0===l?void 0:l,u=n.heightStart,c=void 0===u?void 0:u,d=n.xStart,h=void 0===d?void 0:d,f=n.yStart,v=void 0===f?void 0:f,g=n.bFactor,y=void 0===g?.5:g,p=n.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:y,cFactor:m,rIncrement:0})}},{key:"shake",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.xStart,i=void 0===r?void 0:r,a=n.width,o=void 0===a?void 0:a,l=n.height,s=void 0===l?void 0:l,u=n.bFactor,c=void 0===u?.6:u,d=n.cFactor,h=void 0===d?.3:d,f=n.strength,v=void 0===f?20:f,g=TUtil.d.isDefined(o)?o:t.getWidth(),y=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:g,heightStart:y,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,n=void 0===t?0:t,r=e.endAngle,i=void 0===r?360:r,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=[],y=[],p=[],m=n;m<=i;m+=o){var b=m*(Math.PI/180);g.push(Math.floor(s+h*Math.cos(b))),y.push(Math.floor(c+v*Math.sin(b))),p.push(90+m)}return{x:{list:g},y:{list:y},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);window.TargetJS=__webpack_exports__})();
1
+ (function(){"use strict";var __webpack_modules__={768:function(e,t,n){n.d(t,{J:function(){return s}});var r=n(34),i=n(705);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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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 n=this.element.getAttribute("id");this.selector="string"==typeof n?n.startsWith("#")?n:"#"+n:null}this.hasRealChildren=!1,this.slotModeEnabled=!1,this.contentSlot=null,this.originalContent=void 0,this.textOnly=!0,this.transformProp=null,this.initTransformProp()}return t=e,n=[{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(){return!!this.selector&&!!e.query(this.selector)}},{key:"getElement",value:function(){return this.element}},{key:"supportsWAAPI",value:function(){return!(!this.element||"function"!=typeof this.element.animate)}},{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"body"===this.getTagName()||"true"===(null===(e=this.element)||void 0===e?void 0:e.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:"enableSlotMode",value:function(){var e;if(!this.slotModeEnabled)if(this.isNoSlotHost())this.slotModeEnabled=!0;else if(null!==(e=this.element)&&void 0!==e&&e.firstChild){for(var t=this.ensureContentSlotFirst(),n=t.nextSibling;n;){var r=n.nextSibling;t.appendChild(n),n=r}this.slotModeEnabled=!0}else this.slotModeEnabled=!0}},{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 r.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 r.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(!r.d.isDefined(e))return this.element.offsetWidth;this.element.style.width=r.d.isNumber(e)?"".concat(e,"px"):e}},{key:"height",value:function(e){if(!r.d.isDefined(e))return this.element.offsetHeight;this.element.style.height=r.d.isNumber(e)?"".concat(e,"px"):e}},{key:"css",value:function(e){if(!r.d.isDefined(e))return this.element.className;this.element.className=e}},{key:"setStyleByMap",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.style(n,e[n])}))}},{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),n=r.d.isDefined(t)?t.replace(/[^-\d.]/g,""):0;return parseFloat(n)}},{key:"getBoundingClientRect",value:function(){return this.element.getBoundingClientRect()}},{key:"isXYWithinElement",value:function(e,t){var n=this.getBoundingClientRect();return e>=n.left&&e<=n.right&&t>=n.top&&t<=n.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 n=t.nextSibling;n===e?this.element.insertBefore(e,t):(this.element.insertBefore(t,e),this.element.insertBefore(e,n))}},{key:"insertAfterContentSlot",value:function(e){if(this.element)if(this.isNoSlotHost())this.element.appendChild(e);else{var t=this.ensureContentSlotFirst(),n=t?t.nextSibling:this.element.firstChild;n?this.element.insertBefore(e,n):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 n=t+(this.findContentSlot()?1:0);this.element.insertBefore(e.$dom.element,this.element.children[n]||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){r.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){r.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(!r.d.isDefined(e))return this.element.innerHTML;this.element.innerHTML=e}},{key:"innerText",value:function(e){if(!r.d.isDefined(e))return this.element.innerText;this.element.innerText=e}},{key:"addClass",value:function(e){var t=this.attr("class"),n=t?t.includes(e)?t:"".concat(t," ").concat(e):e;n!==t&&this.attr("class",n)}},{key:"addEvent",value:function(e,t,n,r){this.element.addEventListener?this.element.addEventListener(e,t,{capture:!!n,passive:!!r}):this.element.attachEvent("on".concat(e),t)}},{key:"detachEvent",value:function(e,t,n){this.element.removeEventListener?this.element.removeEventListener(e,t,n):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,n){var i=r.d.isDefined(n)?e.query(n):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 n=new e;return n.create("template"),n.innerHTML(t.trim()),n}},{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,n){var r=e.findByClass(t,n);return r.length>0?r[0]:null}},{key:"findFirstByTag",value:function(t,n){var r=e.findByTag(t,n);return r.length>0?r[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=r.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,n="";e.data&&(n=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 n="json"===e.dataType?JSON.parse(this.responseText):this.responseText;e.success(n)}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(n)):(e.url+=n?e.url>""&&e.url.indexOf("?")>=0?"&".concat(n):"?".concat(n):"",t.open(e.type,e.url,!0),t.send())}}],n&&o(t.prototype,n),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,a}()},357:function(e,t,n){n.d(t,{_:function(){return M}});var r=n(249),i=n(980),a=n(585),o=n(705),l=n(333),s=n(34),u=n(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={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),l=new _(r||[]);return i(o,"_invoke",{value:x(e,n,l)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var v="suspendedStart",g="suspendedYield",y="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(A([])));M&&M!==n&&r.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 n(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)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function x(t,n,r){var i=v;return function(a,o){if(i===y)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:e,done:!0}}for(r.method=a,r.arg=o;;){var l=r.delegate;if(l){var s=O(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===v)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var u=f(t,n,r);if("normal"===u.type){if(i=r.done?p:g,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=p,r.method="throw",r.arg=u.arg)}}}function O(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=f(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.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 _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};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,n,r,i,a){void 0===a&&(a=Promise);var o=new C(h(e,n,r,i),a);return t.isGeneratorFunction(n)?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),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,_.prototype={constructor:_,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 n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.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=r.call(o,"catchLoc"),u=r.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 n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function h(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){h(a,r,i,o,l,"next",e)}function l(e){h(a,r,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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 g(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function y(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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}function S(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;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(),n=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=e.$dom.getElement();this.cancelElementAnimationsForKeys(c,Object.keys(t.keyMap));var d,h=Math.max(t.totalDuration,1),f=y(new Set(Object.values(t.keyMap).flatMap((function(e){return y(e)})))),v=g(f);try{for(v.s();!(d=v.n()).done;){var p=d.value;this.backfillKeyAcrossFramesUsingMorph(e,p,t.frames)}}catch(e){v.e(e)}finally{v.f()}var m=!1,b=t.frames.map((function(t){var n=T({},t.styleMap);if(n.offset=t.keyTime/h,Object.keys(t.tfMap).length){Object.keys(e.tfMap).forEach((function(t){e.tfMap[t]=e.val(t)}));var a=T(T({},e.tfMap),t.tfMap);n.transform=r.a.getTransformString(e,a),t.tfMap=a,m=!0}return i.T.addUnitsToFrame(n),n})),w=this.filterRedundantKeyframes(b),k={duration:h,fill:"none",iterations:1,easing:t.easing||"linear"};t.startTime=s.d.now(),e.lastBatch=t,e.lastBatch.transformAnimation=m,e.finalKeyframe=w[w.length-1],e.finalRawFrame=t.frames[t.frames.length-1];var S,M=c.animate(w,k),E=g(f);try{for(E.s();!(S=E.n()).done;){var D=S.value,C=l.g.getTargetName(D),x=this.getRecordId(e,D),O=l.g.getOriginalNames(e,D),L=O.originalTModel,P=O.originalTargetName,_={recId:x,cleanKey:C,originalKey:D,tmodel:e,anim:M,originalTModel:L,originalTargetName:P,frames:this.collectFramesForKey(t,C),status:"playing",needsFireOnStep:!0,hooks:n},A=e.targetValues[D];A&&(e.addToAnimatingMap(D),A.status=A.snapAnimation?A.status:"updating"),this.recordMap.set(x,_)}}catch(e){E.e(e)}finally{E.f()}this.startProgressPoller()}}}},{key:"pauseAnimations",value:function(e,t){var n,r,a;(n=t?t instanceof Map?new Set(t.keys()):new Set(t):new Set(null!==(r=null===(a=e.animatingMap)||void 0===a?void 0:a.keys())&&void 0!==r?r:[])).size&&this.animate(e,i.T.emptyBatch(),i.T.getAnimationHooks(),n)}},{key:"finalizeAnimation",value:function(e){var t,n=g(this.recordMap);try{for(n.s();!(t=n.n()).done;){var r=v(t.value,2),a=r[0],l=r[1];if(l.anim===e&&"playing"!==l.status&&"canceled"!==l.status){var s=l.tmodel,u=l.originalKey,c=l.cleanKey;s.removeFromAnimatingMap(u),this.recordMap.delete(a),this.completeRecord(s,l,c,u),s.hasAnimatingTargets()||(s.finalKeyframe&&s.hasDom()&&i.T.fixStyleByAnimation(s,s.finalKeyframe),s.lastBatch=void 0),l.status="complete",l.hooks.fireOnEnd(s,u),(0,o.fB)().scheduleOnlyIfEarlier(1,"animate-".concat(s.oid,"---").concat(u))}}}catch(e){n.e(e)}finally{n.f()}(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 n,r=new Set,a=new Map,o=!1,l=g(e.recordMap);try{for(l.s();!(n=l.n()).done;){var s,c,d,h,f=v(n.value,2)[1];if("canceled"!==f.status&&"detached"!==f.status){var y=f.tmodel,p=f.originalKey;if("finished"!==f.status&&u.O.shouldPauseTarget(y,p)){var m=a.get(y);m||(m=new Set,a.set(y,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",r.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=g(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=g(r);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,n){a.u.isTransformKey(t)?e.tfMap[t]=n:e.styleMap[t]=n}},{key:"completeRecord",value:function(e,t,n,r){if(e.finalRawFrame){var i=t.frames,a=i&&i[i.length-1],o=a?a.value:this.getAt(e.finalRawFrame,n);this.setAt(e,n,o),e.val(r,o);var l,s,u=e.targetValues[r];u&&(u.step=e.getTargetSteps(r),u.valuePointer=null!==(l=null===(s=u.valueList)||void 0===s?void 0:s.length)&&void 0!==l?l:0,u.value=o,e.setActual(r,o),e.isTargetImperative(r)&&(u.cycle=u.cycles))}}},{key:"backfillKeyAcrossFramesUsingMorph",value:function(e,t,n){for(var i=l.g.getTargetName(t),a=[],o=0;o<n.length;o++)void 0!==this.getAt(n[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=n[h],g=n[f],y=this.getAt(v,i),p=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,M=g.keyTime-S;if(!(!s.d.isDefined(b)||b<=0||M<=0))for(var E=w,D=h+1;D<f;D++){var C=n[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),_=r.a.morph(t,y,p,x);this.setAt(C,i,_),C.keyMeta.set(i,T(T({},m),{},{steps:P,stepOffset:E,segmentSteps:k,done:!1})),E=L}}}if(a.length){var A,j,I,V=a[a.length-1],N=n[V],F=this.getAt(N,i),H=null===(A=N.keyMeta)||void 0===A?void 0:A.get(i);if(!H)return;for(var B=null!==(j=null!==(I=H.segmentSteps)&&void 0!==I?I:H.steps)&&void 0!==j?j:0,R=V+1;R<n.length;R++){var U=n[R];this.setAt(U,i,F),U.keyMeta.set(i,T(T({},H),{},{steps:0,stepOffset:B,segmentSteps:B,done:!0}))}}}},{key:"fixTModelStyleFromFrame",value:function(e,t){if(e.hasDom()&&t){var n=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,n.transform=r.a.getTransformString(e,a)}i.T.addUnitsToFrame(n),i.T.fixStyleByAnimation(e,n)}}},{key:"freezeTModelAtCurrentTime",value:function(e){if(e.lastBatch){var t=Math.min(s.d.now()-e.lastBatch.startTime,e.lastBatch.totalDuration);e.lastBatch=this.cutLastBatch(e,e.lastBatch,t),this.fixTModelStyleFromFrame(e,e.lastBatch.frames[0])}}},{key:"collectFramesForKey",value:function(e,t){var n,r=[],i=e.totalDuration,a=g(e.frames);try{for(a.s();!(n=a.n()).done;){var o=n.value,l=this.getAt(o,t);if(void 0!==l){var s=o.keyMeta.get(t);r.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,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 r.sort((function(e,t){return e.time-t.time})),r.length>=2?r:void 0}},{key:"getRecordId",value:function(e,t){return"".concat(e.oid,"-").concat(t)}},{key:"delete",value:function(e){var t=e.recId,n=e.originalKey,r=e.tmodel;e.anim.cancel(),r.removeFromAnimatingMap(n),this.recordMap.delete(t)}},{key:"deleteAnimation",value:function(e){var t,n=g(this.recordMap);try{for(n.s();!(t=n.n()).done;){var r=v(t.value,2),i=r[0],a=r[1];i.startsWith("".concat(e.oid,"-"))&&this.delete(a)}}catch(e){n.e(e)}finally{n.f()}e.lastBatch=void 0,e.finalKeyframe=void 0,e.finalRawFrame=void 0,e.clearAnimatingMap()}},{key:"cancelKey",value:function(e,t){var n=this.getRecordId(e,t),r=this.recordMap.get(n);r&&(r.status="canceled")}},{key:"deleteAll",value:(h=f(d().mark((function e(){var t,n,r,a,o,l,s,u;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,n=g(this.recordMap);try{for(n.s();!(r=n.n()).done;)a=v(r.value,2),o=a[1],t.add(o.tmodel)}catch(e){n.e(e)}finally{n.f()}l=g(t);try{for(l.s();!(s=l.n()).done;)u=s.value,this.freezeTModelAtCurrentTime(u),i.T.detachAnimationsOnDeleteDom(u),u.lastBatch=void 0,u.finalKeyframe=void 0,u.finalRawFrame=void 0}catch(e){l.e(e)}finally{l.f()}this.recordMap.clear();case 8:case"end":return e.stop()}}),e,this)}))),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:"fillCutFrameFromRecords",value:function(e,t){var n,r=g(this.recordMap);try{for(r.s();!(n=r.n()).done;){var a,o,l,s,u,c,d,h=v(n.value,2)[1];if(h.tmodel===e&&"canceled"!==h.status&&"detached"!==h.status){var f=i.T.getValueFromAnim(h);if(f){var y=h.cleanKey,p=h.originalKey,m=e.targetValues[p];this.setAt(t,y,f.value),t.keyMeta.set(y,{steps:null!==(a=null!==(o=null!==(l=f.remainingSteps)&&void 0!==l?l:f.steps)&&void 0!==o?o:null==m?void 0:m.steps)&&void 0!==a?a:0,segmentSteps:null!==(s=null!==(u=f.steps)&&void 0!==u?u:null==m?void 0:m.steps)&&void 0!==s?s:0,interval:null!==(c=null==m?void 0:m.interval)&&void 0!==c?c:8,stepOffset:null!==(d=f.step)&&void 0!==d?d:0,valuePointer:f.valuePointer,cycle:f.cycle,done:"finished"===f.status})}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"cutLastBatch",value:function(e,t,n){for(var r=0;r<t.frames.length&&t.frames[r].keyTime<=n;)r++;if(r<t.frames.length&&n!==t.frames[r].keyTime){var i={keyTime:n,tfMap:{},styleMap:{},keyMeta:new Map};t.frames.splice(r,0,i),this.fillCutFrameFromRecords(e,i);var a,o=g(y(new Set(Object.values(t.keyMap).flatMap((function(e){return y(e)})))));try{for(o.s();!(a=o.n()).done;){var l=a.value;this.backfillKeyAcrossFramesUsingMorph(e,l,t.frames)}}catch(e){o.e(e)}finally{o.f()}t.frames=t.frames.slice(r)}return t.frames.forEach((function(e){e.keyTime=Math.max(0,e.keyTime-n)})),t.totalDuration=t.frames.length?t.frames[t.frames.length-1].keyTime:0,t}},{key:"callFireOnEndOnConflict",value:function(e,t,n){for(var r=t.keyMap,i=n.keyMap,a=0,o=Object.keys(i);a<o.length;a++){var l=o[a],s=r[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){var n,r=new Set(Object.keys(t.keyMap)),i=[],a=g(e.frames);try{for(a.s();!(n=a.n()).done;){var o,l=n.value,s=g(r);try{for(s.s();!(o=s.n()).done;){var u,c=o.value;delete l.styleMap[c],delete l.tfMap[c],null===(u=l.keyMeta)||void 0===u||u.delete(c)}}catch(e){s.e(e)}finally{s.f()}(Object.keys(l.styleMap).length||Object.keys(l.tfMap).length)&&i.push(l)}}catch(e){a.e(e)}finally{a.f()}for(var d={},h=0,f=Object.entries(e.keyMap);h<f.length;h++){var p=v(f[h],2),m=p[0],b=p[1];r.has(m)||(d[m]=b)}t.frames=[].concat(i,y(t.frames)),t.frames.sort((function(e,t){return e.keyTime-t.keyTime}));var w,k=[],S=g(t.frames);try{for(S.s();!(w=S.n()).done;){var M=w.value,E=k[k.length-1];if(E&&Math.abs(E.keyTime-M.keyTime)<1e-4){if(Object.assign(E.styleMap,M.styleMap),Object.assign(E.tfMap,M.tfMap),M.keyMeta){var D,C=g(M.keyMeta);try{for(C.s();!(D=C.n()).done;){var x=v(D.value,2),O=x[0],L=x[1];E.keyMeta.set(O,L)}}catch(e){C.e(e)}finally{C.f()}}}else k.push(M)}}catch(e){S.e(e)}finally{S.f()}t.keyMap=T(T({},d),t.keyMap),t.frames=k,t.totalDuration=t.frames.length?t.frames[t.frames.length-1].keyTime:0}},{key:"areFramesEqual",value:function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0,a=n;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]],n=1;n<e.length-1;n++){var r=t[t.length-1],i=e[n];this.areFramesEqual(r,i)||t.push(i)}return t.push(e[e.length-1]),t}},{key:"cancelElementAnimationsForKeys",value:function(e,t){if(e.getAnimations){var n,r=new Set(t),i=g(e.getAnimations());try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.effect;if(null!=o&&o.getKeyframes){var l,s=o.getKeyframes(),u=!1,c=g(s);try{for(c.s();!(l=c.n()).done;){for(var d=l.value,h=0,f=Object.keys(d);h<f.length;h++){var v=f[h];if(r.has(v)){u=!0;break}}if(u)break}}catch(e){c.e(e)}finally{c.f()}if(u)try{a.cancel()}catch(e){}}}}catch(e){i.e(e)}finally{i.f()}}}}],t&&k(e.prototype,t),n&&k(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,c,h}()},980:function(e,t,n){n.d(t,{T:function(){return p}});var r=n(333),i=n(585),a=n(249),o=n(705),l=n(161),s=n(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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function f(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;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,n,a){for(var l=Array.isArray(n)?n:[n],s=Array.isArray(a)?a:[a],u={},c={},d=new Map,h={},f={},v=new Map,g={},y=!1,p=0;p<l.length;p++){var m=l[p];y=!0;var b=s[p],T=t.targetValues[m]||r.g.emptyValue(),w=r.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(y){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,totalDuration:1};(0,o.s)().animate(t,S,e.getAnimationHooks())}}},{key:"fixStyleByAnimation",value:function(e,t){if(e.hasDom())for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];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,n=Object.keys(e);t<n.length;t++){var r=n[t];if("offset"!==r&&"transform"!==r){var a=e[r];null==a||Number.isNaN(a)?delete e[r]:"number"==typeof a&&i.u.styleWithUnitMap[r]&&(("width"===r||"height"===r)&&a<0&&(a=0),e[r]="".concat(a,"px"))}}}},{key:"getAnimationHooks",value:function(){return{morph:function(e,t,n,r,i,o){return a.a.easingMorph(e,t,n,r,i,o)},fireOnStep:function(e,t,n){return(0,o.HJ)().fireOnStep(e,t,n)},fireOnEnd:function(e,t){return(0,o.HJ)().fireOnEnd(e,t)}}}},{key:"addToUpdatingTargets",value:function(e,t){var n,r=[],i=h((0,o.s)().recordMap);try{for(i.s();!(n=i.n()).done;){var a=d(n.value,2)[1];a.tmodel===e&&(t&&!t.has(a.originalKey)||r.push(a))}}catch(e){i.e(e)}finally{i.f()}for(var l=0,s=r;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 n,r=[],i=h((0,o.s)().recordMap);try{for(i.s();!(n=i.n()).done;){var a=d(n.value,2)[1];a.tmodel===e&&(t&&!t.has(a.originalKey)||r.push(a))}}catch(e){i.e(e)}finally{i.f()}for(var l=s.d.now(),u=0,c=r;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 n,i=h(e.frames);try{for(i.s();!(n=i.n()).done;){var a,o=n.value,l=h(t);try{for(l.s();!(a=l.n()).done;){var s=a.value,u=r.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=r.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 n=t.tmodel,r=t.originalKey,i=t.cleanKey;if(n.hasDom()){var a=e.getValueFromAnim(t);if(a){var l=a.value,u=a.step,c=a.steps,d=a.cycle,h=a.valuePointer;(0,o.s)().setAt(n,i,l),n.val(r,l);var f=n.targetValues[r];if(f){s.d.isDefined(u)&&s.d.isDefined(c)&&c>0&&(f.step=u),s.d.isDefined(h)&&(f.valuePointer=h),s.d.isDefined(d)&&(f.cycle=d),n.setActual(r,l);var v="".concat(d,":").concat(h,":").concat(u);t.needsFireOnStep&&u>0&&c>0&&t.lastFireOnStepKey!==v&&(t.lastFireOnStepKey=v,t.hooks.fireOnStep(n,r,u)||(t.needsFireOnStep=!1))}return a}}}},{key:"getValueFromAnim",value:function(e){var t,n,r,i,o,l,u,c=e.originalKey,d=e.anim,h=e.frames;if(h){var f=null===(t=d.effect)||void 0===t||null===(n=t.getComputedTiming)||void 0===n?void 0:n.call(t);if(f){var v=s.d.isDefined(f.progress)?s.d.limit(f.progress,0,1):1,g=h.length-1,y=0;if(v<=h[0].offset)y=0;else if(v>=h[g].offset)y=g-1;else for(var p=0;p<g;p++)if(v>=h[p].offset&&v<h[p+1].offset){y=p;break}var m=h[y],b=h[y+1],T=m.value,w=b.value,k=m.offset,S=b.offset-k;if(!(S<=0)){var M,E,D,C,x=s.d.limit((v-k)/S,0,1),O=a.a.morph(c,T,w,x),L=b.steps;if(!s.d.isDefined(L)||L<=0)return{value:O,framePointer:y,step:b.segmentSteps,steps:b.segmentSteps,from:T,to:w,valuePointer:null!==(M=null!==(E=b.valuePointer)&&void 0!==E?E:m.valuePointer)&&void 0!==M?M:0,cycle:null!==(D=null!==(C=b.cycle)&&void 0!==C?C:m.cycle)&&void 0!==D?D:0,status:b.done?"finished":"playing"};var P=Math.round(x*L);P=s.d.limit(P,0,L);var _=b.stepOffset||0,A=null!==(r=b.segmentSteps)&&void 0!==r?r:_+L,j=s.d.limit(_+P,0,A),I=b.done?"finished":"playing";return{value:O,step:j,steps:A,valuePointer:null!==(i=null!==(o=b.valuePointer)&&void 0!==o?o:m.valuePointer)&&void 0!==i?i:0,cycle:null!==(l=null!==(u=b.cycle)&&void 0!==u?u:m.cycle)&&void 0!==l?l:0,from:T,to:w,status:I}}}}}},{key:"detachAnimationsOnDeleteDom",value:function(t){var n,r=(0,o.s)().recordMap,i=new Set,a=new Set,s=h(r);try{for(s.s();!(n=s.n()).done;){var u=d(n.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 n,r=(0,o.s)().recordMap,i=h(r);try{for(i.s();!(n=i.n()).done;){var a=d(n.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),r.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 n;if(t&&null!==(n=t.frames)&&void 0!==n&&n.length)for(var r=0,i=Object.entries(t.keyMap);r<i.length;r++){var a,l=d(i[r],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,y=1;y<t.frames.length;y++){var p,m=t.frames[y];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;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 n,r=e.totalDuration||0,i=!1,a=h(e.frames);try{for(a.s();!(n=a.n()).done;){var o,l=n.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,[r].concat(c(e.frames.map((function(e){return e.keyTime}))))):0,i}},{key:"handleWebAnimationAPI",value:function(t,n,r,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],y=t.waapiBatch||(t.waapiBatch={frames:[],easing:void 0,keyMap:{},totalDuration:0});g&&e.removeCleanKeyFromBatch(y,n)&&(h=0);var p=i.u.isTransformKey(n),m=function(e){for(var t=Math.max(0,e+h),n=0;n<y.frames.length;n++){var r=y.frames[n];if(Math.abs(r.keyTime-t)<1e-4)return r}var i={keyTime:t,tfMap:{},styleMap:{},keyMeta:new Map};return y.frames.push(i),i},b=function(e,t){p?e.tfMap[n]=t:e.styleMap[n]=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(n,{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 _=x;_<S.length;_++){var A,j=M[(_-1)%M.length],I=E[(_-1)%E.length]||8,V=C===(null!==(A=a.cycle)&&void 0!==A?A:0)&&_===s?u:0,N=Math.max(j-V,0);if(!(N<=0)){var F=m(T+=N*I);b(F,S[_]),F.keyMeta.set(n,{steps:N,segmentSteps:j,interval:I,stepOffset:V,valuePointer:_,cycle:C})}}C++,x=1}}else{var H;d=d||8;var B=Math.max(c-u,0);if(B<=0)return t.val(r,l),a.step=c,0;T=B*d,v||b(m(0),o);var R=m(T);b(R,l),R.keyMeta.set(n,{steps:B,segmentSteps:c,interval:d,stepOffset:u,valuePointer:0,cycle:null!==(H=a.cycle)&&void 0!==H?H:0})}return T<=0?(t.removeFromUpdatingTargets(r),0):(t.getTargetEasing(r)&&(y.easing=t.getTargetEasing(r)),y.totalDuration=Math.max(0,y.totalDuration,h+T),((f=y.keyMap)[n]||(f[n]=new Set)).add(r),t.removeFromUpdatingTargets(r),t.addToAnimatingMap(r),T)}}],(n=null)&&g(t.prototype,n),u&&g(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,u}()},705:function(e,t,n){n.d(t,{qw:function(){return Ue},hd:function(){return Ye},aK:function(){return ze},s:function(){return Ze},UR:function(){return ot},kQ:function(){return Ke},qI:function(){return qe},zw:function(){return et},EI:function(){return Qe},cI:function(){return Xe},S9:function(){return it},fB:function(){return Ge},c$:function(){return nt},r5:function(){return tt},iP:function(){return at},HJ:function(){return Je},U$:function(){return rt},W_:function(){return We},E_:function(){return Le},Bt:function(){return $e}});var r=n(768),i=n(90),a=n(756),o=n(34),l=n(585),s=n(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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function g(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;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 r.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={touch: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},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)}return t=e,n=[{key:"detachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){Le.$window.detachEvent(t,e.bindedHandleWindowEvent)}))}},{key:"attachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){Le.$window.addEvent(t,e.bindedHandleWindowEvent)}))}},{key:"detachDocumentEvents",value:function(e){var t=this,n=l.u.events[e];Object.keys(n).forEach((function(e){var r=n[e];t.$document.detachEvent(e,t.bindedParentHandleEvent,r.capture)}))}},{key:"attachDocumentEvents",value:function(e){var t=this,n=l.u.events[e];Object.keys(n).forEach((function(e){var r=n[e];t.$document.addEvent(e,t.bindedParentHandleEvent,r.capture,r.passive)}))}},{key:"attachEvents",value:function(e){var t,n=d(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.externalEventMap){var i,a=d(r.externalEventMap);try{for(a.s();!(i=a.n()).done;){var o=c(i.value,1)[0];this.attachTargetEvents(r,o,!0)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){n.e(e)}finally{n.f()}}},{key:"attachTargetEvents",value:function(e,t,n){var r=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?Le.$window:e.hasDom()?e.$dom:null;if(!u)return!1;var c="".concat(i," ").concat(s?"win":"dom"),d=r.eventTargetMap[c]===u,h="".concat(e.oid," ").concat(t," ").concat(s?"win":"dom"),f=r.attachedEventMap[h]&&r.attachedEventMap[h].$dom===u;!n&&d&&f||(u.detachEvent(t,r.bindedHandleEvent,l.capture),u.addEvent(t,r.bindedHandleEvent,l.capture,l.passive),r.eventTargetMap[c]=u,r.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 n=t[e],r=this.attachedEventMap[n],i=r.$dom,a=r.event,o=r.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||this.currentTouch.pinchDelta){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&&0===this.touchCount&&(this.scrollEndTimeStamp.x=0,this.queueScrollEndEvent("x",this.currentHandlers.scrollLeft)),!this.currentTouch.deltaY&&this.scrollEndTimeStamp.y&&e>=this.scrollEndTimeStamp.y&&0===this.touchCount&&(this.queueScrollEndEvent("y",this.currentHandlers.scrollTop),this.scrollEndTimeStamp.y=0),Ge().schedule(10,"scroll decay")}}},{key:"findEventHandlers",value:function(e){var t,n,i,o,l,s,u,c,d=e.tmodel,h=e.eventType;d&&(t=a.X.findFirstClickHandler(d),n=a.X.findFirstSwipeHandler(d),u=a.X.findFirstEnterHandler(d),c=a.X.findFirstLeaveHandler(d),i=a.X.findFirstScrollLeftHandler(d,h),o=a.X.findFirstScrollTopHandler(d,h),l=a.X.findFirstPinchHandler(d),s=r.J.hasFocus(d)?d: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!=d&&d.canHandleEvent("onHover")?d:void 0,this.currentHandlers.click=t,this.currentHandlers.swipe=n,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,t=this.eventQueue.shift();(this.canFindHandlers&&!t.synthetic&&this.findEventHandlers(t),"end"===t.eventType||"click"===t.eventType)&&("end"===t.eventType&&(this.currentHandlers.end=this.currentHandlers.start,null===(e=this.currentHandlers.end)||void 0===e||e.markLayoutDirty("end-event"),this.currentHandlers.start=void 0),this.canFindHandlers=!0);this.currentEventName=t.eventName,this.currentEventType=t.eventType,this.currentEventTModel=t.tmodel,this.currentOriginalEvent=t.originalEvent,this.currentTouch.key=""}},{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,n,r){var i,l,s,u,c,d,h,f,v,g,y=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.start?this.currentHandlers.start: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 _=0,A=this.eventQueue.length-1;A>=0;A--){var j;if((null===(j=this.eventQueue[A].eventItem)||void 0===j?void 0:j.eventType)!==S)break;if(++_>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.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.start=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&&(V!==this.currentHandlers.swipe||this.getSwipeDistance()<5);V&&N&&(V.markEventDirty(),V.markLayoutDirty("event"),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.touchCount=0,t.stopPropagation();break;case"wheel":this.preventDefault(b,w)&&(t.preventDefault(),t.stopPropagation()),this.touchCount=0,this.wheel(t);break;case"mouseleave":n&&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.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(),Qe().getAvailableDoms().forEach((function(e){e.targets.onResize&&e.markLayoutDirty("resize-event")}));break;case"scroll":clearTimeout(this.windowScrollEndTimer),this.windowScrollEndTimer=setTimeout((function(){y.queueWindowScrollEndEvent("x",b),y.queueWindowScrollEndEvent("y",b),y.windowScrollEndTimer=0}),450),r?(this.windowEpoch++,this.windowScrollX=0|window.scrollX,this.windowScrollY=0|window.scrollY,et().domIslandSet.forEach((function(e){e.markLayoutDirty("window-scroll-event")}))):b.markLayoutDirty("container-scroll-event")}Ge().schedule(0,"".concat(null===(g=b)||void 0===g?void 0:g.oid,"-").concat(p,"-").concat(w,"-").concat((t.target.tagName||"").toUpperCase()))}}}},{key:"queueScrollEndEvent",value:function(e,t){if(t){var n="x"===e?"scrollleftend":"scrolltopend";this.removeScrollEndEvents(e),this.eventQueue.push({eventName:n,eventType:n,originalName:n,tmodel:t,originalEvent:void 0,timeStamp:o.d.now(),synthetic:!0}),this.eventEpoch++,t.markEventDirty(),t.markLayoutDirty(n),Ge().schedule(0,n)}}},{key:"queueWindowScrollEndEvent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"window",r="x"===e?"windowscrollleftend":"windowscrolltopend";this.removeScrollEndEvents(e),this.eventQueue.push({eventName:r,eventType:r,originalName:r,tmodel:t,originalEvent:void 0,timeStamp:o.d.now(),synthetic:!0,scrollSource:n}),this.eventEpoch++,et().domIslandSet.forEach((function(e){e.markEventDirty(),e.markLayoutDirty(r)})),Ge().schedule(0,r)}},{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($e(),"screenWidth"),s.j.executeDeclarativeTarget($e(),"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,n=e.currentTarget||e.target;return n&&1===n.nodeType&&(t=n.getAttribute("tgjs-oid")||n.id),t&&Le.manager.visibleOidMap[t]||(t=null==n?void 0:n.id)&&Qe().visibleOidMap[t]||(t=r.J.findNearestParentWithId(e.target)),Qe().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}},{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:"getSwipeDistance",value:function(){return this.start0&&this.end0?o.d.distance(this.start0.originalX,this.start0.originalY,this.end0.x,this.end0.y):0}},{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.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,n,r=this.currentOriginalEvent,i=null===(t=e.$dom)||void 0===t?void 0:t.element,a=null==r?void 0:r.target;return!!(i&&a&&(a===i||null!==(n=i.contains)&&void 0!==n&&n.call(i,a)))}},{key:"getOrientation",value:function(){return this.currentTouch.orientation}},{key:"countTouches",value:function(e){var t,n;return(null===(t=e.touches)||void 0===t?void 0:t.length)||(null===(n=e.originalEvent)||void 0===n||null===(n=n.touches)||void 0===n?void 0:n.length)}},{key:"getTouch",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(null===(t=e.touches)||void 0===t?void 0:t[r])||(null===(n=e.originalEvent)||void 0===n||null===(n=n.touches)||void 0===n?void 0:n[r])||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=this.start0.x-this.end0.x,n=this.start0.y-this.end0.y;this.setDeltaXDeltaY(t,n,"touch")}}else if(this.touchCount>=2){this.end0=this.getTouch(e),this.end1=this.getTouch(e,1);var r=o.d.distance(this.start0.x,this.start0.y,this.start1.x,this.start1.y),i=o.d.distance(this.end0.x,this.end0.y,this.end1.x,this.end1.y)-r;this.currentTouch.pinchDelta=i>0?.3:i<0?-.3:0}}},{key:"end",value:function(){if(this.touchCount<=1&&this.start0){var e,t=0,n=0,r=0;o.d.isDefined(this.end0)&&(t=this.start0.originalX-this.end0.x,n=this.start0.originalY-this.end0.y,r=o.d.now()-this.start0.timeStamp<250?o.d.now()-this.start0.timeStamp:0),"horizontal"===this.currentTouch.orientation&&Math.abs(t)>0&&r>0?(e=o.d.momentum(0,t,r),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(n)>0&&r>0&&(e=o.d.momentum(0,n,r),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,n){var r=Math.abs(e)-Math.abs(t);r>=1?("none"===this.currentTouch.orientation||"vertical"===this.currentTouch.orientation&&r>=2||"horizontal"===this.currentTouch.orientation)&&(this.currentTouch.orientation="horizontal"):("none"===this.currentTouch.orientation||"horizontal"===this.currentTouch.orientation&&r<=-2||"vertical"===this.currentTouch.orientation)&&(this.currentTouch.orientation="vertical");var i=o.d.now(),a="touch"===n?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=n,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)&&Ge().schedule(a,"scroll-end-check")}},{key:"wheel",value:function(e){var t=0,n=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,n=e.deltaY):"wheelDeltaX"in e?(t=-e.wheelDeltaX/120,n=-e.wheelDeltaY/120):"wheelDelta"in e?t=-e.wheelDelta/120:"detail"in e&&(t=e.detail/3),this.setDeltaXDeltaY(t,n,"wheel")}}],n&&v(t.prototype,n),i&&v(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,i}();g(p,"MAX_EVENT_QUEUE_SIZE",10),g(p,"MAX_EVENT_TYPE_CAPACITY",2);var m=n(333),b=["url","cacheId"];function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){return E="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},E(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function C(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(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.cacheMap={},this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.fetchSeq=0},t=[{key:"clear",value:function(){this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.fetchSeq=0}},{key:"fetchCommon",value:function(e,t,n,r,i){return m.g.markFetchAction(n),this.isFetched(t)?r[e]||(r[e]={fetchId:e,cacheId:t,startTime:o.d.now(),targets:[{tmodel:n,targetName:n.key}],fetchMap:r}):r[e]||(r[e]={fetchId:e,cacheId:t,startTime:o.d.now(),targets:[{tmodel:n,targetName:n.key}],fetchMap:r},i()),this.addToTModelKeyMap(n,n.key,e,t),e}},{key:"fetch",value:function(e,t,n,r){var i=this;if(!t||"object"!==E(t)||Array.isArray(t))(Array.isArray(t)?t:[t]).forEach((function(t){i.fetchOne(e,t,n,r)}));else{var a=t.url,o=t.cacheId,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,b);this.fetchOne(e,a,l,null!=o?o:r)}}},{key:"fetchOne",value:function(e,t,n,r){var i=this,a=this.getFetchKey(e,t,n);this.fetchCommon(a,r,e,this.fetchingAPIMap,(function(){i.ajaxAPI(t,n,i.fetchingAPIMap[a])}))}},{key:"fetchImage",value:function(e,t,n){var r=this;(Array.isArray(t)?t:[t]).forEach((function(t){var i=r.getFetchKey(e,t);r.fetchCommon(i,n,e,r.fetchingImageMap,(function(){r.loadImage(t,r.fetchingImageMap[i])}))}))}},{key:"getFetchKey",value:function(e,t,n){var r=n?"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key),"_").concat(JSON.stringify(n)):"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key));return"".concat(r,"_").concat(++this.fetchSeq)}},{key:"getTModelKey",value:function(e,t){return"".concat(document.URL,"_").concat(e.oid,"_").concat(t)}},{key:"addToTModelKeyMap",value:function(e,t,n,r){var i,a,l=this.getTModelKey(e,t),s=o.d.getLoadTargetName(t);!this.isLoadingComplete(e,t)&&this.tmodelKeyMap[l]&&e.val(s)||(null!==(a=(i=this.tmodelKeyMap)[l])&&void 0!==a||(i[l]={fetchMap:{},entryCount:0,resultCount:0,errorCount:0,activeIndex:0,accessIndex:0}),e.val(s,[])),this.tmodelKeyMap[l].fetchMap[n]||(this.tmodelKeyMap[l].fetchMap[n]={fetchId:n}),this.tmodelKeyMap[l].fetchMap[n].order=this.tmodelKeyMap[l].entryCount,this.tmodelKeyMap[l].entryCount++,e.val(s).push(void 0),r&&this.isFetched(r)&&(this.fetchingAPIMap[n].startTime=o.d.now(),this.handleSuccess(this.fetchingAPIMap[n],this.cacheMap[r].result))}},{key:"removeFromTModelKeyMap",value:function(e,t){var n=this.getTModelKey(e,t);delete this.tmodelKeyMap[n]}},{key:"isLoading",value:function(e,t){var n=this.getTModelKey(e,t);return this.tmodelKeyMap[n]}},{key:"isLoadingSuccessful",value:function(e,t){var n=this.getTModelKey(e,t);return this.tmodelKeyMap[n]&&this.tmodelKeyMap[n].resultCount===this.tmodelKeyMap[n].entryCount}},{key:"isLoadingComplete",value:function(e,t){var n=this.getTModelKey(e,t);return!!this.tmodelKeyMap[n]&&this.tmodelKeyMap[n].resultCount===this.tmodelKeyMap[n].entryCount&&this.tmodelKeyMap[n].activeIndex===this.tmodelKeyMap[n].entryCount&&this.tmodelKeyMap[n].resultCount===e.getTargetCycles(t)}},{key:"resetLoadingError",value:function(e,t){var n=this.getTModelKey(e,t),r=this.tmodelKeyMap[n];r&&(r.errorCount=0)}},{key:"nextActiveItem",value:function(e,t){var n=this.getTModelKey(e,t),r=this.tmodelKeyMap[n];return!!r&&r.activeIndex++}},{key:"isNextLoadingItemSuccessful",value:function(e,t){var n=this.getTModelKey(e,t),r=this.tmodelKeyMap[n];if(!r)return!1;var i=o.d.getLoadTargetName(t),a=e.val(i);return Array.isArray(a)&&o.d.isDefined(a[r.activeIndex])&&o.d.isDefined(a[r.accessIndex])}},{key:"getLoadingItemValue",value:function(e,t,n){var r=this.getTModelKey(e,t),i=this.tmodelKeyMap[r];if(i&&!(i.accessIndex>=i.resultCount)){var a,l=o.d.getLoadTargetName(t),s=e.val(l);return s&&(null!=n&&n.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,n;return null!==(t=null===(n=this.cacheMap[e])||void 0===n?void 0:n.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 n=e.getTargetCycle(t),r=e.getTargetCycles(t);return e.isTargetInLoop(t)||n<r-1?"active":this.isLoadingSuccessful(e,t)?"done":"fetching"}},{key:"handleSuccess",value:function(e,t){var n=this,r=o.d.now(),i=e.fetchId,a=e.cacheId,l=e.startTime,s=e.targets,u=e.fetchMap,c={fetchingPeriod:r-l,success:!0,result:t};s.forEach((function(e){var t=e.tmodel,r=e.targetName,a=n.getTModelKey(t,r),l=n.tmodelKeyMap[a],s=o.d.getLoadTargetName(r);if(l&&l.fetchMap[i]){var u=l.fetchMap[i];n.callOnSuccessHandler(t,r,S(S({},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(r,c.result);var h=n.calculateTargetStatus(t,r);t.setTargetStatus(r,h),t.setLastUpdate(r),m.g.shouldActivateNextTarget(t,r)}})),delete u[i],a&&(this.cacheMap[a]=c),Ge().schedule(0,"api_success_".concat(i))}},{key:"handleError",value:function(e,t){var n=this,r=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=n.getTModelKey(a,s),c=n.tmodelKeyMap[u],d=o.d.getLoadTargetName(s);if(c&&c.fetchMap[i]){var h=c.fetchMap[i],f={fetchingPeriod:r-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++,n.callOnErrorHandler(a,s);var g=n.calculateTargetStatus(a,s);a.setTargetStatus(s,g),a.setLastUpdate(s),m.g.shouldActivateNextTarget(a,s)}})),delete u[i],a&&delete this.cacheMap[a],Ge().schedule(0,"api_error_".concat(i))}},{key:"callOnSuccessHandler",value:function(e,t,n){var r,i=null===(r=e.targets[t])||void 0===r?void 0:r.onSuccess;i&&("function"==typeof i?(e.setTargetMethodName(t,"onSuccess"),i.call(e,n)):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 n,r=null===(n=e.targets[t])||void 0===n?void 0:n.onError;r&&("function"==typeof r?(e.setTargetMethodName(t,"onSuccess"),r.call(e,e.val(t))):Array.isArray(r)?r.forEach((function(t){return m.g.activateSingleTarget(e,t)})):m.g.activateSingleTarget(e,r))}},{key:"ajaxAPI",value:function(e,t,n){var i,a,o,l=this,s={url:e,dataType:"json",type:"GET",success:function(e){return l.handleSuccess(n,e)},error:function(e){return l.handleError(n,e)}};if((u=t)&&"object"===E(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=T(v[f],2),y=g[0],p=g[1];"requestType"===y?d.type=p:c.has(y)?d[y]=p:h[y]=p}var m=S(S(S({},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),r.J.ajax(m)}else r.J.ajax(S(S({},s),{},{data:t}))}},{key:"loadImage",value:function(e,t){var n=this,r=new Image;r.src=e,r.onload=function(){var e={width:r.width,height:r.height,src:r.src};n.handleSuccess(t,e)},r.onerror=function(){n.handleError(t,"not found")}}}],t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),O=n(714),L=n(249),P=n(161),_=n(980);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 j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||V(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 I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=V(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function V(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t,n){return(t=K(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(){R=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(r||[]);return i(o,"_invoke",{value:D(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",y={};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!==n&&r.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 n(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"==A(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,n,r){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(r.method=a,r.arg=o;;){var l=r.delegate;if(l){var s=C(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?g:f,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(A(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,n,r,i,a){void 0===a&&(a=Promise);var o=new E(c(e,n,r,i),a);return t.isGeneratorFunction(n)?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),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,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 n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.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=r.call(o,"catchLoc"),u=r.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 n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function U(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function W(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){U(a,r,i,o,l,"next",e)}function l(e){U(a,r,i,o,l,"throw",e)}o(void 0)}))}}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K(r.key),r)}}function K(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(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.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 n=t[e++],r=n.activatedTargets.slice(0);n.activatedTargets.length=0,Je().applyTargetValues(n,r),n.updatingTargetList.length>0&&Je().setActualValues(n,n.updatingTargetList),this.hasLocationMap[n.oid]||this.addToLocationList(n)}}},{key:"calculateAll",value:(i=W(R().mark((function e(){var t,n,r,i,a=arguments;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:8,n=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=[],r=[{container:$e(),stage:"init",children:[],viewport:void 0,index:0}],i={budgetMs:t,sliceStart:o.d.now(),calcEpoch:n},e.next=13,this.processStack(r,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:(r=W(R().mark((function e(t,n){var r,i,a,l,s,u,c,d=this;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=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,n=e.children,r=e.viewport,i=n[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"))?r.appendNewLine():r.nextLocation(),t.calcContentWidthHeight()),(i.hasEventDirty()||Ke().getEventType()||Ke().hasDelta())&&(d.checkExternalEvents(i),i.hasEventDirty()&&(i.processedEventEpoch=i.eventDirtyEpoch))),e.index++,e.index<e.children.length&&(e.stage="child")},l=function(e){var n,r=e.container,i=e.children,a=e.viewport,o=i[e.index];if(o){if(o.isDomIsland()&&o.originWindowEpoch!==Ke().getWindowEpoch()&&o.hasDom()&&(o.calcAbsolutePositionFromDom(),o.originWindowEpoch=Ke().getWindowEpoch()),a.setCurrentChild(o),!o.getDirtyLayout()&&!o.currentStatus&&0===o.activeTargetList.length)return d.calcNextLocation(o,r,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=o.actualValues.x,f=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),L.a.isXDefined(o)||(o.actualValues.x=o.x),L.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===(n=o.getDirtyLayout())||void 0===n?void 0:n.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(n.calcEpoch===this.calcEpoch){e.next=7;break}return e.abrupt("return");case 7:if(!(o.d.now()-n.sliceStart>n.budgetMs)){e.next=14;break}return e.next=10,new Promise(requestAnimationFrame);case 10:if(n.calcEpoch===this.calcEpoch){e.next=12;break}return e.abrupt("return");case 12:return n.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=H({},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 r(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 r.apply(this,arguments)})},{key:"processAfterStack",value:function(){for(var e in this.visibleChildrenLengthMap){var t=this.visibleChildrenLengthMap[e],n=t.tmodel,r=t.visibleCount;!n.isVisible()||r===n.visibleChildren.length&&0!==n.visibleChildren.length||(this.runEventTargets(n,["onVisibleChildrenChange"]),this.visibleChildrenLengthMap[e].visibleCount=n.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()?O.M.generate(e):(e.lastChildrenUpdate.additions.length=0,e.lastChildrenUpdate.deletions.length=0,O.M.bracketMap[e.oid]&&(delete O.M.bracketMap[e.oid],delete O.M.pageMap[e.oid]),e.getChildren())}},{key:"calcNextLocation",value:function(e,t,n){var r;n.setLocation(),n.isOverflow()&&(n.overflow(),n.setLocation(),e.markLayoutDirty("overflow")),e.isIncluded()&&e.targets.onVisibleChildrenChange&&!this.visibleChildrenLengthMap[e.oid]&&(this.visibleChildrenLengthMap[e.oid]={tmodel:e,visibleCount:e.visibleChildren.length}),L.a.isXDefined(e)||(e.actualValues.x=e.x),L.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===(r=e.styleTargetMap)||void 0===r?void 0:r.size)>0||e.updatingTargetList.length>0)&&this.addToLocationList(e),this.calculateVisibility(e),e.isInFlow()&&(o.d.isNumber(e.val("appendNewLine"))?n.appendNewLine():n.nextLocation(),t.calcContentWidthHeight())}},{key:"calculateVisibility",value:function(e){var t,n,r,i=e.isVisible(),a=null!==(t=null===(n=e.visibilityStatus)||void 0===n?void 0:n.isVisible)&&void 0!==t?t:void 0;if(e.visibilityStatus||(e.visibilityStatus={}),e.visibilityStatus.lastIsVisible=e.visibilityStatus.isVisible,o.d.isDefined(e.targets.isVisible))r="function"==typeof e.targets.isVisible.value?e.targets.isVisible.value.call(e):!!e.targets.isVisible,e.actualValues.isVisible=r,e.isNowVisible=!i&&r,e.isNowInvisible=(i||void 0===i)&&!r;else{var l=e.calcVisibility();r=l,e.isNowVisible=!i&&r||!a&&l,e.isNowInvisible=(i||void 0===i)&&!r||a&&!l,e.actualValues.isVisible=r}(e.isNowVisible||e.isNowInvisible)&&e.markLayoutDirty("isNowVisible"),e.isNowInvisible&&this.addToLocationList(e),P.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 n=e.activatedTargets.slice(0);e.activatedTargets.length=0;var r,i=I(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;Je().applyTargetValue(e,a)}}catch(e){i.e(e)}finally{i.f()}}P.O.pauseResumeSchedule(e),e.activateChangedPassiveTargets(),Je().applyTargetValues(e),e.updatingTargetList.length>0&&Je().setActualValues(e,e.updatingTargetList),L.a.shouldMeasureWidthFromDom(e)&&(e.hasDom()?L.a.setWidthFromDom(e):e.markLayoutDirty("width")),L.a.shouldMeasureHeightFromDom(e)&&(e.hasDom()?L.a.setHeightFromDom(e):e.markLayoutDirty("height")),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 n,r=[],i=l.u.allEventMap,a=I(t);try{for(a.s();!(n=a.n()).done;){var o=j(n.value,1)[0];i[o](e)&&r.push(e.allTargetMap[o])}}catch(e){a.e(e)}finally{a.f()}this.runEventTargets(e,r)}}},{key:"checkInternalEvents",value:function(e){var t=[],n=l.u.internalEventMap,r=e.internalEventMap;if((null==r?void 0:r.size)>0){var i,a=I(r);try{for(a.s();!(i=a.n()).done;){var o=j(i.value,1)[0];n[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){var n=e.targets[t];if(e.isTargetEnabled(t)&&!e.isTargetUpdating(n)){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,n){if(e.hasValidAnimation()){var r=[],i=[],a=e.actualValues.x!==t,o=e.actualValues.y!==n;if(a&&"updating"!==e.getTargetStatus(e.allTargetMap.x)&&(r.push("x"),i.push(e.val("x"))),o&&"updating"!==e.getTargetStatus(e.allTargetMap.y)&&(r.push("y"),i.push(e.val("y"))),r.length>0)return void _.T.overrideAnimatedKeyWithSnap(e,r,i)}this.addToTransformTargetList(e,"x"),this.addToTransformTargetList(e,"y")}},{key:"addToTransformTargetList",value:function(e,t){L.a.getTransformValue(e,t)!==Math.floor(e.tfMap[t])&&e.addToStyleTargetList(t)}},{key:"isActivated",value:function(e){return this.activatedMap[e.oid]}}],t&&$(e.prototype,t),n&&$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,i}(),q=n(260);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 z(){z=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(r||[]);return i(o,"_invoke",{value:D(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",y={};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!==n&&r.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 n(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"==Y(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,n,r){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(r.method=a,r.arg=o;;){var l=r.delegate;if(l){var s=C(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?g:f,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Y(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,n,r,i,a){void 0===a&&(a=Promise);var o=new E(c(e,n,r,i),a);return t.isGeneratorFunction(n)?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),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,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 n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.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=r.call(o,"catchLoc"),u=r.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 n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t,n){return(t=ne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function ee(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){G(a,r,i,o,l,"next",e)}function l(e){G(a,r,i,o,l,"throw",e)}o(void 0)}))}}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ne(r.key),r)}}function ne(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(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.lastLink=o.d.getFullLink(document.URL),this.lastCachedLink=void 0,this.pageCache={},this.initHistory()},t=[{key:"initHistory",value:function(){var e=o.d.getFullLink(document.URL),t=history.state;t&&(t.link||t.browserUrl)||history.replaceState({link:e},"",e),this.lastLink=e}},{key:"initPage",value:function(e){Le.tRoot.$dom.outerHTML(e),Le.tRoot.$dom=r.J.query("#tgjs-root")?new r.J("#tgjs-root"):new r.J("body"),"body"!==Le.tRoot.$dom.getTagName()&&Le.tRoot.$dom.attr("data-tj-no-slot","true"),q.v.initPageDoms(Le.tRoot.$dom)}},{key:"openPage",value:(l=ee(z().mark((function e(t){var n,i,a=arguments;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.length>1&&void 0!==a[1]&&!a[1]){e.next=7;break}return e.next=4,Le.stop();case 4:return et().cancelCurrentCalculation(),e.next=7,Le.reset();case 7:if(t=o.d.getFullLink(t),this.pageCache[t]){e.next=18;break}return Le.tRoot.$dom.innerHTML(""),Ue.oids={},Ue.tmodelIdMap={},Le.tRoot=Le.tRootFactory(),this.lastLink=t,e.next=16,Le.start();case 16:e.next=34;break;case 18:return Le.tRoot=this.pageCache[t].tRoot,Ue.oids=this.pageCache[t].oids,Ue.tmodelIdMap=this.pageCache[t].tmodelIdMap,Le.tRoot.$dom=r.J.query("#tgjs-root")?new r.J("#tgjs-root"):new r.J("body"),Le.tRoot.$dom.innerHTML(this.pageCache[t].html),n=Object.values(this.pageCache[t].visibleOidMap),i=q.v.initCacheDoms(n),n.forEach((function(e){e.visibilityStatus=void 0})),Le.manager.activatePendingTargetsAfterDom(n,{restoredDoneTargets:!0}),Le.manager.visibleOidMap=J({},this.pageCache[t].visibleOidMap),i.forEach((function(e){Le.manager.visibleOidMap[e.oid]=e})),window.scrollTo(this.pageCache[t].scrollLeft,this.pageCache[t].scrollTop),this.lastLink=t,e.next=33,Le.start();case 33:Ge().restoreSnapshot(this.pageCache[t].runSnapshot);case 34:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"openLinkFromHistory",value:(a=ee(z().mark((function e(t){var n;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.link||t.browserUrl){e.next=3;break}return e.abrupt("return");case 3:return t.browserUrl&&history.replaceState({link:n},"",n),e.next=6,this.openLink(n,!1);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"onPageClose",value:function(){Le.resizeLastUpdate=o.d.now(),Ke().resizeRoot(),Le.manager.getAvailableDoms().forEach((function(e){et().runEventTargets(e,["onPageClose"])}))}},{key:"openLink",value:(i=ee(z().mark((function e(t){var n,i,a,l=arguments;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(l.length>1&&void 0!==l[1])||l[1],t=o.d.getFullLink(t),!this.lastLink){e.next=14;break}return i=Ge().getSnapshot(),e.next=6,Le.stop();case 6:return et().cancelCurrentCalculation(),this.onPageClose(),Le.tRoot.$dom=r.J.query("#tgjs-root")?new r.J("#tgjs-root"):new r.J("body"),a=Le.tRoot.$dom.innerHTML(),this.pageCache[this.lastLink]={link:this.lastLink,html:a,oids:J({},Ue.oids),tmodelIdMap:J({},Ue.tmodelIdMap),visibleOidMap:J({},Le.manager.visibleOidMap),scrollLeft:r.J.getWindowScrollLeft()||0,scrollTop:r.J.getWindowScrollTop()||0,tRoot:Le.tRoot,runSnapshot:i},this.lastCachedLink=this.lastLink,e.next=14,Le.reset();case 14:return n&&history.pushState({link:t},"",t),e.next=17,this.openPage(t,!1);case 17:Ge().schedule(0,"pagemanager-processOpenLink");case 18:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"updateBrowserUrl",value:function(e,t){Le.tRoot.$dom=r.J.query("#tgjs-root")?new r.J("#tgjs-root"):new r.J("body"),this.pageCache[document.URL]={link:document.URL,html:Le.tRoot.$dom.innerHTML(),oids:J({},Ue.oids),tmodelIdMap:J({},Ue.tmodelIdMap),visibleOidMap:J({},Le.manager.visibleOidMap),scrollLeft:r.J.getWindowScrollLeft()||0,scrollTop:r.J.getWindowScrollTop()||0,tRoot:Le.tRoot,runSnapshot:Ge().getSnapshot()},t?history.pushState({browserUrl:e},"",e):history.replaceState({browserUrl:e},"",e),Ge().schedule(0,"pagemanager-processUpdateBrowserUrl")}},{key:"back",value:function(){return history.back()}},{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,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.lastCachedLink,r=this.getCachedPage(n);return null==r||null===(t=r.tmodelIdMap)||void 0===t?void 0:t[e]}}],t&&te(e.prototype,t),n&&te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,i,a,l}();function ie(e){return ie="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},ie(e)}function ae(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||le(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 oe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=le(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function le(e,t){if(e){if("string"==typeof e)return se(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t,n){return(t=fe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fe(r.key),r)}}function fe(e){var t=function(e,t){if("object"!=ie(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ie(t)?t:t+""}var ve=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}},{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=ce({},this.visibleOidMap),n=ce({},this.preservedDomMap);this.clearFrameLists();var r,i=[],a=oe(et().hasLocationList);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(t[o.oid]=void 0,n[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(ae(this.lists.updatingTargets),ae(f.updatingTargetList))),(null===(h=f.activeTargetList)||void 0===h?void 0:h.length)>0&&(this.lists.activeTModels.push(o),this.lists.activeTargets=[].concat(ae(this.lists.activeTargets),ae(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]=ce({},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(ce(ce({},t),n)).filter((function(e){return void 0!==e})).forEach((function(t){t.hasDom()&&(t.exists()&&t.isIncluded()||e.addToDeletedDom(t))})),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!==$e();){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:"shouldCreateDom",value:function(e,t){return!(!e.canHaveDom()||!e.isIncluded()||e.hasDom()||!t&&!e.requiresDom()&&"keep"!==this.getDomPolicy(e))}},{key:"getDomPolicy",value:function(e){if(this.domPolicyMap.has(e.oid))return this.domPolicyMap.get(e.oid);for(var t=e;t&&t!==$e();){var n=t.val("domPolicy");if(o.d.isDefined(n))return this.domPolicyMap.set(e.oid,n),n;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:"getVisibles",value:function(){return Object.values(this.visibleOidMap)}},{key:"getAvailableDoms",value:function(){return Object.values(ce(ce({},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=oe(this.lists.rerender);try{for(t.s();!(e=t.n()).done;){var n,r,i=e.value;i.isTextOnly()?null===(n=i.$dom)||void 0===n||n.text(i.getHtml()):null===(r=i.$dom)||void 0===r||r.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=[],n=oe(this.lists.reattach);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.hasBaseElementChanged(),a=r.getDomParent();a&&a.$dom&&(a.$dom.removeElement(r.$dom.element),i&&(L.a.createDom(r),L.a.patchDom(r),L.a.initStyleMaps(r),this.needsRestyle(r)&&this.lists.restyle.push(r),this.needsReasyncStyle(r)&&this.lists.reasyncStyle.push(r),t.push(r)),r.getDomHolder()&&r.getDomHolder().appendTModel$Dom(r))}}catch(e){n.e(e)}finally{n.f()}this.activatePendingTargetsAfterDom(t)}},{key:"relocateTModels",value:function(){this.lists.relocation.sort((function(e,t){return t.domOrderIndex-e.domOrderIndex}));var e,t=oe(this.lists.relocation);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=n.getDomParent();r&&r.$dom&&(r.$dom.relocate(n,n.domOrderIndex),n.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=oe(this.lists.deletedDom);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.val("sourceDom")||this.deleteDom(n)}}catch(e){t.e(e)}finally{t.f()}this.lists.deletedDom.length=0}},{key:"deleteDom",value:function(e){e.hasAnimatingTargets()&&_.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=oe(this.lists.restyle);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.hasDom()&&L.a.fixStyle(n)}}catch(e){t.e(e)}finally{t.f()}}},{key:"fixAsyncStyles",value:function(){var e,t=oe(this.lists.reasyncStyle);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.hasDom()&&L.a.fixAsyncStyle(n)}}catch(e){t.e(e)}finally{t.f()}}},{key:"activatePendingTargetsAfterDom",value:function(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).restoredDoneTargets,r=void 0!==n&&n,i=oe(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.hasDom()){if(a.noDomUpdatingTargets){for(var o=0,l=ae(a.noDomUpdatingTargets);o<l.length;o++){var s=l[o];a.addTargetToStatusList(s)}a.noDomUpdatingTargets=void 0}var u=a.pendingTargets;if(u){for(var c=0,d=ae(u);c<d.length;c++){var h=d[c];m.g.cleanupTarget(a,h),m.g.shouldActivateNextTarget(a,h)}a.pendingTargets=void 0}if(r)for(var f=0,v=Object.keys(a.targetValues);f<v.length;f++){var g=v[f];"done"===a.targetValues[g].status&&(a.isTargetInLoop(g)||a.isTargetPassiveLoop(g)||m.g.cleanupTarget(a,g)&&m.g.shouldActivateNextTarget(a,g))}}}}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 n=0,r=ae(e.noDomUpdatingTargets);n<r.length;n++){var i=r[n],a=Je().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=[],n=[];this.lists.noDom.sort((function(e,t){return e.getUIDepth()<t.getUIDepth()?-1:1}));var i,a=oe(this.lists.noDom);try{for(a.s();!(i=a.n()).done;){var o,l=i.value,s=null!==(o=l.domId)&&void 0!==o?o:l.oid;r.J.query("#".concat(s))?(l.$dom=new r.J("#".concat(s)),l.$dom.attr("tgjs","true"),l.hasDomNow=!0,l.markLayoutDirty("hasDomNow"),this.needsRerender(l)&&this.lists.rerender.push(l),this.needsRestyle(l)&&this.lists.restyle.push(l),this.needsReasyncStyle(l)&&this.lists.reasyncStyle.push(l)):n.push(l)}}catch(e){a.e(e)}finally{a.f()}for(var u=0,c=n;u<c.length;u++){var d=c[u],h=d.getDomHolder();if(h)if(d.$dom=void 0,d.val("$dom"))d.$dom=d.val("$dom"),d.hasDom()||h.appendTModel$Dom(d);else{L.a.createDom(d),L.a.patchDom(d),t.push(d);var f=e.get(h);f||(f={domHolder:h,fragment:r.J.createDocumentFragment(),tmodels:[]},e.set(h,f)),f.fragment.appendChild(d.$dom.element),f.tmodels.push(d)}else d.markLayoutDirty("noDomHolder")}var v,g=oe(e.values());try{for(g.s();!(v=g.n()).done;){var y=v.value,p=y.domHolder,m=y.fragment;p.appendElement(m)}}catch(e){g.e(e)}finally{g.f()}var b,T=oe(this.lists.noDom);try{for(T.s();!(b=T.n()).done;){var w=b.value;this.catchupNoDomTargetsBeforeStyle(w)}}catch(e){T.e(e)}finally{T.f()}for(var k=0,S=t;k<S.length;k++){var M=S[k];M.hasDom()&&(M.hasDomNow=!0,M.markLayoutDirty("hasDomNow")),L.a.initStyleMaps(M),L.a.fixStyle(M),L.a.fixAsyncStyle(M)}this.activatePendingTargetsAfterDom(this.lists.noDom),Ke().attachEvents(this.lists.noDom.filter((function(e){var t;return(null===(t=e.externalEventMap)||void 0===t?void 0:t.size)>0})))}}}],t&&he(e.prototype,t),n&&he(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();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 ye(){ye=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(r||[]);return i(o,"_invoke",{value:D(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",y={};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!==n&&r.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 n(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)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,n,r){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(r.method=a,r.arg=o;;){var l=r.delegate;if(l){var s=C(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?g:f,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};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}},M(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new E(c(e,n,r,i),a);return t.isGeneratorFunction(n)?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),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,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 n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.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=r.call(o,"catchLoc"),u=r.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 n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function pe(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function me(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){pe(a,r,i,o,l,"next",e)}function l(e){pe(a,r,i,o,l,"throw",e)}o(void 0)}))}}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Te(r.key),r)}}function Te(e){var t=function(e,t){if("object"!=ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ge(t)?t:t+""}var we,ke,Se,Me=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}return t=e,n=[{key:"resetRuns",value:(a=me(ye().mark((function e(){return ye().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;case 17:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"scheduleOnlyIfEarlier",value:function(e,t){var n,r=(this.runningFlag&&null!==(n=this.runStartTime)&&void 0!==n?n:o.d.now())+(null!=e?e:0);this.delayProcess&&r>=this.delayProcess.runTime||this.schedule(e,t)}},{key:"schedule",value:function(e,t){if(Le.isRunning()&&!this.resetting){var n=0===Le.throttle?null!=e?e:0:Le.throttle,r=o.d.now();this.delayRun(n,t,r)}}},{key:"run",value:(i=me(ye().mark((function e(t,n){var r,i;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Le.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(n)),e.abrupt("return");case 5:if(this.rerunId="",this.runId=n,this.runningFlag=!0,this.runStartTime=o.d.now(),r=!1,1===Le.debugLevel&&o.d.log(!0)("Request from: ".concat(n," 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(Ke().eventQueue.length)),e.prev=11,0!==this.phase){e.next=18;break}return Ke().captureEvents(),Le.targetManager.applyTargetValues($e()),e.next=17,et().calculateAll();case 17:this.phase=1;case 18:if(!(o.d.now()-this.runStartTime>20)){e.next=22;break}return r=!0,this.requestNextSlice(n),e.abrupt("return");case 22:if(1===this.phase&&(this.runningStep=Le.manager.analyze(),this.phase=2),!(o.d.now()-this.runStartTime>20)){e.next=27;break}return r=!0,this.requestNextSlice(n),e.abrupt("return");case 27:if(2===this.phase&&(et().calculateActivated(),Le.events.resetEventsOnTimeout(),this.phase=3),!(o.d.now()-this.runStartTime>20)){e.next=32;break}return r=!0,this.requestNextSlice(n),e.abrupt("return");case 32:3===this.phase&&(this.runningStep>=0&&(0===this.domProcessing?(r=!0,this.domOperations(this.runningStep)):this.rerunId||(this.rerunId="domrun ".concat(n))),this.phase=4),this.runDuration=o.d.now()-this.runStartTime,0===this.domProcessing&&this.needsRerun(),e.next=41;break;case 37:throw e.prev=37,e.t0=e.catch(11),this.phase=0,e.t0;case 41:return e.prev=41,r||0!==this.domProcessing||(this.runningFlag=!1),e.finish(41);case 44:case"end":return e.stop()}}),e,this,[[11,37,41,44]])}))),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(){if(this.phase=0,this.runningFlag=!1,this.rerunId){var e=this.rerunId;this.rerunId="",this.schedule(0,"rerun-".concat(e))}else if(Ke().eventQueue.length>0)this.schedule(0,"events-".concat(Ke().eventQueue.length));else if(void 0===(this.nextRuns.length>0?this.nextRuns[0].delay-(o.d.now()-this.nextRuns[0].insertTime):void 0)||Qe().lists.activeTModels.length>0||Qe().lists.updatingTModels.length>0||Qe().lists.restyle.length>0||Qe().lists.reasyncStyle.length>0||Ke().eventQueue.length>0||et().activatedList.length>0)if(Qe().lists.updatingTModels.length>0)this.schedule(1,"getManager-needsRerun-updatingTModels");else if(Qe().lists.activeTModels.length>0){var t=Qe().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(t){var n=!this.activeStartTime||o.d.now()-this.activeStartTime>15?1:15;this.activeStartTime=o.d.now(),this.schedule(n,"getManager-needsRerun-".concat(t.oid,"-").concat(t.activeTargetList))}}this.executeNextRun()}},{key:"domOperations",value:function(t){var n=this;this.domProcessing=1,10!==t?Promise.all(e.domSteps.filter((function(e,n){return n>=t})).map((function(e){return Promise.resolve().then(e)}))).then((function(){Qe().lists.restyle.length?n.domFixStyles():(n.domProcessing=0,n.needsRerun())})).catch((function(){n.domProcessing=0,n.needsRerun()})):this.domFixStyles()}},{key:"domFixStyles",value:function(){var e=this;this.domProcessing=2,requestAnimationFrame((function(){try{Qe().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,n,r,i){var a=this,o={runId:e,insertTime:t,runTime:r,interval:n,delay:i,timeoutId:void 0},l=function(){var t=me(ye().mark((function t(){return ye().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 n=null;this.nextRuns.length>0;){var r=this.nextRuns.shift(),i=o.d.now();if(!(r.delay-(i-r.insertTime)<=0)){this.nextRuns.unshift(r);break}n=r}if(n)this.setDelayProcess(n.runId,n.insertTime,n.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,n){var r=n+e;this.delayProcess?this.delayProcess.timeoutId&&r<this.delayProcess.runTime?(clearTimeout(this.delayProcess.timeoutId),this.insertRun(this.delayProcess.runId,this.delayProcess.insertTime,this.delayProcess.interval),this.setDelayProcess(t,n,e,r,e)):this.insertRun(t,n,e):this.setDelayProcess(t,n,e,r,e)}},{key:"insertRun",value:function(e,t,n){for(var r=0,i=this.nextRuns.length;r<i;){var a,o=r+i>>1,l=this.nextRuns[o],s=l.insertTime+l.delay-(t+n);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:r=o+1}this.nextRuns.splice(r,0,{runId:e,insertTime:t,delay:n})}},{key:"getSnapshot",value:function(){var e=o.d.now(),t=[],n=function(n){if(n){var r=o.d.isDefined(n.runTime)?n.runTime:n.insertTime+n.delay;t.push({runId:n.runId,delay:Math.max(0,r-e)})}};n(this.delayProcess),this.nextRuns.forEach(n);var r=t.filter((function(e){return 0===e.delay})),i=t.filter((function(e){return e.delay>0})),a=[];return r.length&&a.push({runId:r.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))}))}}],n&&be(t.prototype,n),r&&be(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r,i,a}();function Ee(e){return Ee="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},Ee(e)}function De(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oe(r.key),r)}}function Oe(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:t+""}we=Me,Se=[function(){return Qe().createDoms()},function(){return Qe().reattachTModels()},function(){return Qe().relocateTModels()},function(){return Qe().renderTModels()},function(){return Qe().fixAsyncStyles()},function(){return Qe().deleteDoms()}],(ke=Te(ke="domSteps"))in we?Object.defineProperty(we,ke,{value:Se,enumerable:!0,configurable:!0,writable:!0}):we[ke]=Se;var Le,Pe=function(){return function(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),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,n=De(arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.activeTargetList.slice(0));try{for(n.s();!(t=n.n()).done;){var r=t.value;e.isTargetImperative(r)||this.applyTargetValue(e,r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"applyTargetValue",value:function(e,t){var n=e.targets[t];if(o.d.isDefined(n)){if(!(P.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 r=P.O.scheduleExecution(e,t);if(r>0)return void Ge().schedule(r,"targetSchedule__".concat(e.oid))}e.isTargetEnabled(t)?(e.resetScheduleTimeStamp(t),s.j.prepareTarget(e,t),s.j.executeDeclarativeTarget(e,t),o.d.isDefined(n.fetchAction)||m.g.shouldActivateNextTarget(e,t)):n.needsReactivation&&e.removeFromActiveTargets(t)}}else e.removeFromActiveTargets(t)}},{key:"setActualValues",value:function(e,t){if(t.length){var n,r=0,i=De(t=t.slice(0));try{for(i.s();!(n=i.n()).done;){var a=n.value;P.O.shouldPauseTarget(e,a)||((r=P.O.scheduleExecution(e,a))>0?Ge().schedule(r,"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()?(Ze().animate(e,o,_.T.getAnimationHooks()),e.waapiBatch=void 0):e.waapiBatch=void 0}}},{key:"findOriginalTModel",value:function(e,t){return a.X.findParentByTarget(e,t)||rt().find((function(e){return e.targets[t]}))}},{key:"fireOnStep",value:function(e,t,n){var r=e.targetValues[t],i=e.getTargetValue(t),a=e.getTargetSteps(t),l=e.targets[t];e.setLastUpdate(t),e.setTargetMethodName(t,"value");var s=r.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,n,a),c.setTargetMethodName(s,["on".concat(h,"Step")]),d=!0):"function"==typeof u.onImperativeStep&&(u.onImperativeStep.call(c,t,c.val(t),i,n,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 n=e.targetValues[t];if(n){var r=e.getTargetValue(t),i=e.getTargetSteps(t);e.setLastUpdate(t);var a=n.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),r,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 n.valuePointer)}else{var h;e.getTargetCycle(t)<e.getTargetCycles(t)-1&&(e.incrementTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t),e.resetTargetExecutionFlag(t),delete n.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 n=e.targetValues[t];if(n){var r=e.getValueListPointer(t),i=e.getTargetCycle(t),a=e.getTargetCycles(t),o=e.getTargetStep(t),l=e.getTargetSteps(t);return Array.isArray(n.valueList)&&r<n.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 n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fireEnd,r=void 0!==n&&n,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,g,y=null!==(f=i.valueList)&&void 0!==f&&f.length?i.valueList[i.valueList.length-1]:c;return e.val(t,y),e.setActual(t,y),e.addToStyleTargetList(t),i.step=d,i.valuePointer=null!==(v=null===(g=i.valueList)||void 0===g?void 0:g.length)&&void 0!==v?v:s,i.value=y,i.cycle=h,delete i.catchupAt,r&&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?L.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 n,r,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)Ge().scheduleOnlyIfEarlier(1,"".concat(e.oid,"---").concat(t,"-catchup-finished"));else{var s=null!==(n=l.step)&&void 0!==n?n:0,u=null!==(r=l.valuePointer)&&void 0!==r?r: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))||(Ge().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,n){return o.d.isDefined(e.val(t))?e.val(t):"number"==typeof n?0:void 0}},{key:"animateActualValue",value:function(e,t,n,r,i,a){if(e.hasDom())for(var o=i>0?L.a.easingMorph(e,t,r.initialValue,r.theValue,i,r.steps):r.initialValue,l=e.isTargetImperative(t)?e.getTargetCycles(t):0,s=_.T.handleWebAnimationAPI(e,r.cleanKey,t,n,o,r.theValue,a,i,r.steps,r.interval,0,!1,!0),u=1;u<l;u++)_.T.handleWebAnimationAPI(e,r.cleanKey,t,n,o,r.theValue,a,i,r.steps,r.interval,u*s,!0,!1)}},{key:"updateActualValue",value:function(e,t,n,r,i,a){if(i<=r.steps){e.incrementTargetStep(t,r.now,r.lastUpdateTime,r.interval,r.steps);var o=L.a.easingMorph(e,t,r.initialValue,r.theValue,i,r.steps);if(e.val(t,o),e.setActual(t,o),e.addToStyleTargetList(t),this.fireOnStep(e,t,i),e.getTargetStep(t)<r.steps)return void Ge().scheduleOnlyIfEarlier(r.interval,"".concat(e.oid,"---").concat(t,"-").concat(i,"/").concat(r.steps,"-").concat(r.cycle,"-").concat(r.interval))}this.finishCurrentSegment(e,t,n,r,a)}},{key:"finishCurrentSegment",value:function(e,t,n,r,i){e.val(t,r.theValue),e.setActual(t,r.theValue),e.addToStyleTargetList(t),n.step=r.steps,e.setLastUpdate(t);var a=1;if(n.valueList&&i<n.valueList.length){e.incrementValueListPointer(t);var o=e.getValueListPointer(t);e.resetTargetStep(t),n.initialValue=n.value,n.value=n.valueList[o],n.steps=n.stepList[(o-1)%n.stepList.length],n.interval=Array.isArray(n.intervalList)?n.intervalList[(o-1)%n.intervalList.length]:0,n.easing=n.easingList[(o-1)%n.easingList.length],a=r.interval}else this.fireOnEnd(e,t);Ge().scheduleOnlyIfEarlier(a,"".concat(e.oid,"---").concat(t,"-").concat(r.steps,"/").concat(r.steps,"-").concat(r.cycle,"-").concat(a))}}])}(),_e=n(357);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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||Ve(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 Ie(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ve(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function Ve(e,t){if(e){if("string"==typeof e)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fe(){Fe=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(r||[]);return i(o,"_invoke",{value:D(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",g="completed",y={};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!==n&&r.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 n(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)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function D(t,n,r){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(r.method=a,r.arg=o;;){var l=r.delegate;if(l){var s=C(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?g:f,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};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}},M(E.prototype),u(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new E(c(e,n,r,i),a);return t.isGeneratorFunction(n)?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),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,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 n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.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=r.call(o,"catchLoc"),u=r.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 n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function He(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function Be(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){He(a,r,i,o,l,"next",e)}function l(e){He(a,r,i,o,l,"throw",e)}o(void 0)}))}}var Re=[],Ue=function(e){var t;if(e){var n,r=e instanceof i.c?e:new i.c("App",e);return null!==(t=Le)&&void 0!==t&&t.tRoot?(Le.tRoot.addChild(r),r):"loading"===document.readyState?(Re.push(r),r):(null!==(n=Le)&&void 0!==n&&n.tRoot||"loading"===document.readyState||lt(),Le.tRoot.addChild(r),r)}};Ue.unmount=Be(Fe().mark((function e(){var t;return Fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Le){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Le.stop();case 4:return t=Le.tRoot,t.getChildren().forEach((function(e){var n,r;e.val("sourceDom")?q.v.restoreDomState(null===(r=e.$dom)||void 0===r?void 0:r.element,e.domState):null!==(n=e.$dom)&&void 0!==n&&n.attr("tgjs")&&t.$dom.removeElement(e.$dom.element)})),t.allChildrenList=[],t.allChildrenMap={},t.clearUpdatingChildren(),t.clearActiveChildren(),t.clearAnimatingChildren(),e.next=14,Le.reset();case 14:Ue.oids={},Ue.tmodelIdMap={},Le=void 0;case 17:case"end":return e.stop()}}),e)}))),Ue.oids={},Ue.tmodelIdMap={},Ue.getOid=function(e){var t=Ue.oids;o.d.isDefined(t[e])||(t[e]=0);var n=t[e]++;return{oid:n>0||e.endsWith("_")?"".concat(e).concat(n):e,num:n}};var We=function(){return!!Le&&Le.runningFlag},$e=function(){var e;return null===(e=Le)||void 0===e?void 0:e.tRoot},Ke=function(){var e;return null===(e=Le)||void 0===e?void 0:e.events},Xe=function(){var e;return null===(e=Le)||void 0===e?void 0:e.pager},qe=function(){var e;return null===(e=Le)||void 0===e?void 0:e.loader},Ye=function(e,t,n,r){var i;return null===(i=Le)||void 0===i||null===(i=i.loader)||void 0===i?void 0:i.fetch(e,t,n,r)},ze=function(e,t,n){var r;return null===(r=Le)||void 0===r||null===(r=r.loader)||void 0===r?void 0:r.fetchImage(e,t,n)},Qe=function(){var e;return null===(e=Le)||void 0===e?void 0:e.manager},Je=function(){var e;return null===(e=Le)||void 0===e?void 0:e.targetManager},Ze=function(){var e;return null===(e=Le)||void 0===e?void 0:e.animationManager},Ge=function(){var e;return null===(e=Le)||void 0===e?void 0:e.runScheduler},et=function(){var e;return null===(e=Le)||void 0===e?void 0:e.locationManager},tt=function(){var e,t;return null!==(e=null===(t=Le)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenWidth"))&&void 0!==e?e:0},nt=function(){var e,t;return null!==(e=null===(t=Le)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenHeight"))&&void 0!==e?e:0},rt=function(){var e;return null===(e=Le)||void 0===e||null===(e=e.manager)||void 0===e?void 0:e.getVisibles()},it=function(){var e;return null===(e=Le)||void 0===e?void 0:e.resizeLastUpdate},at=function(e){return Ue.tmodelIdMap[e]},ot=function(e){var t=Ue.tmodelIdMap[e];return t&&t.targets.sourceDom?t:void 0};"undefined"!=typeof window&&(window.t=window.t||at);var lt=function(){var e;Le||(e={throttle:0,debugLevel:0,runningFlag:!1,resizeLastUpdate:0,init:function(){return e.$window=new r.J(window),e.loader=new x,e.pager=new re,e.events=new p,e.locationManager=new X,e.targetManager=new Pe,e.animationManager=new _e._,e.manager=new ve,e.runScheduler=new Me,e.tRootFactory=function(){var t=new i.c("tRoot",{styling:!1,domHolder:!0,isVisible:!0,screenWidth:function(){var n=r.J.getScreenWidth();return n!==t.val("screenWidth")&&(e.resizeLastUpdate=o.d.now()),n},screenHeight:function(){var n=r.J.getScreenHeight();return n!==t.val("screenHeight")&&(e.resizeLastUpdate=o.d.now()),n},initPageDom:function(){var e=this;q.v.initPageDoms(this.$dom),Re.length&&(Re.forEach((function(t){return e.addChild(t)})),Re.length=0)}});return t.$dom=r.J.query("#tgjs-root")?new r.J("#tgjs-root"):new r.J("body"),"body"!==t.$dom.getTagName()&&t.$dom.attr("data-tjno-slot","true"),t.val("screenWidth",r.J.getScreenWidth()),t.val("screenHeight",r.J.getScreenHeight()),e.tRoot&&e.tRoot.getChildren().forEach((function(e){if(!e.val("sourceDom")){var n=new i.c(e.type,e.targets);t.addChild(n)}})),t},e.tRoot=e.tRootFactory(),e}},e.start=Be(Fe().mark((function t(){return Fe().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=Be(Fe().mark((function t(){return Fe().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=Be(Fe().mark((function t(){return Fe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.manager.getVisibles().forEach((function(e){var t;if(e.tfMap={},e.styleMap={},null!==(t=e.allStyleTargetMap)&&void 0!==t&&t.size){var n,r=Ie(e.allStyleTargetMap);try{for(r.s();!(n=r.n()).done;){var i=je(n.value,1)[0];o.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){r.e(e)}finally{r.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)},(Le=e).init().start())};"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",lt):lt())},966:function(e,t,n){n.d(t,{d:function(){return h}});var r=n(90),i=n(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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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,n){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,n||[],c(e).constructor):t.apply(e,n))}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 n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,t,["BI"])).parent=e,n.currentBrakcetStatus=2,n}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),n=t,(r=[{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.currentBrakcetStatus>=1||this.isNowVisible||this.isNowInvisible?(this.currentBrakcetStatus=Math.max(0,this.currentBrakcetStatus-1),!0):(e&&(this.currentBrakcetStatus=Math.min(2,this.currentBrakcetStatus+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(n.prototype,r),a&&o(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(r.c)},714:function(e,t,n){n.d(t,{M:function(){return f}});var r=n(966),i=n(705);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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function d(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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 n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!e.bracketMap[t.oid]||e.pageMap[t.oid]!==t.allChildrenList||n?(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,n){function i(n,a){if(n)if(a instanceof r.d&&a.parent===a.realParent){var o=e.bracketMap[t.oid],l=o.indexOf(a);l>=0&&o.splice(l,1)}else{var s=n.allChildrenList.indexOf(a);s>=0&&(n.allChildrenList.splice(s,1),e.markBracketDirty(n),0===n.allChildrenList.length&&i(n.parent,n))}}n.forEach((function(e){return i(e.bracket,e)}))}},{key:"reindexTree",value:function(t){function n(e,t){if(0===e.allChildrenList.length)return t;if(e.allChildrenList[0]instanceof r.d){e.startIndex=t;var i,a=l(e.allChildrenList);try{for(a.s();!(i=a.n()).done;)t=n(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=n(i.value,a)}catch(e){o.e(e)}finally{o.f()}}},{key:"updateTreeOnAdditions",value:function(t,n){var i=t.getBracketSize();n.forEach((function(n){var a=n.index,o=n.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.currentBrakcetStatus=2,u.markLayoutDirty("update"),u=l.getParent();u instanceof r.d;)u.startIndex=Math.min(u.startIndex,a),u.endIndex=Math.max(u.endIndex,a+1),u.currentBrakcetStatus=2,u.markLayoutDirty("update"),u=u.getParent();l.allChildrenList.length>i&&e.splitBracket(t,l)}))}},{key:"splitBracket",value:function(t,n){for(var i=n.allChildrenList,a=t.getBracketSize(),l=[],s=n.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=n.parent,s=h.endIndex,l.push(h)}if(n.parent!==n.realParent){var f,v=n.parent.allChildrenList.indexOf(n);if(v>=0&&(f=n.parent.allChildrenList).splice.apply(f,[v,1].concat(l)),e.markBracketDirty(n),n.parent.allChildrenList.length>=a){var g=e.buildTreeBottomUp(t,n.parent.allChildrenList);if(n.parent.allChildrenList=g,n.parent.allChildrenList.forEach((function(t){t.parent=n.parent,e.markBracketDirty(t)})),n.parent.parent){var y,p=n.parent.parent.allChildrenList.indexOf(n.parent);p>=0&&((y=n.parent.parent.allChildrenList).splice.apply(y,[p,1].concat(o(g))),n.parent.parent.allChildrenList.forEach((function(e){e.parent=n.parent.parent})))}}}else{var m=e.bracketMap[t.oid],b=m.indexOf(n);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 r.d&&e.markBracketDirty(l[0].parent)}},{key:"findOrCreateBracket",value:function(t,n){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<=n&&s.endIndex>=n)return s.getFirstChild()instanceof r.d?e.findOrCreateBracket(t,n,s.allChildrenList):s}}catch(e){o.e(e)}finally{o.f()}var u=e.createBracket(t,n,n);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,n){for(var i=n.length,a=t.getBracketSize(),o=[],l=0;l<i;l+=a){var s=n.slice(l,l+a),u=s[0]instanceof r.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,n,a,o){var l=new r.d(t);return i.qw.tmodelIdMap[l.oid]=l,l.realParent=t,l.allChildrenList=o||l.allChildrenList,l.startIndex=n,l.endIndex=a,l.allChildrenList.forEach((function(e){e instanceof r.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.currentBrakcetStatus=2,t.markLayoutDirty("update"),t=t.parent}}],(n=null)&&c(t.prototype,n),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,a}();d(f,"bracketMap",{}),d(f,"pageMap",{}),d(f,"all",{})},737:function(e,t,n){function r(e){return r="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},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.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,r=[{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 n=parseInt(t,16);return[n>>16&255,n>>8&255,255&n]}var r=t.match(/\d+/g);return r&&3===r.length?r.map(Number):void 0}}}],(n=null)&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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__(705),_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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),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 n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_typeof(r))return r;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]");e.forEach((function(e){e.$dom=null}));var n,r=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.list2map(e.filter((function(e){return"BI"!==e.type}))),i=[],a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n()).done;){var o=n.value,l=o.getAttribute("id"),s=r[l];s?s.$dom=new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J("#".concat(l)):(s=(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.iP)(l))?(i.push(s),s.$dom=new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J("#".concat(l))):_$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 n=DomInit.normalizeElementTarget(t);if(n){var r;null!==(r=e.$dom)&&void 0!==r&&r.exists()&&(e.domState?DomInit.restoreDomState(e.$dom.element,e.domState):e.$dom.detach()),e.domState=DomInit.snapshotDomState(n.element),e.targets.$dom=n,e.val("$dom",n);var i=n.getTagName().toLowerCase(),a={};e.val("element")!==i&&(a.element=i),a.position=n.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=n.getId();if(o&&o!==e.oid)e.domId=o;else if(!o){var l="tgjs-".concat(e.oid);n.ensureId(l),e.domId=l}n.attr("tgjs-oid",e.oid),n.attr("tgjs","true"),e.$dom=void 0}}}},{key:"initPageDoms",value:function(e){var t,n=new Map,r=_createForOfIteratorHelper(e.queryAll("*"));try{for(r.s();!(t=r.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 y=i.parentElement,p=n.get(y),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]},n.set(i,a)}else a&&n.set(i,a)}}catch(e){r.e(e)}finally{r.f()}var T,w=[],k=_createForOfIteratorHelper(n.values());try{for(k.s();!(T=k.n()).done;){var S=T.value,M=S.$dom.element.parentElement,E=n.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,n=e.tmodel;t.exists()&&!n.hasChildren()&&(t.detach(),n.val("requiresDom",!1))}))}},{key:"getChildrenKey",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];if(r.toLowerCase().includes("children"))return r}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={},n=0,r=Array.from(e.attributes);n<r.length;n++){var i=r[n],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 n=t.attrs,r=t.styleAttr,i=0,a=Array.from(e.attributes);i<a.length;i++){var o=a[i].name;o in n||e.removeAttribute(o)}for(var l=0,s=Object.entries(n);l<s.length;l++){var u=_slicedToArray(s[l],2),c=u[0],d=u[1];e.getAttribute(c)!==d&&e.setAttribute(c,d)}r?e.setAttribute("style",r):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,n){var r;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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function o(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}n.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,r=[{key:"easingFunction",value:function(t){return t&&e.easeMap.get(t)||u}},{key:"cubicBezier",value:function(e,t,n,r){var i=function(e,t,n){var r=3*t,i=3*(n-t)-r;return(((1-r-i)*e+i)*e+r)*e},a=function(e,t,n){var r=3*t,i=3*(n-t)-r;return(3*(1-r-i)*e+2*i)*e+r};return function(o){var l=function(t){for(var r=t,o=0;o<8;o++){var l=i(r,e,n)-t;if(Math.abs(l)<1e-6)return r;var s=a(r,e,n);if(Math.abs(s)<1e-6)break;(r-=l/s)<0?r=0:r>1&&(r=1)}for(var u=0,c=1,d=0,h=0;h<20;h++){var f=i(d=(u+c)/2,e,n);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,r)}}}],(n=null)&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function u(e){return e}r=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={_:r.cubicBezier(.25,.1,.25,1)},d={_:r.cubicBezier(.42,0,1,1)},h={_:r.cubicBezier(0,0,.58,1)},f={_:r.cubicBezier(.42,0,.58,1)};o(s,"easeMap",new Map([[r.LINEAR,u],[r.EASE,c._],[r.EASE_IN,d._],[r.EASE_OUT,h._],[r.EASE_IN_OUT,f._],[r.STEP_START,function(e){return e<=0?0:1}],[r.STEP_END,function(e){return e<1?0:1}]]))},161:function(e,t,n){n.d(t,{O:function(){return h}});var r=n(34),i=n(705);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 n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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 n=e.getTargetInterval(t),i=r.d.now();if(n<=0)return 0;if(e.isTargetImperative(t)&&0===e.getTargetStep(t))return e.setScheduleTimeStamp(t,i),0;var a=e.getScheduleRemainingTime(t);if(r.d.isDefined(a))return e.setScheduleTimeStamp(t,i-Math.max(n-a,0)),e.resetScheduleRemainingTime(t),a;var o=e.getScheduleTimeStamp(t);if(r.d.isDefined(o)){var l=i-o;return Math.max(n-l,0)}return e.setScheduleTimeStamp(t,i),n}},{key:"getSchedulingKeys",value:function(e){for(var t=[],n=0,i=Object.entries(e.targetValues);n<i.length;n++){var a=l(i[n],2),o=a[0],s=a[1];(r.d.isDefined(s.scheduleTimeStamp)||r.d.isDefined(s.scheduleRemainingTime))&&t.push(o)}return t}},{key:"pauseResumeSchedule",value:function(t){var n,a;if("BI"!==t.type){var l=e.getSchedulingKeys(t);if(l.length||t.animatingMap){var u=new Set(null!==(n=null===(a=t.animatingMap)||void 0===a?void 0:a.keys())&&void 0!==n?n:[]),c=new Set([].concat(o(l),o(u)));if(c.size){var d,h=new Set,f=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.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;r.d.isDefined(t.getScheduleTimeStamp(v))&&e.pauseSchedule(t,v),null!==(g=t.animatingMap)&&void 0!==g&&g.has(v)&&h.add(v)}else{var y=t.getScheduleRemainingTime(v);if(r.d.isDefined(y))e.resumeSchedule(t,v),t.addTargetToStatusList(v),(0,i.fB)().scheduleOnlyIfEarlier(y,"resume-".concat(t.oid,"-").concat(v));else if(r.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 n=e.getTargetInterval(t),i=e.getScheduleTimeStamp(t);if(!(n<=0)&&r.d.isDefined(i)){var a=r.d.now()-i,o=Math.max(n-a,0);e.setScheduleRemainingTime(t,o),e.resetScheduleTimeStamp(t)}}},{key:"resumeSchedule",value:function(e,t){var n=e.getScheduleRemainingTime(t);if(r.d.isDefined(n)){var i=r.d.now(),a=e.getTargetInterval(t);e.setScheduleTimeStamp(t,i-Math.max(a-n,0)),e.resetScheduleRemainingTime(t)}}},{key:"shouldPauseTarget",value:function(e,t){if(!e.isExecuted(t))return!1;var n=e.isTargetImperative(t)?e.targetValues[t]:e.targets[t],r=null==n?void 0:n.pauseOn;return!(void 0===r||!1===r||!0!==r&&("function"==typeof r?!r.call(e,t):"hidden"===r?e.isVisible():"noDom"!==r||e.hasDom()))}}],(n=null)&&c(t.prototype,n),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,a}()},756:function(e,t,n){n.d(t,{X:function(){return d}});var r=n(34),i=n(705);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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function u(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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,n,r){if(t){var i="".concat(t.oid," ").concat(n," ").concat(r);if(e.foundHandler[i])return e.foundHandler[i];var a=this.findScrollHandler(t,r,n);return a&&(e.foundHandler[i]=a),a}}},{key:"findFirstHandler",value:function(t,n){if(t){var r="".concat(t.oid," ").concat(n);if(e.foundHandler[r])return e.foundHandler[r];var i=this.findEventHandler(t,n);return i&&(e.foundHandler[r]=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:"findFirstClickHandler",value:function(e){return this.findFirstHandler(e,"onClick")||this.findFirstHandler(e,"onAnyClick")}},{key:"findScrollHandler",value:function(e,t,n){for(;e&&(!e.canHandleEvent("onSwipe")||"wheel"===t);){if(e.canHandleEvent(n)||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,n){var i="".concat(t.oid,"__").concat(n);if(!r.d.isDefined(e.foundParentWithType[i]))for(var a=t.getParent();a;){if(a.type===n){e.foundParentWithType[i]=a;break}a=a.getParent()}return e.foundParentWithType[i]}},{key:"findParentByTarget",value:function(t,n,i){var a="".concat(t.oid,"__").concat(n);if(!r.d.isDefined(e.foundParentWithTarget[a]))for(var o=t.getParent();o;){if(r.d.isDefined(o.targets[n])||r.d.isDefined(o.targetValues[n])){if(!r.d.isDefined(i)){e.foundParentWithTarget[a]=o;break}if(o.getTargetValue(n)===i){e.foundParentWithTarget[a]=o;break}}o=o.getParent()}return e.foundParentWithTarget[a]}},{key:"findByType",value:function(t){if(!r.d.isDefined(e.foundTypeMap[t])){var n=function(e){if(e.type===t)return e;var r,i=o(e.getChildren());try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a&&a.hasChildren()){var l=n(a);if(l)return l}else if(a&&a.type===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=n((0,i.Bt)());a&&(e.foundTypeMap[t]=a)}return e.foundTypeMap[t]}},{key:"findByTarget",value:function(t){if(!r.d.isDefined(e.foundTargetMap[t])){var n=function(e){if(e.targets[t])return e;var r,i=o(e.getChildren());try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a&&a.hasChildren()){var l=n(a);if(l)return l}else if(a&&a.targets[t])return a}}catch(e){i.e(e)}finally{i.f()}},a=n((0,i.Bt)());a&&(e.foundTargetMap[t]=a)}return e.foundTargetMap[t]}},{key:"find",value:function(t){if(!r.d.isDefined(e.foundOids[t])){var n=function(e){if(e.oid===t)return e;var r,i=o(e.getChildren());try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a&&a.hasChildren()){var l=n(a);if(l)return l}else if(a&&a.oid===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=n((0,i.Bt)());a&&(e.foundOids[t]=a)}return e.foundOids[t]}}],(n=null)&&s(t.prototype,n),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,a}();u(d,"foundParentWithType",{}),u(d,"foundParentWithTarget",{}),u(d,"foundTypeMap",{}),u(d,"foundTargetMap",{}),u(d,"foundOids",{}),u(d,"foundHandler",{})},90:function(e,t,n){n.d(t,{c:function(){return A}});var r=n(705),i=n(484),a=n(34),o=n(690),l=n(333),s=n(585),u=n(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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}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 y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;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,n,i){var o;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===n&&(n=t,t=""),this.targets=Object.assign({},n),i=i||this.targets.id,a.d.isDefined(i))r.qw.getOid(i),this.type=i,this.oid=i,this.oidNum=0;else{this.type=this.targets.otype||t||"blank";var l=r.qw.getOid(this.type);this.oid=l.oid,this.oidNum=l.num}null!==(o=n)&&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={},a.d.isDefined(this.originalId)&&(0,r.UR)(this.originalId))return a.d.mergeTargets((0,r.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=u.J.query("#".concat(this.oid))||this.originalTargetNames.indexOf("$dom")>=0;t||this.excludeDefaultStyling()?t&&(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 n=h(t,2),r=n[0],i=n[1];r in e.targets||(e.targets[r]=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,n){e.processNewTarget(t,n)}))}},{key:"processNewTarget",value:function(e,t){this.targetsVersion++;var n=l.g.getTargetName(e),r=this.targets[e];if(a.d.isDefined(r)){"passive"!==r.loop&&"function"!=typeof r.loop||this.passiveTargetMap[e]||(this.passiveTargetMap[e]=!0,this.passiveTargetList.push(e));var i=g(r),u=e.startsWith("_")||e.endsWith("$"),c=s.u.mustExecuteTargets[n]||u||"string"!==i&&"number"!==i&&"boolean"!==i,d=!!s.u.allEventMap[n],h=!!s.u.internalEventMap[n];if(("object"!==i||Array.isArray(r))&&c&&(r=l.g.wrapTarget(this,r,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(r.value)||o.D.isChildObjectTarget(e,r)||o.D.isIntervalTarget(r)||(c=!0,r=l.g.wrapTarget(this,r,e)),l.g.bindTarget(this,e,f,v,t))}if(e.startsWith("_")){var y=e.slice(1);this.targets[e]&&(this.targets[y]=this.targets[e]),delete this.targets[e],e=y,r=this.targets[y]}if(d&&(this.externalEventMap||(this.externalEventMap=new Map),this.externalEventMap.set(n,!0),r.active=!1),h&&(this.internalEventMap||(this.internalEventMap=new Map),this.internalEventMap.set(n,!0),r.active=!1),this.allTargetMap[n]=e,u&&(this.targets[e].active=!1),!s.u.bypassInitialProcessingTargetMap[n]){if(a.d.isDefined(r.initialValue)&&this.val(e,r.initialValue),(!1!==r.active||a.d.isDefined(r.initialValue))&&this.addToStyleTargetList(e),o.D.isIntervalTarget(r))r.cycles=2,r.isInterval=!0;else if(!c){var p;return void this.val(n,a.d.isDefined(null===(p=r)||void 0===p?void 0:p.value)?r.value:r)}!1!==r.active&&this.canTargetBeActivated(e)&&this.addToActiveTargets(e),this.functionTargetNames.push(e)}}else this.delVal(e)}},{key:"activate",value:function(e){(0,r.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 n;if(e=l.g.getTargetName(e),t||!this.excludeStyling()&&!this.targets["exclude".concat(a.d.capitalizeFirstLetter(e))]){var r,i=s.u.asyncStyleTargetMap[e],o=s.u.attributeTargetMap[e];if(i||o)null!==(r=this.asyncStyleTargetMap)&&void 0!==r&&r.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!==(n=this.allStyleTargetMap)&&void 0!==n&&n.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.targets[e],this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),delete this.targetValues[e]}},{key:"addTarget",value:function(e,t){var n,r,i;this.addTargets((n={},i=t,(r=p(r=e))in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n))}},{key:"addTargets",value:function(e){var t,n=this;Object.keys(e).forEach((function(t){n.targets[t]=e[t],n.removeFromUpdatingTargets(t),n.originalTargetNames.includes(t)||n.originalTargetNames.push(t);var r=n.originalTargetNames.indexOf(t);n.processNewTarget(t,r)})),this.hasDom()&&(0,r.kQ)().attachEvents([this]),null===(t=(0,r.fB)())||void 0===t||t.schedule(1,"addTargets-"+this.oid)}},{key:"getTargetStepPercent",value:function(e,t,n){return t=a.d.isDefined(t)?t:this.getTargetStep(e),n?t/n: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 n;if("fetching"===t.status)return this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),void(null===(n=this.getParent())||void 0===n||n.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 n=this.targetValues[e];if(n){var r=n.status;"done"!==t||"done"===r||"complete"===r||n.resetFlag||(n.completeCount++,n.completeTime=a.d.now()),n.resetFlag=!1,n.status=t,this.addTargetToStatusList(e)}}},{key:"getTargetStatus",value:function(e){var t,n;return null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.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,n=this.targetValues[e]||this.targets[e];if(n){var r=null!==(t=n.value)&&void 0!==t?t:n;return"function"==typeof r?r.call(this):r}}},{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 n=this.getScheduleTimeStamp(e),r=this.getTargetInterval(e);return a.d.isDefined(n)&&n+r>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 n=this.targetValues[e];n&&(n.scheduleRemainingTime=t)}},{key:"resetScheduleRemainingTime",value:function(e){var t=this.targetValues[e];t&&(t.scheduleRemainingTime=void 0)}},{key:"setScheduleTimeStamp",value:function(e,t){var n=this.targetValues[e];n&&(n.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 n,r=o.D.getValueStepsCycles(this,e)[0],i=this.getTargetValue(e);return!a.d.areEqual(r,i,null!==(n=t.deepEquality)&&void 0!==n&&n)}return!0}},{key:"activateChangedPassiveTargets",value:function(){var e;if(null===(e=this.passiveTargetList)||void 0===e||!e.length)return!1;var t,n=!1,r=d(this.passiveTargetList);try{for(r.s();!(t=r.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),n=!0))}}catch(e){r.e(e)}finally{r.f()}return n}},{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,n,r,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!==(n=this.getLastUpdate("dim"))&&void 0!==n?n:0,null!==(r=this.domHeightTimestamp)&&void 0!==r?r:0,null!==(i=this.domWidthTimestamp)&&void 0!==i?i:0)}},{key:"getTargetActivationTime",value:function(e){var t,n;return null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.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,n,r,i){var a=this.targetValues[e];if(a){var o=r||8,l=t-n,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,n=null===(t=this.targetValues[e])||void 0===t?void 0:t.easing,r=this.targets[e];return r&&"function"==typeof r.easing?r.easing.call(this,this.getTargetCycle(e)):n}},{key:"getTargetInterval",value:function(e){var t,n,r=null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.interval)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.interval?i.interval.call(this,this.getTargetCycle(e)):r}},{key:"getTargetSteps",value:function(e){var t,n,r=null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.steps)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.steps?i.steps.call(this,this.getTargetCycle(e)):r}},{key:"getTargetCycles",value:function(e){var t,n,r=null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.cycles)&&void 0!==t?t:1,i=this.targets[e];return i&&"function"==typeof i.cycles?i.cycles.call(this,this.getTargetCycle(e),r):r}},{key:"getTargetCycle",value:function(e){var t,n;return null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.cycle)&&void 0!==t?t:0}},{key:"getValueListPointer",value:function(e){var t,n;return null!==(t=null===(n=this.targetValues[e])||void 0===n?void 0:n.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,n,r,a){if("object"===g(e)&&null!==e){var o=[e,t,n,r,a];t=o[0],n=o[1],r=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,n,r,a,s,u),this}},{key:"cancelAnimation",value:function(){if(this.hasAnimatingTargets()){var e,t=d(this.animatingMap);try{for(t.s();!(e=t.n()).done;){var n=h(e.value,1)[0];this.targetValues[n]&&this.addTargetToStatusList(n)}}catch(e){t.e(e)}finally{t.f()}(0,r.s)().deleteAnimation(this)}}},{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 n;0===this.activeTargetList.length&&(null===(n=this.getParent())||void 0===n||n.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 n;0===this.updatingTargetList.length&&(null===(n=this.getParent())||void 0===n||n.removeFromUpdatingChildren(this))}},{key:"hasUpdatingImperativeTargets",value:function(e){var t,n,r=d([].concat(c(null!==(t=this.updatingTargetList)&&void 0!==t?t:[]),c(this.hasAnimatingTargets()?c(this.animatingMap.keys()):[])));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(this.isTargetImperative(i)&&(this.targetValues[i].originalTargetName===e||l.g.getTargetName(i)===e))return!0}}catch(e){r.e(e)}finally{r.f()}return!1}},{key:"getUpdatingImperativeTargets",value:function(e){var t,n=[],r=d(this.updatingTargetList);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.isTargetImperative(i)&&this.targetValues[i].originalTargetName===e&&n.push(i)}}catch(e){r.e(e)}finally{r.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,n;null!==(t=this.animatingMap)&&void 0!==t&&t.has(e)&&(this.animatingMap.delete(e),0===this.animatingMap.size&&(null===(n=this.getParent())||void 0===n||n.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,n;null!==(t=this.targetValues[e])&&void 0!==t&&t.snapAnimation||(this.animatingMap||(this.animatingMap=new Map),this.animatingMap.set(e,!0),null===(n=this.getParent())||void 0===n||n.addToAnimatingChildren(this))}},{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,n){var r=t,i=n;if(null!=t&&t.reset&&1===Object.keys(t).length&&!n&&(r=void 0,i=t),this.canTargetBeActivated(e)){var o=l.g.getResetOptions(i);o.shouldReset&&l.g.resetTargetState(this,e,o),a.d.isDefined(r)&&this.val("___".concat(e),r),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&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),b=n(530),T=n(952),w=n(756),k=n(249),S=n(260);function M(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)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(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 E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}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 C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x(r.key),r)}}function x(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}function O(e,t,n){return t=P(t),function(e,t){if(t&&("object"==D(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,L()?Reflect.construct(t,n||[],P(e).constructor):t.apply(e,n))}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L=function(){return!!e})()}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}var A=function(e){function t(e,n,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=O(this,t,[e,n,r])).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}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&&_(e,t)}(t,e),n=t,i=[{key:"createViewport",value:function(){this.viewport=this.viewport||new b.L;var e=this.getScrollTop(),t=-this.getScrollLeft(),n=-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=n,this.viewport.absX=this.absX,this.viewport.absY=this.absY,this.viewport.xOverflowReset=t,this.viewport.xOverflowLimit=t+this.getWidth(),this.viewport.yNext=n,this.viewport.yNorth=n,this.viewport.yWest=n,this.viewport.yEast=n,this.viewport.ySouth=n,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),this.deletedChildren.push(e),this.removeFromUpdatingChildren(e),this.removeFromActiveChildren(e),this.removeFromAnimatingChildren(e),this.childrenUpdateFlag=!0,(0,r.zw)().calcChildren(this),this.markLayoutDirty("removeChild"),(0,r.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,r.fB)().schedule(1,"moveChild-"+this.oid+"-"+e.oid),this}},{key:"addChild",value:function(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addedChildren.length+this.allChildrenList.length;if("object"===D(e)){if(this.childrenUpdateFlag=!0,!(e instanceof t)){var o=Object.keys(this.actualValues).find((function(t){return n.actualValues[t]===e})),s=a.d.cloneTargetDefinition(e);e=new t(o?s.id||o:"".concat(this.oid,"_"),s)}e.toDiscard||(r.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,n,r=this,i=this.state();if((null===(e=i.deletedChildren)||void 0===e?void 0:e.length)>0&&(this.deletedChildren.forEach((function(e){if(r.allChildrenMap[e.oid]){var t=r.allChildrenList.indexOf(e);r.lastChildrenUpdate.deletions.push(e),r.allChildrenList.splice(t,1),delete r.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,n=e.child;r.allChildrenMap[n.oid]||(a.d.isDefined(n.val("canDeleteDom"))||!1!==r.val("canDeleteDom")||n.val("canDeleteDom",!1),t>=r.allChildrenList.length?r.allChildrenList.push(n):r.allChildrenList.splice(t,0,n),r.allChildrenMap[n.oid]=n,r.lastChildrenUpdate.additions.push({index:t,child:n}))})),this.addedChildren.length=0),(null===(n=i.movedChildren)||void 0===n?void 0:n.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,n=e.child;r.lastChildrenUpdate.deletions.push(n),r.lastChildrenUpdate.additions.push({index:t,child:n});var i=r.allChildrenList.indexOf(n);if(t!==i){l[n.oid]&&delete l[n.oid];var a=r.allChildrenList.splice(t,1,n);!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:n}),o[t]&&delete o[t]}})),Object.values(l).forEach((function(e){var t=e.index,n=e.child;r.allChildrenList.splice(t,0,n)})),Object.values(o).forEach((function(e){var t=e.fromIndex,n=e.child,i=r.allChildrenList.indexOf(n,t);r.allChildrenList.splice(i,1)})),this.movedChildren.length=0}return this.allChildrenList}},{key:"removeChildren",value:function(){return this.hasChildren()?(this.markLayoutDirty("removeChildren"),this.allChildrenList.forEach((function(e){l.g.resetBeforeDeletion(e),e.$dom=void 0})),this.allChildrenList=[],this.allChildrenMap={},this.clearUpdatingChildren(),this.clearActiveChildren(),this.clearAnimatingChildren(),this.hasDom()&&this.$dom.deleteAll(),this):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,r.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 n=this;this.dirtyLayout&&(t?t.forEach((function(e){n.dirtyLayout.oids[e]&&(n.dirtyLayout.count--,delete n.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(),n=this.hasDom(),r=this.isVisible(),i="active"===this.currentStatus||e||r&&t||this.isNowVisible||n&&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 n,r=null===(n=this.getParent())||void 0===n?void 0:n.getChildIndex(this);if("number"==typeof r)return t[r]}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 n=this.actualValues,r=this.lastActualValues;return e=l.g.getTargetName(e),2===arguments.length?(r[e]=n[e],t!==n[e]&&(n[e]=t,this.markLayoutDirty("val-".concat(e))),this):n[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[{visible:this.isVisible()},{visibilityStatus:this.visibilityStatus},{hasDom:this.hasDom()},{x:this.getX()},{y:this.getY()},{width:this.getWidth()},{height:this.getHeight()},{tmodelComplete:l.g.isTModelComplete(this)},{targets:this.originalTargetNames},{activeTargetList:this.activeTargetList},{updatingTargetList:this.updatingTargetList},{animatingMap:M(this.animatingMap?M(this.animatingMap.keys()):[])},{noDomUpdatingTargets:M(this.noDomUpdatingTargets?M(this.noDomUpdatingTargets):[])},{pendingTargets:M(this.pendingTargets?M(this.pendingTargets):[])},{styleTargetMap:M(this.styleTargetMap?M(this.styleTargetMap.keys()):[])},{passiveTargetList:this.passiveTargetList},{incompleteTargets:Object.keys(this.targetValues).filter((function(t){var n;return"complete"!==(null===(n=e.targetValues[t])||void 0===n?void 0:n.status)})).map((function(t){var n;return"".concat(t,":").concat(null===(n=e.targetValues[t])||void 0===n?void 0:n.status)}))},{updatingChildren:this.updatingChildrenMap?M(this.updatingChildrenMap.keys()):[]},{activeChildren:this.activeChildrenMap?M(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,n,r;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!==(n=null===(r=this.$dom)||void 0===r?void 0:r.getScrollLeft())&&void 0!==n?n: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,n;return null!==(e=null!==(t=null!==(n=this.val("boxSizing"))&&void 0!==n?n: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,n;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!==(n=this.getParentValue("gap"))&&void 0!==n?n:0)}},{key:"getMarginBottom",value:function(){var e,t,n;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!==(n=this.getParentValue("gap"))&&void 0!==n?n: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")}}],i&&C(n.prototype,i),o&&C(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(m)},249:function(e,t,n){n.d(t,{a:function(){return p}});var r=n(34),i=n(333),a=n(585),o=n(705),l=n(768),s=n(737),u=n(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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(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,c=[{key:"getMarginValue",value:function(e,t){var n=e.val("margin");if("number"==typeof n)return n;if(Array.isArray(n)){if(2===n.length){var r=h(n,2),i=r[0],a=r[1];return"top"===t||"bottom"===t?i:a}if(4===n.length){var o=h(n,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 n=e.val("padding");if("number"==typeof n)return n;if(Array.isArray(n)){if(2===n.length){var r=h(n,2),i=r[0],a=r[1];return"top"===t||"bottom"===t?i:a}if(4===n.length){var o=h(n,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()&&!r.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")&&!r.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||r.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||r.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,n=d(e.allStyleTargetMap);try{for(n.s();!(t=n.n()).done;){var i=h(t.value,1)[0];r.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"getTransformValue",value:function(e,t){var n;return"x"===t?n=Math.floor(e.getX()):"y"===t?n=Math.floor(e.getY()):a.u.transformMap[t]&&(n=a.u.rotate3D[t]?e.val(t):a.u.scaleMap[t]?r.d.formatNum(e.val(t),2):e.floorVal(t)),n}},{key:"fixStyle",value:function(t){if(t.styleTargetMap){var n,i=!1,o=d(t.styleTargetMap);try{for(o.s();!(n=o.n()).done;){var l=h(n.value,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,i=!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 f=Math.floor(t.getHeight());t.styleMap.height===f&&t.$dom.getStyleValue("height")===f||(t.styleMap.height=f,t.$dom.height(f))}else a.u.styleWithUnitMap[l]?r.d.isDefined(t.val(l))&&t.styleMap[l]!==t.val(l)&&(t.$dom.style(l,r.d.isNumber(t.val(l))?"".concat(t.val(l),"px"):t.val(l)),t.styleMap[l]=t.val(l)):r.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))}}catch(e){o.e(e)}finally{o.f()}i&&t.$dom.transform(e.getTransformString(t,t.tfMap)),t.styleTargetMap.clear()}}},{key:"setWidthFromDom",value:function(e){var t=e.domWidthTimestamp,n=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||n&&t<=n.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.width("auto");var l=e.$dom.width();l=l>0&&e.getHtml()?l+1:l,e.domWidthTimestamp=r.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,n=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||n&&t<=n.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.height("auto");var l=e.$dom.height();e.domHeightTimestamp=r.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,n,r,i,a,o){var l=t.getTargetEasing(n),s=l?u.G.easingFunction(l):void 0,c=s?s(t.getTargetStepPercent(n,a,o)):t.getTargetStepPercent(n,a,o);return e.morph(n,r,i,c)}},{key:"morph",value:function(e,t,n,r){if(a.u.colorMap[i.g.getTargetName(e)]){var o=s.I.color2Integers(n),l=t?s.I.color2Integers(t):s.I.color2Integers("#fff");if(o&&l){var u=Math.floor(o[0]*r+l[0]*(1-r)),c=Math.floor(o[1]*r+l[1]*(1-r)),d=Math.floor(o[2]*r+l[2]*(1-r));return"rgb(".concat(u,",").concat(c,",").concat(d,")")}return n}return"number"==typeof n?t+(n-t)*r:n}},{key:"fixAsyncStyle",value:function(e){if(e.asyncStyleTargetMap){var t,n=d(e.asyncStyleTargetMap);try{var i=function(){var n=h(t.value,1)[0];if("style"===n){var i=e.getStyle();r.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"===n){var o=e.getAttributes();r.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"===n){var l=e.getCss();e.$dom.css()!==l&&e.$dom.css(l)}else a.u.attributeTargetMap[n]?e.$dom.attr(n,e.val(n)):r.d.isDefined(e.val(n))&&e.styleMap[n]!==e.val(n)&&(e.$dom.style(n,"".concat(e.val(n))),e.styleMap[n]=e.val(n))};for(n.s();!(t=n.n()).done;)i()}catch(e){n.e(e)}finally{n.f()}e.asyncStyleTargetMap.clear()}}},{key:"getTransformBaseFromActualValues",value:function(e){var t={},n=a.u.transformMap;for(var i in e.actualValues)if(n[i]){var o=e.actualValues[i];r.d.isDefined(o)&&(t[i]=o)}return t}},{key:"num",value:function(e,t){var n=Number(e);return Number.isFinite(n)?n:t}},{key:"shouldUseImplicitTransformOrder",value:function(e){if(e.val("useTargetTransformOrder"))return!0;var t=e.originalTargetNames||[],n=function(e){return e.some((function(e){return t.indexOf(e)>=0}))},r=0;return n(["perspective"])&&r++,n(["translateX","translateY","translateZ","x","y","z"])&&r++,(n(["rotateX","rotateY","rotateZ"])||n(["rotate3DX"])&&n(["rotate3DY"])&&n(["rotate3DZ"])&&n(["rotate3DAngle"]))&&r++,n(["skewX","skewY","skew"])&&r++,(n(["scaleX","scaleY","scaleZ"])||n(["scale3DX"])&&n(["scale3DY"])&&n(["scale3DZ"]))&&r++,r>1}},{key:"buildImplicitTransformOrderMap",value:function(e){var t=function(t){return e.indexOf(t)>=0},n=function(t){var n,r=1/0,i=d(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=e.indexOf(a);o>=0&&o<r&&(r=o)}}catch(e){i.e(e)}finally{i.f()}return r},r=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:n(["perspective"]),outputs:["perspective"]}),r?s.push({group:"translate",order:n(["translateX","translateY","translateZ"]),outputs:["translateX","translateY","translateZ"].filter(t)}):i&&s.push({group:"translate",order:n(["x","y","z"]),outputs:["translate3d"]}),a)s.push({group:"rotate",order:n(["rotate3DX","rotate3DY","rotate3DZ","rotate3DAngle"]),outputs:["rotate3d"]});else{var u=["rotateX","rotateY","rotateZ","rotate"],c=u.filter(t);c.length&&s.push({group:"rotate",order:n(u),outputs:c})}if(l)s.push({group:"skew",order:n(["skewX","skewY"]),outputs:["skew"]});else{var h=["skewX","skewY"].filter(t);h.length&&s.push({group:"skew",order:n(["skewX","skewY"]),outputs:h})}if(o)s.push({group:"scale",order:n(["scale3DX","scale3DY","scale3DZ"]),outputs:["scale3d"]});else{var f=["scaleX","scaleY","scaleZ","scale"],v=f.filter(t);v.length&&s.push({group:"scale",order:n(f),outputs:v})}var g={perspective:0,translate:1,rotate:2,skew:3,scale:4};s.sort((function(e,t){var n,r,i=Number.isFinite(e.order)?e.order:1/0,a=Number.isFinite(t.order)?t.order:1/0;return i!==a?i-a:(null!==(n=g[e.group])&&void 0!==n?n:999)-(null!==(r=g[t.group])&&void 0!==r?r:999)}));var y=s.flatMap((function(e){return e.outputs})),p={};return y.forEach((function(e,t){return p[e]=t})),p}},{key:"getTransformString",value:function(t,n){for(var i={},o={},l=r.d.isDefined(n.translateX)||r.d.isDefined(n.translateY)||r.d.isDefined(n.translateZ),s=0,u=Object.keys(n);s<u.length;s++){var c=u[s];if(!i[c])switch(c){case"translateX":case"translateY":case"translateZ":null!==n[c]&&(o[c]="".concat(c,"(").concat(e.num(n[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(n.x,0),"px"),h="".concat(e.num(n.y,0),"px"),f="".concat(e.num(n.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":r.d.isDefined(n.rotate3DX)&&r.d.isDefined(n.rotate3DY)&&r.d.isDefined(n.rotate3DZ)&&r.d.isDefined(n.rotate3DAngle)?(o.rotate3d="rotate3d(".concat(e.num(n.rotate3DX,0),", ").concat(e.num(n.rotate3DY,0),", ").concat(e.num(n.rotate3DZ,0),", ").concat(e.num(n.rotate3DAngle,0),"deg)"),i.rotate3DX=i.rotate3DY=i.rotate3DZ=i.rotate3DAngle=!0):null!==n[c]&&(o[c]="".concat(c,"(").concat(e.num(n[c],0),"deg)"),i[c]=!0);break;case"scale":case"scaleX":case"scaleY":case"scaleZ":case"scale3DX":case"scale3DY":case"scale3DZ":var v,g,y;r.d.isDefined(n.scale3DX)&&r.d.isDefined(n.scale3DY)&&r.d.isDefined(n.scale3DZ)?(o.scale3d="scale3d(".concat(Number(null!==(v=n.scale3DX)&&void 0!==v?v:1),", ").concat(Number(null!==(g=n.scale3DY)&&void 0!==g?g:1),", ").concat(Number(null!==(y=n.scale3DZ)&&void 0!==y?y:1),")"),i.scale3DX=i.scale3DY=i.scale3DZ=!0):(o[c]="".concat(c,"(").concat(e.num(n[c],1),")"),i[c]=!0);break;case"skewX":case"skewY":var p,m;if(r.d.isDefined(n.skewX)&&r.d.isDefined(n.skewY))o.skew="skew(".concat(Number(null!==(p=n.skewX)&&void 0!==p?p:0),"deg, ").concat(Number(null!==(m=n.skewY)&&void 0!==m?m:0),"deg)"),i.skewX=i.skewY=!0;else if(null!==n[c]){var b;o[c]="".concat(c,"(").concat(Number(null!==(b=n[c])&&void 0!==b?b:0),"deg)"),i[c]=!0}break;case"perspective":o[c]="perspective(".concat(e.num(n.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 n,r;return(null!==(n=T[e])&&void 0!==n?n:999)-(null!==(r=T[t])&&void 0!==r?r:999)})).map((function(e){return o[e]}));return k.join(" ")}},{key:"calcAbsolutePositionFromDom",value:function(e){if(e.hasDom()){var t=e.$dom.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top);n===Math.floor(e.absX)&&r===Math.floor(e.absY)||(e.absX=t.left,e.absY=t.top,e.markLayoutDirty("islandAbsXY"))}}}],(n=null)&&g(t.prototype,n),c&&g(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,c}()},34:function(e,t,n){n.d(t,{d:function(){return v}});var r=n(705),i=n(333),a=n(585),o=n(90);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;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 n;return!(!e||!t||e!==t&&t.getDomParent()!==e&&(null===(n=t.getDomParent())||void 0===n?void 0:n.getDomParent())!==e)}},{key:"list2map",value:function(t,n){return t.reduce((function(t,r){return t[r.oid]=e.isDefined(n)?n:r,t}),{})}},{key:"getDeepList",value:function(e){var t=[];return function e(n){if(n&&n.hasChildren()){var r=n.getChildren();t.push.apply(t,u(r)),r.forEach(e)}}(e),t}},{key:"areEqual",value:function(e,t,n){return n?JSON.stringify(e)===JSON.stringify(t):e===t}},{key:"momentum",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=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=n<10?Math.abs(a)/10:Math.abs(a)/n,l=o/r,s=Math.pow(o,2)/(2*r);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,n,r){return t=(t=(t=e.isDefined(t)?t:n)>r?r:t)<n?n: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,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}},{key:"getFullLink",value:function(t){if(e.isDefined(t)){if(!t.startsWith("http")){var n=window.location.protocol;n+=n.endsWith(":")?"//":"://";var r="".concat(n).concat(window.location.hostname);t=t.startsWith("/")?r+t:"".concat(r,"/").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,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.Bt)(),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=l((0,r.zw)().calcChildren(n));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 n=1;n<t.length;n++){var i=t[n-1],a=t[n];if((0,r.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,n){var r=t.targets[n];r||(n=i.g.getTargetName(n),r=t.targets[n]);var a=t.val(n),o=t.lastVal(n);return"object"===s(r)&&"function"==typeof r.onValueChange&&(!e.areEqual(a,o,r.deepEquality)&&(r.onValueChange.call(t,a,o,t.getTargetCycle(n)),t.setTargetMethodName(n,"onValueChange")),!0)}},{key:"runTargetValue",value:function(t,n,o,l,s){var u=i.g.getTargetName(o);return a.u.allEventMap[u]?"function"==typeof n.value?n.value.call(t,(0,r.kQ)().getCurrentOriginalEvent(),l,s):e.isDefined(n.value)?n.value:n:t.val("___".concat(o))?"function"==typeof n.value?n.value.call(t,t.val("___".concat(o)),l,s):e.isDefined(n.value)?n.value:n:"function"==typeof n.value?n.value.call(t,l,s):e.isDefined(n.value)?n.value:n}},{key:"mergeTargets",value:function(t,n){var r,i=n.targets,a=n.originalTargetNames,o=t.targets,l=[];a.forEach((function(t){e.isDefined(o[t])||l.push(t)})),(r=t.originalTargetNames).push.apply(r,l),l.forEach((function(e){var n=t.originalTargetNames.indexOf(e);o[e]=i[e],t.processNewTarget(e,n)}))}},{key:"cloneTargetDefinition",value:function(t){var n=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(n.has(t))return n.get(t);if(Array.isArray(t)){var r=[];n.set(t,r);var i,a=l(t);try{for(a.s();!(i=a.n()).done;){var u=i.value;r.push(e.cloneTargetDefinition(u,n))}}catch(e){a.e(e)}finally{a.f()}return r}var c=Object.getPrototypeOf(t);if(c!==Object.prototype&&null!==c)return t;var d={};n.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],n)}return d}},{key:"advanceTargetByElapsed",value:function(t,n){var r,i,a=t.targetValues[n];if(!a)return{step:0,cycle:0,valuePointer:1,done:!1};if(!a.catchupAt)return{step:t.getTargetStep(n),cycle:t.getTargetCycle(n),valuePointer:null!==(i=a.valueList)&&void 0!==i&&i.length?t.getValueListPointer(n):0,done:t.getTargetStep(n)>=t.getTargetSteps(n)};var o=e.now()-a.catchupAt;return null!==(r=a.valueList)&&void 0!==r&&r.length?e.advanceValueListTargetByElapsed(t,n,o):e.advanceSimpleTargetByElapsed(t,n,o)}},{key:"advanceSimpleTargetByElapsed",value:function(t,n,r){var i=t.getTargetSteps(n),a=t.getTargetInterval(n)||8,o=t.getTargetCycles(n),l=t.getTargetStep(n),s=t.getTargetCycle(n);if(i<=0)return{step:i,valuePointer:0,cycle:o,done:!0};for(var u=r;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,n,r){for(var i=t.targetValues[n],a=i.valueList,o=i.stepList||[1],l=i.intervalList||[i.interval||8],s=t.getTargetCycles(n),u=t.getTargetCycle(n),c=t.getValueListPointer(n),d=t.getTargetStep(n),h=r;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 g=Math.max(f-d,0),y=g*v;if(!(h>=y))return{step:d+=e.limit(Math.floor(h/v),0,g),steps:f,valuePointer:c,cycle:u,done:!1};h-=y,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}}}],(n=null)&&h(t.prototype,n),c&&h(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,c}()},585:function(e,t,n){n.d(t,{u:function(){return g}});var r,i=n(705),a=n(34),o=n(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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function f(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;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,r=[{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 n,r=String(t),i=r.toLowerCase();return null!==(n=e.attributesToTargets[i])&&void 0!==n?n:r}},{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]}}],(n=null)&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();r=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({},r.transformMap),r.styleWithUnitMap),r.colorMap),{},{dim:!0,color:!0,opacity:!0,zIndex:!0,border:!0,borderTop:!0,borderLeft:!0,borderRight:!0,borderBottom:!0})),f(g,"gpuTargetMap",c(c({},r.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=e.getDimLastUpdate();if(!t)return!1;var n=e.getParent(),r=(0,i.S9)(),a=n?n.getDimLastUpdate():0;return(a>r?a:r)>t}}),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","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(r.lifecycleCallbackSet),l(r.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(r.allEventMap)),l(Object.keys(r.internalEventMap))))),f(g,"styleSet",new Set([].concat(l(Object.keys(r.styleTargetMap)),l(Object.keys(r.asyncStyleTargetMap)),l(Object.keys(r.attributeTargetMap))))),f(g,"reservedKeywordSet",new Set([].concat(l(r.styleSet),l(Object.keys(r.defaultActualValues())),l(Object.keys(r.allEventMap)),l(Object.keys(r.internalEventMap)),l(Object.keys(r.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(g,"activationKeywordSet",new Set(["originalTModel","originalTargetName","activateNextTarget"]))},484:function(e,t,n){n.d(t,{j:function(){return b}});var r=n(333),i=n(690),a=n(585),o=n(90),l=n(34),s=n(980),u=n(421),c=n(705);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var b=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,h=[{key:"prepareTarget",value:function(e,t){r.g.currentTargetName=t,r.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,n){var i=r.g.getTargetName(n);t.allTargetMap[i]=n,e.resolveTargetValue(t,n),e.updateTarget(t,t.targetValues[n],n,!1)}},{key:"assignImperativeTargetValue",value:function(e,t,n,i){var a;e.targetValues[t]=e.targetValues[t]||r.g.emptyValue();var o=e.targetValues[t];return o.isImperative=!0,o.originalTargetName=n,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,n,o,s,u,c,d,h){var v,y=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{};if("string"==typeof n){var m=r.g.getTargetName(n);n=n.endsWith("+")?n:n+"+",t.allTargetMap[m]=n}if(i.D.isListTarget(o)){var b=l.d.isDefined(o.steps)?o.steps:s,T=l.d.isDefined(o.interval)?o.interval:u,w=l.d.isDefined(o.easing)?o.easing:c,k=l.d.isDefined(o.cycles)?o.cycles:y;v=e.assignImperativeTargetValue(t,n,d,h),e.assignListTarget(t,n,v,o.list,o.list[0],b,T,w,k)}else{if(i.D.isTargetSpecObject(o)){var S=e.getTargetOptions(o),M=i.D.getValueStepsCycles(t,n,o),E=M[0],D=M[1],C=M[2],x=M[3],O=M[4];return s=l.d.isDefined(D)?D:s,u=l.d.isDefined(C)?C:u,c=l.d.isDefined(x)?x:c,y=l.d.isDefined(O)?O:y,void e.executeImperativeTarget(t,n,E,s,u,c,d,h,y,S)}if(i.D.isObjectTarget(n,o)){var L=a.u.cssFunctionMap[n]?g(g({},a.u.cssFunctionMap[n]),o):o;Object.keys(L).forEach((function(n){var r=L[n],a=s,o=u,v=c,g=y,m=p;if("object"===f(r)&&!i.D.isListTarget(r)){m=e.getTargetOptions(r);var b=i.D.getValueStepsCycles(t,n,L[n]);r=b[0],a=l.d.isDefined(b[1])?b[1]:s,o=l.d.isDefined(b[2])?b[2]:u,v=l.d.isDefined(b[3])?b[3]:c,g=l.d.isDefined(b[4])?b[4]:y}e.executeImperativeTarget(t,n,r,a,o,v,d,h,g,m)}))}else if("object"!==f(o)||i.D.isListTarget(o))v=e.assignImperativeTargetValue(t,n,d,h,y),e.assignSingleTarget(v,o,void 0,s,y,u,c);else{var P=i.D.getValueStepsCycles(t,n,o);o!==P[0]?(o=P[0],s=l.d.isDefined(P[1])?P[1]:s,u=l.d.isDefined(P[2])?P[2]:u,c=l.d.isDefined(P[3])?P[3]:c,y=l.d.isDefined(P[4])?P[4]:y,e.executeImperativeTarget(t,n,o,s,u,c,d,h,y,p)):(v=e.assignImperativeTargetValue(t,n,d,h,y),e.assignSingleTarget(v,o,void 0,s,y,u,c))}}v&&(e.resetImperativeProgress(v),e.assignTargetOptions(v,p),e.updateTarget(t,v,n,!0),t.isTargetDone(n)&&r.g.shouldActivateNextTarget(t,n))}},{key:"updateTarget",value:function(t,n,r,i){t.setLastUpdate(r),0===t.getTargetSteps(r)&&e.snapActualToTarget(t,r),n.executionFlag=!0,n.executionCount++,n.snapAnimation||t.addToStyleTargetList(r,i),t.setTargetMethodName(r,"value");var o=e.calculateTargetStatus(t,n,r);t.setTargetStatus(r,o),!a.u.ignoreRerun[r]&&t.shouldScheduleRun(r)&&(0,c.fB)().schedule(1,"updateTarget2-"+t.oid+"-"+r)}},{key:"calculateTargetStatus",value:function(e,t,n){var r,i=e.getValueListPointer(n),a=e.getTargetCycle(n),o=e.getTargetCycles(n),l=e.getTargetStep(n),s=e.getTargetSteps(n);return t.snapAnimation?"done":l<s||Array.isArray(t.valueList)&&i<t.valueList.length-1?"updating":e.isTargetInLoop(n)||a<o-1?"active":null!==(r=e.targets[n])&&void 0!==r&&r.fetchAction&&!(0,c.qI)().isLoadingSuccessful(e,n)?"fetching":"done"}},{key:"assignListTarget",value:function(e,t,n,r,i,a,o,s,c){n.valueList=r,n.stepList=Array.isArray(a)?a:l.d.isDefined(a)&&a>0?[a]:[1],n.intervalList=Array.isArray(o)?o:l.d.isDefined(o)?[o||8]:[8],n.easingList=Array.isArray(s)?s:l.d.isDefined(s)?[s]:[u.G.LINEAR],n.cycles=c,n.valuePointer=1,n.value=r[1],n.initialValue=i,n.steps=n.stepList[0],n.interval=n.intervalList[0],n.easing=n.easingList[0],n.step=0,n.snapAnimation=!1,e.val(t,i),e.setActual(t,i)}},{key:"assignSingleTarget",value:function(e,t,n,r,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=n,e.lastValue=e.value,e.value=t,e.steps=r||0,e.cycles=i||1,e.interval=a||0,e.easing=o,e.snapAnimation=!1}},{key:"snapActualToTarget",value:function(e,t){var n=e.targetValues[t].value,r="function"==typeof n?n.call(e):n;if(e.val(t)!==r)return e.hasValidAnimation()&&e.canBeAnimated(t)?void s.T.overrideAnimatedKeyWithSnap(e,t,r):(e.val(t,r),e.setActual(t,r),void l.d.handleValueChange(e,t))}},{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,n){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.getTargetCycle(n);if(!i.D.isIntervalTarget(t.targets[n])||1!==s){var u=!t.targetValues[n]&&l.d.isDefined(t.targets[n].initialValue)?t.targets[n].initialValue:void 0,h=i.D.getValueStepsCycles(t,n,t.targets[n],s),v=h[0],g=h[1]||0,y=h[2]||0,p=h[3],m=h[4]||1,b=t.targetValues[n]||r.g.emptyValue();t.targetValues[n]=b;var T=l.d.isDefined(p)?p:l.d.isDefined(t.targets[n].easing)?t.targets[n].easing:void 0;if(i.D.isIntervalTarget(v))e.assignSingleTarget(b,void 0,u,0,2,v.interval,T);else if(i.D.isChildTarget(n,v))t.addChild(v),e.assignSingleTarget(b,v,void 0,0,m,y,T);else if(i.D.isChildrenTarget(n,v))(Array.isArray(v)?v:v?[v]:[]).forEach((function(e){t.addChild(e),r.g.markAddChild(t,r.g.currentTargetName,t.addedChildren[t.addedChildren.length-1].child)})),e.assignSingleTarget(b,v,void 0,0,m,y,T);else if(i.D.isChildObjectTarget(n,t.targets[n])){var w=new o.c(n,t.targets[n]);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,y,T)}else if("object"===f(v)&&!0===v.asChild){var S=new o.c(n,v);t.addChild(S),e.assignSingleTarget(b,v,void 0,0,m,y,T)}else if(i.D.isFetchTarget(n,v))e.assignSingleTarget(b,v,void 0,0,m,y,T),(0,c.qI)().fetch(t,v);else if(i.D.isFetchImageTarget(n,v))e.assignSingleTarget(b,v,void 0,0,m,y,T),(0,c.qI)().fetchImage(t,v);else if(i.D.isListTarget(v))e.assignListTarget(t,n,b,v.list,v.list[0],g,y,T,m);else{var M,E;g>0&&!l.d.areEqual(t.val(n),v,null!==(M=null===(E=t.targets[n])||void 0===E?void 0:E.deepEquality)&&void 0!==M&&M)&&t.resetTargetStep(n),e.assignSingleTarget(b,v,u,g,m,y,T)}}}}],(n=null)&&p(t.prototype,n),h&&p(t,h),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,h}()},690:function(e,t,n){n.d(t,{D:function(){return d}});var r=n(333),i=n(585),a=n(34),o=n(90),l=n(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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;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=r.g.getTargetName(e),i.u.reservedKeywordSet.has(e)}},{key:"scoreChild",value:function(t){var n=0,r=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)?n++:i.u.activationKeywordSet.has(a)||"function"==typeof t[a]||r++}}return n-r>=1}},{key:"classifyEntry",value:function(t,n){return e.isPlainObject(n)?e.isTargetKey(t)?"target2":"originalTModel"===t?"target3":n instanceof o.c?"children":e.isListTarget(n)||e.isFetchTarget(t,n)||e.isFetchImageTarget(t,n)?"target4":this.hasLifecycle(n)?"target5":this.scoreChild(n)?"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"===r.g.getTargetName(e)||"addChildren"===r.g.getTargetName(e))&&"object"===s(t)}},{key:"isChildTarget",value:function(e,t){return"child"===r.g.getTargetName(e)&&"object"===s(t)}},{key:"isChildObjectTarget",value:function(t,n){return"children"===e.classifyEntry(t,n)}},{key:"isListTarget",value:function(e){return"object"===s(e)&&null!==e&&Array.isArray(e.list)}},{key:"isFetchTarget",value:function(e,t){return!("fetch"!==r.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"===r.g.getTargetName(e)&&t&&("string"==typeof t||Array.isArray(t))}},{key:"isObjectTarget",value:function(t,n){return"style"!==r.g.getTargetName(t)&&"object"===s(n)&&null!==n&&!Array.isArray(n)&&Object.getPrototypeOf(n)===Object.prototype&&!e.isTargetSpecObject(n)}},{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 n=t[3],r="number"==typeof n,i="string"==typeof n&&l.G.easeMap.has(n);if(!r&&!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,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.targets[n],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.getTargetCycle(n),o=r&&r.valueOnly,l=t.val(n),u=null,c=0,d=0,h=void 0,f=1,v=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return"function"==typeof e?e.call.apply(e,[t].concat(r)):e};return function r(g){if(Array.isArray(g))return y=g,o||!e.isValueStepsCycleArray(y)?[y,c,d,h,f]:(u=y[0],c=y.length>=2?y[1]:c,d=y.length>=3?y[2]:d,y.length>=4&&("string"==typeof y[3]?(h=y[3],f=y.length>=5?y[4]:f):f=y[3]),[u,c,d,h,f]);var y;if("object"===s(g)&&null!==g&&Object.getPrototypeOf(g)===Object.prototype){var p=a.d.runTargetValue(t,g,n,i,l);return e.isPrimitiveArray(p)&&(a.d.isDefined(g.steps)||a.d.isDefined(g.interval)||a.d.isDefined(g.easing)||a.d.isDefined(g.cycles))?(u={list:p},c=a.d.isDefined(g.steps)?v(g.steps,i):0,d=a.d.isDefined(g.interval)?v(g.interval,i):8,h=a.d.isDefined(g.easing)?v(g.easing,i):h,f=a.d.isDefined(g.cycles)?v(g.cycles,i,t.getTargetCycles(n)):1,[u,c,d,h,f]):"object"===s(p)&&a.d.isDefined(p.value)&&a.d.isDefined(p.steps)?r(p):(u=p,c=a.d.isDefined(g.steps)?v(g.steps,i):0,d=a.d.isDefined(g.interval)?v(g.interval,i):0,h=a.d.isDefined(g.easing)?v(g.easing,i):h,f=a.d.isDefined(g.cycles)?v(g.cycles,i,t.getTargetCycles(n)):1,Array.isArray(u)?r(u):[u,c,d,h,f])}return"function"==typeof g?r(g.call(t,i,l)):[g,c,d,h,f]}(r)}}],(n=null)&&u(t.prototype,n),c&&u(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,c}()},333:function(e,t,n){n.d(t,{g:function(){return f}});var r=n(705),i=n(34),a=n(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 n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;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,n=e.length;n>t&&"$"===e[n-1];)n--;return"+"===e[n-1]&&n--,e.slice(t,n)}}},{key:"bindTarget",value:function(t,n,i,o,l){var s=t.targets[n],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=n.startsWith("_")?n.slice(1):n,f=!(!o||!o.endsWith("$"));if(!s.activateNextTarget){var v;if(f)v=o;else for(var g=t.originalTargetNames,y=l+1;y<g.length;y++){var p=g[y];if(p.endsWith("$$")){v=p;break}}v&&(s.activateNextTarget=v)}Object.keys(s).forEach((function(o){var l=s[o];if("value"===o||"function"==typeof l&&a.u.isLifeCycleMethod(o)){if(l.__isBoundTargetMethod)return;var f=function(){var s;a.u.lifecycleCoreSet.has(o)||(e.currentTargetName=n,e.currentTModel=t),this.key=h,this.value=this.val(h),this.prevTargetValue=function(){if(i)return(0,r.qI)().isLoading(t,i)?(0,r.qI)().getLoadingItemValue(t,i,n):t.targetValues[i]?t.targetValues[i].actual:t.val(i)}(),this.isPrevTargetUpdated=d;var f="function"==typeof l?l.apply(this,arguments):l;return u=null!==(s=c())&&void 0!==s?s:u,f};f.__isBoundTargetMethod=!0,s[o]=f}}))}},{key:"shouldActivateNextTarget",value:function(t,n){var i,a,o,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!(l>4)&&t){var c="update"===(arguments.length>5&&void 0!==arguments[5]?arguments[5]:"complete"),d=!c;if(t.isTargetImperative(n)){var h=t.targetValues[n],f=h.originalTModel,v=h.originalTargetName;return e.shouldActivateNextTarget(f,v,l+1,s,!0,"update"),void(d&&(e.cleanupTarget(t,n),e.isTargetFullyCompleted(t,n)&&e.shouldActivateNextTarget(f,v,l+1,s,!0,"complete")))}var g=t.targets[n],y=t.targetValues[n];if(g&&y){var p=g.activateNextTarget,m=null!==(i=null==p?void 0:p.endsWith("$$"))&&void 0!==i&&i,b=g.fetchAction;if(!c||!m){var T=!1,w=!1;if(p){if(m){var k,S,M=null!==(k=null===(S=t.targetValues[p])||void 0===S?void 0:S.triggeredByCompleteCount)&&void 0!==k?k:0;y.completeCount>M&&(w=!0)}else{var E,D=null!==(E=y.nextTargetUpdateCount)&&void 0!==E?E:0;w=y.updateCount>D}if(!m&&0===s&&(w||u)||m&&w){var C=!!m&&e.arePreviousTargetsComplete(t,p);if(b)if(m)!0===C?(e.activateTargetOnce(t,p),T=!0,e.clearPendingTargetsForNextTarget(t,p),t.targetValues[p].triggeredByCompleteCount=y.completeCount):e.markPendingTargets(t,n);else for(;(0,r.qI)().isNextLoadingItemSuccessful(t,n);)t.activatedTargets.indexOf(p)>=0?t.activatedTargets.push(p):e.activateTarget(t,p),(0,r.qI)().nextActiveItem(t,n),T=!0;else m?!0===C?(t.removeFromActiveTargets(p),e.activateTarget(t,p),T=!0,e.clearPendingTargetsForNextTarget(t,p),t.targetValues[p].triggeredByCompleteCount=y.completeCount):e.markPendingTargets(t,n):m||(t.activatedTargets.indexOf(p)>=0&&!t.isTargetUpdating(n)?t.activatedTargets.push(p):(e.activateTarget(t,p),T=!0))}else d&&t.isTargetDone(p)&&e.cleanupTarget(t,p)}T&&(m||(y.nextTargetUpdateCount=y.updateCount));var x=p&&null!==(a=null===(o=t.targetValues[p])||void 0===o?void 0:o.completeCount)&&void 0!==a?a:0,O=!!m&&y.completeCount<=x;if(!T&&d)if(p&&O&&!b)e.shouldActivateNextTarget(t,p,l,s+1,u,"complete");else if(!p){var L=g.originalTModel,P=g.originalTargetName;L&&P&&e.shouldActivateNextTarget(L,P,l+1,s,u,"complete")}d&&e.cleanupTarget(t,n)}}}}},{key:"markPendingTargets",value:function(e,t){(e.pendingTargets||(e.pendingTargets=new Set)).add(t)}},{key:"clearPendingTarget",value:function(e,t){var n=e.pendingTargets;n&&(n.delete(t),0===n.size&&(e.pendingTargets=void 0))}},{key:"clearPendingTargetsForNextTarget",value:function(e,t){var n=e.pendingTargets;if(n){for(var r=0,i=s(n);r<i.length;r++){var a,o=i[r];(null===(a=e.targets[o])||void 0===a?void 0:a.activateNextTarget)===t&&n.delete(o)}0===n.size&&(e.pendingTargets=void 0)}}},{key:"cleanupTarget",value:function(t,n){if(e.cleanupVisibleComplete(t,n),t.isTargetComplete(n)||!e.isTargetFullyCompleted(t,n))return!1;t.setTargetComplete(n);var i=t.targets[n];if("function"==typeof(null==i?void 0:i.onComplete)&&(i.onComplete.call(t),t.setTargetMethodName(n,"onComplete")),(null==i?void 0:i.fetchAction)&&(0,r.qI)().isLoadingSuccessful(t,n)){var a=t.fetchActionTargetList.indexOf(n);a>=0&&t.fetchActionTargetList.splice(a,1),i.fetchAction=!1}return e.bubbleInvokerCompletion(t,n),!0}},{key:"cleanupVisibleComplete",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.targets[n];if(!r||"function"!=typeof r.onVisibleComplete)return!1;var i=t.targetValues[n];if(!i)return!1;if(!0!==e.isTargetTreeComplete(t,n,"visible"))return!1;var a=e.getVisibleCompletionSignature(t);return i.visibleCompleteSignature!==a&&(i.visibleCompleteSignature=a,r.onVisibleComplete.call(t),t.setTargetMethodName(n,"onVisibleComplete"),!0)}},{key:"getVisibleCompletionSignature",value:function(e){return e.visibleChildren.map((function(e){return e.oid})).sort().join("|")}},{key:"bubbleInvokerCompletion",value:function(t,n){var r=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&&n){var o="".concat(t.oid,":").concat(n);if(!(r.has(o)||a>4)){r.add(o);var l=t.targetValues[n];if(l){var s,u,c=function(t,n){if(t&&n){var o="".concat(t.oid,":").concat(n);i.has(o)||(i.add(o),e.cleanupTarget(t,n)),e.bubbleInvokerCompletion(t,n,r,i,a+1)}};c(l.originalTModel,l.originalTargetName),t.isTargetImperative(n)||(c(l.invokerTModel,l.invokerTargetName),c(null===(s=t.targets[n])||void 0===s?void 0:s.originalTModel,null===(u=t.targets[n])||void 0===u?void 0:u.originalTargetName))}}}}},{key:"activateTargetOnce",value:function(t,n){var r,i,a=(r=t.targetValues)[n]||(r[n]=e.emptyValue()),o=null!==(i=a.activationTime)&&void 0!==i?i:0;if(o>0&&o>=t.getLastUpdate(n))return!1;a.activationTime=t.getLastUpdate(n)+.001,t.activateTarget(n)}},{key:"activateTarget",value:function(e,t){e.activateTarget(t)}},{key:"isTModelComplete",value:function(t){var n,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,r.EI)().needsReattach(t):!(null!==(n=v.updatingTargetList)&&void 0!==n&&n.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,r.EI)().needsReattach(t)}},{key:"isFetchingComplete",value:function(e){var t=e.state().fetchActionTargetList;if(!t)return!0;var n,i=l(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(!(0,r.qI)().isLoadingSuccessful(e,a))return!1}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"isTargetFullyCompleted",value:function(t,n){var r=!t.isTargetUpdating(n)&&!0===t.isTargetTreeComplete(n);return r&&!t.isTargetImperative(n)&&(r=!t.hasUpdatingImperativeTargets(n)),r&&n.endsWith("$$")&&(r=!0===e.arePreviousTargetsComplete(t,n)),r}},{key:"arePreviousTargetsComplete",value:function(e,t){for(var n=e.functionTargetNames.findIndex((function(e){return t===e}))-1;n>=0;n--){var r=e.functionTargetNames[n];if(!e.isTargetImperative(r)){if(e.activatedTargets.indexOf(r)>=0)return"activated targets";if(e.hasUpdatingImperativeTargets(r))return e.oid+"."+r+": "+e.getUpdatingImperativeTargets(r);if(!0!==e.isTargetTreeComplete(r))return!1}}return!0}},{key:"isTargetTreeComplete",value:function(t,n,i){var l=t.targets[n];if(l){var s,u,c,d=null!=i?i:l.completionScope,h=o(l.value);if(a.u.controlTargetMap[n])return!0;if(!l.fetchAction&&("string"===h||"number"===h||"boolean"===h))return!0;if((0,r.EI)().needsReattach(t))return"needs Reattach";if(t.canHaveDom()&&!t.hasDom())return"no dom";if(!t.isTargetComplete(n)&&!t.isTargetDone(n))return"not done";if((null===(s=l.childAction)||void 0===s?void 0:s.length)>0&&e.getUpdatingChildren(t,n,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,r.qI)().isLoadingSuccessful(t,n))return"incomplete loading"}return!0}},{key:"areTargetChildrenComplete",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";if(!t)return!0;var r,i=l(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!e.shouldIgnoreChildForCompletion(a,n)){if(a.exists()&&!e.isTModelComplete(a,n))return a.oid;if(a.hasChildren()){var o=e.areTargetChildrenComplete(a.getChildren(),n);if(!0!==o)return o}}}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"getUpdatingChildren",value:function(t,n){var r,i,a,o,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",c=new Map;return[].concat(s(null!==(r=null===(i=t.updatingChildrenMap)||void 0===i?void 0:i.values())&&void 0!==r?r:[]),s(null!==(a=null===(o=t.animatingChildrenMap)||void 0===o?void 0:o.values())&&void 0!==a?a:[])).forEach((function(t){var r;if(!e.shouldIgnoreChildForCompletion(t,u)){var i,a=l([].concat(s(null!==(r=t.updatingTargetList)&&void 0!==r?r:[]),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===n)c.set(t.oid,t);else if(v){var g,y;(null===(y=(null===(g=t.targetValues[h])||void 0===g?void 0:g.originalTModel).targets[v])||void 0===y?void 0:y.originalTargetName)===n&&c.set(t.oid,t)}}else(null===(d=t.targets[h])||void 0===d?void 0:d.invokerTargetName)===n&&c.set(t.oid,t)}}catch(e){a.e(e)}finally{a.f()}}})),c}},{key:"hasVisibleActiveChild",value:function(t){var n,r,i;if(e.shouldIgnoreChildForCompletion(t,"visible"))return!1;if((null===(n=t.activeTargetList)||void 0===n?void 0:n.length)>0)return!0;var a,o=l(null!==(r=null===(i=t.getChildren)||void 0===i?void 0:i.call(t))&&void 0!==r?r:[]);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 n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",a=new Map;return s(null!==(n=null===(r=t.activeChildrenMap)||void 0===r?void 0:r.values())&&void 0!==n?n:[]).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.exists()||"none"===t||"visible"===t&&!0!==(null===(n=e.visibilityStatus)||void 0===n?void 0:n.isVisible);var n}},{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,n){var r=e.targets[t];"object"===o(r)&&(r.childAction?r.childAction.includes(n)||r.childAction.push(n):r.childAction=[n])}},{key:"markAddChild",value:function(e,t,n){var r=e.targets[t];"object"===o(r)&&(r.addChildAction?r.addChildAction.includes(n)||r.addChildAction.push(n):r.addChildAction=[n])}},{key:"markFetchAction",value:function(t){if(t){var n=e.currentTargetName,r=t.targets[n];"object"===o(r)&&(r.fetchAction=!0,t.fetchActionTargetList.includes(n)||t.fetchActionTargetList.push(n))}}},{key:"wrapTarget",value:function(t,n,r){return a.u.controlTargetMap[r]||(t.targets[r]={value:n,originalTargetName:e.currentTargetName,originalTModel:e.currentTModel},n=t.targets[r]),n}},{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,r.zw)().domIslandSet.delete(e),r.qw.tmodelIdMap[e.oid]===e&&delete r.qw.tmodelIdMap[e.oid]}},{key:"getOriginalNames",value:function(e,t){var n,r,i,a,o,l;return e.isTargetImperative(t)?(n=null===(i=e.targetValues[t])||void 0===i?void 0:i.originalTModel,r=null===(a=e.targetValues[t])||void 0===a?void 0:a.originalTargetName):(n=null===(o=e.targets[t])||void 0===o?void 0:o.originalTModel,r=null===(l=e.targets[t])||void 0===l?void 0:l.originalTargetName),{originalTModel:n,originalTargetName:r}}},{key:"resetTargetState",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;if(t&&n){e.resetSingleTargetState(t,n),e.resetTargetChildActions(t,n,r,i);var a=t.targets[n],o=null==a?void 0:a.activateNextTarget,l=t.targets[o];l&&(o.endsWith("$")||!1!==l.active)&&(e.resetTargetsBetween(t,n,o,r,i),e.resetTargetPipelineState(t,o,r,i))}}},{key:"resetTargetPipelineState",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;if(t&&n){e.resetSingleTargetState(t,n),e.resetTargetChildActions(t,n,r,i);var a=t.targets[n],o=null==a?void 0:a.activateNextTarget;if(o){var l=t.targets[o];l&&(o.endsWith("$")||!1!==l.active)&&(e.resetTargetsBetween(t,n,o,r,i),e.resetTargetPipelineState(t,o,r,i))}}}},{key:"resetTargetsBetween",value:function(t,n,r){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(n),s=o.indexOf(r);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 n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,i="".concat(t.oid);if(!r.has(i)){r.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,n,r)}}}},{key:"resetTargetChildActions",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set,a=t.targets[n];if(a){var o=a.childAction?s(a.childAction):[],l=a.addChildAction?s(a.addChildAction):[];o.forEach((function(t){t&&e.resetTargetChildState(t,r,i)})),l.forEach((function(t){t&&e.resetTargetChildState(t,r,i)})),r.clearChildActions&&(Array.isArray(a.childAction)&&(a.childAction.length=0),Array.isArray(a.addChildAction)&&(a.addChildAction.length=0))}}},{key:"resetSingleTargetState",value:function(t,n){var r=t.targetValues[n];r&&(r.completeCount=0,r.triggeredByCompleteCount=0,r.resetFlag=!0,r.nextTargetUpdateCount=0,r.visibleCompleteSignature=void 0,r.status=""),t.cancelAnimation(),t.activatedTargets.length=0,t.removeFromActiveTargets(n),t.removeFromAnimatingMap(n),t.removeFromUpdatingTargets(n),e.clearPendingTarget(t,n)}},{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}}}],(n=null)&&d(t.prototype,n),u&&d(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,u}()},530:function(e,t,n){n.d(t,{L:function(){return l}});var r=n(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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;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(),n=e.getHeight()*t+this.currentChild.getMarginTop()+this.currentChild.getMarginBottom();this.xNext=this.scrollLeft-this.xOverflowReset;var r=this.yNext+n+e.val("appendNewLine");this.yEast=this.yNext,this.xSouth=this.xNext,this.ySouth=Math.max(this.ySouth,r),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 n,r,i,a,o,l,s=e.getMeasuringScale(),u=e.getBaseWidth()*s,c=e.getBaseHeight()*s;return"layout"===t?(n=e.x,r=e.y,i=n-e.getMarginLeft(),a=n+u+e.getMarginRight(),o=r-e.getMarginTop(),l=r+c+e.getMarginBottom()):"absolute"===t?(n=e.absX-this.absX,r=e.absY-this.absY,i=n,a=n+u+e.getMarginRight(),o=r,l=r+c+e.getMarginBottom()):(i=n=e.getX(),a=n+u,o=r=e.getY(),l=r+c),{left:i,top:o,right:a,bottom:l}}},{key:"nextLocation",value:function(){var e=this.currentChild,t=e.getMeasuringScale(),n=e.getTopBaseHeight()*t,i=e.getLayoutHeight()*t+this.currentChild.getMarginTop()+this.currentChild.getMarginBottom(),a="always"===e.getItemOverflowMode()&&r.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+=n,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),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},952:function(e,t,n){n.d(t,{n:function(){return s}});var r=n(705),i=n(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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;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 n,r=t.getRealParent();if((null===(n=null==r?void 0:r.targets.onVisibleChildrenChange)||void 0===n||!n)&&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,n){for(;t;){var i=t.getRealParent();if(!i||i===(0,r.Bt)())break;if(e.shouldClipByAncestor(i)){var a=e.getParentClip(i);if(!e.rectsOverlap(n,a))return{clip:a,isVisible:!1};n=e.intersectRects(i,n,a)}t=i}var o=e.getScreenViewportRect();return e.rectsOverlap(n,o)?{isVisible:!0}:{clip:o,isVisible:!1}}},{key:"getScreenViewportRect",value:function(){return{x:0,y:0,r:(0,r.r5)(),b:(0,r.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,n,r=(null===(t=e.$dom)||void 0===t?void 0:t.getScrollLeft())||0,i=(null===(n=e.$dom)||void 0===n?void 0:n.getScrollTop())||0,a=e.getHeight(),o=e.getWidth();return{x:e.absX+r,y:e.absY+i,r:e.absX+o+r,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,n){var r,i,a=(null===(r=e.$dom)||void 0===r?void 0:r.getScrollLeft())||0,o=(null===(i=e.$dom)||void 0===i?void 0:i.getScrollTop())||0;return{x:Math.max(t.x-a,n.x-a),y:Math.max(t.y-o,n.y-o),r:Math.min(t.r-a,n.r-a),b:Math.min(t.b-o,n.b-o),source:n.source}}}],(n=null)&&o(t.prototype,n),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,a}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__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},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_},tApp:function(){return App.E_},tRoot:function(){return App.Bt}});var App=__webpack_require__(705),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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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 n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_typeof(r))return r;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 n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.yStart,i=void 0===r?void 0:r,a=n.xStart,o=void 0===a?(0,App.r5)()/2:a,l=n.widthStart,s=void 0===l?50:l,u=n.heightStart,c=void 0===u?50:u,d=n.bFactor,h=void 0===d?.6:d,f=n.cFactor,v=void 0===f?.2:f,g=n.rotationStart,y=void 0===g?0:g,p=n.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=[y];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 n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.from,i=void 0===r?void 0:r,a=n.to,o=void 0===a?void 0:a,l=n.widthStart,s=void 0===l?void 0:l,u=n.heightStart,c=void 0===u?void 0:u,d=n.xStart,h=void 0===d?void 0:d,f=n.yStart,v=void 0===f?void 0:f,g=n.bFactor,y=void 0===g?.5:g,p=n.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:y,cFactor:m,rIncrement:0})}},{key:"shake",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.xStart,i=void 0===r?void 0:r,a=n.width,o=void 0===a?void 0:a,l=n.height,s=void 0===l?void 0:l,u=n.bFactor,c=void 0===u?.6:u,d=n.cFactor,h=void 0===d?.3:d,f=n.strength,v=void 0===f?20:f,g=TUtil.d.isDefined(o)?o:t.getWidth(),y=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:g,heightStart:y,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,n=void 0===t?0:t,r=e.endAngle,i=void 0===r?360:r,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=[],y=[],p=[],m=n;m<=i;m+=o){var b=m*(Math.PI/180);g.push(Math.floor(s+h*Math.cos(b))),y.push(Math.floor(c+v*Math.sin(b))),p.push(90+m)}return{x:{list:g},y:{list:y},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);window.TargetJS=__webpack_exports__})();