!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=915)}({185:function(t,e,n){"use strict";var o,r,a,i=n(436),s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function d(){a=!1}function l(t){if(t){if(t!==o){if(t.length!==s.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. You submitted "+t.length+" characters: "+t);var e=t.split("").filter((function(t,e,n){return e!==n.lastIndexOf(t)}));if(e.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. These characters were not unique: "+e.join(", "));o=t,d()}}else o!==s&&(o=s,d())}function c(){return a||(a=function(){o||l(s);for(var t,e=o.split(""),n=[],r=i.nextValue();e.length>0;)r=i.nextValue(),t=Math.floor(r*e.length),n.push(e.splice(t,1)[0]);return n.join("")}())}t.exports={get:function(){return o||s},characters:function(t){return l(t),o},seed:function(t){i.seed(t),r!==t&&(d(),r=t)},lookup:function(t){return c()[t]},shuffled:c}},228:function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var o=function(t,e){t.append('<div class="dm-tooltip-bubble">\n        <div class="dm-tooltip-triangle"></div>\n        <div class="dm-tooltip-content">\n            '+e.attr("data-title")+"\n        </div>\n    </div>");var n=t.children(".dm-tooltip-bubble"),o=n.children(".dm-tooltip-content");e.hover((function(){var e,r,a=t.parents(".dm-dialog");if(a.length){var i=a.find(".dm-dialog-content").get(0).getBoundingClientRect();e=i.top+i.height,r=i.left+i.width}else e=window.innerHeight,r=window.innerWidth;var s=n.show().get(0).getBoundingClientRect(),d=s.top+s.height-e;d>0&&o.css({"max-height":s.height-d-60});var l=s.left+s.width-r;l>0&&o.css({"max-width":s.width-l-60,"overflow-x":"scroll"})}),(function(){}))},r=function(t){t.addClass("dm-icon icon-help-circled").wrap('<span class="dm-tooltip-container"></span>');var e=t.parent();o(e,t)};e.a=function(t){t(".dm-tooltip").each((function(){r(t(this))})),t(".dm-btn-icon[data-title]").each((function(){o(t(this),t(this))}))}},229:function(t,e,n){"use strict";t.exports=n(435)},435:function(t,e,n){"use strict";var o=n(185),r=n(437),a=n(441),i=n(442)||0;function s(){return r(i)}t.exports=s,t.exports.generate=s,t.exports.seed=function(e){return o.seed(e),t.exports},t.exports.worker=function(e){return i=e,t.exports},t.exports.characters=function(t){return void 0!==t&&o.characters(t),o.shuffled()},t.exports.isValid=a},436:function(t,e,n){"use strict";var o=1;t.exports={nextValue:function(){return(o=(9301*o+49297)%233280)/233280},seed:function(t){o=t}}},437:function(t,e,n){"use strict";var o,r,a=n(438),i=(n(185),1567752802062),s=7;t.exports=function(t){var e="",n=Math.floor(.001*(Date.now()-i));return n===r?o++:(o=0,r=n),e+=a(s),e+=a(t),o>0&&(e+=a(o)),e+=a(n)}},438:function(t,e,n){"use strict";var o=n(185),r=n(439),a=n(440);t.exports=function(t){for(var e,n=0,i="";!e;)i+=a(r,o.get(),1),e=t<Math.pow(16,n+1),n++;return i}},439:function(t,e,n){"use strict";var o,r="object"==typeof window&&(window.crypto||window.msCrypto);o=r&&r.getRandomValues?function(t){return r.getRandomValues(new Uint8Array(t))}:function(t){for(var e=[],n=0;n<t;n++)e.push(Math.floor(256*Math.random()));return e},t.exports=o},440:function(t,e){t.exports=function(t,e,n){for(var o=(2<<Math.log(e.length-1)/Math.LN2)-1,r=Math.ceil(1.6*o*n/e.length),a="";;)for(var i=r,s=t(i);i--;)if((a+=e[s[i]&o]||"").length===+n)return a}},441:function(t,e,n){"use strict";var o=n(185);t.exports=function(t){return!(!t||"string"!=typeof t||t.length<6)&&!new RegExp("[^"+o.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(t)}},442:function(t,e,n){"use strict";t.exports=0},55:function(t,e){t.exports="undefined"==typeof ncoreJQ?jQuery:ncoreJQ},828:function(module,__webpack_exports__,__webpack_require__){"use strict";var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(55),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),dmDialogAjax_Stop=function(t){void 0!==t?jquery__WEBPACK_IMPORTED_MODULE_0___default()("#"+t).removeClass("ncore_waiting"):jquery__WEBPACK_IMPORTED_MODULE_0___default()("#ncore_ajax_wait").removeClass("ncore_waiting")};window.dmDialogAjax_Stop=dmDialogAjax_Stop;var dmDialogAjax_Start=function(t){void 0!==t?jquery__WEBPACK_IMPORTED_MODULE_0___default()("#"+t).addClass("ncore_waiting"):jquery__WEBPACK_IMPORTED_MODULE_0___default()("#ncore_ajax_wait").addClass("ncore_waiting")};window.dmDialogAjax_Start=dmDialogAjax_Start;var dmDialogAjax_AddUrlArgs=function(t,e){var n,o,r=t.indexOf("?"),a=r>=0?"&":"?";return(r=t.indexOf("#"))>=0?(n=t.substring(0,r),o=t.substring(r)):(n=t,o=""),t=n+a+e+o};window.dmDialogAjax_AddUrlArgs=dmDialogAjax_AddUrlArgs;var dmDialogAjax_FetchUrl=function(t,e){void 0!==e&&e||dmDialogAjax_Start();var n=(new Date).getTime();return t=dmDialogAjax_AddUrlArgs(t,n),jquery__WEBPACK_IMPORTED_MODULE_0___default.a.getJSON(t,dmDialogAjax_Callback),!1};window.dmDialogAjax_FetchUrl=dmDialogAjax_FetchUrl;var dmDialogAjax_Callback=function(response){if("string"==typeof response&&(response=JSON.parse(response)),response.redirect||response.must_reload||dmDialogAjax_Stop(),response.error&&alert(response.error),response.success&&alert(response.success),response.html&&response.target_div_id)switch(response.target_div_id){case"body_prepend":dmDialogAjax_Stop(),jquery__WEBPACK_IMPORTED_MODULE_0___default()("body").prepend(response.html);break;case"body_append":dmDialogAjax_Stop(),jquery__WEBPACK_IMPORTED_MODULE_0___default()("body").append(response.html);break;default:dmDialogAjax_Stop(response.target_div_id),jquery__WEBPACK_IMPORTED_MODULE_0___default()("#"+response.target_div_id).html(response.html)}return response.js&&eval(response.js),response.must_reload&&location.reload(!0),response.redirect&&(window.location.href=response.redirect),!1};window.dmDialogAjax_Callback=dmDialogAjax_Callback},915:function(t,e,n){"use strict";n.r(e);var o,r=n(55),a=n.n(r),i=n(229),s=n.n(i),d=function(t){var e=this;switch(t){case"close":var n=this;this.data("parent-id")&&(n=a()('[data-parent="'+this.data("parent-id")+'"]')),function(t){var e=document.getElementById(t.data("parent"));e&&(a()(e).hide(),a()("body").css({overflow:"auto"}))}(n);var o=n.data("onclose");void 0!==o&&o&&o();break;case"open":var r=this;this.data("parent-id")&&(r=a()('[data-parent="'+this.data("parent-id")+'"]')),function(t){var e=document.getElementById(t.data("parent"));e&&(t.show(),a()(e).show(),a()("body").css({overflow:"hidden"}))}(r);var i=r.data("onopen");void 0!==i&&i&&i();break;case"instance":var d=this;return this.data("parent-id")&&(d=a()('[data-parent="'+this.data("parent-id")+'"]')),d;default:if(this.data("parent"))return this;var l=s()();this.appendTo("body"),void 0!==t.dialogClass&&this.addClass(t.dialogClass);var c=void 0===t.titleHtml?this.attr("title"):t.titleHtml,u=a()('<div id="'+l+'" class="dm-dialog-container dm-dialog-'+(this.hasClass("ncore_admin")?"admin":"user")+'">\n\t\t\t\t\t<div class="dm-dialog">\n\t\t\t\t\t\t'+(c?'<div class="dm-dialog-header">'+c+"</div>":"")+'\n\t\t\t\t\t\t<div class="dm-dialog-content"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>').hide();this.attr("data-parent",l),this.data("onclose",t.close||null),this.data("onopen",t.open||null),u.appendTo("body");var p=u.children(".dm-dialog"),_=a()(window).width();void 0!==t.width&&void 0!==_&&_>parseInt(t.width.replace("px",""))&&p.css("max-width",t.width||0);var f=a()(window).height();void 0!==t.height&&void 0!==f&&f>parseInt(t.height.replace("px",""))&&p.css("max-height",t.height||0),p.append(function(t,e){var n=a()('<div class="dm-dialog-buttonpane"></div>'),o=Object.keys(e);if(!o.length)return n.css({padding:0,"max-height":"10px"});var r=o.map((function(n){var o=a()('<button class="dm-dialog-button" data-parent-id="'+t+'">'+n+"</button>");return o.on("click",e[n]),o}));return n.append(r),n}(l,t.buttons)).append(function(t,e){var n=a()('<a class="dm-close-button" title="'+e+'" data-parent-id="'+t+'"></a>');return n.on("click",(function(t){t.preventDefault(),t.stopPropagation(),a()(this).dmDialog("close")})),n}(l,t.closeText)),p.children(".dm-dialog-content").append(this),t.modal||u.on("click",(function(t){t.target==u.get(0)&&e.dmDialog("close")})),t.autoOpen&&this.dmDialog("open")}return this},l=n(228),c=function(t){this.each((function(){var e=a()(this);switch(typeof t.content){case"string":e.attr("data-title",t.content);break;case"function":e.attr("data-title",t.content.bind(this)())}if(void 0!==t.tooltipClass&&e.addClass(t.tooltipClass),Object(l.b)(e),void 0!==t.hide){var n=e.parents(".dm-tooltip-container");e.hover((function(){n.find(".dm-tooltip-bubble").css({opacity:1,pointerevents:"all",width:"auto",overflow:"visible",transition:"opacity 0.2s ease-in"}),setTimeout((function(){n.find(".dm-tooltip-bubble").attr("style","")}),t.hide)}),(function(){}))}}))};!function(t){t.None="none",t.Mismatch="mismatch",t.Bad="bad",t.Weak="weak",t.Good="good",t.Strong="strong"}(o||(o={}));window.dmCalculatePasswordStrength=function(t,e,n){var r=void 0!==t&&""!==t,a=void 0!==n&&""!==n;if(!r&&!a)return o.None;if(r&&a&&n!==t)return o.Mismatch;a&&!r&&(t=n);var i=function(t){for(var e={},n=0,o=t.length;n<o;n++)e[t[n]]=e[t[n]]+1||1;return Object.keys(e).length}(t);if(i<4)return o.Bad;if(e&&t.toLowerCase().indexOf(e.toLowerCase())>=0)return o.Bad;var s=0;return t.match(/[0-9]/)&&s++,t.match(/[a-z]/)&&s++,t.match(/[A-Z]/)&&s++,t.match(/[^a-zA-Z0-9]/)&&s++,s<=1?o.Weak:i>=10?o.Strong:s>=4&&i>=4&&t.length>=8?o.Strong:s>=2&&i>=5&&t.length>=8?o.Good:o.Weak};n(828);a.a.fn.extend({dmDialog:d,dmTooltip:c})}});