From d9fc406964fc421680a400241b6773b4a4fc6e29 Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Sat, 11 Jan 2025 14:07:35 +0800 Subject: [PATCH] build creator --- .../steedos-base/client/helpers.coffee | 2 +- .../programs/server/packages/modules.js | 26 +++++++++---------- ...4c6b2113df04dffbd3c052917e9d823b8a5f41.js} | 6 ++--- ...df04dffbd3c052917e9d823b8a5f41.stats.json} | 10 +++---- .../programs/web.browser.legacy/program.json | 18 ++++++------- ...4c6b2113df04dffbd3c052917e9d823b8a5f41.js} | 6 ++--- ...df04dffbd3c052917e9d823b8a5f41.stats.json} | 10 +++---- .../bundle/programs/web.browser/program.json | 18 ++++++------- ...a7eea3f64828f2d483c6fb70c92e4dbb669d17.js} | 6 ++--- ...4828f2d483c6fb70c92e4dbb669d17.stats.json} | 10 +++---- .../bundle/programs/web.cordova/program.json | 18 ++++++------- server/bundle/star.json | 2 +- 12 files changed, 66 insertions(+), 66 deletions(-) rename server/bundle/programs/web.browser.legacy/{b801ddf37cac3a7b606141aca04f4fb603fa3912.js => e94c6b2113df04dffbd3c052917e9d823b8a5f41.js} (99%) rename server/bundle/programs/web.browser.legacy/{b801ddf37cac3a7b606141aca04f4fb603fa3912.stats.json => e94c6b2113df04dffbd3c052917e9d823b8a5f41.stats.json} (99%) rename server/bundle/programs/web.browser/{b801ddf37cac3a7b606141aca04f4fb603fa3912.js => e94c6b2113df04dffbd3c052917e9d823b8a5f41.js} (99%) rename server/bundle/programs/web.browser/{b801ddf37cac3a7b606141aca04f4fb603fa3912.stats.json => e94c6b2113df04dffbd3c052917e9d823b8a5f41.stats.json} (99%) rename server/bundle/programs/web.cordova/{226a69a15bad016d056af85ba600a71867f931e5.js => 55a7eea3f64828f2d483c6fb70c92e4dbb669d17.js} (99%) rename server/bundle/programs/web.cordova/{226a69a15bad016d056af85ba600a71867f931e5.stats.json => 55a7eea3f64828f2d483c6fb70c92e4dbb669d17.stats.json} (99%) diff --git a/creator/packages/steedos-base/client/helpers.coffee b/creator/packages/steedos-base/client/helpers.coffee index 9368e9a8f1..1908361f0a 100644 --- a/creator/packages/steedos-base/client/helpers.coffee +++ b/creator/packages/steedos-base/client/helpers.coffee @@ -823,7 +823,7 @@ TemplateHelpers = url = url + '?token=' + token return url - generateShortStringFromUrl = (url, length = 6) -> + generateShortStringFromUrl: (url, length = 6) -> # 简单哈希函数 hash = 0 for i in [0...url.length] diff --git a/server/bundle/programs/server/packages/modules.js b/server/bundle/programs/server/packages/modules.js index 5e52b0eaf6..870ec056a1 100644 --- a/server/bundle/programs/server/packages/modules.js +++ b/server/bundle/programs/server/packages/modules.js @@ -1496,7 +1496,7 @@ module.useNode(); // module.exports = { "name": "@steedos/objectql", - "version": "2.6.24", + "version": "2.6.32", "main": "lib/index.js" }; @@ -1523,7 +1523,7 @@ module.useNode(); // module.exports = { "name": "@steedos/i18n", - "version": "2.6.24", + "version": "2.6.32", "main": "lib/index.js" }; @@ -1550,7 +1550,7 @@ module.useNode(); // module.exports = { "name": "@steedos/core", - "version": "2.6.24", + "version": "2.6.32", "main": "lib/index.js" }; @@ -1577,7 +1577,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-meteor-package-loader", - "version": "2.6.24", + "version": "2.6.32", "main": "index.js" }; @@ -1604,7 +1604,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-api", - "version": "2.6.24", + "version": "2.6.32", "main": "index.js" }; @@ -1631,7 +1631,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-metadata-server", - "version": "2.6.24", + "version": "2.6.32", "main": "index.js" }; @@ -1658,7 +1658,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-package-registry", - "version": "2.6.24", + "version": "2.6.32", "main": "package.service.js" }; @@ -1685,7 +1685,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-objectql", - "version": "2.6.24", + "version": "2.6.32", "main": "package.service.js" }; @@ -1712,7 +1712,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-ui", - "version": "2.6.24", + "version": "2.6.32", "main": "package.service.js" }; @@ -1739,7 +1739,7 @@ module.useNode(); // module.exports = { "name": "@steedos/service-pages", - "version": "2.6.24", + "version": "2.6.32", "main": "package.service.js" }; @@ -1766,7 +1766,7 @@ module.useNode(); // module.exports = { "name": "@steedos/router", - "version": "2.6.24", + "version": "2.6.32", "main": "lib/index.js" }; @@ -1793,7 +1793,7 @@ module.useNode(); // module.exports = { "name": "@steedos/auth", - "version": "2.6.24", + "version": "2.6.32", "main": "lib/index.js" }; @@ -1820,7 +1820,7 @@ module.useNode(); // module.exports = { "name": "@steedos/workflow", - "version": "2.6.24", + "version": "2.6.32", "main": "index.js" }; diff --git a/server/bundle/programs/web.browser.legacy/b801ddf37cac3a7b606141aca04f4fb603fa3912.js b/server/bundle/programs/web.browser.legacy/e94c6b2113df04dffbd3c052917e9d823b8a5f41.js similarity index 99% rename from server/bundle/programs/web.browser.legacy/b801ddf37cac3a7b606141aca04f4fb603fa3912.js rename to server/bundle/programs/web.browser.legacy/e94c6b2113df04dffbd3c052917e9d823b8a5f41.js index c177387280..dbeb2aa141 100644 --- a/server/bundle/programs/web.browser.legacy/b801ddf37cac3a7b606141aca04f4fb603fa3912.js +++ b/server/bundle/programs/web.browser.legacy/e94c6b2113df04dffbd3c052917e9d823b8a5f41.js @@ -68,7 +68,7 @@ object-assign * Copyright 2011-2019 Twitter, Inc. * Licensed under the MIT license */ -if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this,i;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(r).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};function r(t){return this.each((function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var s=e(document).find(i);function o(){s.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),s.length||(s=r.closest(".alert")),s.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(s.removeClass("in"),e.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o())};var i=e.fn.alert;e.fn.alert=r,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.button"),s="object"==typeof n&&n;i||r.data("bs.button",i=new t(this,s)),"toggle"==n?i.toggle():n&&i.setState(n)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",s=r.data();t+="Text",null==s.resetText&&r.data("resetText",r[i]()),setTimeout(e.proxy((function(){r[i](null==s[t]?this.options[t]:s[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.carousel"),s=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),o="string"==typeof n?n:s.slide;i||r.data("bs.carousel",i=new t(this,s)),"number"==typeof n?i.to(n):o?i[o]():s.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),r;if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i,s=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(s)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),s=r||this.getItemForDirection(n,i),o=this.interval,a="next"==n?"left":"right",u=this;if(s.hasClass("active"))return this.sliding=!1;var l=s[0],c=e.Event("slide.bs.carousel",{relatedTarget:l,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=e(this.$indicators.children()[this.getItemIndex(s)]);f&&f.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:l,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(s.addClass(n),"object"==typeof s&&s.length&&s[0].offsetWidth,i.addClass(a),s.addClass(a),i.one("bsTransitionEnd",(function(){s.removeClass([n,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(h)),o&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var i=function(t){var r=e(this),i=r.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var s=r.attr("data-target")||i,o=e(document).find(s);if(o.hasClass("carousel")){var a=e.extend({},o.data(),r.data()),u=r.attr("data-slide-to");u&&(a.interval=!1),n.call(o,a),u&&o.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each((function(){var r=e(this),i=r.data("bs.collapse"),s=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&s.toggle&&/show|hide/.test(n)&&(s.toggle=!1),i||r.data("bs.collapse",i=new t(this,s)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var s=e.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var u=e.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[o](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var s=n(i),o,a=s.data("bs.collapse")?"toggle":i.data();r.call(s,a)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function s(r){r&&3===r.which||(e(t).remove(),e(n).each((function(){var t=e(this),n=i(t),s={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target)||(n.trigger(r=e.Event("hide.bs.dropdown",s)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",s)))))})))}function o(t){return this.each((function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var r=i(n),o=r.hasClass("open");if(s(),!o){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",s);var a={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var r=e(this);if(t.preventDefault(),t.stopPropagation(),!r.is(".disabled, :disabled")){var s=i(r),o=s.hasClass("open");if(!o&&27!=t.which||o&&27==t.which)return 27==t.which&&s.find(n).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",u=s.find(".dropdown-menu"+a);if(u.length){var l=u.index(t.target);38==t.which&&l>0&&l--,40==t.which&&ldocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},l.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),s=i.length;s--;){var o=i[s];if("click"==o)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",u="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(n){var r=this.$element.data();for(var i in r)r.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete r[i];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=u(n.template,n.whiteList,n.sanitizeFn)),n},l.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,r){n[e]!=r&&(t[e]=r)})),t},l.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},l.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},l.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,i=this.tip(),s=this.getUID(this.type);this.setContent(),i.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&i.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,u=a.test(o);u&&(o=o.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),f=i[0].offsetWidth,h=i[0].offsetHeight;if(u){var d=o,p=this.getPosition(this.$viewport);o="bottom"==o&&c.bottom+h>p.bottom?"top":"top"==o&&c.top-hp.width?"left":"left"==o&&c.left-fo.top+o.height&&(i.top=o.top+o.height-u)}else{var l=t.left-s,c=t.left+s+n;lo.right&&(i.left=o.left+o.width-c)}return i},l.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},l.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},l.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},l.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var f=e.fn.tooltip;e.fn.tooltip=c,e.fn.tooltip.Constructor=l,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=f,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function n(n){return this.each((function(){var r=e(this),i=r.data("bs.popover"),s="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new t(this,s)),"string"==typeof n&&i[n]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=e.fn.popover;e.fn.popover=n,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=r,this}}(jQuery),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var r=e(this),i=r.data("bs.scrollspy"),s="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new t(this,s)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),s=/^#./.test(i)&&e(i);return s&&s.length&&s.is(":visible")&&[[s[n]().top+r,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),n=this.options.offset+t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(this.scrollHeight!=t&&this.refresh(),e>=n)return s!=(o=i[i.length-1])&&this.activate(o);if(s&&e=r[o]&&(void 0===r[o+1]||e .active"),o=i&&e.support.transition&&(s.length&&s.hasClass("fade")||!!r.find("> .fade").length);function a(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}s.length&&o?s.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),s.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var i=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.affix"),s="object"==typeof n&&n;i||r.data("bs.affix",i=new t(this,s)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop(),s=this.$element.offset(),o=this.$target.height();if(null!=n&&"top"==this.affixed)return i=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,s=r.bottom,o=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(s=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof s&&(s=r.bottom(this.$element));var a=this.getState(o,n,i,s);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),l=e.Event(u+".bs.affix");if(this.$element.trigger(l),l.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:o-n-s})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,n,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,n,e,r,i){if(process.fiberLib)e.exports=process.fiberLib;else{var s=t("fs"),o=t("path"),a=t("detect-libc");Math.random();var u=o.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+a.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(c){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(c.stack||c.message||c),new Error("Missing binary. See message above.")}l(e.exports)}function l(e){try{var t=process.binding("async_wrap"),n;if(t.asyncIdStackSize instanceof Function)n=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");f=t.constants.kStackLength,n=function(){return t.async_hook_fields[f]}}var r=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,s,o;if(!r||!i)throw new Error("Push/pop do not exist");s=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,o=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var a=t.async_id_fields||t.async_uid_fields;function u(){for(var e=n(),t=new Array(e);e>0;--e){var i=a[s];t[e-1]={asyncId:i,triggerId:a[o]},r(i)}return t}function l(e){for(var t=0;t0)i.changeLanguage(e,r);else if(0!=a[u]){a[u]=0;var l=new XMLHttpRequest;l.overrideMimeType("application/json"),l.open("GET",u,!1),l.send(null),200===l.status?a[u]=1:a[u]=-1,n.addResourceBundle(e,o,JSON.parse(l.response)||{}),i.changeLanguage(e,r)}};n.changeLanguage=p;var g=function(e,t,n){return i.format(e,t,n)};n.format=g;var m=function(){return i.languages};n.getLanguages=m;var b=function(e,t){return i.loadLanguages(e,t)};n.loadLanguages=b;var v=function(e,t){return i.loadNamespaces(e,t)};n.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};n.on=y;var _=function(e,t){return i.off(e,t)};n.off=_,r.__exportStar(t("./i18n/i18n"),n),r.__exportStar(t("./i18n/i18n.app"),n),r.__exportStar(t("./translations"),n)},i18n:{"i18n.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fallbackKeys=n.getObjectI18nTemplate=n.translationI18nObjects=n.addObjectsI18n=n.translationI18nObject=void 0;var r=t("../index"),i=t("underscore"),s=t("clone"),o="_",a="base",u="core",l="translation",c=function(e,t){var n={lng:t,ns:l};if((0,r.exists)(e,n))return(0,r._t)(e,n)},f=function(e){return"".concat(e,"__object")},h=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},d=function(e,t){var n=h(e,t);return"".concat(n).concat("_","inlineHelpText")},p=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(n)},g=function(e,t,n){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(n)},m=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},b=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,n){var r=f(t);return c(r,e)||n||""},_=function(e,t,n,r,i){var s=h(t,n),o=c(s,e);if(!o){var a=v(i);a&&"base"!=t&&"core"!=t&&(o=_(e,a,n,r,i))}return o||r||""},w=function(e,t,n,r,i){var s=d(t,n),o=c(s,e);if(!o){var a=v(i);a&&"base"!=t&&"core"!=t&&(o=w(e,a,n,r,i))}return o||r||""},j=function(e,t,n,r){var i=p(t,n);return c(i,e)||r||""},k=function(e,t,n,r,i,s){var o=g(t,n,r),a=c(o,e);if(!a){var u=v(s);u&&"base"!=t&&"core"!=t&&(a=k(e,u,n,r,i,s))}return a||i||""},x=function(e,t,n,r,i){var s=m(t,n),o=c(s,e);if(!o){var a=v(i);a&&"base"!=t&&"core"!=t&&(o=x(e,a,n,r,i))}return o||r||""},S=function(e,t,n,r,i){var s=b(t,n),o=c(s,e);if(!o){var a=v(i);a&&"base"!=t&&"core"!=t&&(o=S(e,a,n,r,i))}return o||r||""},D=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},A=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(D(e))}))):n.push(D(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},E=function(e,t,n){n.label=y(e,t,n.label),i.each(n.fields,(function(r,s){if(r.label=_(e,t,s,r.label,n.datasource),r.inlineHelpText&&(r.inlineHelpText=w(e,t,s,r.inlineHelpText,n.datasource)),r.group&&(r.group=j(e,t,r.group,r.group)),r.options){var o=[];i.each(r.options,(function(r){if(i.has(r,"value")){var a=k(e,t,s,r.value,r.label,n.datasource);o.push(i.extend({},r,{label:a}))}else o.push(r)})),r.options=o}})),i.each(n.actions,(function(r,i){r.label=x(e,t,i,r.label,n.datasource)})),i.each(n.list_views,(function(r,i){r.label=S(e,t,i,r.label,n.datasource)}))};n.translationI18nObject=E;var C=function(e){i.each(e,(function(e){(0,r.addResourceBundle)(e.lng,l,e.data,!0,!0)}))};n.addObjectsI18n=C;var M=function(e,t){i.each(t,(function(t,r){(0,n.translationI18nObject)(e,r,t)}))};n.translationI18nObjects=M;var T=function(e,t,n){var r=s(n);A(r);var o={};return o[f(t)]=y(e,t,r.label),i.each(r.fields,(function(n,s){o[h(t,s)]=_(e,t,s,n.label),n.inlineHelpText&&(o[d(t,s)]=w(e,t,s,n.inlineHelpText,r.datasource)),n.group&&(o[p(t,n.group)]=j(e,t,n.group,n.group)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(o[g(t,s,n.value)]=k(e,t,s,n.value,n.label))}))})),i.each(r.actions,(function(n,r){o[m(t,r)]=x(e,t,r,n.label)})),i.each(r.list_views,(function(n,r){o[b(t,r)]=S(e,t,r,n.label)})),o};n.getObjectI18nTemplate=T,n.fallbackKeys={getObjectLabelKey:f,getObjectFieldLabelKey:h,getObjectFieldInlineHelpTextLabelKey:d,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:g,getObjectActionLabelKey:m,getObjectListviewLabelKey:b}},"i18n.app.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.appFallbackKeys=n.getAppI18nTemplate=n.translationI18nApps=n.translationI18nMenus=void 0;var r=t("../index"),i=t("underscore"),s=t("clone"),o="translation",a="_",u=function(e,t){var n={lng:t,ns:o};if((0,r.exists)(e,n))return(0,r._t)(e,n)},l=function(e){return"app".concat("_").concat(e).concat("_","name")},c=function(e){return"app".concat("_").concat(e).concat("_","description")},f=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(n)},h=function(e){return"menu".concat("_").concat(e)},d=function(e){return"tab".concat("_").concat(e)},p=function(e,t,n){var r=l(t);return u(r,e)||n||""},g=function(e,t,n){var r=c(t);return u(r,e)||n||""},m=function(e,t,n){var r=h(t);return u(r,e)||n||""},b=function(e,t,r){r.label=p(e,t,r.label||r.name),r.description=g(e,t,r.description),(0,n.translationI18nMenus)(e,r.admin_menus)},v=function(e,t){i.each(t,(function(t){var n=m(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,n){b(e,n,t)}))};n.translationI18nApps=y;var _=function(e,t,n){var r=s(n),o={};return o[l(t)]=p(e,t,r.label||r.name),o[c(t)]=g(e,t,r.description),i.each(r.admin_menus,(function(t){o[h(t._id)]=m(e,t._id,t.label||t.name)})),o};n.getAppI18nTemplate=_,n.appFallbackKeys={getAppLabelKey:l,getAppDescriptionKey:c,getAppGroupKey:f,getMenuLabelKey:h,getTabKey:d}}},translations:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SteedosTranslationPrefixKeys=n.convertObject=void 0;var r=t("tslib"),i=t("underscore");r.__exportStar(t("./objectTranslation"),n),r.__exportStar(t("./translation"),n),r.__exportStar(t("./templates/objectTranslation"),n),r.__exportStar(t("./templates/translation"),n);var s=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},o=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(s(e))}))):n.push(s(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?n.push(s(e)):n.push(e)})),e.options=n}catch(r){console.error("Creator.convertFieldsOptions",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},a;n.convertObject=o,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(a=n.SteedosTranslationPrefixKeys||(n.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,n,e,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addObjectsTranslation=n.getObjectTranslationTemplate=n.translationObjects=n.translationObject=n.translationObjectLabel=void 0;var i=t("underscore"),s=t("./"),o=t("../index"),a=t("./index"),u=t("../i18n/i18n"),l=t("lodash"),c=t("crypto"),f,h=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function d(e){var t;return c.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(d(JSON.stringify(t)))},g=t("clone"),m=".",b="base",v="core",y="translation",_="object",w="field",j="listview",k="action",x=function(e,t){var n={lng:t,ns:y,keySeparator:!1};if((0,o.exists)(e,n))return(0,o._t)(e,n)},S=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},D=function(e){switch(e){case"object":return s.SteedosTranslationPrefixKeys.Object;case"field":return s.SteedosTranslationPrefixKeys.Field;case"listview":return s.SteedosTranslationPrefixKeys.Listview;case"action":return s.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},A=function(e){var t;return[D(),e].join(".")},E=function(e){var t;return[D("object"),e,"label"].join(".")},C=function(e){var t;return[D("object"),e,"description"].join(".")},M=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"label"].join(".")},T=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"help"].join(".")},O=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"description"].join(".")},P=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),r;return[D("field"),e,"group",n].join(".")},I=function(e,t,n){var r;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"options",n].join(".")},B=function(e,t){var n;return[D("action"),e,t].join(".")},R=function(e,t){var n;return[D("listview"),e,t].join(".")},F=function(e,t,n){var r,i=[E(t)],s=u.fallbackKeys.getObjectLabelKey(t);return s&&i.push(s),x(i,e)||n||""};n.translationObjectLabel=F;var N=function(e,t,n){var r=C(t);return x(r,e)||n||""},L=function(e,t,n,r,i,s){var o,a=[M(t,n)],l=u.fallbackKeys.getObjectFieldLabelKey(t,n);l&&a.push(l);var c=x(a,e);if(1!=s&&!c){var f=S(i);f&&"base"!=t&&"core"!=t&&(c=L(e,f,n,r,i))}return c||r||""},z=function(e,t,n,r,i,s){var o,a=[T(t,n)],l=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,n);l&&a.push(l);var c=x(a,e);if(1!=s&&!c){var f=S(i);f&&"base"!=t&&"core"!=t&&(c=z(e,f,n,r,i))}return c||r||""},U=function(e,t,n,r,i,s){var o=O(t,n),a,u=x([o],e);if(1!=s&&!u){var l=S(i);l&&"base"!=t&&"core"!=t&&(u=U(e,l,n,r,i))}return u||r||""},q=function(e,t,n,r,i,s){var o,a=[P(t,n)],l=u.fallbackKeys.getObjectFieldGroupKey(t,n);l&&a.push(l);var c=x(a,e);if(1!=s&&!c){var f=S(i);f&&"base"!=t&&"core"!=t&&(c=q(e,f,n,r,i))}return c||r||""},$=function(e,t,n,r,i,s,o){var a,l=[I(t,n,r)],c=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,n,r);c&&l.push(c);var f=x(l,e);if(1!=o&&!f){var h=S(s);h&&"base"!=t&&"core"!=t&&(f=$(e,h,n,r,i,s))}return f||i||""},W=function(e,t,n,r,i,s){var o,a=[B(t,n)],l=u.fallbackKeys.getObjectActionLabelKey(t,n);l&&a.push(l);var c=x(a,e);if(1!=s&&!c){var f=S(i);f&&"base"!=t&&"core"!=t&&(c=W(e,f,n,r,i))}return c||r||""},H=function(e,t,n,r,i,s){var o,a=[R(t,n)],l=u.fallbackKeys.getObjectListviewLabelKey(t,n);l&&a.push(l);var c=x(a,e);if(1!=s&&!c){var f=S(i);f&&"base"!=t&&"core"!=t&&(c=H(e,f,n,r,i))}return c||r||""},Y=function(e,t,r,s,o){void 0===o&&(o=!1);var u=p(e,r);"test_obj_layout1"===t&&console.log("translationObject",t,u);var c=h.get(u);if(c)return Object.assign(r,(0,l.cloneDeep)(c));s&&(0,a.convertObject)(r),r.label=(0,n.translationObjectLabel)(e,t,r.label),r.description=N(e,t,r.description),i.each(r.fields,(function(n,s){if(n.label=L(e,t,s,n.label,r.datasource,o),n.inlineHelpText&&(n.inlineHelpText=z(e,t,s,n.inlineHelpText,r.datasource,o)),n.group&&(n.group=q(e,t,n.group,n.group,r.datasource,o)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var u=$(e,t,s,n.value,n.label,r.datasource,o);a.push(i.extend({},n,{label:u}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=W(e,t,i,n.label,r.datasource,o)})),i.each(r.list_views,(function(n,i){n.label=H(e,t,i,n.label,r.datasource,o)})),h.set(u,(0,l.cloneDeep)(r))};n.translationObject=Y;var V=function(e,t){i.each(t,(function(t,r){(0,n.translationObject)(e,r,t)}))};n.translationObjects=V;var G=function(e,t,r){var s=g(r);(0,a.convertObject)(s);var o={};return o[E(t)]=(0,n.translationObjectLabel)(e,t,s.label),o[C(t)]=N(e,t,s.description),i.each(s.fields,(function(n,r){o[M(t,r)]=L(e,t,r,n.label),n.inlineHelpText&&(o[T(t,r)]=z(e,t,r,n.inlineHelpText,s.datasource)),n.description&&(o[O(t,r)]=U(e,t,r,n.description,s.datasource)),n.group&&(o[P(t,n.group)]=q(e,t,n.group,n.group,s.datasource)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(o[I(t,r,n.value)]=$(e,t,r,n.value,n.label))}))})),i.each(s.actions,(function(n,r){o[B(t,r)]=W(e,t,r,n.label)})),i.each(s.list_views,(function(n,r){o[R(t,r)]=H(e,t,r,n.label)})),o};function K(e,t){var n=g(e);(0,a.convertObject)(n);var r={},s=n.name;return s||console.error("Error: Invalid objectTranslation:"+t),r[E(s)]=n.label,r[C(s)]=n.description,i.each(n.fields,(function(e,t){r[M(s,t)]=e.label,e.help&&(r[T(s,t)]=e.help),e.description&&(r[O(s,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(r[I(s,t,e.value)]=e.label)}))})),i.each(n.groups,(function(e,t){r[P(s,t)]=e})),i.each(n.actions,(function(e,t){r[B(s,t)]=e.label})),i.each(n.listviews,(function(e,t){r[R(s,t)]=e.label})),i.each(n.CustomLabels,(function(e,t){r[A(t)]=e})),r}n.getObjectTranslationTemplate=G;var X=function(e){i.each(e,(function(e){var t=K(e.data,e.__filename);(0,o.addResourceBundle)(e.lng,y,t,!0,!0)}))};n.addObjectsTranslation=X},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addTranslations=n.convertTranslation=n.convertTranslationData=n.getAppTranslationTemplate=n.translationApps=n.translationMenus=n.translationApp=n.translationTabLabel=n.translationTabGroup=void 0;var r=t("../index"),i=t("underscore"),s=t("./"),o=t("../i18n/i18n.app"),a=t("clone"),u="translation",l=".",c="app",f="menu",h="tab",d=function(e){switch(e){case"app":return s.SteedosTranslationPrefixKeys.Application;case"tab":return s.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[d(),e].join(".")},g=function(e,t){var n={lng:t,ns:u,keySeparator:!1};if((0,r.exists)(e,n))return(0,r._t)(e,n)},m=function(e){var t;return[d("app"),e,"name"].join(".")},b=function(e){var t;return[d("app"),e,"description"].join(".")},v=function(e,t){var n,r;return[d("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[d("menu"),"menu_".concat(e)].join(".")},_=function(e){var t;return[d("tab"),e].join(".")},w=function(e,t,n){var r,i=[m(t)],s=o.appFallbackKeys.getAppLabelKey(t);return s&&i.push(s),g(i,e)||n||""},j=function(e,t,n){var r,i=[b(t)],s=o.appFallbackKeys.getAppDescriptionKey(t);return s&&i.push(s),g(i,e)||n||""},k=function(e,t,n,r){var i,s=[v(t,n)],a=o.appFallbackKeys.getAppGroupKey(t,n);return a&&s.push(a),g(s,e)||r||""};n.translationTabGroup=k;var x=function(e,t,n){var r,i=[y(t)],s=o.appFallbackKeys.getMenuLabelKey(t);return s&&i.push(s),g(i,e)||n||""},S=function(e,t,n){var r,i=[_(t)],s=o.appFallbackKeys.getTabKey(t);return s&&i.push(s),g(i,e)||n||""};n.translationTabLabel=S;var D=function(e,t,r){r.label=w(e,t,r.label||r.name),r.description=j(e,t,r.description),i.each(r.tab_groups,(function(i,s){r.tab_groups[s].id=i.id||i.group_name,r.tab_groups[s].group_name=(0,n.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,n.translationMenus)(e,r.admin_menus)};n.translationApp=D;var A=function(e,t){i.each(t,(function(t){var n=x(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationMenus=A;var E=function(e,t){i.each(t,(function(t,r){(0,n.translationApp)(e,r,t)}))};n.translationApps=E;var C=function(e,t,n){var r=a(n),s={};return s[m(t)]=w(e,t,r.label||r.name),s[b(t)]=j(e,t,r.description),i.each(r.admin_menus,(function(t){s[y(t._id)]=x(e,t._id,t.label||t.name)})),s};n.getAppTranslationTemplate=C;var M=function(e,t,n){i.isArray(n)?i.each(n,(function(e){M(e,"",e)})):n&&i.each(i.keys(n),(function(r){var s=t?"".concat(t,".").concat(r):r,o=n[r];"object"==typeof o?i.isArray(o)?i.each(o,(function(e){M(e,s,o)})):M(e,s,o):e[s]=o}))};function T(e){for(var t in e)"object"==typeof e[t]&&M(e,t,e[t]);return e}n.convertTranslationData=T;var O=function(e){var t=a(e),n={};return i.each(t.CustomApplications,(function(e,t){n[m(t)]=e.name,n[b(t)]=e.description,i.each(e.groups,(function(e,r){n[v(t,r)]=e}))})),i.each(t.CustomTabs,(function(e,t){n[_(t)]=e})),i.each(t.CustomLabels,(function(e,t){var r;if("simpleschema"!=t&&i.isObject(e)){var s=T(((r={})[t]=e,r));i.each(s,(function(e,t){i.isObject(e)||(n[p(t)]=e)}))}else n[p(t)]=e})),n};n.convertTranslation=O;var P=function(e){i.each(e,(function(e){var t=(0,n.convertTranslation)(e.data);(0,r.addResourceBundle)(e.lng,u,t,!0,!0)}))};n.addTranslations=P},templates:{"objectTranslation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getObjectMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),s=t("clone");function o(e,t){var n={};return r.each(e,(function(e){n[e]="help"===e?t.inlineHelpText||"":t[e]||""})),n}function a(e){return o(["label","description"],e)}function u(e){switch(e.type){case"select":return o(["label","help","options","description"],e);default:return o(["label","help","description"],e)}}function l(e){return o(["label"],e)}function c(e){return o(["label"],e)}function f(e){var t={};return r.each(e,(function(e,n){t[n]=u(e)})),t}function h(e){var t={};return r.each(e,(function(e,n){t[n]=c(e)})),t}function d(e){var t={};return r.each(e,(function(e,n){t[n]=l(e)})),t}function p(e,t){var n={};return r.each(e,(function(e,r){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");n[i]=t[r].group}})),n}var g=function(e,t,n,o){void 0===o&&(o=!1);var u=s(n);1!=o&&(0,i.translationObject)(e,t,u,!0,o);var l=Object.assign({},a(u));l=Object.assign({},l,{fields:f(u.fields)});var c=p(n.fields,u.fields);r.isEmpty(c)||(l=Object.assign({},l,{groups:c}));var g=d(u.list_views);r.isEmpty(g)||(l=Object.assign({},l,{listviews:g}));var m=h(u.actions);return r.isEmpty(m)||(l=Object.assign({},l,{actions:m})),Object.assign({name:t},l)};n.getObjectMetadataTranslationTemplate=g},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getAppMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),s=t("clone");function o(e,t){var n={};return r.each(e,(function(e){n[e]=t[e]||""})),n}function a(e){var t={groups:{}};return e?(r.each(e,(function(e){var n=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[n]=e.group_name})),t):{}}var u=function(e){return Object.assign({},o(["name","description"],e),a(e.tab_groups))},l=function(e){var t={};return r.each(e,(function(e,n){t[n]=n})),t},c=function(e){var t={};return r.each(e,(function(e){var n=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[n]=e})),t},f=function(e,t,n){var r,o=s(n);(0,i.translationApp)(e,t,o);var a={},f;return o.tab_items?a=l(o.tab_items):o.tabs&&(a=c(o.tabs)),Object.assign({},{CustomApplications:(r={},r[t]=u(o),r)},{CustomTabs:a})};n.getAppMetadataTranslationTemplate=f}}}},node_modules:{i18next:{"package.json":function e(t,n,e){e.exports={name:"i18next",version:"19.9.2",module:"./dist/esm/i18next.js",main:"./dist/cjs/i18next.js"}},dist:{esm:{"i18next.js":function e(t,n,e){let r,i,s,o,a,u,l,c;e.link("@babel/runtime/helpers/esm/typeof",{default(e){r=e}},0),e.link("@babel/runtime/helpers/esm/objectSpread",{default(e){i=e}},1),e.link("@babel/runtime/helpers/esm/classCallCheck",{default(e){s=e}},2),e.link("@babel/runtime/helpers/esm/createClass",{default(e){o=e}},3),e.link("@babel/runtime/helpers/esm/possibleConstructorReturn",{default(e){a=e}},4),e.link("@babel/runtime/helpers/esm/getPrototypeOf",{default(e){u=e}},5),e.link("@babel/runtime/helpers/esm/assertThisInitialized",{default(e){l=e}},6),e.link("@babel/runtime/helpers/esm/inherits",{default(e){c=e}},7);var f={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,n){console&&console[t]&&console[t].apply(console,n)}},h,d=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.init(t,n)}return o(e,[{key:"init",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||f,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var s="string"!=typeof t?[].concat(t):t.split(".");s.length>1;){if(i())return{};var o=r(s.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return i()?{}:{obj:e,k:r(s.shift())}}function y(e,t,n){var r=v(e,t,Object),i,s;r.obj[r.k]=n}function _(e,t,n,r){var i=v(e,t,Object),s=i.obj,o=i.k;s[o]=s[o]||[],r&&(s[o]=s[o].concat(n)),r||s[o].push(n)}function w(e,t){var n=v(e,t),r=n.obj,i=n.k;if(r)return r[i]}function j(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function k(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):k(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var A="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,E=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return s(this,t),n=a(this,u(t).call(this)),A&&p.call(l(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return c(t,e),o(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=[t,n];return r&&"string"!=typeof r&&(o=o.concat(r)),r&&"string"==typeof r&&(o=o.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(o=t.split(".")),w(this.data,o)}},{key:"addResource",value:function e(t,n,r,i){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(i=n,n=(a=t.split("."))[1]),this.addNamespaces(n),y(this.data,a,i),s.silent||this.emit("added",t,n,r,i)}},{key:"addResources",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var s in r)"string"!=typeof r[s]&&"[object Array]"!==Object.prototype.toString.apply(r[s])||this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}},{key:"addResourceBundle",value:function e(t,n,r,s,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[t,n];t.indexOf(".")>-1&&(s=r,r=n,n=(u=t.split("."))[1]),this.addNamespaces(n);var l=w(this.data,u)||{};s?k(l,r,o):l=i({},l,r),y(this.data,u,l),a.silent||this.emit("added",t,n,r)}},{key:"removeResourceBundle",value:function e(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}},{key:"hasResourceBundle",value:function e(t,n){return void 0!==this.getResource(t,n)}},{key:"getResourceBundle",value:function e(t,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(t,n)):this.getResource(t,n)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(p),C={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,n,r,i,s){var o=this;return t.forEach((function(e){o.processors[e]&&(n=o.processors[e].process(n,r,i,s))})),n}},M={},T=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,t),n=a(this,u(t).call(this)),A&&p.call(l(n)),b(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,l(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=d.create("translator"),n}return c(t,e),o(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function e(t,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=n.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var o=t.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:t,namespaces:s};var a=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(s=a.shift()),t=a.join(i)}return"string"==typeof s&&(s=[s]),{key:t,namespaces:s}}},{key:"translate",value:function e(n,s,o){var a=this;if("object"!==r(s)&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),s||(s={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);var u=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,l=this.extractFromKey(n[n.length-1],s),c=l.key,f=l.namespaces,h=f[f.length-1],d=s.lng||this.language,p=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var g=s.nsSeparator||this.options.nsSeparator;return h+g+c}return c}var m=this.resolve(n,s),b=m&&m.res,v=m&&m.usedKey||c,y=m&&m.exactUsedKey||c,_=Object.prototype.toString.apply(b),w=["[object Number]","[object Function]","[object RegExp]"],j=void 0!==s.joinArrays?s.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof b&&"boolean"!=typeof b&&"number"!=typeof b;if(k&&b&&x&&w.indexOf(_)<0&&("string"!=typeof j||"[object Array]"!==_)){if(!s.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,b,s):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var S="[object Array]"===_,D=S?[]:{},A=S?y:v;for(var E in b)if(Object.prototype.hasOwnProperty.call(b,E)){var C="".concat(A).concat(u).concat(E);D[E]=this.translate(C,i({},s,{joinArrays:!1,ns:f})),D[E]===C&&(D[E]=b[E])}b=D}}else if(k&&"string"==typeof j&&"[object Array]"===_)(b=b.join(j))&&(b=this.extendTranslation(b,n,s,o));else{var M=!1,T=!1,O=void 0!==s.count&&"string"!=typeof s.count,P=t.hasDefaultValue(s),I=O?this.pluralResolver.getSuffix(d,s.count):"",B=s["defaultValue".concat(I)]||s.defaultValue;!this.isValidLookup(b)&&P&&(M=!0,b=B),this.isValidLookup(b)||(T=!0,b=c);var R=P&&B!==b&&this.options.updateMissing;if(T||M||R){if(this.logger.log(R?"updateKey":"missingKey",d,h,c,R?B:b),u){var F=this.resolve(c,i({},s,{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{},i,s,o,a,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!n.isValidLookup(i)){var t=n.extractFromKey(e,r),l=t.key;s=l;var c=t.namespaces;n.options.fallbackNS&&(c=c.concat(n.options.fallbackNS));var f=void 0!==r.count&&"string"!=typeof r.count,h=void 0!==r.context&&"string"==typeof r.context&&""!==r.context,d=r.lngs?r.lngs:n.languageUtils.toResolveHierarchy(r.lng||n.language,r.fallbackLng);c.forEach((function(e){n.isValidLookup(i)||(u=e,!M["".concat(d[0],"-").concat(e)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(u)&&(M["".concat(d[0],"-").concat(e)]=!0,n.logger.warn('key "'.concat(s,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(t){if(!n.isValidLookup(i)){a=t;var s=l,u=[s],c,d;if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(u,l,t,e,r);else f&&(c=n.pluralResolver.getSuffix(t,r.count)),f&&h&&u.push(s+c),h&&u.push(s+="".concat(n.options.contextSeparator).concat(r.context)),f&&u.push(s+=c);for(;d=u.pop();)n.isValidLookup(i)||(o=d,i=n.getResource(t,e,d,r))}})))}))}})),{res:i,usedKey:s,exactUsedKey:o,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}}],[{key:"hasDefaultValue",value:function e(t){var n="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&void 0!==t[r])return!0;return!1}}]),t}(p);function O(e){return e.charAt(0).toUpperCase()+e.slice(1)}var P=function(){function e(t){s(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=d.create("languageUtils")}return o(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=O(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=O(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=O(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var n=this,r;return t?(t.forEach((function(e){if(!r){var t=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(t)||(r=t)}})),!r&&this.options.supportedLngs&&t.forEach((function(e){if(!r){var t=n.getLanguagePartFromCode(e);if(n.isSupportedCode(t))return r=t;r=n.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function e(t,n){if(!t)return[];if("function"==typeof t&&(t=t(n)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function e(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],o=function e(t){t&&(r.isSupportedCode(t)?s.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):"string"==typeof t&&o(this.formatLanguageCode(t)),i.forEach((function(e){s.indexOf(e)<0&&o(r.formatLanguageCode(e))})),s}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],B={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function R(){var e={};return I.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:B[t.fc]}}))})),e}var F=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.languageUtils=t,this.options=n,this.logger=d.create("pluralResolver"),this.rules=R()}return o(e,[{key:"addRule",value:function e(t,n){this.rules[t]=n}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,n){return this.getSuffixes(t).map((function(e){return n+e}))}},{key:"getSuffixes",value:function e(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(e){return n.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,n){var r=this,i=this.getRule(t);if(i){var s=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),o=i.numbers[s];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function e(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.logger=d.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return o(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=void 0!==n.escape?n.escape:D,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?x(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?x(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?x(n.nestingPrefix):n.nestingPrefixEscaped||x("$t("),this.nestingSuffix=n.nestingSuffix?x(n.nestingSuffix):n.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function e(t,n,r,i){var s=this,o,a,u,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var f=function e(t){if(t.indexOf(s.formatSeparator)<0){var o=j(n,l,t);return s.alwaysFormat?s.format(o,void 0,r):o}var a=t.split(s.formatSeparator),u=a.shift().trim(),c=a.join(s.formatSeparator).trim();return s.format(j(n,l,u),c,r,i)};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return c(t)}},{regex:this.regexp,safeValue:function e(t){return s.escapeValue?c(s.escape(t)):c(t)}}].forEach((function(e){for(u=0;o=e.regex.exec(t);){if(void 0===(a=f(o[1].trim())))if("function"==typeof h){var n=h(t,o,i);a="string"==typeof n?n:""}else{if(d){a=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(t)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=m(a));if(t=t.replace(o[0],e.safeValue(a)),e.regex.lastIndex=0,++u>=s.maxReplaces)break}})),t}},{key:"nest",value:function e(t,n){var r=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o,a,u=i({},s);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),s="{".concat(r[1]);e=r[0],s=(s=this.interpolate(s,u)).replace(/'/g,'"');try{u=JSON.parse(s),t&&(u=i({},t,u))}catch(o){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),o),"".concat(e).concat(n).concat(s)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;o=this.nestingRegexp.exec(t);){var c=[],f=!1;if(o[0].includes(this.formatSeparator)&&!/{.*}/.test(o[1])){var h=o[1].split(this.formatSeparator).map((function(e){return e.trim()}));o[1]=h.shift(),c=h,f=!0}if((a=n(l.call(this,o[1].trim(),u),u))&&o[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=m(a)),a||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(t)),a=""),f&&(a=c.reduce((function(e,t){return r.format(e,t,s.lng,s)}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}]),e}();function L(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var z=function(e){function t(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return s(this,t),i=a(this,u(t).call(this)),A&&p.call(l(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=o,i.logger=d.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return c(t,e),o(t,[{key:"queueLoad",value:function e(t,n,r,i){var s=this,o=[],a=[],u=[],l=[];return t.forEach((function(e){var t=!0;n.forEach((function(n){var i="".concat(e,"|").concat(n);!r.reload&&s.store.hasResourceBundle(e,n)?s.state[i]=2:s.state[i]<0||(1===s.state[i]?a.indexOf(i)<0&&a.push(i):(s.state[i]=1,t=!1,a.indexOf(i)<0&&a.push(i),o.indexOf(i)<0&&o.push(i),l.indexOf(n)<0&&l.push(n)))})),t||u.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:o,pending:a,toLoadLanguages:u,toLoadNamespaces:l}}},{key:"loaded",value:function e(t,n,r){var i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),r&&this.store.addResourceBundle(s,o,r),this.state[t]=n?-1:2;var e={};this.queue.forEach((function(r){_(r.loaded,[s],o),L(r.pending,t),n&&r.errors.push(n),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){e[t]||(e[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(n){e[t].indexOf(n)<0&&e[t].push(n)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,n,r){var i=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[r](t,n,(function(e,u){e&&u&&s<5?setTimeout((function(){i.read.call(i,t,n,r,s+1,2*o,a)}),o):a(e,u)})):a(null,{})}},{key:"prepareLoading",value:function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof n&&(n=[n]);var o=this.queueLoad(t,n,i,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function e(t,n,r){this.prepareLoading(t,n,{},r)}},{key:"reload",value:function e(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}},{key:"loadOne",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),s=i[0],o=i[1];this.read(s,o,"read",void 0,void 0,(function(e,i){e&&n.logger.warn("".concat(r,"loading namespace ").concat(o," for language ").concat(s," failed"),e),!e&&i&&n.logger.log("".concat(r,"loaded namespace ").concat(o," for language ").concat(s),i),n.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,n,r,s,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,n,r,s,null,i({},a,{isUpdate:o})),t&&t[0]&&this.store.addResource(t[0],n,r,s))}}]),t}(p);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var n={};if("object"===r(t[1])&&(n=t[1]),"string"==typeof t[1]&&(n.defaultValue=t[1]),"string"==typeof t[2]&&(n.tDescription=t[2]),"object"===r(t[2])||"object"===r(t[3])){var i=t[3]||t[2];Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n},interpolation:{escapeValue:!0,format:function e(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function q(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}var W,H=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(s(this,t),e=a(this,u(t).call(this)),A&&p.call(l(e)),e.options=q(n),e.services={},e.logger=d,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),a(e,l(e));setTimeout((function(){e.init(n,r)}),0)}return e}return c(t,e),o(t,[{key:"init",value:function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function s(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(r=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,q(n)),this.format=this.options.interpolation.format,r||(r=$),!this.options.isClone){this.modules.logger?d.init(s(this.modules.logger),this.options):d.init(null,this.options);var o=new P(this.options);this.store=new E(this.options.resources,this.options);var a=this.services;a.logger=d,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new F(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new N(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new z(s(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var f=g(),h=function e(){var n=function e(n,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),f.resolve(i),r(n,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return n(null,t.t.bind(t));t.changeLanguage(t.options.lng,n)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),f}},{key:"loadResources",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,i=r,s="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&"cimode"===s.toLowerCase())return i();var o=[],a=function e(t){var r;t&&n.services.languageUtils.toResolveHierarchy(t).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(s)a(s);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,n,r){var i=g();return t||(t=this.languages),n||(n=this.options.ns),r||(r=$),this.services.backendConnector.reload(t,n,(function(e){i.resolve(),r(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,n){var r=this;this.isLanguageChangingTo=t;var i=g();this.emit("languageChanging",t);var s=function e(t,s){s?(r.language=s,r.languages=r.services.languageUtils.toResolveHierarchy(s),r.translator.changeLanguage(s),r.isLanguageChangingTo=void 0,r.emit("languageChanged",s),r.logger.log("languageChanged",s)):r.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),n&&n(t,(function(){return r.t.apply(r,arguments)}))},o=function e(t){var n="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);n&&(r.language||(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n)),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,(function(e){s(e,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(t):o(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,n){var s=this,o=function e(t,n){var o;if("object"!==r(n)){for(var a=arguments.length,u=new Array(a>2?a-2:0),l=2;l1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],s=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function e(t,r){var i=n.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===i||2===i};if(r.precheck){var u=r.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!a(i,t)||s&&!a(o,t)))}},{key:"loadNamespaces",value:function e(t,n){var r=this,i=g();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,n){var r=g();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],s=t.filter((function(e){return i.indexOf(e)<0}));return s.length?(this.options.preload=i.concat(s),this.loadResources((function(e){r.resolve(),n&&n(e)})),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var n}},{key:"createInstance",value:function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,o=i({},this.options,r,{isClone:!0}),a=new t(o),u=["store","services","language"];return u.forEach((function(e){a[e]=n[e]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new T(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rr,root:()=>i,ArrayProto:()=>s,ObjProto:()=>o,SymbolProto:()=>a,push:()=>u,slice:()=>l,toString:()=>c,hasOwnProperty:()=>f,supportsArrayBuffer:()=>h,supportsDataView:()=>d,nativeIsArray:()=>p,nativeKeys:()=>g,nativeCreate:()=>m,nativeIsView:()=>b,_isNaN:()=>v,_isFinite:()=>y,hasEnumBug:()=>_,nonEnumerableProps:()=>w,MAX_ARRAY_INDEX:()=>j});var r="1.13.4",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},s=Array.prototype,o=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=s.push,l=s.slice,c=o.toString,f=o.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,p=Array.isArray,g=Object.keys,m=Object.create,b=h&&ArrayBuffer.isView,v=isNaN,y=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=Math.pow(2,53)-1},"restArguments.js":function e(t,n,e){function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;ir})},"isObject.js":function e(t,n,e){function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}e.export({default:()=>r})},"isNull.js":function e(t,n,e){function r(e){return null===e}e.export({default:()=>r})},"isUndefined.js":function e(t,n,e){function r(e){return void 0===e}e.export({default:()=>r})},"isBoolean.js":function e(t,n,e){let r;function i(e){return!0===e||!1===e||"[object Boolean]"===r.call(e)}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isElement.js":function e(t,n,e){function r(e){return!(!e||1!==e.nodeType)}e.export({default:()=>r})},"isString.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("String"))},"_tagTester.js":function e(t,n,e){let r;function i(e){var t="[object "+e+"]";return function(e){return r.call(e)===t}}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isNumber.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Number"))},"isDate.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Date"))},"isRegExp.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("RegExp"))},"isError.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Error"))},"isSymbol.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Symbol"))},"isArrayBuffer.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("ArrayBuffer"))},"isDataView.js":function e(t,n,e){let r,i,s,o;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isArrayBuffer.js",{default(e){s=e}},2),e.link("./_stringTagBug.js",{hasStringTagBug(e){o=e}},3);var a=r("DataView");function u(e){return null!=e&&i(e.getInt8)&&s(e.buffer)}e.exportDefault(o?u:a)},"isFunction.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_setup.js",{root(e){i=e}},1);var s=r("Function"),o=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof o&&(s=function(e){return"function"==typeof e||!1}),e.exportDefault(s)},"_stringTagBug.js":function e(t,n,e){let r,i;e.export({hasStringTagBug:()=>s,isIE11:()=>o}),e.link("./_setup.js",{supportsDataView(e){r=e}},0),e.link("./_hasObjectTag.js",{default(e){i=e}},1);var s=r&&i(new DataView(new ArrayBuffer(8))),o="undefined"!=typeof Map&&i(new Map)},"_hasObjectTag.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Object"))},"isArray.js":function e(t,n,e){let r,i;e.link("./_setup.js",{nativeIsArray(e){r=e}},0),e.link("./_tagTester.js",{default(e){i=e}},1),e.exportDefault(r||i("Array"))},"isArguments.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1);var s=r("Arguments");!function(){s(arguments)||(s=function(e){return i(e,"callee")})}(),e.exportDefault(s)},"_has.js":function e(t,n,e){let r;function i(e,t){return null!=e&&r.call(e,t)}e.export({default:()=>i}),e.link("./_setup.js",{hasOwnProperty(e){r=e}},0)},"isFinite.js":function e(t,n,e){let r,i;function s(e){return!i(e)&&r(e)&&!isNaN(parseFloat(e))}e.export({default:()=>s}),e.link("./_setup.js",{_isFinite(e){r=e}},0),e.link("./isSymbol.js",{default(e){i=e}},1)},"isNaN.js":function e(t,n,e){let r,i;function s(e){return i(e)&&r(e)}e.export({default:()=>s}),e.link("./_setup.js",{_isNaN(e){r=e}},0),e.link("./isNumber.js",{default(e){i=e}},1)},"isTypedArray.js":function e(t,n,e){let r,i,s,o,a,u;e.link("./_setup.js",{supportsArrayBuffer(e){r=e},nativeIsView(e){i=e},toString(e){s=e}},0),e.link("./isDataView.js",{default(e){o=e}},1),e.link("./constant.js",{default(e){a=e}},2),e.link("./_isBufferLike.js",{default(e){u=e}},3);var l=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function c(e){return i?i(e)&&!o(e):u(e)&&l.test(s.call(e))}e.exportDefault(r?c:a(!1))},"constant.js":function e(t,n,e){function r(e){return function(){return e}}e.export({default:()=>r})},"_isBufferLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getByteLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createSizePropertyCheck.js":function e(t,n,e){let r;function i(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=r}}e.export({default:()=>i}),e.link("./_setup.js",{MAX_ARRAY_INDEX(e){r=e}},0)},"_getByteLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("byteLength"))},"_shallowProperty.js":function e(t,n,e){function r(e){return function(t){return null==t?void 0:t[e]}}e.export({default:()=>r})},"isEmpty.js":function e(t,n,e){let r,i,s,o,a;function u(e){if(null==e)return!0;var t=r(e);return"number"==typeof t&&(i(e)||s(e)||o(e))?0===t:0===r(a(e))}e.export({default:()=>u}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./isString.js",{default(e){s=e}},2),e.link("./isArguments.js",{default(e){o=e}},3),e.link("./keys.js",{default(e){a=e}},4)},"_getLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("length"))},"keys.js":function e(t,n,e){let r,i,s,o,a;function u(e){if(!r(e))return[];if(i)return i(e);var t=[];for(var n in e)o(e,n)&&t.push(n);return s&&a(e,t),t}e.export({default:()=>u}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeKeys(e){i=e},hasEnumBug(e){s=e}},1),e.link("./_has.js",{default(e){o=e}},2),e.link("./_collectNonEnumProps.js",{default(e){a=e}},3)},"_collectNonEnumProps.js":function e(t,n,e){let r,i,s,o;function a(e){for(var t={},n=e.length,r=0;ru}),e.link("./_setup.js",{nonEnumerableProps(e){r=e},ObjProto(e){i=e}},0),e.link("./isFunction.js",{default(e){s=e}},1),e.link("./_has.js",{default(e){o=e}},2)},"isMatch.js":function e(t,n,e){let r;function i(e,t){var n=r(t),i=n.length;if(null==e)return!i;for(var s=Object(e),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"isEqual.js":function e(t,n,e){let r,i,s,o,a,u,l,c,f,h,d;e.export({default:()=>b}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_setup.js",{toString(e){i=e},SymbolProto(e){s=e}},1),e.link("./_getByteLength.js",{default(e){o=e}},2),e.link("./isTypedArray.js",{default(e){a=e}},3),e.link("./isFunction.js",{default(e){u=e}},4),e.link("./_stringTagBug.js",{hasStringTagBug(e){l=e}},5),e.link("./isDataView.js",{default(e){c=e}},6),e.link("./keys.js",{default(e){f=e}},7),e.link("./_has.js",{default(e){h=e}},8),e.link("./_toBufferView.js",{default(e){d=e}},9);var p="[object DataView]";function g(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&m(e,t,n,r)}function m(e,t,n,b){e instanceof r&&(e=e._wrapped),t instanceof r&&(t=t._wrapped);var v=i.call(e);if(v!==i.call(t))return!1;if(l&&"[object Object]"==v&&c(e)){if(!c(t))return!1;v=p}switch(v){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return s.valueOf.call(e)===s.valueOf.call(t);case"[object ArrayBuffer]":case p:return m(d(e),d(t),n,b)}var y="[object Array]"===v;if(!y&&a(e)){var _;if(o(e)!==o(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;y=!0}if(!y){if("object"!=typeof e||"object"!=typeof t)return!1;var w=e.constructor,j=t.constructor;if(w!==j&&!(u(w)&&w instanceof w&&u(j)&&j instanceof j)&&"constructor"in e&&"constructor"in t)return!1}b=b||[];for(var k=(n=n||[]).length;k--;)if(n[k]===e)return b[k]===t;if(n.push(e),b.push(t),y){if((k=e.length)!==t.length)return!1;for(;k--;)if(!g(e[k],t[k],n,b))return!1}else{var x=f(e),S;if(k=x.length,f(t).length!==k)return!1;for(;k--;)if(S=x[k],!h(t,S)||!g(e[S],t[S],n,b))return!1}return n.pop(),b.pop(),!0}function b(e,t){return g(e,t)}},"underscore.js":function e(t,n,e){let r;function i(e){return e instanceof i?e:this instanceof i?void(this._wrapped=e):new i(e)}e.export({default:()=>i}),e.link("./_setup.js",{VERSION(e){r=e}},0),i.VERSION=r,i.prototype.value=function(){return this._wrapped},i.prototype.valueOf=i.prototype.toJSON=i.prototype.value,i.prototype.toString=function(){return String(this._wrapped)}},"_toBufferView.js":function e(t,n,e){let r;function i(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,r(e))}e.export({default:()=>i}),e.link("./_getByteLength.js",{default(e){r=e}},0)},"isMap.js":function e(t,n,e){let r,i,s,o;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){s=e},mapMethods(e){o=e}},2),e.exportDefault(i?s(o):r("Map"))},"_methodFingerprint.js":function e(t,n,e){let r,i,s;function o(e){var t=r(e);return function(n){if(null==n)return!1;var o=s(n);if(r(o))return!1;for(var u=0;uo,mapMethods:()=>f,weakMapMethods:()=>h,setMethods:()=>d}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./allKeys.js",{default(e){s=e}},2);var a="forEach",u="has",l=["clear","delete"],c=["get","has","set"],f=l.concat(a,c),h=l.concat(c),d=["add"].concat(l,a,"has")},"allKeys.js":function e(t,n,e){let r,i,s;function o(e){if(!r(e))return[];var t=[];for(var n in e)t.push(n);return i&&s(e,t),t}e.export({default:()=>o}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{hasEnumBug(e){i=e}},1),e.link("./_collectNonEnumProps.js",{default(e){s=e}},2)},"isWeakMap.js":function e(t,n,e){let r,i,s,o;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){s=e},weakMapMethods(e){o=e}},2),e.exportDefault(i?s(o):r("WeakMap"))},"isSet.js":function e(t,n,e){let r,i,s,o;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){s=e},setMethods(e){o=e}},2),e.exportDefault(i?s(o):r("Set"))},"isWeakSet.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("WeakSet"))},"values.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"pairs.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"invert.js":function e(t,n,e){let r;function i(e){for(var t={},n=r(e),i=0,s=n.length;ii}),e.link("./keys.js",{default(e){r=e}},0)},"functions.js":function e(t,n,e){let r;function i(e){var t=[];for(var n in e)r(e[n])&&t.push(n);return t.sort()}e.export({default:()=>i}),e.link("./isFunction.js",{default(e){r=e}},0)},"extend.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createAssigner.js":function e(t,n,e){function r(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;ir})},"extendOwn.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"defaults.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i,!0))},"create.js":function e(t,n,e){let r,i;function s(e,t){var n=r(e);return t&&i(n,t),n}e.export({default:()=>s}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./extendOwn.js",{default(e){i=e}},1)},"_baseCreate.js":function e(t,n,e){let r,i;function s(){return function(){}}function o(e){if(!r(e))return{};if(i)return i(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}e.export({default:()=>o}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeCreate(e){i=e}},1)},"clone.js":function e(t,n,e){let r,i,s;function o(e){return r(e)?i(e)?e.slice():s({},e):e}e.export({default:()=>o}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./extend.js",{default(e){s=e}},2)},"tap.js":function e(t,n,e){function r(e,t){return t(e),e}e.export({default:()=>r})},"get.js":function e(t,n,e){let r,i,s;function o(e,t,n){var o=i(e,r(t));return s(o)?n:o}e.export({default:()=>o}),e.link("./_toPath.js",{default(e){r=e}},0),e.link("./_deepGet.js",{default(e){i=e}},1),e.link("./isUndefined.js",{default(e){s=e}},2)},"_toPath.js":function e(t,n,e){let r;function i(e){return r.toPath(e)}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./toPath.js")},"toPath.js":function e(t,n,e){let r,i;function s(e){return i(e)?e:[e]}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),r.toPath=s},"_deepGet.js":function e(t,n,e){function r(e,t){for(var n=t.length,r=0;rr})},"has.js":function e(t,n,e){let r,i;function s(e,t){for(var n=(t=i(t)).length,s=0;ss}),e.link("./_has.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"mapObject.js":function e(t,n,e){let r,i;function s(e,t,n){t=r(t,n);for(var s=i(e),o=s.length,a={},u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"_cb.js":function e(t,n,e){let r,i,s;function o(e,t,n){return r.iteratee!==s?r.iteratee(e,t):i(e,t,n)}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),e.link("./iteratee.js",{default(e){s=e}},2)},"_baseIteratee.js":function e(t,n,e){let r,i,s,o,a,u,l;function c(e,t,n){return null==e?r:i(e)?l(e,t,n):s(e)&&!o(e)?a(e):u(e)}e.export({default:()=>c}),e.link("./identity.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isObject.js",{default(e){s=e}},2),e.link("./isArray.js",{default(e){o=e}},3),e.link("./matcher.js",{default(e){a=e}},4),e.link("./property.js",{default(e){u=e}},5),e.link("./_optimizeCb.js",{default(e){l=e}},6)},"identity.js":function e(t,n,e){function r(e){return e}e.export({default:()=>r})},"matcher.js":function e(t,n,e){let r,i;function s(e){return e=r({},e),function(t){return i(t,e)}}e.export({default:()=>s}),e.link("./extendOwn.js",{default(e){r=e}},0),e.link("./isMatch.js",{default(e){i=e}},1)},"property.js":function e(t,n,e){let r,i;function s(e){return e=i(e),function(t){return r(t,e)}}e.export({default:()=>s}),e.link("./_deepGet.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"_optimizeCb.js":function e(t,n,e){function r(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,s){return e.call(t,n,r,i,s)}}return function(){return e.apply(t,arguments)}}e.export({default:()=>r})},"iteratee.js":function e(t,n,e){let r,i;function s(e,t){return i(e,t,1/0)}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),r.iteratee=s},"noop.js":function e(t,n,e){function r(){}e.export({default:()=>r})},"propertyOf.js":function e(t,n,e){let r,i;function s(e){return null==e?r:function(t){return i(e,t)}}e.export({default:()=>s}),e.link("./noop.js",{default(e){r=e}},0),e.link("./get.js",{default(e){i=e}},1)},"times.js":function e(t,n,e){let r;function i(e,t,n){var i=Array(Math.max(0,e));t=r(t,n,1);for(var s=0;si}),e.link("./_optimizeCb.js",{default(e){r=e}},0)},"random.js":function e(t,n,e){function r(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}e.export({default:()=>r})},"now.js":function e(t,n,e){e.exportDefault(Date.now||function(){return(new Date).getTime()})},"escape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createEscaper.js":function e(t,n,e){let r;function i(e){var t=function(t){return e[t]},n="(?:"+r(e).join("|")+")",i=RegExp(n),s=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(s,t):e}}e.export({default:()=>i}),e.link("./keys.js",{default(e){r=e}},0)},"_escapeMap.js":function e(t,n,e){e.exportDefault({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"})},"unescape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_unescapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_unescapeMap.js":function e(t,n,e){let r,i;e.link("./invert.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"templateSettings.js":function e(t,n,e){let r;e.link("./underscore.js",{default(e){r=e}},0),e.exportDefault(r.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g})},"template.js":function e(t,n,e){let r,i;e.export({default:()=>c}),e.link("./defaults.js",{default(e){r=e}},0),e.link("./underscore.js",{default(e){i=e}},1),e.link("./templateSettings.js");var s=/(.)^/,o={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},a=/\\|'|\r|\n|\u2028|\u2029/g;function u(e){return"\\"+o[e]}var l=/^\s*(\w|\$)+\s*$/;function c(e,t,n){!t&&n&&(t=n),t=r({},t,i.templateSettings);var o=RegExp([(t.escape||s).source,(t.interpolate||s).source,(t.evaluate||s).source].join("|")+"|$","g"),c=0,f="__p+='";e.replace(o,(function(t,n,r,i,s){return f+=e.slice(c,s).replace(a,u),c=s+t.length,n?f+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?f+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(f+="';\n"+i+"\n__p+='"),t})),f+="';\n";var h=t.variable,d;if(h){if(!l.test(h))throw new Error("variable is not a bare identifier: "+h)}else f="with(obj||{}){\n"+f+"}\n",h="obj";f="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+f+"return __p;\n";try{d=new Function(h,"_",f)}catch(g){throw g.source=f,g}var p=function(e){return d.call(this,e,i)};return p.source="function("+h+"){\n"+f+"}",p}},"result.js":function e(t,n,e){let r,i;function s(e,t,n){var s=(t=i(t)).length;if(!s)return r(n)?n.call(e):n;for(var o=0;os}),e.link("./isFunction.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"uniqueId.js":function e(t,n,e){e.export({default:()=>i});var r=0;function i(e){var t=++r+"";return e?e+t:t}},"chain.js":function e(t,n,e){let r;function i(e){var t=r(e);return t._chain=!0,t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"partial.js":function e(t,n,e){let r,i,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_executeBound.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){s=e}},2);var o=r((function(e,t){var n=o.placeholder,r=function(){for(var s=0,o=t.length,a=Array(o),u=0;us}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./isObject.js",{default(e){i=e}},1)},"bind.js":function e(t,n,e){let r,i,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_executeBound.js",{default(e){s=e}},2),e.exportDefault(r((function(e,t,n){if(!i(e))throw new TypeError("Bind must be called on a function");var o=r((function(r){return s(e,o,t,this,n.concat(r))}));return o})))},"bindAll.js":function e(t,n,e){let r,i,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./bind.js",{default(e){s=e}},2),e.exportDefault(r((function(e,t){var n=(t=i(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=s(e[r],e)}return e})))},"_flatten.js":function e(t,n,e){let r,i,s,o;function a(e,t,n,u){if(u=u||[],t||0===t){if(t<=0)return u.concat(e)}else t=1/0;for(var l=u.length,c=0,f=r(e);c1)a(h,t-1,n,u),l=u.length;else for(var d=0,p=h.length;da}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./isArray.js",{default(e){s=e}},2),e.link("./isArguments.js",{default(e){o=e}},3)},"_isArrayLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"memoize.js":function e(t,n,e){let r;function i(e,t){var n=function(i){var s=n.cache,o=""+(t?t.apply(this,arguments):i);return r(s,o)||(s[o]=e.apply(this,arguments)),s[o]};return n.cache={},n}e.export({default:()=>i}),e.link("./_has.js",{default(e){r=e}},0)},"delay.js":function e(t,n,e){let r;e.link("./restArguments.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})))},"defer.js":function e(t,n,e){let r,i,s;e.link("./partial.js",{default(e){r=e}},0),e.link("./delay.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){s=e}},2),e.exportDefault(r(i,s,1))},"throttle.js":function e(t,n,e){let r;function i(e,t,n){var i,s,o,a,u=0;n||(n={});var l=function(){u=!1===n.leading?0:r(),i=null,a=e.apply(s,o),i||(s=o=null)},c=function(){var c=r();u||!1!==n.leading||(u=c);var f=t-(c-u);return s=this,o=arguments,f<=0||f>t?(i&&(clearTimeout(i),i=null),u=c,a=e.apply(s,o),i||(s=o=null)):i||!1===n.trailing||(i=setTimeout(l,f)),a};return c.cancel=function(){clearTimeout(i),u=0,i=s=o=null},c}e.export({default:()=>i}),e.link("./now.js",{default(e){r=e}},0)},"debounce.js":function e(t,n,e){let r,i;function s(e,t,n){var s,o,a,u,l,c=function(){var r=i()-o;t>r?s=setTimeout(c,t-r):(s=null,n||(u=e.apply(l,a)),s||(a=l=null))},f=r((function(r){return l=this,a=r,o=i(),s||(s=setTimeout(c,t),n&&(u=e.apply(l,a))),u}));return f.cancel=function(){clearTimeout(s),s=a=l=null},f}e.export({default:()=>s}),e.link("./restArguments.js",{default(e){r=e}},0),e.link("./now.js",{default(e){i=e}},1)},"wrap.js":function e(t,n,e){let r;function i(e,t){return r(t,e)}e.export({default:()=>i}),e.link("./partial.js",{default(e){r=e}},0)},"negate.js":function e(t,n,e){function r(e){return function(){return!e.apply(this,arguments)}}e.export({default:()=>r})},"compose.js":function e(t,n,e){function r(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}e.export({default:()=>r})},"after.js":function e(t,n,e){function r(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}e.export({default:()=>r})},"before.js":function e(t,n,e){function r(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}e.export({default:()=>r})},"once.js":function e(t,n,e){let r,i;e.link("./partial.js",{default(e){r=e}},0),e.link("./before.js",{default(e){i=e}},1),e.exportDefault(r(i,2))},"findKey.js":function e(t,n,e){let r,i;function s(e,t,n){t=r(t,n);for(var s=i(e),o,a=0,u=s.length;as}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"findIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createPredicateIndexFinder.js":function e(t,n,e){let r,i;function s(e){return function(t,n,s){n=r(n,s);for(var o=i(t),a=e>0?0:o-1;a>=0&&as}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"findLastIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"sortedIndex.js":function e(t,n,e){let r,i;function s(e,t,n,s){for(var o=(n=r(n,s,1))(t),a=0,u=i(e);as}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"indexOf.js":function e(t,n,e){let r,i,s;e.link("./sortedIndex.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./_createIndexFinder.js",{default(e){s=e}},2),e.exportDefault(s(1,i,r))},"_createIndexFinder.js":function e(t,n,e){let r,i,s;function o(e,t,n){return function(o,a,u){var l=0,c=r(o);if("number"==typeof u)e>0?l=u>=0?u:Math.max(u+c,l):c=u>=0?Math.min(u+1,c):u+c+1;else if(n&&u&&c)return o[u=n(o,a)]===a?u:-1;if(a!=a)return(u=t(i.call(o,l,c),s))>=0?u+l:-1;for(u=e>0?l:c-1;u>=0&&uo}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isNaN.js",{default(e){s=e}},2)},"lastIndexOf.js":function e(t,n,e){let r,i;e.link("./findLastIndex.js",{default(e){r=e}},0),e.link("./_createIndexFinder.js",{default(e){i=e}},1),e.exportDefault(i(-1,r))},"find.js":function e(t,n,e){let r,i,s;function o(e,t,n){var o,a=(r(e)?i:s)(e,t,n);if(void 0!==a&&-1!==a)return e[a]}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./findKey.js",{default(e){s=e}},2)},"findWhere.js":function e(t,n,e){let r,i;function s(e,t){return r(e,i(t))}e.export({default:()=>s}),e.link("./find.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"each.js":function e(t,n,e){let r,i,s;function o(e,t,n){var o,a;if(t=r(t,n),i(e))for(o=0,a=e.length;oo}),e.link("./_optimizeCb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){s=e}},2)},"map.js":function e(t,n,e){let r,i,s;function o(e,t,n){t=r(t,n);for(var o=!i(e)&&s(e),a=(o||e).length,u=Array(a),l=0;lo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){s=e}},2)},"reduce.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createReduce.js":function e(t,n,e){let r,i,s;function o(e){var t=function(t,n,s,o){var a=!r(t)&&i(t),u=(a||t).length,l=e>0?0:u-1;for(o||(s=t[a?a[l]:l],l+=e);l>=0&&l=3;return t(e,s(n,i,4),r,o)}}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){s=e}},2)},"reduceRight.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"filter.js":function e(t,n,e){let r,i;function s(e,t,n){var s=[];return t=r(t,n),i(e,(function(e,n,r){t(e,n,r)&&s.push(e)})),s}e.export({default:()=>s}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"reject.js":function e(t,n,e){let r,i,s;function o(e,t,n){return r(e,i(s(t)),n)}e.export({default:()=>o}),e.link("./filter.js",{default(e){r=e}},0),e.link("./negate.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){s=e}},2)},"every.js":function e(t,n,e){let r,i,s;function o(e,t,n){t=r(t,n);for(var o=!i(e)&&s(e),a=(o||e).length,u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){s=e}},2)},"some.js":function e(t,n,e){let r,i,s;function o(e,t,n){t=r(t,n);for(var o=!i(e)&&s(e),a=(o||e).length,u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){s=e}},2)},"contains.js":function e(t,n,e){let r,i,s;function o(e,t,n,o){return r(e)||(e=i(e)),("number"!=typeof n||o)&&(n=0),s(e,t,n)>=0}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./indexOf.js",{default(e){s=e}},2)},"invoke.js":function e(t,n,e){let r,i,s,o,a;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./map.js",{default(e){s=e}},2),e.link("./_deepGet.js",{default(e){o=e}},3),e.link("./_toPath.js",{default(e){a=e}},4),e.exportDefault(r((function(e,t,n){var r,u;return i(t)?u=t:(t=a(t),r=t.slice(0,-1),t=t[t.length-1]),s(e,(function(e){var i=u;if(!i){if(r&&r.length&&(e=o(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))})))},"pluck.js":function e(t,n,e){let r,i;function s(e,t){return r(e,i(t))}e.export({default:()=>s}),e.link("./map.js",{default(e){r=e}},0),e.link("./property.js",{default(e){i=e}},1)},"where.js":function e(t,n,e){let r,i;function s(e,t){return r(e,i(t))}e.export({default:()=>s}),e.link("./filter.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"max.js":function e(t,n,e){let r,i,s,o;function a(e,t,n){var a=-1/0,u=-1/0,l,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var f=0,h=(e=r(e)?e:i(e)).length;fa&&(a=l);else t=s(t,n),o(e,(function(e,n,r){((c=t(e,n,r))>u||c===-1/0&&a===-1/0)&&(a=e,u=c)}));return a}e.export({default:()=>a}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){s=e}},2),e.link("./each.js",{default(e){o=e}},3)},"min.js":function e(t,n,e){let r,i,s,o;function a(e,t,n){var a=1/0,u=1/0,l,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var f=0,h=(e=r(e)?e:i(e)).length;fa}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){s=e}},2),e.link("./each.js",{default(e){o=e}},3)},"shuffle.js":function e(t,n,e){let r;function i(e){return r(e,1/0)}e.export({default:()=>i}),e.link("./sample.js",{default(e){r=e}},0)},"sample.js":function e(t,n,e){let r,i,s,o,a;function u(e,t,n){if(null==t||n)return r(e)||(e=i(e)),e[o(e.length-1)];var u=a(e),l=s(u);t=Math.max(Math.min(t,l),0);for(var c=l-1,f=0;fu}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){s=e}},2),e.link("./random.js",{default(e){o=e}},3),e.link("./toArray.js",{default(e){a=e}},4)},"toArray.js":function e(t,n,e){let r,i,s,o,a,u,l;e.export({default:()=>f}),e.link("./isArray.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isString.js",{default(e){s=e}},2),e.link("./_isArrayLike.js",{default(e){o=e}},3),e.link("./map.js",{default(e){a=e}},4),e.link("./identity.js",{default(e){u=e}},5),e.link("./values.js",{default(e){l=e}},6);var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function f(e){return e?r(e)?i.call(e):s(e)?e.match(c):o(e)?a(e,u):l(e):[]}},"sortBy.js":function e(t,n,e){let r,i,s;function o(e,t,n){var o=0;return t=r(t,n),i(s(e,(function(e,n,r){return{value:e,index:o++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(no}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./pluck.js",{default(e){i=e}},1),e.link("./map.js",{default(e){s=e}},2)},"groupBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n].push(t):e[n]=[t]})))},"_group.js":function e(t,n,e){let r,i;function s(e,t){return function(n,s,o){var a=t?[[],[]]:{};return s=r(s,o),i(n,(function(t,r){var i=s(t,r,n);e(a,t,i)})),a}}e.export({default:()=>s}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"indexBy.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n]=t})))},"countBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n]++:e[n]=1})))},"partition.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n?0:1].push(t)}),!0))},"size.js":function e(t,n,e){let r,i;function s(e){return null==e?0:r(e)?e.length:i(e).length}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"pick.js":function e(t,n,e){let r,i,s,o,a,u;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){s=e}},2),e.link("./allKeys.js",{default(e){o=e}},3),e.link("./_keyInObj.js",{default(e){a=e}},4),e.link("./_flatten.js",{default(e){u=e}},5),e.exportDefault(r((function(e,t){var n={},r=t[0];if(null==e)return n;i(r)?(t.length>1&&(r=s(r,t[1])),t=o(e)):(r=a,t=u(t,!1,!1),e=Object(e));for(var l=0,c=t.length;lr})},"omit.js":function e(t,n,e){let r,i,s,o,a,u,l;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./negate.js",{default(e){s=e}},2),e.link("./map.js",{default(e){o=e}},3),e.link("./_flatten.js",{default(e){a=e}},4),e.link("./contains.js",{default(e){u=e}},5),e.link("./pick.js",{default(e){l=e}},6),e.exportDefault(r((function(e,t){var n=t[0],r;return i(n)?(n=s(n),t.length>1&&(r=t[1])):(t=o(a(t,!1,!1),String),n=function(e,n){return!u(t,n)}),l(e,n,r)})))},"first.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:r(e,e.length-t)}e.export({default:()=>i}),e.link("./initial.js",{default(e){r=e}},0)},"initial.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"last.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:r(e,Math.max(0,e.length-t))}e.export({default:()=>i}),e.link("./rest.js",{default(e){r=e}},0)},"rest.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,null==t||n?1:t)}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"compact.js":function e(t,n,e){let r;function i(e){return r(e,Boolean)}e.export({default:()=>i}),e.link("./filter.js",{default(e){r=e}},0)},"flatten.js":function e(t,n,e){let r;function i(e,t){return r(e,t,!1)}e.export({default:()=>i}),e.link("./_flatten.js",{default(e){r=e}},0)},"without.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./difference.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t){return i(e,t)})))},"difference.js":function e(t,n,e){let r,i,s,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./filter.js",{default(e){s=e}},2),e.link("./contains.js",{default(e){o=e}},3),e.exportDefault(r((function(e,t){return t=i(t,!0,!0),s(e,(function(e){return!o(t,e)}))})))},"uniq.js":function e(t,n,e){let r,i,s,o;function a(e,t,n,a){r(t)||(a=n,n=t,t=!1),null!=n&&(n=i(n,a));for(var u=[],l=[],c=0,f=s(e);ca}),e.link("./isBoolean.js",{default(e){r=e}},0),e.link("./_cb.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){s=e}},2),e.link("./contains.js",{default(e){o=e}},3)},"union.js":function e(t,n,e){let r,i,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./uniq.js",{default(e){i=e}},1),e.link("./_flatten.js",{default(e){s=e}},2),e.exportDefault(r((function(e){return i(s(e,!0,!0))})))},"intersection.js":function e(t,n,e){let r,i;function s(e){for(var t=[],n=arguments.length,s=0,o=r(e);ss}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./contains.js",{default(e){i=e}},1)},"unzip.js":function e(t,n,e){let r,i,s;function o(e){for(var t=e&&r(e,i).length||0,n=Array(t),o=0;oo}),e.link("./max.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.link("./pluck.js",{default(e){s=e}},2)},"zip.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./unzip.js",{default(e){i=e}},1),e.exportDefault(r(i))},"object.js":function e(t,n,e){let r;function i(e,t){for(var n={},i=0,s=r(e);ii}),e.link("./_getLength.js",{default(e){r=e}},0)},"range.js":function e(t,n,e){function r(e,t,n){null==t&&(t=e||0,e=0),n||(n=tr})},"chunk.js":function e(t,n,e){let r;function i(e,t){if(null==t||t<1)return[];for(var n=[],i=0,s=e.length;ii}),e.link("./_setup.js",{slice(e){r=e}},0)},"mixin.js":function e(t,n,e){let r,i,s,o,a;function u(e){return i(s(e),(function(t){var n=r[t]=e[t];r.prototype[t]=function(){var e=[this._wrapped];return o.apply(e,arguments),a(this,n.apply(r,e))}})),r}e.export({default:()=>u}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./functions.js",{default(e){s=e}},2),e.link("./_setup.js",{push(e){o=e}},3),e.link("./_chainResult.js",{default(e){a=e}},4)},"_chainResult.js":function e(t,n,e){let r;function i(e,t){return e._chain?r(t).chain():t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"underscore-array-methods.js":function e(t,n,e){let r,i,s,o;e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./_setup.js",{ArrayProto(e){s=e}},2),e.link("./_chainResult.js",{default(e){o=e}},3),i(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=s[e];r.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),o(this,n)}})),i(["concat","join","slice"],(function(e){var t=s[e];r.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),o(this,e)}})),e.exportDefault(r)}}}}},cachers:{"package.json":function e(t,n,e){e.exports={name:"@steedos/cachers",version:"2.6.24",main:"lib/index.js"}},lib:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCacherNames=n.clearCacher=n.getCacher=void 0;var r={},i=t("./memory"),s=t("./memory-lru"),o=function(e,t){return r[e]||(e.startsWith("lru.")?r[e]=new s.MemoryLRUCacher(t):r[e]=new i.MemoryCacher),r[e]};n.getCacher=o;var a=function(e){r[e]&&r[e].clear()};n.clearCacher=a;var u=function(){return Object.keys(r)};n.getCacherNames=u},"memory.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryCacher=void 0;var r=t("lodash"),i=function(){function e(){this.cache={}}return e.prototype.get=function(e){return this.cache[e]},e.prototype.delete=function(e){delete this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.clear=function(){this.cache={}},e.prototype.keys=function(){return(0,r.keys)(this.cache)},e.prototype.values=function(){return(0,r.values)(this.cache)},e}();n.MemoryCacher=i},"memory-lru.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryLRUCacher=void 0;var r=t("lodash"),i=t("lru-cache"),s={max:5e3,ttl:null,keygen:null,maxParamsLength:null},o=function(){function e(e){this.opts=(0,r.defaultsDeep)(e,s),this.cache=new i({max:this.opts.max,maxAge:this.opts.ttl?1e3*this.opts.ttl:null,updateAgeOnGet:!!this.opts.ttl})}return e.prototype.get=function(e){return this.cache.get(e)},e.prototype.set=function(e,t,n){return this.cache.set(e,t,n)},e.prototype.delete=function(e){return this.cache.delete(e)},e.prototype.clear=function(){return this.cache.clear()},e.prototype.keys=function(){return this.cache.keys()},e.prototype.values=function(){return this.cache.values()},e}();n.MemoryLRUCacher=o}},node_modules:{"lru-cache":{"package.json":function e(t,n,e){e.exports={name:"lru-cache",version:"7.14.1",main:"index.js"}},"index.js":function e(t,n,e){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="function"==typeof AbortController,s=i?AbortController:class e{constructor(){this.signal=new u}abort(){this.signal.dispatchEvent("abort")}},o="function"==typeof AbortSignal,a="function"==typeof s.AbortSignal,u=o?AbortSignal:a?s.AbortController:class e{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if("abort"===e){this.aborted=!0;const t={type:e,target:this};this.onabort(t),this._listeners.forEach(e=>e(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},l=new Set,c=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;p(n)&&g(n,`${e} option`,`options.${t}`,_)},f=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} method`,`cache.${t}()`,i)}},h=(e,t)=>{const n=`LRU_CACHE_PROPERTY_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} property`,`cache.${t}`,i)}},d=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!l.has(e),g=(e,t,n,r)=>{l.add(e);const i=`The ${t} is deprecated. Please use ${n} instead.`;d(i,"DeprecationWarning",e,r)},m=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),b=e=>m(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=b(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class _{constructor(e={}){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:s,updateAgeOnHas:o,allowStale:a,dispose:u,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:g,maxSize:v=0,maxEntrySize:w=0,sizeCalculation:j,fetchMethod:k,fetchContext:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:D}=e,{length:A,maxAge:E,stale:C}=e instanceof _?{}:e;if(0!==t&&!m(t))throw new TypeError("max option must be a nonnegative integer");const M=t?b(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=w||this.maxSize,this.sizeCalculation=j||A,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=k||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&void 0!==x)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof f?(this.disposeAfter=f,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!S,0!==this.maxEntrySize){if(0!==this.maxSize&&!m(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!m(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!o,this.ttlResolution=m(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||E||0,this.ttl){if(!m(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){l.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";d(t,"UnboundedCacheWarning",e,_)}}C&&c("stale","allowStale"),E&&c("maxAge","ttl"),A&&c("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,n=r.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const n=setTimeout(()=>e=0,this.ttlResolution);n.unref&&n.unref()}return t};this.getRemainingTTL=n=>{const r=this.keyMap.get(n);return void 0===r?0:0===this.ttls[r]||0===this.starts[r]?1/0:this.starts[r]+this.ttls[r]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,r)=>{if(this.isBackgroundFetch(t))return 0;if(!m(n)){if(!r)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!m(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,r){if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return f("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const n=this.keyList[t],i=this.valList[t],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,o={value:s};if(this.ttls){o.ttl=this.ttls[t];const e=r.now()-this.starts[t];o.start=Math.floor(Date.now()-e)}this.sizes&&(o.size=this.sizes[t]),e.unshift([n,o])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:r,noDisposeOnSet:i=this.noDisposeOnSet,size:s=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(s=this.requireSize(e,t,s,o),this.maxEntrySize&&s>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,s),a=!1;else{const n=this.valList[u];t!==n&&(this.isBackgroundFetch(n)?n.__abortController.abort():i||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,s)),this.moveToTail(u)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,n,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,n=this.keyList[t],r=this.valList[t];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,n,"evict"),this.disposeAfter&&this.disposed.push([r,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const n=this.keyMap.get(e);return void 0!==n&&!this.isStale(n)&&(t&&this.updateItemAge(n),!0)}peek(e,{allowStale:t=this.allowStale}={}){const n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){const e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const o=new s,a={signal:o.signal,options:n,context:r},u=t=>(o.signal.aborted||this.set(e,t,a.options),t),l=r=>{if(this.valList[t]===f){const r=!n.noDeleteOnFetchRejection||void 0===f.__staleWhileFetching;r?this.delete(e):this.valList[t]=f.__staleWhileFetching}if(f.__returned===f)throw r},c=t=>t(this.fetchMethod(e,i,a)),f=new Promise(c).then(u,l);return f.__abortController=o,f.__staleWhileFetching=i,f.__returned=null,void 0===t?(this.set(e,f,a.options),t=this.keyMap.get(e)):this.valList[t]=f,f}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,fetchContext:c=this.fetchContext,forceRefresh:f=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r});const h={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:i,noDisposeOnSet:s,size:o,sizeCalculation:a,noUpdateTTL:u,noDeleteOnFetchRejection:l};let d=this.keyMap.get(e);if(void 0===d){const t=this.backgroundFetch(e,d,h,c);return t.__returned=t}{const r=this.valList[d];if(this.isBackgroundFetch(r))return t&&void 0!==r.__staleWhileFetching?r.__staleWhileFetching:r.__returned=r;if(!f&&!this.isStale(d))return this.moveToTail(d),n&&this.updateItemAge(d),r;const i=this.backgroundFetch(e,d,h,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const s=this.valList[i],o=this.isBackgroundFetch(s);if(this.isStale(i))return o?t?s.__staleWhileFetching:void 0:(r||this.delete(e),t?s:void 0);if(o)return;return this.moveToTail(i),n&&this.updateItemAge(i),s}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return f("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const t=this.valList[n];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return f("reset","clear"),this.clear}get length(){return h("length","size"),this.size}static get AbortController(){return s}static get AbortSignal(){return u}}e.exports=_}}}},"form-builder":{"package.json":function e(t,n,e){e.exports={name:"@steedos/form-builder",version:"3.6.2-patch.5",private:!1,publishConfig:{access:"public"},main:"dist/form-builder.min.js",homepage:"https://formbuilder.online/",repository:{url:"https://github.com/kevinchappell/formBuilder.git",type:"git"},files:["dist/**/*","docs/**/*","src/**/*"],author:"Kevin Chappell ",contributors:[],bugs:"https://github.com/kevinchappell/formBuilder/issues",description:"A jQuery plugin for drag and drop form building",keywords:["jquery-plugin","forms","drag and drop","form builder","form create"],license:"MIT",ignore:["**/*","node_modules","test"],config:{files:{test:["test/**/*.spec.js"],pluginsDir:"src/js/control_plugins/",fonts:"src/fonts",sass:"src/sass",formBuilder:{js:"src/js/form-builder.js",sass:["src/sass/form-builder.scss"]},formRender:{js:"src/js/form-render.js",sass:["src/sass/form-render.scss"]},site:["demo/assets/sass/site.scss"]},fontServer:"http://fontello.com",fontelloToken:"09d648f01d6c57cb9f9b8cc55043e0c0"},babel:{presets:[["@babel/preset-env",{targets:{browsers:["> 1%"]},loose:!0}]],comments:!1,plugins:["@babel/plugin-proposal-object-rest-spread","@babel/plugin-proposal-class-properties"]},scripts:{"build:analyze":"webpack --mode production -p --progress --config tools/webpack.config --analyze","build:plugins":"webpack --mode production -p --display-entrypoints --progress --config tools/webpack.plugins.config","build:vendor":"babel-node tools/build-vendor",build:"webpack --mode production -p --progress --config tools/webpack.config","build:all":"npm-run-all build:plugins build:vendor build copy",copy:"cp -a dist/* demo/assets/js/ && cp CONTRIBUTING.md docs/contributing.md && cp LICENSE docs/license.md && npm run copy:lang","copy:lang":"babel-node tools/copy-language-files","deploy:all":"npm-run-all deploy:demo deploy:site","deploy:demo":"node tools/deploy-demo.js","deploy:site":"node tools/deploy-site.js",docs:"mkdocs build",font:"babel-node tools/icon-font",lint:"eslint ./src --ext .js || true","semantic-release":"semantic-release","start:devServer":"webpack-dev-server --mode development --config tools/webpack.config",prestart:"npm-run-all -p build:vendor copy:lang",start:"npm run start:devServer",test:"npm run-script build"},dependencies:{jquery:">=3.4.1","jquery-ui-sortable":"*"},devDependencies:{"@babel/cli":"^7.10.5","@babel/core":"^7.11.4","@babel/node":"^7.10.5","@babel/plugin-proposal-class-properties":"^7.10.4","@babel/plugin-proposal-object-rest-spread":"^7.11.0","@babel/plugin-syntax-object-rest-spread":"^7.8.3","@babel/plugin-transform-destructuring":"^7.10.4","@babel/preset-env":"^7.11.0","@semantic-release/changelog":"^5.0.1","@semantic-release/git":"^9.0.0","@semantic-release/npm":"^7.0.5",autoprefixer:"^9.8.6","babel-eslint":"^10.1.0","babel-loader":"^8.1.0","clean-webpack-plugin":"^3.0.0",clui:"^0.3.6","compression-webpack-plugin":"^5.0.1","concat-files":"^0.1.1","cross-env":"^7.0.2","css-loader":"^4.2.1",eslint:"^7.7.0","eslint-loader":"^4.0.2","formbuilder-languages":"latest","fs-extra":"^9.0.1","html-webpack-harddisk-plugin":"^1.0.2","html-webpack-plugin":"^4.3.0",inquirer:"^7.3.3",mi18n:"^0.4.8","node-sass":"6.0.1","npm-run-all":"^4.1.5",opener:"^1.5.1","postcss-loader":"^3.0.0","replace-in-file":"^6.1.0",request:"^2.88.2","sass-loader":"10.5.2","semantic-release":"^17.1.1",semver:"^7.3.2","style-loader":"^1.2.1",unzipper:"^0.10.11",webpack:"^4.44.1","webpack-bundle-analyzer":"^3.8.0","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.0","wrapper-webpack-plugin":"^2.1.0"},prettier:{singleQuote:!0,trailingComma:"all",printWidth:120,semi:!1,arrowParens:"avoid",spaceAfterFunction:!1},engines:{},release:{branch:"master",verifyConditions:["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"],prepare:["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"]},browserslist:["> 1%"]}},dist:{"form-builder.min.js":[]}}},tslib:{"package.json":function e(t,n,e){e.exports={name:"tslib",version:"2.6.3",module:"tslib.es6.js",main:"tslib.js"}},"tslib.es6.js":function e(t,n,e){e.export({__extends:()=>i,__assign:()=>s,__rest:()=>o,__decorate:()=>a,__param:()=>u,__esDecorate:()=>l,__runInitializers:()=>c,__propKey:()=>f,__setFunctionName:()=>h,__metadata:()=>d,__awaiter:()=>p,__generator:()=>g,__createBinding:()=>m,__exportStar:()=>b,__values:()=>v,__read:()=>y,__spread:()=>_,__spreadArrays:()=>w,__spreadArray:()=>j,__await:()=>k,__asyncGenerator:()=>x,__asyncDelegator:()=>S,__asyncValues:()=>D,__makeTemplateObject:()=>A,__importStar:()=>C,__importDefault:()=>M,__classPrivateFieldGet:()=>T,__classPrivateFieldSet:()=>O,__classPrivateFieldIn:()=>P,__addDisposableResource:()=>I,__disposeResources:()=>R});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return e.runSetters(s=Object.assign||function e(t){for(var n,r=1,i=arguments.length;r=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,r){t(n,r,e)}}function l(e,t,n,r,i,s){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a=r.kind,u="getter"===a?"get":"setter"===a?"set":"value",l=!t&&e?r.static?e:e.prototype:null,c=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),f,h=!1,d=n.length-1;d>=0;d--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(e||null))};var m=(0,n[d])("accessor"===a?{get:c.get,set:c.set}:c[u],p);if("accessor"===a){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(f=o(m.get))&&(c.get=f),(f=o(m.set))&&(c.set=f),(f=o(m.init))&&i.unshift(f)}else(f=o(m))&&("field"===a?i.unshift(f):c[u]=f)}l&&Object.defineProperty(l,r.name,c),h=!0}function c(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(6===a[0]||2===a[0])){n=0;continue}if(3===a[0]&&(!s||a[1]>s[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function _(){for(var e=[],t=0;t1||u(e,t)}))},t&&(i[e]=t(i[e])))}function u(e,t){try{l(r[e](t))}catch(n){h(s[0][3],n)}}function l(e){e.value instanceof k?Promise.resolve(e.value.v).then(c,f):h(s[0][2],e)}function c(e){u("next",e)}function f(e){u("throw",e)}function h(e,t){e(t),s.shift(),s.length&&u(s[0][0],s[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:k(e[r](t)),done:!1}:i?i(t):t}:i}}function D(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=v(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise((function(r,s){i(r,s,(n=e[t](n)).done,n.value)}))}}function i(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&m(t,e,n);return E(t,e),t}function M(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function O(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function P(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function I(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var B="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function R(e){function t(t){e.error=e.hasError?new B(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}e.exportDefault({__extends:i,__assign:s,__rest:o,__decorate:a,__param:u,__metadata:d,__awaiter:p,__generator:g,__createBinding:m,__exportStar:b,__values:v,__read:y,__spread:_,__spreadArrays:w,__spreadArray:j,__await:k,__asyncGenerator:x,__asyncDelegator:S,__asyncValues:D,__makeTemplateObject:A,__importStar:C,__importDefault:M,__classPrivateFieldGet:T,__classPrivateFieldSet:O,__classPrivateFieldIn:P,__addDisposableResource:I,__disposeResources:R})}},"i18next-sprintf-postprocessor":{"package.json":function e(t,n,e){e.exports={name:"i18next-sprintf-postprocessor",version:"0.2.2",main:"./index.js"}},"index.js":function e(t,n,e){e.exports=t("./dist/commonjs/index.js").default},dist:{commonjs:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=t("./sprintf");n.default={name:"sprintf",type:"postProcessor",process:function e(t,n,s){return s.sprintf?"[object Array]"===Object.prototype.toString.apply(s.sprintf)?(0,i.vsprintf)(t,s.sprintf):"object"===r(s.sprintf)?(0,i.sprintf)(t,s.sprintf):t:t},overloadTranslationOptionHandler:function e(t){for(var n=[],r=1;r=0),d[8]){case"b":l=l.toString(2);break;case"c":l=String.fromCharCode(l);break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,d[6]?parseInt(d[6]):0);break;case"e":l=d[7]?l.toExponential(d[7]):l.toExponential();break;case"f":l=d[7]?parseFloat(l).toFixed(d[7]):parseFloat(l);break;case"g":l=d[7]?parseFloat(l).toPrecision(d[7]):parseFloat(l);break;case"o":l=l.toString(8);break;case"s":l=(l=String(l))&&d[7]?l.substring(0,d[7]):l;break;case"u":l>>>=0;break;case"x":l=l.toString(16);break;case"X":l=l.toString(16).toUpperCase()}r.json.test(d[8])?c[c.length]=l:(!r.number.test(d[8])||b&&!d[3]?v="":(v=b?"+":"-",l=l.toString().replace(r.sign,"")),g=d[4]?"0"===d[4]?"0":d[4].charAt(1):" ",m=d[6]-(v+l).length,p=d[6]&&m>0?a(g,m):"",c[c.length]=d[5]?v+l+p:"0"===g?v+p+l:p+v+l)}return c.join("")},i.cache={},i.parse=function(e){for(var t=e,n=[],i=[],s=0;t;){if(null!==(n=r.text.exec(t)))i[i.length]=n[0];else if(null!==(n=r.modulo.exec(t)))i[i.length]="%";else{if(null===(n=r.placeholder.exec(t)))throw new SyntaxError("[sprintf] unexpected placeholder");if(n[2]){s|=1;var o=[],a=n[2],u=[];if(null===(u=r.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o[o.length]=u[1];""!==(a=a.substring(u[0].length));)if(null!==(u=r.key_access.exec(a)))o[o.length]=u[1];else{if(null===(u=r.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");o[o.length]=u[1]}n[2]=o}else s|=2;if(3===s)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i[i.length]=n}t=t.substring(n[0].length)}return i}}}}},mkdirp:{"package.json":function e(t,n,e){e.exports={name:"mkdirp",version:"1.0.4",main:"index.js"}},"index.js":function e(t,n,e){const r=t("./lib/opts-arg.js"),i=t("./lib/path-arg.js"),{mkdirpNative:s,mkdirpNativeSync:o}=t("./lib/mkdirp-native.js"),{mkdirpManual:a,mkdirpManualSync:u}=t("./lib/mkdirp-manual.js"),{useNative:l,useNativeSync:c}=t("./lib/use-native.js"),f=(e,t)=>(e=i(e),t=r(t),l(t)?s(e,t):a(e,t)),h=(e,t)=>(e=i(e),t=r(t),c(t)?o(e,t):u(e,t));f.sync=h,f.native=(e,t)=>s(i(e),r(t)),f.manual=(e,t)=>a(i(e),r(t)),f.nativeSync=(e,t)=>o(i(e),r(t)),f.manualSync=(e,t)=>u(i(e),r(t)),e.exports=f},lib:{"opts-arg.js":function e(t,n,e){const{promisify:r}=t("util"),i=t("fs"),s=e=>{if(e)if("object"==typeof e)e={mode:511,fs:i,...e};else if("number"==typeof e)e={mode:e,fs:i};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8),fs:i}}else e={mode:511,fs:i};return e.mkdir=e.mkdir||e.fs.mkdir||i.mkdir,e.mkdirAsync=r(e.mkdir),e.stat=e.stat||e.fs.stat||i.stat,e.statAsync=r(e.stat),e.statSync=e.statSync||e.fs.statSync||i.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||i.mkdirSync,e};e.exports=s},"path-arg.js":function e(t,n,e){const r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:s}=t("path"),o=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=i(e),"win32"===r){const t=/[*|"<>?:]/,{root:n}=s(e);if(t.test(e.substr(n.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};e.exports=o},"mkdirp-native.js":function e(t,n,e){const{dirname:r}=t("path"),{findMade:i,findMadeSync:s}=t("./find-made.js"),{mkdirpManual:o,mkdirpManualSync:a}=t("./mkdirp-manual.js"),u=(e,t)=>{t.recursive=!0;const n=r(e);return n===e?t.mkdirAsync(e,t):i(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(n=>{if("ENOENT"===n.code)return o(e,t);throw n}))},l=(e,t)=>{t.recursive=!0;const n=r(e);if(n===e)return t.mkdirSync(e,t);const i=s(t,e);try{return t.mkdirSync(e,t),i}catch(o){if("ENOENT"===o.code)return a(e,t);throw o}};e.exports={mkdirpNative:u,mkdirpNativeSync:l}},"find-made.js":function e(t,n,e){const{dirname:r}=t("path"),i=(e,t,n)=>n===t?Promise.resolve():e.statAsync(t).then(e=>e.isDirectory()?n:void 0,n=>"ENOENT"===n.code?i(e,r(t),t):void 0),s=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(i){return"ENOENT"===i.code?s(e,r(t),t):void 0}};e.exports={findMade:i,findMadeSync:s}},"mkdirp-manual.js":function e(t,n,e){const{dirname:r}=t("path"),i=(e,t,n)=>{t.recursive=!1;const s=r(e);return s===e?t.mkdirAsync(e,t).catch(e=>{if("EISDIR"!==e.code)throw e}):t.mkdirAsync(e,t).then(()=>n||e,r=>{if("ENOENT"===r.code)return i(s,t).then(n=>i(e,t,n));if("EEXIST"!==r.code&&"EROFS"!==r.code)throw r;return t.statAsync(e).then(e=>{if(e.isDirectory())return n;throw r},()=>{throw r})})},s=(e,t,n)=>{const i=r(e);if(t.recursive=!1,i===e)try{return t.mkdirSync(e,t)}catch(o){if("EISDIR"!==o.code)throw o;return}try{return t.mkdirSync(e,t),n||e}catch(o){if("ENOENT"===o.code)return s(e,t,s(i,t,n));if("EEXIST"!==o.code&&"EROFS"!==o.code)throw o;try{if(!t.statSync(e).isDirectory())throw o}catch(a){throw o}}};e.exports={mkdirpManual:i,mkdirpManualSync:s}},"use-native.js":function e(t,n,e){const r=t("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,s=i.replace(/^v/,"").split("."),o=+s[0]>10||10==+s[0]&&+s[1]>=12,a=o?e=>e.mkdir===r.mkdir:()=>!1,u=o?e=>e.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:a,useNativeSync:u}}}},util:{"package.json":function e(t,n,e){e.exports={name:"util",version:"0.10.4",browser:{"./support/isBuffer.js":"./support/isBufferBrowser.js"},main:"./util.js"}},support:{"isBuffer.js":"/node_modules/util/support/isBufferBrowser.js","isBufferBrowser.js":function e(t,n,e){e.exports=function e(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}}},"util.js":function e(t,n,e){var r=/%[sdj%]/g;n.format=function(e){if(!w(e)){for(var t=[],n=0;n=s)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return e}})),u=i[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),b(t)?r.showHidden=t:t&&n._extend(r,t),k(r.showHidden)&&(r.showHidden=!1),k(r.depth)&&(r.depth=2),k(r.colors)&&(r.colors=!1),k(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),c(r,e,r.depth)}function a(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function u(e,t){return e}function l(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function c(e,t,r){if(e.customInspect&&t&&E(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return w(i)||(i=c(e,i,r)),i}var s=f(e,t);if(s)return s;var o=Object.keys(t),a=l(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),A(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(t);if(0===o.length){if(E(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(D(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return h(t)}var b="",v=!1,y=["{","}"],_,j;(m(t)&&(v=!0,y=["[","]"]),E(t))&&(b=" [Function"+(t.name?": "+t.name:"")+"]");return x(t)&&(b=" "+RegExp.prototype.toString.call(t)),D(t)&&(b=" "+Date.prototype.toUTCString.call(t)),A(t)&&(b=" "+h(t)),0!==o.length||v&&0!=t.length?r<0?x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),j=v?d(e,t,r,a,o):o.map((function(n){return p(e,t,r,a,n,v)})),e.seen.pop(),g(j,b,y)):y[0]+b+y[1]}function f(e,t){if(k(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return _(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i){for(var s=[],o=0,a=t.length;o-1&&(a=s?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),k(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function g(e,t,n){var r=0,i;return e.reduce((function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function m(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function v(e){return null===e}function y(e){return null==e}function _(e){return"number"==typeof e}function w(e){return"string"==typeof e}function j(e){return"symbol"==typeof e}function k(e){return void 0===e}function x(e){return S(e)&&"[object RegExp]"===M(e)}function S(e){return"object"==typeof e&&null!==e}function D(e){return S(e)&&"[object Date]"===M(e)}function A(e){return S(e)&&("[object Error]"===M(e)||e instanceof Error)}function E(e){return"function"==typeof e}function C(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function M(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(k(s)&&(s=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!i[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var t=process.pid;i[e]=function(){var r=n.format.apply(n,arguments);console.error("%s %d: %s",e,t,r)}}else i[e]=function(){};return i[e]},n.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=m,n.isBoolean=b,n.isNull=v,n.isNullOrUndefined=y,n.isNumber=_,n.isString=w,n.isSymbol=j,n.isUndefined=k,n.isRegExp=x,n.isObject=S,n.isDate=D,n.isError=A,n.isFunction=E,n.isPrimitive=C,n.isBuffer=t("./support/isBuffer");var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",P(),n.format.apply(n,arguments))},n.inherits=t("inherits"),n._extend=function(e,t){if(!t||!S(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},node_modules:{inherits:{"package.json":function e(t,n,e){e.exports={name:"inherits",version:"2.0.3",browser:"./inherits_browser.js",main:"./inherits.js"}},"inherits_browser.js":function e(t,n,e){"function"==typeof Object.create?e.exports=function e(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function e(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}}}},cookies:{"package.json":function e(t,n,e){e.exports={name:"cookies",version:"0.6.2",main:"./lib/cookies"}},lib:{"cookies.js":function e(t,n,e){ +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this,i;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(r).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};function r(t){return this.each((function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof t&&i[t].call(r)}))}n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var s=e(document).find(i);function o(){s.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),s.length||(s=r.closest(".alert")),s.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(s.removeClass("in"),e.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o())};var i=e.fn.alert;e.fn.alert=r,e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.button"),s="object"==typeof n&&n;i||r.data("bs.button",i=new t(this,s)),"toggle"==n?i.toggle():n&&i.setState(n)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",s=r.data();t+="Text",null==s.resetText&&r.data("resetText",r[i]()),setTimeout(e.proxy((function(){r[i](null==s[t]?this.options[t]:s[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.carousel"),s=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),o="string"==typeof n?n:s.slide;i||r.data("bs.carousel",i=new t(this,s)),"number"==typeof n?i.to(n):o?i[o]():s.interval&&i.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),r;if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i,s=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(s)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var i=this.$element.find(".item.active"),s=r||this.getItemForDirection(n,i),o=this.interval,a="next"==n?"left":"right",u=this;if(s.hasClass("active"))return this.sliding=!1;var l=s[0],c=e.Event("slide.bs.carousel",{relatedTarget:l,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=e(this.$indicators.children()[this.getItemIndex(s)]);f&&f.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:l,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(s.addClass(n),"object"==typeof s&&s.length&&s[0].offsetWidth,i.addClass(a),s.addClass(a),i.one("bsTransitionEnd",(function(){s.removeClass([n,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(i.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(h)),o&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var i=function(t){var r=e(this),i=r.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var s=r.attr("data-target")||i,o=e(document).find(s);if(o.hasClass("carousel")){var a=e.extend({},o.data(),r.data()),u=r.attr("data-slide-to");u&&(a.interval=!1),n.call(o,a),u&&o.data("bs.carousel").to(u),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each((function(){var r=e(this),i=r.data("bs.collapse"),s=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&s.toggle&&/show|hide/.test(n)&&(s.toggle=!1),i||r.data("bs.collapse",i=new t(this,s)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e;return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(n=i.data("bs.collapse"))&&n.transitioning)){var s=e.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),n||i.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var u=e.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[o](this.$element[0][u])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,r){var i=e(r);this.addAriaAndCollapsedClass(n(i),i)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var i=e(this);i.attr("data-target")||t.preventDefault();var s=n(i),o,a=s.data("bs.collapse")?"toggle":i.data();r.call(s,a)}))}(jQuery),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function s(r){r&&3===r.which||(e(t).remove(),e(n).each((function(){var t=e(this),n=i(t),s={relatedTarget:this};n.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&e.contains(n[0],r.target)||(n.trigger(r=e.Event("hide.bs.dropdown",s)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",s)))))})))}function o(t){return this.each((function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)}))}r.VERSION="3.4.1",r.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var r=i(n),o=r.hasClass("open");if(s(),!o){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",s);var a={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var r=e(this);if(t.preventDefault(),t.stopPropagation(),!r.is(".disabled, :disabled")){var s=i(r),o=s.hasClass("open");if(!o&&27!=t.which||o&&27==t.which)return 27==t.which&&s.find(n).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",u=s.find(".dropdown-menu"+a);if(u.length){var l=u.index(t.target);38==t.which&&l>0&&l--,40==t.which&&ldocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},l.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),s=i.length;s--;){var o=i[s];if("click"==o)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",u="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(n){var r=this.$element.data();for(var i in r)r.hasOwnProperty(i)&&-1!==e.inArray(i,t)&&delete r[i];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=u(n.template,n.whiteList,n.sanitizeFn)),n},l.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,r){n[e]!=r&&(t[e]=r)})),t},l.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},l.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},l.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,i=this.tip(),s=this.getUID(this.type);this.setContent(),i.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&i.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,u=a.test(o);u&&(o=o.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?i.appendTo(e(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),f=i[0].offsetWidth,h=i[0].offsetHeight;if(u){var d=o,p=this.getPosition(this.$viewport);o="bottom"==o&&c.bottom+h>p.bottom?"top":"top"==o&&c.top-hp.width?"left":"left"==o&&c.left-fo.top+o.height&&(i.top=o.top+o.height-u)}else{var l=t.left-s,c=t.left+s+n;lo.right&&(i.left=o.left+o.width-c)}return i},l.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},l.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},l.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},l.prototype.sanitizeHtml=function(e){return u(e,this.options.whiteList,this.options.sanitizeFn)};var f=e.fn.tooltip;e.fn.tooltip=c,e.fn.tooltip.Constructor=l,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=f,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");function n(n){return this.each((function(){var r=e(this),i=r.data("bs.popover"),s="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new t(this,s)),"string"==typeof n&&i[n]())}))}t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=e.fn.popover;e.fn.popover=n,e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=r,this}}(jQuery),function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var r=e(this),i=r.data("bs.scrollspy"),s="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new t(this,s)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),i=t.data("target")||t.attr("href"),s=/^#./.test(i)&&e(i);return s&&s.length&&s.is(":visible")&&[[s[n]().top+r,i]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),n=this.options.offset+t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(this.scrollHeight!=t&&this.refresh(),e>=n)return s!=(o=i[i.length-1])&&this.activate(o);if(s&&e=r[o]&&(void 0===r[o+1]||e .active"),o=i&&e.support.transition&&(s.length&&s.hasClass("fade")||!!r.find("> .fade").length);function a(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}s.length&&o?s.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),s.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var i=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var i=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var r=e(this),i=r.data("bs.affix"),s="object"==typeof n&&n;i||r.data("bs.affix",i=new t(this,s)),"string"==typeof n&&i[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var i=this.$target.scrollTop(),s=this.$element.offset(),o=this.$target.height();if(null!=n&&"top"==this.affixed)return i=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,i=r.top,s=r.bottom,o=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(s=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof s&&(s=r.bottom(this.$element));var a=this.getState(o,n,i,s);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),l=e.Event(u+".bs.affix");if(this.$element.trigger(l),l.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:o-n-s})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)}))}))}(jQuery)}}}},fibers:{"package.json":function e(t,n,e){e.exports={name:"fibers",version:"5.0.3",main:"fibers"}},"fibers.js":function e(t,n,e,r,i){if(process.fiberLib)e.exports=process.fiberLib;else{var s=t("fs"),o=t("path"),a=t("detect-libc");Math.random();var u=o.join(i,"bin",process.platform+"-"+process.arch+"-"+process.versions.modules+("linux"===process.platform?"-"+a.family:""),"fibers");try{process.fiberLib=e.exports=t(u).Fiber}catch(c){throw console.error("## There is an issue with `node-fibers` ##\n`"+u+".node` is missing.\n\nTry running this to fix the issue: "+process.execPath+" "+i.replace(" ","\\ ")+"/build"),console.error(c.stack||c.message||c),new Error("Missing binary. See message above.")}l(e.exports)}function l(e){try{var t=process.binding("async_wrap"),n;if(t.asyncIdStackSize instanceof Function)n=t.asyncIdStackSize;else{if(void 0===t.constants.kStackLength)throw new Error("Couldn't figure out how to get async stack size");f=t.constants.kStackLength,n=function(){return t.async_hook_fields[f]}}var r=t.popAsyncContext||t.popAsyncIds,i=t.pushAsyncContext||t.pushAsyncIds,s,o;if(!r||!i)throw new Error("Push/pop do not exist");s=void 0===t.constants.kExecutionAsyncId?t.constants.kCurrentAsyncId:t.constants.kExecutionAsyncId,o=void 0===t.constants.kTriggerAsyncId?t.constants.kCurrentTriggerId:t.constants.kTriggerAsyncId;var a=t.async_id_fields||t.async_uid_fields;function u(){for(var e=n(),t=new Array(e);e>0;--e){var i=a[s];t[e-1]={asyncId:i,triggerId:a[o]},r(i)}return t}function l(e){for(var t=0;t0)i.changeLanguage(e,r);else if(0!=a[u]){a[u]=0;var l=new XMLHttpRequest;l.overrideMimeType("application/json"),l.open("GET",u,!1),l.send(null),200===l.status?a[u]=1:a[u]=-1,n.addResourceBundle(e,o,JSON.parse(l.response)||{}),i.changeLanguage(e,r)}};n.changeLanguage=p;var g=function(e,t,n){return i.format(e,t,n)};n.format=g;var m=function(){return i.languages};n.getLanguages=m;var b=function(e,t){return i.loadLanguages(e,t)};n.loadLanguages=b;var v=function(e,t){return i.loadNamespaces(e,t)};n.loadNamespaces=v;var y=function(e,t){return i.on(e,t)};n.on=y;var _=function(e,t){return i.off(e,t)};n.off=_,r.__exportStar(t("./i18n/i18n"),n),r.__exportStar(t("./i18n/i18n.app"),n),r.__exportStar(t("./translations"),n)},i18n:{"i18n.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fallbackKeys=n.getObjectI18nTemplate=n.translationI18nObjects=n.addObjectsI18n=n.translationI18nObject=void 0;var r=t("../index"),i=t("underscore"),s=t("clone"),o="_",a="base",u="core",l="translation",c=function(e,t){var n={lng:t,ns:l};if((0,r.exists)(e,n))return(0,r._t)(e,n)},f=function(e){return"".concat(e,"__object")},h=function(e,t){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t)},d=function(e,t){var n=h(e,t);return"".concat(n).concat("_","inlineHelpText")},p=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","group").concat("_").concat(n)},g=function(e,t,n){return t&&(t=t.replace(/\./g,"_")),"".concat(e).concat("_","field").concat("_").concat(t).concat("_","options").concat("_").concat(n)},m=function(e,t){return"".concat(e).concat("_","action").concat("_").concat(t)},b=function(e,t){return"".concat(e).concat("_","listview").concat("_").concat(t)},v=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},y=function(e,t,n){var r=f(t);return c(r,e)||n||""},_=function(e,t,n,r,i){var s=h(t,n),o=c(s,e);if(!o){var a=v(i);a&&"base"!=t&&"core"!=t&&(o=_(e,a,n,r,i))}return o||r||""},w=function(e,t,n,r,i){var s=d(t,n),o=c(s,e);if(!o){var a=v(i);a&&"base"!=t&&"core"!=t&&(o=w(e,a,n,r,i))}return o||r||""},j=function(e,t,n,r){var i=p(t,n);return c(i,e)||r||""},k=function(e,t,n,r,i,s){var o=g(t,n,r),a=c(o,e);if(!a){var u=v(s);u&&"base"!=t&&"core"!=t&&(a=k(e,u,n,r,i,s))}return a||i||""},x=function(e,t,n,r,i){var s=m(t,n),o=c(s,e);if(!o){var a=v(i);a&&"base"!=t&&"core"!=t&&(o=x(e,a,n,r,i))}return o||r||""},S=function(e,t,n,r,i){var s=b(t,n),o=c(s,e);if(!o){var a=v(i);a&&"base"!=t&&"core"!=t&&(o=S(e,a,n,r,i))}return o||r||""},D=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},A=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;return e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(D(e))}))):n.push(D(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},E=function(e,t,n){n.label=y(e,t,n.label),i.each(n.fields,(function(r,s){if(r.label=_(e,t,s,r.label,n.datasource),r.inlineHelpText&&(r.inlineHelpText=w(e,t,s,r.inlineHelpText,n.datasource)),r.group&&(r.group=j(e,t,r.group,r.group)),r.options){var o=[];i.each(r.options,(function(r){if(i.has(r,"value")){var a=k(e,t,s,r.value,r.label,n.datasource);o.push(i.extend({},r,{label:a}))}else o.push(r)})),r.options=o}})),i.each(n.actions,(function(r,i){r.label=x(e,t,i,r.label,n.datasource)})),i.each(n.list_views,(function(r,i){r.label=S(e,t,i,r.label,n.datasource)}))};n.translationI18nObject=E;var C=function(e){i.each(e,(function(e){(0,r.addResourceBundle)(e.lng,l,e.data,!0,!0)}))};n.addObjectsI18n=C;var M=function(e,t){i.each(t,(function(t,r){(0,n.translationI18nObject)(e,r,t)}))};n.translationI18nObjects=M;var T=function(e,t,n){var r=s(n);A(r);var o={};return o[f(t)]=y(e,t,r.label),i.each(r.fields,(function(n,s){o[h(t,s)]=_(e,t,s,n.label),n.inlineHelpText&&(o[d(t,s)]=w(e,t,s,n.inlineHelpText,r.datasource)),n.group&&(o[p(t,n.group)]=j(e,t,n.group,n.group)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(o[g(t,s,n.value)]=k(e,t,s,n.value,n.label))}))})),i.each(r.actions,(function(n,r){o[m(t,r)]=x(e,t,r,n.label)})),i.each(r.list_views,(function(n,r){o[b(t,r)]=S(e,t,r,n.label)})),o};n.getObjectI18nTemplate=T,n.fallbackKeys={getObjectLabelKey:f,getObjectFieldLabelKey:h,getObjectFieldInlineHelpTextLabelKey:d,getObjectFieldGroupKey:p,getObjectFieldOptionsLabelKey:g,getObjectActionLabelKey:m,getObjectListviewLabelKey:b}},"i18n.app.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.appFallbackKeys=n.getAppI18nTemplate=n.translationI18nApps=n.translationI18nMenus=void 0;var r=t("../index"),i=t("underscore"),s=t("clone"),o="translation",a="_",u=function(e,t){var n={lng:t,ns:o};if((0,r.exists)(e,n))return(0,r._t)(e,n)},l=function(e){return"app".concat("_").concat(e).concat("_","name")},c=function(e){return"app".concat("_").concat(e).concat("_","description")},f=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");return"".concat(e).concat("_","tab_group").concat("_").concat(n)},h=function(e){return"menu".concat("_").concat(e)},d=function(e){return"tab".concat("_").concat(e)},p=function(e,t,n){var r=l(t);return u(r,e)||n||""},g=function(e,t,n){var r=c(t);return u(r,e)||n||""},m=function(e,t,n){var r=h(t);return u(r,e)||n||""},b=function(e,t,r){r.label=p(e,t,r.label||r.name),r.description=g(e,t,r.description),(0,n.translationI18nMenus)(e,r.admin_menus)},v=function(e,t){i.each(t,(function(t){var n=m(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationI18nMenus=v;var y=function(e,t){i.each(t,(function(t,n){b(e,n,t)}))};n.translationI18nApps=y;var _=function(e,t,n){var r=s(n),o={};return o[l(t)]=p(e,t,r.label||r.name),o[c(t)]=g(e,t,r.description),i.each(r.admin_menus,(function(t){o[h(t._id)]=m(e,t._id,t.label||t.name)})),o};n.getAppI18nTemplate=_,n.appFallbackKeys={getAppLabelKey:l,getAppDescriptionKey:c,getAppGroupKey:f,getMenuLabelKey:h,getTabKey:d}}},translations:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SteedosTranslationPrefixKeys=n.convertObject=void 0;var r=t("tslib"),i=t("underscore");r.__exportStar(t("./objectTranslation"),n),r.__exportStar(t("./translation"),n),r.__exportStar(t("./templates/objectTranslation"),n),r.__exportStar(t("./templates/translation"),n);var s=function(e){var t;return(t=e.split(":")).length>1?{label:t[0],value:t[1]}:{label:t[0],value:t[0]}},o=function(e){i.forEach(e.fields,(function(e,t){var n=[];if(e.options&&i.isString(e.options))try{i.forEach(e.options.split("\n"),(function(e){var t;e.indexOf(",")?(t=e.split(","),i.forEach(t,(function(e){return n.push(s(e))}))):n.push(s(e))})),e.options=n}catch(r){console.error("convertFieldsOptions error: ",e.options,r)}else if(e.options&&i.isArray(e.options))try{i.forEach(e.options,(function(e){i.isString(e)?n.push(s(e)):n.push(e)})),e.options=n}catch(r){console.error("Creator.convertFieldsOptions",e.options,r)}else e.options&&!i.isFunction(e.options)&&!i.isArray(e.options)&&i.isObject(e.options)&&(i.each(e.options,(function(e,t){return n.push({label:e,value:t})})),e.options=n)}))},a;n.convertObject=o,function(e){e.Object="CustomObject",e.Field="CustomField",e.Action="CustomAction",e.Listview="CustomListview",e.Permission="CustomPermission",e.ValidationRule="CustomValidationRule",e.Application="CustomApplication",e.Tab="CustomTabs",e.Permissionset="CustomPermissionset",e.Profile="CustomProfile",e.Report="CustomReport",e.Workflow="Workflow",e.Layout="Layout",e.Client="Client",e.Server="Server",e.Function="Function",e.Router="Router",e.Trigger="Trigger"}(a=n.SteedosTranslationPrefixKeys||(n.SteedosTranslationPrefixKeys={}))},"objectTranslation.js":function e(t,n,e,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addObjectsTranslation=n.getObjectTranslationTemplate=n.translationObjects=n.translationObject=n.translationObjectLabel=void 0;var i=t("underscore"),s=t("./"),o=t("../index"),a=t("./index"),u=t("../i18n/i18n"),l=t("lodash"),c=t("crypto"),f,h=(0,t("@steedos/cachers").getCacher)("lru.translations.objects");function d(e){var t;return c.createHash("md5").update(e).digest("hex")}var p=function(e,t){return"".concat(e,"_").concat(t.name,"_").concat(d(JSON.stringify(t)))},g=t("clone"),m=".",b="base",v="core",y="translation",_="object",w="field",j="listview",k="action",x=function(e,t){var n={lng:t,ns:y,keySeparator:!1};if((0,o.exists)(e,n))return(0,o._t)(e,n)},S=function(e){if(!e)return"";var t="core";return"default"!==e&&"meteor"!==e||(t="base"),t},D=function(e){switch(e){case"object":return s.SteedosTranslationPrefixKeys.Object;case"field":return s.SteedosTranslationPrefixKeys.Field;case"listview":return s.SteedosTranslationPrefixKeys.Listview;case"action":return s.SteedosTranslationPrefixKeys.Action;default:return"CustomLabels"}},A=function(e){var t;return[D(),e].join(".")},E=function(e){var t;return[D("object"),e,"label"].join(".")},C=function(e){var t;return[D("object"),e,"description"].join(".")},M=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"label"].join(".")},T=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"help"].join(".")},O=function(e,t){var n;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"description"].join(".")},P=function(e,t){var n=t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_"),r;return[D("field"),e,"group",n].join(".")},I=function(e,t,n){var r;return t&&(t=t.replace(/\./g,"_")),[D("field"),e,t,"options",n].join(".")},B=function(e,t){var n;return[D("action"),e,t].join(".")},R=function(e,t){var n;return[D("listview"),e,t].join(".")},F=function(e,t,n){var r,i=[E(t)],s=u.fallbackKeys.getObjectLabelKey(t);return s&&i.push(s),x(i,e)||n||""};n.translationObjectLabel=F;var N=function(e,t,n){var r=C(t);return x(r,e)||n||""},L=function(e,t,n,r,i,s){var o,a=[M(t,n)],l=u.fallbackKeys.getObjectFieldLabelKey(t,n);l&&a.push(l);var c=x(a,e);if(1!=s&&!c){var f=S(i);f&&"base"!=t&&"core"!=t&&(c=L(e,f,n,r,i))}return c||r||""},z=function(e,t,n,r,i,s){var o,a=[T(t,n)],l=u.fallbackKeys.getObjectFieldInlineHelpTextLabelKey(t,n);l&&a.push(l);var c=x(a,e);if(1!=s&&!c){var f=S(i);f&&"base"!=t&&"core"!=t&&(c=z(e,f,n,r,i))}return c||r||""},U=function(e,t,n,r,i,s){var o=O(t,n),a,u=x([o],e);if(1!=s&&!u){var l=S(i);l&&"base"!=t&&"core"!=t&&(u=U(e,l,n,r,i))}return u||r||""},q=function(e,t,n,r,i,s){var o,a=[P(t,n)],l=u.fallbackKeys.getObjectFieldGroupKey(t,n);l&&a.push(l);var c=x(a,e);if(1!=s&&!c){var f=S(i);f&&"base"!=t&&"core"!=t&&(c=q(e,f,n,r,i))}return c||r||""},$=function(e,t,n,r,i,s,o){var a,l=[I(t,n,r)],c=u.fallbackKeys.getObjectFieldOptionsLabelKey(t,n,r);c&&l.push(c);var f=x(l,e);if(1!=o&&!f){var h=S(s);h&&"base"!=t&&"core"!=t&&(f=$(e,h,n,r,i,s))}return f||i||""},W=function(e,t,n,r,i,s){var o,a=[B(t,n)],l=u.fallbackKeys.getObjectActionLabelKey(t,n);l&&a.push(l);var c=x(a,e);if(1!=s&&!c){var f=S(i);f&&"base"!=t&&"core"!=t&&(c=W(e,f,n,r,i))}return c||r||""},H=function(e,t,n,r,i,s){var o,a=[R(t,n)],l=u.fallbackKeys.getObjectListviewLabelKey(t,n);l&&a.push(l);var c=x(a,e);if(1!=s&&!c){var f=S(i);f&&"base"!=t&&"core"!=t&&(c=H(e,f,n,r,i))}return c||r||""},Y=function(e,t,r,s,o){void 0===o&&(o=!1);var u=p(e,r);"test_obj_layout1"===t&&console.log("translationObject",t,u);var c=h.get(u);if(c)return Object.assign(r,(0,l.cloneDeep)(c));s&&(0,a.convertObject)(r),r.label=(0,n.translationObjectLabel)(e,t,r.label),r.description=N(e,t,r.description),i.each(r.fields,(function(n,s){if(n.label=L(e,t,s,n.label,r.datasource,o),n.inlineHelpText&&(n.inlineHelpText=z(e,t,s,n.inlineHelpText,r.datasource,o)),n.group&&(n.group=q(e,t,n.group,n.group,r.datasource,o)),n.options){var a=[];i.each(n.options,(function(n){if(i.has(n,"value")){var u=$(e,t,s,n.value,n.label,r.datasource,o);a.push(i.extend({},n,{label:u}))}else a.push(n)})),n.options=a}})),i.each(r.actions,(function(n,i){n.label=W(e,t,i,n.label,r.datasource,o)})),i.each(r.list_views,(function(n,i){n.label=H(e,t,i,n.label,r.datasource,o)})),h.set(u,(0,l.cloneDeep)(r))};n.translationObject=Y;var V=function(e,t){i.each(t,(function(t,r){(0,n.translationObject)(e,r,t)}))};n.translationObjects=V;var G=function(e,t,r){var s=g(r);(0,a.convertObject)(s);var o={};return o[E(t)]=(0,n.translationObjectLabel)(e,t,s.label),o[C(t)]=N(e,t,s.description),i.each(s.fields,(function(n,r){o[M(t,r)]=L(e,t,r,n.label),n.inlineHelpText&&(o[T(t,r)]=z(e,t,r,n.inlineHelpText,s.datasource)),n.description&&(o[O(t,r)]=U(e,t,r,n.description,s.datasource)),n.group&&(o[P(t,n.group)]=q(e,t,n.group,n.group,s.datasource)),n.options&&i.each(n.options,(function(n){i.has(n,"value")&&(o[I(t,r,n.value)]=$(e,t,r,n.value,n.label))}))})),i.each(s.actions,(function(n,r){o[B(t,r)]=W(e,t,r,n.label)})),i.each(s.list_views,(function(n,r){o[R(t,r)]=H(e,t,r,n.label)})),o};function K(e,t){var n=g(e);(0,a.convertObject)(n);var r={},s=n.name;return s||console.error("Error: Invalid objectTranslation:"+t),r[E(s)]=n.label,r[C(s)]=n.description,i.each(n.fields,(function(e,t){r[M(s,t)]=e.label,e.help&&(r[T(s,t)]=e.help),e.description&&(r[O(s,t)]=e.description),e.options&&i.each(e.options,(function(e){i.has(e,"value")&&(r[I(s,t,e.value)]=e.label)}))})),i.each(n.groups,(function(e,t){r[P(s,t)]=e})),i.each(n.actions,(function(e,t){r[B(s,t)]=e.label})),i.each(n.listviews,(function(e,t){r[R(s,t)]=e.label})),i.each(n.CustomLabels,(function(e,t){r[A(t)]=e})),r}n.getObjectTranslationTemplate=G;var X=function(e){i.each(e,(function(e){var t=K(e.data,e.__filename);(0,o.addResourceBundle)(e.lng,y,t,!0,!0)}))};n.addObjectsTranslation=X},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addTranslations=n.convertTranslation=n.convertTranslationData=n.getAppTranslationTemplate=n.translationApps=n.translationMenus=n.translationApp=n.translationTabLabel=n.translationTabGroup=void 0;var r=t("../index"),i=t("underscore"),s=t("./"),o=t("../i18n/i18n.app"),a=t("clone"),u="translation",l=".",c="app",f="menu",h="tab",d=function(e){switch(e){case"app":return s.SteedosTranslationPrefixKeys.Application;case"tab":return s.SteedosTranslationPrefixKeys.Tab;default:return"CustomLabels"}},p=function(e){var t;return[d(),e].join(".")},g=function(e,t){var n={lng:t,ns:u,keySeparator:!1};if((0,r.exists)(e,n))return(0,r._t)(e,n)},m=function(e){var t;return[d("app"),e,"name"].join(".")},b=function(e){var t;return[d("app"),e,"description"].join(".")},v=function(e,t){var n,r;return[d("app"),e,"groups",t.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_")].join(".")},y=function(e){var t;return[d("menu"),"menu_".concat(e)].join(".")},_=function(e){var t;return[d("tab"),e].join(".")},w=function(e,t,n){var r,i=[m(t)],s=o.appFallbackKeys.getAppLabelKey(t);return s&&i.push(s),g(i,e)||n||""},j=function(e,t,n){var r,i=[b(t)],s=o.appFallbackKeys.getAppDescriptionKey(t);return s&&i.push(s),g(i,e)||n||""},k=function(e,t,n,r){var i,s=[v(t,n)],a=o.appFallbackKeys.getAppGroupKey(t,n);return a&&s.push(a),g(s,e)||r||""};n.translationTabGroup=k;var x=function(e,t,n){var r,i=[y(t)],s=o.appFallbackKeys.getMenuLabelKey(t);return s&&i.push(s),g(i,e)||n||""},S=function(e,t,n){var r,i=[_(t)],s=o.appFallbackKeys.getTabKey(t);return s&&i.push(s),g(i,e)||n||""};n.translationTabLabel=S;var D=function(e,t,r){r.label=w(e,t,r.label||r.name),r.description=j(e,t,r.description),i.each(r.tab_groups,(function(i,s){r.tab_groups[s].id=i.id||i.group_name,r.tab_groups[s].group_name=(0,n.translationTabGroup)(e,t,i.group_name,i.group_name)})),(0,n.translationMenus)(e,r.admin_menus)};n.translationApp=D;var A=function(e,t){i.each(t,(function(t){var n=x(e,t._id,t.label||t.name);t.label=n,t.name=n}))};n.translationMenus=A;var E=function(e,t){i.each(t,(function(t,r){(0,n.translationApp)(e,r,t)}))};n.translationApps=E;var C=function(e,t,n){var r=a(n),s={};return s[m(t)]=w(e,t,r.label||r.name),s[b(t)]=j(e,t,r.description),i.each(r.admin_menus,(function(t){s[y(t._id)]=x(e,t._id,t.label||t.name)})),s};n.getAppTranslationTemplate=C;var M=function(e,t,n){i.isArray(n)?i.each(n,(function(e){M(e,"",e)})):n&&i.each(i.keys(n),(function(r){var s=t?"".concat(t,".").concat(r):r,o=n[r];"object"==typeof o?i.isArray(o)?i.each(o,(function(e){M(e,s,o)})):M(e,s,o):e[s]=o}))};function T(e){for(var t in e)"object"==typeof e[t]&&M(e,t,e[t]);return e}n.convertTranslationData=T;var O=function(e){var t=a(e),n={};return i.each(t.CustomApplications,(function(e,t){n[m(t)]=e.name,n[b(t)]=e.description,i.each(e.groups,(function(e,r){n[v(t,r)]=e}))})),i.each(t.CustomTabs,(function(e,t){n[_(t)]=e})),i.each(t.CustomLabels,(function(e,t){var r;if("simpleschema"!=t&&i.isObject(e)){var s=T(((r={})[t]=e,r));i.each(s,(function(e,t){i.isObject(e)||(n[p(t)]=e)}))}else n[p(t)]=e})),n};n.convertTranslation=O;var P=function(e){i.each(e,(function(e){var t=(0,n.convertTranslation)(e.data);(0,r.addResourceBundle)(e.lng,u,t,!0,!0)}))};n.addTranslations=P},templates:{"objectTranslation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getObjectMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),s=t("clone");function o(e,t){var n={};return r.each(e,(function(e){n[e]="help"===e?t.inlineHelpText||"":t[e]||""})),n}function a(e){return o(["label","description"],e)}function u(e){switch(e.type){case"select":return o(["label","help","options","description"],e);default:return o(["label","help","description"],e)}}function l(e){return o(["label"],e)}function c(e){return o(["label"],e)}function f(e){var t={};return r.each(e,(function(e,n){t[n]=u(e)})),t}function h(e){var t={};return r.each(e,(function(e,n){t[n]=c(e)})),t}function d(e){var t={};return r.each(e,(function(e,n){t[n]=l(e)})),t}function p(e,t){var n={};return r.each(e,(function(e,r){if(e.group){var i=e.group.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");n[i]=t[r].group}})),n}var g=function(e,t,n,o){void 0===o&&(o=!1);var u=s(n);1!=o&&(0,i.translationObject)(e,t,u,!0,o);var l=Object.assign({},a(u));l=Object.assign({},l,{fields:f(u.fields)});var c=p(n.fields,u.fields);r.isEmpty(c)||(l=Object.assign({},l,{groups:c}));var g=d(u.list_views);r.isEmpty(g)||(l=Object.assign({},l,{listviews:g}));var m=h(u.actions);return r.isEmpty(m)||(l=Object.assign({},l,{actions:m})),Object.assign({name:t},l)};n.getObjectMetadataTranslationTemplate=g},"translation.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getAppMetadataTranslationTemplate=void 0;var r=t("underscore"),i=t("../index"),s=t("clone");function o(e,t){var n={};return r.each(e,(function(e){n[e]=t[e]||""})),n}function a(e){var t={groups:{}};return e?(r.each(e,(function(e){var n=e.group_name.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t.groups[n]=e.group_name})),t):{}}var u=function(e){return Object.assign({},o(["name","description"],e),a(e.tab_groups))},l=function(e){var t={};return r.each(e,(function(e,n){t[n]=n})),t},c=function(e){var t={};return r.each(e,(function(e){var n=e.toLocaleLowerCase().replace(/\%/g,"_").replace(/\./g,"_").replace(/\ /g,"_");t[n]=e})),t},f=function(e,t,n){var r,o=s(n);(0,i.translationApp)(e,t,o);var a={},f;return o.tab_items?a=l(o.tab_items):o.tabs&&(a=c(o.tabs)),Object.assign({},{CustomApplications:(r={},r[t]=u(o),r)},{CustomTabs:a})};n.getAppMetadataTranslationTemplate=f}}}},node_modules:{i18next:{"package.json":function e(t,n,e){e.exports={name:"i18next",version:"19.9.2",module:"./dist/esm/i18next.js",main:"./dist/cjs/i18next.js"}},dist:{esm:{"i18next.js":function e(t,n,e){let r,i,s,o,a,u,l,c;e.link("@babel/runtime/helpers/esm/typeof",{default(e){r=e}},0),e.link("@babel/runtime/helpers/esm/objectSpread",{default(e){i=e}},1),e.link("@babel/runtime/helpers/esm/classCallCheck",{default(e){s=e}},2),e.link("@babel/runtime/helpers/esm/createClass",{default(e){o=e}},3),e.link("@babel/runtime/helpers/esm/possibleConstructorReturn",{default(e){a=e}},4),e.link("@babel/runtime/helpers/esm/getPrototypeOf",{default(e){u=e}},5),e.link("@babel/runtime/helpers/esm/assertThisInitialized",{default(e){l=e}},6),e.link("@babel/runtime/helpers/esm/inherits",{default(e){c=e}},7);var f={type:"logger",log:function e(t){this.output("log",t)},warn:function e(t){this.output("warn",t)},error:function e(t){this.output("error",t)},output:function e(t,n){console&&console[t]&&console[t].apply(console,n)}},h,d=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.init(t,n)}return o(e,[{key:"init",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||f,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function e(t){this.debug=t}},{key:"log",value:function e(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var s="string"!=typeof t?[].concat(t):t.split(".");s.length>1;){if(i())return{};var o=r(s.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return i()?{}:{obj:e,k:r(s.shift())}}function y(e,t,n){var r=v(e,t,Object),i,s;r.obj[r.k]=n}function _(e,t,n,r){var i=v(e,t,Object),s=i.obj,o=i.k;s[o]=s[o]||[],r&&(s[o]=s[o].concat(n)),r||s[o].push(n)}function w(e,t){var n=v(e,t),r=n.obj,i=n.k;if(r)return r[i]}function j(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function k(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):k(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function D(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var A="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,E=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return s(this,t),n=a(this,u(t).call(this)),A&&p.call(l(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return c(t,e),o(t,[{key:"addNamespaces",value:function e(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function e(t){var n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=[t,n];return r&&"string"!=typeof r&&(o=o.concat(r)),r&&"string"==typeof r&&(o=o.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(o=t.split(".")),w(this.data,o)}},{key:"addResource",value:function e(t,n,r,i){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(i=n,n=(a=t.split("."))[1]),this.addNamespaces(n),y(this.data,a,i),s.silent||this.emit("added",t,n,r,i)}},{key:"addResources",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var s in r)"string"!=typeof r[s]&&"[object Array]"!==Object.prototype.toString.apply(r[s])||this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}},{key:"addResourceBundle",value:function e(t,n,r,s,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[t,n];t.indexOf(".")>-1&&(s=r,r=n,n=(u=t.split("."))[1]),this.addNamespaces(n);var l=w(this.data,u)||{};s?k(l,r,o):l=i({},l,r),y(this.data,u,l),a.silent||this.emit("added",t,n,r)}},{key:"removeResourceBundle",value:function e(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}},{key:"hasResourceBundle",value:function e(t,n){return void 0!==this.getResource(t,n)}},{key:"getResourceBundle",value:function e(t,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(t,n)):this.getResource(t,n)}},{key:"getDataByLanguage",value:function e(t){return this.data[t]}},{key:"toJSON",value:function e(){return this.data}}]),t}(p),C={processors:{},addPostProcessor:function e(t){this.processors[t.name]=t},handle:function e(t,n,r,i,s){var o=this;return t.forEach((function(e){o.processors[e]&&(n=o.processors[e].process(n,r,i,s))})),n}},M={},T=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,t),n=a(this,u(t).call(this)),A&&p.call(l(n)),b(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,l(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=d.create("translator"),n}return c(t,e),o(t,[{key:"changeLanguage",value:function e(t){t&&(this.language=t)}},{key:"exists",value:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function e(t,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=n.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var o=t.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:t,namespaces:s};var a=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(s=a.shift()),t=a.join(i)}return"string"==typeof s&&(s=[s]),{key:t,namespaces:s}}},{key:"translate",value:function e(n,s,o){var a=this;if("object"!==r(s)&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),s||(s={}),null==n)return"";Array.isArray(n)||(n=[String(n)]);var u=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,l=this.extractFromKey(n[n.length-1],s),c=l.key,f=l.namespaces,h=f[f.length-1],d=s.lng||this.language,p=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var g=s.nsSeparator||this.options.nsSeparator;return h+g+c}return c}var m=this.resolve(n,s),b=m&&m.res,v=m&&m.usedKey||c,y=m&&m.exactUsedKey||c,_=Object.prototype.toString.apply(b),w=["[object Number]","[object Function]","[object RegExp]"],j=void 0!==s.joinArrays?s.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof b&&"boolean"!=typeof b&&"number"!=typeof b;if(k&&b&&x&&w.indexOf(_)<0&&("string"!=typeof j||"[object Array]"!==_)){if(!s.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,b,s):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var S="[object Array]"===_,D=S?[]:{},A=S?y:v;for(var E in b)if(Object.prototype.hasOwnProperty.call(b,E)){var C="".concat(A).concat(u).concat(E);D[E]=this.translate(C,i({},s,{joinArrays:!1,ns:f})),D[E]===C&&(D[E]=b[E])}b=D}}else if(k&&"string"==typeof j&&"[object Array]"===_)(b=b.join(j))&&(b=this.extendTranslation(b,n,s,o));else{var M=!1,T=!1,O=void 0!==s.count&&"string"!=typeof s.count,P=t.hasDefaultValue(s),I=O?this.pluralResolver.getSuffix(d,s.count):"",B=s["defaultValue".concat(I)]||s.defaultValue;!this.isValidLookup(b)&&P&&(M=!0,b=B),this.isValidLookup(b)||(T=!0,b=c);var R=P&&B!==b&&this.options.updateMissing;if(T||M||R){if(this.logger.log(R?"updateKey":"missingKey",d,h,c,R?B:b),u){var F=this.resolve(c,i({},s,{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{},i,s,o,a,u;return"string"==typeof t&&(t=[t]),t.forEach((function(e){if(!n.isValidLookup(i)){var t=n.extractFromKey(e,r),l=t.key;s=l;var c=t.namespaces;n.options.fallbackNS&&(c=c.concat(n.options.fallbackNS));var f=void 0!==r.count&&"string"!=typeof r.count,h=void 0!==r.context&&"string"==typeof r.context&&""!==r.context,d=r.lngs?r.lngs:n.languageUtils.toResolveHierarchy(r.lng||n.language,r.fallbackLng);c.forEach((function(e){n.isValidLookup(i)||(u=e,!M["".concat(d[0],"-").concat(e)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(u)&&(M["".concat(d[0],"-").concat(e)]=!0,n.logger.warn('key "'.concat(s,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(t){if(!n.isValidLookup(i)){a=t;var s=l,u=[s],c,d;if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(u,l,t,e,r);else f&&(c=n.pluralResolver.getSuffix(t,r.count)),f&&h&&u.push(s+c),h&&u.push(s+="".concat(n.options.contextSeparator).concat(r.context)),f&&u.push(s+=c);for(;d=u.pop();)n.isValidLookup(i)||(o=d,i=n.getResource(t,e,d,r))}})))}))}})),{res:i,usedKey:s,exactUsedKey:o,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function e(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}}],[{key:"hasDefaultValue",value:function e(t){var n="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&void 0!==t[r])return!0;return!1}}]),t}(p);function O(e){return e.charAt(0).toUpperCase()+e.slice(1)}var P=function(){function e(t){s(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=d.create("languageUtils")}return o(e,[{key:"getScriptPartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function e(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function e(t){if("string"==typeof t&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=O(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=O(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=O(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function e(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function e(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function e(t){var n=this,r;return t?(t.forEach((function(e){if(!r){var t=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(t)||(r=t)}})),!r&&this.options.supportedLngs&&t.forEach((function(e){if(!r){var t=n.getLanguagePartFromCode(e);if(n.isSupportedCode(t))return r=t;r=n.options.supportedLngs.find((function(e){if(0===e.indexOf(t))return e}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function e(t,n){if(!t)return[];if("function"==typeof t&&(t=t(n)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function e(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],o=function e(t){t&&(r.isSupportedCode(t)?s.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):"string"==typeof t&&o(this.formatLanguageCode(t)),i.forEach((function(e){s.indexOf(e)<0&&o(r.formatLanguageCode(e))})),s}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],B={1:function e(t){return Number(t>1)},2:function e(t){return Number(1!=t)},3:function e(t){return 0},4:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function e(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function e(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function e(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function e(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function e(t){return Number(t>=2)},10:function e(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function e(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function e(t){return Number(t%10!=1||t%100==11)},13:function e(t){return Number(0!==t)},14:function e(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function e(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function e(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function e(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function e(t){return Number(0==t?0:1==t?1:2)},19:function e(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function e(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function e(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function e(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function R(){var e={};return I.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:B[t.fc]}}))})),e}var F=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.languageUtils=t,this.options=n,this.logger=d.create("pluralResolver"),this.rules=R()}return o(e,[{key:"addRule",value:function e(t,n){this.rules[t]=n}},{key:"getRule",value:function e(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function e(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function e(t,n){return this.getSuffixes(t).map((function(e){return n+e}))}},{key:"getSuffixes",value:function e(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(e){return n.getSuffix(t,e)})):[]}},{key:"getSuffix",value:function e(t,n){var r=this,i=this.getRule(t);if(i){var s=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),o=i.numbers[s];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function e(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.logger=d.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return o(e,[{key:"init",value:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=void 0!==n.escape?n.escape:D,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?x(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?x(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?x(n.nestingPrefix):n.nestingPrefixEscaped||x("$t("),this.nestingSuffix=n.nestingSuffix?x(n.nestingSuffix):n.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function e(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function e(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function e(t,n,r,i){var s=this,o,a,u,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var f=function e(t){if(t.indexOf(s.formatSeparator)<0){var o=j(n,l,t);return s.alwaysFormat?s.format(o,void 0,r):o}var a=t.split(s.formatSeparator),u=a.shift().trim(),c=a.join(s.formatSeparator).trim();return s.format(j(n,l,u),c,r,i)};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p;return[{regex:this.regexpUnescape,safeValue:function e(t){return c(t)}},{regex:this.regexp,safeValue:function e(t){return s.escapeValue?c(s.escape(t)):c(t)}}].forEach((function(e){for(u=0;o=e.regex.exec(t);){if(void 0===(a=f(o[1].trim())))if("function"==typeof h){var n=h(t,o,i);a="string"==typeof n?n:""}else{if(d){a=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(t)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=m(a));if(t=t.replace(o[0],e.safeValue(a)),e.regex.lastIndex=0,++u>=s.maxReplaces)break}})),t}},{key:"nest",value:function e(t,n){var r=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o,a,u=i({},s);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),s="{".concat(r[1]);e=r[0],s=(s=this.interpolate(s,u)).replace(/'/g,'"');try{u=JSON.parse(s),t&&(u=i({},t,u))}catch(o){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),o),"".concat(e).concat(n).concat(s)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;o=this.nestingRegexp.exec(t);){var c=[],f=!1;if(o[0].includes(this.formatSeparator)&&!/{.*}/.test(o[1])){var h=o[1].split(this.formatSeparator).map((function(e){return e.trim()}));o[1]=h.shift(),c=h,f=!0}if((a=n(l.call(this,o[1].trim(),u),u))&&o[0]===t&&"string"!=typeof a)return a;"string"!=typeof a&&(a=m(a)),a||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(t)),a=""),f&&(a=c.reduce((function(e,t){return r.format(e,t,s.lng,s)}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}]),e}();function L(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var z=function(e){function t(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return s(this,t),i=a(this,u(t).call(this)),A&&p.call(l(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=o,i.logger=d.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return c(t,e),o(t,[{key:"queueLoad",value:function e(t,n,r,i){var s=this,o=[],a=[],u=[],l=[];return t.forEach((function(e){var t=!0;n.forEach((function(n){var i="".concat(e,"|").concat(n);!r.reload&&s.store.hasResourceBundle(e,n)?s.state[i]=2:s.state[i]<0||(1===s.state[i]?a.indexOf(i)<0&&a.push(i):(s.state[i]=1,t=!1,a.indexOf(i)<0&&a.push(i),o.indexOf(i)<0&&o.push(i),l.indexOf(n)<0&&l.push(n)))})),t||u.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:o,pending:a,toLoadLanguages:u,toLoadNamespaces:l}}},{key:"loaded",value:function e(t,n,r){var i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),r&&this.store.addResourceBundle(s,o,r),this.state[t]=n?-1:2;var e={};this.queue.forEach((function(r){_(r.loaded,[s],o),L(r.pending,t),n&&r.errors.push(n),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){e[t]||(e[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(n){e[t].indexOf(n)<0&&e[t].push(n)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",e),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function e(t,n,r){var i=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[r](t,n,(function(e,u){e&&u&&s<5?setTimeout((function(){i.read.call(i,t,n,r,s+1,2*o,a)}),o):a(e,u)})):a(null,{})}},{key:"prepareLoading",value:function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof n&&(n=[n]);var o=this.queueLoad(t,n,i,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function e(t,n,r){this.prepareLoading(t,n,{},r)}},{key:"reload",value:function e(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}},{key:"loadOne",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),s=i[0],o=i[1];this.read(s,o,"read",void 0,void 0,(function(e,i){e&&n.logger.warn("".concat(r,"loading namespace ").concat(o," for language ").concat(s," failed"),e),!e&&i&&n.logger.log("".concat(r,"loaded namespace ").concat(o," for language ").concat(s),i),n.loaded(t,e,i)}))}},{key:"saveMissing",value:function e(t,n,r,s,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,n,r,s,null,i({},a,{isUpdate:o})),t&&t[0]&&this.store.addResource(t[0],n,r,s))}}]),t}(p);function U(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function e(t){var n={};if("object"===r(t[1])&&(n=t[1]),"string"==typeof t[1]&&(n.defaultValue=t[1]),"string"==typeof t[2]&&(n.tDescription=t[2]),"object"===r(t[2])||"object"===r(t[3])){var i=t[3]||t[2];Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n},interpolation:{escapeValue:!0,format:function e(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function q(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}var W,H=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(s(this,t),e=a(this,u(t).call(this)),A&&p.call(l(e)),e.options=q(n),e.services={},e.logger=d,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),a(e,l(e));setTimeout((function(){e.init(n,r)}),0)}return e}return c(t,e),o(t,[{key:"init",value:function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function s(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(r=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},U(),this.options,q(n)),this.format=this.options.interpolation.format,r||(r=$),!this.options.isClone){this.modules.logger?d.init(s(this.modules.logger),this.options):d.init(null,this.options);var o=new P(this.options);this.store=new E(this.options.resources,this.options);var a=this.services;a.logger=d,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new F(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new N(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new z(s(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var f=g(),h=function e(){var n=function e(n,i){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),f.resolve(i),r(n,i)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return n(null,t.t.bind(t));t.changeLanguage(t.options.lng,n)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),f}},{key:"loadResources",value:function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,i=r,s="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&"cimode"===s.toLowerCase())return i();var o=[],a=function e(t){var r;t&&n.services.languageUtils.toResolveHierarchy(t).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(s)a(s);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function e(t,n,r){var i=g();return t||(t=this.languages),n||(n=this.options.ns),r||(r=$),this.services.backendConnector.reload(t,n,(function(e){i.resolve(),r(e)})),i}},{key:"use",value:function e(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function e(t,n){var r=this;this.isLanguageChangingTo=t;var i=g();this.emit("languageChanging",t);var s=function e(t,s){s?(r.language=s,r.languages=r.services.languageUtils.toResolveHierarchy(s),r.translator.changeLanguage(s),r.isLanguageChangingTo=void 0,r.emit("languageChanged",s),r.logger.log("languageChanged",s)):r.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),n&&n(t,(function(){return r.t.apply(r,arguments)}))},o=function e(t){var n="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);n&&(r.language||(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n)),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,(function(e){s(e,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(t):o(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function e(t,n){var s=this,o=function e(t,n){var o;if("object"!==r(n)){for(var a=arguments.length,u=new Array(a>2?a-2:0),l=2;l1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],s=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function e(t,r){var i=n.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===i||2===i};if(r.precheck){var u=r.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(i,t)||(!this.services.backendConnector.backend||!(!a(i,t)||s&&!a(o,t)))}},{key:"loadNamespaces",value:function e(t,n){var r=this,i=g();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function e(t,n){var r=g();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],s=t.filter((function(e){return i.indexOf(e)<0}));return s.length?(this.options.preload=i.concat(s),this.loadResources((function(e){r.resolve(),n&&n(e)})),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function e(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl";var n}},{key:"createInstance",value:function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,o=i({},this.options,r,{isClone:!0}),a=new t(o),u=["store","services","language"];return u.forEach((function(e){a[e]=n[e]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new T(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rr,root:()=>i,ArrayProto:()=>s,ObjProto:()=>o,SymbolProto:()=>a,push:()=>u,slice:()=>l,toString:()=>c,hasOwnProperty:()=>f,supportsArrayBuffer:()=>h,supportsDataView:()=>d,nativeIsArray:()=>p,nativeKeys:()=>g,nativeCreate:()=>m,nativeIsView:()=>b,_isNaN:()=>v,_isFinite:()=>y,hasEnumBug:()=>_,nonEnumerableProps:()=>w,MAX_ARRAY_INDEX:()=>j});var r="1.13.4",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},s=Array.prototype,o=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=s.push,l=s.slice,c=o.toString,f=o.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,p=Array.isArray,g=Object.keys,m=Object.create,b=h&&ArrayBuffer.isView,v=isNaN,y=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=Math.pow(2,53)-1},"restArguments.js":function e(t,n,e){function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;ir})},"isObject.js":function e(t,n,e){function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}e.export({default:()=>r})},"isNull.js":function e(t,n,e){function r(e){return null===e}e.export({default:()=>r})},"isUndefined.js":function e(t,n,e){function r(e){return void 0===e}e.export({default:()=>r})},"isBoolean.js":function e(t,n,e){let r;function i(e){return!0===e||!1===e||"[object Boolean]"===r.call(e)}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isElement.js":function e(t,n,e){function r(e){return!(!e||1!==e.nodeType)}e.export({default:()=>r})},"isString.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("String"))},"_tagTester.js":function e(t,n,e){let r;function i(e){var t="[object "+e+"]";return function(e){return r.call(e)===t}}e.export({default:()=>i}),e.link("./_setup.js",{toString(e){r=e}},0)},"isNumber.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Number"))},"isDate.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Date"))},"isRegExp.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("RegExp"))},"isError.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Error"))},"isSymbol.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Symbol"))},"isArrayBuffer.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("ArrayBuffer"))},"isDataView.js":function e(t,n,e){let r,i,s,o;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isArrayBuffer.js",{default(e){s=e}},2),e.link("./_stringTagBug.js",{hasStringTagBug(e){o=e}},3);var a=r("DataView");function u(e){return null!=e&&i(e.getInt8)&&s(e.buffer)}e.exportDefault(o?u:a)},"isFunction.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_setup.js",{root(e){i=e}},1);var s=r("Function"),o=i.document&&i.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof o&&(s=function(e){return"function"==typeof e||!1}),e.exportDefault(s)},"_stringTagBug.js":function e(t,n,e){let r,i;e.export({hasStringTagBug:()=>s,isIE11:()=>o}),e.link("./_setup.js",{supportsDataView(e){r=e}},0),e.link("./_hasObjectTag.js",{default(e){i=e}},1);var s=r&&i(new DataView(new ArrayBuffer(8))),o="undefined"!=typeof Map&&i(new Map)},"_hasObjectTag.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("Object"))},"isArray.js":function e(t,n,e){let r,i;e.link("./_setup.js",{nativeIsArray(e){r=e}},0),e.link("./_tagTester.js",{default(e){i=e}},1),e.exportDefault(r||i("Array"))},"isArguments.js":function e(t,n,e){let r,i;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1);var s=r("Arguments");!function(){s(arguments)||(s=function(e){return i(e,"callee")})}(),e.exportDefault(s)},"_has.js":function e(t,n,e){let r;function i(e,t){return null!=e&&r.call(e,t)}e.export({default:()=>i}),e.link("./_setup.js",{hasOwnProperty(e){r=e}},0)},"isFinite.js":function e(t,n,e){let r,i;function s(e){return!i(e)&&r(e)&&!isNaN(parseFloat(e))}e.export({default:()=>s}),e.link("./_setup.js",{_isFinite(e){r=e}},0),e.link("./isSymbol.js",{default(e){i=e}},1)},"isNaN.js":function e(t,n,e){let r,i;function s(e){return i(e)&&r(e)}e.export({default:()=>s}),e.link("./_setup.js",{_isNaN(e){r=e}},0),e.link("./isNumber.js",{default(e){i=e}},1)},"isTypedArray.js":function e(t,n,e){let r,i,s,o,a,u;e.link("./_setup.js",{supportsArrayBuffer(e){r=e},nativeIsView(e){i=e},toString(e){s=e}},0),e.link("./isDataView.js",{default(e){o=e}},1),e.link("./constant.js",{default(e){a=e}},2),e.link("./_isBufferLike.js",{default(e){u=e}},3);var l=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function c(e){return i?i(e)&&!o(e):u(e)&&l.test(s.call(e))}e.exportDefault(r?c:a(!1))},"constant.js":function e(t,n,e){function r(e){return function(){return e}}e.export({default:()=>r})},"_isBufferLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getByteLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createSizePropertyCheck.js":function e(t,n,e){let r;function i(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=r}}e.export({default:()=>i}),e.link("./_setup.js",{MAX_ARRAY_INDEX(e){r=e}},0)},"_getByteLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("byteLength"))},"_shallowProperty.js":function e(t,n,e){function r(e){return function(t){return null==t?void 0:t[e]}}e.export({default:()=>r})},"isEmpty.js":function e(t,n,e){let r,i,s,o,a;function u(e){if(null==e)return!0;var t=r(e);return"number"==typeof t&&(i(e)||s(e)||o(e))?0===t:0===r(a(e))}e.export({default:()=>u}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./isString.js",{default(e){s=e}},2),e.link("./isArguments.js",{default(e){o=e}},3),e.link("./keys.js",{default(e){a=e}},4)},"_getLength.js":function e(t,n,e){let r;e.link("./_shallowProperty.js",{default(e){r=e}},0),e.exportDefault(r("length"))},"keys.js":function e(t,n,e){let r,i,s,o,a;function u(e){if(!r(e))return[];if(i)return i(e);var t=[];for(var n in e)o(e,n)&&t.push(n);return s&&a(e,t),t}e.export({default:()=>u}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeKeys(e){i=e},hasEnumBug(e){s=e}},1),e.link("./_has.js",{default(e){o=e}},2),e.link("./_collectNonEnumProps.js",{default(e){a=e}},3)},"_collectNonEnumProps.js":function e(t,n,e){let r,i,s,o;function a(e){for(var t={},n=e.length,r=0;ru}),e.link("./_setup.js",{nonEnumerableProps(e){r=e},ObjProto(e){i=e}},0),e.link("./isFunction.js",{default(e){s=e}},1),e.link("./_has.js",{default(e){o=e}},2)},"isMatch.js":function e(t,n,e){let r;function i(e,t){var n=r(t),i=n.length;if(null==e)return!i;for(var s=Object(e),o=0;oi}),e.link("./keys.js",{default(e){r=e}},0)},"isEqual.js":function e(t,n,e){let r,i,s,o,a,u,l,c,f,h,d;e.export({default:()=>b}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_setup.js",{toString(e){i=e},SymbolProto(e){s=e}},1),e.link("./_getByteLength.js",{default(e){o=e}},2),e.link("./isTypedArray.js",{default(e){a=e}},3),e.link("./isFunction.js",{default(e){u=e}},4),e.link("./_stringTagBug.js",{hasStringTagBug(e){l=e}},5),e.link("./isDataView.js",{default(e){c=e}},6),e.link("./keys.js",{default(e){f=e}},7),e.link("./_has.js",{default(e){h=e}},8),e.link("./_toBufferView.js",{default(e){d=e}},9);var p="[object DataView]";function g(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&m(e,t,n,r)}function m(e,t,n,b){e instanceof r&&(e=e._wrapped),t instanceof r&&(t=t._wrapped);var v=i.call(e);if(v!==i.call(t))return!1;if(l&&"[object Object]"==v&&c(e)){if(!c(t))return!1;v=p}switch(v){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return s.valueOf.call(e)===s.valueOf.call(t);case"[object ArrayBuffer]":case p:return m(d(e),d(t),n,b)}var y="[object Array]"===v;if(!y&&a(e)){var _;if(o(e)!==o(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;y=!0}if(!y){if("object"!=typeof e||"object"!=typeof t)return!1;var w=e.constructor,j=t.constructor;if(w!==j&&!(u(w)&&w instanceof w&&u(j)&&j instanceof j)&&"constructor"in e&&"constructor"in t)return!1}b=b||[];for(var k=(n=n||[]).length;k--;)if(n[k]===e)return b[k]===t;if(n.push(e),b.push(t),y){if((k=e.length)!==t.length)return!1;for(;k--;)if(!g(e[k],t[k],n,b))return!1}else{var x=f(e),S;if(k=x.length,f(t).length!==k)return!1;for(;k--;)if(S=x[k],!h(t,S)||!g(e[S],t[S],n,b))return!1}return n.pop(),b.pop(),!0}function b(e,t){return g(e,t)}},"underscore.js":function e(t,n,e){let r;function i(e){return e instanceof i?e:this instanceof i?void(this._wrapped=e):new i(e)}e.export({default:()=>i}),e.link("./_setup.js",{VERSION(e){r=e}},0),i.VERSION=r,i.prototype.value=function(){return this._wrapped},i.prototype.valueOf=i.prototype.toJSON=i.prototype.value,i.prototype.toString=function(){return String(this._wrapped)}},"_toBufferView.js":function e(t,n,e){let r;function i(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,r(e))}e.export({default:()=>i}),e.link("./_getByteLength.js",{default(e){r=e}},0)},"isMap.js":function e(t,n,e){let r,i,s,o;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){s=e},mapMethods(e){o=e}},2),e.exportDefault(i?s(o):r("Map"))},"_methodFingerprint.js":function e(t,n,e){let r,i,s;function o(e){var t=r(e);return function(n){if(null==n)return!1;var o=s(n);if(r(o))return!1;for(var u=0;uo,mapMethods:()=>f,weakMapMethods:()=>h,setMethods:()=>d}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./allKeys.js",{default(e){s=e}},2);var a="forEach",u="has",l=["clear","delete"],c=["get","has","set"],f=l.concat(a,c),h=l.concat(c),d=["add"].concat(l,a,"has")},"allKeys.js":function e(t,n,e){let r,i,s;function o(e){if(!r(e))return[];var t=[];for(var n in e)t.push(n);return i&&s(e,t),t}e.export({default:()=>o}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{hasEnumBug(e){i=e}},1),e.link("./_collectNonEnumProps.js",{default(e){s=e}},2)},"isWeakMap.js":function e(t,n,e){let r,i,s,o;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){s=e},weakMapMethods(e){o=e}},2),e.exportDefault(i?s(o):r("WeakMap"))},"isSet.js":function e(t,n,e){let r,i,s,o;e.link("./_tagTester.js",{default(e){r=e}},0),e.link("./_stringTagBug.js",{isIE11(e){i=e}},1),e.link("./_methodFingerprint.js",{ie11fingerprint(e){s=e},setMethods(e){o=e}},2),e.exportDefault(i?s(o):r("Set"))},"isWeakSet.js":function e(t,n,e){let r;e.link("./_tagTester.js",{default(e){r=e}},0),e.exportDefault(r("WeakSet"))},"values.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"pairs.js":function e(t,n,e){let r;function i(e){for(var t=r(e),n=t.length,i=Array(n),s=0;si}),e.link("./keys.js",{default(e){r=e}},0)},"invert.js":function e(t,n,e){let r;function i(e){for(var t={},n=r(e),i=0,s=n.length;ii}),e.link("./keys.js",{default(e){r=e}},0)},"functions.js":function e(t,n,e){let r;function i(e){var t=[];for(var n in e)r(e[n])&&t.push(n);return t.sort()}e.export({default:()=>i}),e.link("./isFunction.js",{default(e){r=e}},0)},"extend.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createAssigner.js":function e(t,n,e){function r(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;ir})},"extendOwn.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.exportDefault(r(i))},"defaults.js":function e(t,n,e){let r,i;e.link("./_createAssigner.js",{default(e){r=e}},0),e.link("./allKeys.js",{default(e){i=e}},1),e.exportDefault(r(i,!0))},"create.js":function e(t,n,e){let r,i;function s(e,t){var n=r(e);return t&&i(n,t),n}e.export({default:()=>s}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./extendOwn.js",{default(e){i=e}},1)},"_baseCreate.js":function e(t,n,e){let r,i;function s(){return function(){}}function o(e){if(!r(e))return{};if(i)return i(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}e.export({default:()=>o}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./_setup.js",{nativeCreate(e){i=e}},1)},"clone.js":function e(t,n,e){let r,i,s;function o(e){return r(e)?i(e)?e.slice():s({},e):e}e.export({default:()=>o}),e.link("./isObject.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),e.link("./extend.js",{default(e){s=e}},2)},"tap.js":function e(t,n,e){function r(e,t){return t(e),e}e.export({default:()=>r})},"get.js":function e(t,n,e){let r,i,s;function o(e,t,n){var o=i(e,r(t));return s(o)?n:o}e.export({default:()=>o}),e.link("./_toPath.js",{default(e){r=e}},0),e.link("./_deepGet.js",{default(e){i=e}},1),e.link("./isUndefined.js",{default(e){s=e}},2)},"_toPath.js":function e(t,n,e){let r;function i(e){return r.toPath(e)}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./toPath.js")},"toPath.js":function e(t,n,e){let r,i;function s(e){return i(e)?e:[e]}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./isArray.js",{default(e){i=e}},1),r.toPath=s},"_deepGet.js":function e(t,n,e){function r(e,t){for(var n=t.length,r=0;rr})},"has.js":function e(t,n,e){let r,i;function s(e,t){for(var n=(t=i(t)).length,s=0;ss}),e.link("./_has.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"mapObject.js":function e(t,n,e){let r,i;function s(e,t,n){t=r(t,n);for(var s=i(e),o=s.length,a={},u=0;us}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"_cb.js":function e(t,n,e){let r,i,s;function o(e,t,n){return r.iteratee!==s?r.iteratee(e,t):i(e,t,n)}e.export({default:()=>o}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),e.link("./iteratee.js",{default(e){s=e}},2)},"_baseIteratee.js":function e(t,n,e){let r,i,s,o,a,u,l;function c(e,t,n){return null==e?r:i(e)?l(e,t,n):s(e)&&!o(e)?a(e):u(e)}e.export({default:()=>c}),e.link("./identity.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./isObject.js",{default(e){s=e}},2),e.link("./isArray.js",{default(e){o=e}},3),e.link("./matcher.js",{default(e){a=e}},4),e.link("./property.js",{default(e){u=e}},5),e.link("./_optimizeCb.js",{default(e){l=e}},6)},"identity.js":function e(t,n,e){function r(e){return e}e.export({default:()=>r})},"matcher.js":function e(t,n,e){let r,i;function s(e){return e=r({},e),function(t){return i(t,e)}}e.export({default:()=>s}),e.link("./extendOwn.js",{default(e){r=e}},0),e.link("./isMatch.js",{default(e){i=e}},1)},"property.js":function e(t,n,e){let r,i;function s(e){return e=i(e),function(t){return r(t,e)}}e.export({default:()=>s}),e.link("./_deepGet.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"_optimizeCb.js":function e(t,n,e){function r(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,s){return e.call(t,n,r,i,s)}}return function(){return e.apply(t,arguments)}}e.export({default:()=>r})},"iteratee.js":function e(t,n,e){let r,i;function s(e,t){return i(e,t,1/0)}e.export({default:()=>s}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./_baseIteratee.js",{default(e){i=e}},1),r.iteratee=s},"noop.js":function e(t,n,e){function r(){}e.export({default:()=>r})},"propertyOf.js":function e(t,n,e){let r,i;function s(e){return null==e?r:function(t){return i(e,t)}}e.export({default:()=>s}),e.link("./noop.js",{default(e){r=e}},0),e.link("./get.js",{default(e){i=e}},1)},"times.js":function e(t,n,e){let r;function i(e,t,n){var i=Array(Math.max(0,e));t=r(t,n,1);for(var s=0;si}),e.link("./_optimizeCb.js",{default(e){r=e}},0)},"random.js":function e(t,n,e){function r(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}e.export({default:()=>r})},"now.js":function e(t,n,e){e.exportDefault(Date.now||function(){return(new Date).getTime()})},"escape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_createEscaper.js":function e(t,n,e){let r;function i(e){var t=function(t){return e[t]},n="(?:"+r(e).join("|")+")",i=RegExp(n),s=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(s,t):e}}e.export({default:()=>i}),e.link("./keys.js",{default(e){r=e}},0)},"_escapeMap.js":function e(t,n,e){e.exportDefault({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"})},"unescape.js":function e(t,n,e){let r,i;e.link("./_createEscaper.js",{default(e){r=e}},0),e.link("./_unescapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"_unescapeMap.js":function e(t,n,e){let r,i;e.link("./invert.js",{default(e){r=e}},0),e.link("./_escapeMap.js",{default(e){i=e}},1),e.exportDefault(r(i))},"templateSettings.js":function e(t,n,e){let r;e.link("./underscore.js",{default(e){r=e}},0),e.exportDefault(r.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g})},"template.js":function e(t,n,e){let r,i;e.export({default:()=>c}),e.link("./defaults.js",{default(e){r=e}},0),e.link("./underscore.js",{default(e){i=e}},1),e.link("./templateSettings.js");var s=/(.)^/,o={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},a=/\\|'|\r|\n|\u2028|\u2029/g;function u(e){return"\\"+o[e]}var l=/^\s*(\w|\$)+\s*$/;function c(e,t,n){!t&&n&&(t=n),t=r({},t,i.templateSettings);var o=RegExp([(t.escape||s).source,(t.interpolate||s).source,(t.evaluate||s).source].join("|")+"|$","g"),c=0,f="__p+='";e.replace(o,(function(t,n,r,i,s){return f+=e.slice(c,s).replace(a,u),c=s+t.length,n?f+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?f+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(f+="';\n"+i+"\n__p+='"),t})),f+="';\n";var h=t.variable,d;if(h){if(!l.test(h))throw new Error("variable is not a bare identifier: "+h)}else f="with(obj||{}){\n"+f+"}\n",h="obj";f="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+f+"return __p;\n";try{d=new Function(h,"_",f)}catch(g){throw g.source=f,g}var p=function(e){return d.call(this,e,i)};return p.source="function("+h+"){\n"+f+"}",p}},"result.js":function e(t,n,e){let r,i;function s(e,t,n){var s=(t=i(t)).length;if(!s)return r(n)?n.call(e):n;for(var o=0;os}),e.link("./isFunction.js",{default(e){r=e}},0),e.link("./_toPath.js",{default(e){i=e}},1)},"uniqueId.js":function e(t,n,e){e.export({default:()=>i});var r=0;function i(e){var t=++r+"";return e?e+t:t}},"chain.js":function e(t,n,e){let r;function i(e){var t=r(e);return t._chain=!0,t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"partial.js":function e(t,n,e){let r,i,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_executeBound.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){s=e}},2);var o=r((function(e,t){var n=o.placeholder,r=function(){for(var s=0,o=t.length,a=Array(o),u=0;us}),e.link("./_baseCreate.js",{default(e){r=e}},0),e.link("./isObject.js",{default(e){i=e}},1)},"bind.js":function e(t,n,e){let r,i,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_executeBound.js",{default(e){s=e}},2),e.exportDefault(r((function(e,t,n){if(!i(e))throw new TypeError("Bind must be called on a function");var o=r((function(r){return s(e,o,t,this,n.concat(r))}));return o})))},"bindAll.js":function e(t,n,e){let r,i,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./bind.js",{default(e){s=e}},2),e.exportDefault(r((function(e,t){var n=(t=i(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=s(e[r],e)}return e})))},"_flatten.js":function e(t,n,e){let r,i,s,o;function a(e,t,n,u){if(u=u||[],t||0===t){if(t<=0)return u.concat(e)}else t=1/0;for(var l=u.length,c=0,f=r(e);c1)a(h,t-1,n,u),l=u.length;else for(var d=0,p=h.length;da}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./isArray.js",{default(e){s=e}},2),e.link("./isArguments.js",{default(e){o=e}},3)},"_isArrayLike.js":function e(t,n,e){let r,i;e.link("./_createSizePropertyCheck.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.exportDefault(r(i))},"memoize.js":function e(t,n,e){let r;function i(e,t){var n=function(i){var s=n.cache,o=""+(t?t.apply(this,arguments):i);return r(s,o)||(s[o]=e.apply(this,arguments)),s[o]};return n.cache={},n}e.export({default:()=>i}),e.link("./_has.js",{default(e){r=e}},0)},"delay.js":function e(t,n,e){let r;e.link("./restArguments.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})))},"defer.js":function e(t,n,e){let r,i,s;e.link("./partial.js",{default(e){r=e}},0),e.link("./delay.js",{default(e){i=e}},1),e.link("./underscore.js",{default(e){s=e}},2),e.exportDefault(r(i,s,1))},"throttle.js":function e(t,n,e){let r;function i(e,t,n){var i,s,o,a,u=0;n||(n={});var l=function(){u=!1===n.leading?0:r(),i=null,a=e.apply(s,o),i||(s=o=null)},c=function(){var c=r();u||!1!==n.leading||(u=c);var f=t-(c-u);return s=this,o=arguments,f<=0||f>t?(i&&(clearTimeout(i),i=null),u=c,a=e.apply(s,o),i||(s=o=null)):i||!1===n.trailing||(i=setTimeout(l,f)),a};return c.cancel=function(){clearTimeout(i),u=0,i=s=o=null},c}e.export({default:()=>i}),e.link("./now.js",{default(e){r=e}},0)},"debounce.js":function e(t,n,e){let r,i;function s(e,t,n){var s,o,a,u,l,c=function(){var r=i()-o;t>r?s=setTimeout(c,t-r):(s=null,n||(u=e.apply(l,a)),s||(a=l=null))},f=r((function(r){return l=this,a=r,o=i(),s||(s=setTimeout(c,t),n&&(u=e.apply(l,a))),u}));return f.cancel=function(){clearTimeout(s),s=a=l=null},f}e.export({default:()=>s}),e.link("./restArguments.js",{default(e){r=e}},0),e.link("./now.js",{default(e){i=e}},1)},"wrap.js":function e(t,n,e){let r;function i(e,t){return r(t,e)}e.export({default:()=>i}),e.link("./partial.js",{default(e){r=e}},0)},"negate.js":function e(t,n,e){function r(e){return function(){return!e.apply(this,arguments)}}e.export({default:()=>r})},"compose.js":function e(t,n,e){function r(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}e.export({default:()=>r})},"after.js":function e(t,n,e){function r(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}e.export({default:()=>r})},"before.js":function e(t,n,e){function r(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}e.export({default:()=>r})},"once.js":function e(t,n,e){let r,i;e.link("./partial.js",{default(e){r=e}},0),e.link("./before.js",{default(e){i=e}},1),e.exportDefault(r(i,2))},"findKey.js":function e(t,n,e){let r,i;function s(e,t,n){t=r(t,n);for(var s=i(e),o,a=0,u=s.length;as}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"findIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createPredicateIndexFinder.js":function e(t,n,e){let r,i;function s(e){return function(t,n,s){n=r(n,s);for(var o=i(t),a=e>0?0:o-1;a>=0&&as}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"findLastIndex.js":function e(t,n,e){let r;e.link("./_createPredicateIndexFinder.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"sortedIndex.js":function e(t,n,e){let r,i;function s(e,t,n,s){for(var o=(n=r(n,s,1))(t),a=0,u=i(e);as}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1)},"indexOf.js":function e(t,n,e){let r,i,s;e.link("./sortedIndex.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./_createIndexFinder.js",{default(e){s=e}},2),e.exportDefault(s(1,i,r))},"_createIndexFinder.js":function e(t,n,e){let r,i,s;function o(e,t,n){return function(o,a,u){var l=0,c=r(o);if("number"==typeof u)e>0?l=u>=0?u:Math.max(u+c,l):c=u>=0?Math.min(u+1,c):u+c+1;else if(n&&u&&c)return o[u=n(o,a)]===a?u:-1;if(a!=a)return(u=t(i.call(o,l,c),s))>=0?u+l:-1;for(u=e>0?l:c-1;u>=0&&uo}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isNaN.js",{default(e){s=e}},2)},"lastIndexOf.js":function e(t,n,e){let r,i;e.link("./findLastIndex.js",{default(e){r=e}},0),e.link("./_createIndexFinder.js",{default(e){i=e}},1),e.exportDefault(i(-1,r))},"find.js":function e(t,n,e){let r,i,s;function o(e,t,n){var o,a=(r(e)?i:s)(e,t,n);if(void 0!==a&&-1!==a)return e[a]}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./findIndex.js",{default(e){i=e}},1),e.link("./findKey.js",{default(e){s=e}},2)},"findWhere.js":function e(t,n,e){let r,i;function s(e,t){return r(e,i(t))}e.export({default:()=>s}),e.link("./find.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"each.js":function e(t,n,e){let r,i,s;function o(e,t,n){var o,a;if(t=r(t,n),i(e))for(o=0,a=e.length;oo}),e.link("./_optimizeCb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){s=e}},2)},"map.js":function e(t,n,e){let r,i,s;function o(e,t,n){t=r(t,n);for(var o=!i(e)&&s(e),a=(o||e).length,u=Array(a),l=0;lo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){s=e}},2)},"reduce.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(1))},"_createReduce.js":function e(t,n,e){let r,i,s;function o(e){var t=function(t,n,s,o){var a=!r(t)&&i(t),u=(a||t).length,l=e>0?0:u-1;for(o||(s=t[a?a[l]:l],l+=e);l>=0&&l=3;return t(e,s(n,i,4),r,o)}}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){s=e}},2)},"reduceRight.js":function e(t,n,e){let r;e.link("./_createReduce.js",{default(e){r=e}},0),e.exportDefault(r(-1))},"filter.js":function e(t,n,e){let r,i;function s(e,t,n){var s=[];return t=r(t,n),i(e,(function(e,n,r){t(e,n,r)&&s.push(e)})),s}e.export({default:()=>s}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"reject.js":function e(t,n,e){let r,i,s;function o(e,t,n){return r(e,i(s(t)),n)}e.export({default:()=>o}),e.link("./filter.js",{default(e){r=e}},0),e.link("./negate.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){s=e}},2)},"every.js":function e(t,n,e){let r,i,s;function o(e,t,n){t=r(t,n);for(var o=!i(e)&&s(e),a=(o||e).length,u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){s=e}},2)},"some.js":function e(t,n,e){let r,i,s;function o(e,t,n){t=r(t,n);for(var o=!i(e)&&s(e),a=(o||e).length,u=0;uo}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./_isArrayLike.js",{default(e){i=e}},1),e.link("./keys.js",{default(e){s=e}},2)},"contains.js":function e(t,n,e){let r,i,s;function o(e,t,n,o){return r(e)||(e=i(e)),("number"!=typeof n||o)&&(n=0),s(e,t,n)>=0}e.export({default:()=>o}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./indexOf.js",{default(e){s=e}},2)},"invoke.js":function e(t,n,e){let r,i,s,o,a;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./map.js",{default(e){s=e}},2),e.link("./_deepGet.js",{default(e){o=e}},3),e.link("./_toPath.js",{default(e){a=e}},4),e.exportDefault(r((function(e,t,n){var r,u;return i(t)?u=t:(t=a(t),r=t.slice(0,-1),t=t[t.length-1]),s(e,(function(e){var i=u;if(!i){if(r&&r.length&&(e=o(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))})))},"pluck.js":function e(t,n,e){let r,i;function s(e,t){return r(e,i(t))}e.export({default:()=>s}),e.link("./map.js",{default(e){r=e}},0),e.link("./property.js",{default(e){i=e}},1)},"where.js":function e(t,n,e){let r,i;function s(e,t){return r(e,i(t))}e.export({default:()=>s}),e.link("./filter.js",{default(e){r=e}},0),e.link("./matcher.js",{default(e){i=e}},1)},"max.js":function e(t,n,e){let r,i,s,o;function a(e,t,n){var a=-1/0,u=-1/0,l,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var f=0,h=(e=r(e)?e:i(e)).length;fa&&(a=l);else t=s(t,n),o(e,(function(e,n,r){((c=t(e,n,r))>u||c===-1/0&&a===-1/0)&&(a=e,u=c)}));return a}e.export({default:()=>a}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){s=e}},2),e.link("./each.js",{default(e){o=e}},3)},"min.js":function e(t,n,e){let r,i,s,o;function a(e,t,n){var a=1/0,u=1/0,l,c;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var f=0,h=(e=r(e)?e:i(e)).length;fa}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_cb.js",{default(e){s=e}},2),e.link("./each.js",{default(e){o=e}},3)},"shuffle.js":function e(t,n,e){let r;function i(e){return r(e,1/0)}e.export({default:()=>i}),e.link("./sample.js",{default(e){r=e}},0)},"sample.js":function e(t,n,e){let r,i,s,o,a;function u(e,t,n){if(null==t||n)return r(e)||(e=i(e)),e[o(e.length-1)];var u=a(e),l=s(u);t=Math.max(Math.min(t,l),0);for(var c=l-1,f=0;fu}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./values.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){s=e}},2),e.link("./random.js",{default(e){o=e}},3),e.link("./toArray.js",{default(e){a=e}},4)},"toArray.js":function e(t,n,e){let r,i,s,o,a,u,l;e.export({default:()=>f}),e.link("./isArray.js",{default(e){r=e}},0),e.link("./_setup.js",{slice(e){i=e}},1),e.link("./isString.js",{default(e){s=e}},2),e.link("./_isArrayLike.js",{default(e){o=e}},3),e.link("./map.js",{default(e){a=e}},4),e.link("./identity.js",{default(e){u=e}},5),e.link("./values.js",{default(e){l=e}},6);var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function f(e){return e?r(e)?i.call(e):s(e)?e.match(c):o(e)?a(e,u):l(e):[]}},"sortBy.js":function e(t,n,e){let r,i,s;function o(e,t,n){var o=0;return t=r(t,n),i(s(e,(function(e,n,r){return{value:e,index:o++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(no}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./pluck.js",{default(e){i=e}},1),e.link("./map.js",{default(e){s=e}},2)},"groupBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n].push(t):e[n]=[t]})))},"_group.js":function e(t,n,e){let r,i;function s(e,t){return function(n,s,o){var a=t?[[],[]]:{};return s=r(s,o),i(n,(function(t,r){var i=s(t,r,n);e(a,t,i)})),a}}e.export({default:()=>s}),e.link("./_cb.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1)},"indexBy.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n]=t})))},"countBy.js":function e(t,n,e){let r,i;e.link("./_group.js",{default(e){r=e}},0),e.link("./_has.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t,n){i(e,n)?e[n]++:e[n]=1})))},"partition.js":function e(t,n,e){let r;e.link("./_group.js",{default(e){r=e}},0),e.exportDefault(r((function(e,t,n){e[n?0:1].push(t)}),!0))},"size.js":function e(t,n,e){let r,i;function s(e){return null==e?0:r(e)?e.length:i(e).length}e.export({default:()=>s}),e.link("./_isArrayLike.js",{default(e){r=e}},0),e.link("./keys.js",{default(e){i=e}},1)},"pick.js":function e(t,n,e){let r,i,s,o,a,u;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./_optimizeCb.js",{default(e){s=e}},2),e.link("./allKeys.js",{default(e){o=e}},3),e.link("./_keyInObj.js",{default(e){a=e}},4),e.link("./_flatten.js",{default(e){u=e}},5),e.exportDefault(r((function(e,t){var n={},r=t[0];if(null==e)return n;i(r)?(t.length>1&&(r=s(r,t[1])),t=o(e)):(r=a,t=u(t,!1,!1),e=Object(e));for(var l=0,c=t.length;lr})},"omit.js":function e(t,n,e){let r,i,s,o,a,u,l;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./isFunction.js",{default(e){i=e}},1),e.link("./negate.js",{default(e){s=e}},2),e.link("./map.js",{default(e){o=e}},3),e.link("./_flatten.js",{default(e){a=e}},4),e.link("./contains.js",{default(e){u=e}},5),e.link("./pick.js",{default(e){l=e}},6),e.exportDefault(r((function(e,t){var n=t[0],r;return i(n)?(n=s(n),t.length>1&&(r=t[1])):(t=o(a(t,!1,!1),String),n=function(e,n){return!u(t,n)}),l(e,n,r)})))},"first.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:r(e,e.length-t)}e.export({default:()=>i}),e.link("./initial.js",{default(e){r=e}},0)},"initial.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"last.js":function e(t,n,e){let r;function i(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:r(e,Math.max(0,e.length-t))}e.export({default:()=>i}),e.link("./rest.js",{default(e){r=e}},0)},"rest.js":function e(t,n,e){let r;function i(e,t,n){return r.call(e,null==t||n?1:t)}e.export({default:()=>i}),e.link("./_setup.js",{slice(e){r=e}},0)},"compact.js":function e(t,n,e){let r;function i(e){return r(e,Boolean)}e.export({default:()=>i}),e.link("./filter.js",{default(e){r=e}},0)},"flatten.js":function e(t,n,e){let r;function i(e,t){return r(e,t,!1)}e.export({default:()=>i}),e.link("./_flatten.js",{default(e){r=e}},0)},"without.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./difference.js",{default(e){i=e}},1),e.exportDefault(r((function(e,t){return i(e,t)})))},"difference.js":function e(t,n,e){let r,i,s,o;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./_flatten.js",{default(e){i=e}},1),e.link("./filter.js",{default(e){s=e}},2),e.link("./contains.js",{default(e){o=e}},3),e.exportDefault(r((function(e,t){return t=i(t,!0,!0),s(e,(function(e){return!o(t,e)}))})))},"uniq.js":function e(t,n,e){let r,i,s,o;function a(e,t,n,a){r(t)||(a=n,n=t,t=!1),null!=n&&(n=i(n,a));for(var u=[],l=[],c=0,f=s(e);ca}),e.link("./isBoolean.js",{default(e){r=e}},0),e.link("./_cb.js",{default(e){i=e}},1),e.link("./_getLength.js",{default(e){s=e}},2),e.link("./contains.js",{default(e){o=e}},3)},"union.js":function e(t,n,e){let r,i,s;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./uniq.js",{default(e){i=e}},1),e.link("./_flatten.js",{default(e){s=e}},2),e.exportDefault(r((function(e){return i(s(e,!0,!0))})))},"intersection.js":function e(t,n,e){let r,i;function s(e){for(var t=[],n=arguments.length,s=0,o=r(e);ss}),e.link("./_getLength.js",{default(e){r=e}},0),e.link("./contains.js",{default(e){i=e}},1)},"unzip.js":function e(t,n,e){let r,i,s;function o(e){for(var t=e&&r(e,i).length||0,n=Array(t),o=0;oo}),e.link("./max.js",{default(e){r=e}},0),e.link("./_getLength.js",{default(e){i=e}},1),e.link("./pluck.js",{default(e){s=e}},2)},"zip.js":function e(t,n,e){let r,i;e.link("./restArguments.js",{default(e){r=e}},0),e.link("./unzip.js",{default(e){i=e}},1),e.exportDefault(r(i))},"object.js":function e(t,n,e){let r;function i(e,t){for(var n={},i=0,s=r(e);ii}),e.link("./_getLength.js",{default(e){r=e}},0)},"range.js":function e(t,n,e){function r(e,t,n){null==t&&(t=e||0,e=0),n||(n=tr})},"chunk.js":function e(t,n,e){let r;function i(e,t){if(null==t||t<1)return[];for(var n=[],i=0,s=e.length;ii}),e.link("./_setup.js",{slice(e){r=e}},0)},"mixin.js":function e(t,n,e){let r,i,s,o,a;function u(e){return i(s(e),(function(t){var n=r[t]=e[t];r.prototype[t]=function(){var e=[this._wrapped];return o.apply(e,arguments),a(this,n.apply(r,e))}})),r}e.export({default:()=>u}),e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./functions.js",{default(e){s=e}},2),e.link("./_setup.js",{push(e){o=e}},3),e.link("./_chainResult.js",{default(e){a=e}},4)},"_chainResult.js":function e(t,n,e){let r;function i(e,t){return e._chain?r(t).chain():t}e.export({default:()=>i}),e.link("./underscore.js",{default(e){r=e}},0)},"underscore-array-methods.js":function e(t,n,e){let r,i,s,o;e.link("./underscore.js",{default(e){r=e}},0),e.link("./each.js",{default(e){i=e}},1),e.link("./_setup.js",{ArrayProto(e){s=e}},2),e.link("./_chainResult.js",{default(e){o=e}},3),i(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=s[e];r.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),o(this,n)}})),i(["concat","join","slice"],(function(e){var t=s[e];r.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),o(this,e)}})),e.exportDefault(r)}}}}},cachers:{"package.json":function e(t,n,e){e.exports={name:"@steedos/cachers",version:"2.6.32",main:"lib/index.js"}},lib:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCacherNames=n.clearCacher=n.getCacher=void 0;var r={},i=t("./memory"),s=t("./memory-lru"),o=function(e,t){return r[e]||(e.startsWith("lru.")?r[e]=new s.MemoryLRUCacher(t):r[e]=new i.MemoryCacher),r[e]};n.getCacher=o;var a=function(e){r[e]&&r[e].clear()};n.clearCacher=a;var u=function(){return Object.keys(r)};n.getCacherNames=u},"memory.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryCacher=void 0;var r=t("lodash"),i=function(){function e(){this.cache={}}return e.prototype.get=function(e){return this.cache[e]},e.prototype.delete=function(e){delete this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.clear=function(){this.cache={}},e.prototype.keys=function(){return(0,r.keys)(this.cache)},e.prototype.values=function(){return(0,r.values)(this.cache)},e}();n.MemoryCacher=i},"memory-lru.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MemoryLRUCacher=void 0;var r=t("lodash"),i=t("lru-cache"),s={max:5e3,ttl:null,keygen:null,maxParamsLength:null},o=function(){function e(e){this.opts=(0,r.defaultsDeep)(e,s),this.cache=new i({max:this.opts.max,maxAge:this.opts.ttl?1e3*this.opts.ttl:null,updateAgeOnGet:!!this.opts.ttl})}return e.prototype.get=function(e){return this.cache.get(e)},e.prototype.set=function(e,t,n){return this.cache.set(e,t,n)},e.prototype.delete=function(e){return this.cache.delete(e)},e.prototype.clear=function(){return this.cache.clear()},e.prototype.keys=function(){return this.cache.keys()},e.prototype.values=function(){return this.cache.values()},e}();n.MemoryLRUCacher=o}},node_modules:{"lru-cache":{"package.json":function e(t,n,e){e.exports={name:"lru-cache",version:"7.14.1",main:"index.js"}},"index.js":function e(t,n,e){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="function"==typeof AbortController,s=i?AbortController:class e{constructor(){this.signal=new u}abort(){this.signal.dispatchEvent("abort")}},o="function"==typeof AbortSignal,a="function"==typeof s.AbortSignal,u=o?AbortSignal:a?s.AbortController:class e{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if("abort"===e){this.aborted=!0;const t={type:e,target:this};this.onabort(t),this._listeners.forEach(e=>e(t),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},l=new Set,c=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;p(n)&&g(n,`${e} option`,`options.${t}`,_)},f=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} method`,`cache.${t}()`,i)}},h=(e,t)=>{const n=`LRU_CACHE_PROPERTY_${e}`;if(p(n)){const{prototype:r}=_,{get:i}=Object.getOwnPropertyDescriptor(r,e);g(n,`${e} property`,`cache.${t}`,i)}},d=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},p=e=>!l.has(e),g=(e,t,n,r)=>{l.add(e);const i=`The ${t} is deprecated. Please use ${n} instead.`;d(i,"DeprecationWarning",e,r)},m=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),b=e=>m(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(e){super(e),this.fill(0)}}class y{constructor(e){if(0===e)return[];const t=b(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class _{constructor(e={}){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:s,updateAgeOnHas:o,allowStale:a,dispose:u,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:g,maxSize:v=0,maxEntrySize:w=0,sizeCalculation:j,fetchMethod:k,fetchContext:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:D}=e,{length:A,maxAge:E,stale:C}=e instanceof _?{}:e;if(0!==t&&!m(t))throw new TypeError("max option must be a nonnegative integer");const M=t?b(t):Array;if(!M)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=v,this.maxEntrySize=w||this.maxSize,this.sizeCalculation=j||A,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=k||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&void 0!==x)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new M(t),this.prev=new M(t),this.head=0,this.tail=0,this.free=new y(t),this.initialFill=1,this.size=0,"function"==typeof u&&(this.dispose=u),"function"==typeof f?(this.disposeAfter=f,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!S,0!==this.maxEntrySize){if(0!==this.maxSize&&!m(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!m(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!C,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!o,this.ttlResolution=m(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||E||0,this.ttl){if(!m(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(p(e)){l.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";d(t,"UnboundedCacheWarning",e,_)}}C&&c("stale","allowStale"),E&&c("maxAge","ttl"),A&&c("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new v(this.max),this.starts=new v(this.max),this.setItemTTL=(e,t,n=r.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const n=setTimeout(()=>e=0,this.ttlResolution);n.unref&&n.unref()}return t};this.getRemainingTTL=n=>{const r=this.keyMap.get(n);return void 0===r?0:0===this.ttls[r]||0===this.starts[r]?1/0:this.starts[r]+this.ttls[r]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new v(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,r)=>{if(this.isBackgroundFetch(t))return 0;if(!m(n)){if(!r)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!m(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,r){if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return f("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes({allowStale:!0})){const n=this.keyList[t],i=this.valList[t],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i,o={value:s};if(this.ttls){o.ttl=this.ttls[t];const e=r.now()-this.starts[t];o.start=Math.floor(Date.now()-e)}this.sizes&&(o.size=this.sizes[t]),e.unshift([n,o])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:r,noDisposeOnSet:i=this.noDisposeOnSet,size:s=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(s=this.requireSize(e,t,s,o),this.maxEntrySize&&s>this.maxEntrySize)return this.delete(e),this;let u=0===this.size?void 0:this.keyMap.get(e);if(void 0===u)u=this.newIndex(),this.keyList[u]=e,this.valList[u]=t,this.keyMap.set(e,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,s),a=!1;else{const n=this.valList[u];t!==n&&(this.isBackgroundFetch(n)?n.__abortController.abort():i||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(u),this.valList[u]=t,this.addItemSize(u,s)),this.moveToTail(u)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),a||this.setItemTTL(u,n,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,n=this.keyList[t],r=this.valList[t];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,n,"evict"),this.disposeAfter&&this.disposed.push([r,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const n=this.keyMap.get(e);return void 0!==n&&!this.isStale(n)&&(t&&this.updateItemAge(n),!0)}peek(e,{allowStale:t=this.allowStale}={}){const n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){const e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const o=new s,a={signal:o.signal,options:n,context:r},u=t=>(o.signal.aborted||this.set(e,t,a.options),t),l=r=>{if(this.valList[t]===f){const r=!n.noDeleteOnFetchRejection||void 0===f.__staleWhileFetching;r?this.delete(e):this.valList[t]=f.__staleWhileFetching}if(f.__returned===f)throw r},c=t=>t(this.fetchMethod(e,i,a)),f=new Promise(c).then(u,l);return f.__abortController=o,f.__staleWhileFetching=i,f.__returned=null,void 0===t?(this.set(e,f,a.options),t=this.keyMap.get(e)):this.valList[t]=f,f}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,fetchContext:c=this.fetchContext,forceRefresh:f=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r});const h={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:i,noDisposeOnSet:s,size:o,sizeCalculation:a,noUpdateTTL:u,noDeleteOnFetchRejection:l};let d=this.keyMap.get(e);if(void 0===d){const t=this.backgroundFetch(e,d,h,c);return t.__returned=t}{const r=this.valList[d];if(this.isBackgroundFetch(r))return t&&void 0!==r.__staleWhileFetching?r.__staleWhileFetching:r.__returned=r;if(!f&&!this.isStale(d))return this.moveToTail(d),n&&this.updateItemAge(d),r;const i=this.backgroundFetch(e,d,h,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i.__returned=i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const s=this.valList[i],o=this.isBackgroundFetch(s);if(this.isStale(i))return o?t?s.__staleWhileFetching:void 0:(r||this.delete(e),t?s:void 0);if(o)return;return this.moveToTail(i),n&&this.updateItemAge(i),s}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return f("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const t=this.valList[n];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return f("reset","clear"),this.clear}get length(){return h("length","size"),this.size}static get AbortController(){return s}static get AbortSignal(){return u}}e.exports=_}}}},"form-builder":{"package.json":function e(t,n,e){e.exports={name:"@steedos/form-builder",version:"3.6.2-patch.5",private:!1,publishConfig:{access:"public"},main:"dist/form-builder.min.js",homepage:"https://formbuilder.online/",repository:{url:"https://github.com/kevinchappell/formBuilder.git",type:"git"},files:["dist/**/*","docs/**/*","src/**/*"],author:"Kevin Chappell ",contributors:[],bugs:"https://github.com/kevinchappell/formBuilder/issues",description:"A jQuery plugin for drag and drop form building",keywords:["jquery-plugin","forms","drag and drop","form builder","form create"],license:"MIT",ignore:["**/*","node_modules","test"],config:{files:{test:["test/**/*.spec.js"],pluginsDir:"src/js/control_plugins/",fonts:"src/fonts",sass:"src/sass",formBuilder:{js:"src/js/form-builder.js",sass:["src/sass/form-builder.scss"]},formRender:{js:"src/js/form-render.js",sass:["src/sass/form-render.scss"]},site:["demo/assets/sass/site.scss"]},fontServer:"http://fontello.com",fontelloToken:"09d648f01d6c57cb9f9b8cc55043e0c0"},babel:{presets:[["@babel/preset-env",{targets:{browsers:["> 1%"]},loose:!0}]],comments:!1,plugins:["@babel/plugin-proposal-object-rest-spread","@babel/plugin-proposal-class-properties"]},scripts:{"build:analyze":"webpack --mode production -p --progress --config tools/webpack.config --analyze","build:plugins":"webpack --mode production -p --display-entrypoints --progress --config tools/webpack.plugins.config","build:vendor":"babel-node tools/build-vendor",build:"webpack --mode production -p --progress --config tools/webpack.config","build:all":"npm-run-all build:plugins build:vendor build copy",copy:"cp -a dist/* demo/assets/js/ && cp CONTRIBUTING.md docs/contributing.md && cp LICENSE docs/license.md && npm run copy:lang","copy:lang":"babel-node tools/copy-language-files","deploy:all":"npm-run-all deploy:demo deploy:site","deploy:demo":"node tools/deploy-demo.js","deploy:site":"node tools/deploy-site.js",docs:"mkdocs build",font:"babel-node tools/icon-font",lint:"eslint ./src --ext .js || true","semantic-release":"semantic-release","start:devServer":"webpack-dev-server --mode development --config tools/webpack.config",prestart:"npm-run-all -p build:vendor copy:lang",start:"npm run start:devServer",test:"npm run-script build"},dependencies:{jquery:">=3.4.1","jquery-ui-sortable":"*"},devDependencies:{"@babel/cli":"^7.10.5","@babel/core":"^7.11.4","@babel/node":"^7.10.5","@babel/plugin-proposal-class-properties":"^7.10.4","@babel/plugin-proposal-object-rest-spread":"^7.11.0","@babel/plugin-syntax-object-rest-spread":"^7.8.3","@babel/plugin-transform-destructuring":"^7.10.4","@babel/preset-env":"^7.11.0","@semantic-release/changelog":"^5.0.1","@semantic-release/git":"^9.0.0","@semantic-release/npm":"^7.0.5",autoprefixer:"^9.8.6","babel-eslint":"^10.1.0","babel-loader":"^8.1.0","clean-webpack-plugin":"^3.0.0",clui:"^0.3.6","compression-webpack-plugin":"^5.0.1","concat-files":"^0.1.1","cross-env":"^7.0.2","css-loader":"^4.2.1",eslint:"^7.7.0","eslint-loader":"^4.0.2","formbuilder-languages":"latest","fs-extra":"^9.0.1","html-webpack-harddisk-plugin":"^1.0.2","html-webpack-plugin":"^4.3.0",inquirer:"^7.3.3",mi18n:"^0.4.8","node-sass":"6.0.1","npm-run-all":"^4.1.5",opener:"^1.5.1","postcss-loader":"^3.0.0","replace-in-file":"^6.1.0",request:"^2.88.2","sass-loader":"10.5.2","semantic-release":"^17.1.1",semver:"^7.3.2","style-loader":"^1.2.1",unzipper:"^0.10.11",webpack:"^4.44.1","webpack-bundle-analyzer":"^3.8.0","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.0","wrapper-webpack-plugin":"^2.1.0"},prettier:{singleQuote:!0,trailingComma:"all",printWidth:120,semi:!1,arrowParens:"avoid",spaceAfterFunction:!1},engines:{},release:{branch:"master",verifyConditions:["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"],prepare:["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"]},browserslist:["> 1%"]}},dist:{"form-builder.min.js":[]}}},tslib:{"package.json":function e(t,n,e){e.exports={name:"tslib",version:"2.6.3",module:"tslib.es6.js",main:"tslib.js"}},"tslib.es6.js":function e(t,n,e){e.export({__extends:()=>i,__assign:()=>s,__rest:()=>o,__decorate:()=>a,__param:()=>u,__esDecorate:()=>l,__runInitializers:()=>c,__propKey:()=>f,__setFunctionName:()=>h,__metadata:()=>d,__awaiter:()=>p,__generator:()=>g,__createBinding:()=>m,__exportStar:()=>b,__values:()=>v,__read:()=>y,__spread:()=>_,__spreadArrays:()=>w,__spreadArray:()=>j,__await:()=>k,__asyncGenerator:()=>x,__asyncDelegator:()=>S,__asyncValues:()=>D,__makeTemplateObject:()=>A,__importStar:()=>C,__importDefault:()=>M,__classPrivateFieldGet:()=>T,__classPrivateFieldSet:()=>O,__classPrivateFieldIn:()=>P,__addDisposableResource:()=>I,__disposeResources:()=>R});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return e.runSetters(s=Object.assign||function e(t){for(var n,r=1,i=arguments.length;r=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,r){t(n,r,e)}}function l(e,t,n,r,i,s){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a=r.kind,u="getter"===a?"get":"setter"===a?"set":"value",l=!t&&e?r.static?e:e.prototype:null,c=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),f,h=!1,d=n.length-1;d>=0;d--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(e||null))};var m=(0,n[d])("accessor"===a?{get:c.get,set:c.set}:c[u],p);if("accessor"===a){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(f=o(m.get))&&(c.get=f),(f=o(m.set))&&(c.set=f),(f=o(m.init))&&i.unshift(f)}else(f=o(m))&&("field"===a?i.unshift(f):c[u]=f)}l&&Object.defineProperty(l,r.name,c),h=!0}function c(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(6===a[0]||2===a[0])){n=0;continue}if(3===a[0]&&(!s||a[1]>s[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function _(){for(var e=[],t=0;t1||u(e,t)}))},t&&(i[e]=t(i[e])))}function u(e,t){try{l(r[e](t))}catch(n){h(s[0][3],n)}}function l(e){e.value instanceof k?Promise.resolve(e.value.v).then(c,f):h(s[0][2],e)}function c(e){u("next",e)}function f(e){u("throw",e)}function h(e,t){e(t),s.shift(),s.length&&u(s[0][0],s[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:k(e[r](t)),done:!1}:i?i(t):t}:i}}function D(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=v(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise((function(r,s){i(r,s,(n=e[t](n)).done,n.value)}))}}function i(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&m(t,e,n);return E(t,e),t}function M(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function O(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function P(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function I(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var B="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function R(e){function t(t){e.error=e.hasError?new B(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}e.exportDefault({__extends:i,__assign:s,__rest:o,__decorate:a,__param:u,__metadata:d,__awaiter:p,__generator:g,__createBinding:m,__exportStar:b,__values:v,__read:y,__spread:_,__spreadArrays:w,__spreadArray:j,__await:k,__asyncGenerator:x,__asyncDelegator:S,__asyncValues:D,__makeTemplateObject:A,__importStar:C,__importDefault:M,__classPrivateFieldGet:T,__classPrivateFieldSet:O,__classPrivateFieldIn:P,__addDisposableResource:I,__disposeResources:R})}},"i18next-sprintf-postprocessor":{"package.json":function e(t,n,e){e.exports={name:"i18next-sprintf-postprocessor",version:"0.2.2",main:"./index.js"}},"index.js":function e(t,n,e){e.exports=t("./dist/commonjs/index.js").default},dist:{commonjs:{"index.js":function e(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=t("./sprintf");n.default={name:"sprintf",type:"postProcessor",process:function e(t,n,s){return s.sprintf?"[object Array]"===Object.prototype.toString.apply(s.sprintf)?(0,i.vsprintf)(t,s.sprintf):"object"===r(s.sprintf)?(0,i.sprintf)(t,s.sprintf):t:t},overloadTranslationOptionHandler:function e(t){for(var n=[],r=1;r=0),d[8]){case"b":l=l.toString(2);break;case"c":l=String.fromCharCode(l);break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,d[6]?parseInt(d[6]):0);break;case"e":l=d[7]?l.toExponential(d[7]):l.toExponential();break;case"f":l=d[7]?parseFloat(l).toFixed(d[7]):parseFloat(l);break;case"g":l=d[7]?parseFloat(l).toPrecision(d[7]):parseFloat(l);break;case"o":l=l.toString(8);break;case"s":l=(l=String(l))&&d[7]?l.substring(0,d[7]):l;break;case"u":l>>>=0;break;case"x":l=l.toString(16);break;case"X":l=l.toString(16).toUpperCase()}r.json.test(d[8])?c[c.length]=l:(!r.number.test(d[8])||b&&!d[3]?v="":(v=b?"+":"-",l=l.toString().replace(r.sign,"")),g=d[4]?"0"===d[4]?"0":d[4].charAt(1):" ",m=d[6]-(v+l).length,p=d[6]&&m>0?a(g,m):"",c[c.length]=d[5]?v+l+p:"0"===g?v+p+l:p+v+l)}return c.join("")},i.cache={},i.parse=function(e){for(var t=e,n=[],i=[],s=0;t;){if(null!==(n=r.text.exec(t)))i[i.length]=n[0];else if(null!==(n=r.modulo.exec(t)))i[i.length]="%";else{if(null===(n=r.placeholder.exec(t)))throw new SyntaxError("[sprintf] unexpected placeholder");if(n[2]){s|=1;var o=[],a=n[2],u=[];if(null===(u=r.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o[o.length]=u[1];""!==(a=a.substring(u[0].length));)if(null!==(u=r.key_access.exec(a)))o[o.length]=u[1];else{if(null===(u=r.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");o[o.length]=u[1]}n[2]=o}else s|=2;if(3===s)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i[i.length]=n}t=t.substring(n[0].length)}return i}}}}},mkdirp:{"package.json":function e(t,n,e){e.exports={name:"mkdirp",version:"1.0.4",main:"index.js"}},"index.js":function e(t,n,e){const r=t("./lib/opts-arg.js"),i=t("./lib/path-arg.js"),{mkdirpNative:s,mkdirpNativeSync:o}=t("./lib/mkdirp-native.js"),{mkdirpManual:a,mkdirpManualSync:u}=t("./lib/mkdirp-manual.js"),{useNative:l,useNativeSync:c}=t("./lib/use-native.js"),f=(e,t)=>(e=i(e),t=r(t),l(t)?s(e,t):a(e,t)),h=(e,t)=>(e=i(e),t=r(t),c(t)?o(e,t):u(e,t));f.sync=h,f.native=(e,t)=>s(i(e),r(t)),f.manual=(e,t)=>a(i(e),r(t)),f.nativeSync=(e,t)=>o(i(e),r(t)),f.manualSync=(e,t)=>u(i(e),r(t)),e.exports=f},lib:{"opts-arg.js":function e(t,n,e){const{promisify:r}=t("util"),i=t("fs"),s=e=>{if(e)if("object"==typeof e)e={mode:511,fs:i,...e};else if("number"==typeof e)e={mode:e,fs:i};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8),fs:i}}else e={mode:511,fs:i};return e.mkdir=e.mkdir||e.fs.mkdir||i.mkdir,e.mkdirAsync=r(e.mkdir),e.stat=e.stat||e.fs.stat||i.stat,e.statAsync=r(e.stat),e.statSync=e.statSync||e.fs.statSync||i.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||i.mkdirSync,e};e.exports=s},"path-arg.js":function e(t,n,e){const r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:s}=t("path"),o=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=i(e),"win32"===r){const t=/[*|"<>?:]/,{root:n}=s(e);if(t.test(e.substr(n.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};e.exports=o},"mkdirp-native.js":function e(t,n,e){const{dirname:r}=t("path"),{findMade:i,findMadeSync:s}=t("./find-made.js"),{mkdirpManual:o,mkdirpManualSync:a}=t("./mkdirp-manual.js"),u=(e,t)=>{t.recursive=!0;const n=r(e);return n===e?t.mkdirAsync(e,t):i(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(n=>{if("ENOENT"===n.code)return o(e,t);throw n}))},l=(e,t)=>{t.recursive=!0;const n=r(e);if(n===e)return t.mkdirSync(e,t);const i=s(t,e);try{return t.mkdirSync(e,t),i}catch(o){if("ENOENT"===o.code)return a(e,t);throw o}};e.exports={mkdirpNative:u,mkdirpNativeSync:l}},"find-made.js":function e(t,n,e){const{dirname:r}=t("path"),i=(e,t,n)=>n===t?Promise.resolve():e.statAsync(t).then(e=>e.isDirectory()?n:void 0,n=>"ENOENT"===n.code?i(e,r(t),t):void 0),s=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(i){return"ENOENT"===i.code?s(e,r(t),t):void 0}};e.exports={findMade:i,findMadeSync:s}},"mkdirp-manual.js":function e(t,n,e){const{dirname:r}=t("path"),i=(e,t,n)=>{t.recursive=!1;const s=r(e);return s===e?t.mkdirAsync(e,t).catch(e=>{if("EISDIR"!==e.code)throw e}):t.mkdirAsync(e,t).then(()=>n||e,r=>{if("ENOENT"===r.code)return i(s,t).then(n=>i(e,t,n));if("EEXIST"!==r.code&&"EROFS"!==r.code)throw r;return t.statAsync(e).then(e=>{if(e.isDirectory())return n;throw r},()=>{throw r})})},s=(e,t,n)=>{const i=r(e);if(t.recursive=!1,i===e)try{return t.mkdirSync(e,t)}catch(o){if("EISDIR"!==o.code)throw o;return}try{return t.mkdirSync(e,t),n||e}catch(o){if("ENOENT"===o.code)return s(e,t,s(i,t,n));if("EEXIST"!==o.code&&"EROFS"!==o.code)throw o;try{if(!t.statSync(e).isDirectory())throw o}catch(a){throw o}}};e.exports={mkdirpManual:i,mkdirpManualSync:s}},"use-native.js":function e(t,n,e){const r=t("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,s=i.replace(/^v/,"").split("."),o=+s[0]>10||10==+s[0]&&+s[1]>=12,a=o?e=>e.mkdir===r.mkdir:()=>!1,u=o?e=>e.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:a,useNativeSync:u}}}},util:{"package.json":function e(t,n,e){e.exports={name:"util",version:"0.10.4",browser:{"./support/isBuffer.js":"./support/isBufferBrowser.js"},main:"./util.js"}},support:{"isBuffer.js":"/node_modules/util/support/isBufferBrowser.js","isBufferBrowser.js":function e(t,n,e){e.exports=function e(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}}},"util.js":function e(t,n,e){var r=/%[sdj%]/g;n.format=function(e){if(!w(e)){for(var t=[],n=0;n=s)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return e}})),u=i[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),b(t)?r.showHidden=t:t&&n._extend(r,t),k(r.showHidden)&&(r.showHidden=!1),k(r.depth)&&(r.depth=2),k(r.colors)&&(r.colors=!1),k(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),c(r,e,r.depth)}function a(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function u(e,t){return e}function l(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function c(e,t,r){if(e.customInspect&&t&&E(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return w(i)||(i=c(e,i,r)),i}var s=f(e,t);if(s)return s;var o=Object.keys(t),a=l(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),A(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(t);if(0===o.length){if(E(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(D(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return h(t)}var b="",v=!1,y=["{","}"],_,j;(m(t)&&(v=!0,y=["[","]"]),E(t))&&(b=" [Function"+(t.name?": "+t.name:"")+"]");return x(t)&&(b=" "+RegExp.prototype.toString.call(t)),D(t)&&(b=" "+Date.prototype.toUTCString.call(t)),A(t)&&(b=" "+h(t)),0!==o.length||v&&0!=t.length?r<0?x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),j=v?d(e,t,r,a,o):o.map((function(n){return p(e,t,r,a,n,v)})),e.seen.pop(),g(j,b,y)):y[0]+b+y[1]}function f(e,t){if(k(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return _(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i){for(var s=[],o=0,a=t.length;o-1&&(a=s?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),k(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function g(e,t,n){var r=0,i;return e.reduce((function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function m(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function v(e){return null===e}function y(e){return null==e}function _(e){return"number"==typeof e}function w(e){return"string"==typeof e}function j(e){return"symbol"==typeof e}function k(e){return void 0===e}function x(e){return S(e)&&"[object RegExp]"===M(e)}function S(e){return"object"==typeof e&&null!==e}function D(e){return S(e)&&"[object Date]"===M(e)}function A(e){return S(e)&&("[object Error]"===M(e)||e instanceof Error)}function E(e){return"function"==typeof e}function C(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function M(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(k(s)&&(s=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!i[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var t=process.pid;i[e]=function(){var r=n.format.apply(n,arguments);console.error("%s %d: %s",e,t,r)}}else i[e]=function(){};return i[e]},n.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=m,n.isBoolean=b,n.isNull=v,n.isNullOrUndefined=y,n.isNumber=_,n.isString=w,n.isSymbol=j,n.isUndefined=k,n.isRegExp=x,n.isObject=S,n.isDate=D,n.isError=A,n.isFunction=E,n.isPrimitive=C,n.isBuffer=t("./support/isBuffer");var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",P(),n.format.apply(n,arguments))},n.inherits=t("inherits"),n._extend=function(e,t){if(!t||!S(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},node_modules:{inherits:{"package.json":function e(t,n,e){e.exports={name:"inherits",version:"2.0.3",browser:"./inherits_browser.js",main:"./inherits.js"}},"inherits_browser.js":function e(t,n,e){"function"==typeof Object.create?e.exports=function e(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function e(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}}}},cookies:{"package.json":function e(t,n,e){e.exports={name:"cookies",version:"0.6.2",main:"./lib/cookies"}},lib:{"cookies.js":function e(t,n,e){ /*! * finalhandler * Copyright(c) 2014 Jed Schmidt, http://jed.is/ @@ -530,7 +530,7 @@ Package._define("steedos:cfs-worker"); !function(){var e=Package.meteor.Meteor,a=Package.meteor.global,o=Package.meteor.meteorEnv,t=Package["reactive-var"].ReactiveVar,l=Package["reactive-dict"].ReactiveDict,s=Package.random.Random,i=Package["ddp-client"].DDP,n=Package.check.check,c=Package.check.Match,r=Package.underscore._,d=Package.tracker.Tracker,g=Package.tracker.Deps,b=Package.session.Session,_=Package["templating-runtime"].Template,m=Package["aldeed:simple-schema"].SimpleSchema,f=Package["aldeed:simple-schema"].MongoObject,u=Package["universe:i18n"]._i18n,p=Package["universe:i18n"].i18n,k=Package.promise.Promise,P=Package.modules.meteorInstall,y=Package["steedos:cfs-base-package"].FS,h=Package.blaze.Blaze,w=Package.blaze.UI,j=Package.blaze.Handlebars,v=Package.spacebars.Spacebars,D=Package.htmljs.HTML,S,A=P({node_modules:{meteor:{"steedos:objects-billing":{models:{"billings.coffee":function a(){var o=S="object"==typeof S?S:{};db.billings=new e.Collection("billings"),db.billings.helpers({transaction_i18n:function(){var e,a;return e="",e="Starting balance"===(a=this.transaction)?TAPi18n.__("billing_tranDetail.starting"):"Payment"===a?TAPi18n.__("billing_tranDetail.payment"):"Service adjustment"===a?TAPi18n.__("billing_tranDetail.adjustment"):"workflow"===a?TAPi18n.__("billing_tranDetail.workflow"):"workflow.professional"===a?TAPi18n.__("billing_tranDetail.workflow"):"chat.professional"===a?TAPi18n.__("billing_tranDetail.chat"):a}}),e.isServer&&db.billings._ensureIndex({space:1},{background:!0})},"billing_pay_records.coffee":function a(){var o=S="object"==typeof S?S:{};db.billing_pay_records=new e.Collection("billing_pay_records"),db.billing_pay_records.helpers({order_created:function(){return moment(this.created).format("YYYY-MM-DD HH:mm:ss")},order_paid:function(){return this.paid?TAPi18n.__("billing.has_paid"):TAPi18n.__("billing.not_paid")},order_total_fee:function(){return(this.total_fee/100).toString()}}),Creator.Objects.billing_pay_records={name:"billing_pay_records",label:"订单",icon:"apps",fields:{info:{label:"详单详情",type:"object",blackbox:!0,omit:!0,hidden:!0},total_fee:{label:"金额¥",type:"number",defaultValue:100,omit:!0},paid:{label:"已付款",type:"boolean",omit:!0,defaultValue:!1},modules:{label:"模块",type:"[text]",blackbox:!0,omit:!0},end_date:{label:"租用日期至",type:"date",omit:!0},user_count:{label:"名额",type:"number",omit:!0}},list_views:{all:{label:"所有",filter_scope:"space",columns:["modules","user_count","end_date","total_fee","paid","created"]}},permission_set:{user:{allowCreate:!1,allowDelete:!1,allowEdit:!1,allowRead:!1,modifyAllRecords:!1,viewAllRecords:!1},admin:{allowCreate:!1,allowDelete:!1,allowEdit:!1,allowRead:!0,modifyAllRecords:!1,viewAllRecords:!0}}}},"modules.coffee":function a(){var o=S="object"==typeof S?S:{};db.modules=new e.Collection("modules")},"modules_changelogs.coffee":function a(){var o=S="object"==typeof S?S:{};db.modules_changelogs=new e.Collection("modules_changelogs")},"users_changelogs.coffee":function a(){var o=S="object"==typeof S?S:{};db.users_changelogs=new e.Collection("users_changelogs"),db.users_changelogs._simpleSchema=new m({change_date:{type:Date},operator:{type:String},space:{type:String},operation:{type:String},user:{type:String},user_count:{type:Number},created:{type:Date},created_by:{type:String}}),e.isServer&&db.users_changelogs.before.insert((function(e,a){return a.change_date=moment().format("YYYYMMDD"),a.created=new Date,a.created_by=e}))},"steedos_statistics.coffee":function a(){var o=S="object"==typeof S?S:{};db.steedos_statistics=new e.Collection("steedos_statistics")}}}}}},{extensions:[".js",".json",".coffee"]});A("/node_modules/meteor/steedos:objects-billing/models/billings.coffee"),A("/node_modules/meteor/steedos:objects-billing/models/billing_pay_records.coffee"),A("/node_modules/meteor/steedos:objects-billing/models/modules.coffee"),A("/node_modules/meteor/steedos:objects-billing/models/modules_changelogs.coffee"),A("/node_modules/meteor/steedos:objects-billing/models/users_changelogs.coffee"),A("/node_modules/meteor/steedos:objects-billing/models/steedos_statistics.coffee"),Package._define("steedos:objects-billing")}(); -!function(){var Meteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,Session=Package.session.Session,_=Package.underscore._,s=Package["underscorestring:underscore.string"].s,ReactiveVar=Package["reactive-var"].ReactiveVar,ReactiveDict=Package["reactive-dict"].ReactiveDict,Random=Package.random.Random,DDP=Package["ddp-client"].DDP,check=Package.check.check,Match=Package.check.Match,Tracker=Package.tracker.Tracker,Deps=Package.tracker.Deps,Tabular=Package["aldeed:tabular"].Tabular,AutoForm=Package["aldeed:autoform"].AutoForm,Template=Package["templating-runtime"].Template,Accounts=Package["accounts-base"].Accounts,CollectionHooks=Package["matb33:collection-hooks"].CollectionHooks,FlowRouter=Package["kadira:flow-router"].FlowRouter,BlazeLayout=Package["kadira:blaze-layout"].BlazeLayout,SubsManager=Package["meteorhacks:subs-manager"].SubsManager,moment=Package["momentjs:moment"].moment,SimpleSchema=Package["aldeed:simple-schema"].SimpleSchema,MongoObject=Package["aldeed:simple-schema"].MongoObject,_i18n=Package["universe:i18n"]._i18n,i18n=Package["universe:i18n"].i18n,E164=Package["steedos:e164-phones-countries"].E164,IsoCountries=Package["steedos:i18n-iso-countries"].IsoCountries,Promise=Package.promise.Promise,meteorInstall=Package.modules.meteorInstall,Blaze=Package.ui.Blaze,UI=Package.ui.UI,Handlebars=Package.ui.Handlebars,Spacebars=Package.spacebars.Spacebars,Collection2=Package["aldeed:collection2-core"].Collection2,FS=Package["steedos:cfs-base-package"].FS,HTML=Package.htmljs.HTML,Mongo=Package.mongo.Mongo,__coffeescriptShare,Steedos,AjaxCollection,SteedosDataManager,Selector,Modal,SteedosOffice,require=meteorInstall({node_modules:{meteor:{"steedos:base":{lib:{"steedos_util.js":function e(){Array.prototype.sortByName=function(e){this&&(e||(e=Steedos.locale()),this.sort((function(t,o){var n=t.sort_no||0,r=o.sort_no||0;return n!=r?n>r?-1:1:t.name.localeCompare(o.name,e)})))},Array.prototype.getProperty=function(e){var t=new Array;return this.forEach((function(o){var n=o?o[e]:null;t.push(n)})),t},Array.prototype.remove=function(e,t){if(!(e<0)){var o=this.slice((t||e)+1||this.length);return this.length=e<0?this.length+e:e,this.push.apply(this,o)}},Array.prototype.filterProperty=function(e,t){var o=[];return this.forEach((function(n){var r=n?n[e]:null,a=!1;r instanceof Array?a=r.includes(t):(r instanceof Object&&("id"in r?r=r.id:"_id"in r&&(r=r._id)),a=t instanceof Array?void 0!==t&&t.includes(r):void 0!==t&&r==t),a&&o.push(n)})),o},Array.prototype.findPropertyByPK=function(e,t){var o=null;return this.forEach((function(n){var r=n?n[e]:null,a=!1;(a=r instanceof Array?r.includes(t):void 0!==t&&r==t)&&(o=n)})),o}},"core.coffee":function module(require){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var share=__coffeescriptShare,Cookies,crypto,mixin,ref,ref1,ref2,ref3,ref4,rootUrl;Steedos={settings:{},db:db,subs:{},isPhoneEnabled:function(){var e,t;return!!(null!=(e=Meteor.settings)&&null!=(t=e.public)?t.phone:void 0)},numberToString:function(e,t,o){var n,r,a;return"number"==typeof e&&(e=e.toString()),e&&"NaN"!==e?((t||0===t)&&(e=Number(e).toFixed(t)),o||(t||0===t||(t=null!=(n=e.match(/\.(\d+)/))&&null!=(r=n[1])?r.length:void 0)||(t=0),a=/(\d)(?=(\d{3})+\.)/g,0===t&&(a=/(\d)(?=(\d{3})+\b)/g),e=e.replace(a,"$1,")),e):""},numberToPercentString:function(e,t,o){var n;return n=Number((100*e).toFixed(t)),Steedos.numberToString(n,t,o)+"%"},valiJquerySymbols:function(e){var t;return(t=new RegExp("^[^!\"#$%&'()*+,./:;<=>?@[\\]^`{|}~]+$")).test(e)},authRequest:function(e,o){var n,r,a,s,i,c,l,u;l=(u=Creator.USER_CONTEXT).spaceId,n=u.authToken?u.authToken:u.user.authToken,c=null,e=Steedos.absoluteUrl(e);try{return i=[{name:"Content-Type",value:"application/json"},{name:"Authorization",value:r="Bearer "+l+","+n}],a={type:"get",url:e,dataType:"json",contentType:"application/json",beforeSend:function(e){if(i&&i.length)return i.forEach((function(t){return e.setRequestHeader(t.name,t.value)}))},success:function(e){c=e},error:function(e,o,n){var r,a;console.error(e.responseJSON),e.responseJSON&&e.responseJSON.error?(r=e.responseJSON.error,c={error:r},a=void 0,r.reason?a=r.reason:r.message?a=r.message:(a=r,toastr.error(t(a.replace(/:/g,":"))))):toastr.error(e.responseJSON)}},$.ajax(Object.assign({},a,o)),c}catch(d){s=d,console.error(s),toastr.error(s)}}},(Meteor.isCordova||Meteor.isClient)&&(rootUrl=Meteor.absoluteUrl.defaultOptions.rootUrl,rootUrl.endsWith("/")&&(rootUrl=rootUrl.substr(0,rootUrl.length-1)),null!=(ref=window.stores)&&null!=(ref1=ref.API)&&null!=(ref2=ref1.client)&&ref2.setUrl(rootUrl),null!=(ref3=window.stores)&&null!=(ref4=ref3.Settings)&&ref4.setRootUrl(rootUrl),window["steedos.setting"]={rootUrl:rootUrl}),!Meteor.isCordova&&Meteor.isClient&&Meteor.startup((function(){var e,t,o,n;return null!=(e=window.stores)&&null!=(t=e.Settings)?t.setHrefPopup(null!=(o=Meteor.settings.public)&&null!=(n=o.ui)?n.href_popup:void 0):void 0})),Steedos.getHelpUrl=function(e){var t;return"http://www.steedos.com/"+(t=e.substring(3))+"/help/"},Steedos.isExpression=function(e){var t,o,n;return"string"==typeof e&&(t=/^{{(.+)}}$/,o=/^{{(function.+)}}$/,n=/^{{(.+=>.+)}}$/,!("string"!=typeof e||!e.match(t)||e.match(o)||e.match(n)))},Steedos.parseSingleExpression=function(e,t,o,n){var r,a,s,i,c,l,u,d;if(i=function(e,t){return"#"!==t&&t?"string"==typeof t?_.get(e,t):void console.error("path has to be a string"):e||{}},void 0===t&&(t={}),l=i(t,u=(s=function(e){var t;return"string"==typeof e?1===(t=e.split(".")).length?"#":(t.pop(),t.join(".")):"#"})(o))||{},"string"!=typeof e)return e;c="__G_L_O_B_A_L__",d="\n return "+(a=e.substring(2,e.length-2)).replace(/\bformData\b/g,JSON.stringify(t).replace(/\bglobal\b/g,c)).replace(/\bglobal\b/g,JSON.stringify(n)).replace(new RegExp("\\b"+c+"\\b","g"),"global").replace(/rootValue/g,JSON.stringify(l));try{return Function(d)()}catch(p){return r=p,console.log(r,e,o),e}},Meteor.isClient&&(Steedos.spaceUpgradedModal=function(){return swal({title:TAPi18n.__("space_paid_info_title"),text:TAPi18n.__("space_paid_info_text"),html:!0,type:"warning",confirmButtonText:TAPi18n.__("OK")})},Steedos.getAccountBgBodyValue=function(){var e;return(e=db.steedos_keyvalues.findOne({user:Steedos.userId(),key:"bg_body"}))?e.value:{}},Steedos.applyAccountBgBodyValue=function(e,t){var o,n;if(!Meteor.loggingIn()&&Steedos.userId()||((e={}).url=localStorage.getItem("accountBgBodyValue.url"),e.avatar=localStorage.getItem("accountBgBodyValue.avatar")),n=e.url,o=e.avatar,t){if(Meteor.loggingIn())return;if(Steedos.userId())return n?(localStorage.setItem("accountBgBodyValue.url",n),localStorage.setItem("accountBgBodyValue.avatar",o)):(localStorage.removeItem("accountBgBodyValue.url"),localStorage.removeItem("accountBgBodyValue.avatar"))}},Steedos.getAccountSkinValue=function(){var e;return(e=db.steedos_keyvalues.findOne({user:Steedos.userId(),key:"skin"}))?e.value:{}},Steedos.getAccountZoomValue=function(){var e;return(e=db.steedos_keyvalues.findOne({user:Steedos.userId(),key:"zoom"}))?e.value:{}},Steedos.applyAccountZoomValue=function(e,t){},Steedos.showHelp=function(e){var t,o;return t=(o=Steedos.getLocale()).substring(3),e=e||"http://www.steedos.com/"+t+"/help/",window.open(e,"_help","EnableViewPortScale=yes")},Steedos.getUrlWithToken=function(e){var t,o;return(t={}).spaceId=Steedos.getSpaceId(),t["X-User-Id"]=Meteor.userId(),t["X-Auth-Token"]=Accounts._storedLoginToken(),o="?",e.indexOf("?")>-1&&(o="&"),e+o+$.param(t)},Steedos.getAppUrlWithToken=function(e){var t;return(t={}).spaceId=Steedos.getSpaceId(),t["X-User-Id"]=Meteor.userId(),t["X-Auth-Token"]=Accounts._storedLoginToken(),"api/setup/sso/"+e+"?"+$.param(t)},Steedos.openAppWithToken=function(e){var t,o;return o=Steedos.getAppUrlWithToken(e),o=Steedos.absoluteUrl(o),(t=db.apps.findOne(e)).is_new_window||Steedos.isMobile()||Steedos.isCordova()?Steedos.openWindow(o):window.location=o},Steedos.openUrlWithIE=function(e){var t,o,n;if(e)return Steedos.isNode()?(o=nw.require("child_process").exec)(t='start iexplore.exe "'+(n=e)+'"',(function(e,t,o){e&&toastr.error(e)})):Steedos.openWindow(e)},Steedos.openApp=function(app_id){var app,cmd,e,evalFunString,exec,on_click,open_url,path;if(!Meteor.userId())return Steedos.redirectToSignIn(),!0;if(app=db.apps.findOne(app_id),app){if(on_click=app.on_click,app.is_use_ie)Steedos.isNode()?(exec=nw.require("child_process").exec,on_click?(path="api/app/sso/"+app_id+"?authToken="+Accounts._storedLoginToken()+"&userId="+Meteor.userId(),open_url=window.location.origin+"/"+path):(open_url=Steedos.getAppUrlWithToken(app_id),open_url=window.location.origin+"/"+open_url),cmd='start iexplore.exe "'+open_url+'"',exec(cmd,(function(e,t,o){e&&toastr.error(e)}))):Steedos.openAppWithToken(app_id);else if(db.apps.isInternalApp(app.url))FlowRouter.go(app.url);else if(app.is_use_iframe)!app.is_new_window||Steedos.isMobile()||Steedos.isCordova()?Steedos.isMobile()||Steedos.isCordova()?Steedos.openAppWithToken(app_id):FlowRouter.go("/apps/iframe/"+app._id):Steedos.openWindow(Steedos.absoluteUrl("apps/iframe/"+app._id));else if(on_click){evalFunString="(function(){"+on_click+"})()";try{eval(evalFunString)}catch(error1){e=error1,console.error("catch some error when eval the on_click script for app link:"),console.error(e.message+"\r\n"+e.stack)}}else Steedos.openAppWithToken(app_id);return app.is_new_window||Steedos.isMobile()||Steedos.isCordova()||app.is_use_ie||on_click?void 0:Session.set("current_app_id",app_id)}FlowRouter.go("/")},Steedos.checkSpaceBalance=function(e){var o,n,r;if(e||(e=Steedos.spaceId()),n=1,Steedos.isSpaceAdmin()&&(n=3),o=null!=(r=db.spaces.findOne(e))?r.end_date:void 0,r&&void 0!==o&&o-new Date<=30*n*24*3600*1e3)return toastr.error(t("space_balance_insufficient"))},Steedos.setModalMaxHeight=function(){var e,t;switch((e=Steedos.getAccountZoomValue()).name||(e.name="large"),e.name){case"normal":t=Steedos.isMobile()?-12:75;break;case"large":t=Steedos.isMobile()?-6:Steedos.detectIE()?199:9;break;case"extra-large":t=Steedos.isMobile()?-26:Steedos.detectIE()?303:53}if($(".modal").length)return $(".modal").each((function(){var e,o,n,r;return o=0,e=0,r=0,$(".modal-header",$(this)).each((function(){return o+=$(this).outerHeight(!1)})),$(".modal-footer",$(this)).each((function(){return e+=$(this).outerHeight(!1)})),r=o+e,n=$("body").innerHeight()-r-t,$(this).hasClass("cf_contact_modal")?$(".modal-body",$(this)).css({"max-height":n+"px",height:n+"px"}):$(".modal-body",$(this)).css({"max-height":n+"px",height:"auto"})}))},Steedos.getModalMaxHeight=function(e){var t,o;if(o=Steedos.isMobile()?window.screen.height-126-180-25:$(window).height()-180-25,!Steedos.isiOS()&&!Steedos.isMobile())switch((t=Steedos.getAccountZoomValue()).name){case"large":o-=50;break;case"extra-large":o-=145}return e&&(o-=e),o+"px"},Steedos.isiOS=function(e,t){var o,n,r,a,s;return o={android:"android",blackberry:"blackberry",desktop:"desktop",ipad:"ipad",iphone:"iphone",ipod:"ipod",mobile:"mobile"},n={},r="(?:[\\/:\\::\\s:;])",s="(\\S+[^\\s:;:\\)]|)",e=(e||navigator.userAgent).toLowerCase(),t=t||navigator.language||navigator.browserLanguage,a=e.match(new RegExp("(android|ipad|iphone|ipod|blackberry)"))||e.match(new RegExp("(mobile)"))||["",o.desktop],n.device=a[1],n.device===o.ipad||n.device===o.iphone||n.device===o.ipod},Steedos.getUserOrganizations=function(e){var t,o,n,r,a;return a=Meteor.userId(),n=Steedos.spaceId(),(t=null!=(r=db.space_users.findOne({user:a,space:n},{fields:{organizations:1}}))?r.organizations:void 0)?e?(o=_.flatten(db.organizations.find({_id:{$in:t}}).fetch().getProperty("parents")),_.union(t,o)):t:[]},Steedos.forbidNodeContextmenu=function(e,t){if(Steedos.isNode())return e.document.body.addEventListener("contextmenu",(function(e){return e.preventDefault(),!1})),t?("string"==typeof t&&(t=e.$(t)),t.load((function(){var e;if(e=t.contents().find("body"))return e[0].addEventListener("contextmenu",(function(e){return e.preventDefault(),!1}))}))):void 0}),Meteor.isServer&&(Steedos.getUserOrganizations=function(e,t,o){var n,r,a;return(n=null!=(a=db.space_users.findOne({user:t,space:e},{fields:{organizations:1}}))?a.organizations:void 0)?o?(r=_.flatten(db.organizations.find({_id:{$in:n}}).fetch().getProperty("parents")),_.union(n,r)):n:[]}),Meteor.isServer&&(Cookies=require("cookies"),Steedos.isMobile=function(){return!1},Steedos.isSpaceAdmin=function(e,t){var o;return!(!e||!t)&&(!(!(o=db.spaces.findOne(e))||!o.admins)&&o.admins.indexOf(t)>=0)},Steedos.isLegalVersion=function(e,t){var o,n,r;return!!e&&(o=!1,(n=null!=(r=db.spaces.findOne(e))?r.modules:void 0)&&n.includes(t)&&(o=!0),o)},Steedos.isOrgAdminByOrgIds=function(e,t){var o,n,r,a;return n=!1,a=db.organizations.find({_id:{$in:e}},{fields:{parents:1,admins:1}}).fetch(),r=[],(o=a.filter((function(e){var o;return e.parents&&(r=_.union(r,e.parents)),null!=(o=e.admins)?o.includes(t):void 0}))).length?n=!0:(r=_.flatten(r),(r=_.uniq(r)).length&&db.organizations.findOne({_id:{$in:r},admins:t})&&(n=!0)),n},Steedos.isOrgAdminByAllOrgIds=function(e,t){var o,n;if(!e.length)return!0;for(o=0;o=32&&(c=t.slice(0,32));return r=crypto.createDecipheriv("aes-256-cbc",new Buffer(c,"utf8"),new Buffer(o,"utf8")),e=(a=Buffer.concat([r.update(e,"base64"),r.final()])).toString()}catch(d){return s=d,e}},Steedos.encrypt=function(e,t,o){var n,r,a,s,i,c,l;if(i="",(c=t.length)<32){for(n="",s=0,l=32-c;s=32&&(i=t.slice(0,32));return r=crypto.createCipheriv("aes-256-cbc",new Buffer(i,"utf8"),new Buffer(o,"utf8")),e=(a=Buffer.concat([r.update(new Buffer(e,"utf8")),r.final()])).toString("base64")},Steedos.getUserIdFromAccessToken=function(e){var t,o,n,r,a;return e?(a=e.split("-")[0],o=Accounts._hashLoginToken(e),(r=db.users.findOne({_id:a,"secrets.hashedToken":o}))?a:(n=(t=oAuth2Server.collections.accessToken).findOne({accessToken:e}))?(null!=n?n.expires:void 0)=d&&e=r&&e=n&&(s=t?c+1:c+i/2);return s>c?((o=Steedos.caculateWorkingTime(e,1)).setHours(p[s-c-1].hour),o.setMinutes(p[s-c-1].minute)):s<=c&&(o.setHours(p[s].hour),o.setMinutes(p[s].minute)),o}),Meteor.isServer&&_.extend(Steedos,{getSteedosToken:function(e,t,o){var n,r,a,s,i,c,l,u,d,p,f,m,h,g,_;if(crypto=require("crypto"),(n=db.apps.findOne(e))&&(m=n.secret),t&&o&&(i=Accounts._hashLoginToken(o),_=Meteor.users.findOne({_id:t,"services.resume.loginTokens.hashedToken":i}))){if(h=_.steedos_id,l=n.secret?n.secret:"-8762-fcb369b2e8",f=parseInt((new Date).getTime()/1e3).toString(),u="",(d=h.length)<32){for(r="",c=0,p=32-d;c=32&&(u=h.slice(0,32));a=crypto.createCipheriv("aes-256-cbc",new Buffer(u,"utf8"),new Buffer(l,"utf8")),g=(s=Buffer.concat([a.update(new Buffer(f,"utf8")),a.final()])).toString("base64")}return g},locale:function(e,t){var o,n;return o=null!=(n=db.users.findOne({_id:e},{fields:{locale:1}}))?n.locale:void 0,t&&("en-us"===o&&(o="en"),"zh-cn"===o&&(o="zh-CN")),o},checkUsernameAvailability:function(e){return!Meteor.users.findOne({username:{$regex:new RegExp("^"+Meteor._escapeRegExp(e).trim()+"$","i")}})},validatePassword:function(e){var o,n,r,a,s,i,c,l,u,d;return r=t("password_invalid"),d=!0,e||(d=!1),o=null!=(s=Meteor.settings.public)&&null!=(i=s.password)?i.policy:void 0,n=(null!=(c=Meteor.settings.public)&&null!=(l=c.password)?l.policyError:void 0)||(null!=(u=Meteor.settings.public)&&null!=(a=u.password)?a.policyerror:void 0)||"密码不符合规则",o&&(new RegExp(o).test(e||"")?d=!0:(r=n,d=!1)),!!d||{error:{reason:r}}}}),Steedos.convertSpecialCharacter=function(e){return e.replace(/([\^\$\(\)\*\+\?\.\\\|\[\]\{\}])/g,"\\$1")},Steedos.removeSpecialCharacter=function(e){return e.replace(/([\^\$\(\)\*\+\?\.\\\|\[\]\{\}\~\`\@\#\%\&\=\'\"\:\;\<\>\,\/])/g,"")},Creator.getDBApps=function(e){var t;return t={},Creator.Collections.apps.find({space:e,is_creator:!0,visible:!0},{fields:{created:0,created_by:0,modified:0,modified_by:0}}).forEach((function(e){return t[e._id]=e})),t},Creator.getDBDashboards=function(e){var t;return t={},Creator.Collections.dashboard.find({space:e},{fields:{created:0,created_by:0,modified:0,modified_by:0}}).forEach((function(e){return t[e._id]=e})),t},Meteor.isServer&&(Cookies=require("cookies"),Steedos.getAuthToken=function(e,t){var o,n;return n=new Cookies(e,t),!(o=e.headers["x-auth-token"]||n.get("X-Auth-Token"))&&e.headers.authorization&&"Bearer"===e.headers.authorization.split(" ")[0]&&(o=e.headers.authorization.split(" ")[1]),o}),Meteor.isClient&&(Meteor.autorun((function(){if(Session.get("current_app_id"))return sessionStorage.setItem("current_app_id",Session.get("current_app_id"))})),Steedos.getCurrentAppId=function(){return Session.get("app_id")?Session.get("app_id"):sessionStorage.getItem("current_app_id")}),Meteor.isServer&&(Steedos.formatIndex=function(e){var t,o,n,r,a,s;return n={background:!0},(o=(null!=(r=Meteor.settings)&&null!=(a=r.datasources)&&null!=(s=a.default)?s.documentDB:void 0)||!1)&&e.length>0&&(t=e.join("."),n.name=t,t.length>52&&(n.name=t.substring(0,52))),n})},"simple_schema_extend.js":function e(){Meteor.startup((function(){SimpleSchema.extendOptions({foreign_key:Match.Optional(Boolean),references:Match.Optional(Object)})}))},"ajax_collection.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};(AjaxCollection=function(e){this.model=e}).prototype.find=function(e,t){return this._send(e,t,"find")},AjaxCollection.prototype.findOne=function(e,t){return this._send(e,t,"findone")},AjaxCollection.prototype._send=function(e,t,o){var n,r,a;return n={model:this.model,selector:e,options:t,space:(null!=e?e.space:void 0)||Session.get("spaceId"),"X-Auth-Token":Accounts._storedLoginToken()},r=void 0,a={url:Steedos.absoluteUrl("api/collection/"+o),type:"POST",async:!1,data:JSON.stringify(n),dataType:"json",processData:!1,contentType:"application/json",success:function(e,t){r=e}},$.ajax(a),r}},"steedos_data_manager.js":function e(){(SteedosDataManager={}).organizationRemote=new AjaxCollection("organizations"),SteedosDataManager.spaceUserRemote=new AjaxCollection("space_users"),SteedosDataManager.flowRoleRemote=new AjaxCollection("flow_roles"),SteedosDataManager.getSpaceUsers=function(e,t){var o={};o.spaceId=e;var n={userIds:t},r;return $.ajax({url:Steedos.absoluteUrl("api/workflow/getSpaceUsers")+"?"+$.param(o),type:"POST",async:!1,data:n,dataType:"json",contentType:"application/json",beforeSend:function(t){t.setRequestHeader("Authorization","Bearer "+e+","+Accounts._storedLoginToken())},success:function(e,t){e.errors?toastr.error(e.errors):r=e.spaceUsers},error:function(e,t,o){toastr.error(t)}}),r},SteedosDataManager.getFormulaUserObjects=function(e,t){var o={};o.spaceId=e;var n={userIds:t},r;if(t&&_.isArray(t)&&t.length>0&&_.isEmpty(t[0]))return console.info("userIds is empty"),{spaceUsers:[]};var n=JSON.stringify(n);return $.ajax({url:Steedos.absoluteUrl("api/formula/space_users")+"?"+$.param(o),type:"POST",async:!1,data:n,dataType:"json",processData:!1,contentType:"application/json",success:function(e,t){e.errors?toastr.error(e.errors):r=e.spaceUsers},error:function(e,t,o){toastr.error(t)}}),r},SteedosDataManager.getFormulaOrganizations=function(e,t){var o={};!1!==t&&Session.get("spaceId")&&(o.spaceId=Session.get("spaceId"));var n={orgIds:e},r,n=JSON.stringify(n);return $.ajax({url:Steedos.absoluteUrl("api/formula/organizations")+"?"+$.param(o),type:"POST",async:!1,data:n,dataType:"json",processData:!1,contentType:"application/json",success:function(e,t){e.errors?toastr.error(e.errors):r=e.orgs},error:function(e,t,o){toastr.error(t)}}),r}},methods:{"utc_offset.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{}},"last_logon.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Meteor.isServer&&Meteor.methods({updateUserLastLogon:function(){if(null!=this.userId)return db.users.update({_id:this.userId},{$set:{last_logon:new Date}})}}),Meteor.isClient&&Accounts.onLogin((function(){return Meteor.call("updateUserLastLogon")}))},"user_add_email.coffee":function e(){var o=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Meteor.isServer&&Meteor.methods({users_add_email:function(e){var t;return null==this.userId?{error:!0,message:"email_login_required"}:e?/^([A-Z0-9\.\-\_\+])*([A-Z0-9\+\-\_])+\@[A-Z0-9]+([\-][A-Z0-9]+)*([\.][A-Z0-9\-]+){1,8}$/i.test(e)?db.users.find({"emails.address":e}).count()>0?{error:!0,message:"email_exists"}:(null!=(t=db.users.findOne({_id:this.userId})).emails&&t.emails.length>0?db.users.direct.update({_id:this.userId},{$push:{emails:{address:e,verified:!1}}}):db.users.direct.update({_id:this.userId},{$set:{steedos_id:e,emails:[{address:e,verified:!1}]}}),Accounts.sendVerificationEmail(this.userId,e),{}):{error:!0,message:"email_format_error"}:{error:!0,message:"email_required"}},users_remove_email:function(e){var t,o;return null==this.userId?{error:!0,message:"email_login_required"}:e?null!=(o=db.users.findOne({_id:this.userId})).emails&&o.emails.length>=2?(t=null,o.emails.forEach((function(o){o.address===e&&(t=o)})),db.users.direct.update({_id:this.userId},{$pull:{emails:t}}),{}):{error:!0,message:"email_at_least_one"}:{error:!0,message:"email_required"}},users_verify_email:function(e){return null==this.userId?{error:!0,message:"email_login_required"}:e?/^([A-Z0-9\.\-\_\+])*([A-Z0-9\+\-\_])+\@[A-Z0-9]+([\-][A-Z0-9]+)*([\.][A-Z0-9\-]+){1,8}$/i.test(e)?(Accounts.sendVerificationEmail(this.userId,e),{}):{error:!0,message:"email_format_error"}:{error:!0,message:"email_required"}},users_set_primary_email:function(e){var t,o;return null==this.userId?{error:!0,message:"email_login_required"}:e?((t=(o=db.users.findOne({_id:this.userId})).emails).forEach((function(t){return t.address===e?t.primary=!0:t.primary=!1})),db.users.direct.update({_id:this.userId},{$set:{emails:t,email:e}}),db.space_users.direct.update({user:this.userId},{$set:{email:e}},{multi:!0}),{}):{error:!0,message:"email_required"}}}),Meteor.isClient&&(Steedos.users_add_email=function(){return swal({title:t("primary_email_needed"),text:t("primary_email_needed_description"),type:"input",showCancelButton:!1,closeOnConfirm:!1,animation:"slide-from-top"},(function(e){return Meteor.call("users_add_email",e,(function(e,o){return(null!=o?o.error:void 0)?toastr.error(o.message):swal(t("primary_email_updated"),"","success")}))}))})},"user_avatar.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Meteor.isServer&&Meteor.methods({updateUserAvatar:function(e){if(null!=this.userId)return db.users.update({_id:this.userId},{$set:{avatar:e}})}})},"email_templates_reset.js":function e(){var t;Accounts.emailTemplates={from:(t="Steedos ",Meteor.settings&&Meteor.settings.email&&Meteor.settings.email.from?Meteor.settings.email.from:t),resetPassword:{subject:function(e){return TAPi18n.__("users_email_reset_password",{},e.locale)},text:function(e,t){var o=t.split("/"),n=o[o.length-1],r;return(e.profile&&e.profile.name?TAPi18n.__("users_email_hello",{},e.locale)+e.profile.name+",":TAPi18n.__("users_email_hello",{},e.locale)+",")+"\n\n"+TAPi18n.__("users_email_reset_password_body",{token_code:n},e.locale)+"\n\n"+t+"\n\n"+TAPi18n.__("users_email_thanks",{},e.locale)+"\n"}},verifyEmail:{subject:function(e){return TAPi18n.__("users_email_verify_email",{},e.locale)},text:function(e,t){var o;return(e.profile&&e.profile.name?TAPi18n.__("users_email_hello",{},e.locale)+e.profile.name+",":TAPi18n.__("users_email_hello",{},e.locale)+",")+"\n\n"+TAPi18n.__("users_email_verify_account",{},e.locale)+"\n\n"+t+"\n\n"+TAPi18n.__("users_email_thanks",{},e.locale)+"\n"}},enrollAccount:{subject:function(e){return TAPi18n.__("users_email_create_account",{},e.locale)},text:function(e,t){var o;return(e.profile&&e.profile.name?TAPi18n.__("users_email_hello",{},e.locale)+e.profile.name+",":TAPi18n.__("users_email_hello",{},e.locale)+",")+"\n\n"+TAPi18n.__("users_email_start_service",{},e.locale)+"\n\n"+t+"\n\n"+TAPi18n.__("users_email_thanks",{},e.locale)+"\n"}}}}},steedos:{"push.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};Meteor.isCordova&&Meteor.startup((function(){return Push.Configure({android:{senderID:window.ANDROID_SENDER_ID,sound:!0,vibrate:!0},ios:{badge:!0,clearBadge:!0,sound:!0,alert:!0},appName:"workflow"})}))}},"admin.coffee":function e(){var t=__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};(Selector={}).selectorCheckSpaceAdmin=function(e){var t,o,n;return Meteor.isClient?(e=Meteor.userId())&&Steedos.isSpaceAdmin()?{space:Session.get("spaceId")}:{_id:-1}:Meteor.isServer?e&&(n=db.users.findOne(e,{fields:{is_cloudadmin:1}}))?(t={},n.is_cloudadmin||(o=(o=db.spaces.find({admins:{$in:[e]}},{fields:{_id:1}}).fetch()).map((function(e){return e._id})),t.space={$in:o}),t):{_id:-1}:void 0},Selector.selectorCheckSpace=function(e){var t,o,n,r,a;return Meteor.isClient?(e=Meteor.userId())&&(o=Session.get("spaceId"))&&db.space_users.findOne({user:e,space:o},{fields:{_id:1}})?{space:o}:{_id:-1}:Meteor.isServer?e&&(a=db.users.findOne(e,{fields:{_id:1}}))?(t={},n=db.space_users.find({user:e},{fields:{space:1}}).fetch(),r=[],_.each(n,(function(e){return r.push(e.space)})),t.space={$in:r},t):{_id:-1}:void 0},db.billing_pay_records.adminConfig={icon:"globe",color:"blue",tableColumns:[{name:"order_created()"},{name:"modules"},{name:"user_count"},{name:"end_date"},{name:"order_total_fee()"},{name:"order_paid()"}],extraFields:["space","created","paid","total_fee"],routerAdmin:"/admin",selector:function(e){return Meteor.isClient?Steedos.isSpaceAdmin()?{space:Session.get("spaceId"),paid:!0}:{_id:-1}:Meteor.isServer?{}:void 0},showEditColumn:!1,showDelColumn:!1,disableAdd:!0,pageLength:100,order:[[0,"desc"]]},Meteor.startup((function(){return this.space_user_signs=db.space_user_signs,this.billing_pay_records=db.billing_pay_records,"undefined"!=typeof AdminConfig&&null!==AdminConfig?AdminConfig.collections_add({space_user_signs:db.space_user_signs.adminConfig,billing_pay_records:db.billing_pay_records.adminConfig}):void 0}))},"array_includes.js":function e(){[].includes||(Array.prototype.includes=function(e){"use strict";var t=Object(this),o=parseInt(t.length)||0;if(0===o)return!1;var n=parseInt(arguments[1])||0,r,a;for(n>=0?r=n:(r=o+n)<0&&(r=0);r").html(r).html()):r.each((function(){t.append(e(this).html())}))}var n;e.fn.printThis=function(r){n=e.extend({},e.fn.printThis.defaults,r);var a=this instanceof jQuery?this:e(this),s="printThis-"+(new Date).getTime();if(window.location.hostname!==document.domain&&navigator.userAgent.match(/msie/i)){var i='javascript:document.write("