helper-js
Advanced tools
Comparing version 1.4.22 to 1.4.23
/*! | ||
* helper-js v1.4.21 | ||
* helper-js v1.4.23 | ||
* (c) phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -704,3 +704,3 @@ * Released under the MIT License. | ||
var reverse = arguments.length > 3 ? arguments[3] : undefined; | ||
var rootChildren = hp.isArray(obj) ? obj : [obj]; // | ||
var rootChildren = isArray(obj) ? obj : [obj]; // | ||
@@ -707,0 +707,0 @@ var StopException = () => {}; |
/*! | ||
* helper-js v1.4.21 | ||
* helper-js v1.4.23 | ||
* (c) phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -698,3 +698,3 @@ * Released under the MIT License. | ||
var reverse = arguments.length > 3 ? arguments[3] : undefined; | ||
var rootChildren = hp.isArray(obj) ? obj : [obj]; // | ||
var rootChildren = isArray(obj) ? obj : [obj]; // | ||
@@ -701,0 +701,0 @@ var StopException = () => {}; |
/*! | ||
* helper-js v1.4.21 | ||
* helper-js v1.4.23 | ||
* (c) phphe <phphe@outlook.com> (https://github.com/phphe) | ||
* Released under the MIT License. | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).helperJs={})}(this,(function(t){"use strict";function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=e((function(t){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(n)}t.exports=e}));var r=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var o=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?r(t):e},i=e((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var a=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t},c=e((function(t){function e(n,r,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=a(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),u=e((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var l=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)};var s=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var h=function(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t};var v=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},d=e((function(t){var e=function(t){var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(t,e,n,r){var o=e&&e.prototype instanceof s?e:s,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=u(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,a),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function s(){}function f(){}function h(){}var v={};v[o]=function(){return this};var d=Object.getPrototypeOf,p=d&&d(d(j([])));p&&p!==e&&n.call(p,o)&&(v=p);var y=h.prototype=s.prototype=Object.create(v);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function m(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,a){var c=u(t[r],t,o);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?Promise.resolve(s.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function w(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function j(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=y.constructor=h,h.constructor=f,h[a]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(m.prototype),m.prototype[i]=function(){return this},t.AsyncIterator=m,t.async=function(e,n,r,o){var i=new m(c(e,n,r,o));return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(y),y[a]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=j,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));var p=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}};var y=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)};var g=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var m=function(t){return p(t)||y(t)||g()};function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var x=d.mark(W),O={};function j(){if(O.glb)return O.glb;var t;try{t=global}catch(e){t=window}return O.glb=t,t}function k(t){return void 0!==t}function S(t){return"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function P(t){return"[object Number]"===Object.prototype.toString.call(t)}function L(t){return isFinite(t)&&!isNaN(parseFloat(t))}function T(t){return"[object String]"===Object.prototype.toString.call(t)}function _(t){return"[object Object]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function N(t,e){return 1===arguments.length&&(e=t,t=0),Math.floor(Math.random()*(e-t+1)+t)}function C(t,e){return t<e?t:e}function I(t){return t&&t[0].toUpperCase()+t.substr(1)}function F(t){return t.replace(/ /g,"-").replace(/_/g,"-").replace(/([A-Z])/g,"-$1").replace(/--+/g,"-").replace(/^-|-$|/g,"").toLowerCase()}function B(t){for(var e=t.toString().split(/[-_]/),n=1;n<e.length;n++)e[n]=I(e[n]);return e.join("")}function R(t){return t.toString().trim().split(/(?=[A-Z])/)}function M(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=0;o<t;o++)n+=r[N(r.length-1)];return e+n}function D(t,e){for(var n,r=0;(n=t.indexOf(e))>-1;)t.splice(n,1),r++;return r}function G(t){return t[t.length-1]}function H(t){return S(t)?t:[t]}function U(t,e){var n=[];if(A(e))for(var r=e,o=1,i=0;i<t.length;){var a=i+r(o);n.push(t.slice(i,a)),i=a,o++}else for(var c=0;c<t.length;){var u=c+e;n.push(t.slice(c,u)),c=u}return n}function W(t){var e,n,r,o,i,a,c,u,l,s,f,h,v,p,y=arguments;return d.wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if((e=y.length>1&&void 0!==y[1]?y[1]:{}).reverse){d.next=30;break}if(null==t.length){d.next=14;break}n=0;case 4:if(!(n<t.length)){d.next=12;break}if(r={value:t[n],index:n},e.exclude&&e.exclude(r)){d.next=9;break}return d.next=9,r;case 9:n++,d.next=4;break;case 12:d.next=28;break;case 14:if(!_(t)){d.next=27;break}o=0,i=Object.keys(t);case 16:if(!(o<i.length)){d.next=25;break}if(a=i[o],c={value:t[a],key:a},e.exclude&&e.exclude(c)){d.next=22;break}return d.next=22,c;case 22:o++,d.next=16;break;case 25:d.next=28;break;case 27:throw"Unsupported type";case 28:d.next=58;break;case 30:if(null==t.length){d.next=42;break}u=t.length-1;case 32:if(!(u>=0)){d.next=40;break}if(l={value:t[u],index:u},e.exclude&&e.exclude(l)){d.next=37;break}return d.next=37,l;case 37:u--,d.next=32;break;case 40:d.next=58;break;case 42:if(!_(t)){d.next=57;break}(s=Object.keys(t)).reverse(),f=0,h=s;case 46:if(!(f<h.length)){d.next=55;break}if(v=h[f],p={value:t[v],key:v},e.exclude&&e.exclude(p)){d.next=52;break}return d.next=52,p;case 52:f++,d.next=46;break;case 55:d.next=58;break;case 57:throw"Unsupported type";case 58:case"end":return d.stop()}}),x)}function z(t,e,n){var r=S(e)?e:e.split("."),o=t;try{var i=!0,a=!1,c=void 0;try{for(var u,l=r[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){o=o[u.value]}}catch(t){a=!0,c=t}finally{try{i||null==l.return||l.return()}finally{if(a)throw c}}}catch(t){if(n)throw"Path does not exist"}return o}function q(t,e){for(var n={},r=t.length,o=0;o<r;o++){var i=t[o];n[A(e)?e(i,o):i[e]]=i}return n}function J(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3?arguments[3]:void 0,o=hp.isArray(t)?t:[t],i=function(){},a=function t(o,a){r&&(o=o.slice()).reverse();for(var c=o.length,u=0;u<c;u++){var l=o[u],s=e(l,u,a);if(!1===s)throw new i;if("skip children"!==s){if("skip siblings"===s)break;null!=l[n]&&t(l[n],l)}}};try{a(o)}catch(t){if(!(t instanceof i))throw t}}var V=J;function Y(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],a=[],c=function(){for(var c=this,u=arguments.length,l=new Array(u),s=0;s<u;s++)l[s]=arguments[s];return new Promise((function(u,s){i.push(u),a.push(s),r=l,n||(n=!0,e=setTimeout((function(){var o=t.call.apply(t,[c].concat(m(r)));e=null,n=!1,i.forEach((function(t){return t(o)})),i=[],a=[]}),o))}))};return c.stop=function(){e&&(clearTimeout(e),e=null),n=!1,i=[],a.forEach((function(t){return t()})),a=[]},c}function $(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=function(){var i=this;return new Promise((function(a,c){n?a(r):(n=!0,a(r=t.call.apply(t,[i].concat(m(lastArgs)))),e=setTimeout((function(){e=null,n=!1,r=null}),o))}))};return i.stop=function(){e&&(clearTimeout(e),e=null),n=!1},i}function Q(){if("undefined"!=typeof pageYOffset)return{top:pageYOffset,left:pageXOffset};var t=document.body,e=document.documentElement;return{top:(e=e.clientHeight?e:t).scrollTop,left:e.scrollLeft}}function Z(t){var e=X(t),n=Q();return{x:e.left+n.left,y:e.top+n.top}}function K(t){var e=t.offsetParent;return(!e||e===document.body&&"static"===getComputedStyle(document.body).position)&&(e=document.body.parentElement),e}function X(t){var e=t.getBoundingClientRect(),n=e.top-document.documentElement.clientTop,r=e.bottom,o=e.left-document.documentElement.clientLeft,i=e.right;return{top:n,right:i,bottom:r,left:o,width:e.width||i-o,height:e.height||r-n,x:o,y:n}}var tt=X;function et(t,e,n){for(var r=n&&n.withSelf?t:t.parentElement;r;){var o=e(r);if("break"===o)return;if(o)return r;r=r.parentElement}}function nt(t,e){t["original_".concat(e)]=t.getAttribute(e)}function rt(t,e){var n="original_".concat(e);t.setAttribute(e,t[n])}function ot(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function it(t){nt(t,"style"),t.style.display="block";var e=X(t),n={width:e.width,height:e.height};return rt(t,"style"),n}var at=it;function ct(t,e,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];t.addEventListener?t.addEventListener.apply(t,[e,n].concat(o)):t.attachEvent&&t.attachEvent.apply(t,["on".concat(e),n].concat(o))}function ut(t,e,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];t.removeEventListener?t.removeEventListener.apply(t,[e,n].concat(o)):t.detachEvent&&t.detachEvent.apply(t,["on".concat(e),n].concat(o))}function lt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=W(t,{reverse:n.reverse}),o=!0,i=!1,a=void 0;try{for(var c,u=r[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l=c.value,s=l.value,f=l.index;if(e(s,f))return s}}catch(t){i=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}}function st(t,e,n,r,o){var i,a,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1e3;null==n&&(n=0,r=t.length-1);for(var u,l=0;n>=0&&n<=r;){if(l>=c)throw Error("binarySearch: loop times is over ".concat(c,", you can increase the limit."));if((u=e(a=t[i=Math.floor((r-n)/2+n)],l))>0)r=i-1;else{if(!(u<0))return{index:i,value:a,count:l+1,hit:!0};n=i+1}l++}return o?{index:i,value:a,count:l+1,hit:!1,bigger:u>0}:null}function ft(t,e){return new Promise((function(n,r){setTimeout((function(){e&&e(),n()}),t)}))}function ht(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};j().open(t,e,Object.keys(n).map((function(t){return"".concat(t,"=").concat(n[t])})).join(","))}var vt=function(){function t(e){var n=this;s(this,t),this.baseUrl="",this.search={};var r=decodeURI(e).split("?");this.baseUrl=r[0],r[1]&&r[1].split("&").forEach((function(t){var e=t.split("=");n.search[e[0]]=null==e[1]?"":decodeURIComponent(e[1])}))}return h(t,[{key:"getHref",value:function(){var t=this,e=[this.baseUrl],n=Object.keys(this.search).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(t.search[e]))})).join("&");return n&&e.push(n),e.join("?")}}]),t}();function dt(t){return{storage:t,set:function(t,e,n){null==e?this.storage.removeItem(t):this.storage.setItem(t,JSON.stringify({value:e,expired_at:n?(new Date).getTime()+60*n*1e3:null}))},get:function(t){var e=this.storage.getItem(t);if(e){if(!(e=JSON.parse(e)).expired_at||e.expired_at>(new Date).getTime())return e.value;this.storage.removeItem(t)}return null},clear:function(){this.storage.clear()}}}var pt=function(){function t(){s(this,t),this.eventStore=[]}return h(t,[{key:"on",value:function(t,e){this.eventStore.push({name:t,handler:e})}},{key:"once",value:function(t,e){var n=this,r=function(){n.off(t,o)},o=function(){e.apply(void 0,arguments),r()};return this.on(t,o),r}},{key:"onceTimeout",value:function(t,e,n){var r,o=this;return{off:function(){r&&r()},promise:new Promise((function(i,a){r=o.once(t,(function(){e.apply(void 0,arguments),i()})),ft(n).then((function(){r(),a()}))}))}}},{key:"off",value:function(t,e){for(var n=[],r=this.eventStore.length,o=0;o<r;o++){var i=this.eventStore[o];i.name===t&&i.handler===e&&n.unshift(o)}for(var a=0,c=n;a<c.length;a++){var u=c[a];this.eventStore.splice(u,1)}}},{key:"emit",value:function(t){var e=[],n=!0,r=!1,o=void 0;try{for(var i,a=this.eventStore[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var c=i.value;c.name===t&&e.push(c)}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}for(var u=arguments.length,l=new Array(u>1?u-1:0),s=1;s<u;s++)l[s-1]=arguments[s];for(var f=0,h=e;f<h.length;f++){var v=h[f];v.handler.apply(v,l)}}}]),t}(),yt=function(t){function e(t){var n;return s(this,e),(n=o(this,i(e).call(this))).storageName="_crossWindow",n.windows=[],n.timeout=200,n.BROADCAST="__BROADCAST__",t&&Object.assign(r(n),t),ct(window,"storage",(function(t){if(t.key===n.storageName){var e,r=JSON.parse(t.newValue);if(!r.targets||r.targets.includes(n.id))(e=n).emitLocal.apply(e,[r.name].concat(m(r.args)))}})),n.id=M(),n.windows=[n.id],n.ready=new Promise((function(t,e){n.onceTimeout("_windows_updated",(function(t){var e=t.windows;n.windows=e}),n.timeout).promise.then((function(){t()}),(function(){t()})),n.broadcast("_join",n.id)})),n.ready.then((function(){n.on("_join",(function(t){n.windows.push(t),n.isMain()&&n.broadcast("_windows_updated",{windows:n.windows,type:"join",id:t})})),n.on("_windows_updated",(function(t){var e=t.windows;n.windows=e})),n.on("_exit",(function(t){var e=n.windows[0];D(n.windows,t),n.isMain()&&(n.emit("_windows_updated",{windows:n.windows,type:"exit",id:t}),e!=n.id&&(console.log("_main_updated"),n.emit("_main_updated",{windows:n.windows,old:e,new:n.id})))})),ct(window,"beforeunload",(function(){n.exitGroup()}))})),n}return l(e,t),h(e,[{key:"isMain",value:function(){return this.id===this.windows[0]}},{key:"emitTo",value:function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];var u;n===this.BROADCAST?n=null:(n&&!S(n)&&(n=[n]),n.includes(this.id)&&(u=c(i(e.prototype),"emit",this)).call.apply(u,[this,t].concat(o)));j().localStorage.setItem(this.storageName,JSON.stringify({name:t,targets:n,args:o,random:Math.random()}))}},{key:"emitLocal",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.emitTo.apply(this,[t,this.id].concat(n))}},{key:"broadcast",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.emitTo.apply(this,[t,this.BROADCAST].concat(n))}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.emitTo.apply(this,[t,this.windows].concat(n))}},{key:"exitGroup",value:function(){this.broadcast("_exit",this.id)}}]),e}(pt),gt=yt;var mt=function(){function t(){s(this,t),this.store={}}return h(t,[{key:"has",value:function(t){return this.store.hasOwnProperty(t)}},{key:"remember",value:function(t,e){return this.has(t)||(this.store[t]={value:e()}),this.store[t].value}},{key:"forget",value:function(t){t?this.has(t)&&delete this.store[t]:this.store={}}}]),t}();t.Cache=mt,t.CrossWindow=gt,t.CrossWindowEventProcessor=yt,t.EventProcessor=pt,t.URLHelper=vt,t.addClass=function(t,e){ot(t,e)||(t.classList?t.classList.add(e):t.className+=" "+e)},t.appendTo=function(t,e){e.appendChild(t)},t.arrayAt=function(t,e){return t[e>=0?e:t.length+e]},t.arrayDiff=function(t,e){for(var n=t.length,r=[];n--;)e.indexOf(t[n])<0&&r.push(t[n]);return r},t.arrayDistinct=function(t){return j().Set?m(new Set(t)):t.filter((function(t,e,n){return n.indexOf(t)===e}))},t.arrayFirst=function(t){return t[0]},t.arrayGet=function(t,e,n){return e<0&&(e+=t.length),null==n?t[e]:(n<0&&(n+=t.length),t.slice(e,n-e+1))},t.arrayLast=G,t.arrayRemove=D,t.arrayRemoveBySortedIndexes=function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];t.splice(r,1)}},t.arraySibling=function(t,e,n){var r=t.indexOf(e);if(-1===r)throw"item is not in array";return S(n)?n.map((function(e){return t[r+e]})):t[r+n]},t.arrayWithoutEnd=function(t,e){return t.slice(0,t.length-e)},t.assignIfDifferent=function(t,e,n){t[e]!==n&&(t[e]=n)},t.attachCache=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new mt,r=function(r){var o=e[r];Object.defineProperty(t,r,{get:function(){var t=this;return n.remember(r,(function(){return o.call(t)}))}})};for(var o in e)r(o)},t.backupAttr=nt,t.binarySearch=st,t.camelCase=B,t.camelToWords=R,t.cloneObj=function t(e,r){switch(n(e)){case"undefined":case"boolean":case"nuber":case"string":case"function":return e;case"object":if(null===e)return e;var o;if(S(e)){o=[];var i=!0,a=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var s=u.value;o.push(t(s,r))}}catch(t){a=!0,c=t}finally{try{i||null==l.return||l.return()}finally{if(a)throw c}}}else{o={};for(var f=0,h=Object.keys(e);f<h.length;f++){var v=h[f];r&&(!S(r)||r.includes(v))&&r(v,e[v],e)||(o[v]=t(e[v],r))}}return o;default:return e}},t.copyTextToClipboard=function(t){try{return void navigator.clipboard.writeText(t)}catch(t){}var e=document.createElement("textarea");e.style.position="fixed",e.style.top=0,e.style.left=0,e.style.width="2em",e.style.height="2em",e.style.padding=0,e.style.border="none",e.style.outline="none",e.style.boxShadow="none",e.style.background="transparent",e.value=t,document.body.appendChild(e),e.select();try{var n=document.execCommand("copy")?"successful":"unsuccessful";console.log("Copying text command was "+n)}catch(t){console.log("Oops, unable to copy")}document.body.removeChild(e)},t.createElementFromHTML=function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.childNodes.length>1?e.childNodes:e.childNodes[0]},t.debounce=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.immediate?$(t,e):Y(t,e)},t.debounceImmediate=$,t.debounceTrailing=Y,t.depthFirstSearch=J,t.elementsFromPoint=function(){for(var t=document.elementsFromPoint||document.msElementsFromPoint||o,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(document,n);function o(t,e){var n=[],r=void 0;do{r!==document.elementFromPoint(t,e)?(r=document.elementFromPoint(t,e),n.push(r),r.style.pointerEvents="none"):r=!1}while(r);return n.forEach((function(t){return t.style.pointerEvents="all"})),n}},t.empty=function(t){return null==t||(null!=t.length?0===t.length:!E(t)&&(P(t)?isNaN(t):_(t)?0===Object.keys(t).length:void 0))},t.executeOnceInScopeByName=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:scope_executeOnceInScopeByName,r=arguments.length>3?arguments[3]:void 0;if(t="executeOnceInScopeByName_".concat(t),!n[t]){var o=e(),i=function(){delete n[t]};n[t]={destroy:i},r&&(n[t].value=o)}return n[t]},t.executePromiseGetters=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=new Promise((function(r,o){var i=[],a=U(t,n),c=Promise.resolve();a.forEach((function(t){c=c.then((function(n){if(n&&i.push.apply(i,m(n)),!e)return Promise.all(t.map((function(t){return t()})));o("stopped")}))})),c.then((function(t){i.push.apply(i,m(t)),r(i)}))}));return{promise:r,destroy:function(){e=!0}}},t.executeWithCount=function(t){var e=0;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.call.apply(t,[this,e++].concat(r))}},t.findNodeList=lt,t.findNodeListReverse=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.reverse=!0,lt(t,e,n)},t.findParent=et,t.forAll=function(t,e,n){if(n){if(S(t)||T(t)||t.hasOwnProperty("length"))for(var r=t.length-1;r>=0&&!1!==e(t[r],r);r--);else if(_(t)){var o=Object.keys(t);o.reverse();for(var i=0,a=o;i<a.length;i++){var c=a[i];if(!1===e(t[c],c))break}}else if(Number.isInteger(t))for(var u=t-1;u>=0&&!1!==e(u,u);u--);}else if(S(t)||T(t)||t.hasOwnProperty("length"))for(var l=0;l<t.length&&!1!==e(t[l],l);l++);else if(_(t))for(var s=0,f=Object.keys(t);s<f.length;s++){var h=f[s];if(!1===e(t[h],h))break}else if(Number.isInteger(t))for(var v=0;v<t&&!1!==e(v,v);v++);},t.getBorder=function(t){var e=document.body,n=et(t,(function(t){return ot(t,"work-area")})),r=Z(n);return{left:r.x,right:r.x+n.offsetWidth,top:r.y+50,bottom:e.offsetHeight<j().innerHeight?j().innerHeight:e.offsetHeight}},t.getBoundingClientRect=X,t.getCss3Prefix=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t.noCache||null==O.css3Prefix)&&(O.css3Prefix=e()),O.css3Prefix;function e(){var t=document.createElement("div");t.style.cssText="-webkit-transition:all .1s; -moz-transition:all .1s; -o-transition:all .1s; -ms-transition:all .1s; transition:all .1s;";var e=t.style;return e.webkitTransition?"-webkit-":e.MozTransition?"-moz-":e.oTransition?"-o-":e.msTransition?"-ms-":""}},t.getElSize=it,t.getElSizeEvenInvisible=at,t.getImageSizeByUrl=function(t){var e=document.createElement("img");return new Promise((function(n,r){ct(e,"load",(function(){n({width:e.width,height:e.height})})),ct(e,"error",(function(t){r(t)})),e.src=t}))},t.getLocalStorage2=function(){return O.localStorage2||(O.localStorage2=dt(j().localStorage)),O.localStorage2},t.getNodeByPathFromTreeData=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",o=e,i=!0,a=!1,c=void 0;try{for(var u,l=t[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var s=u.value;o=(n=o[s])[r]}}catch(t){a=!0,c=t}finally{try{i||null==l.return||l.return()}finally{if(a)throw c}}return n},t.getOffset=Z,t.getOffsetParent=K,t.getOuterAttachedHeight=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=b({margin:!0,border:!0},e);var n=getComputedStyle(t),r=0,o=[];return e.margin&&o.push("margin-top","margin-bottom"),e.border&&o.push("border-top-width","border-bottom-width"),o.forEach((function(t){r+=parseFloat(n[t])})),r},t.getOuterAttachedWidth=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=b({margin:!0,border:!0},e);var n=getComputedStyle(t),r=0,o=[];return e.margin&&o.push("margin-left","margin-right"),e.border&&o.push("border-left-width","border-right-width"),o.forEach((function(t){r+=parseFloat(n[t])})),r},t.getPosition=function(t){for(var e=K(t),n={x:t.offsetLeft,y:t.offsetTop},r=t;(r=r.parentElement)!==e&&r;)n.x-=r.scrollLeft,n.y-=r.scrollTop;return n},t.getPositionFromOffset=function(t,e){var n=Z(K(t));return{x:e.x-n.x,y:e.y-n.y}},t.getScroll=Q,t.getSessionStorage2=function(){return O.sessionStorage2||(O.sessionStorage2=dt(j().sessionStorage)),O.sessionStorage2},t.getUrlParam=function(t){var e=document.location.href,n=e.indexOf(t+"=");if(-1==n)return!1;var r=e.slice(t.length+n+1),o=r.indexOf("&");return-1!=o&&(r=r.slice(0,o)),r},t.getUserLanguage=function(){return navigator.language||navigator.userLanguage},t.getViewportPosition=tt,t.glb=j,t.groupArray=function(t,e){var n=new Map;t.forEach((function(t){var r=e(t);n.has(r)||n.set(r,[]),n.get(r).push(t)}));var r=[];return n.forEach((function(t,e){r.push([e,t])})),r},t.hasClass=ot,t.insertAfter=function(t,e){e.parentElement.insertBefore(t,e.nextSibling)},t.insertBefore=function(t,e){e.parentElement.insertBefore(t,e)},t.isArray=S,t.isBool=E,t.isDescendantOf=function(t,e){for(;;){if(null==t.parentElement)return!1;if(t.parentElement===e)return!0;t=t.parentElement}},t.isFunction=A,t.isNumber=P,t.isNumeric=L,t.isObject=_,t.isOffsetInEl=function(t,e,n){var r=Z(n);return r.x<=t&&r.x+n.offsetWidth>=t&&r.y<=e&&r.y+n.offsetHeight>=e},t.isPromise=function(t){return"[object Promise]"===Object.prototype.toString.call(t)},t.isString=T,t.isset=k,t.iterateALL=W,t.joinFunctionsByNext=function(t){var e=function(){},n=!0,r=!1,o=void 0;try{for(var i,a=W(t,{reverse:!0})[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){e=c(i.value.value,e)}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return e;function c(t,e){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.apply(void 0,[e].concat(r))}}},t.joinFunctionsByResult=function(t){for(var e=t[0],n=1;n<t.length;n++)e=r(e,t[n]);return e;function r(t,e){return function(n){args;var r=t(n);return e(r)}}},t.joinMethods=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r=!0,o=!1,i=void 0;try{for(var a,c=function(){var t=a.value,r=e;e=r?function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return t.call.apply(t,[this,"value"===n?r.call.apply(r,[this].concat(o)):r].concat(o))}:t},u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)c()}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return e},t.jqFixedSize=function(t){var e=j().jQuery;e(t).each((function(){var t=e(this);t.css({width:t.width()+"px",height:t.height()+"px"})}))},t.jqMakeCarousel=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:16,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"left",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;o.toString().match(/^\d+$/)&&(o+="px");var c=parseFloat(o),u=j().jQuery,l=u(t),s=l.find(e);l.css({position:"relative",height:l.height()+"px"});var f=s.find(n);f.css({margin:"0",marginRight:o});var h=(Math.ceil(f.width())+c)*f.length;s.css({position:"absolute",margin:"0",width:h+"px"});var v=s.height(),d=s.clone(),p=s.clone();s.css({left:0}),d.css({left:h+"px"}),p.css({left:2*h+"px"});var y=u("<div></div>");y.css({position:"absolute",width:3*h+"px",height:v+"px",left:0,top:a}),y.append(s).append(d).append(p),l.append(y);var g=0;function m(){"left"===i?g-=100:g+=100,y.animate({left:"".concat(g,"px")},r,"linear",(function(){Math.abs(g)>h&&("left"===i?g+=h:g-=h,y.css({left:g+"px"})),m()}))}m()},t.kebabCase=F,t.makeStorageHelper=dt,t.mapObjectTree=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4,o=0,i=[{value:t}],a=function(){if(o>=r)throw"mapObjectTree: limit(".concat(r,") reached, object may has circular reference");o++;var t=i.shift(),a=t.value,c=t.key,u=t.parent,l=t.newParent,s=e(a,c,u,l),f=function(t,e,r){return S(t)?t=[]:_(t)&&(t={}),u?S(l)&&r?l.push(t):l[e]=t:n=t,t},h=void 0,v=void 0,d=void 0,p=void 0,y=void 0;if(s){var g=s.key,m=s.value;v=m,s.delete||!1===g?d=!0:null==g?h=f(m,c,!0):s.hasOwnProperty("value")&&(h=f(m,g)),p=s.stop,y=s.skip}else v=a,h=f(a,c);if(d)return"continue";if(y)return"continue";if(p)return"break";if(S(v))for(var w=v.length,b=0;b<w;b++)i.push({value:v[b],key:b,parent:v,newParent:h});else _(v)&&Object.keys(v).forEach((function(t){i.push({value:v[t],key:t,parent:v,newParent:h})}))};t:for(;i.length>0;){var c=a();switch(c){case"continue":continue;case"break":break t}}return n},t.mapObjects=q,t.max=C,t.min=function(t,e){return t<e?e:t},t.newArrayRemoveAt=function(t,e){e=H(e);var n={},r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done);r=!0){n[a.value]=!0}}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}for(var u=[],l=t.length,s=0;s<l;s++)n[s]||u.push(t[s]);return u},t.numPad=function(t,e){for(var n=t.toString().length;n<e;)t="0"+t,n++;return t},t.numRand=N,t.objectExcept=function(t,e){var n={};for(var r in t)-1===e.indexOf(r)&&(n[r]=t[r]);return n},t.objectGet=z,t.objectMap=function(t,e){var n={};for(var r in t)n[r]=e(t[r],r,t);return n},t.objectMerge=function(t,e){for(var n in e)t.hasOwnProperty(n)&&_(t[n])&&_(e[n])?Object.assign(t[n],e[n]):t[n]=e[n];return t},t.objectOnly=function(t,e){var n={};for(var r in t)e.indexOf(r)>-1&&(n[r]=t[r]);return n},t.objectSet=function(t,e,n){var r=S(e)?e:e.split("."),o=G(r),i=z(t,r.slice(0,r.length-1));if(!i)throw"Path does not exist";i[o]=n},t.offDOM=ut,t.offsetToViewportPosition=function(t){var e=document.body,n=Z(e),r=tt(e);return{x:t.x+r.x-n.x,y:t.y+r.y-n.y}},t.onDOM=ct,t.onDOMMany=function(t,e,n){t=H(t),e=H(e);for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a=!0,c=!1,u=void 0;try{for(var l,s=t[Symbol.iterator]();!(a=(l=s.next()).done);a=!0){var f=l.value,h=!0,v=!1,d=void 0;try{for(var p,y=e[Symbol.iterator]();!(h=(p=y.next()).done);h=!0){var g=p.value;ct.apply(void 0,[f,g,n].concat(o))}}catch(t){v=!0,d=t}finally{try{h||null==y.return||y.return()}finally{if(v)throw d}}}}catch(t){c=!0,u=t}finally{try{a||null==s.return||s.return()}finally{if(c)throw u}}var m=function(){var r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done);r=!0){var u=a.value,l=!0,s=!1,f=void 0;try{for(var h,v=e[Symbol.iterator]();!(l=(h=v.next()).done);l=!0){ut(u,h.value,n)}}catch(t){s=!0,f=t}finally{try{l||null==v.return||v.return()}finally{if(s)throw f}}}}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}};return m},t.onQuickKeydown=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=b({timeout:1e3},e);var n,r="",o=function(o){o.key&&1===o.key.length&&(r="".concat(r).concat(o.key),t(r),n&&(clearTimeout(n),n=null),setTimeout((function(){r=""}),e.timeout))};return ct(document,"keydown",o),function(){ut(document,"keydown",o)}},t.openCenterWindow=function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i={width:n,height:r,top:(j().screen.availHeight-30-r)/2,left:(j().screen.availWidth-30-n)/2};Object.assign(i,o),ht(t,e,i)},t.openWindow=ht,t.pairRows=function(t,e,n,r){r||(r=n);var o=q(e,r);return t.map((function(t){return[t,o[t[n]]]}))},t.prependTo=function(t,e){e.insertBefore(t,e.firstChild)},t.promiseTimeout=function(t,e){return new Promise((function(n,r){var o,i;t.then((function(){clearTimeout(o),n.apply(void 0,arguments)}),(function(){i||(clearTimeout(o),r.apply(void 0,arguments))})),o=setTimeout((function(){i=!0;var t=new Error("Promise timeout!");t.name="timeout",r(t)}),e)}))},t.removeClass=function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},t.removeEl=function(t){if(null!==t.parentNode)return t.parentNode.removeChild(t)},t.replaceMultiple=function(t,e){var n=new RegExp(Object.keys(t).join("|"),"g");return e.replace(n,(function(e){return t[e]}))},t.resolveArgsByType=function(t,e){var n=0;return e.map((function(e){var r,o;if(S(e)?(r=e[0],o=e[1]):(r=e,o=void 0),!A(r))if(null==r)r=function(){return!0};else{var i=r;r=function(t){return Object.prototype.toString.call(t)==="[object ".concat(i,"]")}}var a=t[n];return r(a)?(n++,a):o}))},t.resolveValueOrGettter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return A(t)?t.apply(void 0,m(e)):t},t.restoreAttr=rt,t.retry=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;O.retry||(O.retry={});var r=t,o=a();return r[o]=0,i;function i(t,a,c){return e(t,a,c).then((function(t){return delete r[o],t})).catch((function(e){return r[o]++,r[o]>=n?(delete r[o],Promise.reject(e)):i(t,a,c)}))}function a(){var t=Math.random()+"";return r[t]?a():t}},t.setElChildByIndex=function(t,e,n){n.childComponentIndex=e;var r=t.childNodes.length;if(0===r)t.appendChild(n);else if(0===e)t.insertBefore(n,t.childNodes[0]);else{var o=st(t.childNodes,(function(t){return t.childComponentIndex-e}),0,C(e,r-1),!0),i=o.index,a=o.value;if(o.bigger)t.insertBefore(n,a);else{var c=t.childNodes[i+1];c?t.insertBefore(n,c):t.appendChild(n)}}},t.snakeCase=function(t){return F(t).replace(/-/g,"_")},t.splitArray=U,t.store=O,t.store_executeOnceInScopeByName={},t.strRand=M,t.studlyCase=I,t.titleCase=function(t){return R(I(B(t))).join(" ").replace(/\bid\b/gi,"ID")},t.toArrayIfNot=H,t.uniqueId=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id_",n=e+M();O.uniqueId||(O.uniqueId={});var r=O.uniqueId;return document.getElementById(n)||r[n]?t(e):(r[n]=!0,n)},t.unset=function(t,e){t[e]=void 0;try{delete t[e]}catch(t){}},t.viewportPositionToOffset=function(t){var e=document.body,n=Z(e),r=tt(e);return{x:t.x+n.x-r.x,y:t.y+n.y-r.y}},t.waitFor=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3;A(t)&&(r=n,n=L(e)?e:100,e=t,t=null),O.waitFor||(O.waitFor={});var o=O.waitFor;return t&&k(o[t])&&(j().clearInterval(o[t]),delete o[t]),new Promise((function(i,a){var c=0;function u(n){c<=r?e()&&(l(n,t),i()):(l(n,t),a(new Error("waitFor: Limit is reached"))),c++}function l(t,e){t&&(e&&k(o[e])?(j().clearInterval(o[e]),delete o[e]):j().clearInterval(t))}var s=j().setInterval((function(){u(s)}),n);t&&(o[t]=s),u()}))},t.waitTime=ft,t.walkTreeData=V,t.watchChange=function(t,e){var n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=t.apply(void 0,o);n!==a&&e.apply(void 0,[a].concat(o)),n=a}},t.windowLoaded=function(){return new Promise((function(t,e){document&&"complete"===document.readyState?t():j().addEventListener("load",(function e(){t(),j().removeEventListener("load",e)}))}))},Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).helperJs={})}(this,(function(t){"use strict";function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=e((function(t){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(n)}t.exports=e}));var r=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var o=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?r(t):e},i=e((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var a=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t},c=e((function(t){function e(n,r,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,n){var r=a(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}},e(n,r,o||n)}t.exports=e})),u=e((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e}));var l=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)};var s=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var h=function(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t};var v=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},d=e((function(t){var e=function(t){var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(t,e,n,r){var o=e&&e.prototype instanceof s?e:s,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=u(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,a),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function s(){}function f(){}function h(){}var v={};v[o]=function(){return this};var d=Object.getPrototypeOf,p=d&&d(d(j([])));p&&p!==e&&n.call(p,o)&&(v=p);var y=h.prototype=s.prototype=Object.create(v);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function m(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,a){var c=u(t[r],t,o);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?Promise.resolve(s.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function w(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function j(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=y.constructor=h,h.constructor=f,h[a]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(m.prototype),m.prototype[i]=function(){return this},t.AsyncIterator=m,t.async=function(e,n,r,o){var i=new m(c(e,n,r,o));return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(y),y[a]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=j,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));var p=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}};var y=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)};var g=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var m=function(t){return p(t)||y(t)||g()};function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var x=d.mark(W),O={};function j(){if(O.glb)return O.glb;var t;try{t=global}catch(e){t=window}return O.glb=t,t}function k(t){return void 0!==t}function S(t){return"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function P(t){return"[object Number]"===Object.prototype.toString.call(t)}function L(t){return isFinite(t)&&!isNaN(parseFloat(t))}function T(t){return"[object String]"===Object.prototype.toString.call(t)}function _(t){return"[object Object]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function N(t,e){return 1===arguments.length&&(e=t,t=0),Math.floor(Math.random()*(e-t+1)+t)}function C(t,e){return t<e?t:e}function I(t){return t&&t[0].toUpperCase()+t.substr(1)}function F(t){return t.replace(/ /g,"-").replace(/_/g,"-").replace(/([A-Z])/g,"-$1").replace(/--+/g,"-").replace(/^-|-$|/g,"").toLowerCase()}function B(t){for(var e=t.toString().split(/[-_]/),n=1;n<e.length;n++)e[n]=I(e[n]);return e.join("")}function R(t){return t.toString().trim().split(/(?=[A-Z])/)}function M(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=0;o<t;o++)n+=r[N(r.length-1)];return e+n}function D(t,e){for(var n,r=0;(n=t.indexOf(e))>-1;)t.splice(n,1),r++;return r}function G(t){return t[t.length-1]}function H(t){return S(t)?t:[t]}function U(t,e){var n=[];if(A(e))for(var r=e,o=1,i=0;i<t.length;){var a=i+r(o);n.push(t.slice(i,a)),i=a,o++}else for(var c=0;c<t.length;){var u=c+e;n.push(t.slice(c,u)),c=u}return n}function W(t){var e,n,r,o,i,a,c,u,l,s,f,h,v,p,y=arguments;return d.wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if((e=y.length>1&&void 0!==y[1]?y[1]:{}).reverse){d.next=30;break}if(null==t.length){d.next=14;break}n=0;case 4:if(!(n<t.length)){d.next=12;break}if(r={value:t[n],index:n},e.exclude&&e.exclude(r)){d.next=9;break}return d.next=9,r;case 9:n++,d.next=4;break;case 12:d.next=28;break;case 14:if(!_(t)){d.next=27;break}o=0,i=Object.keys(t);case 16:if(!(o<i.length)){d.next=25;break}if(a=i[o],c={value:t[a],key:a},e.exclude&&e.exclude(c)){d.next=22;break}return d.next=22,c;case 22:o++,d.next=16;break;case 25:d.next=28;break;case 27:throw"Unsupported type";case 28:d.next=58;break;case 30:if(null==t.length){d.next=42;break}u=t.length-1;case 32:if(!(u>=0)){d.next=40;break}if(l={value:t[u],index:u},e.exclude&&e.exclude(l)){d.next=37;break}return d.next=37,l;case 37:u--,d.next=32;break;case 40:d.next=58;break;case 42:if(!_(t)){d.next=57;break}(s=Object.keys(t)).reverse(),f=0,h=s;case 46:if(!(f<h.length)){d.next=55;break}if(v=h[f],p={value:t[v],key:v},e.exclude&&e.exclude(p)){d.next=52;break}return d.next=52,p;case 52:f++,d.next=46;break;case 55:d.next=58;break;case 57:throw"Unsupported type";case 58:case"end":return d.stop()}}),x)}function z(t,e,n){var r=S(e)?e:e.split("."),o=t;try{var i=!0,a=!1,c=void 0;try{for(var u,l=r[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){o=o[u.value]}}catch(t){a=!0,c=t}finally{try{i||null==l.return||l.return()}finally{if(a)throw c}}}catch(t){if(n)throw"Path does not exist"}return o}function q(t,e){for(var n={},r=t.length,o=0;o<r;o++){var i=t[o];n[A(e)?e(i,o):i[e]]=i}return n}function J(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3?arguments[3]:void 0,o=S(t)?t:[t],i=function(){},a=function t(o,a){r&&(o=o.slice()).reverse();for(var c=o.length,u=0;u<c;u++){var l=o[u],s=e(l,u,a);if(!1===s)throw new i;if("skip children"!==s){if("skip siblings"===s)break;null!=l[n]&&t(l[n],l)}}};try{a(o)}catch(t){if(!(t instanceof i))throw t}}var V=J;function Y(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],a=[],c=function(){for(var c=this,u=arguments.length,l=new Array(u),s=0;s<u;s++)l[s]=arguments[s];return new Promise((function(u,s){i.push(u),a.push(s),r=l,n||(n=!0,e=setTimeout((function(){var o=t.call.apply(t,[c].concat(m(r)));e=null,n=!1,i.forEach((function(t){return t(o)})),i=[],a=[]}),o))}))};return c.stop=function(){e&&(clearTimeout(e),e=null),n=!1,i=[],a.forEach((function(t){return t()})),a=[]},c}function $(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=function(){var i=this;return new Promise((function(a,c){n?a(r):(n=!0,a(r=t.call.apply(t,[i].concat(m(lastArgs)))),e=setTimeout((function(){e=null,n=!1,r=null}),o))}))};return i.stop=function(){e&&(clearTimeout(e),e=null),n=!1},i}function Q(){if("undefined"!=typeof pageYOffset)return{top:pageYOffset,left:pageXOffset};var t=document.body,e=document.documentElement;return{top:(e=e.clientHeight?e:t).scrollTop,left:e.scrollLeft}}function Z(t){var e=X(t),n=Q();return{x:e.left+n.left,y:e.top+n.top}}function K(t){var e=t.offsetParent;return(!e||e===document.body&&"static"===getComputedStyle(document.body).position)&&(e=document.body.parentElement),e}function X(t){var e=t.getBoundingClientRect(),n=e.top-document.documentElement.clientTop,r=e.bottom,o=e.left-document.documentElement.clientLeft,i=e.right;return{top:n,right:i,bottom:r,left:o,width:e.width||i-o,height:e.height||r-n,x:o,y:n}}var tt=X;function et(t,e,n){for(var r=n&&n.withSelf?t:t.parentElement;r;){var o=e(r);if("break"===o)return;if(o)return r;r=r.parentElement}}function nt(t,e){t["original_".concat(e)]=t.getAttribute(e)}function rt(t,e){var n="original_".concat(e);t.setAttribute(e,t[n])}function ot(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function it(t){nt(t,"style"),t.style.display="block";var e=X(t),n={width:e.width,height:e.height};return rt(t,"style"),n}var at=it;function ct(t,e,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];t.addEventListener?t.addEventListener.apply(t,[e,n].concat(o)):t.attachEvent&&t.attachEvent.apply(t,["on".concat(e),n].concat(o))}function ut(t,e,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];t.removeEventListener?t.removeEventListener.apply(t,[e,n].concat(o)):t.detachEvent&&t.detachEvent.apply(t,["on".concat(e),n].concat(o))}function lt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=W(t,{reverse:n.reverse}),o=!0,i=!1,a=void 0;try{for(var c,u=r[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l=c.value,s=l.value,f=l.index;if(e(s,f))return s}}catch(t){i=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}}function st(t,e,n,r,o){var i,a,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1e3;null==n&&(n=0,r=t.length-1);for(var u,l=0;n>=0&&n<=r;){if(l>=c)throw Error("binarySearch: loop times is over ".concat(c,", you can increase the limit."));if((u=e(a=t[i=Math.floor((r-n)/2+n)],l))>0)r=i-1;else{if(!(u<0))return{index:i,value:a,count:l+1,hit:!0};n=i+1}l++}return o?{index:i,value:a,count:l+1,hit:!1,bigger:u>0}:null}function ft(t,e){return new Promise((function(n,r){setTimeout((function(){e&&e(),n()}),t)}))}function ht(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};j().open(t,e,Object.keys(n).map((function(t){return"".concat(t,"=").concat(n[t])})).join(","))}var vt=function(){function t(e){var n=this;s(this,t),this.baseUrl="",this.search={};var r=decodeURI(e).split("?");this.baseUrl=r[0],r[1]&&r[1].split("&").forEach((function(t){var e=t.split("=");n.search[e[0]]=null==e[1]?"":decodeURIComponent(e[1])}))}return h(t,[{key:"getHref",value:function(){var t=this,e=[this.baseUrl],n=Object.keys(this.search).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(t.search[e]))})).join("&");return n&&e.push(n),e.join("?")}}]),t}();function dt(t){return{storage:t,set:function(t,e,n){null==e?this.storage.removeItem(t):this.storage.setItem(t,JSON.stringify({value:e,expired_at:n?(new Date).getTime()+60*n*1e3:null}))},get:function(t){var e=this.storage.getItem(t);if(e){if(!(e=JSON.parse(e)).expired_at||e.expired_at>(new Date).getTime())return e.value;this.storage.removeItem(t)}return null},clear:function(){this.storage.clear()}}}var pt=function(){function t(){s(this,t),this.eventStore=[]}return h(t,[{key:"on",value:function(t,e){this.eventStore.push({name:t,handler:e})}},{key:"once",value:function(t,e){var n=this,r=function(){n.off(t,o)},o=function(){e.apply(void 0,arguments),r()};return this.on(t,o),r}},{key:"onceTimeout",value:function(t,e,n){var r,o=this;return{off:function(){r&&r()},promise:new Promise((function(i,a){r=o.once(t,(function(){e.apply(void 0,arguments),i()})),ft(n).then((function(){r(),a()}))}))}}},{key:"off",value:function(t,e){for(var n=[],r=this.eventStore.length,o=0;o<r;o++){var i=this.eventStore[o];i.name===t&&i.handler===e&&n.unshift(o)}for(var a=0,c=n;a<c.length;a++){var u=c[a];this.eventStore.splice(u,1)}}},{key:"emit",value:function(t){var e=[],n=!0,r=!1,o=void 0;try{for(var i,a=this.eventStore[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var c=i.value;c.name===t&&e.push(c)}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}for(var u=arguments.length,l=new Array(u>1?u-1:0),s=1;s<u;s++)l[s-1]=arguments[s];for(var f=0,h=e;f<h.length;f++){var v=h[f];v.handler.apply(v,l)}}}]),t}(),yt=function(t){function e(t){var n;return s(this,e),(n=o(this,i(e).call(this))).storageName="_crossWindow",n.windows=[],n.timeout=200,n.BROADCAST="__BROADCAST__",t&&Object.assign(r(n),t),ct(window,"storage",(function(t){if(t.key===n.storageName){var e,r=JSON.parse(t.newValue);if(!r.targets||r.targets.includes(n.id))(e=n).emitLocal.apply(e,[r.name].concat(m(r.args)))}})),n.id=M(),n.windows=[n.id],n.ready=new Promise((function(t,e){n.onceTimeout("_windows_updated",(function(t){var e=t.windows;n.windows=e}),n.timeout).promise.then((function(){t()}),(function(){t()})),n.broadcast("_join",n.id)})),n.ready.then((function(){n.on("_join",(function(t){n.windows.push(t),n.isMain()&&n.broadcast("_windows_updated",{windows:n.windows,type:"join",id:t})})),n.on("_windows_updated",(function(t){var e=t.windows;n.windows=e})),n.on("_exit",(function(t){var e=n.windows[0];D(n.windows,t),n.isMain()&&(n.emit("_windows_updated",{windows:n.windows,type:"exit",id:t}),e!=n.id&&(console.log("_main_updated"),n.emit("_main_updated",{windows:n.windows,old:e,new:n.id})))})),ct(window,"beforeunload",(function(){n.exitGroup()}))})),n}return l(e,t),h(e,[{key:"isMain",value:function(){return this.id===this.windows[0]}},{key:"emitTo",value:function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];var u;n===this.BROADCAST?n=null:(n&&!S(n)&&(n=[n]),n.includes(this.id)&&(u=c(i(e.prototype),"emit",this)).call.apply(u,[this,t].concat(o)));j().localStorage.setItem(this.storageName,JSON.stringify({name:t,targets:n,args:o,random:Math.random()}))}},{key:"emitLocal",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.emitTo.apply(this,[t,this.id].concat(n))}},{key:"broadcast",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.emitTo.apply(this,[t,this.BROADCAST].concat(n))}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.emitTo.apply(this,[t,this.windows].concat(n))}},{key:"exitGroup",value:function(){this.broadcast("_exit",this.id)}}]),e}(pt),gt=yt;var mt=function(){function t(){s(this,t),this.store={}}return h(t,[{key:"has",value:function(t){return this.store.hasOwnProperty(t)}},{key:"remember",value:function(t,e){return this.has(t)||(this.store[t]={value:e()}),this.store[t].value}},{key:"forget",value:function(t){t?this.has(t)&&delete this.store[t]:this.store={}}}]),t}();t.Cache=mt,t.CrossWindow=gt,t.CrossWindowEventProcessor=yt,t.EventProcessor=pt,t.URLHelper=vt,t.addClass=function(t,e){ot(t,e)||(t.classList?t.classList.add(e):t.className+=" "+e)},t.appendTo=function(t,e){e.appendChild(t)},t.arrayAt=function(t,e){return t[e>=0?e:t.length+e]},t.arrayDiff=function(t,e){for(var n=t.length,r=[];n--;)e.indexOf(t[n])<0&&r.push(t[n]);return r},t.arrayDistinct=function(t){return j().Set?m(new Set(t)):t.filter((function(t,e,n){return n.indexOf(t)===e}))},t.arrayFirst=function(t){return t[0]},t.arrayGet=function(t,e,n){return e<0&&(e+=t.length),null==n?t[e]:(n<0&&(n+=t.length),t.slice(e,n-e+1))},t.arrayLast=G,t.arrayRemove=D,t.arrayRemoveBySortedIndexes=function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];t.splice(r,1)}},t.arraySibling=function(t,e,n){var r=t.indexOf(e);if(-1===r)throw"item is not in array";return S(n)?n.map((function(e){return t[r+e]})):t[r+n]},t.arrayWithoutEnd=function(t,e){return t.slice(0,t.length-e)},t.assignIfDifferent=function(t,e,n){t[e]!==n&&(t[e]=n)},t.attachCache=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new mt,r=function(r){var o=e[r];Object.defineProperty(t,r,{get:function(){var t=this;return n.remember(r,(function(){return o.call(t)}))}})};for(var o in e)r(o)},t.backupAttr=nt,t.binarySearch=st,t.camelCase=B,t.camelToWords=R,t.cloneObj=function t(e,r){switch(n(e)){case"undefined":case"boolean":case"nuber":case"string":case"function":return e;case"object":if(null===e)return e;var o;if(S(e)){o=[];var i=!0,a=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var s=u.value;o.push(t(s,r))}}catch(t){a=!0,c=t}finally{try{i||null==l.return||l.return()}finally{if(a)throw c}}}else{o={};for(var f=0,h=Object.keys(e);f<h.length;f++){var v=h[f];r&&(!S(r)||r.includes(v))&&r(v,e[v],e)||(o[v]=t(e[v],r))}}return o;default:return e}},t.copyTextToClipboard=function(t){try{return void navigator.clipboard.writeText(t)}catch(t){}var e=document.createElement("textarea");e.style.position="fixed",e.style.top=0,e.style.left=0,e.style.width="2em",e.style.height="2em",e.style.padding=0,e.style.border="none",e.style.outline="none",e.style.boxShadow="none",e.style.background="transparent",e.value=t,document.body.appendChild(e),e.select();try{var n=document.execCommand("copy")?"successful":"unsuccessful";console.log("Copying text command was "+n)}catch(t){console.log("Oops, unable to copy")}document.body.removeChild(e)},t.createElementFromHTML=function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.childNodes.length>1?e.childNodes:e.childNodes[0]},t.debounce=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.immediate?$(t,e):Y(t,e)},t.debounceImmediate=$,t.debounceTrailing=Y,t.depthFirstSearch=J,t.elementsFromPoint=function(){for(var t=document.elementsFromPoint||document.msElementsFromPoint||o,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(document,n);function o(t,e){var n=[],r=void 0;do{r!==document.elementFromPoint(t,e)?(r=document.elementFromPoint(t,e),n.push(r),r.style.pointerEvents="none"):r=!1}while(r);return n.forEach((function(t){return t.style.pointerEvents="all"})),n}},t.empty=function(t){return null==t||(null!=t.length?0===t.length:!E(t)&&(P(t)?isNaN(t):_(t)?0===Object.keys(t).length:void 0))},t.executeOnceInScopeByName=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:scope_executeOnceInScopeByName,r=arguments.length>3?arguments[3]:void 0;if(t="executeOnceInScopeByName_".concat(t),!n[t]){var o=e(),i=function(){delete n[t]};n[t]={destroy:i},r&&(n[t].value=o)}return n[t]},t.executePromiseGetters=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=new Promise((function(r,o){var i=[],a=U(t,n),c=Promise.resolve();a.forEach((function(t){c=c.then((function(n){if(n&&i.push.apply(i,m(n)),!e)return Promise.all(t.map((function(t){return t()})));o("stopped")}))})),c.then((function(t){i.push.apply(i,m(t)),r(i)}))}));return{promise:r,destroy:function(){e=!0}}},t.executeWithCount=function(t){var e=0;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.call.apply(t,[this,e++].concat(r))}},t.findNodeList=lt,t.findNodeListReverse=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.reverse=!0,lt(t,e,n)},t.findParent=et,t.forAll=function(t,e,n){if(n){if(S(t)||T(t)||t.hasOwnProperty("length"))for(var r=t.length-1;r>=0&&!1!==e(t[r],r);r--);else if(_(t)){var o=Object.keys(t);o.reverse();for(var i=0,a=o;i<a.length;i++){var c=a[i];if(!1===e(t[c],c))break}}else if(Number.isInteger(t))for(var u=t-1;u>=0&&!1!==e(u,u);u--);}else if(S(t)||T(t)||t.hasOwnProperty("length"))for(var l=0;l<t.length&&!1!==e(t[l],l);l++);else if(_(t))for(var s=0,f=Object.keys(t);s<f.length;s++){var h=f[s];if(!1===e(t[h],h))break}else if(Number.isInteger(t))for(var v=0;v<t&&!1!==e(v,v);v++);},t.getBorder=function(t){var e=document.body,n=et(t,(function(t){return ot(t,"work-area")})),r=Z(n);return{left:r.x,right:r.x+n.offsetWidth,top:r.y+50,bottom:e.offsetHeight<j().innerHeight?j().innerHeight:e.offsetHeight}},t.getBoundingClientRect=X,t.getCss3Prefix=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t.noCache||null==O.css3Prefix)&&(O.css3Prefix=e()),O.css3Prefix;function e(){var t=document.createElement("div");t.style.cssText="-webkit-transition:all .1s; -moz-transition:all .1s; -o-transition:all .1s; -ms-transition:all .1s; transition:all .1s;";var e=t.style;return e.webkitTransition?"-webkit-":e.MozTransition?"-moz-":e.oTransition?"-o-":e.msTransition?"-ms-":""}},t.getElSize=it,t.getElSizeEvenInvisible=at,t.getImageSizeByUrl=function(t){var e=document.createElement("img");return new Promise((function(n,r){ct(e,"load",(function(){n({width:e.width,height:e.height})})),ct(e,"error",(function(t){r(t)})),e.src=t}))},t.getLocalStorage2=function(){return O.localStorage2||(O.localStorage2=dt(j().localStorage)),O.localStorage2},t.getNodeByPathFromTreeData=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",o=e,i=!0,a=!1,c=void 0;try{for(var u,l=t[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var s=u.value;o=(n=o[s])[r]}}catch(t){a=!0,c=t}finally{try{i||null==l.return||l.return()}finally{if(a)throw c}}return n},t.getOffset=Z,t.getOffsetParent=K,t.getOuterAttachedHeight=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=b({margin:!0,border:!0},e);var n=getComputedStyle(t),r=0,o=[];return e.margin&&o.push("margin-top","margin-bottom"),e.border&&o.push("border-top-width","border-bottom-width"),o.forEach((function(t){r+=parseFloat(n[t])})),r},t.getOuterAttachedWidth=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=b({margin:!0,border:!0},e);var n=getComputedStyle(t),r=0,o=[];return e.margin&&o.push("margin-left","margin-right"),e.border&&o.push("border-left-width","border-right-width"),o.forEach((function(t){r+=parseFloat(n[t])})),r},t.getPosition=function(t){for(var e=K(t),n={x:t.offsetLeft,y:t.offsetTop},r=t;(r=r.parentElement)!==e&&r;)n.x-=r.scrollLeft,n.y-=r.scrollTop;return n},t.getPositionFromOffset=function(t,e){var n=Z(K(t));return{x:e.x-n.x,y:e.y-n.y}},t.getScroll=Q,t.getSessionStorage2=function(){return O.sessionStorage2||(O.sessionStorage2=dt(j().sessionStorage)),O.sessionStorage2},t.getUrlParam=function(t){var e=document.location.href,n=e.indexOf(t+"=");if(-1==n)return!1;var r=e.slice(t.length+n+1),o=r.indexOf("&");return-1!=o&&(r=r.slice(0,o)),r},t.getUserLanguage=function(){return navigator.language||navigator.userLanguage},t.getViewportPosition=tt,t.glb=j,t.groupArray=function(t,e){var n=new Map;t.forEach((function(t){var r=e(t);n.has(r)||n.set(r,[]),n.get(r).push(t)}));var r=[];return n.forEach((function(t,e){r.push([e,t])})),r},t.hasClass=ot,t.insertAfter=function(t,e){e.parentElement.insertBefore(t,e.nextSibling)},t.insertBefore=function(t,e){e.parentElement.insertBefore(t,e)},t.isArray=S,t.isBool=E,t.isDescendantOf=function(t,e){for(;;){if(null==t.parentElement)return!1;if(t.parentElement===e)return!0;t=t.parentElement}},t.isFunction=A,t.isNumber=P,t.isNumeric=L,t.isObject=_,t.isOffsetInEl=function(t,e,n){var r=Z(n);return r.x<=t&&r.x+n.offsetWidth>=t&&r.y<=e&&r.y+n.offsetHeight>=e},t.isPromise=function(t){return"[object Promise]"===Object.prototype.toString.call(t)},t.isString=T,t.isset=k,t.iterateALL=W,t.joinFunctionsByNext=function(t){var e=function(){},n=!0,r=!1,o=void 0;try{for(var i,a=W(t,{reverse:!0})[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){e=c(i.value.value,e)}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return e;function c(t,e){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.apply(void 0,[e].concat(r))}}},t.joinFunctionsByResult=function(t){for(var e=t[0],n=1;n<t.length;n++)e=r(e,t[n]);return e;function r(t,e){return function(n){args;var r=t(n);return e(r)}}},t.joinMethods=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r=!0,o=!1,i=void 0;try{for(var a,c=function(){var t=a.value,r=e;e=r?function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return t.call.apply(t,[this,"value"===n?r.call.apply(r,[this].concat(o)):r].concat(o))}:t},u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)c()}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return e},t.jqFixedSize=function(t){var e=j().jQuery;e(t).each((function(){var t=e(this);t.css({width:t.width()+"px",height:t.height()+"px"})}))},t.jqMakeCarousel=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:16,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"left",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;o.toString().match(/^\d+$/)&&(o+="px");var c=parseFloat(o),u=j().jQuery,l=u(t),s=l.find(e);l.css({position:"relative",height:l.height()+"px"});var f=s.find(n);f.css({margin:"0",marginRight:o});var h=(Math.ceil(f.width())+c)*f.length;s.css({position:"absolute",margin:"0",width:h+"px"});var v=s.height(),d=s.clone(),p=s.clone();s.css({left:0}),d.css({left:h+"px"}),p.css({left:2*h+"px"});var y=u("<div></div>");y.css({position:"absolute",width:3*h+"px",height:v+"px",left:0,top:a}),y.append(s).append(d).append(p),l.append(y);var g=0;function m(){"left"===i?g-=100:g+=100,y.animate({left:"".concat(g,"px")},r,"linear",(function(){Math.abs(g)>h&&("left"===i?g+=h:g-=h,y.css({left:g+"px"})),m()}))}m()},t.kebabCase=F,t.makeStorageHelper=dt,t.mapObjectTree=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4,o=0,i=[{value:t}],a=function(){if(o>=r)throw"mapObjectTree: limit(".concat(r,") reached, object may has circular reference");o++;var t=i.shift(),a=t.value,c=t.key,u=t.parent,l=t.newParent,s=e(a,c,u,l),f=function(t,e,r){return S(t)?t=[]:_(t)&&(t={}),u?S(l)&&r?l.push(t):l[e]=t:n=t,t},h=void 0,v=void 0,d=void 0,p=void 0,y=void 0;if(s){var g=s.key,m=s.value;v=m,s.delete||!1===g?d=!0:null==g?h=f(m,c,!0):s.hasOwnProperty("value")&&(h=f(m,g)),p=s.stop,y=s.skip}else v=a,h=f(a,c);if(d)return"continue";if(y)return"continue";if(p)return"break";if(S(v))for(var w=v.length,b=0;b<w;b++)i.push({value:v[b],key:b,parent:v,newParent:h});else _(v)&&Object.keys(v).forEach((function(t){i.push({value:v[t],key:t,parent:v,newParent:h})}))};t:for(;i.length>0;){var c=a();switch(c){case"continue":continue;case"break":break t}}return n},t.mapObjects=q,t.max=C,t.min=function(t,e){return t<e?e:t},t.newArrayRemoveAt=function(t,e){e=H(e);var n={},r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done);r=!0){n[a.value]=!0}}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}for(var u=[],l=t.length,s=0;s<l;s++)n[s]||u.push(t[s]);return u},t.numPad=function(t,e){for(var n=t.toString().length;n<e;)t="0"+t,n++;return t},t.numRand=N,t.objectExcept=function(t,e){var n={};for(var r in t)-1===e.indexOf(r)&&(n[r]=t[r]);return n},t.objectGet=z,t.objectMap=function(t,e){var n={};for(var r in t)n[r]=e(t[r],r,t);return n},t.objectMerge=function(t,e){for(var n in e)t.hasOwnProperty(n)&&_(t[n])&&_(e[n])?Object.assign(t[n],e[n]):t[n]=e[n];return t},t.objectOnly=function(t,e){var n={};for(var r in t)e.indexOf(r)>-1&&(n[r]=t[r]);return n},t.objectSet=function(t,e,n){var r=S(e)?e:e.split("."),o=G(r),i=z(t,r.slice(0,r.length-1));if(!i)throw"Path does not exist";i[o]=n},t.offDOM=ut,t.offsetToViewportPosition=function(t){var e=document.body,n=Z(e),r=tt(e);return{x:t.x+r.x-n.x,y:t.y+r.y-n.y}},t.onDOM=ct,t.onDOMMany=function(t,e,n){t=H(t),e=H(e);for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a=!0,c=!1,u=void 0;try{for(var l,s=t[Symbol.iterator]();!(a=(l=s.next()).done);a=!0){var f=l.value,h=!0,v=!1,d=void 0;try{for(var p,y=e[Symbol.iterator]();!(h=(p=y.next()).done);h=!0){var g=p.value;ct.apply(void 0,[f,g,n].concat(o))}}catch(t){v=!0,d=t}finally{try{h||null==y.return||y.return()}finally{if(v)throw d}}}}catch(t){c=!0,u=t}finally{try{a||null==s.return||s.return()}finally{if(c)throw u}}var m=function(){var r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done);r=!0){var u=a.value,l=!0,s=!1,f=void 0;try{for(var h,v=e[Symbol.iterator]();!(l=(h=v.next()).done);l=!0){ut(u,h.value,n)}}catch(t){s=!0,f=t}finally{try{l||null==v.return||v.return()}finally{if(s)throw f}}}}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}};return m},t.onQuickKeydown=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=b({timeout:1e3},e);var n,r="",o=function(o){o.key&&1===o.key.length&&(r="".concat(r).concat(o.key),t(r),n&&(clearTimeout(n),n=null),setTimeout((function(){r=""}),e.timeout))};return ct(document,"keydown",o),function(){ut(document,"keydown",o)}},t.openCenterWindow=function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i={width:n,height:r,top:(j().screen.availHeight-30-r)/2,left:(j().screen.availWidth-30-n)/2};Object.assign(i,o),ht(t,e,i)},t.openWindow=ht,t.pairRows=function(t,e,n,r){r||(r=n);var o=q(e,r);return t.map((function(t){return[t,o[t[n]]]}))},t.prependTo=function(t,e){e.insertBefore(t,e.firstChild)},t.promiseTimeout=function(t,e){return new Promise((function(n,r){var o,i;t.then((function(){clearTimeout(o),n.apply(void 0,arguments)}),(function(){i||(clearTimeout(o),r.apply(void 0,arguments))})),o=setTimeout((function(){i=!0;var t=new Error("Promise timeout!");t.name="timeout",r(t)}),e)}))},t.removeClass=function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},t.removeEl=function(t){if(null!==t.parentNode)return t.parentNode.removeChild(t)},t.replaceMultiple=function(t,e){var n=new RegExp(Object.keys(t).join("|"),"g");return e.replace(n,(function(e){return t[e]}))},t.resolveArgsByType=function(t,e){var n=0;return e.map((function(e){var r,o;if(S(e)?(r=e[0],o=e[1]):(r=e,o=void 0),!A(r))if(null==r)r=function(){return!0};else{var i=r;r=function(t){return Object.prototype.toString.call(t)==="[object ".concat(i,"]")}}var a=t[n];return r(a)?(n++,a):o}))},t.resolveValueOrGettter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return A(t)?t.apply(void 0,m(e)):t},t.restoreAttr=rt,t.retry=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;O.retry||(O.retry={});var r=t,o=a();return r[o]=0,i;function i(t,a,c){return e(t,a,c).then((function(t){return delete r[o],t})).catch((function(e){return r[o]++,r[o]>=n?(delete r[o],Promise.reject(e)):i(t,a,c)}))}function a(){var t=Math.random()+"";return r[t]?a():t}},t.setElChildByIndex=function(t,e,n){n.childComponentIndex=e;var r=t.childNodes.length;if(0===r)t.appendChild(n);else if(0===e)t.insertBefore(n,t.childNodes[0]);else{var o=st(t.childNodes,(function(t){return t.childComponentIndex-e}),0,C(e,r-1),!0),i=o.index,a=o.value;if(o.bigger)t.insertBefore(n,a);else{var c=t.childNodes[i+1];c?t.insertBefore(n,c):t.appendChild(n)}}},t.snakeCase=function(t){return F(t).replace(/-/g,"_")},t.splitArray=U,t.store=O,t.store_executeOnceInScopeByName={},t.strRand=M,t.studlyCase=I,t.titleCase=function(t){return R(I(B(t))).join(" ").replace(/\bid\b/gi,"ID")},t.toArrayIfNot=H,t.uniqueId=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id_",n=e+M();O.uniqueId||(O.uniqueId={});var r=O.uniqueId;return document.getElementById(n)||r[n]?t(e):(r[n]=!0,n)},t.unset=function(t,e){t[e]=void 0;try{delete t[e]}catch(t){}},t.viewportPositionToOffset=function(t){var e=document.body,n=Z(e),r=tt(e);return{x:t.x+n.x-r.x,y:t.y+n.y-r.y}},t.waitFor=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3;A(t)&&(r=n,n=L(e)?e:100,e=t,t=null),O.waitFor||(O.waitFor={});var o=O.waitFor;return t&&k(o[t])&&(j().clearInterval(o[t]),delete o[t]),new Promise((function(i,a){var c=0;function u(n){c<=r?e()&&(l(n,t),i()):(l(n,t),a(new Error("waitFor: Limit is reached"))),c++}function l(t,e){t&&(e&&k(o[e])?(j().clearInterval(o[e]),delete o[e]):j().clearInterval(t))}var s=j().setInterval((function(){u(s)}),n);t&&(o[t]=s),u()}))},t.waitTime=ft,t.walkTreeData=V,t.watchChange=function(t,e){var n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=t.apply(void 0,o);n!==a&&e.apply(void 0,[a].concat(o)),n=a}},t.windowLoaded=function(){return new Promise((function(t,e){document&&"complete"===document.readyState?t():j().addEventListener("load",(function e(){t(),j().removeEventListener("load",e)}))}))},Object.defineProperty(t,"__esModule",{value:!0})})); |
{ | ||
"name": "helper-js", | ||
"version": "1.4.22", | ||
"version": "1.4.23", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/helper-js.cjs.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
273503