@qbix/q.js 1.0.2 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,7 +26,7 @@ w){for(var x=$jscomp.makeIterator(g),z=x.next();!z.done;z=x.next())a(z.value).ca
26
26
  $jscomp.findInternal=function(g,p,a){g instanceof String&&(g=String(g));for(var x=g.length,w=0;w<x;w++){var B=g[w];if(p.call(a,B,w,g))return{i:w,v:B}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(g){return g?g:function(g,a){return $jscomp.findInternal(this,g,a).v}},"es6","es3");$jscomp.polyfill("Object.is",function(g){return g?g:function(g,a){return g===a?0!==g||1/g===1/a:g!==g&&a!==a}},"es6","es3");
27
27
  $jscomp.polyfill("Array.prototype.includes",function(g){return g?g:function(g,a){var p=this;p instanceof String&&(p=String(p));var w=p.length;for(a=a||0;a<w;a++)if(p[a]==g||Object.is(p[a],g))return!0;return!1}},"es7","es3");$jscomp.polyfill("String.prototype.includes",function(g){return g?g:function(g,a){return-1!==$jscomp.checkStringArgs(this,g,"includes").indexOf(g,a||0)}},"es6","es3");
28
28
  $jscomp.polyfill("Math.imul",function(g){return g?g:function(g,a){g=Number(g);a=Number(a);var p=g&65535,w=a&65535;return p*w+((g>>>16&65535)*w+p*(a>>>16&65535)<<16>>>0)|0}},"es6","es3");$jscomp.polyfill("String.prototype.endsWith",function(g){return g?g:function(g,a){var p=$jscomp.checkStringArgs(this,g,"endsWith");g+="";void 0===a&&(a=p.length);a=Math.max(0,Math.min(a|0,p.length));for(var w=g.length;0<w&&0<a;)if(p[--a]!=g[--w])return!1;return 0>=w}},"es6","es3");
29
- var module$temp$71_117_126_213_source={},$jscompDefaultExport$$module$temp$71_117_126_213_source=function(g,p){function a(){}function x(b,c,d){var e,f=0;if(null===d)return g;d=d||u;if(!b.length)return d;for(;d&&(e=b[f++])!==g;)try{"*"===e&&(e=a.firstKey(d)),d=d[e]!==g?d[e]:c?d[e]={}:g}catch(h){if(c)throw new a.Error("Q.setObject cannot set property of "+typeof d+" "+JSON.stringify(d));}return d}function w(b){return["id:"===b.substring(0,3)?b:a.normalize.memoized(b)]}function B(b,c,d,e,f,h){for(var l=
29
+ var module$temp$24_186_104_254_source={},$jscompDefaultExport$$module$temp$24_186_104_254_source=function(g,p){function a(){}function x(b,c,d){var e,f=0;if(null===d)return g;d=d||u;if(!b.length)return d;for(;d&&(e=b[f++])!==g;)try{"*"===e&&(e=a.firstKey(d)),d=d[e]!==g?d[e]:c?d[e]={}:g}catch(h){if(c)throw new a.Error("Q.setObject cannot set property of "+typeof d+" "+JSON.stringify(d));}return d}function w(b){return["id:"===b.substring(0,3)?b:a.normalize.memoized(b)]}function B(b,c,d,e,f,h){for(var l=
30
30
  a.Tool.calculateId(b.id),n=b.className.split(" "),k=[],m=0,r=n.length;m<r;++m){var t=n[m];h=h||a.activate.whitelist;"Q_tool"===t||"_tool"!==t.slice(-5)||h&&!h[t]||k.push(a.normalize.memoized(t.substring(0,t.length-5)))}var v=new a.Pipe(k,function(a){for(var b=0,d=k.length;b<d;++b)c.apply(null,a[k[b]])});a.each(k,function(c,h){function k(b){var c={};a.Tool.onMissingConstructor.handle(E,h,c);c.toolName&&(m=E[h]=a.Tool.defined(c.toolName),a.Tool.onLoadedConstructor(c.toolName).add(function(b,c){E[h]=
31
31
  c;a.Tool.onLoadedConstructor(h).handle.call(a.Tool,h,c)},h));"function"===typeof m||!b&&("string"===typeof m||a.isPlainObject(m)&&m.js)||(m=E[h]=function(){va("Missing tool constructor for "+h)},a.Tool.onLoadedConstructor(h).handle.call(a.Tool,h,m))}var m=E[h];m===g&&k(!1);e&&(a.setObject([l,e],!0,ka),e!==l&&a.setObject([e,l],!0,ba));if(d){var n=l+" "+h;d.firstToolId||(d.firstToolId=n);0>d.waitingForTools.indexOf(n)&&d.waitingForTools.push(n)}f&&f.placeholder&&D(b,h);if("function"===typeof m)return v.fill(h)(b,
32
32
  m,h,n);if(m!==g){"string"===typeof m&&(m="js"===m.split(".").pop()?{js:m}:{html:m});if(!a.isPlainObject(m))throw new a.Error("Q.Tool.loadScript: toolConstructor cannot be "+a.typeOf(m));if(!m.js&&!m.html)throw new a.Error("Q.Tool.loadScript: missing tool constructor file");c=a.pipe();var r=[];m.js&&(r.push("js"),a.addScript(m.js,c.fill("js")));m.html&&(r.push("html"),a.request.once(m.html,c.fill("html"),{extend:!1,parse:!1}));if(m.css){var t=a.Tool.names[h];t=t&&t.split("/")[0]||"";r.push("css");
@@ -67,27 +67,31 @@ d){a?(c&&this.addClass(c),d&&this.removeClass(d)):(d&&this.addClass(d),c&&this.r
67
67
  a.handle(c,this)}catch(f){console.warn(f)}},d)},a.elementById=function(a){return a?a.isConnected?a:(a.id?document.getElementById(a.id):null)||null:null},q.getElementsByClassName||(q.getElementsByClassName=document.getElementsByClassName));a.milliseconds=function(b){var c=Date.now();return b?c:c-a.milliseconds.start};a.milliseconds.start=Date.now();a.objectWithPrototype=function(a){function b(){}if(!a)return{};b.prototype=a;return new b};a.typeOf=function(b){var c=typeof b,d,e;"function"!==c||b instanceof
68
68
  Function||(c="object");if("object"===c){if(null===b)return"null";c=Object.prototype.toString.apply(b);if(b instanceof u.Element)return"Element";if(b instanceof Array||b.constructor&&"Array"===b.constructor.name||"[object Array]"===c)c="array";else if("[object Window]"===c)c="window";else{if("undefined"!=typeof b.typename)return b.typename;if(b.constructor&&a.typeOf.treatAsObject[b.constructor.name])return"object";$jscomp.initSymbol();$jscomp.initSymbolIterator();return"function"===b[Symbol.iterator]||
69
69
  "number"==typeof(e=b.length)&&0==e%1&&0<e&&e-1 in b?"array":"undefined"!=typeof b.constructor&&"undefined"!=typeof b.constructor.name?"Object"==b.constructor.name||""==b.constructor.name?"object":b.constructor.name:"[object "===(d=Object.prototype.toString.apply(b)).substring(0,8)?d.substring(8,d.length-1).toLowerCase():"object"}}return c};a.typeOf.treatAsObject=a.typeOf.treatAsObject={CSSStyleDeclaration:!0,NamedNodeMap:!0,MediaList:!0,StyleSheet:!0,StyleSheetList:!0,MimeTypeArray:!0,PluginArray:!0};
70
- a.each=function(b,c,d,e,f){function h(a,b){return a>b?1:a<b?-1:0}function l(a,c){return b[a][A]>b[c][A]?1:b[a][A]<b[c][A]?-1:0}function n(a,b){return Number(a)-Number(b)}function k(a,c){return Number(b[a][A])-Number(b[c][A])}var m;if("string"===typeof c&&a.isArrayLike(d)){var r=d;d=e}switch(m=a.typeOf(b)){default:var t=Array.prototype.slice.call(b,0);if("0"in b&&!("0"in t))for(t=[],e=0;f=b[e];++e)t.push(f);var v=t.length;if(!t||!v||!c)break;if(d&&!1===d.ascending)for(e=v-1;0<=e;--e){if(f=a.handle(c,
71
- t[e],r||[e,t[e],t]),!1===f)return!1}else for(e=0;e<v;++e)if(f=a.handle(c,t[e],r||[e,t[e]],t),!1===f)return!1;break;case "object":case "function":if(!b||!c)break;if(d&&("ascending"in d||"sort"in d)){t=[];for(v in b)(!d.hasOwnProperty||a.has(b,v))&&b.hasOwnProperty&&b.hasOwnProperty(v)&&t.push(d.numeric?Number(v):v);var A=d.sort;e=typeof A;t.sort("function"===e?A:"string"===e?d.numeric?k:l:d.numeric?n:h);if(!1===d.ascending)for(e=t.length-1;0<=e;--e){if(d=t[e],f=a.handle(c,b[d],r||[d,b[d],b]),!1===
72
- f)return!1}else for(e=0;e<t.length;++e)if(d=t[e],f=a.handle(c,b[d],r||[d,b[d],b]),!1===f)return!1}else for(v in b)if(b.hasOwnProperty&&b.hasOwnProperty(v)&&(f=a.handle(c,b[v],r||[v,b[v],b]),!1===f))return!1;break;case "string":if(!b||!c)break;if(d&&!1===d.ascending)for(e=0;e<b.length;++e){if(t=b.charAt(e),f=a.handle(c,t,r||[e,t,b]),!1===f)return!1}else for(e=b.length-1;0<=e;--e)if(t=b.charAt(e),f=a.handle(c,t,r||[e,t,b]),!1===f)return!1;break;case "number":m=0;v=b;"number"===typeof c&&(m=b,v=c,"number"===
73
- typeof d?(t=d,c=e,d=f):(c=d,d=e));if(!c)break;t===g&&(t=m<=v?1:-1);if(!t||0>(v-m)*t)return 0;if(m<=v)for(e=m;e<=v;e+=t){f=a.handle(c,this,r||[e],b);if(!1===f)return!1;if(0>t)return 0}else for(e=m;e>=v;e+=t){f=a.handle(c,this,r||[e],b);if(!1===f)return!1;if(0<t)return 0}break;case "boolean":if(!1===b)break;throw new a.Error("Q.each: does not support iterating a "+m);case "null":case "undefined":}};a.first=function(b,c){c=a.firstKey(b,c);return null!=c?b[c]:g};a.firstKey=function(b,c){if(!b)return g;
74
- switch(typeof b){case "array":for(c=0;c<b.length;++c)if(b[c]!==g)return c;break;case "object":for(var d in b)if(b.hasOwnProperty(d)&&b[d]!==g&&(d||!c||!c.nonEmptyKey))return d;break;case "string":return 0;default:throw new a.Error("Q.first: container has to be an array, object or string");}return g};a.isEmpty=function(b){if(!b)return!0;var c;var d=a.typeOf(b);if("array"===d)return 0===b.length;if("object"===d){for(c in b)if(d=b[c],d!==g)return!1;return!0}return!1};a.isInteger=function(a,c){return c?
75
- Number.isInteger(a):0<a?Math.floor(a)==a:Math.ceil(a)==a};a.isArrayLike=function(b){return"array"===a.typeOf(b)||u.$&&u.$.prototype&&b instanceof u.$};a.isPlainObject=function(a){return null===a||"object"!==typeof a||"[object Object]"!==Object.prototype.toString.apply(a)||u.attachEvent&&!u.addEventListener&&a&&a.constructor!==Object?!1:!0};a.instanceOf=function(a,c){if(!a||"object"!==typeof a)return!1;if(a instanceof c)return!0;if(c.__mixins)for(var b in c.__mixins)if(a instanceof b)return!0;return!1};
76
- a.copy=function(b,c,d){u.ArrayBuffer&&b instanceof ArrayBuffer&&ArrayBuffer.prototype.slice.call(b,0);if(a.isArrayLike(b)){var e=Array.prototype.slice.call(b,0);c=Object.keys(b);for(var f=0,h=c.length;f<h;++f)e[c[f]]=b[c[f]];return e}if(b&&"function"===typeof b.copy)return b.copy();if(null===b||!a.isPlainObject(b))return b;e=a.objectWithPrototype(Object.getPrototypeOf(b));if(c)for(f=0,h=c.length;f<h;++f){for(var l=c[f].split("."),n=b,k=0;k<l.length;++k)if(n&&"object"===typeof n)n=n[l[k]];else{n=g;
77
- break}"undefined"!==typeof n&&(e[c[f]]=d?a.copy(n,null,d-1):n)}else for(f in b)a.has(b,f)&&(e[f]=d?a.copy(b[f],null,d-1):b[f]);return e};a.extend=function(b){var c=arguments.length,d=g;"string"===typeof arguments[c-1]&&(d=arguments[c-1],--c);if(0===c)return{};var e=!1,f=0,h=a.typeOf(b),l="Q.Event"===h,n,k,m,r;for(n=1;n<c;++n)if(k=arguments[n])if(!0===k)e=!0;else if("number"===typeof k&&k)f=k;else if(b===g&&(a.isArrayLike(k)?(b=[],h="array"):(b={},h="object")),l)if(k&&k.constructor===Object)for(r in k)b.set(k[r],
78
- r);else b.set(k,d);else{if("array"===h)if(a.isArrayLike(k))b=Array.prototype.concat.call(b,k).filter(function(a,b,c){return c.indexOf(a)===b});else{if(a.isPlainObject(k))if(k.prepend&&a.isArrayLike(b)&&(b=[].concat(k.prepend,b).filter(function(a,b,c){return c.indexOf(a)===b})),k.append&&a.isArrayLike(b)&&(b=[].concat(b,k.append).filter(function(a,b,c){return c.indexOf(a)===b})),k.replace)b=a.copy(k.replace);else{if(k.updates){var t=k.updates[0];k.updates.slice(1).forEach(function(c){for(var d=0;d<
79
- b.length;d++)b[d][t]===c[t]&&(b[d]=a.extend(b[d],!0,f-1,c))})}k.add&&(b=b.concat(k.add));k.remove&&(b=(t=k.updates&&k.updates[0]||null)?b.filter(function(a){return!k.remove.some(function(b){return a[t]===b[t]})}):b.filter(function(a){return-1===k.remove.indexOf(a)}))}}else for(m in k)if(!0===e||k.hasOwnProperty&&k.hasOwnProperty(m)||!(k.hasOwnProperty&&m in k)){var v=k[m];var A=m in b&&a.typeOf(b[m]);var F=a.typeOf(v);if("Q.Event"===A)if(v&&"Q.Event"===v.typename&&(v=v.handlers),v&&v.constructor===
80
- Object)for(r in v)b[m].set(v[r],r);else if("Q.Event"===F)for(r in v.handlers)b[m].set(v.handlers[r],r);else b[m].set(v,d);else f&&b[m]&&("object"===typeof b[m]||"function"===typeof b[m])&&"Q.Event"!==F&&(a.isPlainObject(v)||"array"===A&&"array"===F)?b[m]="array"===A&&"replace"in v?a.copy(v.replace):a.extend(b[m],e,f-1,v):b[m]=a.extend.dontCopy[a.typeOf(v)]?v:a.copy(v,null,f);v===g&&delete b[m]}e=!1;f=0}return b};a.extend.dontCopy={"Q.Tool":!0,"Q.Cache":!0};a.has=function(a,c){return Object.prototype.hasOwnProperty.call(a,
81
- c)};a.take=function(b,c,d){d=d||{};if(!b)return d;if(a.isArrayLike(c))for(var e=0;e<c.length;++e)c[e]in b&&(d[c[e]]=b[c[e]]);else for(e in c)d[e]=e in b?b[e]:c[e];return d};a.shuffle=function(a){var b=a.length;if(!b)return a;for(;--b;){var d=Math.floor(Math.random()*(b+1)),e=a[b];a[b]=a[d];a[d]=e}return a};a.mixin=function(b){var c=b.__mixins||(b.__mixins=[]),d,e;var f=1;for(e=arguments.length;f<e;++f){var h=arguments[f];if("function"!==typeof h)throw new a.Error("Q.mixin: argument "+f+" is not a function");
82
- var l=h.prototype,n=b.prototype;for(d in l)d in n||(n[d]=l[d]);for(d in h)d in b||(b[d]=h[d]);c.push(arguments[f])}b.staticProperty=function(a){for(var c=0;c<b.__mixins.length;++c)if(a in b.__mixins[c])return b.__mixins[c][a];return g};b.constructors=function(){var a=b.__mixins,c;for(c=a.length-1;0<=c;--c)a[c].apply(this,arguments)};b.prototype.constructors=function(){b.constructors.apply(this,arguments)}};a.normalize=function(b,c,d,e,f){if(b===g||"string"!==typeof b){debugger;return b}e||(e=200);
83
- c===g&&(c="_");!0===d?d=a.normalize.regexpASCII:d||(d=a.normalize.regexpUNICODE);f||(b=b.toLowerCase());b=b.replace(d,c);b.length>e&&(b=b.substring(0,e-11)+"_"+Math.abs(b.substring(e-11).hashCode()));return b};a.normalize.regexpASCII=/[^A-Za-z0-9]+/g;a.normalize.regexpUNICODE=RegExp("[^\\p{L}0-9]+","gu");a.normalize.memoized=function(b){b in a.normalize.memoized.collection||(a.normalize.memoized.collection[b]=a.normalize(b));return a.normalize.memoized.collection[b]};a.normalize.memoized.collection=
84
- {};a.setObject=function(b,c,d,e){if(a.isPlainObject(b)){d=c;c={};for(var f in b)c[f]=a.setObject(f,b[f],d);return c}"string"===typeof b&&(b=b.split(e||"."));f=b.pop();return(b=x(b,!0,d))&&f!==g?b[f]=c:g};a.getObject=function(b,c,d,e){d=d||".";if("string"===typeof b)b=b.split(d);else if(!(b instanceof Array))return b;var f=x(b,!1,c);f===g&&e!==g&&(f=a.setObject(b,e,c,d));return f};a.latest=function(b,c){b=a.calculateKey(b);if(c===g)return a.latest.issued[b]=(a.latest.issued[b]||0)%a.latest.max+1;var d=
85
- a.latest.seen[b]||0;return!0===c?d:c>d||c<d-9*a.latest.max/10?(a.latest.seen[b]=c,!0):!1};a.latest.issued={};a.latest.seen={};a.latest.max=1E4;a.calculateKey=function(b,c,d){if(!0===b)return"PAGE: CURRENT";b===g&&(b=a.Tool.beingActivated);if("Q.Tool"===a.typeOf(b))b="TOOL: "+b.id+" ("+b.name+")";else if(c&&b==g)for(d=d===g?1:d,b="AUTOKEY_"+d;c[b];)b="AUTOKEY_"+ ++d;else if(b!==g&&"string"!==typeof b)throw new a.Error("Q.calculateKey: key must be a String, Q.Tool, true, null, or undefined");return b};
86
- a.calculateKey.keys=[];a.chain=function(b){var c=b&&b.pop()||function(){var a=Array.prototype.slice.call(arguments).pop();"function"===typeof a&&a.apply(this,arguments)};a.each(b,function(b,e){if("function"===a.typeOf(e)){var d=c;c=function(){Array.prototype.slice.call(arguments,0).push(d);return e.apply(this,arguments)}}},{ascending:!1,numeric:!0});return c};a.promisify=function(b,c,d){return a.extend(function(){if(!a.Promise)return b.apply(this,arguments);var e=[],f,h,l=!1,n=new a.Promise(function(a,
87
- b){f=a;h=b});a.each(arguments,function(a,b){d instanceof Array&&d[0]==a?(l=!0,e.push(function(a){if(b instanceof Function)try{return b.apply(this,arguments)}catch(t){return}return f(a)})):d instanceof Array&&d[1]==a?(l=!0,e.push(function(a){if(b instanceof Function)try{return b.apply(this,arguments)}catch(t){}else return h(a)})):b instanceof Function?(l=!0,e.push(function(a,d){if(b instanceof Function)try{b.apply(this,arguments)}catch(v){}a?b instanceof Function||h(a):f(c?this:d)})):e.push(b)});d instanceof
88
- Array?(d[0]&&e.length<=d[0]&&(e[d[0]]=f),d[1]&&e.length<=d[1]&&(e[d[1]]=h)):l||e.splice(d===g?e.length:d,0,function(a,b){if(a)return h(a);f(c?this:b)});try{return a.extend(n,b.apply(this,e))}catch(k){return h(k),n}},b)};a.throttle=function(a,c,d,e){var b,h=null;return function(f){var l=this,k=arguments,m=Date.now()-b;if(m<c)return d&&(h&&clearTimeout(h),h=setTimeout(function(){b=Date.now();a.apply(l,k)},c-m)),e;b=Date.now();return a.apply(this,arguments)}};a.queue=function(a,c){function b(){if(!e.length)return f=
89
- null,0;var d=e.shift();!1===a.apply(d[0],d[1])?(f=null,e=[]):f=setTimeout(b,c)}var e=[],f=null;c=c||0;return function(){var a=Array.prototype.slice.call(arguments,0);a=e.push([this,a]);f||(f=setTimeout(b,0));return a}};a.debounce=function(a,c,d,e){var b=null;return function(){var f=this,l=arguments;b?clearTimeout(b):d&&a.apply(f,l);b=setTimeout(function(){d||a.apply(f,l);b=null},c);return e}};a.element=function(a,c,d){a=document.createElement(a);if(c)for(var b in c)b.startsWith("on")&&"function"===
90
- typeof c[b]?a[b]=c[b]:a.setAttribute(b,c[b]);if(d)if("string"===typeof d)a.innerHTML=d;else for(c=0,b=d.length;c<b;++c){var f=d[c];if(f)if("string"===typeof f){var h=document.createElement("div");for(h.innerHTML=f;h.firstChild;)a.appendChild(h.firstChild)}else a.append(f)}return a};a.$=function(a,c,d){a=(c||document.body).querySelectorAll(a);return d?Array.prototype.slice.call(a):a.values()};a.RegExp={letters:function(){return RegExp(/^p{L}/,"u")}};a.Event=function(b,c,d){if(this===a)throw new a.Error("Q.Event: Missing new keyword");
70
+ a.handle=function(b,c,d,e){try{if(!b)return 0;c||(c=u);d||(d=[]);var f=0,h=0,l;b===location&&(b=location.href);switch(a.typeOf(b)){case "function":var n=b.apply(c,d);return!1===n?!1:1;case "array":for(f=0;f<b.length;++f){n=a.handle(b[f],c,d);if(!1===n)return!1;h+=n}return h;case "Q.Event":return b.handle.apply(c,d);case "object":for(l in b){n=a.handle(b[l],c,d);if(!1===n)return!1;h+=n}return h;case "string":var k=a.extend({},a.handle.options,e);if(!(b.isUrl()||"#"==b[0]||k.target&&"_self"!==k.target.toLowerCase())){var m=
71
+ a.getObject(b,c)||a.getObject(b);return a.handle(m,c,d)}if(k.dontReload&&a.info&&a.info.url===b)return 0;var r=null;"function"===typeof arguments[1]?(r=arguments[1],k=a.handle.options):arguments[1]&&arguments[3]===g?(k=a.extend({},a.handle.options,arguments[1]),"function"===typeof arguments[2]&&(r=arguments[2])):(k=a.extend({},a.handle.options,e),k.callback&&(r=k.callback));var t=a.baseUrl(),v=b.sameDomain(t);if("#"===b[0])u.location.hash=b;else if(!k.loadUsingAjax||!v||k.target&&!0!==k.target&&"_self"!==
72
+ k.target)if("object"===a.typeOf(k.fields)){f="POST";if(k.method)switch(k.method.toUpperCase()){case "GET":case "POST":f=k.method;break;default:f="POST"}a.formPost(b,k.fields,f,{onLoad:k.callback,target:k.target})}else a.info&&b===t&&(b+="/"),k.target&&!0!==k.target&&"_self"!==k.target?u.open(b,k.target):u.location.href==b?u.location.reload(!0):u.location=b;else 0===b.search(t)?a.loadUrl(b,a.extend({loadExtras:"session",ignoreHistory:!1,onActivate:function(){r&&r()}},k)).then(function(a){},function(a){if(k&&
73
+ k.handleException)return k.handleException(a)}):k.externalLoader?k.externalLoader.apply(this,arguments):u.location=b;a.handle.onUrl.handle(b,k);return 1;default:return 0}}catch(A){if(e&&e.handleException)return e.handleException(A);throw A;}};a.handle.options={loadUsingAjax:!0,externalLoader:null,dontReload:!1};setTimeout(function(){a.handle.onUrl=new a.Event(function(){var b=document.getElementsByClassName("Q_error_message");a.each(b,function(){a.removeElement(this,!0)})},"Q")});a.each=function(b,
74
+ c,d,e,f){function h(a,b){return a>b?1:a<b?-1:0}function l(a,c){return b[a][A]>b[c][A]?1:b[a][A]<b[c][A]?-1:0}function n(a,b){return Number(a)-Number(b)}function k(a,c){return Number(b[a][A])-Number(b[c][A])}var m;if("string"===typeof c&&a.isArrayLike(d)){var r=d;d=e}switch(m=a.typeOf(b)){default:var t=Array.prototype.slice.call(b,0);if("0"in b&&!("0"in t))for(t=[],e=0;f=b[e];++e)t.push(f);var v=t.length;if(!t||!v||!c)break;if(d&&!1===d.ascending)for(e=v-1;0<=e;--e){if(f=a.handle(c,t[e],r||[e,t[e],
75
+ t]),!1===f)return!1}else for(e=0;e<v;++e)if(f=a.handle(c,t[e],r||[e,t[e]],t),!1===f)return!1;break;case "object":case "function":if(!b||!c)break;if(d&&("ascending"in d||"sort"in d)){t=[];for(v in b)(!d.hasOwnProperty||a.has(b,v))&&b.hasOwnProperty&&b.hasOwnProperty(v)&&t.push(d.numeric?Number(v):v);var A=d.sort;e=typeof A;t.sort("function"===e?A:"string"===e?d.numeric?k:l:d.numeric?n:h);if(!1===d.ascending)for(e=t.length-1;0<=e;--e){if(d=t[e],f=a.handle(c,b[d],r||[d,b[d],b]),!1===f)return!1}else for(e=
76
+ 0;e<t.length;++e)if(d=t[e],f=a.handle(c,b[d],r||[d,b[d],b]),!1===f)return!1}else for(v in b)if(b.hasOwnProperty&&b.hasOwnProperty(v)&&(f=a.handle(c,b[v],r||[v,b[v],b]),!1===f))return!1;break;case "string":if(!b||!c)break;if(d&&!1===d.ascending)for(e=0;e<b.length;++e){if(t=b.charAt(e),f=a.handle(c,t,r||[e,t,b]),!1===f)return!1}else for(e=b.length-1;0<=e;--e)if(t=b.charAt(e),f=a.handle(c,t,r||[e,t,b]),!1===f)return!1;break;case "number":m=0;v=b;"number"===typeof c&&(m=b,v=c,"number"===typeof d?(t=d,
77
+ c=e,d=f):(c=d,d=e));if(!c)break;t===g&&(t=m<=v?1:-1);if(!t||0>(v-m)*t)return 0;if(m<=v)for(e=m;e<=v;e+=t){f=a.handle(c,this,r||[e],b);if(!1===f)return!1;if(0>t)return 0}else for(e=m;e>=v;e+=t){f=a.handle(c,this,r||[e],b);if(!1===f)return!1;if(0<t)return 0}break;case "boolean":if(!1===b)break;throw new a.Error("Q.each: does not support iterating a "+m);case "null":case "undefined":}};a.first=function(b,c){c=a.firstKey(b,c);return null!=c?b[c]:g};a.firstKey=function(b,c){if(!b)return g;switch(typeof b){case "array":for(c=
78
+ 0;c<b.length;++c)if(b[c]!==g)return c;break;case "object":for(var d in b)if(b.hasOwnProperty(d)&&b[d]!==g&&(d||!c||!c.nonEmptyKey))return d;break;case "string":return 0;default:throw new a.Error("Q.first: container has to be an array, object or string");}return g};a.isEmpty=function(b){if(!b)return!0;var c;var d=a.typeOf(b);if("array"===d)return 0===b.length;if("object"===d){for(c in b)if(d=b[c],d!==g)return!1;return!0}return!1};a.isInteger=function(a,c){return c?Number.isInteger(a):0<a?Math.floor(a)==
79
+ a:Math.ceil(a)==a};a.isArrayLike=function(b){return"array"===a.typeOf(b)||u.$&&u.$.prototype&&b instanceof u.$};a.isPlainObject=function(a){return null===a||"object"!==typeof a||"[object Object]"!==Object.prototype.toString.apply(a)||u.attachEvent&&!u.addEventListener&&a&&a.constructor!==Object?!1:!0};a.instanceOf=function(a,c){if(!a||"object"!==typeof a)return!1;if(a instanceof c)return!0;if(c.__mixins)for(var b in c.__mixins)if(a instanceof b)return!0;return!1};a.copy=function(b,c,d){u.ArrayBuffer&&
80
+ b instanceof ArrayBuffer&&ArrayBuffer.prototype.slice.call(b,0);if(a.isArrayLike(b)){var e=Array.prototype.slice.call(b,0);c=Object.keys(b);for(var f=0,h=c.length;f<h;++f)e[c[f]]=b[c[f]];return e}if(b&&"function"===typeof b.copy)return b.copy();if(null===b||!a.isPlainObject(b))return b;e=a.objectWithPrototype(Object.getPrototypeOf(b));if(c)for(f=0,h=c.length;f<h;++f){for(var l=c[f].split("."),n=b,k=0;k<l.length;++k)if(n&&"object"===typeof n)n=n[l[k]];else{n=g;break}"undefined"!==typeof n&&(e[c[f]]=
81
+ d?a.copy(n,null,d-1):n)}else for(f in b)a.has(b,f)&&(e[f]=d?a.copy(b[f],null,d-1):b[f]);return e};a.extend=function(b){var c=arguments.length,d=g;"string"===typeof arguments[c-1]&&(d=arguments[c-1],--c);if(0===c)return{};var e=!1,f=0,h=a.typeOf(b),l="Q.Event"===h,n,k,m,r;for(n=1;n<c;++n)if(k=arguments[n])if(!0===k)e=!0;else if("number"===typeof k&&k)f=k;else if(b===g&&(a.isArrayLike(k)?(b=[],h="array"):(b={},h="object")),l)if(k&&k.constructor===Object)for(r in k)b.set(k[r],r);else b.set(k,d);else{if("array"===
82
+ h)if(a.isArrayLike(k))b=Array.prototype.concat.call(b,k).filter(function(a,b,c){return c.indexOf(a)===b});else{if(a.isPlainObject(k))if(k.prepend&&a.isArrayLike(b)&&(b=[].concat(k.prepend,b).filter(function(a,b,c){return c.indexOf(a)===b})),k.append&&a.isArrayLike(b)&&(b=[].concat(b,k.append).filter(function(a,b,c){return c.indexOf(a)===b})),k.replace)b=a.copy(k.replace);else{if(k.updates){var t=k.updates[0];k.updates.slice(1).forEach(function(c){for(var d=0;d<b.length;d++)b[d][t]===c[t]&&(b[d]=a.extend(b[d],
83
+ !0,f-1,c))})}k.add&&(b=b.concat(k.add));k.remove&&(b=(t=k.updates&&k.updates[0]||null)?b.filter(function(a){return!k.remove.some(function(b){return a[t]===b[t]})}):b.filter(function(a){return-1===k.remove.indexOf(a)}))}}else for(m in k)if(!0===e||k.hasOwnProperty&&k.hasOwnProperty(m)||!(k.hasOwnProperty&&m in k)){var v=k[m];var A=m in b&&a.typeOf(b[m]);var F=a.typeOf(v);if("Q.Event"===A)if(v&&"Q.Event"===v.typename&&(v=v.handlers),v&&v.constructor===Object)for(r in v)b[m].set(v[r],r);else if("Q.Event"===
84
+ F)for(r in v.handlers)b[m].set(v.handlers[r],r);else b[m].set(v,d);else f&&b[m]&&("object"===typeof b[m]||"function"===typeof b[m])&&"Q.Event"!==F&&(a.isPlainObject(v)||"array"===A&&"array"===F)?b[m]="array"===A&&"replace"in v?a.copy(v.replace):a.extend(b[m],e,f-1,v):b[m]=a.extend.dontCopy[a.typeOf(v)]?v:a.copy(v,null,f);v===g&&delete b[m]}e=!1;f=0}return b};a.extend.dontCopy={"Q.Tool":!0,"Q.Cache":!0};a.has=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};a.take=function(b,c,d){d=
85
+ d||{};if(!b)return d;if(a.isArrayLike(c))for(var e=0;e<c.length;++e)c[e]in b&&(d[c[e]]=b[c[e]]);else for(e in c)d[e]=e in b?b[e]:c[e];return d};a.shuffle=function(a){var b=a.length;if(!b)return a;for(;--b;){var d=Math.floor(Math.random()*(b+1)),e=a[b];a[b]=a[d];a[d]=e}return a};a.mixin=function(b){var c=b.__mixins||(b.__mixins=[]),d,e;var f=1;for(e=arguments.length;f<e;++f){var h=arguments[f];if("function"!==typeof h)throw new a.Error("Q.mixin: argument "+f+" is not a function");var l=h.prototype,
86
+ n=b.prototype;for(d in l)d in n||(n[d]=l[d]);for(d in h)d in b||(b[d]=h[d]);c.push(arguments[f])}b.staticProperty=function(a){for(var c=0;c<b.__mixins.length;++c)if(a in b.__mixins[c])return b.__mixins[c][a];return g};b.constructors=function(){var a=b.__mixins,c;for(c=a.length-1;0<=c;--c)a[c].apply(this,arguments)};b.prototype.constructors=function(){b.constructors.apply(this,arguments)}};a.normalize=function(b,c,d,e,f){if(b===g||"string"!==typeof b){debugger;return b}e||(e=200);c===g&&(c="_");!0===
87
+ d?d=a.normalize.regexpASCII:d||(d=a.normalize.regexpUNICODE);f||(b=b.toLowerCase());b=b.replace(d,c);b.length>e&&(b=b.substring(0,e-11)+"_"+Math.abs(b.substring(e-11).hashCode()));return b};a.normalize.regexpASCII=/[^A-Za-z0-9]+/g;a.normalize.regexpUNICODE=RegExp("[^\\p{L}0-9]+","gu");a.normalize.memoized=function(b){b in a.normalize.memoized.collection||(a.normalize.memoized.collection[b]=a.normalize(b));return a.normalize.memoized.collection[b]};a.normalize.memoized.collection={};a.setObject=function(b,
88
+ c,d,e){if(a.isPlainObject(b)){d=c;c={};for(var f in b)c[f]=a.setObject(f,b[f],d);return c}"string"===typeof b&&(b=b.split(e||"."));f=b.pop();return(b=x(b,!0,d))&&f!==g?b[f]=c:g};a.getObject=function(b,c,d,e){d=d||".";if("string"===typeof b)b=b.split(d);else if(!(b instanceof Array))return b;var f=x(b,!1,c);f===g&&e!==g&&(f=a.setObject(b,e,c,d));return f};a.latest=function(b,c){b=a.calculateKey(b);if(c===g)return a.latest.issued[b]=(a.latest.issued[b]||0)%a.latest.max+1;var d=a.latest.seen[b]||0;return!0===
89
+ c?d:c>d||c<d-9*a.latest.max/10?(a.latest.seen[b]=c,!0):!1};a.latest.issued={};a.latest.seen={};a.latest.max=1E4;a.calculateKey=function(b,c,d){if(!0===b)return"PAGE: CURRENT";b===g&&(b=a.Tool.beingActivated);if("Q.Tool"===a.typeOf(b))b="TOOL: "+b.id+" ("+b.name+")";else if(c&&b==g)for(d=d===g?1:d,b="AUTOKEY_"+d;c[b];)b="AUTOKEY_"+ ++d;else if(b!==g&&"string"!==typeof b)throw new a.Error("Q.calculateKey: key must be a String, Q.Tool, true, null, or undefined");return b};a.calculateKey.keys=[];a.chain=
90
+ function(b){var c=b&&b.pop()||function(){var a=Array.prototype.slice.call(arguments).pop();"function"===typeof a&&a.apply(this,arguments)};a.each(b,function(b,e){if("function"===a.typeOf(e)){var d=c;c=function(){Array.prototype.slice.call(arguments,0).push(d);return e.apply(this,arguments)}}},{ascending:!1,numeric:!0});return c};a.promisify=function(b,c,d){return a.extend(function(){if(!a.Promise)return b.apply(this,arguments);var e=[],f,h,l=!1,n=new a.Promise(function(a,b){f=a;h=b});a.each(arguments,
91
+ function(a,b){d instanceof Array&&d[0]==a?(l=!0,e.push(function(a){if(b instanceof Function)try{return b.apply(this,arguments)}catch(t){return}return f(a)})):d instanceof Array&&d[1]==a?(l=!0,e.push(function(a){if(b instanceof Function)try{return b.apply(this,arguments)}catch(t){}else return h(a)})):b instanceof Function?(l=!0,e.push(function(a,d){if(b instanceof Function)try{b.apply(this,arguments)}catch(v){}a?b instanceof Function||h(a):f(c?this:d)})):e.push(b)});d instanceof Array?(d[0]&&e.length<=
92
+ d[0]&&(e[d[0]]=f),d[1]&&e.length<=d[1]&&(e[d[1]]=h)):l||e.splice(d===g?e.length:d,0,function(a,b){if(a)return h(a);f(c?this:b)});try{return a.extend(n,b.apply(this,e))}catch(k){return h(k),n}},b)};a.throttle=function(a,c,d,e){var b,h=null;return function(f){var l=this,k=arguments,m=Date.now()-b;if(m<c)return d&&(h&&clearTimeout(h),h=setTimeout(function(){b=Date.now();a.apply(l,k)},c-m)),e;b=Date.now();return a.apply(this,arguments)}};a.queue=function(a,c){function b(){if(!e.length)return f=null,0;
93
+ var d=e.shift();!1===a.apply(d[0],d[1])?(f=null,e=[]):f=setTimeout(b,c)}var e=[],f=null;c=c||0;return function(){var a=Array.prototype.slice.call(arguments,0);a=e.push([this,a]);f||(f=setTimeout(b,0));return a}};a.debounce=function(a,c,d,e){var b=null;return function(){var f=this,l=arguments;b?clearTimeout(b):d&&a.apply(f,l);b=setTimeout(function(){d||a.apply(f,l);b=null},c);return e}};a.element=function(a,c,d){a=document.createElement(a);if(c)for(var b in c)b.startsWith("on")&&"function"===typeof c[b]?
94
+ a[b]=c[b]:a.setAttribute(b,c[b]);if(d)if("string"===typeof d)a.innerHTML=d;else for(c=0,b=d.length;c<b;++c){var f=d[c];if(f)if("string"===typeof f){var h=document.createElement("div");for(h.innerHTML=f;h.firstChild;)a.appendChild(h.firstChild)}else a.append(f)}return a};a.$=function(a,c,d){a=(c||document.body).querySelectorAll(a);return d?Array.prototype.slice.call(a):a.values()};a.RegExp={letters:function(){return RegExp(/^p{L}/,"u")}};a.Event=function(b,c,d){if(this===a)throw new a.Error("Q.Event: Missing new keyword");
91
95
  var e=this;this.handlers={};this.keys=[];this.typename="Q.Event";b&&this.set(b,c,d);this.handle=function(){var b,c=0,d=e.occurring;if(e.stopped)return 0;e.occurring=!0;e.lastContext=this;e.lastArgs=arguments;var n=a.copy(e.keys);for(b=0;b<n.length;++b){var k=a.handle(e.handlers[n[b]],this,arguments);if(!1===k)return!1;c+=k}e.occurring=d;e.occurred=!0;return c}};a.Event.forTool={};a.Event.forPage=[];a.Event.jQueryForTool={};a.Event.jQueryForPage=[];a.Event.define=function(b,c){var d=new a.Event;b[c]=
92
96
  d;d.type=c;return d};a.Event.from=function(b,c){var d=new a.Event;a.addEventListener(b,c,d.handle);d.onEmpty().set(function(){a.removeEventListener(b,c,d.handle)});return d};q=a.Event.prototype;q.occurred=!1;q.occurring=!1;q.set=function(b,c,d){if(!b)if(c)b=null;else return null;!0===c||c===g&&a.Page&&a.Page.beingActivated?a.Event.forPage.push(this):c===g&&(c=a.Tool.beingActivated);var e="Q.Tool"===a.typeOf(c);c=a.calculateKey(c,this.handlers,this.keys.length);this.handlers[c]=b;0>this.keys.indexOf(c)&&
93
97
  (d?this.keys.unshift(c):this.keys.push(c));e&&(a.Event.forTool[c]=a.Event.forTool[c]||[],a.Event.forTool[c].push(this));1===this.keys.length&&this._onFirst&&this._onFirst.handle.call(this,b,c,d);this._onSet&&this._onSet.handle.call(this,b,c,d);return c};q.add=function(b,c,d){c=this.set(b,c,d);(this.occurred||this.occurring)&&a.handle(b,this.lastContext,this.lastArgs);return c};q.setOnce=function(a,c,d){if(!a)return g;var b=this;return c=b.set(function(){a.apply(this,arguments);b.remove(c)},c===g?
@@ -101,31 +105,27 @@ this.add(a.throttle(e.handle,b,c,0),d);return e};q.queue=function(b,c){var d=new
101
105
  b;l.onNewEvent=new a.Event;return l};a.beforeInit=new a.Event;a.onInit=new a.Event;a.onLoad=new a.Event;a.onUnload=new a.Event;a.onHashChange=new a.Event;a.onPopState=new a.Event;a.onOnline=new a.Event(function(){oa=!0},"Q");a.onOffline=new a.Event(function(){oa=!1},"Q");a.beforeActivate=new a.Event;a.onActivate=new a.Event;a.onDOM=new a.Event;a.onReady=new a.Event;var J=[],X=[],Y=[];a.onLayout=function(b){b=b||document.documentElement;"Q.Tool"===a.typeOf(b)&&(b=b.element);for(var c=0,d=J.length;c<
102
106
  d;++c)if(J[c]===b)return X[c];var e={},f=new a.Event;c=f.debounce(a.onLayout.debounce,!1,"Q.onLayout").map(function(){var a=b.getBoundingClientRect();var c=a.width==e.width&&a.height==e.height?!1:[this,arguments];e=a;return c},"Q.onLayout");d=J.push(b);X[d-1]=c;var h=null;"function"===typeof u.ResizeObserver&&(h=new u.ResizeObserver(function(){f.handle.call(f,b,b)}),h.observe(b));Y[d-1]=h;f.onEmpty().set(a.debounce(function(){for(var c=0,d=J.length;c<d;++c)if(J[c]===b){J.splice(c,1);X.splice(c,1);
103
107
  a.getObject("disconnect",Y[c])&&Y[c].disconnect();Y.splice(c,1);break}},a.onLayout.debounce||0),"Q");return c};a.onLayout.debounce=100;a.onScroll=new a.Event;a.beforeReplace=new a.Event;a.currentScript=function(b){var c=u._Q_currentScript_src||a.getObject("document.currentScript.src");if(!c){c=0;var d;try{throw Error();}catch(h){var e=h.stack.split("\n")}var f=0;for(d=e.length;f<d;++f)if(e[f].match(/http[s]?:\/\//)){c=f+1+(b||0);break}c=e[c]}if("string"!==typeof c)return console.warn("parseSrc: invalid type",
104
- typeof c),null;c=c.replace(/^[^a-zA-Z0-9]+(?=(https?:\/\/|file:\/\/))/,"").replace(/(:[A-Za-z0-9_-]+){1,2}$/,"").trim();b=c.match(/^((?:https?:\/\/|file:\/\/\/?)[^?#\n]+\/)([^\/?#]+\.js(?:[?#][^\n]*)?)$/i);if(!b)return console.warn("parseSrc: could not parse src",c),null;c=b[1]+b[2].split(/[?#]/)[0];u._Q_currentScript_src||(u._Q_currentScript_src=c);return{src:c,srcWithQuerystring:b[1]+b[2],path:b[1],file:b[2].split(/[?#]/)[0]}};a.currentScriptPath=function(b,c){c=(c=a.currentScript(c))&&c.src||u._Q_currentScript_src||
105
- document.currentScript&&document.currentScript.src;if(!c)for(var d=document.getElementsByTagName("script"),e=d.length-1;0<=e;--e)if(d[e].src){c=d[e].src;break}return c?c.split("/").slice(0,-1).join("/")+(b?"/"+b:""):a.info&&a.info.baseUrl?a.info.baseUrl:""};a.currentScriptPath();a.ensure=function(b,c){var d=a.getObject(b,u);if(d!==g)a.handle(c,null,[d]);else{var e=a.ensure.loaders[b];if(!e)throw new a.Error("Q.ensure: missing loader for "+b);a.onInit.addOnce(function(){"string"===typeof e?".js"===
106
- e.substring(e.length-3)?a.require(e,c):".json"===e.substring(e.length-5)&&a.request(e,function(d,e){a.setObject(b,e);c&&c(e)},{extend:!1,skipNonce:!0}):"function"===typeof e?e(b,c):e instanceof a.Event&&e.addOnce(function(){c&&c(b)},b)})}};a.ensure.loaders={Handlebars:a.currentScriptPath("handlebars-v4.0.10.min.js"),"Q.info.baseUrl":a.onInit,IntersectionObserver:function(b,c){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return"isIntersecting"in
107
- window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}}),c&&c(b);a.addScript("{{Q}}/js/polyfills/IntersectionObserver.js",function(){c&&c(b)})}};a.Pipe=function(b,c,d,e){if(this===a)throw new a.Error("Q.Pipe: omitted keyword new");this.callbacks=[];this.params={};this.subjects={};this.ignore={};this.finished=!1;this.add.apply(this,arguments);(this.internal=e)&&e.progress&&e.progress(this)};
108
- q=a.Pipe.prototype;q.on=function(a,c){return this.add([a],1,function(a,b,f){return c.apply(b[f],a[f],f)})};q.add=function(b,c,d){for(var e=null,f=null,h=null,l,g,k,m=0;m<arguments.length;m++){var r=arguments[m];if("function"===typeof r){if(h){l=[];g=[];k=[];var t=this;a.each(e,function(b,c){c=a.getObject(h,c);"Q.Event"===a.typeOf(c)&&(k.push(c.add(t.fill(b))),l.push(b),g.push(c))});r.pipeEvents=g;r.pipeKeys=k;e=l}r.pipeRequires=e;r.pipeRemaining=f;e=f=h=null;this.callbacks.push(r)}else{switch(a.typeOf(r)){case "array":e=
109
- r;e.length&&"string"!==typeof e[0]&&"number"!==typeof e[0]&&(h=arguments[++m]);break;case "object":e=r;h=arguments[++m];break;case "number":f=r}if(null!=h&&"string"!==typeof h)throw new a.Error("Pipe.prototype.add requires event name after array of objects");}}return this};q.fill=function(b,c){if(!0===c)this.ignore[this.i]=!0;else if("string"===typeof c)this.ignore[c]=!0;else if(a.isArrayLike(c))for(var d=0;d<c.length;++d)this.ignore[c[d]]=!0;var e=this;return function(){e.internal&&e.internal.progress&&
110
- e.internal.progress(e,b);e.params[b]=Array.prototype.slice.call(arguments);e.subjects[b]=this;e.run(b)}};q.run=function(b){var c,d=this.callbacks,e=a.copy(this.params),f=0,h;var l=0;a:for(;l<d.length;l++)if(!this.ignore[l]&&(this.i=l,c=d[l])){if(c.pipeRequires)for(h=0;h<c.pipeRequires.length;h++)if(!(this.ignore[c.pipeRequires[h]]||c.pipeRequires[h]in e))continue a;c.pipeRemaining&&(--c.pipeRemaining||delete d[l]);var g=c.call(this,this.params,this.subjects,b,c.pipeRequires);if(c.pipeEvents)for(h=
111
- 0;h<c.pipeEvents.length;h++)c.pipeEvents[h].remove(c.pipeKeys[h]);++f;delete c.pipeEvents;delete c.pipeKeys;if(!1===g)delete d[l];else if(!0===g){this.callbacks=[];this.finished=!0;break}}return f};a.pipe=function(b,c,d,e){return new a.Pipe(b,c,d,e)};a.Cache=a.Cache||{};a.Cache.key=function(b,c){var d,e=[];if(!a.isArrayLike(b))return b;for(d=0;d<b.length;++d)"function"===typeof b[d]?c&&c.push&&c.push(b[d]):("object"!==typeof b[d]||a.isPlainObject(b[d])||b[d]instanceof Array)&&e.push(b[d]);return JSON.stringify(e)};
112
- a.Cache.Memory=function(a,c){this._name=a||"mem";this._max="number"===typeof c&&1<=c?c:100;this._map={};this._keys=[]};a.Cache.Memory.prototype.get=function(b){b=a.Cache.key(b);return this._map.hasOwnProperty(b)?this._map[b]:null};a.Cache.Memory.prototype.set=function(b,c,d,e){b=a.Cache.key(b);if(!this._map.hasOwnProperty(b)&&(this._keys.push(b),this._keys.length>this._max)){var f=Math.floor(Math.random()*this._keys.length),h=this._keys[f];this._keys.splice(f,1);delete this._map[h]}this._map[b]={subject:d,
113
- params:Array.prototype.slice.call(e),cbpos:c,ts:Date.now()};return!0};a.Cache.Memory.prototype.remove=function(b){b=a.Cache.key(b);return this._map.hasOwnProperty(b)?(delete this._map[b],b=this._keys.indexOf(b),-1!==b&&this._keys.splice(b,1),!0):!1};a.Cache.Memory.prototype.each=function(a,c,d){if(a&&0!==a.length)for(a=JSON.stringify(a),d=0;d<this._keys.length;d++)b=this._keys[d],0===b.indexOf(a)&&c.call(this,b,this._map[b]);else for(d=0;d<this._keys.length;d++){var b=this._keys[d];c.call(this,b,
114
- this._map[b])}};a.Cache.Memory.prototype.removeEach=function(a,c){c=c||{throwIfNoIndex:!1};this.each(a,function(a){this.remove(JSON.parse(a))},c);return this};a.Cache.Memory.prototype.clear=function(){this._map={};this._keys=[]};a.Cache.document=function(b,c){return new a.Cache.Memory(b,c)};a.Storage=function(){var a=u.localStorage,c=u.sessionStorage;try{return a.setItem("__qtest","1"),a.removeItem("__qtest"),a}catch(e){}try{return c.setItem("__qtest","1"),c.removeItem("__qtest"),c}catch(e){}var d=
115
- {};return{getItem:function(a){return d[a]},setItem:function(a,b){d[a]=b},removeItem:function(a){delete d[a]}}}();a.getter=function(b,c){var d=function(){function c(b,c,e,f,h){function l(b,c){d.onResult.handle(b,c,k,f,d);a.getter.usingCached=h;e.apply(b,c);d.onExecuted.handle(b,c,k,f,d);a.getter.usingCached=!1}d.prepare?d.prepare.call(d,b,c,l,k):l(b,c)}var l,n=[],k=Array.prototype.slice.call(arguments),m,r,t=new a.Promise(function(a,b){m=a;r=b});var v=a.Cache.key(k,n);if(0===n.length){var A=function(b,
116
- c){(b=!d.nonStandardErrorConvention&&a.firstErrorMessage(b,c))?r(b):m(this!==g?this:c)};n.push(A);d.callbackIndex!==g?k.splice(d.callbackIndex,0,A):k.push(A)}t.dontCache=!1;d.onCalled.handle.call(this,k,t);var F;a.getter.usingCached=!1;if(d.cache&&!f&&(F=d.cache.get(k))&&(A=F.cbpos,n[A]))return c(F.subject,F.params,n[A],t,!0),t.result=a.getter.CACHED,t;f=!1;e[v]=e[v]||[];e[v].push({callbacks:n,ret:t});if(1<e[v].length)return d.onExecuted.handle.call(this,k,t),t.result=a.getter.WAITING,t;A=[];for(F=
117
- l=0;l<k.length;l++)"function"!==typeof k[l]?A.push(k[l]):(A.push(function(b,f){return function(){!d.nonStandardErrorConvention&&a.firstErrorMessage(arguments[0],arguments[1])&&(t.dontCache=!0);d.cache&&!t.dontCache&&d.cache.set(k,f,this,arguments);var b=e[v];delete e[v];if(b)for(l=0;l<b.length;l++)try{c(this,arguments,b[l].callbacks[f],b[l].ret,!0)}catch(La){d.dontWarn||console.warn(La)}d.throttle&&d.throttle.throttleNext&&d.throttle.throttleNext(this)}}(n[F],F)),++F);if(!d.throttle)return!1===b.apply(this,
118
- A)&&(t.dontCache=!0),t.result=a.getter.REQUESTING,d.onExecuted.handle.call(this,k,t),t;if(!d.throttle.throttleTry){var u=d.throttleSize;var q=0;var p=[];var y=[];d.throttle.throttleTry=function(a,b,c,d){++q;if(null===u||q<=u)return!1===b.apply(a,c)&&(d.dontCache=!0),!0;p.push(b);y.push(c);return!1};d.throttle.throttleNext=function(a){0>--q&&console.warn("Q.getter: throttle count is negative. This probably means you passed a callback somewhere it shouldn't have been passed.");p.length&&p.shift().apply(a,
119
- y.shift())}}d.throttleSize||(d.throttle.throttleSize=function(a){if(a===g)return u;u=a});t.result=d.throttle.throttleTry(this,b,A,t)?a.getter.REQUESTING:a.getter.THROTTLING;d.onExecuted.handle.call(this,k,t);return t};a.extend(d,b,a.getter.options,c);d.original=b;d.onCalled=new a.Event;d.onExecuted=new a.Event;d.onResult=new a.Event;d.all=function(b,c,e){for(var f=[],h=[],l=0,g=b.length;l<g;++l){var n=b[l];f.push(e?l:a.Cache.key(n));n instanceof Array||(n=[n]);h.push(n)}e=a.pipe(f,1,function(d,e){a.handle(c,
120
- this,[d,e,b])});l=0;for(g=f.length;l<g;++l)h[l].push(e.fill(f[l])),d.apply(this,h[l]);e.run()};var e=d.waiting={};!1===d.cache?d.cache=null:!0===d.cache||d.cache===g?d.cache=a.Cache.document("Q_getter_"+ ++Ca):!d.cache||d.cache.get&&d.cache.set&&d.cache.clear||(d.cache=a.Cache.document("Q_getter_"+ ++Ca,c&&c.cache));d.throttle=d.throttle||null;!0===d.throttle&&(d.throttle="");"string"===typeof d.throttle&&(a.getter.throttles[d.throttle]||(a.getter.throttles[d.throttle]={}),d.throttle=a.getter.throttles[d.throttle]);
121
- d.forget=function(){return d.cache?d.cache.remove(Array.prototype.slice.call(arguments)):!1};d.forget.each=function(){if(!d.cache)return!1;var a=Array.prototype.slice.call(arguments);d.cache.each(a,d.cache.remove);return!0};var f=!1;d.force=function(){var b=a.Cache.key(arguments);e[b]=[];f=!0;return d.apply(this,arguments)};b.batch&&(d.batch=b.batch);return d};var Ca=0;a.getter.options={cache:!0,throttle:null,throttleSize:100};a.getter.throttles={};a.getter.cache={};a.getter.waiting={};a.getter.CACHED=
122
- 0;a.getter.REQUESTING=1;a.getter.WAITING=2;a.getter.THROTTLING=3;a.handle=function(b,c,d,e){try{if(!b)return 0;c||(c=u);d||(d=[]);var f=0,h=0,l;b===location&&(b=location.href);switch(a.typeOf(b)){case "function":var n=b.apply(c,d);return!1===n?!1:1;case "array":for(f=0;f<b.length;++f){n=a.handle(b[f],c,d);if(!1===n)return!1;h+=n}return h;case "Q.Event":return b.handle.apply(c,d);case "object":for(l in b){n=a.handle(b[l],c,d);if(!1===n)return!1;h+=n}return h;case "string":var k=a.extend({},a.handle.options,
123
- e);if(!(b.isUrl()||"#"==b[0]||k.target&&"_self"!==k.target.toLowerCase())){var m=a.getObject(b,c)||a.getObject(b);return a.handle(m,c,d)}if(k.dontReload&&a.info&&a.info.url===b)return 0;var r=null;"function"===typeof arguments[1]?(r=arguments[1],k=a.handle.options):arguments[1]&&arguments[3]===g?(k=a.extend({},a.handle.options,arguments[1]),"function"===typeof arguments[2]&&(r=arguments[2])):(k=a.extend({},a.handle.options,e),k.callback&&(r=k.callback));var t=a.baseUrl(),v=b.sameDomain(t);if("#"===
124
- b[0])u.location.hash=b;else if(!k.loadUsingAjax||!v||k.target&&!0!==k.target&&"_self"!==k.target)if("object"===a.typeOf(k.fields)){f="POST";if(k.method)switch(k.method.toUpperCase()){case "GET":case "POST":f=k.method;break;default:f="POST"}a.formPost(b,k.fields,f,{onLoad:k.callback,target:k.target})}else a.info&&b===t&&(b+="/"),k.target&&!0!==k.target&&"_self"!==k.target?u.open(b,k.target):u.location.href==b?u.location.reload(!0):u.location=b;else 0===b.search(t)?a.loadUrl(b,a.extend({loadExtras:"session",
125
- ignoreHistory:!1,onActivate:function(){r&&r()}},k)).then(function(a){},function(a){if(k&&k.handleException)return k.handleException(a)}):k.externalLoader?k.externalLoader.apply(this,arguments):u.location=b;a.handle.onUrl.handle(b,k);return 1;default:return 0}}catch(A){if(e&&e.handleException)return e.handleException(A);throw A;}};a.handle.options={loadUsingAjax:!0,externalLoader:null,dontReload:!1};a.handle.onUrl=new a.Event(function(){var b=document.getElementsByClassName("Q_error_message");a.each(b,
126
- function(){a.removeElement(this,!0)})},"Q");a.Exception=function(a,c){if(c)for(var b in c)this[b]=c[b];this.message=a||""};a.Exception.prototype=Error.prototype;a.Method=function(b,c){a.extend(this,b);this.__options=c||{}};a.Method.stub=new a.Method;a.Method.load=function(b,c,d,e){var f=b[c];return new Promise(function(h,l){a.require(d,function(d){function k(){var d=b[c];if(d===f)return l("Q.Method.define: Must override method '"+c+"'");for(var k in f)k in d||(d[k]=f[k]);f.__loaded=d;h(d);a.Method.onLoad.handle(b,
127
- c,b[c],e)}if(d){b.__loaded?b=b.__loaded:b.__shim&&b.__shim.__loaded&&(b=b.__shim.__loaded);var g=e?e():[];d.Q_Method_load_executed?k():Promise.resolve(d.apply(b,g)).then(function(a){"function"===typeof a&&(b[c]=a);d.Q_Method_load_executed=!0;k()}).catch(l)}else k()},!0)})};a.Method.onLoad=new a.Event;a.Method.define=function(b,c,d,e){function f(){var b=d?d():[];if(!e||!e.require)return Promise.resolve(b);if(Array.isArray(l))return Promise.resolve(b.concat(l));if(l&&"function"===typeof l.then)return l.then(function(a){return b.concat(a)});
128
- var f=a.url(c+"/"+e.require+".js");l=new Promise(function(b){a.require(f,function(a){Promise.resolve("function"===typeof a?a():a).then(function(a){l=a=a!==g&&null!==a?[a]:[];b(a)})},!0)});return l.then(function(a){return b.concat(a)})}function h(d,e,h){return function t(){if(t.__loaded)return t.__loaded.apply(this,arguments);var l=a.url(d.__options&&d.__options.customPath?d.__options.customPath:c+"/"+e+".js"),k=this,g=arguments;return f().then(function(c){return a.Method.load(b,e,l,function(){return c})}).then(function(a){return(h?
108
+ typeof c),null;c=c.replace(/^[^a-zA-Z0-9]+(?=(https?:\/\/|file:\/\/))/,"").replace(/(:[A-Za-z0-9_-]+){1,2}$/,"").trim();b=c.match(/^((?:https?:\/\/|file:\/\/\/?)[^?#\n]+\/)([^\/?#]+\.js(?:[?#][^\n]*)?)$/i);return b?{src:b[1]+b[2].split(/[?#]/)[0],srcWithQuerystring:b[1]+b[2],path:b[1],file:b[2].split(/[?#]/)[0]}:(console.warn("parseSrc: could not parse src",c),null)};a.currentScriptPath=function(b,c){c=(c=a.currentScript(c))&&c.src||u._Q_currentScript_src||document.currentScript&&document.currentScript.src;
109
+ if(!c)for(var d=document.getElementsByTagName("script"),e=d.length-1;0<=e;--e)if(d[e].src){c=d[e].src;break}return c?c.split("/").slice(0,-1).join("/")+(b?"/"+b:""):a.info&&a.info.baseUrl?a.info.baseUrl:""};a.currentScriptPath();a.ensure=function(b,c){var d=a.getObject(b,u);if(d!==g)a.handle(c,null,[d]);else{var e=a.ensure.loaders[b];if(!e)throw new a.Error("Q.ensure: missing loader for "+b);a.onInit.addOnce(function(){"string"===typeof e?".js"===e.substring(e.length-3)?a.require(e,c):".json"===e.substring(e.length-
110
+ 5)&&a.request(e,function(d,e){a.setObject(b,e);c&&c(e)},{extend:!1,skipNonce:!0}):"function"===typeof e?e(b,c):e instanceof a.Event&&e.addOnce(function(){c&&c(b)},b)})}};a.ensure.loaders={Handlebars:a.currentScriptPath("handlebars-v4.0.10.min.js"),"Q.info.baseUrl":a.onInit,IntersectionObserver:function(b,c){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return"isIntersecting"in window.IntersectionObserverEntry.prototype||
111
+ Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}}),c&&c(b);a.addScript("{{Q}}/js/polyfills/IntersectionObserver.js",function(){c&&c(b)})}};a.Pipe=function(b,c,d,e){if(this===a)throw new a.Error("Q.Pipe: omitted keyword new");this.callbacks=[];this.params={};this.subjects={};this.ignore={};this.finished=!1;this.add.apply(this,arguments);(this.internal=e)&&e.progress&&e.progress(this)};q=a.Pipe.prototype;q.on=function(a,
112
+ c){return this.add([a],1,function(a,b,f){return c.apply(b[f],a[f],f)})};q.add=function(b,c,d){for(var e=null,f=null,h=null,l,g,k,m=0;m<arguments.length;m++){var r=arguments[m];if("function"===typeof r){if(h){l=[];g=[];k=[];var t=this;a.each(e,function(b,c){c=a.getObject(h,c);"Q.Event"===a.typeOf(c)&&(k.push(c.add(t.fill(b))),l.push(b),g.push(c))});r.pipeEvents=g;r.pipeKeys=k;e=l}r.pipeRequires=e;r.pipeRemaining=f;e=f=h=null;this.callbacks.push(r)}else{switch(a.typeOf(r)){case "array":e=r;e.length&&
113
+ "string"!==typeof e[0]&&"number"!==typeof e[0]&&(h=arguments[++m]);break;case "object":e=r;h=arguments[++m];break;case "number":f=r}if(null!=h&&"string"!==typeof h)throw new a.Error("Pipe.prototype.add requires event name after array of objects");}}return this};q.fill=function(b,c){if(!0===c)this.ignore[this.i]=!0;else if("string"===typeof c)this.ignore[c]=!0;else if(a.isArrayLike(c))for(var d=0;d<c.length;++d)this.ignore[c[d]]=!0;var e=this;return function(){e.internal&&e.internal.progress&&e.internal.progress(e,
114
+ b);e.params[b]=Array.prototype.slice.call(arguments);e.subjects[b]=this;e.run(b)}};q.run=function(b){var c,d=this.callbacks,e=a.copy(this.params),f=0,h;var l=0;a:for(;l<d.length;l++)if(!this.ignore[l]&&(this.i=l,c=d[l])){if(c.pipeRequires)for(h=0;h<c.pipeRequires.length;h++)if(!(this.ignore[c.pipeRequires[h]]||c.pipeRequires[h]in e))continue a;c.pipeRemaining&&(--c.pipeRemaining||delete d[l]);var g=c.call(this,this.params,this.subjects,b,c.pipeRequires);if(c.pipeEvents)for(h=0;h<c.pipeEvents.length;h++)c.pipeEvents[h].remove(c.pipeKeys[h]);
115
+ ++f;delete c.pipeEvents;delete c.pipeKeys;if(!1===g)delete d[l];else if(!0===g){this.callbacks=[];this.finished=!0;break}}return f};a.pipe=function(b,c,d,e){return new a.Pipe(b,c,d,e)};a.Cache=a.Cache||{};a.Cache.key=function(b,c){var d,e=[];if(!a.isArrayLike(b))return b;for(d=0;d<b.length;++d)"function"===typeof b[d]?c&&c.push&&c.push(b[d]):("object"!==typeof b[d]||a.isPlainObject(b[d])||b[d]instanceof Array)&&e.push(b[d]);return JSON.stringify(e)};a.Cache.Memory=function(a,c){this._name=a||"mem";
116
+ this._max="number"===typeof c&&1<=c?c:100;this._map={};this._keys=[]};a.Cache.Memory.prototype.get=function(b){b=a.Cache.key(b);return this._map.hasOwnProperty(b)?this._map[b]:null};a.Cache.Memory.prototype.set=function(b,c,d,e){b=a.Cache.key(b);if(!this._map.hasOwnProperty(b)&&(this._keys.push(b),this._keys.length>this._max)){var f=Math.floor(Math.random()*this._keys.length),h=this._keys[f];this._keys.splice(f,1);delete this._map[h]}this._map[b]={subject:d,params:Array.prototype.slice.call(e),cbpos:c,
117
+ ts:Date.now()};return!0};a.Cache.Memory.prototype.remove=function(b){b=a.Cache.key(b);return this._map.hasOwnProperty(b)?(delete this._map[b],b=this._keys.indexOf(b),-1!==b&&this._keys.splice(b,1),!0):!1};a.Cache.Memory.prototype.each=function(a,c,d){if(a&&0!==a.length)for(a=JSON.stringify(a),d=0;d<this._keys.length;d++)b=this._keys[d],0===b.indexOf(a)&&c.call(this,b,this._map[b]);else for(d=0;d<this._keys.length;d++){var b=this._keys[d];c.call(this,b,this._map[b])}};a.Cache.Memory.prototype.removeEach=
118
+ function(a,c){c=c||{throwIfNoIndex:!1};this.each(a,function(a){this.remove(JSON.parse(a))},c);return this};a.Cache.Memory.prototype.clear=function(){this._map={};this._keys=[]};a.Cache.document=function(b,c){return new a.Cache.Memory(b,c)};a.Storage=function(){var a=u.localStorage,c=u.sessionStorage;try{return a.setItem("__qtest","1"),a.removeItem("__qtest"),a}catch(e){}try{return c.setItem("__qtest","1"),c.removeItem("__qtest"),c}catch(e){}var d={};return{getItem:function(a){return d[a]},setItem:function(a,
119
+ b){d[a]=b},removeItem:function(a){delete d[a]}}}();a.getter=function(b,c){var d=function(){function c(b,c,e,f,h){function l(b,c){d.onResult.handle(b,c,k,f,d);a.getter.usingCached=h;e.apply(b,c);d.onExecuted.handle(b,c,k,f,d);a.getter.usingCached=!1}d.prepare?d.prepare.call(d,b,c,l,k):l(b,c)}var l,n=[],k=Array.prototype.slice.call(arguments),m,r,t=new a.Promise(function(a,b){m=a;r=b});var v=a.Cache.key(k,n);if(0===n.length){var A=function(b,c){(b=!d.nonStandardErrorConvention&&a.firstErrorMessage(b,
120
+ c))?r(b):m(this!==g?this:c)};n.push(A);d.callbackIndex!==g?k.splice(d.callbackIndex,0,A):k.push(A)}t.dontCache=!1;d.onCalled.handle.call(this,k,t);var F;a.getter.usingCached=!1;if(d.cache&&!f&&(F=d.cache.get(k))&&(A=F.cbpos,n[A]))return c(F.subject,F.params,n[A],t,!0),t.result=a.getter.CACHED,t;f=!1;e[v]=e[v]||[];e[v].push({callbacks:n,ret:t});if(1<e[v].length)return d.onExecuted.handle.call(this,k,t),t.result=a.getter.WAITING,t;A=[];for(F=l=0;l<k.length;l++)"function"!==typeof k[l]?A.push(k[l]):
121
+ (A.push(function(b,f){return function(){!d.nonStandardErrorConvention&&a.firstErrorMessage(arguments[0],arguments[1])&&(t.dontCache=!0);d.cache&&!t.dontCache&&d.cache.set(k,f,this,arguments);var b=e[v];delete e[v];if(b)for(l=0;l<b.length;l++)try{c(this,arguments,b[l].callbacks[f],b[l].ret,!0)}catch(La){d.dontWarn||console.warn(La)}d.throttle&&d.throttle.throttleNext&&d.throttle.throttleNext(this)}}(n[F],F)),++F);if(!d.throttle)return!1===b.apply(this,A)&&(t.dontCache=!0),t.result=a.getter.REQUESTING,
122
+ d.onExecuted.handle.call(this,k,t),t;if(!d.throttle.throttleTry){var u=d.throttleSize;var q=0;var p=[];var y=[];d.throttle.throttleTry=function(a,b,c,d){++q;if(null===u||q<=u)return!1===b.apply(a,c)&&(d.dontCache=!0),!0;p.push(b);y.push(c);return!1};d.throttle.throttleNext=function(a){0>--q&&console.warn("Q.getter: throttle count is negative. This probably means you passed a callback somewhere it shouldn't have been passed.");p.length&&p.shift().apply(a,y.shift())}}d.throttleSize||(d.throttle.throttleSize=
123
+ function(a){if(a===g)return u;u=a});t.result=d.throttle.throttleTry(this,b,A,t)?a.getter.REQUESTING:a.getter.THROTTLING;d.onExecuted.handle.call(this,k,t);return t};a.extend(d,b,a.getter.options,c);d.original=b;d.onCalled=new a.Event;d.onExecuted=new a.Event;d.onResult=new a.Event;d.all=function(b,c,e){for(var f=[],h=[],l=0,g=b.length;l<g;++l){var n=b[l];f.push(e?l:a.Cache.key(n));n instanceof Array||(n=[n]);h.push(n)}e=a.pipe(f,1,function(d,e){a.handle(c,this,[d,e,b])});l=0;for(g=f.length;l<g;++l)h[l].push(e.fill(f[l])),
124
+ d.apply(this,h[l]);e.run()};var e=d.waiting={};!1===d.cache?d.cache=null:!0===d.cache||d.cache===g?d.cache=a.Cache.document("Q_getter_"+ ++Ca):!d.cache||d.cache.get&&d.cache.set&&d.cache.clear||(d.cache=a.Cache.document("Q_getter_"+ ++Ca,c&&c.cache));d.throttle=d.throttle||null;!0===d.throttle&&(d.throttle="");"string"===typeof d.throttle&&(a.getter.throttles[d.throttle]||(a.getter.throttles[d.throttle]={}),d.throttle=a.getter.throttles[d.throttle]);d.forget=function(){return d.cache?d.cache.remove(Array.prototype.slice.call(arguments)):
125
+ !1};d.forget.each=function(){if(!d.cache)return!1;var a=Array.prototype.slice.call(arguments);d.cache.each(a,d.cache.remove);return!0};var f=!1;d.force=function(){var b=a.Cache.key(arguments);e[b]=[];f=!0;return d.apply(this,arguments)};b.batch&&(d.batch=b.batch);return d};var Ca=0;a.getter.options={cache:!0,throttle:null,throttleSize:100};a.getter.throttles={};a.getter.cache={};a.getter.waiting={};a.getter.CACHED=0;a.getter.REQUESTING=1;a.getter.WAITING=2;a.getter.THROTTLING=3;a.Exception=function(a,
126
+ c){if(c)for(var b in c)this[b]=c[b];this.message=a||""};a.Exception.prototype=Error.prototype;a.Method=function(b,c){a.extend(this,b);this.__options=c||{}};a.Method.stub=new a.Method;a.Method.load=function(b,c,d,e){var f=b[c];return new Promise(function(h,l){a.require(d,function(d){function k(){var d=b[c];if(d===f)return l("Q.Method.define: Must override method '"+c+"'");for(var k in f)k in d||(d[k]=f[k]);f.__loaded=d;h(d);a.Method.onLoad.handle(b,c,b[c],e)}if(d){b.__loaded?b=b.__loaded:b.__shim&&
127
+ b.__shim.__loaded&&(b=b.__shim.__loaded);var g=e?e():[];d.Q_Method_load_executed?k():Promise.resolve(d.apply(b,g)).then(function(a){"function"===typeof a&&(b[c]=a);d.Q_Method_load_executed=!0;k()}).catch(l)}else k()},!0)})};a.Method.onLoad=new a.Event;a.Method.define=function(b,c,d,e){function f(){var b=d?d():[];if(!e||!e.require)return Promise.resolve(b);if(Array.isArray(l))return Promise.resolve(b.concat(l));if(l&&"function"===typeof l.then)return l.then(function(a){return b.concat(a)});var f=a.url(c+
128
+ "/"+e.require+".js");l=new Promise(function(b){a.require(f,function(a){Promise.resolve("function"===typeof a?a():a).then(function(a){l=a=a!==g&&null!==a?[a]:[];b(a)})},!0)});return l.then(function(a){return b.concat(a)})}function h(d,e,h){return function t(){if(t.__loaded)return t.__loaded.apply(this,arguments);var l=a.url(d.__options&&d.__options.customPath?d.__options.customPath:c+"/"+e+".js"),k=this,g=arguments;return f().then(function(c){return a.Method.load(b,e,l,function(){return c})}).then(function(a){return(h?
129
129
  a[h]:a).apply(k,g)})}}c||(c=a.currentScriptPath()+"/"+a.Method.define.options.siblingFolder);var l=null;a.each(b,function(c){if(b.hasOwnProperty(c)&&b[c]instanceof a.Method){var d=b[c];b[c]=d.__shim=h(d,c,null);a.extend(b[c],d);d.__options.isGetter&&(b[c].force=h(d,c,"force"),b[c].forget=h(d,c,"forget"));d.__options.cache&&(b[c].cache=d.__options.cache)}});return b};a.Tool=function(b,c){if(this.activated)return this;this.activated=!0;this.element=b;this.typename="Q.Tool";!0===c&&(c={});if(!this.element.id){var d=
130
130
  a.Tool.beingActivated?a.Tool.beingActivated.prefix:"";if(!d){var e=this.element.parentElement;do if(e.hasClass&&e.hasClass("Q_tool")){d=a.getObject("Q.tool.prefix",e)||a.Tool.calculatePrefix(e.id);break}while(e=e.parentElement)}e=a.Tool.names[this.name]||this.name.toCapitalized();this.element.id=d+e.split("/").join("_")+"-"+a.Tool.nextDefaultId++ +"_tool";a.Tool.nextDefaultId%=1E6}this.prefix=a.Tool.calculatePrefix(this.element.id);this.id=this.prefix.substring(0,this.prefix.length-1);d=null;(d=a.Tool.byId(this.id,
131
131
  this.name))&&console.warn("A "+a.Tool.names[this.name]+" tool with id "+this.id+" is already active",d);e=this.element.className&&this.element.className.split(/\s+/)||[];d=a.calculateKey(this);var f=b.getAttribute("data-"+a.normalize(this.name,"-"));if(f){var h=null;"{"===f[0]?h=JSON.parse(f):(h=f.indexOf(" "),this.id=f.substring(0,h),h=(f=f.substring(h+1))&&JSON.parse(f));h&&a.extend(this.options,a.Tool.options.levels,h,d)}var l;c=c||{};this.options=this.options||{};f=a.normalize.memoized(this.name);
@@ -282,5 +282,5 @@ a.loadUrl(d,{target:"_self",quiet:!0,dontTransformUrl:!0}):location.href=d},"Q")
282
282
  ra,a.cookie("Q_udid",ra));a.getObject("Q.info.cookies.indexOf")&&a.info.cookies.indexOf("Q_dpr")&&a.cookie("Q_dpr",window.devicePixelRatio);for(var d,e=["dashboard","notices"],f=0;f<e.length;++f)if(d=e[f],!0===a.ignoreBackwardCompatibility||!a.ignoreBackwardCompatibility[d])if(d=document.getElementById(d+"_slot")){var g=d.getBoundingClientRect();g.top<window.innerHeight/10?d.removeClass("Q_fixed_bottom").addClass("Q_fixed_top"):g.bottom>9*window.innerHeight/10&&d.removeClass("Q_fixed_top").addClass("Q_fixed_bottom")}if(a.info.languages&&
283
283
  a.info.languages.length){var l=!1;a.each(a.info.languages,function(a,d){d[0]===Fa&&(l=!0)});l||a.Text.setLanguage(a.info.languages[0][0],a.info.languages[0][1])}a.info.text&&(a.Text.loadBeforeInit=a.info.text.loadBeforeInit||a.Text.loadBeforeInit,a.Text.useLocale=a.info.text.useLocale||a.Text.useLocale);a.ensure("Promise")},"Q");if("undefined"!==typeof u.module&&u.module.exports)u.module.exports=a;else if(!p){a.noConflict=function(d){d&&a.extend(Ia,a);u.Q=Ia;return a};var Ia=u.Q;u.Q=a}a.globalNames=
284
284
  Object.keys(u);a.globalNamesAdded=function(){var d=[],e;for(e in u)u.hasOwnProperty(e)&&0>a.globalNames.indexOf(e)&&d.push(e);return d};a.stackTrace=function(){var d={};Error.captureStackTrace?Error.captureStackTrace(d,a.stackTrace):d=Error();return d.stack.replace("Error","Stack Trace")};var ra=location.search.queryField("Q.udid"),qa=location.search.queryField("Q.appId");document.addEventListener("DOMContentLoaded",function(){a.init()});return a}.call(window||this);
285
- module$temp$71_117_126_213_source.default=$jscompDefaultExport$$module$temp$71_117_126_213_source;
285
+ module$temp$24_186_104_254_source.default=$jscompDefaultExport$$module$temp$24_186_104_254_source;
286
286
  export default window.Q;
@@ -1,12 +1 @@
1
- if(!window.$){var c=function(a){this.length=a.length;for(var b=0;b<a.length;b++)this[b]=a[b]};if(!window.jQuery){var fn={each:function(a){for(var b=0;b<this.length;b++)a.call(this[b],b,this[b]);return this},html:function(a){if(a===undefined)return this[0]&&this[0].innerHTML;return this.each(function(){this.innerHTML=a})},text:function(a){if(a===undefined)return this[0]&&this[0].textContent;return this.each(function(){this.textContent=a})},val:function(v){if(!this[0])return;var el=this[0];if(v===undefined)return el.value;
2
- if(el.value!==undefined)this.each(function(){this.value=v});return this},append:function(a){return this.each(function(){var b=this;if(a instanceof c)a.each(function(){b.appendChild(this)});else if(a instanceof Element)b.appendChild(a);else if(typeof a==="string")b.insertAdjacentHTML("beforeend",a)})},prepend:function(a){return this.each(function(){var b=this;if(a instanceof c)a.each(function(){b.insertBefore(this,b.firstChild)});else if(a instanceof Element)b.insertBefore(a,b.firstChild);else if(typeof a===
3
- "string")b.insertAdjacentHTML("afterbegin",a)})},appendTo:function(a){var t=this;if(a instanceof c)a.each(function(){for(var i=0;i<t.length;i++)this.appendChild(t[i])});else if(a instanceof Element)for(var i=0;i<t.length;i++)a.appendChild(t[i]);else if(typeof a==="string")$(a).append(this);return this},prependTo:function(a){var t=this;if(a instanceof c)a.each(function(){for(var i=0;i<t.length;i++)this.insertBefore(t[i],this.firstChild)});else if(a instanceof Element)for(var i=0;i<t.length;i++)a.insertBefore(t[i],
4
- a.firstChild);else if(typeof a==="string")$(a).prepend(this);return this},parents:function(s){var p=[];this.each(function(){for(var x=this.parentElement;x;x=x.parentElement)if(p.indexOf(x)<0)p.push(x)});p=new c(p);return s?p.filter(s):p},parent:function(s){var p=[];this.each(function(){var x=this.parentElement;if(x&&p.indexOf(x)<0)p.push(x)});p=new c(p);return s?p.filter(s):p},children:function(s){var ch=[];this.each(function(){for(var i=0;i<this.children.length;i++)ch.push(this.children[i])});ch=
5
- new c(ch);return s?ch.filter(s):ch},filter:function(sel){var r=[];this.each(function(){if(this.matches(sel))r.push(this)});return new c(r)},eq:function(i){return new c([this[i]])},addClass:function(a){return this.each(function(){this.classList.add(a)})},removeClass:function(a){return this.each(function(){this.classList.remove(a)})},hasClass:function(a){return this[0]?this[0].classList.contains(a):false},attr:function(a,b){if(typeof a==="object"&&a){for(var k in a)this.each(function(){this.setAttribute(k,
6
- a[k])});return this}if(b===undefined)return this[0]&&this[0].getAttribute(a);return this.each(function(){this.setAttribute(a,b)})},css:function(a,b){if(typeof a==="object"&&a){for(var k in a)this.each(function(){this.style[k]=a[k]});return this}if(b===undefined)return this[0]&&getComputedStyle(this[0])[a];return this.each(function(){this.style[a]=b})},scrollTop:function(v){if(!this[0])return 0;if(v===undefined)return this[0].scrollTop;return this.each(function(){this.scrollTop=v})},on:function(a,
7
- b){return this.each(function(){this.addEventListener(a,b)})},off:function(a,b){return this.each(function(){this.removeEventListener(a,b)})},trigger:function(a){return this.each(function(){this.dispatchEvent(new Event(a))})},hide:function(){return this.each(function(){this.style.display="none"})},show:function(){return this.each(function(){this.style.display=""})},toggle:function(state){return this.each(function(){this.style.display=state===undefined?this.style.display==="none"?"":"none":state?"":
8
- "none"})},empty:function(){return this.each(function(){this.innerHTML=""})},remove:function(){return this.each(function(){this.remove()})},find:function(a){return new c(this[0]?this[0].querySelectorAll(a):[])},closest:function(a){return new c(this[0]?[this[0].closest(a)]:[])},height:function(){return this[0]?this[0].offsetHeight:0},width:function(){return this[0]?this[0].offsetWidth:0},outerHeight:function(){if(!this[0])return 0;var s=getComputedStyle(this[0]);return this[0].offsetHeight+parseFloat(s.marginTop||
9
- 0)+parseFloat(s.marginBottom||0)},outerWidth:function(){if(!this[0])return 0;var s=getComputedStyle(this[0]);return this[0].offsetWidth+parseFloat(s.marginLeft||0)+parseFloat(s.marginRight||0)},data:function(a,b){if(!this[0])return;if(!this[0].__data)this[0].__data={};if(b===undefined)return this[0].__data[a];this.each(function(){this.__data[a]=b});return this},is:function(a){if(!this[0])return!1;if(a===":visible")return this[0].offsetParent!==null;return this[0].matches(a)},ready:function(fn){if(this[0]===
10
- document||this[0]===window)if(document.readyState==="complete"||document.readyState==="interactive")setTimeout(fn,0);else document.addEventListener("DOMContentLoaded",fn);return this}};["click","focus","blur","change","submit"].forEach(function(ev){fn[ev]=function(handler){if(handler)return this.on(ev,handler);return this.trigger(ev)}});c.prototype=fn;window.$=window.jQuery=function(a){if(typeof a==="function")return $(document).ready(a);if(typeof a==="string"&&a.trim().startsWith("<")){a=a.trim();
11
- var tagMatch=a.match(/^<([a-z0-9-]+)/i);if(tagMatch){var tag=tagMatch[1];var attrMatch=a.match(/<[^>]+>/);var attrs={};(attrMatch?attrMatch[0]:"").replace(/([a-zA-Z_:][-a-zA-Z0-9_:.]*)="([^"]*)"/g,function(_,key,val){attrs[key]=val});return new c([Q.element?Q.element(tag,attrs):Object.assign(document.createElement(tag),attrs)])}var div=document.createElement("div");div.innerHTML=a;return new c(Array.from(div.children))}if(typeof a==="string")return new c(document.querySelectorAll(a));if(a instanceof
12
- Element||a===window||a===document)return new c([a]);if(a&&a.length)return new c(a);return new c([])};window.$.fn=fn;fn.constructor=c}};
1
+ !function(t,r){"object"==typeof module&&module.exports?module.exports=r():"function"==typeof define&&define.amd?define([],r):t.Handlebars=r()}("undefined"!=typeof self?self:this,function(){"use strict";function t(t){this.string=String(t)}function r(t,r){return Object.prototype.hasOwnProperty.call(t,r)}function e(t,e){for(var n in e)r(e,n)&&(t[n]=e[n]);return t}function n(t){var r={};return t&&"object"==typeof t&&e(r,t),r}function a(r){return null==r?"":r instanceof t?r.toString():String(r).replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[t]))}function i(t,r){if(null!=t){if(!r)return t;for(var e=r.split("."),n=t,a=0;a<e.length;a++){var i=e[a];"["===i[0]&&"]"==i[i.length-1]&&(i=i.slice(1,-1)),n=null!=n?n[i]:void 0}return n}}function s(t){for(var r=[],e="",n=null,a=!1,i=0,s=0;s<t.length;s++){var o=t[s];if(n){if(a){e+=o,a=!1;continue}if("\\"===o){e+=o,a=!0;continue}e+=o,o===n&&(n=null)}else"'"!==o&&'"'!==o?"("!==o?")"!==o?/\s/.test(o)&&0===i?e&&(r.push(e),e=""):e+=o:(i>0&&i--,e+=o):(i++,e+=o):(e+=o,n=o)}return e&&r.push(e),r}function o(t){var r=s(t);return r.length?r[0]:""}function f(t){return"("===t[0]&&")"===t[t.length-1]}function l(t,r,e,n){if(f(t)){var a=t.slice(1,-1).trim(),s=o(a);if(p[s]){var u=c(a.slice(s.length).trim(),r,e,n),h={hash:u.hash,data:n,fn:()=>"",inverse:()=>""};return p[s].apply(r,u.args.concat(h))}return l(a,r,e,n)}return"'"===t[0]&&"'"===t[t.length-1]||'"'===t[0]&&'"'===t[t.length-1]?t.slice(1,-1):function(t,r,e,n){if("this"===t||"."===t)return r;if("@index"===t)return n&&n["@index"];if("@key"===t)return n&&n["@key"];if("@first"===t)return n&&n["@first"];if("@last"===t)return n&&n["@last"];if(0===t.indexOf("@root."))return i(n.root,t.slice(6));if("@root"===t)return n.root;for(var a=0;0===t.indexOf("../");)a++,t=t.slice(3);var s=r;if(a>0){var o=e.length-1-a;o<0&&(o=0),s=e[o]}return i(s,t)}(t,r,e,n)}function c(t,r,e,n){for(var a=s(t),i=[],o={},f=0;f<a.length;f++){var c=a[f],u=c.indexOf("=");if(u>0){var p=c.slice(0,u),h=c.slice(u+1);o[p]=l(h,r,e,n)}else i.push(l(c,r,e,n))}return{args:i,hash:o}}function u(t){for(var r=0,e="var out='';var __stack=[ctx];\n",n=t.split(/(\{\{\{\{[\s\S]+?\}\}\}\}|\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\})/),a=[],i=0;i<n.length;i++){if(N=n[i])if(N.startsWith("{{{{raw}}}}")){var l=t.indexOf("{{{{/raw}}}}",t.indexOf(N)),c=t.slice(t.indexOf(N)+10,l);e+="out+="+JSON.stringify(c)+";\n",i+=2}else if(N.startsWith("{{{")&&N.endsWith("}}}")){var u=N.slice(3,-3).trim();e+="var v=evalMaybePath("+JSON.stringify(u)+",ctx,__stack,data);out+=(v==null?'':v);\n"}else if(N.startsWith("{{")&&N.endsWith("}}")){var p=N.slice(2,-2).trim();if("!"===p[0]||p.startsWith("--"))continue;if("#"===p[0]){var h=o(c=p.slice(1).trim()),v=c.slice(h.length).trim(),g=/\s+as\s+\|([^|]+)\|/.exec(v),d=null;g&&(d=g[1].trim().split(/\s+/),v=v.replace(g[0],""));var x=++r;if(a.push(x),e+="var parsed"+x+"=parseArgs("+JSON.stringify(v)+",ctx,__stack,data);",e+="var outerCtx"+x+"=ctx;var opts"+x+"={hash:parsed"+x+".hash,data:data,fn:function(sub,o){var out='';var d=createFrame(data);if(o&&o.data)assign(d,o.data);var data=d;ctx=sub||outerCtx"+x+";__stack.push(ctx);",d)for(var y=0;y<d.length;y++)e+="ctx["+JSON.stringify(d[y])+"]=sub;";continue}if("else"===p){e+="return out;},inverse:function(sub,o){var out='';ctx=sub||ctx;__stack.push(ctx);\n";continue}if("/"===p[0]){l=p.slice(1).trim();var O=a.pop();e+="return out;}};if(!opts"+O+".inverse)opts"+O+".inverse=function(){return '';};var r=(helpers["+JSON.stringify(l)+"]||helpers.blockHelperMissing).apply(ctx,parsed"+O+".args.concat(opts"+O+"));out+=(r||'');ctx=outerCtx"+O+";__stack.pop();\n";continue}if(p.startsWith("#>")){var S=p.slice(2).trim();e+="if(partials["+JSON.stringify(S)+"])out+=partials["+JSON.stringify(S)+"](ctx,partials,helpers,data,evalMaybePath,parseArgs,escapeExpression,createFrame,assign,firstToken,{fn:function(){return '';}});\n";continue}if(">"===p[0]){var m=s(v=p.slice(1).trim()),b=m.shift(),k=f(b),_=m.join(" ");e+="var pName"+(x=++r)+"="+(k?"evalMaybePath("+JSON.stringify(b)+",ctx,__stack,data)":"'"+b+"'")+";",e+="var pArgs=parseArgs("+JSON.stringify(_)+",ctx,__stack,data);",e+="var pCtx=ctx;if(Object.keys(pArgs.hash).length) pCtx=assign({},ctx),assign(pCtx,pArgs.hash);",e+="if(partials[pName"+x+"])out+=partials[pName"+x+"](pCtx,partials,helpers,data,evalMaybePath,parseArgs,escapeExpression,createFrame,assign,firstToken);\n";continue}var N=o(p);e+="if(helpers["+JSON.stringify(N)+"]) {var p=parseArgs("+JSON.stringify(p.slice(N.length).trim())+",ctx,__stack,data);var opts={hash:p.hash,data:data,fn:function(){return ''},inverse:function(){return ''}};out+=(helpers["+JSON.stringify(N)+"]||helpers.helperMissing).apply(ctx,p.args.concat(opts))||'';} else {var v=evalMaybePath("+JSON.stringify(p)+",ctx,__stack,data);out+=(v==null?'':escapeExpression(v));}\n"}else e+="out+="+JSON.stringify(N)+";\n"}return e+="return out;",new Function("ctx","partials","helpers","data","evalMaybePath","parseArgs","escapeExpression","createFrame","assign","firstToken",e)}t.prototype.toString=function(){return this.string};var p=Object.create(null),h=Object.create(null);return p.if=function(t,r){return t?r.fn(this,{data:r.data}):r.inverse(this,{data:r.data})},p.unless=function(t,r){return t?r.inverse(this,{data:r.data}):r.fn(this,{data:r.data})},p.each=function(t,r){if(!t||Array.isArray(t)&&!t.length)return r.inverse(this);var e,a="",i=0;if(Array.isArray(t))for(i=0;i<t.length;i++)(e=n(r.data))["@index"]=i,e["@first"]=0===i,e["@last"]=i===t.length-1,a+=r.fn(t[i],{data:e});else{var s=Object.keys(t);for(i=0;i<s.length;i++){var o=s[i];(e=n(r.data))["@key"]=o,e["@index"]=i,e["@first"]=0===i,e["@last"]=i===s.length-1,a+=r.fn(t[o],{data:e})}}return a},p.with=(t,r)=>t?r.fn(t):r.inverse(this),p.log=t=>{console&&console.log&&console.log(t)},p.lookup=(t,r)=>t?t[r]:"",p.helperMissing=()=>"",p.blockHelperMissing=(t,r)=>t?r.fn(t):r.inverse(t),{compile:(t,r)=>{return i=u(String(t)),function(t,r){var s=r&&r.data||{};return void 0===s.root&&(s.root=t),i(t||{},h,p,s,l,c,a,n,e,o)};var i},registerHelper:(t,e)=>{if("object"==typeof t)for(var n in t)r(t,n)&&(p[n]=t[n]);else p[t]=e},registerPartial:(t,e)=>{if("object"==typeof t)for(var n in t)r(t,n)&&(h[n]="function"==typeof e?e:u(String(e)));else h[t]="function"==typeof e?e:u(String(e))},helpers:p,partials:h,escapeExpression:a,createFrame:n,SafeString:t}});
@@ -1,10 +1,18 @@
1
- if(!window.$){var c=function(a){this.length=a.length;for(var b=0;b<a.length;b++)this[b]=a[b]};if(!window.jQuery){var fn={each:function(a){for(var b=0;b<this.length;b++)a.call(this[b],b,this[b]);return this},html:function(a){if(a===undefined)return this[0]&&this[0].innerHTML;return this.each(function(){this.innerHTML=a})},append:function(a){return this.each(function(){var b=this;if(a instanceof c)a.each(function(){b.appendChild(this)});else if(a instanceof Element)b.appendChild(a);else if(typeof a===
2
- "string")b.insertAdjacentHTML("beforeend",a)})},prepend:function(a){return this.each(function(){var b=this;if(a instanceof c)a.each(function(){b.insertBefore(this,b.firstChild)});else if(a instanceof Element)b.insertBefore(a,b.firstChild);else if(typeof a==="string")b.insertAdjacentHTML("afterbegin",a)})},appendTo:function(a){var t=this;if(a instanceof c)a.each(function(){for(var i=0;i<t.length;i++)this.appendChild(t[i])});else if(a instanceof Element)for(var i=0;i<t.length;i++)a.appendChild(t[i]);
3
- else if(typeof a==="string")$(a).append(this);return this},prependTo:function(a){var t=this;if(a instanceof c)a.each(function(){for(var i=0;i<t.length;i++)this.insertBefore(t[i],this.firstChild)});else if(a instanceof Element)for(var i=0;i<t.length;i++)a.insertBefore(t[i],a.firstChild);else if(typeof a==="string")$(a).prepend(this);return this},parents:function(s){var p=[];this.each(function(){for(var x=this.parentElement;x;x=x.parentElement)if(p.indexOf(x)<0)p.push(x)});p=new c(p);return s?p.filter(s):
4
- p},parent:function(s){var p=[];this.each(function(){var x=this.parentElement;if(x&&p.indexOf(x)<0)p.push(x)});p=new c(p);return s?p.filter(s):p},children:function(s){var ch=[];this.each(function(){for(var i=0;i<this.children.length;i++)ch.push(this.children[i])});ch=new c(ch);return s?ch.filter(s):ch},addClass:function(a){return this.each(function(){this.classList.add(a)})},removeClass:function(a){return this.each(function(){this.classList.remove(a)})},hasClass:function(a){return this[0]?this[0].classList.contains(a):
5
- false},attr:function(a,b){if(b===undefined)return this[0]&&this[0].getAttribute(a);return this.each(function(){this.setAttribute(a,b)})},css:function(a,b){if(typeof a==="object"&&a){for(var k in a)this.each(function(){this.style[k]=a[k]});return this}if(b===undefined)return this[0]&&getComputedStyle(this[0])[a];return this.each(function(){this.style[a]=b})},scrollTop:function(v){if(!this[0])return 0;if(v===undefined)return this[0].scrollTop;return this.each(function(){this.scrollTop=v})},on:function(a,
6
- b){return this.each(function(){this.addEventListener(a,b)})},off:function(a,b){return this.each(function(){this.removeEventListener(a,b)})},trigger:function(a){return this.each(function(){this.dispatchEvent(new Event(a))})},hide:function(){return this.each(function(){this.style.display="none"})},show:function(){return this.each(function(){this.style.display="block"})},empty:function(){return this.each(function(){this.innerHTML=""})},remove:function(){return this.each(function(){this.remove()})},find:function(a){return new c(this[0]?
7
- this[0].querySelectorAll(a):[])},closest:function(a){return new c(this[0]?[this[0].closest(a)]:[])},height:function(){return this[0]?this[0].offsetHeight:0},width:function(){return this[0]?this[0].offsetWidth:0},outerHeight:function(){if(!this[0])return 0;var s=getComputedStyle(this[0]);return this[0].offsetHeight+parseFloat(s.marginTop||0)+parseFloat(s.marginBottom||0)},outerWidth:function(){if(!this[0])return 0;var s=getComputedStyle(this[0]);return this[0].offsetWidth+parseFloat(s.marginLeft||
8
- 0)+parseFloat(s.marginRight||0)},data:function(a,b){if(!this[0])return;if(!this[0].__data)this[0].__data={};if(b===undefined)return this[0].__data[a];this.each(function(){this.__data[a]=b});return this},is:function(a){if(!this[0])return!1;if(a===":visible")return this[0].offsetParent!==null;return this[0].matches(a)},ready:function(fn){if(this[0]===document||this[0]===window)if(document.readyState==="complete"||document.readyState==="interactive")setTimeout(fn,0);else document.addEventListener("DOMContentLoaded",
9
- fn);return this}};["click","focus","blur","change","submit"].forEach(function(ev){fn[ev]=function(handler){if(handler)return this.on(ev,handler);return this.trigger(ev)}});c.prototype=fn;window.$=window.jQuery=function(a){if(typeof a==="function")return $(document).ready(a);if(typeof a==="string"&&a.trim().startsWith("<")){a=a.trim();var tagMatch=a.match(/^<([a-z0-9-]+)/i);if(tagMatch){var tag=tagMatch[1];var attrMatch=a.match(/<[^>]+>/);var attrs={};(attrMatch?attrMatch[0]:"").replace(/([a-zA-Z_:][-a-zA-Z0-9_:.]*)="([^"]*)"/g,
10
- function(_,key,val){attrs[key]=val});return new c([Q.element?Q.element(tag,attrs):Object.assign(document.createElement(tag),attrs)])}var div=document.createElement("div");div.innerHTML=a;return new c(Array.from(div.children))}if(typeof a==="string")return new c(document.querySelectorAll(a));if(a instanceof Element||a===window||a===document)return new c([a]);if(a&&a.length)return new c(a);return new c([])};window.$.fn=fn;fn.constructor=c}};
1
+ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(a,b,d){if(null==a)throw new TypeError("The 'this' value for String.prototype."+d+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+d+" must not be a regular expression");return a+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;
2
+ $jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,d){a!=Array.prototype&&a!=Object.prototype&&(a[b]=d.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);
3
+ $jscomp.polyfill=function(a,b,d,f){if(b){d=$jscomp.global;a=a.split(".");for(f=0;f<a.length-1;f++){var g=a[f];g in d||(d[g]={});d=d[g]}a=a[a.length-1];f=d[a];b=b(f);b!=f&&null!=b&&$jscomp.defineProperty(d,a,{configurable:!0,writable:!0,value:b})}};
4
+ $jscomp.polyfill("String.prototype.startsWith",function(a){return a?a:function(a,d){var b=$jscomp.checkStringArgs(this,a,"startsWith");a+="";var g=b.length,e=a.length;d=Math.max(0,Math.min(d|0,b.length));for(var h=0;h<e&&d<g;)if(b[d++]!=a[h++])return!1;return h>=e}},"es6","es3");$jscomp.owns=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
5
+ $jscomp.polyfill("Object.assign",function(a){return a?a:function(a,d){for(var b=1;b<arguments.length;b++){var g=arguments[b];if(g)for(var e in g)$jscomp.owns(g,e)&&(a[e]=g[e])}return a}},"es6","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var a=0;return function(b){return $jscomp.SYMBOL_PREFIX+(b||"")+a++}}();
6
+ $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})};
7
+ $jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.polyfill("Array.from",function(a){return a?a:function(a,d,f){$jscomp.initSymbolIterator();d=null!=d?d:function(a){return a};var b=[],e=a[Symbol.iterator];if("function"==typeof e)for(a=e.call(a);!(e=a.next()).done;)b.push(d.call(f,e.value));else{e=a.length;for(var h=0;h<e;h++)b.push(d.call(f,a[h]))}return b}},"es6","es3");
8
+ if(!window.$){var c=function(a){this.length=a.length;for(var b=0;b<a.length;b++)this[b]=a[b]};if(!window.jQuery){var fn={each:function(a){for(var b=0;b<this.length;b++)a.call(this[b],b,this[b]);return this},html:function(a){return void 0===a?this[0]&&this[0].innerHTML:this.each(function(){this.innerHTML=a})},text:function(a){return void 0===a?this[0]&&this[0].textContent:this.each(function(){this.textContent=a})},val:function(a){if(this[0]){var b=this[0];if(void 0===a)return b.value;void 0!==b.value&&
9
+ this.each(function(){this.value=a});return this}},append:function(a){return this.each(function(){var b=this;a instanceof c?a.each(function(){b.appendChild(this)}):a instanceof Element?b.appendChild(a):"string"===typeof a&&b.insertAdjacentHTML("beforeend",a)})},prepend:function(a){return this.each(function(){var b=this;a instanceof c?a.each(function(){b.insertBefore(this,b.firstChild)}):a instanceof Element?b.insertBefore(a,b.firstChild):"string"===typeof a&&b.insertAdjacentHTML("afterbegin",a)})},
10
+ appendTo:function(a){var b=this;if(a instanceof c)a.each(function(){for(var a=0;a<b.length;a++)this.appendChild(b[a])});else if(a instanceof Element)for(var d=0;d<b.length;d++)a.appendChild(b[d]);else"string"===typeof a&&$(a).append(this);return this},prependTo:function(a){var b=this;if(a instanceof c)a.each(function(){for(var a=0;a<b.length;a++)this.insertBefore(b[a],this.firstChild)});else if(a instanceof Element)for(var d=0;d<b.length;d++)a.insertBefore(b[d],a.firstChild);else"string"===typeof a&&
11
+ $(a).prepend(this);return this},parents:function(a){var b=[];this.each(function(){for(var a=this.parentElement;a;a=a.parentElement)0>b.indexOf(a)&&b.push(a)});b=new c(b);return a?b.filter(a):b},parent:function(a){var b=[];this.each(function(){var a=this.parentElement;a&&0>b.indexOf(a)&&b.push(a)});b=new c(b);return a?b.filter(a):b},children:function(a){var b=[];this.each(function(){for(var a=0;a<this.children.length;a++)b.push(this.children[a])});b=new c(b);return a?b.filter(a):b},filter:function(a){var b=
12
+ [];this.each(function(){this.matches(a)&&b.push(this)});return new c(b)},eq:function(a){return new c([this[a]])},addClass:function(a){return this.each(function(){this.classList.add(a)})},removeClass:function(a){return this.each(function(){this.classList.remove(a)})},hasClass:function(a){return this[0]?this[0].classList.contains(a):!1},attr:function(a,b){if("object"===typeof a&&a){for(var d in a)this.each(function(){this.setAttribute(d,a[d])});return this}return void 0===b?this[0]&&this[0].getAttribute(a):
13
+ this.each(function(){this.setAttribute(a,b)})},css:function(a,b){if("object"===typeof a&&a){for(var d in a)this.each(function(){this.style[d]=a[d]});return this}return void 0===b?this[0]&&getComputedStyle(this[0])[a]:this.each(function(){this.style[a]=b})},scrollTop:function(a){return this[0]?void 0===a?this[0].scrollTop:this.each(function(){this.scrollTop=a}):0},on:function(a,b){return this.each(function(){this.addEventListener(a,b)})},off:function(a,b){return this.each(function(){this.removeEventListener(a,
14
+ b)})},trigger:function(a){return this.each(function(){this.dispatchEvent(new Event(a))})},hide:function(){return this.each(function(){this.style.display="none"})},show:function(){return this.each(function(){this.style.display="block"})},toggle:function(a){return this.each(function(){this.style.display=void 0===a?"none"===this.style.display?"":"none":a?"":"none"})},empty:function(){return this.each(function(){this.innerHTML=""})},remove:function(){return this.each(function(){this.remove()})},find:function(a){return new c(this[0]?
15
+ this[0].querySelectorAll(a):[])},closest:function(a){return new c(this[0]?[this[0].closest(a)]:[])},height:function(){return this[0]?this[0].offsetHeight:0},width:function(){return this[0]?this[0].offsetWidth:0},outerHeight:function(){if(!this[0])return 0;var a=getComputedStyle(this[0]);return this[0].offsetHeight+parseFloat(a.marginTop||0)+parseFloat(a.marginBottom||0)},outerWidth:function(){if(!this[0])return 0;var a=getComputedStyle(this[0]);return this[0].offsetWidth+parseFloat(a.marginLeft||
16
+ 0)+parseFloat(a.marginRight||0)},data:function(a,b){if(this[0]){this[0].__data||(this[0].__data={});if(void 0===b)return this[0].__data[a];this.each(function(){this.__data[a]=b});return this}},is:function(a){return this[0]?":visible"===a?null!==this[0].offsetParent:this[0].matches(a):!1},ready:function(a){if(this[0]===document||this[0]===window)"complete"===document.readyState||"interactive"===document.readyState?setTimeout(a,0):document.addEventListener("DOMContentLoaded",a);return this}};["click",
17
+ "focus","blur","change","submit"].forEach(function(a){fn[a]=function(b){return b?this.on(a,b):this.trigger(a)}});c.prototype=fn;window.$=window.jQuery=function(a){if("function"===typeof a)return $(document).ready(a);if("string"===typeof a&&a.trim().startsWith("<")){a=a.trim();var b=a.match(/^<([a-z0-9-]+)/i);if(b){b=b[1];a=a.match(/<[^>]+>/);var d={};(a?a[0]:"").replace(/([a-zA-Z_:][-a-zA-Z0-9_:.]*)="([^"]*)"/g,function(a,b,e){d[b]=e});return new c([Q.element?Q.element(b,d):Object.assign(document.createElement(b),
18
+ d)])}b=document.createElement("div");b.innerHTML=a;return new c(Array.from(b.children))}return"string"===typeof a?new c(document.querySelectorAll(a)):a instanceof Element||a===window||a===document?new c([a]):a&&a.length?new c(a):new c([])};window.$.fn=fn;fn.constructor=c}};
package/package.json CHANGED
@@ -1,12 +1,26 @@
1
1
  {
2
2
  "name": "@qbix/q.js",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "Q.js, the Qbix JavaScript framework",
5
-
6
5
  "main": "dist/Q.min.js",
7
6
  "files": [
8
7
  "dist/"
9
8
  ],
10
9
  "author": "Qbix Inc.",
11
- "license": "MIT"
12
- }
10
+ "license": "MIT",
11
+ "scripts": {
12
+ "test": "node test/metrics.test.js"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/Qbix/Q.js.git"
17
+ },
18
+ "keywords": [],
19
+ "bugs": {
20
+ "url": "https://github.com/Qbix/Q.js/issues"
21
+ },
22
+ "homepage": "https://github.com/Qbix/Q.js#readme",
23
+ "devDependencies": {
24
+ "jsdom": "^30.0.1"
25
+ }
26
+ }