UNPKG

tripetto-runner-foundation

Version:

Foundation library for building form/survey runners for Tripetto.

2 lines 361 kB
/*! Tripetto Form Runner 7.0.13 - Copyright (C) 2023 Tripetto B.V. - All Rights Reserved */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("TripettoRunner",[],t):"object"==typeof exports?exports.TripettoRunner=t():e.TripettoRunner=t()}(self,(function(){return function(){"use strict";var e={3e3:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;var r=n(937);Object.defineProperty(t,"encrypt",{enumerable:!0,get:function(){return r.encrypt}}),Object.defineProperty(t,"decrypt",{enumerable:!0,get:function(){return r.decrypt}})},937:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;var n=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],r=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]];function i(e,t,n,r){for(var i=0;i<4;i++)for(var o=0;o<r;o++)e[i][o]^=t[4*n+o][i]}function o(e,t){for(var r=0;r<4;r++)for(var i=0;i<t;i++)e[r][i]=n[e[r][i]]}function a(e){for(var t=0;t<4;t++)e[t]=n[e[t]]}function s(e){for(var t=e[0],n=0;n<3;n++)e[n]=e[n+1];return e[3]=t,e}function u(e,t){for(var n=new Array(4),r=1;r<4;r++){for(var i=0;i<4;i++)n[i]=e[r][(i+r)%t];for(i=0;i<4;i++)e[r][i]=n[i]}}function c(e){for(var t=0;t<4;t++){for(var n=new Array(4),r=new Array(4),i=0;i<4;i++)n[i]=e[i][t],r[i]=128&e[i][t]?e[i][t]<<1^283:e[i][t]<<1;e[0][t]=r[0]^n[1]^r[1]^n[2]^n[3],e[1][t]=n[0]^r[1]^n[2]^r[2]^n[3],e[2][t]=n[0]^n[1]^r[2]^n[3]^r[3],e[3][t]=n[0]^r[0]^n[1]^n[2]^r[3]}}function l(e,t){for(var n=t.length/4-1,r=[[],[],[],[]],a=0;a<16;a++)r[a%4][Math.floor(a/4)]=e[a];i(r,t,0,4);for(var s=1;s<n;s++)o(r,4),u(r,4),c(r),i(r,t,s,4);o(r,4),u(r,4),i(r,t,n,4);for(var l=new Array(16),p=0;p<16;p++)l[p]=r[p%4][Math.floor(p/4)];return l}function p(e){for(var t=e.length/4,n=t+6,i=new Array(4*(n+1)),o=[0,0,0,0],u=0;u<t;u++)i[u]=[e[4*u],e[4*u+1],e[4*u+2],e[4*u+3]];for(var c=t;c<4*(n+1);c++){i[c]=[0,0,0,0];for(var l=0;l<4;l++)o[l]=i[c-1][l];if(c%t==0){a(s(o));for(l=0;l<4;l++)o[l]^=r[c/t][l]}else t>6&&c%t==4&&a(o);for(l=0;l<4;l++)i[c][l]=i[c-t][l]^o[l]}return i}function h(e){return e.replace(/[\u0080-\u07ff]/g,(function(e){var t=e.charCodeAt(0);return String.fromCharCode(192|t>>6,128|63&t)})).replace(/[\u0800-\uffff]/g,(function(e){var t=e.charCodeAt(0);return String.fromCharCode(224|t>>12,128|t>>6&63,128|63&t)}))}t.encrypt=function(e,t,n,r){var i=n/8,o=new Array(i);e=h(e),t=h(t);for(var a=0;a<i;a++)o[a]=isNaN(t.charCodeAt(a))?0:t.charCodeAt(a);var s=l(o,p(o)),u=p(s.concat(s.slice(0,i-16))),c=Math.ceil(e.length/16),f=new Array(16),d=new Array(c),m=(new Date).getTime(),g=m%1e3,b=Math.floor(m/1e3),y=Math.floor(65535*Math.random());for(a=0;a<2;a++)f[a]=g>>>8*a&255;for(a=0;a<2;a++)f[a+2]=y>>>8*a&255;for(a=0;a<4;a++)f[a+4]=b>>>8*a&255;var _="";for(a=0;a<8;a++)_+=String.fromCharCode(f[a]);for(var v=0;v<c;v++){for(var S=0;S<4;S++)f[15-S]=v>>>8*S&255;for(S=0;S<4;S++)f[15-S-4]=v/4294967296>>>8*S;var P=v<c-1?16:(e.length-1)%16+1,O=l(f,u),k=new Array(P);for(a=0;a<P;a++)k[a]=String.fromCharCode(O[a]^e.charCodeAt(16*v+a));d[v]=k.join("")}return r(_+d.join(""))},t.decrypt=function(e,t,n,r){var i=n/8,o=new Array(i);e=r(e),t=h(t);for(var a=0;a<i;a++)o[a]=isNaN(t.charCodeAt(a))?0:t.charCodeAt(a);var s=l(o,p(o)),u=p(s.concat(s.slice(0,i-16))),c=new Array(8),f=e.slice(0,8),d=Math.ceil((e.length-8)/16),m=new Array(d);for(a=0;a<8;a++)c[a]=f.charCodeAt(a);for(var g=0;g<d;g++)m[g]=e.slice(8+16*g,8+16*g+16);var b=new Array(m.length);for(g=0;g<d;g++){for(var y=0;y<4;y++)c[15-y]=g>>>8*y&255;for(y=0;y<4;y++)c[15-y-4]=(g+1)/4294967296-1>>>8*y&255;var _=l(c,u),v=new Array(m[g].length);for(a=0;a<m[g].length;a++)v[a]=String.fromCharCode(_[a]^m[g].charCodeAt(a));b[g]=v.join("")}return b.join("").replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,(function(e){return String.fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2))})).replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,(function(e){return String.fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}))}},6148:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Callback=t.Await=void 0;var r=n(5053);Object.defineProperty(t,"Await",{enumerable:!0,get:function(){return r.Await}});var i=n(6439);Object.defineProperty(t,"Callback",{enumerable:!0,get:function(){return i.Callback}})},5053:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Await=void 0;var r=n(655),i=function(e){function t(t){return e.call(this,{await:t.await,promise:t.promise,conditional:t.conditional,continuous:t.continuous})||this}return r.__extends(t,e),t.for=function(e){return new t(e)},t.prototype.done=function(){return this.terminate()},t}(n(6439).Callback);t.Await=i},6439:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Callback=void 0;var r=n(4389),i=function(){function e(e){var t;this.m_nPromises=0,this.m_bAsynchronous=!1,this.m_bCanceled=!1,this.m_fnPromise=e.promise,this.m_bContinuous=(0,r.castToBoolean)(e.continuous),(t=e.await(this))!==this&&0===this.m_nPromises&&this.return(t),this.m_bAsynchronous=!0,this.m_bCondition=(0,r.castToBoolean)(this.m_bCondition,!(0,r.castToBoolean)(e.conditional))}return e.of=function(t){return new e(t)},Object.defineProperty(e.prototype,"condition",{get:function(){return(0,r.castToBoolean)(this.m_bCondition,!0)},set:function(e){this.m_bCondition=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAlive",{get:function(){return(0,r.isFunction)(this.m_fnPromise)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promiseCount",{get:function(){return this.m_nPromises},enumerable:!1,configurable:!0}),e.prototype.terminate=function(){return this.return(void 0),this.condition},e.prototype.cancel=function(){return this.m_bCanceled=!0,this.m_bCondition=!0,this.terminate()},e.prototype.return=function(e){return this.m_fnPromise&&this.condition&&(this.m_nPromises++,this.m_fnPromise({isAsynchronous:this.m_bAsynchronous,isCanceled:this.m_bCanceled,payload:e}),this.m_bContinuous||(this.m_fnPromise=void 0)),e},e}();t.Callback=i},2907:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.observable=t.invokeMarker=t.defineMarker=void 0;var r=n(4009);Object.defineProperty(t,"defineMarker",{enumerable:!0,get:function(){return r.defineMarker}}),Object.defineProperty(t,"invokeMarker",{enumerable:!0,get:function(){return r.invokeMarker}});var i=n(8906);Object.defineProperty(t,"observable",{enumerable:!0,get:function(){return i.observable}})},4009:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.invokeMarker=t.defineMarker=void 0;var i=n(4389);t.defineMarker=function(e,t,n,r,o){if(void 0===o&&(o="multiple"),!r||!(0,i.isFunction)(r.value))throw new Error("The '@".concat(e,"' decorator can only be applied to a method but '").concat(String(n),"' seems to be a property."));var a="@marker @".concat(e),s="@marker @".concat(e," #").concat(String(n)),u=Object.getOwnPropertyDescriptor(t,a);if(Object.getOwnPropertyDescriptor(t,s))throw new Error("Decorator '@".concat(e,"' is already applied to the method '").concat(String(n),"'."));if("single"===o&&u)throw new Error("Decorator '@".concat(e,"' is already used in this class, but can only be applied once."));Object.defineProperty(t,s,{value:!0,writable:!1,enumerable:!1,configurable:!1}),u?u.value.push(r.value):Object.defineProperty(t,a,{value:[r.value],writable:!1,enumerable:!1,configurable:!1})},t.invokeMarker=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=(0,i.getAny)(t,"@marker @".concat(e));if(a){var s=a.length;if(1===s)return i.callBind.apply(void 0,r([a[0],t],n,!1));for(var u=0;u<s;u++)i.callBind.apply(void 0,r([a[u],t],n,!1))}}},8906:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0;var r=n(4389);function i(e,t,n,i,o){var a={target:t,property:n,oldValue:i,newValue:o};(0,r.each)((0,r.getAny)(t,e),(function(e){(0,r.callBind)(e,t,a)}))}t.observable=function(e,t,n,o,a){var s="@observers #".concat(String(n)),u=Object.getOwnPropertyDescriptor(t,s),c="@observers @".concat(e," #").concat(String(n));if(Object.getOwnPropertyDescriptor(t,c))throw new Error("Decorator '@".concat(e,"' is already applied to the property '").concat(String(n),"'."));if(Object.defineProperty(t,c,{value:!0,writable:!1,enumerable:!1,configurable:!1}),u&&(0,r.isArray)(u.value))u.value.push(a);else{if(o){if(o.configurable=!1,!o.set)throw new Error("Decorator '@".concat(e,"' can only be used on writable properties, but '").concat(String(n),"' seems to be a readonly property or a method."));var l=o.set;o.set=function(e){var t=(0,r.getAny)(this,n);t!==e&&(l.call(this,e),i(s,this,n,t,e))}}else{var p="@observable #".concat(String(n));Object.defineProperty(t,n,{get:function(){return(0,r.getAny)(this,p)},set:function(e){var t=(0,r.getAny)(this,p);t!==e&&((0,r.setAny)(this,p,e),i(s,this,n,t,e))},enumerable:!0,configurable:!1})}Object.defineProperty(t,s,{value:[a],writable:!1,enumerable:!1,configurable:!1})}}},4389:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.disableDebugging=t.enableDebugging=t.DEBUG=t.Stack=t.Debounce=t.Throttle=t.Limiter=t.Enumerator=t.Flags=t.DateTime=t.Str=t.Num=t.Environment=t.Console=void 0,n(655).__exportStar(n(9226),t);var r=n(2862);Object.defineProperty(t,"Console",{enumerable:!0,get:function(){return r.Console}});var i=n(3206);Object.defineProperty(t,"Environment",{enumerable:!0,get:function(){return i.Environment}});var o=n(1984);Object.defineProperty(t,"Num",{enumerable:!0,get:function(){return o.Num}});var a=n(9930);Object.defineProperty(t,"Str",{enumerable:!0,get:function(){return a.Str}});var s=n(7729);Object.defineProperty(t,"DateTime",{enumerable:!0,get:function(){return s.DateTime}});var u=n(4957);Object.defineProperty(t,"Flags",{enumerable:!0,get:function(){return u.Flags}});var c=n(7269);Object.defineProperty(t,"Enumerator",{enumerable:!0,get:function(){return c.Enumerator}});var l=n(4569);Object.defineProperty(t,"Limiter",{enumerable:!0,get:function(){return l.Limiter}}),Object.defineProperty(t,"Throttle",{enumerable:!0,get:function(){return l.Throttle}}),Object.defineProperty(t,"Debounce",{enumerable:!0,get:function(){return l.Debounce}});var p=n(9439);Object.defineProperty(t,"Stack",{enumerable:!0,get:function(){return p.Stack}}),t.DEBUG=!1,t.enableDebugging=function(){t.DEBUG=!0},t.disableDebugging=function(){t.DEBUG=!1}},2862:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Console=void 0;var r=n(9930),i=n(7729);!function(e){function t(){return r.Str.padRight(i.DateTime.logTime," ",16,!0)}function n(e){return r.Str.padRight(e," ",23,!0)}e.time=t,e.module=n,e.log=function(e,r){return t()+n(e)+r}}(t.Console||(t.Console={}))},7551:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ENUMERATOR=t.UI=t.PROMISES=t.FRAMES=t.TICKS=t.IS_WEBWORKER=t.IS_NODE=t.IS_BROWSER=t.FUNCTION_PRECISE=t.FUNCTION_INTERVAL=t.FUNCTION_TIMEOUT=void 0;var r=n(1019),i=n(7269),o="undefined"!=typeof process&&process&&process.nextTick?function(e){process.nextTick(e)}:"undefined"!=typeof Promise&&Promise?function(e){Promise.resolve().then(e)}:function(e){setTimeout(e,0)},a="undefined"!=typeof Promise&&Promise?function(e){Promise.resolve().then(e)}:"undefined"!=typeof process&&process&&process.nextTick?function(e){process.nextTick(e)}:function(e){setTimeout(e,0)},s="undefined"!=typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)||0}:function(e){return setTimeout(e,1e3/60)||0};t.FUNCTION_TIMEOUT=function(e,t){return void 0===t&&(t=0),setTimeout(e,t)||0};t.FUNCTION_INTERVAL=function(e,t){return void 0===t&&(t=0),setInterval(e,t)||0};t.FUNCTION_PRECISE=function(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()},t.IS_BROWSER="undefined"!=typeof window,t.IS_NODE="undefined"==typeof window&&"undefined"!=typeof process,t.IS_WEBWORKER="undefined"!=typeof self&&"function"==typeof postMessage,t.TICKS=new r.Scheduler(o),t.FRAMES=new r.Scheduler(s),t.PROMISES=new r.Scheduler(a),t.UI={},t.ENUMERATOR=new i.Enumerator},7729:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateTime=void 0;var r=n(9226),i=n(1984),o=n(9930),a=n(7551);t.DateTime=function(){function e(t){void 0===t&&(t=new Date),t instanceof e?this.m_pDate=new Date(t.time):(0,r.isDate)(t)?this.m_pDate=new Date(t.getTime()):this.m_pDate=new Date(t)}return Object.defineProperty(e,"now",{get:function(){return Date.now()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"precise",{get:function(){return(0,a.FUNCTION_PRECISE)()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"UTC",{get:function(){return this.now-60*(new Date).getTimezoneOffset()*1e3},enumerable:!1,configurable:!0}),Object.defineProperty(e,"today",{get:function(){var e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e.getTime()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"UTCToday",{get:function(){var e=new Date,t=new Date;return t.setUTCFullYear(e.getFullYear()),t.setUTCMonth(e.getMonth()),t.setUTCDate(e.getDate()),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t.getTime()},enumerable:!1,configurable:!0}),e.isFuture=function(e){return this.now<e},e.isPast=function(e){return this.now>=e},e.elapsed=function(e,t){return void 0===t&&(t=!1),((0,r.castToBoolean)(t)?this.precise:this.now)-e},e.timerReset=function(){var e=this.m_nStamp;return this.m_nStamp=this.precise,e},Object.defineProperty(e,"timerElapsed",{get:function(){return this.precise-this.timerReset()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"timerStamp",{get:function(){return this.formatElapsed()},enumerable:!1,configurable:!0}),e.format=function(e,t,n,i){void 0===e&&(e="dd-MM-yyyy HH:mm:ss.SSS"),void 0===t&&(t=this.now),void 0===n&&(n=!1);var a=new Date(t);return o.Str.sanitize(e.replace(/('[^']+')|('')|(HH)|(H)|(hh)|(h)|(mm)|(m)|(ss)|(s)|(SSS)|(S)|(zzzz)|(z)|(dd)|(d)|(MMMMM)|(MMMM)|(MMM)|(MM)|(M)|(LLLLL)|(LLLL)|(LLL)|(EEEEE)|(EEEE)|(EEE)|(EE)|(E)|(ccccc)|(cccc)|(ccc)|(cc)|(yyyy)|(yy)|(y)|(a)/g,(function(e){switch(e){case"HH":return o.Str.padLeft((0,r.castToString)(n?a.getUTCHours():a.getHours()),"0",2);case"H":return(0,r.castToString)(n?a.getUTCHours():a.getHours());case"hh":return o.Str.padLeft((0,r.castToString)(((n?a.getUTCHours():a.getHours())+11)%12+1),"0",2);case"h":return(0,r.castToString)(((n?a.getUTCHours():a.getHours())+11)%12+1);case"a":return i?(0,r.castToString)((n?a.getUTCHours():a.getHours())>=12?i.PM:i.AM):"";case"mm":return o.Str.padLeft((0,r.castToString)(n?a.getUTCMinutes():a.getMinutes()),"0",2);case"m":return(0,r.castToString)(n?a.getUTCMinutes():a.getMinutes());case"ss":return o.Str.padLeft((0,r.castToString)(n?a.getUTCSeconds():a.getSeconds()),"0",2);case"s":return(0,r.castToString)(n?a.getUTCSeconds():a.getSeconds());case"SSS":return o.Str.padLeft((0,r.castToString)(n?a.getUTCMilliseconds():a.getMilliseconds()),"0",3);case"S":return(0,r.castToString)(n?a.getUTCMilliseconds():a.getMilliseconds());case"z":case"zzzz":return"";case"dd":return o.Str.padLeft((0,r.castToString)(n?a.getUTCDate():a.getDate()),"0",2);case"d":return(0,r.castToString)(n?a.getUTCDate():a.getDate());case"yyyy":case"y":return(0,r.castToString)(n?a.getUTCFullYear():a.getFullYear());case"yy":return o.Str.padLeft((0,r.castToString)(n?a.getUTCFullYear():a.getFullYear()),"0",2,!0);case"MMMMM":return(0,r.castToString)((0,r.arrayItem)(i?i.monthsFormattedNarrow:void 0,n?a.getUTCMonth():a.getMonth(),"?"));case"MMMM":return(0,r.castToString)((0,r.arrayItem)(i?i.monthsFormattedWide:void 0,n?a.getUTCMonth():a.getMonth(),"?"));case"MMM":return(0,r.castToString)((0,r.arrayItem)(i?i.monthsFormattedAbbreviated:void 0,n?a.getUTCMonth():a.getMonth(),"?"));case"MM":return o.Str.padLeft((0,r.castToString)((n?a.getUTCMonth():a.getMonth())+1),"0",2);case"M":return(0,r.castToString)((n?a.getUTCMonth():a.getMonth())+1);case"LLLLL":return(0,r.castToString)((0,r.arrayItem)(i?i.monthsNominativeNarrow:void 0,n?a.getUTCMonth():a.getMonth(),"?"));case"LLLL":return(0,r.castToString)((0,r.arrayItem)(i?i.monthsNominativeWide:void 0,n?a.getUTCMonth():a.getMonth(),"?"));case"LLL":return(0,r.castToString)((0,r.arrayItem)(i?i.monthsNominativeAbbreviated:void 0,n?a.getUTCMonth():a.getMonth(),"?"));case"EEEEE":return(0,r.castToString)((0,r.arrayItem)(i?i.weekdaysFormattedNarrow:void 0,n?a.getUTCDay():a.getDay(),"?"));case"EEEE":return(0,r.castToString)((0,r.arrayItem)(i?i.weekdaysFormattedWide:void 0,n?a.getUTCDay():a.getDay(),"?"));case"EEE":return(0,r.castToString)((0,r.arrayItem)(i?i.weekdaysFormattedAbbreviated:void 0,n?a.getUTCDay():a.getDay(),"?"));case"EE":return(0,r.castToString)((0,r.arrayItem)(i?i.weekdaysFormattedShort:void 0,n?a.getUTCDay():a.getDay(),"?"));case"E":return(0,r.castToString)(n?a.getUTCDay():a.getDay());case"ccccc":return(0,r.castToString)((0,r.arrayItem)(i?i.weekdaysNominativeNarrow:void 0,n?a.getUTCDay():a.getDay(),"?"));case"cccc":return(0,r.castToString)((0,r.arrayItem)(i?i.weekdaysNominativeWide:void 0,n?a.getUTCDay():a.getDay(),"?"));case"ccc":return(0,r.castToString)((0,r.arrayItem)(i?i.weekdaysNominativeAbbreviated:void 0,n?a.getUTCDay():a.getDay(),"?"));case"cc":return(0,r.castToString)((0,r.arrayItem)(i?i.weekdaysNominativeShort:void 0,n?a.getUTCDay():a.getDay(),"?"));case"''":return"'"}return e.replace(/'/g,"")})))},e.formatElapsed=function(e,t,n,a){var s,u,c,l,p,h;return void 0===e&&(e="H'h':mm'm':ss's'.SSS'ms'.uuu'µs'"),t=i.Num.conform((0,r.castToFloat)(t,this.timerElapsed),3),s=Math.floor(t/36e5),u=Math.floor(t%36e5/6e4),c=Math.floor(t%36e5%6e4/1e3),h=(0,r.castToString)(i.Num.conform(t%36e5%6e4%1e3,3)).split("."),l=h[0],p=(0,r.arraySize)(h)>=2?h[1]:"0",o.Str.sanitize(e.replace(/('[^']+')|('')|(HH)|(H)|(hh)|(h)|(mm)|(m)|(ss)|(s)|(SSS)|(S)|(uuu)|(u)|(zzzz)|(z)|(dd)|(d)|(MMMMM)|(MMMM)|(MMM)|(MM)|(M)|(LLLLL)|(LLLL)|(LLL)|(EEEEE)|(EEEE)|(EEE)|(EE)|(E)|(ccccc)|(cccc)|(ccc)|(cc)|(yyyy)|(yy)|(y)|(a)/g,(function(e){switch(e){case"HH":return o.Str.padLeft((0,r.castToString)(s),"0",2);case"H":return(0,r.castToString)(s);case"hh":return o.Str.padLeft((0,r.castToString)((s+11)%12+1),"0",2);case"h":return(0,r.castToString)((s+11)%12+1);case"a":return(0,r.castToString)(s>=12?a:n);case"mm":return o.Str.padLeft((0,r.castToString)(u),"0",2);case"m":return(0,r.castToString)(u);case"ss":return o.Str.padLeft((0,r.castToString)(c),"0",2);case"s":return(0,r.castToString)(c);case"SSS":return o.Str.padLeft(l,"0",3);case"S":return l;case"uuu":return o.Str.padLeft(p,"0",3);case"u":return p;case"z":case"zzzz":return"";case"''":return"'"}return e.replace(/'/g,"")})))},Object.defineProperty(e,"log",{get:function(){return this.format("dd-MM-yyyy HH:mm:ss.SSS")},enumerable:!1,configurable:!0}),Object.defineProperty(e,"logTime",{get:function(){return this.format("HH:mm:ss.SSS")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"date",{get:function(){return this.m_pDate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this.date.getTime()},set:function(e){this.m_pDate=new Date(e)},enumerable:!1,configurable:!0}),e.m_nStamp=0,e}()},7269:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Enumerator=void 0;t.Enumerator=function(){function e(){this.m_nEnumerator=0}return Object.defineProperty(e,"n",{get:function(){return this.m_nEnumerator===Number.MAX_VALUE&&(this.m_nEnumerator=0),++this.m_nEnumerator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"n",{get:function(){return this.m_nEnumerator===Number.MAX_VALUE&&(this.m_nEnumerator=0),++this.m_nEnumerator},set:function(e){e>this.m_nEnumerator&&e<=Number.MAX_VALUE&&(this.m_nEnumerator=e)},enumerable:!1,configurable:!0}),e.recycle=function(){this.m_nEnumerator=Number.MAX_VALUE},e.prototype.recycle=function(){this.m_nEnumerator=Number.MAX_VALUE},e.m_nEnumerator=0,e}()},3206:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0;var r=n(7551);!function(e){e.isBrowser=r.IS_BROWSER,e.isNode=r.IS_NODE,e.isWebWorker=r.IS_WEBWORKER}(t.Environment||(t.Environment={}))},4957:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Flags=void 0;var r=n(9226),i=function(){function e(){this.m_nFlag=1}return Object.defineProperty(e.prototype,"flag",{get:function(){var e=this.m_nFlag;return this.m_nFlag=this.m_nFlag<<1,e},enumerable:!1,configurable:!0}),e.convert=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=1;return(0,r.reduce)(e,(function(e,t){return e|=t?n:0,n*=2,e}),0)||0},e.has=function(e,t){var n=1;if(t>0)for(;--t;)n*=2;return(0,r.castToBoolean)(e&n)},e}();t.Flags=i},9226:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.callPromise=t.callAsync=t.call=t.find=t.findLast=t.findFirst=t.filter=t.forEach=t.count=t.hasOneOrMore=t.hasOnly=t.has=t.reduce=t.map=t.eachReverse=t.each=t.compare=t.extendImmutable=t.extend=t.clone=t.castToBoolean=t.castToFloat=t.castToNumber=t.castToString=t.cast=t.assert=t.isPromise=t.isError=t.isRegEx=t.isDate=t.lastArrayItem=t.firstArrayItem=t.arrayItem=t.arraySize=t.isArrayOrCollection=t.isCollection=t.isArray=t.isBoolean=t.isFloat=t.isNumberFinite=t.isNumber=t.isFilledString=t.stringLength=t.isString=t.isFunction=t.isObject=t.isNull=t.isDefined=t.isUndefined=t.noop=void 0,t.createInstanceOf=t.destroy=t.getFloat=t.getNumber=t.getString=t.getBoolean=t.getAny=t.get=t.setAny=t.set=t.scheduleAction=t.scheduleEvent=t.scheduleAnimation=t.scheduleNumberOfFrames=t.cancelUIInterval=t.scheduleUIInterval=t.cancelInterval=t.scheduleInterval=t.cancelUITimeout=t.scheduleUITimeout=t.cancelTimeout=t.scheduleTimeout=t.cancelFrame=t.scheduleAndCancelFrame=t.scheduleFrame=t.cancelPromise=t.scheduleAndCancelPromise=t.schedulePromise=t.cancelTick=t.scheduleAndCancelTick=t.scheduleTick=t.callFunction=t.callBind=t.callEx=void 0;var r=n(655),i=n(7729),o=n(7551);function a(e){return void 0===e}function s(e){return!a(e)}function u(e){return a(e)||"object"==typeof e&&null===e}function c(e){return"object"==typeof e&&null!==e&&!g(e)}function l(e){return"function"==typeof e}function p(e){return"string"==typeof e}function h(e){return p(e)?e.length:0}function f(e){return h(e)>0}function d(e,t,n){return"number"==typeof e&&isFinite(e)&&("number"!=typeof t||e>=t)&&("number"!=typeof n||e<=n)}function m(e){return"boolean"==typeof e}function g(e){return Array.isArray(e)}function b(e){return(c(e)||g(e)||l(e))&&"number"==typeof e.length&&"function"==typeof e.item}function y(e){return g(e)||b(e)?e.length:c(e)?y(Object.keys(e)):0}function _(e,t){return p(e)?e:s(e)&&!u(e)&&l(e.toString)?e.toString():p(t)?t:""}function v(e,t){if(d(e))return Math.round(e);if(m(e))return e?1:0;if(s(e)&&!u(e)&&l(e.toString)){var n=parseFloat(e.toString().replace(/[^-e\d.]/g,""));if(d(n))return Math.round(n)}return d(t)?Math.round(t):0}function S(e,t){if(d(e))return parseFloat("".concat(e));if(m(e))return e?1:0;if(s(e)&&!u(e)&&l(e.toString)){var n=parseFloat(e.toString().replace(/[^-e\d.]/g,""));if(d(n))return n}return d(t)?t:0}function P(e,t){if(m(e))return e;if(d(e))return!!e;if(s(e)&&!u(e)&&l(e.toString)){var n=e.toString();return!("0"===n||"false"===n.toLowerCase())}return!!t}function O(e,t,n){if(e&&t){var i,o=n&&n.arguments?n.arguments:void 0,a=!(!n||!n.replace);if(i=n&&n.keys?o?function(e,n){return t.apply(void 0,r.__spreadArray([e,n],o,!1))}:function(e,n){return t(e,n)}:o?function(e){return t.apply(void 0,r.__spreadArray([e],o,!1))}:function(e){return t(e)},g(e))e.forEach((function(t,n){var r=i(t,n);a&&(e[n]=r)}));else if(b(e))for(var s=e,u=s.length,c=0;c<u;c++)i(s.item(c),c);else{Object.keys(e).forEach((function(t){var n=i(e[t],t);a&&(e[t]=n)}))}}return e}function k(e,t,n){if(void 0===n&&(n=!1),e){var r=void 0,i=void 0;b(e)?r=e:g(e)||(i=Object.keys(e));for(var o=(i||r||e).length,a=0;a<o;a++){if(n===P(x(t,i?e[i[a]]:r?r.item(a):e[a])))return n}return!n}return!1}function C(e,t,n){var i,o,a,s=!(!n||"first"!==n.return),u=!(!n||"last"!==n.return);if(n&&n.return&&"matches"!==n.return||(i=[]),e){var c,h=void 0;b(e)?c=e:g(e)||(h=Object.keys(e));for(var f=(h||c||e).length,d=u?f-1:0;u&&d>=0||!u&&d<f;u?d--:d++){if(P(x(t,h?e[h[d]]:c?c.item(d):e[d]))){if(n&&l(n.do)){var m=x.apply(void 0,r.__spreadArray([n.do],(o=h?h[d]:d,a=n&&n.arguments?n.arguments.slice(0):[],p(o)?a.unshift(e[o]):c?a.unshift(c.item(o)):a.unshift(e[o]),a),!1));n&&n.replace&&!c&&(h?e[h[d]]=m:e[d]=m)}if(s||u)return h?e[h[d]]:c?c.item(d):e[d];i&&(h?i.push(e[h[d]]):c?i.push(c.item(d)):i.push(e[d]))}}}return i}function x(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(e)return e.apply(void 0,t)}function T(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];o.TICKS.schedule.apply(o.TICKS,r.__spreadArray([e],t,!1))}function w(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return o.TICKS.schedule.apply(o.TICKS,r.__spreadArray([e],t,!1))}function M(e){return o.TICKS.cancel(e),0}function I(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return o.PROMISES.schedule.apply(o.PROMISES,r.__spreadArray([e],t,!1))}function E(e){return o.PROMISES.cancel(e),0}function j(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return o.FRAMES.schedule.apply(o.FRAMES,r.__spreadArray([e],t,!1))}function A(e){return o.FRAMES.cancel(e),0}function F(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e&&(t>0?j((function(){return F.apply(void 0,r.__spreadArray([e,--t],n,!1))})):e.apply(void 0,n))}function N(e,t){if(e&&f(t))return e[t]}function R(e,t){return!!(e&&f(t)&&s(e[t]))&&delete e[t]}t.noop=function(){},t.isUndefined=a,t.isDefined=s,t.isNull=u,t.isObject=c,t.isFunction=l,t.isString=p,t.stringLength=h,t.isFilledString=f,t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isNumberFinite=d,t.isFloat=function(e,t,n){return"number"==typeof e&&isFinite(e)&&e%1!=0&&("number"!=typeof t||e>=t)&&("number"!=typeof n||e<=n)},t.isBoolean=m,t.isArray=g,t.isCollection=b,t.isArrayOrCollection=function(e){return g(e)||b(e)},t.arraySize=y,t.arrayItem=function(e,t,n){if(t=v(t),e)if(g(e)){if(t>=0&&t<y(e))return e[t]}else if(b(e)){if(t>=0&&t<y(e))return e.item(t)}else if(c(e)){var r=Object.keys(e);if(t>=0&&t<y(r))return e[r[t]]}return s(n)?n:void 0},t.firstArrayItem=function(e,t){if(e)if(g(e)){if(y(e)>0)return e[0]}else if(b(e)){if(y(e)>0)return e.item(0)}else if(c(e)){var n=Object.keys(e);if(y(n)>0)return e[n[0]]}return s(t)?t:void 0},t.lastArrayItem=function(e,t){if(e)if(g(e)){if((n=y(e))>0)return e[n-1]}else if(b(e)){if((n=y(e))>0)return e.item(n-1)}else if(c(e)){var n,r=Object.keys(e);if((n=y(r))>0)return e[r[n-1]]}return s(t)?t:void 0},t.isDate=function(e){return c(e)&&"[object Date]"===Object.prototype.toString.call(e)},t.isRegEx=function(e){return c(e)&&"[object RegExp]"===Object.prototype.toString.call(e)},t.isError=function(e){return e instanceof Error},t.isPromise=function(e){return e instanceof Promise||c(e)&&"function"==typeof e.then&&"function"==typeof e.catch&&"function"==typeof e.finally},t.assert=function(e,t){if(u(e))throw new Error(t||"Assert failed!");return e},t.cast=function(e){return e},t.castToString=_,t.castToNumber=v,t.castToFloat=S,t.castToBoolean=P,t.clone=function(e){return Object.create(e)},t.extend=function e(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=t;return O(n,(function(t){O(t,(function(t,n){c(t)&&c(i[n])?e(i[n],t):i[n]=t}),{keys:!0})})),i},t.extendImmutable=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={};return O(t,(function(t){O(t,(function(t,n){c(t)&&c(r[n])?r[n]=e(r[n],t):r[n]=t}),{keys:!0})})),r},t.compare=function e(t,n,r){if(c(t)||g(t)){var i=void 0,o=void 0,a=!1,s=!1;if(c(t)!==c(n)||g(t)!==g(n))return!1;if(b(t)?a=!0:g(t)||(i=Object.keys(t)),b(n)?s=!0:g(n)||(o=Object.keys(n)),a!==s||g(i)!==g(o)||(i||t).length!==(o||n).length)return!1;for(var l=(i||t).length,p=0;p<l;p++){var h=i?i[p]:p,f=o?o[p]:p;if(h!==f||!e(a?t.item(h):t[h],s?n.item(f):n[f],r))return!1}return!0}return!(typeof t!=typeof n||u(t)!==u(n)||r&&t!==n)},t.each=O,t.eachReverse=function(e,t,n){if(e){var i,o=void 0;b(e)?i=e:g(e)||(o=Object.keys(e));for(var a=(o||i||e).length-1;a>=0;a--){var s=x.apply(void 0,r.__spreadArray([t],(u=o?o[a]:a,c=n&&n.arguments?n.arguments.slice(0):[],n&&n.keys&&c.unshift(u),p(u)?c.unshift(e[u]):i?c.unshift(i.item(u)):c.unshift(e[u]),c),!1));n&&n.replace&&!i&&(o?e[o[a]]=s:e[a]=s)}}var u,c;return e},t.map=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o,a,s=[];if(e){var u,c=void 0;b(e)?u=e:g(e)||(c=Object.keys(e));for(var l=(c||u||e).length,h=0;h<l;h++)s.push(x.apply(void 0,r.__spreadArray([t],(o=c?c[h]:h,a=n.slice(0),p(o)?a.unshift(e[o]):u?a.unshift(u.item(o)):a.unshift(e[o]),a),!1)))}return s},t.reduce=function(e,t,n){for(var i,o,a=[],s=3;s<arguments.length;s++)a[s-3]=arguments[s];if(e){var u,c=void 0;b(e)?u=e:g(e)||(c=Object.keys(e));for(var l=(c||u||e).length,h=0;h<l;h++)n=x.apply(void 0,r.__spreadArray([t],(i=c?c[h]:h,o=a.slice(0),p(i)?o.unshift(e[i]):u?o.unshift(u.item(i)):o.unshift(e[i]),o.unshift(n),o),!1))}return n},t.has=k,t.hasOnly=function(e,t){return k(e,t,!1)},t.hasOneOrMore=function(e,t){return k(e,t,!0)},t.count=function(e,t){var n=0;if(e){var r=void 0,i=void 0;b(e)?r=e:g(e)||(i=Object.keys(e));for(var o=(i||r||e).length,a=0;a<o;a++){var s=!0;l(t)&&(s=P(x(t,i?e[i[a]]:r?r.item(a):e[a]))),s&&n++}}return n},t.forEach=C,t.filter=function(e,t){return C(e,t)},t.findFirst=function(e,t){return C(e,t,{return:"first"})},t.findLast=function(e,t){return C(e,t,{return:"last"})},t.find=function(e,t){if(e){var n=void 0,r=void 0;b(e)?n=e:g(e)||(r=Object.keys(e));for(var i=(r||n||e).length,o=0;o<i;o++){if(P(x(t,r?e[r[o]]:n?n.item(o):e[o])))return r?r[o]:o}}},t.call=x,t.callAsync=T,t.callPromise=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];o.PROMISES.schedule.apply(o.PROMISES,r.__spreadArray([e],t,!1))},t.callEx=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t?x.apply(void 0,r.__spreadArray([e],n,!1)):T.apply(void 0,r.__spreadArray([e],n,!1))},t.callBind=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(e&&t)return e.bind(t).apply(void 0,n)},t.callFunction=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(l(e))return e.apply(void 0,t)},t.scheduleTick=w,t.scheduleAndCancelTick=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return M(t),w.apply(void 0,r.__spreadArray([e],n,!1))},t.cancelTick=M,t.schedulePromise=I,t.scheduleAndCancelPromise=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return E(t),I.apply(void 0,r.__spreadArray([e],n,!1))},t.cancelPromise=E,t.scheduleFrame=j,t.scheduleAndCancelFrame=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return A(t),j.apply(void 0,r.__spreadArray([e],n,!1))},t.cancelFrame=A,t.scheduleTimeout=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return(0,o.FUNCTION_TIMEOUT)((function(){return e.apply(void 0,n)}),t)},t.cancelTimeout=function(e){return 0!==e&&clearTimeout(e),0},t.scheduleUITimeout=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=o.ENUMERATOR.n+1,s=_(a),u=i.DateTime.precise,c=function(){o.UI[s]&&(i.DateTime.elapsed(u,!0)>=t?(o.UI[s].apply(o.UI,n),R(o.UI,s)):j(c))};return o.UI[s]=e,j(c),a},t.cancelUITimeout=function(e){return 0!==e&&R(o.UI,_(e)),0},t.scheduleInterval=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return(0,o.FUNCTION_INTERVAL)((function(){return e.apply(void 0,n)}),t)},t.cancelInterval=function(e){return 0!==e&&clearInterval(e),0},t.scheduleUIInterval=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=o.ENUMERATOR.n+1,s=_(a),u=i.DateTime.precise,c=function(){o.UI[s]&&(i.DateTime.elapsed(u,!0)>=t&&(o.UI[s].apply(o.UI,n),u=i.DateTime.precise),j(c))};return o.UI[s]=e,j(c),a},t.cancelUIInterval=function(e){return 0!==e&&R(o.UI,_(e)),0},t.scheduleNumberOfFrames=F,t.scheduleAnimation=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];F.apply(void 0,r.__spreadArray([e,2],t,!1))},t.scheduleEvent=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];F.apply(void 0,r.__spreadArray([e,2],t,!1))},t.scheduleAction=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];F.apply(void 0,r.__spreadArray([e,5],t,!1))},t.set=function(e,t,n){return e[t]=n},t.setAny=function(e,t,n){return(c(e)||l(e))&&f(t)?e[t]=n:n},t.get=function(e,t){return e[t]},t.getAny=N,t.getBoolean=function(e,t,n){return void 0===n&&(n=!1),P(N(e,t),n)},t.getString=function(e,t,n){return void 0===n&&(n=""),_(N(e,t),n)},t.getNumber=function(e,t,n){return void 0===n&&(n=0),v(N(e,t),n)},t.getFloat=function(e,t,n){return void 0===n&&(n=0),S(N(e,t),n)},t.destroy=R,t.createInstanceOf=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new(e.bind.apply(e,r.__spreadArray([void 0],t,!1)))}},4569:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Debounce=t.Throttle=t.Limiter=void 0;var r=n(655),i=n(9226),o=n(7729),a=function(){function e(e,t,n){this.m_pArguments=[],this.m_nTime=0,this.m_nHandle=0,this.m_bPromise=!1,this.m_bFrame=!1,this.m_bDoubleFrame=!1,this.m_sHold=!1,this.m_bThrottle="debounce"!==e,this.m_bDelay="throttle-delay"===e,this.m_fnCallback=t,this.m_nTimeout="tick"!==n&&"promise"!==n&&"frame"!==n&&"double-frame"!==n&&n||0,this.m_bPromise="promise"===n,this.m_bFrame="frame"===n||"double-frame"===n,this.m_bDoubleFrame="double-frame"===n}return e.prototype.call=function(){this.m_nHandle=0,this.m_fnCallback.apply(this,this.m_pArguments)},e.prototype.invoke=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.m_sHold&&this.m_bThrottle&&this.m_nTimeout>0){if(!this.m_bDelay)return void(o.DateTime.elapsed(this.m_nTime,!0)>=this.m_nTimeout&&(this.m_pArguments=t,this.m_nTime=o.DateTime.precise,this.call()));0!==this.m_nHandle&&o.DateTime.elapsed(this.m_nTime,!0)>=this.m_nTimeout&&(this.cancel(),this.call())}this.m_pArguments=t,this.m_bThrottle||this.cancel(),this.m_sHold?this.m_sHold="hold":0===this.m_nHandle&&(this.m_nTime=o.DateTime.precise,this.m_nTimeout>0?this.m_nHandle=(0,i.scheduleTimeout)((function(){return e.call()}),this.m_nTimeout):this.m_bPromise?this.m_nHandle=(0,i.schedulePromise)((function(){return e.call()})):this.m_bFrame?this.m_nHandle=(0,i.scheduleFrame)((function(){e.m_bDoubleFrame?e.m_nHandle=(0,i.scheduleFrame)((function(){return e.call()})):e.call()})):this.m_nHandle=(0,i.scheduleTick)((function(){return e.call()})))},e.prototype.cancel=function(){var e=this.m_nTimeout>0?i.cancelTimeout:this.m_bPromise?i.cancelPromise:this.m_bFrame?i.cancelFrame:i.cancelTick;this.m_nHandle=e(this.m_nHandle)},e.prototype.flush=function(){this.m_sHold=!1,0!==this.m_nHandle&&(this.cancel(),this.call())},e.prototype.hold=function(){this.m_sHold=this.m_sHold||(0===this.m_nHandle?"catch":"hold"),this.cancel()},e.prototype.release=function(e){if(void 0===e&&(e=!1),this.m_sHold){var t="hold"===this.m_sHold;this.m_sHold=!1,t&&(e?this.call():this.invoke.apply(this,this.m_pArguments))}},e}();t.Limiter=a;var s=function(e){function t(t,n,r){return void 0===n&&(n="frame"),void 0===r&&(r=!0),e.call(this,r?"throttle-delay":"throttle",t,n)||this}return r.__extends(t,e),t}(a);t.Throttle=s;var u=function(e){function t(t,n){return void 0===n&&(n="frame"),e.call(this,"debounce",t,n)||this}return r.__extends(t,e),t}(a);t.Debounce=u},1984:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Num=void 0;var r=n(9226);!function(e){function t(e,t){var n=Math.pow(10,t||0);return(0,r.isNumberFinite)(e)?Math.round((0,r.castToNumber)((e*n).toFixed(1)))/n:0}e.round=function(e){return(0,r.isNumberFinite)(e)?Math.round(e):0},e.floor=function(e){return(0,r.isNumberFinite)(e)?Math.floor(e):0},e.ceil=function(e){return(0,r.isNumberFinite)(e)?Math.ceil(e):0},e.conform=t,e.positive=function(e){return(0,r.isNumberFinite)(e)&&e>0?e:0},e.negative=function(e){return(0,r.isNumberFinite)(e)&&e<0?e:0},e.max=function(e,t){return(0,r.isNumberFinite)(e)&&(0,r.isNumberFinite)(t)?Math.max(e,t):(0,r.isNumberFinite)(e)?e:(0,r.isNumberFinite)(t)?t:0},e.maxL=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,r.arraySize)(e),i=NaN;if(n>0)for(var o=0;o<n;o++){var a=e[o];(0,r.isNumberFinite)(a)&&(!(0,r.isNumberFinite)(i)||a>i)&&(i=a)}return(0,r.isNumberFinite)(i)?i:0},e.min=function(e,t){return(0,r.isNumberFinite)(e)&&(0,r.isNumberFinite)(t)?Math.min(e,t):(0,r.isNumberFinite)(e)?e:(0,r.isNumberFinite)(t)?t:0},e.minL=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,r.arraySize)(e),i=NaN;if(n>0)for(var o=0;o<n;o++){var a=e[o];(0,r.isNumberFinite)(a)&&(!(0,r.isNumberFinite)(i)||a<i)&&(i=a)}return(0,r.isNumberFinite)(i)?i:0},e.range=function(e,t,n){return(0,r.isNumberFinite)(e)?((0,r.isNumberFinite)(n)&&t>n&&(t=n),(0,r.isNumberFinite)(t)&&e<t?t:(0,r.isNumberFinite)(n)&&e>n?n:e):(0,r.isNumberFinite)(t)?t:(0,r.isNumberFinite)(n)?n:0},e.inRange=function(e,t,n,i,o){return void 0===i&&(i=!0),void 0===o&&(o=!1),(0,r.isNumberFinite)(e)&&(i?e>=t:e>t)&&(o?e<=n:e<n)},e.format=function(e,n,i,o,a){var s,u,c;void 0===n&&(n=0),void 0===i&&(i=","),void 0===o&&(o="."),void 0===a&&(a="-");var l="";if(e="auto"===n?(0,r.castToFloat)(e):t((0,r.castToFloat)(e),n),-1!=="".concat(e).indexOf("e"))if(-1!=="".concat(e).indexOf("e-"))for(var p=e,h=20;h>=0&&(e=p.toFixed(h).replace(/(0*$)/g,"")||"0",parseFloat(e)!==p);h--);else e=e<0?Number.MIN_SAFE_INTEGER:Number.MAX_SAFE_INTEGER;if(u=(s=(0,r.castToString)(e).replace("-",a).split("."))[0],c=(0,r.arraySize)(s)>=2?s[1]:"",(0,r.isFilledString)(i))for(var f=(0,r.stringLength)(u)-1,d=0;f>=0;f--)l=u.charAt(f)+(3===d&&u.charAt(f)!==a?i:"")+l,3===d&&(d=0),d++;else l=u;if(("auto"===n||n>0)&&((c||"auto"!==n)&&(l+=o+c),"auto"!==n))for(n-=(0,r.stringLength)(c);n>0;)l+="0",n--;return l}}(t.Num||(t.Num={}))},1019:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var n=function(){function e(e){this.m_fnScheduler=e,this.m_pStack=[],this.m_nCall=0,this.m_nOffset=0}return e.prototype.call=function(){for(var e=this,t=this.m_pStack.length,n=0;n<t;n++){var r=this.m_pStack[n];r&&r.callee&&r.callee.apply(r,r.arguments)}this.m_pStack.splice(0,t),this.m_pStack.length>0?(this.m_nOffset=this.m_nCall-this.m_pStack.length+1,this.m_fnScheduler((function(){return e.call()}))):this.m_nOffset=0},e.prototype.schedule=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e?(this.m_nCall++,this.m_pStack.push({callee:e,arguments:n}),0===this.m_nOffset&&(this.m_nOffset=this.m_nCall,this.m_fnScheduler((function(){return t.call()}))),this.m_nCall):0},e.prototype.cancel=function(e){this.m_nOffset>0&&e>=this.m_nOffset&&e<=this.m_nCall&&(this.m_pStack[e-this.m_nOffset]=void 0)},e}();t.Scheduler=n},9439:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Stack=void 0;var n=function(){function e(){this.m_pStack=[]}return e.prototype.add=function(e){this.m_pStack.push(e)},e.prototype.flush=function(){for(var e=this.m_pStack.length,t=0;t<e;t++)this.m_pStack[t]()},e.prototype.clear=function(){this.m_pStack=[]},e.prototype.flushAndClear=function(){this.flush(),this.clear()},e}();t.Stack=n},9930:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Str=void 0;var r=n(655),i=n(9226);!function(e){function t(e){return(0,i.isFilledString)(e)?e.toLowerCase():""}function n(e){return(0,i.isFilledString)(e)?e.replace(/(^\s*)|(\s*$)/g,""):""}function o(e){return(0,i.isFilledString)(e)?e.replace(/(\s*$)/g,""):""}function a(e){return(0,i.isFilledString)(e)?e.replace(/[^\S\r\n\.]{2,}/g," ").replace(/\n[^\S\r\n\.]/g,"\n"):""}function s(e){return a(n(e))}function u(e,t,n){return void 0===n&&(n=""),e=(0,i.castToString)(e),(0,i.isNumberFinite)(t)&&t>0&&t<(0,i.stringLength)(e)?(0,i.isFilledString)(n)?o(e.substr(0,t))+n:e.substr(0,t):e}function c(e,n,r,o){void 0===r&&(r=""),void 0===o&&(o=!1);var a="",s=0;return e=(0,i.castToString)(e),n=(0,i.castToString)(n),(0,i.each)(o?t(e).split(t(n)):e.split(n),(function(t){var o=(0,i.stringLength)(t);a+=(s>0?r:"")+e.substr(s,o),s+=o+(0,i.stringLength)(n)})),a}function l(e,t,n){void 0===t&&(t="");for(var o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];var s,u,c="";if(e){var l,p=void 0;(0,i.isCollection)(e)?l=e:(0,i.isArray)(e)||(p=Object.keys(e));for(var h=(p||l||e).length,f=0;f<h;f++)c+=(""===c?"":t)+(0,i.castToString)(n?i.call.apply(void 0,r.__spreadArray([n],(s=p?p[f]:f,u=o.slice(0),(0,i.isString)(s)?u.unshift(e[s]):l?u.unshift(l.item(s)):u.unshift(e[s]),u),!1)):p?e[p[f]]:l?l.item(f):e[f])}return c}e.lowercase=t,e.uppercase=function(e){return(0,i.isFilledString)(e)?e.toUpperCase():""},e.capitalize=function(e,n,r){if(void 0===n&&(n="first-character"),void 0===r&&(r=!1),r&&(e=t(e)),(0,i.isFilledString)(e)){var o="each-sentence"===n?e.split("."):[e];return(0,i.each)(o,(function(e){var t="";if("each-word"!==n){for(var r=e.toString(),o=0;o<(0,i.stringLength)(r);){var a=r.charAt(o);if(" "!==a&&"\t"!==a&&"\r"!==a&&"\n"!==a&&"."!==a){r=r.substr(0,o)+r.substr(o,1).toUpperCase()+r.substr(o+1);break}o++}t+=(0===o?" ":"")+r}else t=e.replace(/(^|[\s`~!@#$%^&+\-*=_()[\]{};:'"\\|,<.>\/?])[^\s`~!@#$%^&+\-*=_()[\]{};:'"\\|,<.>\/?]/g,(function(e){return e.toUpperCase()}));return t}),{replace:!0}),s(l(o,"."))}return""},e.trim=n,e.trimLeft=function(e){return(0,i.isFilledString)(e)?e.replace(/(^\s*)/g,""):""},e.trimRight=o,e.trimMultiple=a,e.sanitize=s,e.removeWhitespaces=function(e){return(0,i.isFilledString)(e)?e.replace(/\s/g,""):""},e.limit=u,e.replace=c,e.replaceMultiple=function(e,t,n,r){return e=(0,i.castToString)(e),(0,i.each)(t,(function(t){e=c(e,t,n,r)})),e},e.makeHTMLSafe=function(e){return(0,i.castToString)(e).replace(/[<>]/g,(function(e){return"<"===e?"&lt;":"&gt;"}))},e.CRLFToHTML=function(e){return(0,i.castToString)(e).replace(/(\r\n|[\r\n])/g,"<br />")},e.iterateToString=l,e.extract=function(e,n){var r=(0,i.castToString)(n.left);if(e=(0,i.castToString)(e),(0,i.isFilledString)(r)){var o=(n.ignoreCase?t(e):e).indexOf(n.ignoreCase?t(r):r);if(-1!==o&&""!==(e=e.substr(o+(0,i.stringLength)(r)))){var a=(0,i.isFilledString)(n.right)?n.fromEnd?(n.ignoreCase?t(e):e).lastIndexOf(n.ignoreCase?t(n.right):n.right):(n.ignoreCase?t(e):e).indexOf(n.ignoreCase?t(n.right):n.right):(0,i.stringLength)(e);if(-1!==a)return e.substr(0,a)}}return""},e.fill=function(e,t){var n="";for(e=(0,i.castToString)(e),t=(0,i.castToNumber)(t);t>0;)n+=e,t--;return n},e.padLeft=function(e,t,n,r,o){var a=(0,i.castToString)(o||(0,i.isNumberFinite)(e)?(0,i.castToNumber)(e):e);if((0,i.isString)(t)&&(0,i.isNumberFinite)(n)&&(0,i.stringLength)(t)>=1){var s,u="";if(s=(o||(0,i.isNumberFinite)(e))&&"-"===a.charAt(0),r&&(0,i.stringLength)(a)>n)return a.substr((0,i.stringLength)(a)-n);if((0,i.stringLength)(a)>=n)return a;s&&(a=a.substr(1));do{u+=t}while((0,i.stringLength)(u)<n);return(s?"-":"")+(u+a).substr((0,i.stringLength)(u+a)+(s?1:0)-n)}return a},e.padRight=function(e,t,n,r){var o=(0,i.castToString)(e);if((0,i.isString)(t)&&(0,i.isNumberFinite)(n)&&(0,i.stringLength)(t)>=1){if(o=(0,i.castToString)(o),r&&(0,i.stringLength)(o)>n)return u(o,n);if((0,i.stringLength)(o)>=n)return o;for(;(0,i.stringLength)(o)<n;)o=u(o+t,n)}return o},e.djb2Hash=function(e,t){void 0===t&&(t="");for(var n=(0,i.stringLength)(e),r=0,o=5381;r<n;)o=33*o^e.charCodeAt(r),r++;return t+(o>>>0).toString(36)}}(t.Str||(t.Str={}))},9165:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.hookup=t.Hooks=void 0;var r=n(5995);Object.defineProperty(t,"Hooks",{enumerable:!0,get:function(){return r.Hooks}});var i=n(1835);Object.defineProperty(t,"hookup",{enumerable:!0,get:function(){return i.hookup}})},1835:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.hookup=void 0;var r=n(2907);t.hookup=function(e){return function(t,n,i){(0,r.observable)("hookup",t,n,i,(function(t){t.target.emitHook(e,{property:t.property,value:t.newValue})}))}}},5995:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Hooks=void 0;var r=n(4389),i=function(){function e(){this.m_pHooks={},this.m_nHookTimeout=0,this.m_nHookFrame=0,this.m_nHookBuffer=0}return Object.defineProperty(e.prototype,"isHookBufferEnabled",{get:function(){return this.m_nHookBuffer>0},enumerable:!1,configurable:!0}),e.prototype.getHooks=function(e){var t=this.m_pHooks[e];if(t)return(0,r.cast)(t)},e.prototype.prepareHookPayload=function(e,t,n){return e.hook={name:t,type:n},e},e.prototype.scheduleHook=function(e){var t=this;"framed"===e?this.m_nHookFrame=(0,r.scheduleAndCancelFrame)((function(){return t.invokeHook(e)}),this.m_nHookFrame):this.m_nHookTimeout=(0,r.scheduleAndCancelTick)((function(){return t.invokeHook(e)}),this.m_nHookTimeout)},e.prototype.invokeHook=function(e){var t=this,n=new r.Stack;(0,r.each)(this.m_pHooks,(function(i,o){(0,r.each)(i,(function(i){i.type===e&&(0,r.each)(i.payloads.splice(0,i.payloads.length),(function(e){n.add((function(){return i.hook(t.prepareHookPayload(e,o,i.type))}))}))}))}),{keys:!0}),n.flush()},e.prototype.attachHook=function(e,t,n,r,i){(this.getHooks(e)||(this.m_pHooks[e]=[])).push({hook:n,payloads:[],type:t,group:r,context:i})},e.prototype.hook=function(e,t,n,r){return this.attachHook(e,t,n,!1,r),this},e.prototype.groupedHook=function(e,t,n,r){return this.attachHook(e,t,n,!0,r),this},e.prototype.emitHook=function(e,t,n){var i=this;void 0===n&&(n="fifo");var o=this.getHooks(e);if(o){var a=new r.Stack;return(0,r.each)(o,(function(r){"synchronous"!==r.type||i.isHookBufferEnabled?(r.group&&r.payloads.length>0?r.payloads[0]=t:"lifo"===n?r.payloads.splice(0,0,t):r.payloads.push(t),"synchronous"===r.type||i.isHookBufferEnabled||i.scheduleHook(r.type)):a.add((function(){return r.hook(i.prepareHookPayload(t,e,"synchronous"))}))})),a.flush(),!0}return!1},e.prototype.bufferHooks=function(){this.m_nHookTimeout=(0,r.cancelTick)(this.m_nHookTimeout),this.m_nHookFrame=(0,r.cancelFrame)(this.m_nHookFrame),this.m_nHookBuffer++},e.prototype.flushHooks=function(){var e=this;if(this.m_nHookBuffer>0&&(this.m_nHookBuffer--,0===this.m_nHookBuffer)){var t=new r.Stack;(0,r.each)(this.m_pHooks,(function(n,i){(0,r.each)(n,(function(n){"synchronous"===n.type?(0,r.each)(n.payloads.splice(0,n.payloads.length),(function(r){t.add((function(){return n.hook(e.prepareHookPayload(r,i,n.type))}))})):e.scheduleHook(n.type)}))}),{keys:!0}),t.flush()}},e.prototype.unhook=function(e,t){var n=this.getHooks(e);if(n){var i=!1;if(t)for(var o=n.length;o--;){var a=n[o];a.context!==t&&a.hook!==t||(n.splice(o,1),i=!0)}return t&&0!==n.length?i:((0,r.destroy)(this.m_pHooks,e),!0)}return!1},e.prototype.unhookContext=function(e){var t=this,n=!1;return(0,r.each)(this.m_pHooks,(function(i,o){for(var a=i.length;a--;){i[a].context===e&&(i.splice(a,1),n=!0)}0===i.length&&(0,r.destroy)(t.m_pHooks,o)}),{keys:!0}),n},e.prototype.destroy=function(){var e=this,t=new r.Stack;this.m_nHookTimeout=(0,r.cancelTick)(this.m_nHookTimeout),this.m_nHookFrame=(0,r.cancelFrame)(this.m_nHookFrame),this.m_nHookBuffer=0,(0,r.each)(this.m_pHooks,(function(n,i){(0,r.each)(n,(function(n){(0,r.each)(n.payloads.splice(0,n.payloads.length),(function(r){t.add((function(){return n.hook(e.prepareHookPayload(r,i,n.type))}))}))}))}),{keys:!0}),this.m_pHooks={},t.flush()},e}();t.Hooks=i},4600:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DOMAINS=void 0,t.DOMAINS={aa:["Afar","Afar"],"aa-DJ":["Afar (Djibouti)","Afar (Djibouti)"],"aa-ER":["Afar (Eritrea)","Afar (Eritrea)"],ab:["Abkhazian","Аԥсшәа"],af:["Afrikaans","Afrikaans"],"af-NA":["Afrikaans (Namibia)","Afrikaans (Namibië)"],agq:["Aghem","Aghem"],ak:["Akan","Akan"],am:["Amharic","አማርኛ"],an:["Aragonese","aragonés"],ann:["Obolo","Obolo"],apc:[null,"العامية"],ar:["Arabic","العربية"],"ar-AE":["Arabic (United Arab Emirates)","العربية (الإمارات العربية المتحدة)"],"ar-BH":["Arabic (Bahrain)","العربية (البحرين)"],"ar-DJ":["Arabic (Djibouti)","العربية (جيبوتي)"],"ar-DZ":["Arabic (Algeria)","العربية (الجزائر)"],"ar-EG":["Arabic (Egypt)","العربية (مصر)"],"ar-EH":["Arabic (Western Sahara)","العربية (الصحراء الغربية)"],"ar-ER":["Arabic (Eritrea)","العربية (إريتريا)"],"ar-IL":["Arabic (Israel)","العربية (إسرائيل)"],"ar-IQ":["Arabic (Iraq)","العربية (العراق)"],"ar-JO":["Arabic (Jordan)","العربية (الأردن)"],"ar-KM":["Arabic (Comoros)","العربية (جزر القمر)"],"ar-KW":["Arabic (Kuwait)","العربية (الكويت)"],"ar-LB":["Arabic (Lebanon)","العربية (لبنان)"],"ar-LY":["Arabic (Libya)","العربية (ليبيا)"],"ar-MA":["Arabic (Morocco)","العربية (المغرب)"],"ar-MR":["Arabic (Mauritania)","العربية (موريتانيا)"],"ar-OM":["Arabic (Oman)","العربية (عُمان)"],"ar-PS":["Arabic (Palestinian Territories)","العربية (الأراضي الفلسطينية)"],"ar-QA":["Arabic (Qatar)","العربية (قطر)"],"ar-SA":["Arabic (S