function _aureliaConfigureModuleLoader(){requirejs.config({baseUrl:"src/",paths:{electron:"../aurelia_project/native/electron",child_process:"../aurelia_project/native/child_process",crypto:"../aurelia_project/native/crypto",fs:"../aurelia_project/native/fs",http:"../aurelia_project/native/http",https:"../aurelia_project/native/https",net:"../aurelia_project/native/net",os:"../aurelia_project/native/os",path:"../aurelia_project/native/path",timers:"../aurelia_project/native/timers",url:"../aurelia_project/native/url",text:"../node_modules/text/text","bugsnag-js":"..\\node_modules\\bugsnag-js\\src\\bugsnag",tslib:"..\\node_modules\\tslib\\tslib","aurelia-animator-css":"..\\node_modules\\aurelia-animator-css\\dist\\amd\\aurelia-animator-css","aurelia-binding":"..\\node_modules\\aurelia-binding\\dist\\amd\\aurelia-binding","aurelia-bootstrapper":"..\\node_modules\\aurelia-bootstrapper\\dist\\amd\\aurelia-bootstrapper","aurelia-dependency-injection":"..\\node_modules\\aurelia-dependency-injection\\dist\\amd\\aurelia-dependency-injection","aurelia-event-aggregator":"..\\node_modules\\aurelia-event-aggregator\\dist\\amd\\aurelia-event-aggregator","aurelia-fetch-client":"..\\node_modules\\aurelia-fetch-client\\dist\\amd\\aurelia-fetch-client","aurelia-framework":"..\\node_modules\\aurelia-framework\\dist\\amd\\aurelia-framework","aurelia-http-client":"..\\node_modules\\aurelia-http-client\\dist\\amd\\aurelia-http-client","aurelia-history":"..\\node_modules\\aurelia-history\\dist\\amd\\aurelia-history","aurelia-history-browser":"..\\node_modules\\aurelia-history-browser\\dist\\amd\\aurelia-history-browser","aurelia-loader":"..\\node_modules\\aurelia-loader\\dist\\amd\\aurelia-loader","aurelia-loader-default":"..\\node_modules\\aurelia-loader-default\\dist\\amd\\aurelia-loader-default","aurelia-logging":"..\\node_modules\\aurelia-logging\\dist\\amd\\aurelia-logging","aurelia-logging-console":"..\\node_modules\\aurelia-logging-console\\dist\\amd\\aurelia-logging-console","aurelia-metadata":"..\\node_modules\\aurelia-metadata\\dist\\amd\\aurelia-metadata","aurelia-pal":"..\\node_modules\\aurelia-pal\\dist\\amd\\aurelia-pal","aurelia-pal-browser":"..\\node_modules\\aurelia-pal-browser\\dist\\amd\\aurelia-pal-browser","aurelia-path":"..\\node_modules\\aurelia-path\\dist\\amd\\aurelia-path","aurelia-polyfills":"..\\node_modules\\aurelia-polyfills\\dist\\amd\\aurelia-polyfills","aurelia-route-recognizer":"..\\node_modules\\aurelia-route-recognizer\\dist\\amd\\aurelia-route-recognizer","aurelia-router":"..\\node_modules\\aurelia-router\\dist\\amd\\aurelia-router","aurelia-task-queue":"..\\node_modules\\aurelia-task-queue\\dist\\amd\\aurelia-task-queue","aurelia-templating":"..\\node_modules\\aurelia-templating\\dist\\amd\\aurelia-templating","aurelia-templating-binding":"..\\node_modules\\aurelia-templating-binding\\dist\\amd\\aurelia-templating-binding",moment:"..\\node_modules\\moment\\moment",extend:"..\\node_modules\\extend\\index","daringdev-async":"..\\node_modules\\daringdev-async\\dist\\commonjs\\index","daringdev-disposable":"..\\node_modules\\daringdev-disposable\\dist\\commonjs\\index","daringdev-storage":"..\\node_modules\\daringdev-storage\\dist\\commonjs\\index","daringdev-storage-local":"..\\node_modules\\daringdev-storage-local\\dist\\commonjs\\index","daringdev-storage-moment":"..\\node_modules\\daringdev-storage-moment\\dist\\commonjs\\index","app-bundle":"../output/app-bundle-b17e6cb2ef"},packages:[{name:"daringdev-pusher",location:"../node_modules/daringdev-pusher/dist/amd",main:"index"},{name:"daringdev-inline-svg",location:"../node_modules/daringdev-inline-svg/dist/amd",main:"index"},{name:"wemod-api-auth",location:"../node_modules/wemod-api-auth/dist/amd",main:"index"},{name:"wemod-api-client",location:"../node_modules/wemod-api-client/dist/amd",main:"index"},{name:"wemod-notifications",location:"../node_modules/wemod-notifications/dist/amd",main:"index"},{name:"wemod-objectives",location:"../node_modules/wemod-objectives/dist/amd",main:"index"},{name:"wemod-users",location:"../node_modules/wemod-users/dist/amd",main:"index"},{name:"aurelia-templating-resources",location:"../node_modules/aurelia-templating-resources/dist/amd",main:"aurelia-templating-resources"},{name:"aurelia-templating-router",location:"../node_modules/aurelia-templating-router/dist/amd",main:"aurelia-templating-router"},{name:"pusher-js",location:"../node_modules/pusher-js/dist/web",main:"pusher.min"},{name:"aurelia-dialog",location:"../node_modules/aurelia-dialog/dist/amd",main:"aurelia-dialog"},{name:"markdown-it",location:"../node_modules/markdown-it/dist",main:"markdown-it.min"},{name:"aurelia-ui-virtualization",location:"../node_modules/aurelia-ui-virtualization/dist/amd",main:"aurelia-ui-virtualization"}],stubModules:["text"],shim:{},bundles:{"app-bundle":["environment","util/strings","util/promisify","util/fs","util/os","logger","contracts/app/auto-updater","services/electron/squirrel-auto-updater","contracts/app/app-host","services/electron/electron","main","contracts/analytics/tracker","util/abTest","authentication/sign-up-dialog","authentication/log-in-dialog","app/basic-dialog","app/app-header","contracts/security/access-checker","util/dom","app/external-url-handler","app/routes","app/app","app/notification-feed","app/resources/data/onboarding-items","app/onboarding","app/question-dialog","upgrade/pro-upgrade-dialog","upgrade/pro-trial-dialog","app/sidebar","resources/data/changelog","app/update-dialog","app/window-controls","cheats/blueprint-provider","cheats/trainer-history","contracts/security/hwid-reader","contracts/trainers/licensing/license-provider","contracts/installations/game-locator","contracts/installations/installation-monitor","contracts/trainers/favorites","cheats/trainer-feed-provider","cheats/cheats","cheats/compatibility-provider","cheats/read-trainer-notes","contracts/settings/settings","cheats/sound-player","contracts/games/game-process-monitor","cheats/resources/elements/trainer-settings-provider","contracts/app/app-server","services/trainer-development/development-server","contracts/trainers/custom-hotkey-provider","contracts/input/hotkey-monitor","contracts/trainers/native/trainer-instance","contracts/trainers/remote/remote","cheats/trainer","dashboard/dashboard","contracts/registry/registry","platforms/gog/gog-game","platforms/gog/gog-galaxy","platforms/gog/gog-game-locator","platforms/origin/origin-offer","platforms/origin/origin-client","platforms/origin/origin-game-locator","platforms/steam/vdf","platforms/steam/steam-app","platforms/steam/steam-library","platforms/steam/steam-installation","platforms/steam/steam-game-locator","contracts/filesystem/filesystem","platforms/twitch/twitch-app","platforms/twitch/twitch-game-locator","platforms/uplay/uplay-game","platforms/uplay/uplay-client","platforms/uplay/uplay-game-locator","platforms/windows-store/pfn","platforms/windows-store/windows-app","platforms/windows-store/windows-app-library","platforms/windows-store/windows-game-locator","platforms/index","resources/index","settings/settings","util/pe","util/timer","util/uuid","contracts/app/installation-id-provider","contracts/games/game-launcher","contracts/processes/dll-injector","contracts/processes/process-memory","contracts/processes/process","contracts/processes/process-reader","contracts/processes/remote-function-caller","contracts/security/acl-modifier","contracts/security/well-known-sids","contracts/trainers/version-reader","resources/custom-attributes/close-if-click-outside","resources/data/help","resources/data/spotlight-game","resources/elements/favorite-button","resources/elements/help","resources/elements/info-tooltip","resources/elements/number-input","resources/elements/selection-input","resources/elements/tooltip","resources/elements/trainer-feed","resources/elements/trainer-tile","resources/elements/view-mode-selector","resources/value-converters/file-list-to-path","resources/value-converters/friendly-date","resources/value-converters/group-by-key","resources/value-converters/markdown","resources/value-converters/number-with-commas","resources/value-converters/pluck","resources/value-converters/relative-time","resources/value-converters/sort-by-prop","resources/value-converters/stringarray-format","resources/value-converters/take","services/app-server/keys","services/app-server/https-server","services/app-server/index","services/bugsnag/bugsnag-step","services/bugsnag/index","services/debug/index","services/game-processes/game-launcher","services/game-processes/game-process-monitor","services/game-processes/index","services/game-reporter/polling-game-reporter","services/game-reporter/index","services/google-analytics/google-analytics-tracker","services/google-analytics/index","services/installations/locators/user-game-locator","services/installations/locators/registry-game-locator","services/installations/locators/directory-game-locator","services/installations/installation-monitor","services/installations/index","services/pusher-remote/pusher-remote","services/pusher-remote/index","services/storage/persisted-licenses","services/storage/persisted-installation-id","services/storage/persisted-hotkeys","services/storage/persisted-settings","services/storage/persisted-favorites","services/storage/index","services/support/support-service","services/support/commands/filesystem","services/support/commands/hwid-reader","services/support/piped-support-task","services/support/piped-support-service","services/support/piped-support-factory","services/support/commands/hotkey-monitor","services/support/commands/security","services/support/commands/registry","services/support/commands/remote-function-caller","services/support/commands/dll-injector","services/support/commands/process","services/support/commands/process-memory","services/support/index","services/tracking-toggler/index","services/trainer-compatibility/polling-version-reporter","services/trainer-compatibility/index","services/trainer-development/index","contracts/trainers/native/binary-provider","services/trainer-storage/binary-provider","services/trainer-storage/index","services/trainer-versioning/version-reader","services/trainer-versioning/index","services/trainerlib/trainerlib-connection","services/trainerlib/trainerlib-trainer-instance","services/trainerlib/trainerlib-factory","services/trainerlib/index","services/wemod/index","app/resources/elements/onboarding-item","cheats/resources/elements/code-tooltip","cheats/resources/elements/selection-input","cheats/resources/elements/trainer-cheat","cheats/resources/elements/trainer-hotkey","cheats/resources/elements/trainer-launch-button","cheats/resources/elements/trainer-no-installation-button","cheats/resources/elements/trainer-not-compatible-button","cheats/resources/elements/trainer-settings","cheats/resources/value-converters/proper-game-provider","cheats/resources/value-converters/proper-hotkey","dashboard/resources/elements/objectives","dashboard/resources/elements/slideshow","dashboard/resources/value-converters/href-target","settings/resources/elements/setting","settings/resources/elements/sound-pack","wemod-api-auth/auth-service","wemod-api-auth/auth-client","aurelia-dialog/ai-dialog","aurelia-dialog/ai-dialog-header","aurelia-dialog/dialog-controller","aurelia-dialog/lifecycle","aurelia-dialog/dialog-result","aurelia-dialog/ai-dialog-body","aurelia-dialog/ai-dialog-footer","aurelia-dialog/attach-focus","aurelia-dialog/dialog-configuration","aurelia-dialog/renderer","aurelia-dialog/dialog-renderer","aurelia-dialog/dialog-options","aurelia-dialog/dialog-service","wemod-users/user-service","wemod-notifications/notification-service","wemod-api-client/api-client","wemod-api-client/util","wemod-api-client/apis/index","wemod-api-client/apis/infinity-featured-content-api","wemod-api-client/apis/game-api","wemod-api-client/apis/trainer-api","wemod-api-client/apis/game-reporting-api","wemod-api-client/apis/notification-api","wemod-api-client/apis/objective-api","wemod-api-client/apis/trainer-blueprint-api","wemod-api-client/apis/trainer-compatibility-api","wemod-api-client/apis/trainer-developer-api","wemod-api-client/apis/trainer-licensing-api","wemod-api-client/apis/trainer-session-api","wemod-api-client/apis/user-api","daringdev-pusher/pusher","wemod-objectives/objective-service","assets/styles/app","assets/styles/app/app-header","assets/styles/app/notification-feed","assets/styles/app/onboarding","assets/styles/app/question-dialog","assets/styles/app/sidebar","assets/styles/app/update-dialog","assets/styles/app/window-controls","assets/styles/settings/pro-upgrade-dialog","assets/styles/settings/sound-pack","assets/styles/dashboard/objectives","assets/styles/dashboard/slideshow","assets/styles/upgrade/pro-trial-dialog","assets/styles/upgrade/pro-upgrade-dialog","assets/styles/cheats/code-tooltip","assets/styles/cheats/trainer-category-header","assets/styles/cheats/trainer-cheat","resources/elements/close-button","assets/styles/cheats/trainer-cheats-list","assets/styles/cheats/trainer-header","resources/elements/file-input","assets/styles/cheats/trainer-hotkey","assets/styles/cheats/trainer-launch-button","assets/styles/cheats/trainer-no-installation-button","resources/elements/incompatible-overlay","assets/styles/cheats/trainer-settings","assets/styles/cheats/trainer","resources/elements/pill","resources/elements/pro-overlay","assets/styles/authentication/log-in-dialog","resources/elements/pro-tooltip","assets/styles/authentication/sign-up-dialog","resources/elements/progress-bar","assets/styles/elements/action-button","resources/elements/range-input","assets/styles/elements/category-icon","resources/elements/switch-input","assets/styles/elements/close-button","assets/styles/elements/dialog-error","assets/styles/elements/dialog-input","resources/elements/trainer-feed-header","assets/styles/elements/dialog","assets/styles/elements/disabled-input","assets/styles/elements/disabled-overlay","assets/styles/elements/favorite-button","assets/styles/elements/file-input","assets/styles/elements/help","assets/styles/elements/info-tooltip","assets/styles/elements/list","assets/styles/elements/number-input","assets/styles/elements/pill","settings/resources/elements/file","assets/styles/elements/pro-tooltip","assets/styles/elements/progress-bar","assets/styles/elements/radio-input","assets/styles/elements/range-input","settings/resources/elements/toggle","assets/styles/elements/selection-input","assets/styles/elements/standard-button","assets/styles/elements/switch-input","assets/styles/elements/text-inputs","cheats/resources/elements/trainer-category-header","assets/styles/elements/tile","assets/styles/elements/tooltip","assets/styles/elements/trainer-feed-header","cheats/resources/elements/trainer-cheats-list","assets/styles/elements/trainer-feed-list","assets/styles/elements/trainer-feed","assets/styles/elements/trainer-tile","assets/styles/elements/view-mode-selector"]}})}!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.Promise=e()}}(function(){var e,t,n;return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof _dereq_&&_dereq_;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof _dereq_&&_dereq_,s=0;s0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),r=e.shift();t.call(n,r)}else t._settlePromises()}},r.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},t.exports=r,t.exports.firstLineError=a},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i=!1,o=function(e,t){this._reject(t)},s=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},a=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},u=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var c=n(o),l=new e(t);l._propagateFrom(this,1);var h=this._target();if(l._setBoundTo(c),c instanceof e){var p={promiseRejectionQueued:!1,promise:l,target:h,bindingPromise:c};h._then(t,s,void 0,l,p),c._then(a,u,void 0,l,p),l._setOnCancel(c)}else l._resolveCallback(h);return l},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){"use strict";function r(){try{Promise===o&&(Promise=i)}catch(e){}return o}var i;"undefined"!=typeof Promise&&(i=Promise);var o=e("./promise")();o.noConflict=r,t.exports=o},{"./promise":22}],5:[function(e,t,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}t.exports=function(t){function n(e,n){var r;if(null!=e&&(r=e[n]),"function"!=typeof r){var i="Object "+a.classString(e)+" has no method '"+a.toString(n)+"'";throw new t.TypeError(i)}return r}function r(e){return n(e,this.pop()).apply(e,this)}function i(e){return e[this]}function o(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}var s,a=e("./util"),u=a.canEvaluate;a.isIdentifier;t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(r,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t,n="number"==typeof e;if(n)t=o;else if(u){var r=s(e);t=null!==r?r:i}else t=i;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),s=o.tryCatch,a=o.errorObj,u=t._async;t.prototype.break=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),u.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n=0)return o[e]}var i=!1,o=[];return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},t.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,o.push(this._trace))},t.prototype._popContext=function(){if(void 0!==this._trace){var e=o.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},t.CapturedTrace=null,t.create=n,t.deactivateLongStackTraces=function(){},t.activateLongStackTraces=function(){var n=e.prototype._pushContext,o=e.prototype._popContext,s=e._peekContext,a=e.prototype._peekContext,u=e.prototype._promiseCreated;t.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=o,e._peekContext=s,e.prototype._peekContext=a,e.prototype._promiseCreated=u,i=!1},i=!0,e.prototype._pushContext=t.prototype._pushContext,e.prototype._popContext=t.prototype._popContext,e._peekContext=e.prototype._peekContext=r,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},t}},{}],9:[function(e,t,n){"use strict";t.exports=function(t,n){function r(e,t){return{promise:t}}function i(){return!1}function o(e,t,n){var r=this;try{e(t,n,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+I.toString(e));r._attachCancellationCallback(e)})}catch(e){return e}}function s(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?I.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function a(){return this._onCancelField}function u(e){this._onCancelField=e}function c(){this._cancellationParent=void 0,this._onCancelField=void 0}function l(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function h(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function p(){var e=this._boundTo;return void 0!==e&&e instanceof t?e.isFulfilled()?e.value():void 0:e}function d(){this._trace=new P(this._peekContext())}function f(e,t){if(B(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=k(e);I.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),I.notEnumerableProp(e,"__stackCleaned__",!0)}}}function v(e,t,n,r,i){if(void 0===e&&null!==t&&Q){if(void 0!==i&&i._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var o="",s="";if(t._trace){for(var a=t._trace.stack.split("\n"),u=w(a),c=u.length-1;c>=0;--c){var l=u[c];if(!V.test(l)){var h=l.match(H);h&&(o="at "+h[1]+":"+h[2]+":"+h[3]+" ");break}}if(u.length>0)for(var p=u[0],c=0;c0&&(s="\n"+a[c-1]);break}}var d="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+s;r._warn(d,!0,t)}}function m(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),g(n)}function g(e,n,r){if(oe.warnings){var i,o=new N(e);if(n)r._attachExtraTrace(o);else if(oe.longStackTraces&&(i=t._peekContext()))i.attachExtraTrace(o);else{var s=k(o);o.stack=s.message+"\n"+s.stack.join("\n")}ee("warning",o)||C(o,"",!0)}}function y(e,t){for(var n=0;n=0;--a)if(r[a]===o){s=a;break}for(var a=s;a>=0;--a){var u=r[a];if(t[i]!==u)break;t.pop(),i--}t=r}}function w(e){for(var t=[],n=0;n0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}function k(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&t.length>0?x(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:w(t)}}function C(e,t,n){if("undefined"!=typeof console){var r;if(I.isObject(e)){var i=e.stack;r=t+U(i,e)}else r=t+String(e);"function"==typeof D?D(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function S(e,t,n,r){var i=!1;try{"function"==typeof t&&(i=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(e){F.throwLater(e)}"unhandledRejection"===e?ee(e,n,r)||i||C(n,"Unhandled rejection "):ee(e,r)}function O(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"==typeof e.toString?e.toString():I.toString(e);if(/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+E(t)+">, no stack trace)"}function E(e){return e.length<41?e:e.substr(0,38)+"..."}function A(){return"function"==typeof ie}function M(e){var t=e.match(re);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function T(e,t){if(A()){for(var n,r,i=e.stack.split("\n"),o=t.stack.split("\n"),s=-1,a=-1,u=0;u=a||(ne=function(e){if(q.test(e))return!0;var t=M(e);return!!(t&&t.fileName===n&&s<=t.line&&t.line<=a)})}}function P(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);ie(this,P),t>32&&this.uncycle()}var R,j,D,L=t._getDomain,F=t._async,N=e("./errors").Warning,I=e("./util"),B=I.canAttachTrace,q=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,V=/\((?:timers\.js):\d+:\d+\)/,H=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,z=null,U=null,W=!1,Y=!(0==I.env("BLUEBIRD_DEBUG")),G=!(0==I.env("BLUEBIRD_WARNINGS")||!Y&&!I.env("BLUEBIRD_WARNINGS")),$=!(0==I.env("BLUEBIRD_LONG_STACK_TRACES")||!Y&&!I.env("BLUEBIRD_LONG_STACK_TRACES")),Q=0!=I.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(G||!!I.env("BLUEBIRD_W_FORGOTTEN_RETURN"));t.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},t.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),F.invokeLater(this._notifyUnhandledRejection,this,void 0))},t.prototype._notifyUnhandledRejectionIsHandled=function(){S("rejectionHandled",R,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},t.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),S("unhandledRejection",j,e,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},t.prototype._warn=function(e,t,n){return g(e,t,n||this)},t.onPossiblyUnhandledRejection=function(e){var t=L();j="function"==typeof e?null===t?e:I.domainBind(t,e):void 0},t.onUnhandledRejectionHandled=function(e){var t=L();R="function"==typeof e?null===t?e:I.domainBind(t,e):void 0};var Z=function(){};t.longStackTraces=function(){if(F.haveItemsQueued()&&!oe.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!oe.longStackTraces&&A()){var e=t.prototype._captureStackTrace,r=t.prototype._attachExtraTrace;oe.longStackTraces=!0,Z=function(){if(F.haveItemsQueued()&&!oe.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=e,t.prototype._attachExtraTrace=r,n.deactivateLongStackTraces(),F.enableTrampoline(),oe.longStackTraces=!1},t.prototype._captureStackTrace=d,t.prototype._attachExtraTrace=f, n.activateLongStackTraces(),F.disableTrampolineIfNecessary()}},t.hasLongStackTraces=function(){return oe.longStackTraces&&A()};var J=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return I.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!I.global.dispatchEvent(n)}}if("function"==typeof Event){var e=new Event("CustomEvent");return I.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!I.global.dispatchEvent(n)}}var e=document.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),I.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!I.global.dispatchEvent(n)}}catch(e){}return function(){return!1}}(),X=function(){return I.isNode?function(){return process.emit.apply(process,arguments)}:I.global?function(e){var t="on"+e.toLowerCase(),n=I.global[t];return!!n&&(n.apply(I.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),K={promiseCreated:r,promiseFulfilled:r,promiseRejected:r,promiseResolved:r,promiseCancelled:r,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:r},ee=function(e){var t=!1;try{t=X.apply(null,arguments)}catch(e){F.throwLater(e),t=!0}var n=!1;try{n=J(e,K[e].apply(null,arguments))}catch(e){F.throwLater(e),n=!0}return n||t};t.config=function(e){if(e=Object(e),"longStackTraces"in e&&(e.longStackTraces?t.longStackTraces():!e.longStackTraces&&t.hasLongStackTraces()&&Z()),"warnings"in e){var n=e.warnings;oe.warnings=!!n,Q=oe.warnings,I.isObject(n)&&"wForgottenReturn"in n&&(Q=!!n.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!oe.cancellation){if(F.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=c,t.prototype._propagateFrom=l,t.prototype._onCancel=a,t.prototype._setOnCancel=u,t.prototype._attachCancellationCallback=s,t.prototype._execute=o,te=l,oe.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!oe.monitoring?(oe.monitoring=!0,t.prototype._fireEvent=ee):!e.monitoring&&oe.monitoring&&(oe.monitoring=!1,t.prototype._fireEvent=i)),t},t.prototype._fireEvent=i,t.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(e){},t.prototype._attachCancellationCallback=function(e){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(e,t){};var te=h,ne=function(){return!1},re=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;I.inherits(P,Error),n.CapturedTrace=P,P.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;void 0!==i;++r)t.push(i),i=i._parent;e=this._length=r;for(var r=e-1;r>=0;--r){var o=t[r].stack;void 0===n[o]&&(n[o]=r)}for(var r=0;r0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var u=r>0?t[r-1]:this;a=0;--l)t[l]._length=c,c++;return}}}},P.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=k(e),n=t.message,r=[t.stack],i=this;void 0!==i;)r.push(w(i.stack.split("\n"))),i=i._parent;_(r),b(r),I.notEnumerableProp(e,"stack",y(n,r)),I.notEnumerableProp(e,"__stackCleaned__",!0)}};var ie=function(){var e=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():O(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,z=/^\s*at\s*/,U=e;var t=Error.captureStackTrace;return ne=function(e){return q.test(e)},function(e,n){Error.stackTraceLimit+=6,t(e,n),Error.stackTraceLimit-=6}}var n=new Error;if("string"==typeof n.stack&&n.stack.split("\n")[0].indexOf("stackDetection@")>=0)return z=/@/,U=e,W=!0,function(e){e.stack=(new Error).stack};var r;try{throw new Error}catch(e){r="stack"in e}return"stack"in n||!r||"number"!=typeof Error.stackTraceLimit?(U=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?O(t):t.toString()},null):(z=/^\s*at\s*/,U=e,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(D=function(e){console.warn(e)},I.isNode&&process.stderr.isTTY?D=function(e,t){var n=t?"":"";console.warn(n+e+"\n")}:I.isNode||"string"!=typeof(new Error).stack||(D=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var oe={warnings:G,longStackTraces:!1,cancellation:!1,monitoring:!1};return $&&t.longStackTraces(),{longStackTraces:function(){return oe.longStackTraces},warnings:function(){return oe.warnings},cancellation:function(){return oe.cancellation},monitoring:function(){return oe.monitoring},propagateFromFunction:function(){return te},boundValueFunction:function(){return p},checkForgottenReturns:v,setBounds:T,warn:g,deprecated:m,CapturedTrace:P,fireDomEvent:J,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],11:[function(e,t,n){"use strict";t.exports=function(e,t){function n(){return o(this)}function r(e,n){return i(e,n,t,t)}var i=e.reduce,o=e.all;e.prototype.each=function(e){return i(this,e,t,0)._then(n,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return i(this,e,t,t)},e.each=function(e,r){return i(e,r,t,0)._then(n,void 0,void 0,e,void 0)},e.mapSeries=r}},{}],12:[function(e,t,n){"use strict";function r(e,t){function n(r){if(!(this instanceof n))return new n(r);h(this,"message","string"==typeof r?r:t),h(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(n,Error),n}function i(e){if(!(this instanceof i))return new i(e);h(this,"name","OperationalError"),h(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(h(this,"message",e.message),h(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}var o,s,a=e("./es5"),u=a.freeze,c=e("./util"),l=c.inherits,h=c.notEnumerableProp,p=r("Warning","warning"),d=r("CancellationError","cancellation error"),f=r("TimeoutError","timeout error"),v=r("AggregateError","aggregate error");try{o=TypeError,s=RangeError}catch(e){o=r("TypeError","type error"),s=r("RangeError","range error")}for(var m="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),g=0;g1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function a(){return c.call(this,this.promise._target()._settledValue())}function u(e){if(!s(this,e))return p.e=e,p}function c(e){var i=this.promise,c=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?c.call(i._boundValue()):c.call(i._boundValue(),e);if(l===r)return l;if(void 0!==l){i._setReturnedNonUndefined();var d=n(l,i);if(d instanceof t){if(null!=this.cancelPromise){if(d._isCancelled()){var f=new h("late cancellation observer");return i._attachExtraTrace(f),p.e=f,p}d.isPending()&&d._attachCancellationCallback(new o(this))}return d._then(a,u,void 0,this,void 0)}}}return i.isRejected()?(s(this),p.e=e,p):(s(this),e)}var l=e("./util"),h=t.CancellationError,p=l.errorObj,d=e("./catch_filter")(r);return i.prototype.isFinallyHandler=function(){return 0===this.type},o.prototype._resultCancelled=function(){s(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new i(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,c,c)},t.prototype.tap=function(e){return this._passThrough(e,1,c)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,void 0,c);var r,i=new Array(n-1),o=0;for(r=0;r0&&"function"==typeof arguments[t]){e=arguments[t];var r}var i=[].slice.call(arguments);e&&i.pop();var r=new n(i).promise();return void 0!==e?r.spread(e):r}}},{"./util":36}],18:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,s){function a(e,t,n,r){this.constructor$(e),this._promise._captureStackTrace();var i=c();this._callback=null===i?t:l.domainBind(i,t),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}function u(e,n,i,o){if("function"!=typeof n)return r("expecting a function but got "+l.classString(n));var s=0;if(void 0!==i){if("object"!=typeof i||null===i)return t.reject(new TypeError("options argument must be an object but it is "+l.classString(i)));if("number"!=typeof i.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+l.classString(i.concurrency)));s=i.concurrency}return s="number"==typeof s&&isFinite(s)&&s>=1?s:0,new a(e,n,s,o).promise()}var c=t._getDomain,l=e("./util"),h=l.tryCatch,p=l.errorObj,d=t._async;l.inherits(a,n),a.prototype._asyncInit=function(){this._init$(void 0,-2)},a.prototype._init=function(){},a.prototype._promiseFulfilled=function(e,n){var r=this._values,o=this.length(),a=this._preservedValues,u=this._limit;if(n<0){if(n=-1*n-1,r[n]=e,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return r[n]=e,this._queue.push(n),!1;null!==a&&(a[n]=e);var c=this._promise,l=this._callback,d=c._boundValue();c._pushContext();var f=h(l).call(d,e,n,o),v=c._popContext();if(s.checkForgottenReturns(f,v,null!==a?"Promise.filter":"Promise.map",c),f===p)return this._reject(f.e),!0;var m=i(f,this._promise);if(m instanceof t){m=m._target();var g=m._bitField;if(0==(50397184&g))return u>=1&&this._inFlight++,r[n]=m,m._proxy(this,-1*(n+1)),!1;if(0==(33554432&g))return 0!=(16777216&g)?(this._reject(m._reason()),!0):(this._cancel(),!0);f=m._value()}r[n]=f}return++this._totalResolved>=o&&(null!==a?this._filter(r,a):this._resolve(r),!0)},a.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight1){o.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],l=arguments[2];u=s.isArray(c)?a(e).apply(l,c):a(e).call(l,c)}else u=a(e)();var h=r._popContext();return o.checkForgottenReturns(u,h,"Promise.try",r),r._resolveFromSyncValue(u),r},t.prototype._resolveFromSyncValue=function(e){e===s.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){"use strict";function r(e){return e instanceof Error&&l.getPrototypeOf(e)===Error.prototype}function i(e){var t;if(r(e)){t=new c(e),t.name=e.name,t.message=e.message,t.stack=e.stack;for(var n=l.keys(e),i=0;i1){var n,r=new Array(t-1),i=0;for(n=0;n0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+d.classString(e);arguments.length>1&&(n+=", "+d.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},i.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},i.prototype.spread=function(e){return"function"!=typeof e?h("expecting a function but got "+d.classString(e)):this.all()._then(e,void 0,void 0,w,void 0)},i.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},i.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new C(this).promise()},i.prototype.error=function(e){return this.caught(d.originatesFromRejection,e)},i.getNewLibraryCopy=t.exports,i.is=function(e){return e instanceof i},i.fromNode=i.fromCallback=function(e){var t=new i(_);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=R(e)(T(t,n));return r===P&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},i.all=function(e){return new C(e).promise()},i.cast=function(e){var t=k(e);return t instanceof i||(t=new i(_),t._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(e){var t=new i(_);return t._captureStackTrace(),t._rejectCallback(e,!0),t},i.setScheduler=function(e){if("function"!=typeof e)throw new y("expecting a function but got "+d.classString(e));return m.setScheduler(e)},i.prototype._then=function(e,t,n,r,o){var s=void 0!==o,a=s?o:new i(_),c=this._target(),l=c._bitField;s||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&l)?this._boundValue():c===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var h=u();if(0!=(50397184&l)){var p,f,v=c._settlePromiseCtx;0!=(33554432&l)?(f=c._rejectionHandler0,p=e):0!=(16777216&l)?(f=c._fulfillmentHandler0,p=t,c._unsetRejectionIsUnhandled()):(v=c._settlePromiseLateCancellationObserver,f=new b("late cancellation observer"),c._attachExtraTrace(f),p=t),m.invoke(v,c,{handler:null===h?p:"function"==typeof p&&d.domainBind(h,p),promise:a,receiver:r,value:f})}else c._addCallbacks(e,t,a,r,h);return a},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},i.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},i.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},i.prototype._isFinal=function(){return(4194304&this._bitField)>0},i.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},i.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},i.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},i.prototype._setAsyncGuaranteed=function(){m.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},i.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==p)return void 0===t&&this._isBound()?this._boundValue():t},i.prototype._promiseAt=function(e){return this[4*e-4+2]},i.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},i.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(e){var t=(e._bitField,e._fulfillmentHandler0),n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);void 0===i&&(i=p),this._addCallbacks(t,n,r,i,null)},i.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=p),this._addCallbacks(n,r,i,o,null)},i.prototype._addCallbacks=function(e,t,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof e&&(this._fulfillmentHandler0=null===i?e:d.domainBind(i,e)),"function"==typeof t&&(this._rejectionHandler0=null===i?t:d.domainBind(i,t));else{var s=4*o-4;this[s+2]=n,this[s+3]=r,"function"==typeof e&&(this[s+0]=null===i?e:d.domainBind(i,e)),"function"==typeof t&&(this[s+1]=null===i?t:d.domainBind(i,t))}return this._setLength(o+1),o},i.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},i.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(c(),!1);var n=k(e,this);if(!(n instanceof i))return this._fulfill(e);t&&this._propagateFrom(n,2);var r=n._target();if(r===this)return void this._reject(c());var o=r._bitField;if(0==(50397184&o)){var s=this._length();s>0&&r._migrateCallback0(this);for(var a=1;a>>16)){if(e===this){var n=c();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():m.settlePromises(this))}},i.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return m.fatalError(e,d.isNode);(65535&t)>0?m.settlePromises(this):this._ensurePossibleRejectionHandled()}},i.prototype._fulfillPromises=function(e,t){for(var n=1;n0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},i.defer=i.pending=function(){return E.deprecated("Promise.defer","new Promise"),{promise:new i(_),resolve:o,reject:s}},d.notEnumerableProp(i,"_makeSelfResolutionError",c),e("./method")(i,_,k,h,E),e("./bind")(i,_,k,E),e("./cancel")(i,C,h,E),e("./direct_resolve")(i),e("./synchronous_inspection")(i),e("./join")(i,C,k,_,m,u),i.Promise=i,i.version="3.5.0",e("./map.js")(i,C,h,k,_,E),e("./call_get.js")(i),e("./using.js")(i,h,k,O,_,E),e("./timers.js")(i,_,E),e("./generators.js")(i,h,_,k,n,E),e("./nodeify.js")(i),e("./promisify.js")(i,_),e("./props.js")(i,C,k,h),e("./race.js")(i,_,k,h),e("./reduce.js")(i,C,h,k,_,E),e("./settle.js")(i,C,E),e("./some.js")(i,C,h),e("./filter.js")(i,_),e("./each.js")(i,_),e("./any.js")(i),d.toFastProperties(i),d.toFastProperties(i.prototype),a({a:1}),a({b:2}),a({c:3}),a(1),a(function(){}),a(void 0),a(!1),a(new i(_)),E.setBounds(v.firstLineError,d.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){function s(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}function a(e){var r=this._promise=new t(n);e instanceof t&&r._propagateFrom(e,3),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var u=e("./util");u.isArray;return u.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function e(n,o){var a=r(this._values,this._promise);if(a instanceof t){a=a._target();var c=a._bitField;if(this._values=a,0==(50397184&c))return this._promise._setAsyncGuaranteed(),a._then(e,this._reject,void 0,this,o);if(0==(33554432&c))return 0!=(16777216&c)?this._reject(a._reason()):this._cancel();a=a._value()}if(null===(a=u.asArray(a))){var l=i("expecting an array or an iterable object but got "+u.classString(a)).reason();return void this._promise._rejectCallback(l,!1)}if(0===a.length)return void(-5===o?this._resolveEmptyArray():this._resolve(s(o)));this._iterate(a)},a.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,s=null,a=0;a=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=p(this._values);else{n={};for(var r=this.length(),i=0,o=this.length();i>1},t.prototype.props=function(){return s(this)},t.props=function(e){return s(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){"use strict";function r(e,t,n,r,i){for(var o=0;o=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(e,t){var n=new o;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},i.prototype._promiseRejected=function(e,t){var n=new o;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new i(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){"use strict";t.exports=function(t,n,r){function i(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new i(e),o=n.promise();return n.setHowMany(t),n.init(),o}var s=e("./util"),a=e("./errors").RangeError,u=e("./errors").AggregateError,c=s.isArray,l={};s.inherits(i,n),i.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var e=c(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){return this._howMany},i.prototype.setHowMany=function(e){this._howMany=e},i.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},i.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},i.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new u,t=this.length();t0?this._reject(e):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(e){this._values.push(e)},i.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new a(t)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return o(e,t)},t.prototype.some=function(e){return o(this,e)},t._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},s=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},a=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return s.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return a.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){"use strict";t.exports=function(t,n){function r(e,r){if(l(e)){if(e instanceof t)return e;var i=o(e);if(i===c){r&&r._pushContext();var u=t.reject(i.e);return r&&r._popContext(),u}if("function"==typeof i){if(s(e)){var u=new t(n);return e._then(u._fulfill,u._reject,void 0,u,null),u}return a(e,i,r)}}return e}function i(e){return e.then}function o(e){try{return i(e)}catch(e){return c.e=e,c}}function s(e){try{return h.call(e,"_promise0")}catch(e){return!1}}function a(e,r,i){function o(e){a&&(a._resolveCallback(e),a=null)}function s(e){a&&(a._rejectCallback(e,h,!0),a=null)}var a=new t(n),l=a;i&&i._pushContext(),a._captureStackTrace(),i&&i._popContext();var h=!0,p=u.tryCatch(r).call(e,o,s);return h=!1,a&&p===c&&(a._rejectCallback(p.e,!0,!0),a=null),l}var u=e("./util"),c=u.errorObj,l=u.isObject,h={}.hasOwnProperty;return r}},{"./util":36}],34:[function(e,t,n){"use strict";t.exports=function(t,n,r){function i(e){this.handle=e}function o(e){return clearTimeout(this.handle),e}function s(e){throw clearTimeout(this.handle),e}var a=e("./util"),u=t.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var c=function(e){return l(+this).thenReturn(e)},l=t.delay=function(e,o){var s,a;return void 0!==o?(s=t.resolve(o)._then(c,null,null,e,void 0),r.cancellation()&&o instanceof t&&s._setOnCancel(o)):(s=new t(n),a=setTimeout(function(){s._fulfill()},+e),r.cancellation()&&s._setOnCancel(new i(a)),s._captureStackTrace()),s._setAsyncGuaranteed(),s};t.prototype.delay=function(e){return l(e,this)};var h=function(e,t,n){var r;r="string"!=typeof t?t instanceof Error?t:new u("operation timed out"):new u(t),a.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()};t.prototype.timeout=function(e,t){e=+e;var n,a,u=new i(setTimeout(function(){n.isPending()&&h(n,t,a)},e));return r.cancellation()?(a=this.then(),n=a._then(o,s,void 0,u,void 0),n._setOnCancel(u)):n=this._then(o,s,void 0,u,void 0),n}}},{"./util":36}],35:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,s){function a(e){setTimeout(function(){throw e},0)}function u(e){var t=r(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}function c(e,n){function i(){if(s>=c)return l._fulfill();var o=u(e[s++]);if(o instanceof t&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),e.promise)}catch(e){return a(e)}if(o instanceof t)return o._then(i,a,null,null,null)}i()}var s=0,c=e.length,l=new t(o);return i(),l}function l(e,t,n){this._data=e,this._promise=t,this._context=n}function h(e,t,n){this.constructor$(e,t,n)}function p(e){return l.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function d(e){this.length=e,this.promise=null,this[e-1]=null}var f=e("./util"),v=e("./errors").TypeError,m=e("./util").inherits,g=f.errorObj,y=f.tryCatch,b={};l.prototype.data=function(){return this._data},l.prototype.promise=function(){return this._promise},l.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():b},l.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==b?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},l.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},m(h,l),h.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},d.prototype._resultCancelled=function(){for(var e=this.length,n=0;n0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new h(e,this,i());throw new v}}},{"./errors":12,"./util":36}],36:[function(e,t,n){"use strict";function r(){try{var e=M;return M=null,e.apply(this,arguments)}catch(e){return A.e=e,A}}function i(e){return M=e,r}function o(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function s(e){return"function"==typeof e||"object"==typeof e&&null!==e}function a(e){return o(e)?new Error(m(e)):e}function u(e,t){var n,r=e.length,i=new Array(r+1);for(n=0;n1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),i=j.test(e+"")&&O.names(e).length>0;if(n||r||i)return!0}return!1}catch(e){return!1}}function d(e){function t(){}t.prototype=e;for(var n=8;n--;)new t;return e}function f(e){return D.test(e)}function v(e,t,n){for(var r=new Array(e),i=0;i10||e[0]>0}(),q.isNode&&q.toFastProperties(process);try{throw new Error}catch(e){q.lastLineError=e}t.exports=q},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise);var requirejs,require,define;!function(global,setTimeout){function commentReplace(e,t){return t||""}function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var n;for(n=0;n-1&&(!e[n]||!t(e[n],n,e));n-=1);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var n;for(n in e)if(hasProp(e,n)&&t(e[n],n))break}function mixin(e,t,n,r){return t&&eachProp(t,function(t,i){!n&&hasProp(e,i)||(!r||"object"!=typeof t||!t||isArray(t)||isFunction(t)||t instanceof RegExp?e[i]=t:(e[i]||(e[i]={}),mixin(e[i],t,n,r)))}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,n,r){var i=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return i.requireType=e,i.requireModules=r,n&&(i.originalError=n),i}function newContext(e){function t(e){var t,n;for(t=0;t0&&(e.splice(t-1,2),t-=2)}}function n(e,n,r){var i,o,s,a,u,c,l,h,p,d,f,v=n&&n.split("/"),m=k.map,g=m&&m["*"];if(e&&(e=e.split("/"),c=e.length-1,k.nodeIdCompat&&jsSuffixRegExp.test(e[c])&&(e[c]=e[c].replace(jsSuffixRegExp,"")),"."===e[0].charAt(0)&&v&&(f=v.slice(0,v.length-1),e=f.concat(e)),t(e),e=e.join("/")),r&&m&&(v||g)){o=e.split("/");e:for(s=o.length;s>0;s-=1){if(u=o.slice(0,s).join("/"),v)for(a=v.length;a>0;a-=1)if((i=getOwn(m,v.slice(0,a).join("/")))&&(i=getOwn(i,u))){l=i,h=s;break e}!p&&g&&getOwn(g,u)&&(p=getOwn(g,u),d=s)}!l&&p&&(l=p,h=d),l&&(o.splice(0,h,l),e=o.join("/"))}return getOwn(k.pkgs,e)||e}function r(e){isBrowser&&each(scripts(),function(t){if(t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===_.contextName)return t.parentNode.removeChild(t),!0})}function i(e){var t=getOwn(k.paths,e);if(t&&isArray(t)&&t.length>1)return t.shift(),_.require.undef(e),_.makeRequire(null,{skipMap:!0})([e]),!0}function o(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function s(e,t,r,i){var s,a,u,c,l=null,h=t?t.name:null,p=e,d=!0,f="";return e||(d=!1,e="_@r"+(P+=1)),c=o(e),l=c[0],e=c[1],l&&(l=n(l,h,i),a=getOwn(A,l)),e&&(l?f=r?e:a&&a.normalize?a.normalize(e,function(e){return n(e,h,i)}):-1===e.indexOf("!")?n(e,h,i):e:(f=n(e,h,i),c=o(f),l=c[0],f=c[1],r=!0,s=_.nameToUrl(f))),u=!l||a||r?"":"_unnormalized"+(R+=1),{prefix:l,name:f,parentMap:t,unnormalized:!!u,url:s,originalName:p,isDefine:d,id:(l?l+"!"+f:f)+u}}function a(e){var t=e.id,n=getOwn(C,t);return n||(n=C[t]=new _.Module(e)),n}function u(e,t,n){var r=e.id,i=getOwn(C,r);!hasProp(A,r)||i&&!i.defineEmitComplete?(i=a(e),i.error&&"error"===t?n(i.error):i.on(t,n)):"defined"===t&&n(A[r])}function c(e,t){var n=e.requireModules,r=!1;t?t(e):(each(n,function(t){var n=getOwn(C,t) ;n&&(n.error=e,n.events.error&&(r=!0,n.emit("error",e)))}),r||req.onError(e))}function l(){globalDefQueue.length&&(each(globalDefQueue,function(e){var t=e[0];"string"==typeof t&&(_.defQueueMap[t]=!0),E.push(e)}),globalDefQueue=[])}function h(e){delete C[e],delete S[e]}function p(e,t,n){var r=e.map.id;e.error?e.emit("error",e.error):(t[r]=!0,each(e.depMaps,function(r,i){var o=r.id,s=getOwn(C,o);!s||e.depMatched[i]||n[o]||(getOwn(t,o)?(e.defineDep(i,A[o]),e.check()):p(s,t,n))}),n[r]=!0)}function d(){var e,t,n=1e3*k.waitSeconds,o=n&&_.startTime+n<(new Date).getTime(),s=[],a=[],u=!1,l=!0;if(!y){if(y=!0,eachProp(S,function(e){var n=e.map,c=n.id;if(e.enabled&&(n.isDefine||a.push(e),!e.error))if(!e.inited&&o)i(c)?(t=!0,u=!0):(s.push(c),r(c));else if(!e.inited&&e.fetched&&n.isDefine&&(u=!0,!n.prefix))return l=!1}),o&&s.length)return e=makeError("timeout","Load timeout for modules: "+s,null,s),e.contextName=_.contextName,c(e);l&&each(a,function(e){p(e,{},{})}),o&&!t||!u||!isBrowser&&!isWebWorker||x||(x=setTimeout(function(){x=0,d()},50)),y=!1}}function f(e){hasProp(A,e[0])||a(s(e[0],null,!0)).init(e[1],e[2])}function v(e,t,n,r){e.detachEvent&&!isOpera?r&&e.detachEvent(r,t):e.removeEventListener(n,t,!1)}function m(e){var t=e.currentTarget||e.srcElement;return v(t,_.onScriptLoad,"load","onreadystatechange"),v(t,_.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function g(){var e;for(l();E.length;){if(e=E.shift(),null===e[0])return c(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));f(e)}_.defQueueMap={}}var y,b,_,w,x,k={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},C={},S={},O={},E=[],A={},M={},T={},P=1,R=1;return w={require:function(e){return e.require?e.require:e.require=_.makeRequire(e.map)},exports:function(e){if(e.usingExports=!0,e.map.isDefine)return e.exports?A[e.map.id]=e.exports:e.exports=A[e.map.id]={}},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return getOwn(k.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},b=function(e){this.events=getOwn(O,e.id)||{},this.map=e,this.shim=getOwn(k.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},b.prototype={init:function(e,t,n,r){r=r||{},this.inited||(this.factory=t,n?this.on("error",n):this.events.error&&(n=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=n,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,_.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();_.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()}))}},load:function(){var e=this.map.url;M[e]||(M[e]=!0,_.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,n=this.map.id,r=this.depExports,i=this.exports,o=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(o)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{i=_.execCb(n,o,r,i)}catch(t){e=t}else i=_.execCb(n,o,r,i);if(this.map.isDefine&&void 0===i&&(t=this.module,t?i=t.exports:this.usingExports&&(i=this.exports)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",c(this.error=e)}else i=o;if(this.exports=i,this.map.isDefine&&!this.ignore&&(A[n]=i,req.onResourceLoad)){var s=[];each(this.depMaps,function(e){s.push(e.normalizedMap||e)}),req.onResourceLoad(_,this.map,s)}h(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(_.defQueueMap,n)||this.fetch()}},callPlugin:function(){var e=this.map,t=e.id,r=s(e.prefix);this.depMaps.push(r),u(r,"defined",bind(this,function(r){var i,o,l,p=getOwn(T,this.map.id),d=this.map.name,f=this.map.parentMap?this.map.parentMap.name:null,v=_.makeRequire(e.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(r.normalize&&(d=r.normalize(d,function(e){return n(e,f,!0)})||""),o=s(e.prefix+"!"+d,this.map.parentMap,!0),u(o,"defined",bind(this,function(e){this.map.normalizedMap=o,this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),void((l=getOwn(C,o.id))&&(this.depMaps.push(o),this.events.error&&l.on("error",bind(this,function(e){this.emit("error",e)})),l.enable()))):p?(this.map.url=_.nameToUrl(p),void this.load()):(i=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),i.error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(C,function(e){0===e.map.id.indexOf(t+"_unnormalized")&&h(e.map.id)}),c(e)}),i.fromText=bind(this,function(n,r){var o=e.name,u=s(o),l=useInteractive;r&&(n=r),l&&(useInteractive=!1),a(u),hasProp(k.config,t)&&(k.config[o]=k.config[t]);try{req.exec(n)}catch(e){return c(makeError("fromtexteval","fromText eval for "+t+" failed: "+e,e,[t]))}l&&(useInteractive=!0),this.depMaps.push(u),_.completeLoad(o),v([o],i)}),void r.load(e.name,v,i,k))})),_.enable(r,this),this.pluginMaps[r.id]=r},enable:function(){S[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var n,r,i;if("string"==typeof e){if(e=s(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,i=getOwn(w,e.id))return void(this.depExports[t]=i(this));this.depCount+=1,u(e,"defined",bind(this,function(e){this.undefed||(this.defineDep(t,e),this.check())})),this.errback?u(e,"error",bind(this,this.errback)):this.events.error&&u(e,"error",bind(this,function(e){this.emit("error",e)}))}n=e.id,r=C[n],hasProp(w,n)||!r||r.enabled||_.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(C,e.id);t&&!t.enabled&&_.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var n=this.events[e];n||(n=this.events[e]=[]),n.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},_={config:k,contextName:e,registry:C,defined:A,urlFetched:M,defQueue:E,defQueueMap:{},Module:b,makeModuleMap:s,nextTick:req.nextTick,onError:c,configure:function(e){if(e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/"),"string"==typeof e.urlArgs){var t=e.urlArgs;e.urlArgs=function(e,n){return(-1===n.indexOf("?")?"?":"&")+t}}var n=k.shim,r={paths:!0,bundles:!0,config:!0,map:!0};eachProp(e,function(e,t){r[t]?(k[t]||(k[t]={}),mixin(k[t],e,!0,!0)):k[t]=e}),e.bundles&&eachProp(e.bundles,function(e,t){each(e,function(e){e!==t&&(T[e]=t)})}),e.shim&&(eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=_.makeShimExports(e)),n[t]=e}),k.shim=n),e.packages&&each(e.packages,function(e){var t,n;e="string"==typeof e?{name:e}:e,n=e.name,t=e.location,t&&(k.paths[n]=e.location),k.pkgs[n]=e.name+"/"+(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(C,function(e,t){e.inited||e.map.unnormalized||(e.map=s(t,null,!0))}),(e.deps||e.callback)&&_.require(e.deps||[],e.callback)},makeShimExports:function(e){function t(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}return t},makeRequire:function(t,i){function o(n,r,u){var l,h,p;return i.enableBuildCallback&&r&&isFunction(r)&&(r.__requireJsBuild=!0),"string"==typeof n?isFunction(r)?c(makeError("requireargs","Invalid require call"),u):t&&hasProp(w,n)?w[n](C[t.id]):req.get?req.get(_,n,t,o):(h=s(n,t,!1,!0),l=h.id,hasProp(A,l)?A[l]:c(makeError("notloaded",'Module name "'+l+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(g(),_.nextTick(function(){g(),p=a(s(null,t)),p.skipMap=i.skipMap,p.init(n,r,u,{enabled:!0}),d()}),o)}return i=i||{},mixin(o,{isBrowser:isBrowser,toUrl:function(e){var r,i=e.lastIndexOf("."),o=e.split("/")[0],s="."===o||".."===o;return-1!==i&&(!s||i>1)&&(r=e.substring(i,e.length),e=e.substring(0,i)),_.nameToUrl(n(e,t&&t.id,!0),r,!0)},defined:function(e){return hasProp(A,s(e,t,!1,!0).id)},specified:function(e){return e=s(e,t,!1,!0).id,hasProp(A,e)||hasProp(C,e)}}),t||(o.undef=function(e){l();var n=s(e,t,!0),i=getOwn(C,e);i.undefed=!0,r(e),delete A[e],delete M[n.url],delete O[e],eachReverse(E,function(t,n){t[0]===e&&E.splice(n,1)}),delete _.defQueueMap[e],i&&(i.events.defined&&(O[e]=i.events),h(e))}),o},enable:function(e){getOwn(C,e.id)&&a(e).enable()},completeLoad:function(e){var t,n,r,o=getOwn(k.shim,e)||{},s=o.exports;for(l();E.length;){if(n=E.shift(),null===n[0]){if(n[0]=e,t)break;t=!0}else n[0]===e&&(t=!0);f(n)}if(_.defQueueMap={},r=getOwn(C,e),!t&&!hasProp(A,e)&&r&&!r.inited){if(!(!k.enforceDefine||s&&getGlobal(s)))return i(e)?void 0:c(makeError("nodefine","No define call for "+e,null,[e]));f([e,o.deps||[],o.exportsFn])}d()},nameToUrl:function(e,t,n){var r,i,o,s,a,u,c,l=getOwn(k.pkgs,e);if(l&&(e=l),c=getOwn(T,e))return _.nameToUrl(c,t,n);if(req.jsExtRegExp.test(e))a=e+(t||"");else{for(r=k.paths,i=e.split("/"),o=i.length;o>0;o-=1)if(s=i.slice(0,o).join("/"),u=getOwn(r,s)){isArray(u)&&(u=u[0]),i.splice(0,o,u);break}a=i.join("/"),a+=t||(/^data\:|^blob\:|\?/.test(a)||n?"":".js"),a=("/"===a.charAt(0)||a.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+a}return k.urlArgs&&!/^blob\:/.test(a)?a+k.urlArgs(e,a):a},load:function(e,t){req.load(_,e,t)},execCb:function(e,t,n,r){return t.apply(r,n)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=m(e);_.completeLoad(t.id)}},onScriptError:function(e){var t=m(e);if(!i(t.id)){var n=[];return eachProp(C,function(e,r){0!==r.indexOf("_@r")&&each(e.depMaps,function(e){if(e.id===t.id)return n.push(r),!0})}),c(makeError("scripterror",'Script error for "'+t.id+(n.length?'", needed by: '+n.join(", "):'"'),e,[t.id]))}}},_.require=_.makeRequire(),_}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(e){if("interactive"===e.readyState)return interactiveScript=e}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.3",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if(void 0===define){if(void 0!==requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}void 0===require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,n,r){var i,o,s="_";return isArray(e)||"string"==typeof e||(o=e,isArray(t)?(e=t,t=n,n=r):e=[]),o&&o.context&&(s=o.context),i=getOwn(contexts,s),i||(i=contexts[s]=req.s.newContext(s)),o&&i.configure(o),i.require(e,t,n)},req.config=function(e){return req(e)},req.nextTick=void 0!==setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version="2.3.3",req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts._;return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],(baseElement=document.getElementsByTagName("base")[0])&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e,t,n){var r=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return r.type=e.scriptType||"text/javascript",r.charset="utf-8",r.async=!0,r},req.load=function(e,t,n){var r,i=e&&e.config||{};if(isBrowser)return r=req.createNode(i,t,n),r.setAttribute("data-requirecontext",e.contextName),r.setAttribute("data-requiremodule",t),!r.attachEvent||r.attachEvent.toString&&r.attachEvent.toString().indexOf("[native code")<0||isOpera?(r.addEventListener("load",e.onScriptLoad,!1),r.addEventListener("error",e.onScriptError,!1)):(useInteractive=!0,r.attachEvent("onreadystatechange",e.onScriptLoad)),r.src=n,i.onNodeCreated&&i.onNodeCreated(r,i,t,n),currentlyAddingScript=r,baseElement?head.insertBefore(r,baseElement):head.appendChild(r),currentlyAddingScript=null,r;if(isWebWorker)try{setTimeout(function(){},0),importScripts(n),e.completeLoad(t)}catch(r){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+n,r,[t]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){if(head||(head=e.parentNode),dataMain=e.getAttribute("data-main"))return mainScript=dataMain,cfg.baseUrl||-1!==mainScript.indexOf("!")||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(e,t,n){var r,i;"string"!=typeof e&&(n=t,t=e,e=null),isArray(t)||(n=t,t=null),!t&&isFunction(n)&&(t=[],n.length&&(n.toString().replace(/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,commentReplace).replace(/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,function(e,n){t.push(n)}),t=(1===n.length?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(r=currentlyAddingScript||getInteractiveScript())&&(e||(e=r.getAttribute("data-requiremodule")),i=contexts[r.getAttribute("data-requirecontext")]),i?(i.defQueue.push([e,t,n]),i.defQueueMap[e]=!0):globalDefQueue.push([e,t,n])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this,"undefined"==typeof setTimeout?void 0:setTimeout),_aureliaConfigureModuleLoader(),function(e,t){function n(e,t){return e&&t&&e.type===t.type&&e.name===t.name&&c(e.metaData,t.metaData)}function r(e){try{if("function"!=typeof e)return e;if(!e.bugsnag){var t=o();e.bugsnag=function(){if(A=t,!P){var n=e.apply(this,arguments);return A=null,n}try{return e.apply(this,arguments)}catch(e){throw b("autoNotify",!0)&&(T.notifyException(e,null,null,"error"),O()),e}finally{A=null}},e.bugsnag.bugsnag=e.bugsnag}return e.bugsnag}catch(t){return e}}function i(){N=!1}function o(){var e=document.currentScript||A;if(!e&&N){var t=document.scripts||document.getElementsByTagName("script");e=t[t.length-1]}return e}function s(e){var t=o();t&&(e.script={src:t.src,content:b("inlineScript",!0)?t.innerHTML:""})}function a(e,t,n){var r=e[t];e[t]=function(){n.apply(this,arguments),"function"==typeof r&&r.apply(this,arguments)}}function u(t){var n=b("disableLog"),r=e.console;void 0===r||void 0===r.log||n||r.log("[Bugsnag] "+t)}function c(e,t){return v(e)===v(t)}function l(e){var t=e.textContent||e.innerText||"";return"submit"!==e.type&&"button"!==e.type||(t=e.value),t=t.replace(/^\s+|\s+$/g,""),p(t,140)}function h(e){var t=[e.tagName];if(e.id&&t.push("#"+e.id),e.className&&e.className.length){var n="."+e.className.split(" ").join(".");t.push(n)}var r=t.join("");if(!document.querySelectorAll||!Array.prototype.indexOf)return r;try{if(1===document.querySelectorAll(r).length)return r}catch(e){return r}if(e.parentNode.childNodes.length>1){var i=Array.prototype.indexOf.call(e.parentNode.childNodes,e)+1;r=r+":nth-child("+i+")"}return 1===document.querySelectorAll(r).length?r:e.parentNode?h(e.parentNode)+" > "+r:r}function p(e,t){return e&&e.length>t?e.slice(0,t-"(...)".length)+"(...)":e}function d(e){return"[object Array]"===Object.prototype.toString.call(e)}function f(e,t,n){var r=(n||0)+1;if(n>b("maxDepth",L))return"[RECURSIVE]";if("string"==typeof e)return p(e,t);if(d(e)){for(var i=[],o=0;o=b("maxDepth",L))return encodeURIComponent(n)+"=[RECURSIVE]";r=r+1||1;try{if(e.Node&&t instanceof e.Node)return encodeURIComponent(n)+"="+encodeURIComponent(S(t));var i=[];for(var o in t)if(t.hasOwnProperty(o)&&null!=o&&null!=t[o]){var s=n?n+"["+o+"]":o,a=t[o];i.push("object"==typeof a?v(a,s,r):encodeURIComponent(s)+"="+encodeURIComponent(a))}return i.sort().join("&")}catch(e){return encodeURIComponent(n)+"="+encodeURIComponent(""+e)}}function m(e,t,n){if(null==t)return e;if(n>=b("maxDepth",L))return"[RECURSIVE]";e=e||{};for(var r in t)if(t.hasOwnProperty(r))try{t[r].constructor===Object?e[r]=m(e[r],t[r],n+1||1):e[r]=t[r]}catch(n){e[r]=t[r]}return e}function g(e,t){if(e+="?"+v(t)+"&ct=img&cb="+(new Date).getTime(),"undefined"!=typeof BUGSNAG_TESTING&&T.testRequest)T.testRequest(e,t);else{if("xhr"===b("notifyHandler")){var n=new XMLHttpRequest;n.open("GET",e,!0),n.send()}else{(new Image).src=e}}}function y(e){var t={},n=/^data\-([\w\-]+)$/;if(e)for(var r=e.attributes,i=0;i\n";var n=[];try{for(var r=arguments.callee.caller.caller;r&&n.length<10;){var i=q.test(r.toString())?RegExp.$1||"[anonymous]":"[anonymous]";n.push(i),r=r.caller}}catch(e){u(e)}t=n.join("\n")}return e+t}function C(e){return e.stack||e.backtrace||e.stacktrace}function S(e){if(e){var t=e.attributes;if(t){for(var n="<"+e.nodeName.toLowerCase(),r=0;r"}return e.nodeName}}function O(){R+=1,e.setTimeout(function(){R-=1})}function E(t,n,r){var i=t[n],o=r(i);t[n]=o,"undefined"!=typeof BUGSNAG_TESTING&&e.undo&&e.undo.push(function(){t[n]=i})}var A,M,T={},P=!0,R=0,j=[],D=10,L=5;T.breadcrumbLimit=20,T.noConflict=function(){return e.Bugsnag=t,void 0===t&&delete e.Bugsnag,T},T.refresh=function(){D=10},T.notifyException=function(e,t,n,r){if(!e){var i="Bugsnag.notifyException() was called with no arguments";return u(i),void T.notify("BugsnagNotify",i)}if("string"==typeof e)return u("Bugsnag.notifyException() was called with a string. Expected instance of Error. To send a custom message instantiate a new Error or use Bugsnag.notify(''). see https://docs.bugsnag.com/platforms/browsers/#reporting-handled-exceptions"),void T.notify.apply(null,arguments);t&&"string"!=typeof t&&(n=t,t=void 0),n||(n={}),s(n),x({name:t||e.name,message:e.message||e.description,stacktrace:C(e)||k(),file:e.fileName||e.sourceURL,lineNumber:e.lineNumber||e.line,columnNumber:e.columnNumber?e.columnNumber+1:void 0,severity:r||"warning"},n)},T.notify=function(t,n,r,i){t||(t="BugsnagNotify",n="Bugsnag.notify() was called with no arguments",u(n)),x({name:t,message:n,stacktrace:k(),file:e.location.toString(),lineNumber:1,severity:i||"warning"},r)},T.leaveBreadcrumb=function(e,t){var r={type:"manual",name:"Manual",timestamp:(new Date).getTime()};switch(typeof e){case"object":r=m(r,e);break;case"string":t&&"object"==typeof t?r=m(r,{name:e,metaData:t}):r.metaData={message:e};break;default:return void u("expecting 1st argument to leaveBreadcrumb to be a 'string' or 'object', got "+typeof e)}for(var i=["manual","error","log","navigation","process","request","state","user"],o=!1,s=0;sc&&(j=j.slice(-c))}};var F=void 0!==e.addEventListener;T.enableAutoBreadcrumbsConsole=function(){},T.disableAutoBreadcrumbsConsole=function(){},T.enableAutoBreadcrumbsNavigation=function(){},T.disableAutoBreadcrumbsNavigation=function(){},T.enableAutoBreadcrumbsErrors=function(){T.autoBreadcrumbsErrors=!0},T.disableAutoBreadcrumbsErrors=function(){T.autoBreadcrumbsErrors=!1},T.enableAutoBreadcrumbsClicks=function(){T.autoBreadcrumbsClicks=!0},T.disableAutoBreadcrumbsClicks=function(){T.autoBreadcrumbsClicks=!1},T.enableAutoBreadcrumbs=function(){T.enableAutoBreadcrumbsClicks(),T.enableAutoBreadcrumbsConsole(),T.enableAutoBreadcrumbsErrors(),T.enableAutoBreadcrumbsNavigation()},T.disableAutoBreadcrumbs=function(){T.disableAutoBreadcrumbsClicks(),T.disableAutoBreadcrumbsConsole(),T.disableAutoBreadcrumbsErrors(),T.disableAutoBreadcrumbsNavigation()},T.enableNotifyUnhandledRejections=function(){T.notifyUnhandledRejections=!0},T.disableNotifyUnhandledRejections=function(){T.notifyUnhandledRejections=!1};var N="complete"!==document.readyState;document.addEventListener?(document.addEventListener("DOMContentLoaded",i,!0),e.addEventListener("load",i,!0)):e.attachEvent("onload",i);var I,B=/^[0-9a-f]{32}$/i,q=/function\s*([\w\-$]+)?\s*\(/i,V="https://notify.bugsnag.com/js",H="3.2.0",z=document.getElementsByTagName("script"),U=z[z.length-1];if(e.atob){if(e.ErrorEvent)try{0===new e.ErrorEvent("test").colno&&(P=!1)}catch(e){}}else P=!1;if(b("autoNotify",!0)){E(e,"onerror",function(t){return"undefined"!=typeof BUGSNAG_TESTING&&(T._onerror=t),function(n,r,i,o,a){var u=b("autoNotify",!0),c={};if(!o&&e.event&&(o=e.event.errorCharacter),s(c),A=null,u&&!R){var l=a&&a.name||"window.onerror";x({name:l,message:n,file:r,lineNumber:i,columnNumber:o,stacktrace:a&&C(a)||k(),severity:"error"},c),w("autoBreadcrumbsErrors")&&T.leaveBreadcrumb({type:"error",name:l,metaData:{severity:"error",file:r,message:n,line:i}})}"undefined"!=typeof BUGSNAG_TESTING&&(t=T._onerror),t&&t(n,r,i,o,a)}});var W=function(e){return function(t,n){if("function"==typeof t){t=r(t);var i=Array.prototype.slice.call(arguments,2);return e(function(){t.apply(this,i)},n)}return e(t,n)}};E(e,"setTimeout",W),E(e,"setInterval",W),e.requestAnimationFrame&&E(e,"requestAnimationFrame",function(e){return function(t){return e(r(t))}}),e.setImmediate&&E(e,"setImmediate",function(e){return function(){var t=Array.prototype.slice.call(arguments);return t[0]=r(t[0]),e.apply(this,t)}}),"onunhandledrejection"in e&&e.addEventListener("unhandledrejection",function(e){if(b("notifyUnhandledRejections",!1)){var t=e.reason;t&&(t instanceof Error||t.message)?T.notifyException(t):T.notify("UnhandledRejection",t)}}),"EventTarget Window Node ApplicationCache AudioTrackList ChannelMergerNode CryptoOperation EventSource FileReader HTMLUnknownElement IDBDatabase IDBRequest IDBTransaction KeyOperation MediaController MessagePort ModalWindow Notification SVGElementInstance Screen TextTrack TextTrackCue TextTrackList WebSocket WebSocketWorker Worker XMLHttpRequest XMLHttpRequestEventTarget XMLHttpRequestUpload".replace(/\w+/g,function(t){var n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(E(n,"addEventListener",function(e){return function(t,n,i,o){try{n&&n.handleEvent&&(n.handleEvent=r(n.handleEvent))}catch(e){u(e)}return e.call(this,t,r(n),i,o)}}),E(n,"removeEventListener",function(e){return function(t,n,i,o){return e.call(this,t,n,i,o),e.call(this,t,r(n),i,o)}}))})}!function(){if(F){var t=function(e){if(w("autoBreadcrumbsClicks")){var t,n;try{t=l(e.target),n=h(e.target)}catch(e){t="[hidden]",n="[hidden]",u("Cross domain error when tracking click event. See https://docs.bugsnag.com/platforms/browsers/faq/#3-cross-origin-script-errors")}T.leaveBreadcrumb({type:"user",name:"UI click",metaData:{targetText:t,targetSelector:n}})}};e.addEventListener("click",t,!0)}}(),function(){function t(e,t){w("autoBreadcrumbsConsole")&&T.leaveBreadcrumb({type:"log",name:"Console output",metaData:{severity:e,message:Array.prototype.slice.call(t).join(", ")}})}if(void 0!==e.console){var n=console.log,r=console.warn,i=console.error;T.enableAutoBreadcrumbsConsole=function(){T.autoBreadcrumbsConsole=!0,a(console,"log",function(){t("log",arguments)}),a(console,"warn",function(){t("warn",arguments)}),a(console,"error",function(){t("error",arguments)})},T.disableAutoBreadcrumbsConsole=function(){T.autoBreadcrumbsConsole=!1,console.log=n,console.warn=r,console.error=i},w("autoBreadcrumbsConsole")&&T.enableAutoBreadcrumbsConsole()}}(),function(){function t(e){return e.split("#")[1]||""}function n(e){var n=e.oldURL,r=e.newURL,i={};return n&&r?(i.from=t(n),i.to=t(r)):i.to=location.hash,{type:"navigation",name:"Hash changed",metaData:i}}function r(){return{type:"navigation",name:"Navigated back"}}function i(){return{type:"navigation",name:"Page hidden"}}function o(){return{type:"navigation",name:"Page shown"}}function s(){return{type:"navigation",name:"Page loaded"}}function u(){return{type:"navigation",name:"DOMContentLoaded"}}function c(e,t,n,r){var i=location.pathname+location.search+location.hash;return{type:"navigation",name:"History "+e,metaData:{from:i,to:r||i,prevState:history.state,nextState:t}}}function l(e,t,n){return c("pushState",e,t,n)}function h(e,t,n){return c("replaceState",e,t,n)}function p(e){return function(){w("autoBreadcrumbsNavigation")&&T.leaveBreadcrumb(e.apply(null,arguments))}}if(F&&e.history&&e.history.state&&e.history.pushState&&e.history.pushState.bind){var d=history.pushState,f=history.replaceState;T.enableAutoBreadcrumbsNavigation=function(){T.autoBreadcrumbsNavigation=!0,a(history,"pushState",p(l)),a(history,"replaceState",p(h))},T.disableAutoBreadcrumbsNavigation=function(){T.autoBreadcrumbsNavigation=!1,history.pushState=d,history.replaceState=f},e.addEventListener("hashchange",p(n),!0),e.addEventListener("popstate",p(r),!0),e.addEventListener("pagehide",p(i),!0),e.addEventListener("pageshow",p(o),!0),e.addEventListener("load",p(s),!0),e.addEventListener("DOMContentLoaded",p(u),!0),w("autoBreadcrumbsNavigation")&&T.enableAutoBreadcrumbsNavigation()}}(),b("autoBreadcrumbs",!0)&&T.leaveBreadcrumb({type:"navigation",name:"Bugsnag Loaded"}),e.Bugsnag=T,"function"==typeof define&&define.amd?define("bugsnag-js",[],function(){return T}):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=T)}(window,window.Bugsnag);var __extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__exportStar,__values,__read,__spread,__asyncGenerator,__asyncDelegator,__asyncValues;!function(e){function t(e,t){return function(n,r){return e[n]=t?t(n,r):r}}var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:{};"function"==typeof define&&define.amd?define("tslib",["exports"],function(r){e(t(n,t(r)))}):e("object"==typeof module&&"object"==typeof module.exports?t(n,t(module.exports)):t(n))}(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};__extends=function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},__param=function(e,t){return function(n,r){t(n,r,e)}},__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},__generator=function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}},__read=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},__spread=function(){for(var e=[],t=0;tYe)break}He.splice(0,r),He.length?n.PLATFORM.requestAnimationFrame(m):(Ge=!1,$e=0)}function g(e){if($e>>0}function S(e){return+e}function O(e,t,n){return{index:e,removed:t,addedCount:n}}function E(){}function A(e,t,n,r,i,o){return Ke.calcSplices(e,t,n,r,i,o)}function M(e,t,n,r){return t=0){e.splice(a,1),a--,s-=u.addedCount-u.removed.length,i.addedCount+=u.addedCount-c;var l=i.removed.length+u.removed.length-c;if(i.addedCount||l){var h=u.removed;if(i.indexu.index+u.addedCount){var d=i.removed.slice(u.index+u.addedCount-i.index);Array.prototype.push.apply(h,d)}i.removed=h,u.index=Nt&&e<=Ht||e===Rn}function z(e){return _n<=e&&e<=An||pn<=e&&e<=fn||e===bn||e===Wt}function U(e){return _n<=e&&e<=An||pn<=e&&e<=fn||ln<=e&&e<=hn||e===bn||e===Wt}function W(e){return ln<=e&&e<=hn}function Y(e){return e===wn||e===dn}function G(e){return e===en||e===Xt}function $(e){switch(e){case kn:return It;case xn:return qt;case Cn:return Vt;case Sn:return Nt;case En:return Bt;default:return e}}function Q(e,t){if(!e)throw t||"Assertion failed"}function Z(e,t){return Nn.for(e,t)}function J(e){return e.path&&e.path[0]||e.deepPath&&e.deepPath[0]||e.target}function X(){this.standardStopPropagation(),this.propagationStopped=!0}function K(e){e.standardStopPropagation=e.stopPropagation,e.stopPropagation=X}function ee(e){var t=!1;e.propagationStopped=!1;for(var n=J(e),r=[];n;){if(n.capturedCallbacks){var i=n.capturedCallbacks[e.type];i&&(t||(K(e),t=!0),r.push(i))}n=n.parentNode}for(var o=r.length-1;o>=0;o--){if((0,r[o])(e),e.propagationStopped)break}}function te(e){var t=!1;e.propagationStopped=!1;for(var n=J(e);n&&!e.propagationStopped;){if(n.delegatedCallbacks){var r=n.delegatedCallbacks[e.type];r&&(t||(K(e),t=!0),r(e))}n=n.parentNode}}function ne(e){return!!(e&&e.get&&e.get.dependencies)}function re(e,t,n){Object.getOwnPropertyDescriptor(e.prototype,t).get.dependencies=n}function ie(){for(var e=arguments.length,t=Array(e),n=0;n0||n>0;)if(0!==t)if(0!==n){var o=e[t-1][n-1],s=e[t-1][n],a=e[t][n-1],u=void 0;u=sn?t=n-e.addedCount:t<0&&(t=n+e.removed.length+t-e.addedCount),t<0&&(t=0),e.index=t}null===this.changeRecords?this.changeRecords=[e]:this.changeRecords.push(e),this.queued||(this.queued=!0,this.taskQueue.queueMicroTask(this))}},e.prototype.flushChangeRecords=function(){(this.changeRecords&&this.changeRecords.length||this.oldCollection)&&this.call()},e.prototype.reset=function(e){this.oldCollection=e,this.hasSubscribers()&&!this.queued&&(this.queued=!0,this.taskQueue.queueMicroTask(this))},e.prototype.getLengthObserver=function(){return this.lengthObserver||(this.lengthObserver=new tt(this.collection))},e.prototype.call=function(){var e=this.changeRecords,t=this.oldCollection,n=void 0;this.queued=!1,this.changeRecords=[],this.oldCollection=null,this.hasSubscribers()&&(n=t?this.collection instanceof Map||this.collection instanceof Set?D(t):A(this.collection,0,this.collection.length,t,0,t.length):this.collection instanceof Map||this.collection instanceof Set?e:R(this.collection,e),this.callSubscribers(n)),this.lengthObserver&&this.lengthObserver.call(this.collection[this.lengthPropertyName])},e}())||ve,tt=e.CollectionLengthObserver=(me=k())(ge=function(){function e(e){this.collection=e,this.lengthPropertyName=e instanceof Map||e instanceof Set?"size":"length",this.currentValue=e[this.lengthPropertyName]}return e.prototype.getValue=function(){return this.collection[this.lengthPropertyName]},e.prototype.setValue=function(e){this.collection[this.lengthPropertyName]=e},e.prototype.subscribe=function(e,t){this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)},e.prototype.call=function(e){var t=this.currentValue;this.callSubscribers(e,t),this.currentValue=e},e}())||ge,nt=Array.prototype.pop,rt=Array.prototype.push,it=Array.prototype.reverse,ot=Array.prototype.shift,st=Array.prototype.sort,at=Array.prototype.splice,ut=Array.prototype.unshift;Array.prototype.pop=function(){var e=this.length>0,t=nt.apply(this,arguments);return e&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:this.length,oldValue:t}),t},Array.prototype.push=function(){var e=rt.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:this.length-arguments.length,removed:[],addedCount:arguments.length}),e},Array.prototype.reverse=function(){var e=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),e=this.slice());var t=it.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(e),t},Array.prototype.shift=function(){var e=this.length>0,t=ot.apply(this,arguments);return e&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:0,oldValue:t}),t},Array.prototype.sort=function(){var e=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),e=this.slice());var t=st.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(e),t},Array.prototype.splice=function(){var e=at.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:+arguments[0],removed:e,addedCount:arguments.length>2?arguments.length-2:0}),e},Array.prototype.unshift=function(){var e=ut.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:0,removed:[],addedCount:arguments.length}),e},e.getArrayObserver=L;var ct=function(e){function t(t,n){return o(this,e.call(this,t,n))}return s(t,e),t.for=function(e,n){return"__array_observer__"in n||Reflect.defineProperty(n,"__array_observer__",{value:t.create(e,n),enumerable:!1,configurable:!1}),n.__array_observer__},t.create=function(e,n){return new t(e,n)},t}(et),lt=e.Expression=function(){function e(){this.isChain=!1,this.isAssignable=!1}return e.prototype.evaluate=function(e,t,n){throw new Error('Binding expression "'+this+'" cannot be evaluated.')},e.prototype.assign=function(e,t,n){throw new Error('Binding expression "'+this+'" cannot be assigned to.')},e.prototype.toString=function(){return"undefined"==typeof FEATURE_NO_UNPARSER?Mt.unparse(this):Function.prototype.toString.call(this)},e}(),ht=e.Chain=function(e){function t(t){var n=o(this,e.call(this));return n.expressions=t,n.isChain=!0,n}return s(t,e),t.prototype.evaluate=function(e,t){for(var n=void 0,r=this.expressions,i=void 0,o=0,s=r.length;o":return n>r;case"<=":return n<=r;case">=":return n>=r;case"^":return n^r}throw new Error("Internal error ["+this.operation+"] not handled")},t.prototype.accept=function(e){return e.visitBinary(this)},t.prototype.connect=function(e,t){this.left.connect(e,t);var n=this.left.evaluate(t);"&&"===this.operation&&!n||"||"===this.operation&&n||this.right.connect(e,t)},t}(lt),Ct=e.PrefixNot=function(e){function t(t,n){var r=o(this,e.call(this));return r.operation=t,r.expression=n,r}return s(t,e),t.prototype.evaluate=function(e,t){return!this.expression.evaluate(e,t)},t.prototype.accept=function(e){return e.visitPrefix(this)},t.prototype.connect=function(e,t){this.expression.connect(e,t)},t}(lt),St=e.LiteralPrimitive=function(e){function t(t){var n=o(this,e.call(this));return n.value=t,n}return s(t,e),t.prototype.evaluate=function(e,t){return this.value},t.prototype.accept=function(e){return e.visitLiteralPrimitive(this)},t.prototype.connect=function(e,t){},t}(lt),Ot=e.LiteralString=function(e){function t(t){var n=o(this,e.call(this));return n.value=t,n}return s(t,e),t.prototype.evaluate=function(e,t){return this.value},t.prototype.accept=function(e){return e.visitLiteralString(this)},t.prototype.connect=function(e,t){},t}(lt),Et=e.LiteralArray=function(e){function t(t){var n=o(this,e.call(this));return n.elements=t,n}return s(t,e),t.prototype.evaluate=function(e,t){for(var n=this.elements,r=[],i=0,o=n.length;i=this.length)return this.peek=Ft,null;this.peek=this.input.charCodeAt(this.index)}if(z(this.peek))return this.scanIdentifier();if(W(this.peek))return this.scanNumber(this.index);var e=this.index;switch(this.peek){case tn:return this.advance(),W(this.peek)?this.scanNumber(e):new Rt(e,".");case Qt:case Zt:case Mn:case Pn:case vn:case gn:case Kt:case rn:case on:return this.scanCharacter(e,String.fromCharCode(this.peek));case $t:case Ut:return this.scanString();case Xt:case en:case Jt:case nn:case Yt:case yn:case cn:return this.scanOperator(e,String.fromCharCode(this.peek));case sn:case un:case zt:case an:return this.scanComplexOperator(e,an,String.fromCharCode(this.peek),"=");case Gt:return this.scanComplexOperator(e,Gt,"&","&");case Tn:return this.scanComplexOperator(e,Tn,"|","|");case Rn:for(;H(this.peek);)this.advance();return this.scanToken()}var t=String.fromCharCode(this.peek);return this.error("Unexpected character ["+t+"]"),null},e.prototype.scanCharacter=function(e,t){return Q(this.peek===t.charCodeAt(0)),this.advance(),new Rt(e,t)},e.prototype.scanOperator=function(e,t){return Q(this.peek===t.charCodeAt(0)),Q(-1!==Lt.indexOf(t)),this.advance(),new Rt(e,t).withOp(t)},e.prototype.scanComplexOperator=function(e,t,n,r){Q(this.peek===n.charCodeAt(0)),this.advance();var i=n;return this.peek===t&&(this.advance(),i+=r),this.peek===t&&(this.advance(),i+=r),Q(-1!==Lt.indexOf(i)),new Rt(e,i).withOp(i)},e.prototype.scanIdentifier=function(){Q(z(this.peek));var e=this.index;for(this.advance();U(this.peek);)this.advance();var t=this.input.substring(e,this.index),n=new Rt(e,t);return-1!==Lt.indexOf(t)?n.withOp(t):n.withGetterSetter(t),n},e.prototype.scanNumber=function(e){Q(W(this.peek));var t=this.index===e;for(this.advance();;){if(!W(this.peek))if(this.peek===tn)t=!1;else{if(!Y(this.peek))break;this.advance(),G(this.peek)&&this.advance(),W(this.peek)||this.error("Invalid exponent",-1),t=!1}this.advance()}var n=this.input.substring(e,this.index),r=t?parseInt(n,10):parseFloat(n);return new Rt(e,n).withValue(r)},e.prototype.scanString=function(){Q(this.peek===$t||this.peek===Ut);var e=this.index,t=this.peek;this.advance();for(var n=void 0,r=this.index;this.peek!==t;)if(this.peek===mn){n||(n=[]),n.push(this.input.substring(r,this.index)),this.advance();var i=void 0;if(this.peek===On){var o=this.input.substring(this.index+1,this.index+5);/[A-Z0-9]{4}/.test(o)||this.error("Invalid unicode escape [\\u"+o+"]"),i=parseInt(o,16);for(var s=0;s<5;++s)this.advance()}else i=$(this.peek),this.advance();n.push(String.fromCharCode(i)),r=this.index}else this.peek===Ft?this.error("Unterminated quote"):this.advance();var a=this.input.substring(r,this.index);this.advance();var u=this.input.substring(e,this.index),c=a;return null!==n&&void 0!==n&&(n.push(a),c=n.join("")),new Rt(e,u).withValue(c)},e.prototype.advance=function(){++this.index>=this.length?this.peek=Ft:this.peek=this.input.charCodeAt(this.index)},e.prototype.error=function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=this.index+t;throw new Error("Lexer Error: "+e+" at column "+n+" in expression ["+this.input+"]")},e}(),Lt=["undefined","null","true","false","+","-","*","/","%","^","=","==","===","!=","!==","<",">","<=",">=","&&","||","&","|","!","?"],Ft=0,Nt=9,It=10,Bt=11,qt=12,Vt=13,Ht=32,zt=33,Ut=34,Wt=36,Yt=37,Gt=38,$t=39,Qt=40,Zt=41,Jt=42,Xt=43,Kt=44,en=45,tn=46,nn=47,rn=58,on=59,sn=60,an=61,un=62,cn=63,ln=48,hn=57,pn=65,dn=69,fn=90,vn=91,mn=92,gn=93,yn=94,bn=95,_n=97,wn=101,xn=102,kn=110,Cn=114,Sn=116,On=117,En=118,An=122,Mn=123,Tn=124,Pn=125,Rn=160,jn=new Rt(-1,null),Dn=e.Parser=function(){function e(){this.cache={},this.lexer=new jt}return e.prototype.parse=function(e){return e=e||"",this.cache[e]||(this.cache[e]=new Ln(this.lexer,e).parseChain())},e}(),Ln=e.ParserImplementation=function(){function e(e,t){this.index=0,this.input=t,this.tokens=e.lex(t)}return e.prototype.parseChain=function(){for(var e=!1,t=[];this.optional(";");)e=!0;for(;this.index"))e=new kt(">",e,this.parseAdditive());else if(this.optional("<="))e=new kt("<=",e,this.parseAdditive());else{if(!this.optional(">="))return e;e=new kt(">=",e,this.parseAdditive())}},e.prototype.parseAdditive=function(){for(var e=this.parseMultiplicative();;)if(this.optional("+"))e=new kt("+",e,this.parseMultiplicative());else{if(!this.optional("-"))return e;e=new kt("-",e,this.parseMultiplicative())}},e.prototype.parseMultiplicative=function(){for(var e=this.parsePrefix();;)if(this.optional("*"))e=new kt("*",e,this.parsePrefix());else if(this.optional("%"))e=new kt("%",e,this.parsePrefix());else{if(!this.optional("/"))return e;e=new kt("/",e,this.parsePrefix())}},e.prototype.parsePrefix=function(){return this.optional("+")?this.parsePrefix():this.optional("-")?new kt("-",new St(0),this.parsePrefix()):this.optional("!")?new Ct("!",this.parsePrefix()):this.parseAccessOrCallMember()},e.prototype.parseAccessOrCallMember=function(){for(var e=this.parsePrimary();;)if(this.optional(".")){var t=this.peek.text;if(this.advance(),this.optional("(")){var n=this.parseExpressionList(")");this.expect(")"),e=e instanceof mt?new _t(t,n,e.ancestor):new wt(e,t,n)}else e=e instanceof mt?new gt(t,e.ancestor):new yt(e,t)}else if(this.optional("[")){var r=this.parseExpression();this.expect("]"),e=new bt(e,r)}else{if(!this.optional("("))return e;var i=this.parseExpressionList(")");this.expect(")"),e=new xt(e,i)}},e.prototype.parsePrimary=function(){if(this.optional("(")){var e=this.parseExpression();return this.expect(")"),e}if(this.optional("null"))return new St(null);if(this.optional("undefined"))return new St(void 0);if(this.optional("true"))return new St(!0);if(this.optional("false"))return new St(!1);if(this.optional("[")){var t=this.parseExpressionList("]");return this.expect("]"),new Et(t)}if("{"===this.peek.text)return this.parseObject();if(null!==this.peek.key&&void 0!==this.peek.key)return this.parseAccessOrCallScope();if(null!==this.peek.value&&void 0!==this.peek.value){var n=this.peek.value;return this.advance(),n instanceof String||"string"==typeof n?new Ot(n):new St(n)}if(this.index>=this.tokens.length)throw new Error("Unexpected end of expression: "+this.input);this.error("Unexpected token "+this.peek.text)},e.prototype.parseAccessOrCallScope=function(){var e=this.peek.key;if(this.advance(),"$this"===e)return new mt(0);for(var t=0;"$parent"===e;)if(t++,this.optional("."))e=this.peek.key,this.advance();else{if(this.peek===jn||"("===this.peek.text||")"===this.peek.text||"["===this.peek.text||"}"===this.peek.text||","===this.peek.text)return new mt(t);this.error("Unexpected token "+this.peek.text)}if(this.optional("(")){var n=this.parseExpressionList(")");return this.expect(")"),new _t(e,n,t)}return new gt(e,t)},e.prototype.parseObject=function(){var e=[],t=[];if(this.expect("{"),"}"!==this.peek.text)do{var n=this.peek,r=n.value;e.push("string"==typeof r?r:n.text),this.advance(),!n.key||","!==this.peek.text&&"}"!==this.peek.text?(this.expect(":"),t.push(this.parseExpression())):(--this.index,t.push(this.parseAccessOrCallScope()))}while(this.optional(","));return this.expect("}"),new At(e,t)},e.prototype.parseExpressionList=function(e){var t=[];if(this.peek.text!==e)do{t.push(this.parseExpression())}while(this.optional(","));return t},e.prototype.optional=function(e){return this.peek.text===e&&(this.advance(),!0)},e.prototype.expect=function(e){this.peek.text===e?this.advance():this.error("Missing expected "+e)},e.prototype.advance=function(){this.index++},e.prototype.error=function(e){var t=this.index").firstElementChild.nodeName&&ur.altGlyph&&(ur.altglyph=ur.altGlyph,delete ur.altGlyph,ur.altglyphdef=ur.altGlyphDef,delete ur.altGlyphDef,ur.altglyphitem=ur.altGlyphItem,delete ur.altGlyphItem,ur.glyphref=ur.glyphRef,delete ur.glyphRef)}return t.prototype.isStandardSvgAttribute=function(e,t){return cr[e]&&lr[t]||ur[e]&&-1!==ur[e].indexOf(t)},t}()}();var ur=e.elements=ir,cr=e.presentationElements=or,lr=e.presentationAttributes=sr,hr=e.SVGAnalyzer=ar||function(){function e(){}return e.prototype.isStandardSvgAttribute=function(){return!1},e}(),pr=e.ObserverLocator=(Me=Ae=function(){function e(e,t,n,r,i){this.taskQueue=e,this.eventManager=t,this.dirtyChecker=n,this.svgAnalyzer=r,this.parser=i,this.adapters=[],this.logger=De.getLogger("observer-locator")}return e.prototype.getObserver=function(e,t){var n=e.__observers__,r=void 0;return n&&t in n?n[t]:(r=this.createPropertyObserver(e,t),r.doNotCache||(void 0===n&&(n=this.getOrCreateObserversLookup(e)),n[t]=r),r)},e.prototype.getOrCreateObserversLookup=function(e){return e.__observers__||this.createObserversLookup(e)},e.prototype.createObserversLookup=function(e){var t={};return Reflect.defineProperty(e,"__observers__",{enumerable:!1,configurable:!1,writable:!1,value:t})||this.logger.warn("Cannot add observers to object",e),t},e.prototype.addAdapter=function(e){this.adapters.push(e)},e.prototype.getAdapterObserver=function(e,t,n){for(var r=0,i=this.adapters.length;r1?t-1:0),i=1;i=1?o(e):o()}function l(e){return function(n){t.metadata.define(t.metadata.invoker,e,n)}}function h(e){var n=function(e){t.metadata.define(t.metadata.invoker,z.instance,e)};return e?n(e):n}function p(e){return function(n){t.metadata.define(t.metadata.registration,e,n)}}function d(e){return p(new U(e))}function f(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return p(new W(e,t))}function v(e){if(null===e||void 0===e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function m(e,t,n,r){for(var i=n.length,o=new Array(i);i--;)o[i]=e.get(n[i]);return void 0!==r&&(o=o.concat(r)),Reflect.construct(t,o)}function g(e){return e.hasOwnProperty("inject")?"function"==typeof e.inject?e.inject():e.inject:[]}function y(e){var n=function(e){var n=e.inject?e.inject.slice():null,r=t.metadata.getOwn(t.metadata.paramTypes,e)||Y;if(n){for(var i=0;i-1&&n.splice(o,1),n.splice(o>-1&&o1?t-1:0),r=1;r0?this.dynamicDependencies.map(function(t){return t["protocol:aurelia:resolver"]?t.get(e):e.get(t)}):void 0,n=e.invoke(this.key,t);return e.registerInstance(this.asKey,n),n},e.prototype.as=function(e){return this.asKey=e,this},e.of=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i4?i-4:0),s=4;s1?t.normalize(n.moduleId,n.resourcesRelativeTo[1]).then(function(e){return r(e)}):r(i)}function d(e,t,n){function r(t){var n=t.moduleId,r=f(n);return o(n)&&(n=s(n)),e.loader.normalize(n,t.relativeTo).then(function(e){return{name:t.moduleId,importId:o(t.moduleId)?a(e,r):e}})}function o(e){var t=f(e);return!!t&&(""!==t&&(".js"!==t&&".ts"!==t))}function s(e){return e.replace(y,"")}function a(e,t){return s(e)+"."+t}var u=e.container.get(i.ViewEngine);return Promise.all(Object.keys(t).map(function(e){return r(t[e])})).then(function(e){var t=[],r=[];return e.forEach(function(e){t.push(void 0),r.push(e.importId)}),u.importViewResources(r,t,n)})}function f(e){var t=e.match(y);if(t&&t.length>0)return t[0].split(".")[1]}function v(e){if(e.processed)throw new Error("This config instance has already been applied. To load more plugins or global resources, create a new FrameworkConfiguration instance.")}Object.defineProperty(e,"__esModule",{value:!0}),e.LogManager=e.FrameworkConfiguration=e.Aurelia=void 0,Object.keys(t).forEach(function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}),Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}),Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}),Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})}),Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}),Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}),Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})}),Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),g=(e.Aurelia=function(){function e(n,r,s){this.loader=n||new u.PLATFORM.Loader,this.container=r||(new t.Container).makeGlobal(),this.resources=s||new i.ViewResources,this.use=new b(this),this.logger=m.getLogger("aurelia"),this.hostConfigured=!1,this.host=null,this.use.instance(e,this),this.use.instance(o.Loader,this.loader),this.use.instance(i.ViewResources,this.resources)}return e.prototype.start=function(){var e=this;return this._started?this._started:(this.logger.info("Aurelia Starting"),this._started=this.use.apply().then(function(){if(l(),!e.container.hasResolver(i.BindingLanguage)){var t="You must configure Aurelia with a BindingLanguage implementation.";throw e.logger.error(t),new Error(t)}e.logger.info("Aurelia Started");var n=u.DOM.createCustomEvent("aurelia-started",{bubbles:!0,cancelable:!0});return u.DOM.dispatchEvent(n),e}))},e.prototype.enhance=function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?null:arguments[1];return this._configureHost(n||u.DOM.querySelectorAll("body")[0]),new Promise(function(n){var r=e.container.get(i.TemplatingEngine);e.root=r.enhance({container:e.container,element:e.host,resources:e.resources,bindingContext:t}),e.root.attached(),e._onAureliaComposed(),n(e)})},e.prototype.setRoot=function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?null:arguments[0],n=arguments.length<=1||void 0===arguments[1]?null:arguments[1],r={};this.root&&this.root.viewModel&&this.root.viewModel.router&&(this.root.viewModel.router.deactivate(),this.root.viewModel.router.reset()),this._configureHost(n);var o=this.container.get(i.TemplatingEngine);return delete this.container.get(i.CompositionTransaction).initialComposition,t||(t=this.configModuleId?(0,a.relativeToFile)("./app",this.configModuleId):"app"),r.viewModel=t,r.container=r.childContainer=this.container,r.viewSlot=this.hostSlot,r.host=this.host,o.compose(r).then(function(t){return e.root=t,r.viewSlot.attached(),e._onAureliaComposed(),e})},e.prototype._configureHost=function(e){if(!this.hostConfigured){if(e=e||this.host,this.host=e&&"string"!=typeof e?e:u.DOM.getElementById(e||"applicationHost"),!this.host)throw new Error("No applicationHost was specified.");this.hostConfigured=!0,this.host.aurelia=this,this.hostSlot=new i.ViewSlot(this.host,!0),this.hostSlot.transformChildNodesIntoView(),this.container.registerInstance(u.DOM.boundary,this.host)}},e.prototype._onAureliaComposed=function(){var e=u.DOM.createCustomEvent("aurelia-composed",{bubbles:!0,cancelable:!0});setTimeout(function(){return u.DOM.dispatchEvent(e)},1)},e}(),m.getLogger("aurelia")),y=/\.[^\/.]+$/,b=function(){function e(e){var t=this;this.aurelia=e,this.container=e.container,this.info=[],this.processed=!1,this.preTasks=[],this.postTasks=[],this.resourcesToLoad={},this.preTask(function(){return e.loader.normalize("aurelia-bootstrapper").then(function(e){return t.bootstrapperName=e})}),this.postTask(function(){return d(e,t.resourcesToLoad,e.resources)})}return e.prototype.instance=function(e,t){return this.container.registerInstance(e,t),this},e.prototype.singleton=function(e,t){return this.container.registerSingleton(e,t),this},e.prototype.transient=function(e,t){return this.container.registerTransient(e,t),this},e.prototype.preTask=function(e){return v(this),this.preTasks.push(e),this},e.prototype.postTask=function(e){return v(this),this.postTasks.push(e),this},e.prototype.feature=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=/\/index$/i.test(e),r=n||f(e)?e:e+"/index",i=n?e.substr(0,e.length-6):e;return this.plugin({moduleId:r,resourcesRelativeTo:[i,""],config:t})},e.prototype.globalResources=function(e){v(this) ;for(var t=Array.isArray(e)?e:arguments,n=void 0,r=this.resourcesRelativeTo||["",""],i=0,o=t.length;i0,e.isRequesting||function(){var e=n.DOM.createCustomEvent("aurelia-http-client-requests-drained",{bubbles:!0,cancelable:!0});setTimeout(function(){return n.DOM.dispatchEvent(e)},1)}()}Object.defineProperty(e,"__esModule",{value:!0}),e.HttpClient=e.RequestBuilder=e.HttpRequestMessage=e.JSONPRequestMessage=e.RequestMessageProcessor=e.mimeTypes=e.HttpResponseMessage=e.RequestMessage=e.Headers=void 0,e.timeoutTransformer=s,e.callbackParameterNameTransformer=a,e.credentialsTransformer=u,e.progressTransformer=c,e.downloadProgressTransformer=l,e.responseTypeTransformer=h,e.headerTransformer=p,e.contentTransformer=d,e.createJSONPRequestMessageProcessor=f,e.createHttpRequestMessageProcessor=v;var y=function(){function e(e,t){for(var n=0;n0){var a=o.substring(0,s),u=o.substring(s+2);n.add(a,u)}}return n},e}(),_=e.RequestMessage=function(){function e(e,t,n,r){this.method=e,this.url=t,this.content=n,this.headers=r||new b,this.baseUrl=""}return e.prototype.buildFullUrl=function(){var e=/^([a-z][a-z0-9+\-.]*:)?\/\//i,n=e.test(this.url)?this.url:(0,t.join)(this.baseUrl,this.url);if(this.params){var r=(0,t.buildQueryString)(this.params);n=r?n+(this.url.indexOf("?")<0?"?":"&")+r:n}return n},e}(),w=e.HttpResponseMessage=function(){function e(e,t,n,r){if(this.requestMessage=e,this.statusCode=t.status,this.response=t.response||t.responseText,this.isSuccess=t.status>=200&&t.status<400,this.statusText=t.statusText,this.reviver=r,this.mimeType=null,t.getAllResponseHeaders)try{this.headers=b.parse(t.getAllResponseHeaders())}catch(e){t.requestHeaders&&(this.headers=new b(t.requestHeaders))}else this.headers=new b;var i=void 0;this.headers&&this.headers.headers&&(i=this.headers.get("Content-Type")),i&&(this.mimeType=n=i.split(";")[0].trim(),x.hasOwnProperty(this.mimeType)&&(n=x[this.mimeType])),this.responseType=n}return y(e,[{key:"content",get:function(){try{return void 0!==this._content?this._content:void 0===this.response||null===this.response||""===this.response?(this._content=this.response,this._content):"json"===this.responseType?(this._content=JSON.parse(this.response,this.reviver),this._content):this.reviver?(this._content=this.reviver(this.response),this._content):(this._content=this.response,this._content)}catch(e){if(this.isSuccess)throw e;return this._content=null,this._content}}}]),e}(),x=e.mimeTypes={"text/html":"html","text/javascript":"js","application/javascript":"js","text/json":"json","application/json":"json","application/rss+xml":"rss","application/atom+xml":"atom","application/xhtml+xml":"xhtml","text/markdown":"md","text/xml":"xml","text/mathml":"mml","application/xml":"xml","text/yml":"yml","text/csv":"csv","text/css":"css","text/less":"less","text/stylus":"styl","text/scss":"scss","text/sass":"sass","text/plain":"txt"},k=e.RequestMessageProcessor=function(){function e(e,t){this.XHRType=e,this.xhrTransformers=t,this.isAborted=!1}return e.prototype.abort=function(){this.xhr&&this.xhr.readyState!==n.PLATFORM.XMLHttpRequest.UNSENT&&this.xhr.abort(),this.isAborted=!0},e.prototype.process=function(e,t){var n=this,r=new Promise(function(e,r){var i=n.xhr=new n.XHRType;i.onload=function(n){var o=new w(t,i,t.responseType,t.reviver);o.isSuccess?e(o):r(o)},i.ontimeout=function(e){r(new w(t,{response:e,status:i.status,statusText:i.statusText},"timeout"))},i.onerror=function(e){r(new w(t,{response:e,status:i.status,statusText:i.statusText},"error"))},i.onabort=function(e){r(new w(t,{response:e,status:i.status,statusText:i.statusText},"abort"))}});return Promise.resolve(t).then(function(t){var i=function(){return n.isAborted?n.xhr.abort():(n.xhr.open(t.method,t.buildFullUrl(),!0,t.user,t.password),o(n.xhrTransformers,e,n,t,n.xhr),void 0===t.content?n.xhr.send():n.xhr.send(t.content)),r},s=[[i,void 0]];(t.interceptors||[]).forEach(function(e){(e.request||e.requestError)&&s.unshift([e.request?e.request.bind(e):void 0,e.requestError?e.requestError.bind(e):void 0]),(e.response||e.responseError)&&s.push([e.response?e.response.bind(e):void 0,e.responseError?e.responseError.bind(e):void 0])});for(var a=Promise.resolve(t);s.length;){var u;a=(u=a).then.apply(u,s.shift())}return a})},e}(),C=e.JSONPRequestMessage=function(e){function t(t,n){var i=r(this,e.call(this,"JSONP",t));return i.responseType="jsonp",i.callbackParameterName=n,i}return i(t,e),t}(_),S=function(){function e(){}return e.prototype.open=function(e,t){this.method=e,this.url=t,this.callbackName="jsonp_callback_"+Math.round(1e5*Math.random())},e.prototype.send=function(){var e=this,t=this.url+(this.url.indexOf("?")>=0?"&":"?")+encodeURIComponent(this.callbackParameterName)+"="+this.callbackName,r=n.DOM.createElement("script");r.src=t,r.onerror=function(t){i(),e.status=0,e.onerror(new Error("error"))};var i=function(){delete n.PLATFORM.global[e.callbackName],n.DOM.removeNode(r)};n.PLATFORM.global[this.callbackName]=function(t){i(),void 0===e.status&&(e.status=200,e.statusText="OK",e.response=t,e.onload(e))},n.DOM.appendNode(r),void 0!==this.timeout&&setTimeout(function(){void 0===e.status&&(e.status=0,e.ontimeout(new Error("timeout")))},this.timeout)},e.prototype.abort=function(){void 0===this.status&&(this.status=0,this.onabort(new Error("abort")))},e.prototype.setRequestHeader=function(){},e}(),O=e.HttpRequestMessage=function(e){function t(t,n,i,o){var s=r(this,e.call(this,t,n,i,o));return s.responseType="json",s}return i(t,e),t}(_),E=e.RequestBuilder=function(){function e(e){this.client=e,this.transformers=e.requestTransformers.slice(0),this.useJsonp=!1}return e.prototype.asDelete=function(){return this._addTransformer(function(e,t,n){n.method="DELETE"})},e.prototype.asGet=function(){return this._addTransformer(function(e,t,n){n.method="GET"})},e.prototype.asHead=function(){return this._addTransformer(function(e,t,n){n.method="HEAD"})},e.prototype.asOptions=function(){return this._addTransformer(function(e,t,n){n.method="OPTIONS"})},e.prototype.asPatch=function(){return this._addTransformer(function(e,t,n){n.method="PATCH"})},e.prototype.asPost=function(){return this._addTransformer(function(e,t,n){n.method="POST"})},e.prototype.asPut=function(){return this._addTransformer(function(e,t,n){n.method="PUT"})},e.prototype.asJsonp=function(e){return this.useJsonp=!0,this._addTransformer(function(t,n,r){r.callbackParameterName=e})},e.prototype.withUrl=function(e){return this._addTransformer(function(t,n,r){r.url=e})},e.prototype.withContent=function(e){return this._addTransformer(function(t,n,r){r.content=e})},e.prototype.withBaseUrl=function(e){return this._addTransformer(function(t,n,r){r.baseUrl=e})},e.prototype.withParams=function(e){return this._addTransformer(function(t,n,r){r.params=e})},e.prototype.withResponseType=function(e){return this._addTransformer(function(t,n,r){r.responseType=e})},e.prototype.withTimeout=function(e){return this._addTransformer(function(t,n,r){r.timeout=e})},e.prototype.withHeader=function(e,t){return this._addTransformer(function(n,r,i){i.headers.add(e,t)})},e.prototype.withCredentials=function(e){return this._addTransformer(function(t,n,r){r.withCredentials=e})},e.prototype.withLogin=function(e,t){return this._addTransformer(function(n,r,i){i.user=e,i.password=t})},e.prototype.withReviver=function(e){return this._addTransformer(function(t,n,r){r.reviver=e})},e.prototype.withReplacer=function(e){return this._addTransformer(function(t,n,r){r.replacer=e})},e.prototype.withProgressCallback=function(e){return this._addTransformer(function(t,n,r){r.progressCallback=e})},e.prototype.withDownloadProgressCallback=function(e){return this._addTransformer(function(t,n,r){r.downloadProgressCallback=e})},e.prototype.withCallbackParameterName=function(e){return this._addTransformer(function(t,n,r){r.callbackParameterName=e})},e.prototype.withInterceptor=function(e){return this._addTransformer(function(t,n,r){r.interceptors=r.interceptors||[],r.interceptors.unshift(e)})},e.prototype.skipContentProcessing=function(){return this._addTransformer(function(e,t,n){n.skipContentProcessing=!0})},e.prototype._addTransformer=function(e){return this.transformers.push(e),this},e.addHelper=function(t,n){e.prototype[t]=function(){return this._addTransformer(n.apply(this,arguments))}},e.prototype.send=function(){var e=this.useJsonp?new C:new O;return this.client.send(e,this.transformers)},e}();e.HttpClient=function(){function e(){this.isRequesting=!1,this.requestTransformers=[],this.requestProcessorFactories=new Map,this.requestProcessorFactories.set(O,v),this.requestProcessorFactories.set(C,f),this.pendingRequests=[]}return e.prototype.configure=function(e){var t=new E(this);return e(t),this.requestTransformers=t.transformers,this},e.prototype.createRequest=function(e){var t=new E(this);return e&&t.withUrl(e),t},e.prototype.send=function(e,t){var n=this,r=this.requestProcessorFactories.get(e.constructor),i=void 0,o=void 0,s=void 0,a=void 0;if(!r)throw new Error("No request message processor factory for "+e.constructor+".");return i=r(),m(this,i),t=t||this.requestTransformers,o=Promise.resolve(e).then(function(e){for(s=0,a=t.length;s element in "+n+' has no "from" attribute.');a[u]=new i((0,t.relativeToFile)(s,n),o.getAttribute("as")),o.parentNode&&o.parentNode.removeChild(o)}}},{key:"factory",get:function(){return this._factory},set:function(e){this._factory=e,this.factoryIsReady=!0}}]),e}();e.Loader=function(){function e(){this.templateRegistry={}}return e.prototype.map=function(e,t){throw new Error("Loaders must implement map(id, source).")},e.prototype.normalizeSync=function(e,t){throw new Error("Loaders must implement normalizeSync(moduleId, relativeTo).")},e.prototype.normalize=function(e,t){throw new Error("Loaders must implement normalize(moduleId: string, relativeTo: string): Promise.")},e.prototype.loadModule=function(e){throw new Error("Loaders must implement loadModule(id).")},e.prototype.loadAllModules=function(e){throw new Error("Loader must implement loadAllModules(ids).")},e.prototype.loadTemplate=function(e){throw new Error("Loader must implement loadTemplate(url).")},e.prototype.loadText=function(e){throw new Error("Loader must implement loadText(url).")},e.prototype.applyPluginToUrl=function(e,t){throw new Error("Loader must implement applyPluginToUrl(url, pluginName).")},e.prototype.addPlugin=function(e,t){throw new Error("Loader must implement addPlugin(pluginName, implementation).")},e.prototype.getOrCreateTemplateRegistryEntry=function(e){return this.templateRegistry[e]||(this.templateRegistry[e]=new o(e))},e}()}),define("aurelia-loader-default",["exports","aurelia-loader","aurelia-pal","aurelia-metadata"],function(e,t,n,r){"use strict";function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=e,i=void 0,o=void 0;n.__useDefault&&(n=n.default),r.Origin.set(n,new r.Origin(t,"default"));for(i in n)"function"==typeof(o=n[i])&&r.Origin.set(o,new r.Origin(t,i));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultLoader=e.TextTemplateLoader=void 0;var a=e.TextTemplateLoader=function(){function e(){}return e.prototype.loadTemplate=function(e,t){return e.loadText(t.address).then(function(e){t.template=n.DOM.createTemplateFromMarkup(e)})},e}(),u=e.DefaultLoader=function(e){function t(){var t=i(this,e.call(this));t.textPluginName="text",t.moduleRegistry=Object.create(null),t.useTemplateLoader(new a);var n=t;return t.addPlugin("template-registry-entry",{fetch:function(e){var t=n.getOrCreateTemplateRegistryEntry(e);return t.templateIsLoaded?t:n.templateLoader.loadTemplate(n,t).then(function(e){return t})}}),t}return o(t,e),t.prototype.useTemplateLoader=function(e){this.templateLoader=e},t.prototype.loadAllModules=function(e){for(var t=[],n=0,r=e.length;n=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i,s=o[0],a=o[1];try{if(e(s,a))return}catch(e){}}else{var u=System._loader.modules;for(var c in u)try{if(e(c,u[c].module))return}catch(e){}}},System.set("text",System.newModule({translate:function(e){return'module.exports = "'+e.source.replace(/(["\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")+'";'}})),u.prototype._import=function(e){return System.import(e)},u.prototype.loadModule=function(e){var t=this;return System.normalize(e).then(function(e){var n=t.moduleRegistry[e];return void 0!==n?Promise.resolve(n):System.import(e).then(function(n){return t.moduleRegistry[e]=n,s(n,e)})})},u.prototype.map=function(e,t){var n;System.config({map:(n={},n[e]=t,n)})},u.prototype.normalizeSync=function(e,t){return System.normalizeSync(e,t)},u.prototype.normalize=function(e,t){return System.normalize(e,t)},u.prototype.applyPluginToUrl=function(e,t){return e+"!"+t},u.prototype.addPlugin=function(e,t){System.set(e,System.newModule({fetch:function(e,n){var r=t.fetch(e.address);return Promise.resolve(r).then(function(t){return e.metadata.result=t,""})},instantiate:function(e){return e.metadata.result}}))}):(n.PLATFORM.global.requirejs&&requirejs.s&&requirejs.s.contexts&&requirejs.s.contexts._&&requirejs.s.contexts._.defined?n.PLATFORM.eachModule=function(e){var t=requirejs.s.contexts._.defined;for(var n in t)try{if(e(n,t[n]))return}catch(e){}}:n.PLATFORM.eachModule=function(e){},u.prototype._import=function(e){return new Promise(function(t,n){require([e],t,n)})},u.prototype.loadModule=function(e){var t=this,n=this.moduleRegistry[e];return void 0!==n?Promise.resolve(n):new Promise(function(n,r){require([e],function(r){t.moduleRegistry[e]=r,n(s(r,e))},r)})},u.prototype.map=function(e,t){},u.prototype.normalize=function(e,t){return Promise.resolve(e)},u.prototype.normalizeSync=function(e,t){return e},u.prototype.applyPluginToUrl=function(e,t){return t+"!"+e},u.prototype.addPlugin=function(e,t){define(e,[],{load:function(e,n,r){var i=t.fetch(e);Promise.resolve(i).then(r)}})})}),define("aurelia-logging",["exports"],function(e){"use strict";function t(){return[this].concat(Array.prototype.slice.call(arguments))}function n(e){var n=c[e];return function(){if(!(this.level1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i0;)o=r[i],t.setAttribute(o.name,o.value),e.removeAttribute(o.name);return e.parentNode.removeChild(e),n(t)},n=function(e){for(var t=e.content=document.createDocumentFragment(),n=void 0;n=e.firstChild;)t.appendChild(n);return e},r=function(r){for(var i=n(r).content,o=i.querySelectorAll("template"),s=0,a=o.length;s element e.g. ");return c.ensureHTMLTemplateElement(n)},appendNode:function(e,t){(t||document.body).appendChild(e)},replaceNode:function(e,t,n){t.parentNode?t.parentNode.replaceChild(e,t):null!==l?l.unwrap(n).replaceChild(l.unwrap(e),l.unwrap(t)):n.replaceChild(e,t)},removeNode:function(e,t){e.parentNode?e.parentNode.removeChild(e):t&&(null!==l?l.unwrap(t).removeChild(l.unwrap(e)):t.removeChild(e))},injectStyles:function(e,t,n){var r=document.createElement("style");return r.innerHTML=e,r.type="text/css",t=t||document.head,n&&t.childNodes.length>0?t.insertBefore(r,t.childNodes[0]):t.appendChild(r),r}}}),define("aurelia-path",["exports"],function(e){"use strict";function t(e){for(var t=0;t0&&(e.splice(t-1,2),t-=2)}}}function n(e,n){var r=n&&n.split("/"),i=e.trim().split("/");if("."===i[0].charAt(0)&&r){var o=r.slice(0,r.length-1);i.unshift.apply(i,o)}return t(i),i.join("/")}function r(e,t){if(!e)return t;if(!t)return e;var n=e.match(/^([^\/]*?:)\//),r=n&&n.length>0?n[1]:"";e=e.substr(r.length);var i=void 0;i=0===e.indexOf("///")&&"file:"===r?"///":0===e.indexOf("//")?"//":0===e.indexOf("/")?"/":"";for(var o="/"===t.slice(-1)?"/":"",s=e.split("/"),a=t.split("/"),u=[],c=0,l=s.length;c=2){var h=o[1]?decodeURIComponent(o[1]):"";l?a(t,c,h):t[u]=s(t[u],h)}else t[u]=!0}}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.relativeToFile=n,e.join=r,e.buildQueryString=o,e.parseQueryString=u;var c="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},l=encodeURIComponent,h=function(e){return l(e).replace("%24","$")}}),define("aurelia-polyfills",["aurelia-pal"],function(e){"use strict";var t="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};"undefined"==typeof FEATURE_NO_ES2015&&(function(n,r){if(!(r in n)){var i,o=e.PLATFORM.global,s=0,a=""+Math.random(),u="__symbol:",c=u.length,l="__symbol@@"+a,h="defineProperty",p="defineProperties",d="getOwnPropertyNames",f="getOwnPropertyDescriptor",v="propertyIsEnumerable",m=n[d],g=n[f],y=n.create,b=n.keys,_=n[h],w=n[p],x=g(n,d),k=n.prototype,C=k.hasOwnProperty,S=k[v],O=k.toString,E=(Array.prototype.indexOf,function(e,t,n){C.call(e,l)||_(e,l,{enumerable:!1,configurable:!1,writable:!1,value:{}}),e[l]["@@"+t]=n}),A=function(e,n){var r=y(e);return null!==n&&"object"===(void 0===n?"undefined":t(n))&&m(n).forEach(function(e){j.call(n,e)&&B(r,e,n[e])}),r},M=function(e){var t=y(e);return t.enumerable=!1,t},T=function(){},P=function(e){return e!=l&&!C.call(F,e)},R=function(e){return e!=l&&C.call(F,e)},j=function(e){var t=""+e;return R(t)?C.call(this,t)&&this[l]["@@"+t]:S.call(this,e)},D=function(e){return _(k,e,{enumerable:!1,configurable:!0,get:T,set:function(t){i(this,e,{enumerable:!1,configurable:!0,writable:!0,value:t}),E(this,e,!0)}}),F[e]=_(n(e),"constructor",N)},L=function(e){if(this&&this!==o)throw new TypeError("Symbol is not a constructor");return D(u.concat(e||"",a,++s))},F=y(null),N={value:L},I=function(e){return F[e]},B=function(e,t,n){var r=""+t;return R(r)?(i(e,r,n.enumerable?M(n):n),E(e,r,!!n.enumerable)):_(e,t,n),e},q=function(e){return e="[object String]"===O.call(e)?e.split(""):n(e),m(e).filter(R).map(I)};x.value=B,_(n,h,x),x.value=q,_(n,r,x),x.value=function(e){return m(e).filter(P)},_(n,d,x),x.value=function(e,t){var n=q(t);return n.length?b(t).concat(n).forEach(function(n){j.call(t,n)&&B(e,n,t[n])}):w(e,t),e},_(n,p,x),x.value=j,_(k,v,x),x.value=L,_(o,"Symbol",x),x.value=function(e){var t=u.concat(u,e,a);return t in k?F[t]:D(t)},_(L,"for",x),x.value=function(e){return C.call(F,e)?e.slice(2*c,-a.length):void 0},_(L,"keyFor",x),x.value=function(e,t){var n=g(e,t);return n&&R(t)&&(n.enumerable=j.call(e,t)),n},_(n,f,x),x.value=function(e,t){return 1===arguments.length?y(e):A(e,t)},_(n,"create",x),x.value=function(){var e=O.call(this);return"[object String]"===e&&R(this)?"[object Symbol]":e},_(k,"toString",x);try{i=y(_({},u,{get:function(){return _(this,u,{value:!1})[u]}}))[u]||_}catch(e){i=function(e,t,n){var r=g(k,t);delete k[t],_(e,t,n),_(k,t,r)}}}}(Object,"getOwnPropertySymbols"),function(e,t){var n,r=e.defineProperty,i=e.prototype,o=i.toString;["iterator","match","replace","search","split","hasInstance","isConcatSpreadable","unscopables","species","toPrimitive","toStringTag"].forEach(function(t){if(!(t in Symbol))switch(r(Symbol,t,{value:Symbol(t)}),t){case"toStringTag":n=e.getOwnPropertyDescriptor(i,"toString"),n.value=function(){var e=o.call(this),t=void 0===this||null===this?void 0:this[Symbol.toStringTag];return void 0===t?e:"[object "+t+"]"},r(i,"toString",n)}})}(Object,Symbol),function(e,t,n){function r(){return this}t[e]||(t[e]=function(){var t=0,n=this,i={next:function(){var e=n.length<=t;return e?{done:e}:{done:e,value:n[t++]}}};return i[e]=r,i}),n[e]||(n[e]=function(){var t=String.fromCodePoint,n=this,i=0,o=n.length,s={next:function(){var e=o<=i,r=e?"":t(n.codePointAt(i));return i+=r.length,e?{done:e}:{done:e,value:r}}};return s[e]=r,s})}(Symbol.iterator,Array.prototype,String.prototype)),"undefined"==typeof FEATURE_NO_ES2015&&(Number.isNaN=Number.isNaN||function(e){return e!==e},Number.isFinite=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)}),String.prototype.endsWith&&!function(){try{return!"ab".endsWith("a",1)}catch(e){return!0}}()||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),String.prototype.startsWith&&!function(){try{return!"ab".startsWith("b",1)}catch(e){return!0}}()||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),"undefined"==typeof FEATURE_NO_ES2015&&(Array.from||(Array.from=function(){var e=function(e){return isNaN(e=+e)?0:(e>0?Math.floor:Math.ceil)(e)},t=function(t){return t>0?Math.min(e(t),9007199254740991):0},n=function(e,t,n,r){try{return t(n,r)}catch(t){throw"function"==typeof e.return&&e.return(),t}};return function(e){var r,i,o,s,a=Object(e),u="function"==typeof this?this:Array,c=arguments.length,l=c>1?arguments[1]:void 0,h=void 0!==l,p=0,d=a[Symbol.iterator];if(h&&(l=l.bind(c>2?arguments[2]:void 0)),void 0==d||Array.isArray(e))for(r=t(a.length),i=new u(r);r>p;p++)i[p]=h?l(a[p],p):a[p];else for(s=d.call(a),i=new u;!(o=s.next()).done;p++)i[p]=h?n(s,l,o.value,p):o.value;return i.length=p,i}}()),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,enumerable:!1,value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o>>0,i=arguments[1],o=0;o=0?r=i:(r=n+i)<0&&(r=0);for(var o;r0;)!function(){var e=[];s.forEach(function(t){n.push.apply(n,t.epsilon),e.push.apply(e,t.epsilon)}),s=e.filter(function(e){return e.epsilon})}();return n}function o(e,t,n){for(var r=e.handlers,i=e.regex,o=t.match(i),s=1,a=new f(n),u=0,c=r.length;u=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i;if(o.charSpec.validChars===e.validChars&&o.charSpec.invalidChars===e.invalidChars)return o}},e.prototype.put=function(t){var n=this.get(t);return n||(n=new e(t),this.nextStates.push(n),t.repeat&&n.nextStates.push(n),n)},e.prototype.match=function(e){for(var t=this.nextStates,n=[],r=0,i=t.length;r1&&"/"===u.charAt(h-1)&&(u=u.substr(0,h-1),a=!0);for(var p=0,d=u.length;pe.maxInstructionCount)throw new Error("Maximum navigation attempts exceeded. Giving up.")}else e.events.publish("router:navigation:processing",{instruction:n});return e.pipelineProvider.createPipeline().run(n).then(function(r){return T(n,r,t,e)}).catch(function(e){return{output:e instanceof Error?e:new Error(e)}}).then(function(r){return P(n,r,!!t,e)})}}})},t.prototype._findViewModel=function(e){if(this.container.viewModel)return this.container.viewModel;if(e.container)for(var t=e.container;t;){if(t.viewModel)return this.container.viewModel=t.viewModel,t.viewModel;t=t.parent}},t}(G)}),define("aurelia-task-queue",["exports","aurelia-pal"],function(e,t){"use strict";function n(e){var n=1,r=t.DOM.createMutationObserver(e),i=t.DOM.createTextNode("");return r.observe(i,{characterData:!0}),function(){n=-n,i.data=n}}function r(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}function i(e,t,n){n&&t.stack&&"object"===(void 0===e?"undefined":u(e))&&null!==e&&(e.stack=a(e.stack)+t.stack),"onError"in t?t.onError(e):c?setImmediate(function(){throw e}):setTimeout(function(){throw e},0)}function o(){var e=new Error;if(e.stack)return e.stack;try{throw e}catch(e){return e.stack}}function s(e){return e.replace(/^[\s\S]*?\bqueue(Micro)?Task\b[^\n]*\n/,"")}function a(e){var t=e.lastIndexOf("flushMicroTaskQueue");return t<0&&(t=e.lastIndexOf("flushTaskQueue"))<0?e:(t=e.lastIndexOf("\n",t),t<0?e:e.substr(0,t))}Object.defineProperty(e,"__esModule",{value:!0}),e.TaskQueue=void 0;var u="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},c="function"==typeof setImmediate;e.TaskQueue=function(){function e(){var e=this;this.flushing=!1,this.longStacks=!1,this.microTaskQueue=[],this.microTaskQueueCapacity=1024,this.taskQueue=[],t.FEATURE.mutationObserver?this.requestFlushMicroTaskQueue=n(function(){return e.flushMicroTaskQueue()}):this.requestFlushMicroTaskQueue=r(function(){return e.flushMicroTaskQueue()}),this.requestFlushTaskQueue=r(function(){return e.flushTaskQueue()})}return e.prototype.queueMicroTask=function(e){this.microTaskQueue.length<1&&this.requestFlushMicroTaskQueue(),this.longStacks&&(e.stack=this.prepareQueueStack("\nEnqueued in MicroTaskQueue by:\n")),this.microTaskQueue.push(e)},e.prototype.queueTask=function(e){this.taskQueue.length<1&&this.requestFlushTaskQueue(),this.longStacks&&(e.stack=this.prepareQueueStack("\nEnqueued in TaskQueue by:\n")),this.taskQueue.push(e)},e.prototype.flushTaskQueue=function(){var e=this.taskQueue,t=0,n=void 0;this.taskQueue=[];try{for(this.flushing=!0;tt){for(var o=0,s=e.length-n;o-1&&n.splice(t,1),e},e.prototype.publish=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=r.DOM.createCustomEvent(e,{cancelable:i,bubbles:n,detail:t});this.element.dispatchEvent(o)},e.prototype.subscribe=function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&"function"==typeof t)return t.eventName=e,t.handler=t,t.bubbles=r,t.dispose=function(){n.element.removeEventListener(e,t,r),n._dequeueHandler(t)},this.element.addEventListener(e,t,r),this._enqueueHandler(t),t},e.prototype.subscribeOnce=function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&"function"==typeof t){var i=function(){var i=function e(n){t(n),e.dispose()};return{v:n.subscribe(e,i,r)}}();if("object"===(void 0===i?"undefined":qe(i)))return i.v}},e.prototype.dispose=function(e){if(e&&"string"==typeof e){var t=this.subscriptions[e];if(t)for(;t.length;){var n=t.pop();n&&n.dispose()}}else this.disposeAll()},e.prototype.disposeAll=function(){for(var e in this.subscriptions)this.dispose(e)},e}(),$e=e.ResourceLoadContext=function(){function e(){this.dependencies={}}return e.prototype.addDependency=function(e){this.dependencies[e]=!0},e.prototype.hasDependency=function(e){return e in this.dependencies},e}(),Qe=e.ViewCompileInstruction=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.targetShadowDOM=e,this.compileSurrogate=t,this.associatedModuleId=null};Qe.normal=new Qe;var Ze=e.BehaviorInstruction=function(){function e(){this.initiatedByBehavior=!1,this.enhance=!1,this.partReplacements=null,this.viewFactory=null,this.originalAttrName=null,this.skipContentProcessing=!1,this.contentFactory=null,this.viewModel=null,this.anchorIsContainer=!1,this.host=null,this.attributes=null,this.type=null,this.attrName=null,this.inheritBindingContext=!1}return e.enhance=function(){var t=new e;return t.enhance=!0,t},e.unitTest=function(t,n){var r=new e;return r.type=t,r.attributes=n||{},r},e.element=function(t,n){var r=new e;return r.type=n,r.attributes={},r.anchorIsContainer=!(t.hasAttribute("containerless")||n.containerless),r.initiatedByBehavior=!0,r},e.attribute=function(t,n){var r=new e;return r.attrName=t,r.type=n||null,r.attributes={},r},e.dynamic=function(t,n,r){var i=new e;return i.host=t,i.viewModel=n,i.viewFactory=r,i.inheritBindingContext=!0,i},e}();Ze.normal=new Ze;var Je=e.TargetInstruction=(ue=ae=function(){function e(){this.injectorId=null,this.parentInjectorId=null,this.shadowSlot=!1,this.slotName=null,this.slotFallbackFactory=null,this.contentExpression=null,this.expressions=null,this.behaviorInstructions=null,this.providers=null,this.viewFactory=null,this.anchorIsContainer=!1,this.elementInstruction=null,this.lifting=!1,this.values=null}return e.shadowSlot=function(t){var n=new e;return n.parentInjectorId=t,n.shadowSlot=!0,n},e.contentExpression=function(t){var n=new e;return n.contentExpression=t,n},e.lifting=function(t,n){var r=new e;return r.parentInjectorId=t,r.expressions=e.noExpressions,r.behaviorInstructions=[n],r.viewFactory=n.viewFactory,r.providers=[n.type.target],r.lifting=!0,r},e.normal=function(t,n,r,i,o,s){var a=new e;return a.injectorId=t,a.parentInjectorId=n,a.providers=r,a.behaviorInstructions=i,a.expressions=o,a.anchorIsContainer=!s||s.anchorIsContainer,a.elementInstruction=s,a},e.surrogate=function(t,n,r,i){var o=new e;return o.expressions=r,o.behaviorInstructions=n,o.providers=t,o.values=i,o},e}(),ae.noExpressions=Object.freeze([]),ue),Xe=e.viewStrategy=n.protocol.create("aurelia:view-strategy",{validate:function(e){return"function"==typeof e.loadViewFactory||"View strategies must implement: loadViewFactory(viewEngine: ViewEngine, compileInstruction: ViewCompileInstruction, loadContext?: ResourceLoadContext): Promise"},compose:function(e){"function"!=typeof e.makeRelativeTo&&(e.makeRelativeTo=r.PLATFORM.noop)}}),Ke=e.RelativeViewStrategy=(ce=Xe())(le=function(){function e(e){this.path=e,this.absolutePath=null}return e.prototype.loadViewFactory=function(e,t,n,r){return null===this.absolutePath&&this.moduleId&&(this.absolutePath=(0,i.relativeToFile)(this.path,this.moduleId)),t.associatedModuleId=this.moduleId,e.loadViewFactory(this.absolutePath||this.path,t,n,r)},e.prototype.makeRelativeTo=function(e){null===this.absolutePath&&(this.absolutePath=(0,i.relativeToFile)(this.path,e))},e}())||le,et=e.ConventionalViewStrategy=(he=Xe())(pe=function(){function e(e,t){this.moduleId=t.moduleId,this.viewUrl=e.convertOriginToViewUrl(t)}return e.prototype.loadViewFactory=function(e,t,n,r){return t.associatedModuleId=this.moduleId,e.loadViewFactory(this.viewUrl,t,n,r)},e}())||pe,tt=e.NoViewStrategy=(de=Xe())(fe=function(){function e(e,t){this.dependencies=e||null,this.dependencyBaseUrl=t||""}return e.prototype.loadViewFactory=function(e,t,n,r){var i=this.entry,s=this.dependencies;if(i&&i.factoryIsReady)return Promise.resolve(null);if(this.entry=i=new o.TemplateRegistryEntry(this.moduleId||this.dependencyBaseUrl),i.dependencies=[],i.templateIsLoaded=!0,null!==s)for(var a=0,u=s.length;a=r&&a!==e))return o.splice(u,0,t),l}return i.auProjectionChildren.push(t),i}}return this.anchor},e.prototype.projectTo=function(e){this.destinationSlots=e},e.prototype.projectFrom=function(e,t){var n=r.DOM.createComment("anchor"),i=this.anchor.parentNode;n.auSlotProjectFrom=t,n.auOwnerView=e,n.auProjectionChildren=[],i.insertBefore(n,this.anchor),this.children.push(n),null===this.projectFromAnchors&&(this.projectFromAnchors=[]),this.projectFromAnchors.push(n)},e.prototype.renderFallbackContent=function(e,t,n,r){if(null===this.contentView&&(this.contentView=this.fallbackFactory.create(this.ownerView.container),this.contentView.bind(this.ownerView.bindingContext,this.ownerView.overrideContext),this.contentView.insertNodesBefore(this.anchor)),this.contentView.hasSlots){var i=this.contentView.slots,o=this.projectFromAnchors;if(null!==o)for(var s in i)for(var a=i[s],u=0,c=o.length;u2&&void 0!==arguments[2]?arguments[2]:Ve.instance;this.anchor=e,this.anchorIsContainer=t,this.bindingContext=null,this.overrideContext=null,this.animator=n,this.children=[],this.isBound=!1,this.isAttached=!1,this.contentSelectors=null,e.viewSlot=this,e.isContentProjectionSource=!1}return e.prototype.animateView=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"enter",n=v(e);if(null!==n)switch(t){case"enter":return this.animator.enter(n);case"leave":return this.animator.leave(n);default:throw new Error("Invalid animation direction: "+t)}},e.prototype.transformChildNodesIntoView=function(){var e=this.anchor;this.children.push({fragment:e,firstChild:e.firstChild,lastChild:e.lastChild,returnToCache:function(){},removeNodes:function(){for(var t=void 0;t=e.lastChild;)e.removeChild(t)},created:function(){},bind:function(){},unbind:function(){},attached:function(){},detached:function(){}})},e.prototype.bind=function(e,t){var n=void 0,r=void 0,i=void 0;if(this.isBound){if(this.bindingContext===e)return;this.unbind()}for(this.isBound=!0,this.bindingContext=e=e||this.bindingContext,this.overrideContext=t=t||this.overrideContext,i=this.children,n=0,r=i.length;n=r?this.add(t):(t.insertNodesBefore(n[e].firstChild),n.splice(e,0,t),this.isAttached?(t.attached(),this.animateView(t,"enter")):void 0)},e.prototype.move=function(e,t){if(e!==t){var n=this.children,r=n[e];r.removeNodes(),r.insertNodesBefore(n[t].firstChild),n.splice(e,1),n.splice(t,0,r)}},e.prototype.remove=function(e,t,n){return this.removeAt(this.children.indexOf(e),t,n)},e.prototype.removeMany=function(e,t,n){var r=this,i=this.children,o=e.length,s=void 0,a=[];e.forEach(function(e){if(n)return void e.removeNodes();var t=r.animateView(e,"leave");t?a.push(t.then(function(){return e.removeNodes()})):e.removeNodes()});var u=function(){if(r.isAttached)for(s=0;s=0&&i.splice(n,1)}} ;return a.length>0?Promise.all(a).then(function(){return u()}):u()},e.prototype.removeAt=function(e,t,n){var r=this,i=this.children[e],o=function(){return e=r.children.indexOf(i),i.removeNodes(),r.children.splice(e,1),r.isAttached&&i.detached(),t&&i.returnToCache(),i};if(!n){var s=this.animateView(i,"leave");if(s)return s.then(function(){return o()})}return o()},e.prototype.removeAll=function(e,t){var n=this,r=this.children,i=r.length,o=void 0,s=[];r.forEach(function(e){if(t)return void e.removeNodes();var r=n.animateView(e,"leave");r?s.push(r.then(function(){return e.removeNodes()})):e.removeNodes()});var a=function(){if(n.isAttached)for(o=0;o0?Promise.all(s).then(function(){return a()}):a()},e.prototype.attached=function(){var e=void 0,t=void 0,n=void 0,r=void 0;if(!this.isAttached)for(this.isAttached=!0,n=this.children,e=0,t=n.length;e=this.children.length?this.add(t):(lt.distributeView(t,this.projectToSlots,this,e),this.children.splice(e,0,t),this.isAttached&&t.attached())},e.prototype._projectionMove=function(e,t){if(e!==t){var n=this.children,r=n[e];lt.undistributeView(r,this.projectToSlots,this),lt.distributeView(r,this.projectToSlots,this,t),n.splice(e,1),n.splice(t,0,r)}},e.prototype._projectionRemove=function(e,t){lt.undistributeView(e,this.projectToSlots,this),this.children.splice(this.children.indexOf(e),1),this.isAttached&&e.detached()},e.prototype._projectionRemoveAt=function(e,t){var n=this.children[e];lt.undistributeView(n,this.projectToSlots,this),this.children.splice(e,1),this.isAttached&&n.detached()},e.prototype._projectionRemoveMany=function(e,t){var n=this;e.forEach(function(e){return n.remove(e,t)})},e.prototype._projectionRemoveAll=function(e){lt.undistributeAll(this.projectToSlots,this);var t=this.children;if(this.isAttached)for(var n=0,r=t.length;n0?this.cache=[]:this.cache=null,this.isCaching=this.cacheSize>0},e.prototype.getCachedView=function(){return null!==this.cache?this.cache.pop()||null:null},e.prototype.returnViewToCache=function(e){e.isAttached&&e.detached(),e.isBound&&e.unbind(),null!==this.cache&&this.cache.length instead.')}function a(e){e.container.registerSingleton(r.BindingLanguage,k),e.container.registerAlias(r.BindingLanguage,k)}Object.defineProperty(e,"__esModule",{value:!0}),e.TemplatingBindingLanguage=e.SyntaxInterpreter=e.ChildInterpolationBinding=e.InterpolationBinding=e.InterpolationBindingExpression=e.AttributeMap=void 0,e.configure=a;var u,c,l,h,p,d,f,v,m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(t),g=e.AttributeMap=(c=u=function(){function e(e){this.elements=Object.create(null),this.allElements=Object.create(null),this.svg=e,this.registerUniversal("accesskey","accessKey"),this.registerUniversal("contenteditable","contentEditable"),this.registerUniversal("tabindex","tabIndex"),this.registerUniversal("textcontent","textContent"),this.registerUniversal("innerhtml","innerHTML"),this.registerUniversal("scrolltop","scrollTop"),this.registerUniversal("scrollleft","scrollLeft"),this.registerUniversal("readonly","readOnly"),this.register("label","for","htmlFor"),this.register("img","usemap","useMap"),this.register("input","maxlength","maxLength"),this.register("input","minlength","minLength"),this.register("input","formaction","formAction"),this.register("input","formenctype","formEncType"),this.register("input","formmethod","formMethod"),this.register("input","formnovalidate","formNoValidate"),this.register("input","formtarget","formTarget"),this.register("textarea","maxlength","maxLength"),this.register("td","rowspan","rowSpan"),this.register("td","colspan","colSpan"),this.register("th","rowspan","rowSpan"),this.register("th","colspan","colSpan")}return e.prototype.register=function(e,t,n){e=e.toLowerCase(),t=t.toLowerCase(),(this.elements[e]=this.elements[e]||Object.create(null))[t]=n},e.prototype.registerUniversal=function(e,t){e=e.toLowerCase(),this.allElements[e]=t},e.prototype.map=function(e,t){if(this.svg.isStandardSvgAttribute(e,t))return t;e=e.toLowerCase(),t=t.toLowerCase();var r=this.elements[e];return void 0!==r&&t in r?r[t]:t in this.allElements?this.allElements[t]:/(?:^data-)|(?:^aria-)|:/.test(t)?t:(0,n.camelCase)(t)},e}(),u.inject=[n.SVGAnalyzer],c),y=e.InterpolationBindingExpression=function(){function e(e,t,n,r,i,o){this.observerLocator=e,this.targetProperty=t,this.parts=n,this.mode=r,this.lookupFunctions=i,this.attribute=this.attrToRemove=o,this.discrete=!1}return e.prototype.createBinding=function(e){return 3===this.parts.length?new _(e,this.observerLocator,this.parts[1],this.mode,this.lookupFunctions,this.targetProperty,this.parts[0],this.parts[2]):new b(this.observerLocator,this.parts,e,this.targetProperty,this.mode,this.lookupFunctions)},e}(),b=e.InterpolationBinding=function(){function e(e,t,n,r,i,o){s(n,r),this.observerLocator=e,this.parts=t,this.target=n,this.targetProperty=r,this.targetAccessor=e.getAccessor(n,r),this.mode=i,this.lookupFunctions=o}return e.prototype.interpolate=function(){if(this.isBound){for(var e="",t=this.parts,n=0,r=t.length;n=n.bindingMode.oneTime?r.attributes[t].defaultBindingMode:n.bindingMode.oneWay},e.prototype.bind=function(e,t,i,o,s){var a=o||r.BehaviorInstruction.attribute(i.attrName);return a.attributes[i.attrName]=new n.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,i.attrName),this.parser.parse(i.attrValue),i.defaultBindingMode||this.determineDefaultBindingMode(t,i.attrName,s),e.lookupFunctions),a},e.prototype.trigger=function(e,t,r){return new n.ListenerExpression(this.eventManager,r.attrName,this.parser.parse(r.attrValue),n.delegationStrategy.none,!0,e.lookupFunctions)},e.prototype.capture=function(e,t,r){return new n.ListenerExpression(this.eventManager,r.attrName,this.parser.parse(r.attrValue),n.delegationStrategy.capturing,!0,e.lookupFunctions)},e.prototype.delegate=function(e,t,r){return new n.ListenerExpression(this.eventManager,r.attrName,this.parser.parse(r.attrValue),n.delegationStrategy.bubbling,!0,e.lookupFunctions)},e.prototype.call=function(e,t,i,o){var s=o||r.BehaviorInstruction.attribute(i.attrName);return s.attributes[i.attrName]=new n.CallExpression(this.observerLocator,i.attrName,this.parser.parse(i.attrValue),e.lookupFunctions),s},e.prototype.options=function(e,t,n,i,o){var s=i||r.BehaviorInstruction.attribute(n.attrName),a=n.attrValue,u=this.language,c=null,l="",h=void 0,p=void 0,d=void 0,f=!1,v=!1,m=!1;for(p=0,d=a.length;p=0&&n0&&n0)for(n=0;n0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)}function D(e,t){var n=e.toLowerCase();Tr[n]=Tr[n+"s"]=Tr[t]=e}function L(e){return"string"==typeof e?Tr[e]||Tr[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)u(e,n)&&(t=L(n))&&(r[t]=e[n]);return r}function N(e,t){Pr[e]=t}function I(e){var t=[];for(var n in e)t.push({unit:n,priority:Pr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(t,n){return function(r){return null!=r?(V(this,t,r),e.updateOffset(this,n),this):q(this,t)}}function q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function V(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function H(e){return e=L(e),C(this[e])?this[e]():this}function z(e,t){if("object"==typeof e){e=F(e);for(var n=I(e),r=0;r=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function W(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Lr[e]=i),t&&(Lr[t[0]]=function(){return U(i.apply(this,arguments),t[1],t[2])}),n&&(Lr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Y(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,r=e.match(Rr);for(t=0,n=r.length;t=0&&jr.test(e);)e=e.replace(jr,n),jr.lastIndex=0,r-=1;return e}function Z(e,t,n){qr[e]=C(t)?t:function(e,r){return e&&n?n:t}}function J(e,t){return u(qr,e)?qr[e](t._strict,t._locale):new RegExp(X(e))}function X(e){return K(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function K(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),o(t)&&(r=function(e,n){n[t]=b(e)}),n=0;n=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function ye(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function be(e,t,n){var r=7+t-n;return-(7+ye(e,0,r).getUTCDay()-t)%7+r-1}function _e(e,t,n,r,i){var o,s,a=(7+n-r)%7,u=be(e,r,i),c=1+7*(t-1)+a+u;return c<=0?(o=e-1,s=fe(o)+c):c>fe(e)?(o=e+1,s=c-fe(e)):(o=e,s=c),{year:o,dayOfYear:s}}function we(e,t,n){var r,i,o=be(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?(i=e.year()-1,r=s+xe(i,t,n)):s>xe(e.year(),t,n)?(r=s-xe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function xe(e,t,n){var r=be(e,t,n),i=be(e+1,t,n);return(fe(e)-r+i)/7}function ke(e){return we(e,this._week.dow,this._week.doy).week}function Ce(){return this._week.dow}function Se(){return this._week.doy}function Oe(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ee(e){var t=we(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ae(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Me(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Te(e,n){return e?t(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][e.day()]:t(this._weekdays)?this._weekdays:this._weekdays.standalone}function Pe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Re(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function je(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=l([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=Jr.call(this._weekdaysParse,s),-1!==i?i:null):"ddd"===t?(i=Jr.call(this._shortWeekdaysParse,s),-1!==i?i:null):(i=Jr.call(this._minWeekdaysParse,s),-1!==i?i:null):"dddd"===t?-1!==(i=Jr.call(this._weekdaysParse,s))?i:-1!==(i=Jr.call(this._shortWeekdaysParse,s))?i:(i=Jr.call(this._minWeekdaysParse,s),-1!==i?i:null):"ddd"===t?-1!==(i=Jr.call(this._shortWeekdaysParse,s))?i:-1!==(i=Jr.call(this._weekdaysParse,s))?i:(i=Jr.call(this._minWeekdaysParse,s),-1!==i?i:null):-1!==(i=Jr.call(this._minWeekdaysParse,s))?i:-1!==(i=Jr.call(this._weekdaysParse,s))?i:(i=Jr.call(this._shortWeekdaysParse,s),-1!==i?i:null)}function De(e,t,n){var r,i,o;if(this._weekdaysParseExact)return je.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=l([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Le(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ae(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ne(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Me(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ie(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=ui),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Be(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ci),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qe(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=li),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ve(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],u=[],c=[];for(t=0;t<7;t++)n=l([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(r),a.push(i),u.push(o),c.push(r),c.push(i),c.push(o);for(s.sort(e),a.sort(e),u.sort(e),c.sort(e),t=0;t<7;t++)a[t]=K(a[t]),u[t]=K(u[t]),c[t]=K(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function He(){return this.hours()%12||12}function ze(){return this.hours()||24}function Ue(e,t){ W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function We(e,t){return t._meridiemParse}function Ye(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ge(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function $e(e){return e?e.toLowerCase().replace("_","-"):e}function Qe(e){for(var t,n,r,i,o=0;o0;){if(r=Ze(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&_(i,n,!0)>=t-1)break;t--}o++}return null}function Ze(e){var t=null;if(!fi[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=hi._abbr,require("./locale/"+e),Je(t)}catch(e){}return fi[e]}function Je(e,t){var n;return e&&(n=i(t)?et(e):Xe(e,t))&&(hi=n),hi._abbr}function Xe(e,t){if(null!==t){var n=di;if(t.abbr=e,null!=fi[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=fi[e]._config;else if(null!=t.parentLocale){if(null==fi[t.parentLocale])return vi[t.parentLocale]||(vi[t.parentLocale]=[]),vi[t.parentLocale].push({name:e,config:t}),null;n=fi[t.parentLocale]._config}return fi[e]=new E(O(n,t)),vi[e]&&vi[e].forEach(function(e){Xe(e.name,e.config)}),Je(e),fi[e]}return delete fi[e],null}function Ke(e,t){if(null!=t){var n,r=di;null!=fi[e]&&(r=fi[e]._config),t=O(r,t),n=new E(t),n.parentLocale=fi[e],fi[e]=n,Je(e)}else null!=fi[e]&&(null!=fi[e].parentLocale?fi[e]=fi[e].parentLocale:null!=fi[e]&&delete fi[e]);return fi[e]}function et(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return hi;if(!t(e)){if(n=Ze(e))return n;e=[e]}return Qe(e)}function tt(){return Or(fi)}function nt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[zr]<0||n[zr]>11?zr:n[Ur]<1||n[Ur]>re(n[Hr],n[zr])?Ur:n[Wr]<0||n[Wr]>24||24===n[Wr]&&(0!==n[Yr]||0!==n[Gr]||0!==n[$r])?Wr:n[Yr]<0||n[Yr]>59?Yr:n[Gr]<0||n[Gr]>59?Gr:n[$r]<0||n[$r]>999?$r:-1,p(e)._overflowDayOfYear&&(tUr)&&(t=Ur),p(e)._overflowWeeks&&-1===t&&(t=Qr),p(e)._overflowWeekday&&-1===t&&(t=Zr),p(e).overflow=t),e}function rt(e){var t,n,r,i,o,s,a=e._i,u=mi.exec(a)||gi.exec(a);if(u){for(p(e).iso=!0,t=0,n=bi.length;t10?"YYYY ":"YY "),o="HH:mm"+(n[4]?":ss":""),n[1]){var h=new Date(n[2]),d=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][h.getDay()];if(n[1].substr(0,3)!==d)return p(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===u?a=" +0000":(u=l.indexOf(n[5][1].toUpperCase())-12,a=(u<0?" -":" +")+(""+u).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:a=c[n[5]];break;default:a=c[" GMT"]}n[5]=a,e._i=n.splice(1).join(""),s=" ZZ",e._f=r+i+o+s,lt(e),p(e).rfc2822=!0}else e._isValid=!1}function ot(t){var n=wi.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));rt(t),!1===t._isValid&&(delete t._isValid,it(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function st(e,t,n){return null!=e?e:null!=t?t:n}function at(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ut(e){var t,n,r,i,o=[];if(!e._d){for(r=at(e),e._w&&null==e._a[Ur]&&null==e._a[zr]&&ct(e),null!=e._dayOfYear&&(i=st(e._a[Hr],r[Hr]),(e._dayOfYear>fe(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=ye(i,0,e._dayOfYear),e._a[zr]=n.getUTCMonth(),e._a[Ur]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Wr]&&0===e._a[Yr]&&0===e._a[Gr]&&0===e._a[$r]&&(e._nextDay=!0,e._a[Wr]=0),e._d=(e._useUTC?ye:ge).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Wr]=24)}}function ct(e){var t,n,r,i,o,s,a,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,s=4,n=st(t.GG,e._a[Hr],we(yt(),1,4).year),r=st(t.W,1),((i=st(t.E,1))<1||i>7)&&(u=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var c=we(yt(),o,s);n=st(t.gg,e._a[Hr],c.year),r=st(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o}r<1||r>xe(n,o,s)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(a=_e(n,r,i,o,s),e._a[Hr]=a.year,e._dayOfYear=a.dayOfYear)}function lt(t){if(t._f===e.ISO_8601)return void rt(t);if(t._f===e.RFC_2822)return void it(t);t._a=[],p(t).empty=!0;var n,r,i,o,s,a=""+t._i,u=a.length,c=0;for(i=Q(t._f,t._locale).match(Rr)||[],n=0;n0&&p(t).unusedInput.push(s),a=a.slice(a.indexOf(r)+r.length),c+=r.length),Lr[o]?(r?p(t).empty=!1:p(t).unusedTokens.push(o),ne(o,r,t)):t._strict&&!r&&p(t).unusedTokens.push(o);p(t).charsLeftOver=u-c,a.length>0&&p(t).unusedInput.push(a),t._a[Wr]<=12&&!0===p(t).bigHour&&t._a[Wr]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[Wr]=ht(t._locale,t._a[Wr],t._meridiem),ut(t),nt(t)}function ht(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function pt(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bt(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),e=vt(e),e._a){var t=e._isUTC?l(e._a):yt(e._a);this._isDSTShifted=this.isValid()&&_(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function qt(){return!!this.isValid()&&!this._isUTC}function Vt(){return!!this.isValid()&&this._isUTC}function Ht(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function zt(e,t){var n,r,i,s=e,a=null;return Ot(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(s={},t?s[t]=e:s.milliseconds=e):(a=Ai.exec(e))?(n="-"===a[1]?-1:1,s={y:0,d:b(a[Ur])*n,h:b(a[Wr])*n,m:b(a[Yr])*n,s:b(a[Gr])*n,ms:b(Et(1e3*a[$r]))*n}):(a=Mi.exec(e))?(n="-"===a[1]?-1:1,s={y:Ut(a[2],n),M:Ut(a[3],n),w:Ut(a[4],n),d:Ut(a[5],n),h:Ut(a[6],n),m:Ut(a[7],n),s:Ut(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(i=Yt(yt(s.from),yt(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),r=new St(s),Ot(e)&&u(e,"_locale")&&(r._locale=e._locale),r}function Ut(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Wt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Yt(e,t){var n;return e.isValid()&&t.isValid()?(t=Tt(t,e),e.isBefore(t)?n=Wt(e,t):(n=Wt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Gt(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=zt(n,r),$t(this,i,e),this}}function $t(t,n,r,i){var o=n._milliseconds,s=Et(n._days),a=Et(n._months);t.isValid()&&(i=null==i||i,o&&t._d.setTime(t._d.valueOf()+o*r),s&&V(t,"Date",q(t,"Date")+s*r),a&&ue(t,q(t,"Month")+a*r),i&&e.updateOffset(t,s||a))}function Qt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Zt(t,n){var r=t||yt(),i=Tt(r,this).startOf("day"),o=e.calendarFormat(this,i)||"sameElse",s=n&&(C(n[o])?n[o].call(this,r):n[o]);return this.format(s||this.localeData().calendar(o,this,yt(r)))}function Jt(){return new m(this)}function Xt(e,t){var n=g(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=L(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()9999?$(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):C(Date.prototype.toISOString)?this.toDate().toISOString():$(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function cn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)}function ln(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=$(this,t);return this.localeData().postformat(n)}function hn(e,t){return this.isValid()&&(g(e)&&e.isValid()||yt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pn(e){return this.from(yt(),e)}function dn(e,t){return this.isValid()&&(g(e)&&e.isValid()||yt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fn(e){return this.to(yt(),e)}function vn(e){var t;return void 0===e?this._locale._abbr:(t=et(e),null!=t&&(this._locale=t),this)}function mn(){return this._locale}function gn(e){switch(e=L(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function yn(e){return void 0===(e=L(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function bn(){return this._d.valueOf()-6e4*(this._offset||0)}function _n(){return Math.floor(this.valueOf()/1e3)}function wn(){return new Date(this.valueOf())}function xn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function kn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Cn(){return this.isValid()?this.toISOString():null}function Sn(){return d(this)}function On(){return c({},p(this))}function En(){return p(this).overflow}function An(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Mn(e,t){W(0,[e,e.length],0,t)}function Tn(e){return Dn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Pn(e){return Dn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Rn(){return xe(this.year(),1,4)}function jn(){var e=this.localeData()._week;return xe(this.year(),e.dow,e.doy)}function Dn(e,t,n,r,i){var o;return null==e?we(this,r,i).year:(o=xe(e,r,i),t>o&&(t=o),Ln.call(this,e,t,n,r,i))}function Ln(e,t,n,r,i){var o=_e(e,t,n,r,i),s=ye(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Fn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Nn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function In(e,t){t[$r]=b(1e3*("0."+e))}function Bn(){return this._isUTC?"UTC":""}function qn(){return this._isUTC?"Coordinated Universal Time":""}function Vn(e){return yt(1e3*e)}function Hn(){return yt.apply(null,arguments).parseZone()}function zn(e){return e}function Un(e,t,n,r){var i=et(),o=l().set(r,t);return i[n](o,e)}function Wn(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return Un(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Un(e,r,n,"month");return i}function Yn(e,t,n,r){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var i=et(),s=e?i._week.dow:0;if(null!=n)return Un(t,(n+s)%7,r,"day");var a,u=[];for(a=0;a<7;a++)u[a]=Un(t,(a+s)%7,r,"day");return u}function Gn(e,t){return Wn(e,t,"months")}function $n(e,t){return Wn(e,t,"monthsShort")}function Qn(e,t,n){return Yn(e,t,n,"weekdays")}function Zn(e,t,n){return Yn(e,t,n,"weekdaysShort")}function Jn(e,t,n){return Yn(e,t,n,"weekdaysMin")}function Xn(){var e=this._data;return this._milliseconds=qi(this._milliseconds),this._days=qi(this._days),this._months=qi(this._months),e.milliseconds=qi(e.milliseconds),e.seconds=qi(e.seconds),e.minutes=qi(e.minutes),e.hours=qi(e.hours),e.months=qi(e.months),e.years=qi(e.years),this}function Kn(e,t,n,r){var i=zt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function er(e,t){return Kn(this,e,t,1)}function tr(e,t){return Kn(this,e,t,-1)}function nr(e){return e<0?Math.floor(e):Math.ceil(e)}function rr(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*nr(or(a)+s),s=0,a=0),u.milliseconds=o%1e3,e=y(o/1e3),u.seconds=e%60,t=y(e/60),u.minutes=t%60,n=y(t/60),u.hours=n%24,s+=y(n/24),i=y(ir(s)),a+=i,s-=nr(or(i)),r=y(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function ir(e){return 4800*e/146097}function or(e){return 146097*e/4800}function sr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=L(e))||"year"===e)return t=this._days+r/864e5,n=this._months+ir(t),"month"===e?n:n/12;switch(t=this._days+Math.round(or(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function ar(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function ur(e){return function(){return this.as(e)}}function cr(e){return e=L(e),this.isValid()?this[e+"s"]():NaN}function lr(e){return function(){return this.isValid()?this._data[e]:NaN}}function hr(){return y(this.days()/7)}function pr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function dr(e,t,n){var r=zt(e).abs(),i=no(r.as("s")),o=no(r.as("m")),s=no(r.as("h")),a=no(r.as("d")),u=no(r.as("M")),c=no(r.as("y")),l=i<=ro.ss&&["s",i]||i0,l[4]=n,pr.apply(null,l)}function fr(e){return void 0===e?no:"function"==typeof e&&(no=e,!0)}function vr(e,t){return void 0!==ro[e]&&(void 0===t?ro[e]:(ro[e]=t,"s"===e&&(ro.ss=t-1),!0))}function mr(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=dr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function gr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=io(this._milliseconds)/1e3,i=io(this._days),o=io(this._months);e=y(r/60),t=y(e/60),r%=60,e%=60,n=y(o/12),o%=12;var s=n,a=o,u=i,c=t,l=e,h=r,p=this.asSeconds();return p?(p<0?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(u?u+"D":"")+(c||l||h?"T":"")+(c?c+"H":"")+(l?l+"M":"")+(h?h+"S":""):"P0D"}var yr,br;br=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r68?1900:2e3)};var ri=B("FullYear",!0);W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),N("week",5),N("isoWeek",5),Z("w",/\d\d?/),Z("ww",/\d\d?/,/\d\d/),Z("W",/\d\d?/),Z("WW",/\d\d?/,/\d\d/),te(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=b(e)});var ii={dow:0,doy:6};W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),Z("d",/\d\d?/),Z("e",/\d\d?/),Z("E",/\d\d?/),Z("dd",function(e,t){return t.weekdaysMinRegex(e)}),Z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Z("dddd",function(e,t){return t.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e}),te(["d","e","E"],function(e,t,n,r){t[r]=b(e)});var oi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),si="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ai="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ui=Br,ci=Br,li=Br;W("H",["HH",2],0,"hour"),W("h",["hh",2],0,He),W("k",["kk",2],0,ze),W("hmm",0,0,function(){return""+He.apply(this)+U(this.minutes(),2)}),W("hmmss",0,0,function(){return""+He.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),Ue("a",!0),Ue("A",!1),D("hour","h"),N("hour",13),Z("a",We),Z("A",We),Z("H",/\d\d?/),Z("h",/\d\d?/),Z("k",/\d\d?/),Z("HH",/\d\d?/,/\d\d/),Z("hh",/\d\d?/,/\d\d/),Z("kk",/\d\d?/,/\d\d/),Z("hmm",/\d\d\d\d?/),Z("hmmss",/\d\d\d\d\d\d?/),Z("Hmm",/\d\d\d\d?/),Z("Hmmss",/\d\d\d\d\d\d?/),ee(["H","HH"],Wr),ee(["k","kk"],function(e,t,n){var r=b(e);t[Wr]=24===r?0:r}),ee(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ee(["h","hh"],function(e,t,n){t[Wr]=b(e),p(n).bigHour=!0}),ee("hmm",function(e,t,n){var r=e.length-2;t[Wr]=b(e.substr(0,r)),t[Yr]=b(e.substr(r)),p(n).bigHour=!0}),ee("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Wr]=b(e.substr(0,r)),t[Yr]=b(e.substr(r,2)),t[Gr]=b(e.substr(i)),p(n).bigHour=!0}),ee("Hmm",function(e,t,n){var r=e.length-2;t[Wr]=b(e.substr(0,r)),t[Yr]=b(e.substr(r))}),ee("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Wr]=b(e.substr(0,r)),t[Yr]=b(e.substr(r,2)),t[Gr]=b(e.substr(i))});var hi,pi=B("Hours",!0),di={calendar:Er,longDateFormat:Ar,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:Mr,months:Kr,monthsShort:ei,week:ii,weekdays:oi,weekdaysMin:ai,weekdaysShort:si,meridiemParse:/[ap]\.?m?\.?/i},fi={},vi={},mi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yi=/Z|[+-]\d\d(?::?\d\d)?/,bi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],_i=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wi=/^\/?Date\((\-?\d+)/i,xi=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;e.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var ki=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:f()}),Si=function(){return Date.now?Date.now():+new Date},Oi=["year","quarter","month","week","day","hour","minute","second","millisecond"];At("Z",":"),At("ZZ",""),Z("Z",Ir),Z("ZZ",Ir),ee(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Mt(Ir,e)});var Ei=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Ai=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Mi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;zt.fn=St.prototype,zt.invalid=Ct;var Ti=Gt(1,"add"),Pi=Gt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ri=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Mn("gggg","weekYear"),Mn("ggggg","weekYear"),Mn("GGGG","isoWeekYear"),Mn("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),Z("G",/[+-]?\d+/),Z("g",/[+-]?\d+/),Z("GG",/\d\d?/,/\d\d/),Z("gg",/\d\d?/,/\d\d/),Z("GGGG",/\d{1,4}/,/\d{4}/),Z("gggg",/\d{1,4}/,/\d{4}/),Z("GGGGG",/[+-]?\d{1,6}/,Fr),Z("ggggg",/[+-]?\d{1,6}/,Fr),te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=b(e)}),te(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),W("Q",0,"Qo","quarter"),D("quarter","Q"),N("quarter",7),Z("Q",/\d/),ee("Q",function(e,t){t[zr]=3*(b(e)-1)}),W("D",["DD",2],"Do","date"),D("date","D"),N("date",9),Z("D",/\d\d?/),Z("DD",/\d\d?/,/\d\d/),Z("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ee(["D","DD"],Ur),ee("Do",function(e,t){t[Ur]=b(e.match(/\d\d?/)[0],10)});var ji=B("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),N("dayOfYear",4),Z("DDD",/\d{1,3}/),Z("DDDD",/\d{3}/),ee(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),W("m",["mm",2],0,"minute"),D("minute","m"),N("minute",14),Z("m",/\d\d?/),Z("mm",/\d\d?/,/\d\d/),ee(["m","mm"],Yr);var Di=B("Minutes",!1);W("s",["ss",2],0,"second"),D("second","s"),N("second",15),Z("s",/\d\d?/),Z("ss",/\d\d?/,/\d\d/),ee(["s","ss"],Gr);var Li=B("Seconds",!1);W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),N("millisecond",16),Z("S",/\d{1,3}/,/\d/),Z("SS",/\d{1,3}/,/\d\d/),Z("SSS",/\d{1,3}/,/\d{3}/);var Fi;for(Fi="SSSS";Fi.length<=9;Fi+="S")Z(Fi,/\d+/);for(Fi="S";Fi.length<=9;Fi+="S")ee(Fi,In);var Ni=B("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var Ii=m.prototype;Ii.add=Ti,Ii.calendar=Zt,Ii.clone=Jt,Ii.diff=on,Ii.endOf=yn,Ii.format=ln,Ii.from=hn,Ii.fromNow=pn,Ii.to=dn,Ii.toNow=fn,Ii.get=H,Ii.invalidAt=En,Ii.isAfter=Xt,Ii.isBefore=Kt,Ii.isBetween=en,Ii.isSame=tn,Ii.isSameOrAfter=nn,Ii.isSameOrBefore=rn,Ii.isValid=Sn,Ii.lang=Ri, Ii.locale=vn,Ii.localeData=mn,Ii.max=Ci,Ii.min=ki,Ii.parsingFlags=On,Ii.set=z,Ii.startOf=gn,Ii.subtract=Pi,Ii.toArray=xn,Ii.toObject=kn,Ii.toDate=wn,Ii.toISOString=un,Ii.inspect=cn,Ii.toJSON=Cn,Ii.toString=an,Ii.unix=_n,Ii.valueOf=bn,Ii.creationData=An,Ii.year=ri,Ii.isLeapYear=me,Ii.weekYear=Tn,Ii.isoWeekYear=Pn,Ii.quarter=Ii.quarters=Fn,Ii.month=ce,Ii.daysInMonth=le,Ii.week=Ii.weeks=Oe,Ii.isoWeek=Ii.isoWeeks=Ee,Ii.weeksInYear=jn,Ii.isoWeeksInYear=Rn,Ii.date=ji,Ii.day=Ii.days=Le,Ii.weekday=Fe,Ii.isoWeekday=Ne,Ii.dayOfYear=Nn,Ii.hour=Ii.hours=pi,Ii.minute=Ii.minutes=Di,Ii.second=Ii.seconds=Li,Ii.millisecond=Ii.milliseconds=Ni,Ii.utcOffset=Rt,Ii.utc=Dt,Ii.local=Lt,Ii.parseZone=Ft,Ii.hasAlignedHourOffset=Nt,Ii.isDST=It,Ii.isLocal=qt,Ii.isUtcOffset=Vt,Ii.isUtc=Ht,Ii.isUTC=Ht,Ii.zoneAbbr=Bn,Ii.zoneName=qn,Ii.dates=x("dates accessor is deprecated. Use date instead.",ji),Ii.months=x("months accessor is deprecated. Use month instead",ce),Ii.years=x("years accessor is deprecated. Use year instead",ri),Ii.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jt),Ii.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Bt);var Bi=E.prototype;Bi.calendar=A,Bi.longDateFormat=M,Bi.invalidDate=T,Bi.ordinal=P,Bi.preparse=zn,Bi.postformat=zn,Bi.relativeTime=R,Bi.pastFuture=j,Bi.set=S,Bi.months=ie,Bi.monthsShort=oe,Bi.monthsParse=ae,Bi.monthsRegex=pe,Bi.monthsShortRegex=he,Bi.week=ke,Bi.firstDayOfYear=Se,Bi.firstDayOfWeek=Ce,Bi.weekdays=Te,Bi.weekdaysMin=Re,Bi.weekdaysShort=Pe,Bi.weekdaysParse=De,Bi.weekdaysRegex=Ie,Bi.weekdaysShortRegex=Be,Bi.weekdaysMinRegex=qe,Bi.isPM=Ye,Bi.meridiem=Ge,Je("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=x("moment.lang is deprecated. Use moment.locale instead.",Je),e.langData=x("moment.langData is deprecated. Use moment.localeData instead.",et);var qi=Math.abs,Vi=ur("ms"),Hi=ur("s"),zi=ur("m"),Ui=ur("h"),Wi=ur("d"),Yi=ur("w"),Gi=ur("M"),$i=ur("y"),Qi=lr("milliseconds"),Zi=lr("seconds"),Ji=lr("minutes"),Xi=lr("hours"),Ki=lr("days"),eo=lr("months"),to=lr("years"),no=Math.round,ro={ss:44,s:45,m:45,h:22,d:26,M:11},io=Math.abs,oo=St.prototype;return oo.isValid=kt,oo.abs=Xn,oo.add=er,oo.subtract=tr,oo.as=sr,oo.asMilliseconds=Vi,oo.asSeconds=Hi,oo.asMinutes=zi,oo.asHours=Ui,oo.asDays=Wi,oo.asWeeks=Yi,oo.asMonths=Gi,oo.asYears=$i,oo.valueOf=ar,oo._bubble=rr,oo.get=cr,oo.milliseconds=Qi,oo.seconds=Zi,oo.minutes=Ji,oo.hours=Xi,oo.days=Ki,oo.weeks=hr,oo.months=eo,oo.years=to,oo.humanize=mr,oo.toISOString=gr,oo.toString=gr,oo.toJSON=gr,oo.locale=vn,oo.localeData=mn,oo.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gr),oo.lang=Ri,W("X",0,0,"unix"),W("x",0,0,"valueOf"),Z("x",/[+-]?\d+/),Z("X",/[+-]?\d+(\.\d{1,3})?/),ee("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ee("x",function(e,t,n){n._d=new Date(b(e))}),e.version="2.18.1",function(e){yr=e}(yt),e.fn=Ii,e.min=_t,e.max=wt,e.now=Si,e.utc=l,e.unix=Vn,e.months=Gn,e.isDate=s,e.locale=Je,e.invalid=f,e.duration=zt,e.isMoment=g,e.weekdays=Qn,e.parseZone=Hn,e.localeData=et,e.isDuration=Ot,e.monthsShort=$n,e.weekdaysMin=Jn,e.defineLocale=Xe,e.updateLocale=Ke,e.locales=tt,e.weekdaysShort=Zn,e.normalizeUnits=L,e.relativeTimeRounding=fr,e.relativeTimeThreshold=vr,e.calendarFormat=Qt,e.prototype=Ii,e}),define("extend",["require","exports","module"],function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},s=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var o;for(o in e);return void 0===o||r.call(e,o)};n.exports=function e(){var t,n,r,i,a,u,c=arguments[0],l=1,h=arguments.length,p=!1;for("boolean"==typeof c&&(p=c,c=arguments[1]||{},l=2),(null==c||"object"!=typeof c&&"function"!=typeof c)&&(c={});l"),r.customElement("inline-svg"),r.inject(Element,i.HttpClient),n.__metadata("design:paramtypes",[HTMLElement,i.HttpClient])],l),t.InlineSvgCustomElement=l}),define("wemod-api-auth/index",["require","exports","daringdev-storage","./auth-service","./auth-client","./auth-client","./auth-service"],function(e,t,n,r,i,o,s){"use strict";function a(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function u(e,t){e.container.registerSingleton(i.AuthClient,function(){return new i.AuthClient(t.baseUrl,t.clientId)}),e.container.registerSingleton(r.AuthService,function(){return new r.AuthService(e.container.get(n.Storage),e.container.get(i.AuthClient))})}Object.defineProperty(t,"__esModule",{value:!0}),a(o),a(s),t.configure=u}),define("wemod-api-auth",["wemod-api-auth/index"],function(e){return e}),define("wemod-api-client/index",["require","exports","./api-client","./apis/index","./api-client"],function(e,t,n,r,i){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function s(e,t){e.container.registerSingleton(n.ApiClient,function(){return new n.ApiClient(t.baseUrl)})}Object.defineProperty(t,"__esModule",{value:!0}),o(r),o(i),t.configure=s}),define("wemod-api-client",["wemod-api-client/index"],function(e){return e}),define("wemod-notifications/index",["require","exports","./notification-service"],function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}),define("wemod-notifications",["wemod-notifications/index"],function(e){return e}),define("wemod-objectives/index",["require","exports","./objective-service"],function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}),define("wemod-objectives",["wemod-objectives/index"],function(e){return e}),define("wemod-users/index",["require","exports","./user-service"],function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}),define("wemod-users",["wemod-users/index"],function(e){return e}),define("text",{}),define("electron",[],function(){return window.nodeRequire("electron")}),define("child_process",[],function(){return window.nodeRequire("child_process")}),define("crypto",[],function(){var e=window.nodeRequire("crypto");return delete e.createCredentials,delete e.Credentials,e}),define("fs",[],function(){return window.nodeRequire("fs")}),define("http",[],function(){return window.nodeRequire("http")}),define("https",[],function(){return window.nodeRequire("https")}),define("net",[],function(){return window.nodeRequire("net")}),define("os",[],function(){return window.nodeRequire("os")}),define("path",[],function(){return window.nodeRequire("path")}),define("timers",[],function(){return window.nodeRequire("timers")}),define("url",[],function(){return window.nodeRequire("url")}),define("aurelia-templating-resources/aurelia-templating-resources",["exports","aurelia-pal","./compose","./if","./with","./repeat","./show","./hide","./sanitize-html","./replaceable","./focus","aurelia-templating","./css-resource","./html-sanitizer","./attr-binding-behavior","./binding-mode-behaviors","./throttle-binding-behavior","./debounce-binding-behavior","./self-binding-behavior","./signal-binding-behavior","./binding-signaler","./update-trigger-binding-behavior","./abstract-repeater","./repeat-strategy-locator","./html-resource-plugin","./null-repeat-strategy","./array-repeat-strategy","./map-repeat-strategy","./set-repeat-strategy","./number-repeat-strategy","./repeat-utilities","./analyze-view-factory","./aurelia-hide-style"],function(e,t,n,r,i,o,s,a,u,c,l,h,p,d,f,v,m,g,y,b,_,w,x,k,C,S,O,E,A,M,T,P,R){"use strict";function j(e){(0,R.injectAureliaHideStyleAtHead)(),e.globalResources(t.PLATFORM.moduleName("./compose"),t.PLATFORM.moduleName("./if"),t.PLATFORM.moduleName("./with"),t.PLATFORM.moduleName("./repeat"),t.PLATFORM.moduleName("./show"),t.PLATFORM.moduleName("./hide"),t.PLATFORM.moduleName("./replaceable"),t.PLATFORM.moduleName("./sanitize-html"),t.PLATFORM.moduleName("./focus"),t.PLATFORM.moduleName("./binding-mode-behaviors"),t.PLATFORM.moduleName("./self-binding-behavior"),t.PLATFORM.moduleName("./throttle-binding-behavior"),t.PLATFORM.moduleName("./debounce-binding-behavior"),t.PLATFORM.moduleName("./signal-binding-behavior"),t.PLATFORM.moduleName("./update-trigger-binding-behavior"),t.PLATFORM.moduleName("./attr-binding-behavior")),(0,C.configure)(e);var n=e.container.get(h.ViewEngine),r={fetch:function(e){var t;return t={},t[e]=(0,p._createCSSResource)(e),t}};[".css",".less",".sass",".scss",".styl"].forEach(function(e){return n.addResourcePlugin(e,r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.viewsRequireLifecycle=e.unwrapExpression=e.updateOneTimeBinding=e.isOneTime=e.getItemsSourceExpression=e.updateOverrideContext=e.createFullOverrideContext=e.NumberRepeatStrategy=e.SetRepeatStrategy=e.MapRepeatStrategy=e.ArrayRepeatStrategy=e.NullRepeatStrategy=e.RepeatStrategyLocator=e.AbstractRepeater=e.UpdateTriggerBindingBehavior=e.BindingSignaler=e.SignalBindingBehavior=e.SelfBindingBehavior=e.DebounceBindingBehavior=e.ThrottleBindingBehavior=e.TwoWayBindingBehavior=e.OneWayBindingBehavior=e.OneTimeBindingBehavior=e.AttrBindingBehavior=e.configure=e.Focus=e.Replaceable=e.SanitizeHTMLValueConverter=e.HTMLSanitizer=e.Hide=e.Show=e.Repeat=e.With=e.If=e.Compose=void 0,e.Compose=n.Compose,e.If=r.If,e.With=i.With,e.Repeat=o.Repeat,e.Show=s.Show,e.Hide=a.Hide,e.HTMLSanitizer=d.HTMLSanitizer,e.SanitizeHTMLValueConverter=u.SanitizeHTMLValueConverter,e.Replaceable=c.Replaceable,e.Focus=l.Focus,e.configure=j,e.AttrBindingBehavior=f.AttrBindingBehavior,e.OneTimeBindingBehavior=v.OneTimeBindingBehavior,e.OneWayBindingBehavior=v.OneWayBindingBehavior,e.TwoWayBindingBehavior=v.TwoWayBindingBehavior,e.ThrottleBindingBehavior=m.ThrottleBindingBehavior,e.DebounceBindingBehavior=g.DebounceBindingBehavior,e.SelfBindingBehavior=y.SelfBindingBehavior,e.SignalBindingBehavior=b.SignalBindingBehavior,e.BindingSignaler=_.BindingSignaler,e.UpdateTriggerBindingBehavior=w.UpdateTriggerBindingBehavior,e.AbstractRepeater=x.AbstractRepeater,e.RepeatStrategyLocator=k.RepeatStrategyLocator,e.NullRepeatStrategy=S.NullRepeatStrategy,e.ArrayRepeatStrategy=O.ArrayRepeatStrategy,e.MapRepeatStrategy=E.MapRepeatStrategy,e.SetRepeatStrategy=A.SetRepeatStrategy,e.NumberRepeatStrategy=M.NumberRepeatStrategy,e.createFullOverrideContext=T.createFullOverrideContext,e.updateOverrideContext=T.updateOverrideContext,e.getItemsSourceExpression=T.getItemsSourceExpression,e.isOneTime=T.isOneTime,e.updateOneTimeBinding=T.updateOneTimeBinding,e.unwrapExpression=T.unwrapExpression,e.viewsRequireLifecycle=P.viewsRequireLifecycle}),define("aurelia-templating-resources",["aurelia-templating-resources/aurelia-templating-resources"],function(e){return e}),define("aurelia-templating-resources/compose",["exports","aurelia-dependency-injection","aurelia-task-queue","aurelia-templating","aurelia-pal"],function(e,t,n,r,i){"use strict";function o(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function s(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function a(e,t){return Object.assign(t,{bindingContext:e.bindingContext,overrideContext:e.overrideContext,owningView:e.owningView,container:e.container,viewSlot:e.viewSlot,viewResources:e.viewResources,currentController:e.currentController,host:e.element,swapOrder:e.swapOrder})}function u(e,t){e.currentInstruction=null,e.compositionEngine.compose(t).then(function(t){e.currentController=t,e.currentViewModel=t?t.viewModel:null})}Object.defineProperty(e,"__esModule",{value:!0}),e.Compose=void 0;var c,l,h,p,d,f,v,m;e.Compose=(c=(0,r.customElement)("compose"),l=(0,t.inject)(i.DOM.Element,t.Container,r.CompositionEngine,r.ViewSlot,r.ViewResources,n.TaskQueue),c(h=(0,r.noView)(h=l((p=function(){function e(e,t,n,r,i,s){o(this,"model",d,this),o(this,"view",f,this),o(this,"viewModel",v,this),o(this,"swapOrder",m,this),this.element=e,this.container=t,this.compositionEngine=n,this.viewSlot=r,this.viewResources=i,this.taskQueue=s,this.currentController=null,this.currentViewModel=null}return e.prototype.created=function(e){this.owningView=e},e.prototype.bind=function(e,t){this.bindingContext=e,this.overrideContext=t,u(this,a(this,{view:this.view,viewModel:this.viewModel,model:this.model}))},e.prototype.unbind=function(e,t){this.bindingContext=null,this.overrideContext=null;this.viewSlot.removeAll(!0,!0)},e.prototype.modelChanged=function(e,t){var n=this;if(this.currentInstruction)return void(this.currentInstruction.model=e);this.taskQueue.queueMicroTask(function(){if(n.currentInstruction)return void(n.currentInstruction.model=e);var t=n.currentViewModel;t&&"function"==typeof t.activate&&t.activate(e)})},e.prototype.viewChanged=function(e,t){var n=this,r=a(this,{view:e,viewModel:this.currentViewModel||this.viewModel,model:this.model});if(this.currentInstruction)return void(this.currentInstruction=r);this.currentInstruction=r,this.taskQueue.queueMicroTask(function(){return u(n,n.currentInstruction)})},e.prototype.viewModelChanged=function(e,t){var n=this,r=a(this,{viewModel:e,view:this.view,model:this.model});if(this.currentInstruction)return void(this.currentInstruction=r);this.currentInstruction=r,this.taskQueue.queueMicroTask(function(){return u(n,n.currentInstruction)})},e}(),d=s(p.prototype,"model",[r.bindable],{enumerable:!0,initializer:null}),f=s(p.prototype,"view",[r.bindable],{enumerable:!0,initializer:null}),v=s(p.prototype,"viewModel",[r.bindable],{enumerable:!0,initializer:null}),m=s(p.prototype,"swapOrder",[r.bindable],{enumerable:!0,initializer:null}),h=p))||h)||h)||h)}),define("aurelia-templating-resources/if",["exports","aurelia-templating","aurelia-dependency-injection"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.If=void 0;var r,i,o;e.If=(r=(0,t.customAttribute)("if"),i=(0,n.inject)(t.BoundViewFactory,t.ViewSlot),r(o=(0,t.templateController)(o=i(o=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.showing=!1,this.view=null,this.bindingContext=null,this.overrideContext=null}return e.prototype.bind=function(e,t){this.bindingContext=e,this.overrideContext=t,this.valueChanged(this.value)},e.prototype.valueChanged=function(e){var t=this;if(this.__queuedChanges)return void this.__queuedChanges.push(e);var n=this._runValueChanged(e);n instanceof Promise&&function(){var e=t.__queuedChanges=[],r=function n(){if(!e.length)return void(t.__queuedChanges=void 0);(t._runValueChanged(e.shift())||Promise.resolve()).then(n)};n.then(r)}()},e.prototype._runValueChanged=function(e){var t=this;if(!e){var n=void 0;return null!==this.view&&this.showing&&(n=this.viewSlot.remove(this.view),n instanceof Promise?n.then(function(){return t.view.unbind()}):this.view.unbind()),this.showing=!1,n}if(null===this.view&&(this.view=this.viewFactory.create()),this.view.isBound||this.view.bind(this.bindingContext,this.overrideContext),!this.showing)return this.showing=!0,this.viewSlot.add(this.view)},e.prototype.unbind=function(){null!==this.view&&(this.view.unbind(),this.viewFactory.isCaching&&(this.showing&&(this.showing=!1,this.viewSlot.remove(this.view,!0,!0)),this.view.returnToCache(),this.view=null))},e}())||o)||o)||o)}),define("aurelia-templating-resources/with",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-binding"],function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.With=void 0;var i,o,s;e.With=(i=(0,n.customAttribute)("with"),o=(0,t.inject)(n.BoundViewFactory,n.ViewSlot),i(s=(0,n.templateController)(s=o(s=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.parentOverrideContext=null,this.view=null}return e.prototype.bind=function(e,t){this.parentOverrideContext=t,this.valueChanged(this.value)},e.prototype.valueChanged=function(e){var t=(0,r.createOverrideContext)(e,this.parentOverrideContext);this.view?this.view.bind(e,t):(this.view=this.viewFactory.create(),this.view.bind(e,t),this.viewSlot.add(this.view))},e.prototype.unbind=function(){this.parentOverrideContext=null,this.view&&this.view.unbind()},e}())||s)||s)||s)}),define("aurelia-templating-resources/repeat",["exports","aurelia-dependency-injection","aurelia-binding","aurelia-templating","./repeat-strategy-locator","./repeat-utilities","./analyze-view-factory","./abstract-repeater"],function(e,t,n,r,i,o,s,a){"use strict";function u(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function h(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.Repeat=void 0;var p,d,f,v,m,g,y,b;e.Repeat=(p=(0,r.customAttribute)("repeat"),d=(0,t.inject)(r.BoundViewFactory,r.TargetInstruction,r.ViewSlot,r.ViewResources,n.ObserverLocator,i.RepeatStrategyLocator),p(f=(0,r.templateController)(f=d((v=function(e){function t(t,n,r,i,a,l){var h=c(this,e.call(this,{local:"item",viewsRequireLifecycle:(0,s.viewsRequireLifecycle)(t)}));return u(h,"items",m,h),u(h,"local",g,h),u(h,"key",y,h),u(h,"value",b,h),h.viewFactory=t,h.instruction=n,h.viewSlot=r,h.lookupFunctions=i.lookupFunctions,h.observerLocator=a,h.key="key",h.value="value",h.strategyLocator=l,h.ignoreMutation=!1,h.sourceExpression=(0,o.getItemsSourceExpression)(h.instruction,"repeat.for"),h.isOneTime=(0,o.isOneTime)(h.sourceExpression),h.viewsRequireLifecycle=(0,s.viewsRequireLifecycle)(t),h}return l(t,e),t.prototype.call=function(e,t){this[e](this.items,t)},t.prototype.bind=function(e,t){this.scope={bindingContext:e,overrideContext:t},this.matcherBinding=this._captureAndRemoveMatcherBinding(),this.itemsChanged()},t.prototype.unbind=function(){this.scope=null,this.items=null,this.matcherBinding=null,this.viewSlot.removeAll(!0),this._unsubscribeCollection()},t.prototype._unsubscribeCollection=function(){this.collectionObserver&&(this.collectionObserver.unsubscribe(this.callContext,this),this.collectionObserver=null,this.callContext=null)},t.prototype.itemsChanged=function(){if(this._unsubscribeCollection(),this.scope){var e=this.items;if(this.strategy=this.strategyLocator.getStrategy(e),!this.strategy)throw new Error("Value for '"+this.sourceExpression+"' is non-repeatable");this.isOneTime||this._observeInnerCollection()||this._observeCollection(),this.strategy.instanceChanged(this,e)}},t.prototype._getInnerCollection=function(){var e=(0,o.unwrapExpression)(this.sourceExpression);return e?e.evaluate(this.scope,null):null},t.prototype.handleCollectionMutated=function(e,t){this.collectionObserver&&this.strategy.instanceMutated(this,e,t)},t.prototype.handleInnerCollectionMutated=function(e,t){var n=this;if(this.collectionObserver&&!this.ignoreMutation){this.ignoreMutation=!0;var r=this.sourceExpression.evaluate(this.scope,this.lookupFunctions);this.observerLocator.taskQueue.queueMicroTask(function(){return n.ignoreMutation=!1}),r===this.items?this.itemsChanged():this.items=r}},t.prototype._observeInnerCollection=function(){var e=this._getInnerCollection(),t=this.strategyLocator.getStrategy(e);return!!t&&(this.collectionObserver=t.getCollectionObserver(this.observerLocator,e),!!this.collectionObserver&&(this.callContext="handleInnerCollectionMutated",this.collectionObserver.subscribe(this.callContext,this),!0))},t.prototype._observeCollection=function(){var e=this.items;this.collectionObserver=this.strategy.getCollectionObserver(this.observerLocator,e),this.collectionObserver&&(this.callContext="handleCollectionMutated",this.collectionObserver.subscribe(this.callContext,this))},t.prototype._captureAndRemoveMatcherBinding=function(){if(this.viewFactory.viewFactory)for(var e=this.viewFactory.viewFactory.instructions,t=Object.keys(e),n=0;n0?(m=e.removeViews(h,!0,!e.viewsRequireLifecycle),v=function(){for(var s=0;sr;)i--,e.removeView(i,!0,!e.viewsRequireLifecycle);for(var o=e.local,s=0;s0)return Promise.all(s).then(function(){var o=i._handleAddedSplices(e,n,r);(0,t.updateOverrideContexts)(e.views(),o)});var f=this._handleAddedSplices(e,n,r);(0,t.updateOverrideContexts)(e.views(),f)},e.prototype._handleAddedSplices=function(e,n,r){for(var i=void 0,o=void 0,s=n.length,a=0,u=r.length;ac.index)&&(o=i);l0&&(t-=1);t0?Promise.all(l).then(function(){(0,t.updateOverrideContexts)(e.views(),0)}):(0,t.updateOverrideContexts)(e.views(),0)},e.prototype._getViewIndexByKey=function(e,t){var n=void 0,r=void 0,i=void 0;for(n=0,r=e.viewCount();n0?Promise.all(l).then(function(){(0,t.updateOverrideContexts)(e.views(),0)}):(0,t.updateOverrideContexts)(e.views(),0)},e.prototype._getViewIndexByValue=function(e,t){var n=void 0,r=void 0,i=void 0;for(n=0,r=e.viewCount();n0)for(a>r&&(a=r),i=0,o=a;i)<[^<]*)*<\/script>/gi,"")},e}()}),define("aurelia-templating-resources/replaceable",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Replaceable=void 0;var r,i,o;e.Replaceable=(r=(0,n.customAttribute)("replaceable"),i=(0,t.inject)(n.BoundViewFactory,n.ViewSlot),r(o=(0,n.templateController)(o=i(o=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.view=null}return e.prototype.bind=function(e,t){null===this.view&&(this.view=this.viewFactory.create(),this.viewSlot.add(this.view)),this.view.bind(e,t)},e.prototype.unbind=function(){this.view.unbind()},e}())||o)||o)||o)}),define("aurelia-templating-resources/focus",["exports","aurelia-templating","aurelia-binding","aurelia-dependency-injection","aurelia-task-queue","aurelia-pal"],function(e,t,n,r,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Focus=void 0;var s,a,u;e.Focus=(s=(0,t.customAttribute)("focus",n.bindingMode.twoWay),a=(0,r.inject)(o.DOM.Element,i.TaskQueue),s(u=a(u=function(){function e(e,t){var n=this;this.element=e,this.taskQueue=t,this.isAttached=!1,this.needsApply=!1,this.focusListener=function(e){n.value=!0},this.blurListener=function(e){o.DOM.activeElement!==n.element&&(n.value=!1)}}return e.prototype.valueChanged=function(e){this.isAttached?this._apply():this.needsApply=!0},e.prototype._apply=function(){var e=this;this.value?this.taskQueue.queueMicroTask(function(){e.value&&e.element.focus()}):this.element.blur()},e.prototype.attached=function(){this.isAttached=!0,this.needsApply&&(this.needsApply=!1,this._apply()),this.element.addEventListener("focus",this.focusListener),this.element.addEventListener("blur",this.blurListener)},e.prototype.detached=function(){this.isAttached=!1,this.element.removeEventListener("focus",this.focusListener),this.element.removeEventListener("blur",this.blurListener)},e}())||u)||u)}),define("aurelia-templating-resources/css-resource",["exports","aurelia-templating","aurelia-loader","aurelia-dependency-injection","aurelia-path","aurelia-pal"],function(e,t,n,r,i,o){"use strict";function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){if("string"!=typeof t)throw new Error("Failed loading required CSS file: "+e);return t.replace(l,function(t,n){var r=n.charAt(0);return"'"!==r&&'"'!==r||(n=n.substr(1,n.length-2)),"url('"+(0,i.relativeToFile)(n,e)+"')"})}function c(e){var n;return(0,t.resource)(new h(e))(n=function(e){function t(){return s(this,e.apply(this,arguments))}return a(t,e),t}(p))||n}Object.defineProperty(e,"__esModule",{value:!0}),e._createCSSResource=c;var l=/url\((?!['"]data)([^)]+)\)/gi,h=function(){function e(e){this.address=e,this._scoped=null,this._global=!1,this._alreadyGloballyInjected=!1}return e.prototype.initialize=function(e,t){this._scoped=new t(this)},e.prototype.register=function(e,t){"scoped"===t?e.registerViewEngineHooks(this._scoped):this._global=!0},e.prototype.load=function(e){var t=this;return e.get(n.Loader).loadText(this.address).catch(function(e){return null}).then(function(e){e=u(t.address,e),t._scoped.css=e,t._global&&(t._alreadyGloballyInjected=!0,o.DOM.injectStyles(e))})},e}(),p=function(){function e(e){this.owner=e,this.css=null}return e.prototype.beforeCompile=function(e,t,n){if(n.targetShadowDOM)o.DOM.injectStyles(this.css,e,!0);else if(o.FEATURE.scopedCSS){var r=o.DOM.injectStyles(this.css,e,!0);r.setAttribute("scoped","scoped")}else this.owner._alreadyGloballyInjected||(o.DOM.injectStyles(this.css),this.owner._alreadyGloballyInjected=!0)},e}()}),define("aurelia-templating-resources/attr-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AttrBindingBehavior=void 0;e.AttrBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,n){e.targetObserver=new t.DataAttributeObserver(e.target,e.targetProperty)},e.prototype.unbind=function(e,t){},e}()}),define("aurelia-templating-resources/binding-mode-behaviors",["exports","aurelia-binding","aurelia-metadata"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TwoWayBindingBehavior=e.OneWayBindingBehavior=e.OneTimeBindingBehavior=void 0;var r,i,o,s={bind:function(e,t,n){e.originalMode=e.mode,e.mode=this.mode},unbind:function(e,t){e.mode=e.originalMode,e.originalMode=null}};e.OneTimeBindingBehavior=(0,n.mixin)(s)(r=function(){this.mode=t.bindingMode.oneTime})||r,e.OneWayBindingBehavior=(0,n.mixin)(s)(i=function(){this.mode=t.bindingMode.oneWay})||i,e.TwoWayBindingBehavior=(0,n.mixin)(s)(o=function(){this.mode=t.bindingMode.twoWay})||o}),define("aurelia-templating-resources/throttle-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";function n(e){var t=this,n=this.throttleState,r=+new Date-n.last;if(r>=n.delay)return clearTimeout(n.timeoutId),n.timeoutId=null,n.last=+new Date,void this.throttledMethod(e);n.newValue=e,null===n.timeoutId&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.last=+new Date,t.throttledMethod(n.newValue)},n.delay-r))}Object.defineProperty(e,"__esModule",{value:!0}),e.ThrottleBindingBehavior=void 0;e.ThrottleBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o="updateTarget";e.callSource?o="callSource":e.updateSource&&e.mode===t.bindingMode.twoWay&&(o="updateSource"),e.throttledMethod=e[o],e.throttledMethod.originalName=o,e[o]=n,e.throttleState={delay:i,last:0,timeoutId:null}},e.prototype.unbind=function(e,t){e[e.throttledMethod.originalName]=e.throttledMethod,e.throttledMethod=null,clearTimeout(e.throttleState.timeoutId),e.throttleState=null},e}()}),define("aurelia-templating-resources/debounce-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";function n(e){var t=this,n=this.debounceState;if(n.immediate)return n.immediate=!1,void this.debouncedMethod(e);clearTimeout(n.timeoutId),n.timeoutId=setTimeout(function(){return t.debouncedMethod(e)},n.delay)}Object.defineProperty(e,"__esModule",{value:!0}),e.DebounceBindingBehavior=void 0;e.DebounceBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o="updateTarget";e.callSource?o="callSource":e.updateSource&&e.mode===t.bindingMode.twoWay&&(o="updateSource"),e.debouncedMethod=e[o],e.debouncedMethod.originalName=o,e[o]=n,e.debounceState={delay:i,timeoutId:null,immediate:"updateTarget"===o}},e.prototype.unbind=function(e,t){e[e.debouncedMethod.originalName]=e.debouncedMethod,e.debouncedMethod=null,clearTimeout(e.debounceState.timeoutId),e.debounceState=null},e}()}),define("aurelia-templating-resources/self-binding-behavior",["exports"],function(e){"use strict";function t(e){return e.path&&e.path[0]||e.deepPath&&e.deepPath[0]||e.target}function n(e){var n=t(e);this.target===n&&this.selfEventCallSource(e)}Object.defineProperty(e,"__esModule",{value:!0});e.SelfBindingBehavior=function(){function e(){}return e.prototype.bind=function(e,t){if(!e.callSource||!e.targetEvent)throw new Error("Self binding behavior only supports event.");e.selfEventCallSource=e.callSource,e.callSource=n},e.prototype.unbind=function(e,t){e.callSource=e.selfEventCallSource,e.selfEventCallSource=null},e}()}),define("aurelia-templating-resources/signal-binding-behavior",["exports","./binding-signaler"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignalBindingBehavior=void 0;e.SignalBindingBehavior=function(){function e(e){this.signals=e.signals}return e.inject=function(){return[t.BindingSignaler]},e.prototype.bind=function(e,t){if(!e.updateTarget)throw new Error("Only property bindings and string interpolation bindings can be signaled. Trigger, delegate and call bindings cannot be signaled.");if(3===arguments.length){var n=arguments[2];(this.signals[n]||(this.signals[n]=[])).push(e),e.signalName=n}else{if(!(arguments.length>3))throw new Error("Signal name is required.");for(var r=Array.prototype.slice.call(arguments,2),i=r.length;i--;){var o=r[i];(this.signals[o]||(this.signals[o]=[])).push(e)}e.signalName=r}},e.prototype.unbind=function(e,t){var n=e.signalName;if(e.signalName=null,Array.isArray(n))for(var r=n,i=r.length;i--;){var o=r[i],s=this.signals[o];s.splice(s.indexOf(e),1)}else{var a=this.signals[n];a.splice(a.indexOf(e),1)}},e}()}),define("aurelia-templating-resources/binding-signaler",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingSignaler=void 0;e.BindingSignaler=function(){function e(){this.signals={}}return e.prototype.signal=function(e){var n=this.signals[e];if(n)for(var r=n.length;r--;)n[r].call(t.sourceContext)},e}()}),define("aurelia-templating-resources/update-trigger-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UpdateTriggerBindingBehavior=void 0;var n,r,i="The updateTrigger binding behavior can only be applied to two-way bindings on input/select elements.";e.UpdateTriggerBindingBehavior=(r=n=function(){function e(e){this.eventManager=e}return e.prototype.bind=function(e,n){for(var r=arguments.length,o=Array(r>2?r-2:0),s=2;s");if(e.mode!==t.bindingMode.twoWay)throw new Error(i);var a=e.observerLocator.getObserver(e.target,e.targetProperty);if(!a.handler)throw new Error(i);e.targetObserver=a,a.originalHandler=e.targetObserver.handler;var u=this.eventManager.createElementHandler(o);a.handler=u},e.prototype.unbind=function(e,t){e.targetObserver.handler=e.targetObserver.originalHandler,e.targetObserver.originalHandler=null},e}(),n.inject=[t.EventManager],r)}),define("aurelia-templating-resources/html-resource-plugin",["exports","aurelia-templating","./dynamic-element"],function(e,t,n){"use strict";function r(e){return/([^\/^\?]+)\.html/i.exec(e)[1].toLowerCase()}function i(e){var i=e.container.get(t.ViewEngine),o=e.aurelia.loader;i.addResourcePlugin(".html",{fetch:function(e){return o.loadTemplate(e).then(function(t){var i,o=t.template.getAttribute("bindable"),s=r(e);return o?(o=o.split(",").map(function(e){return e.trim()}),t.template.removeAttribute("bindable")):o=[],i={},i[s]=(0,n._createDynamicElement)(s,e,o),i})}})}Object.defineProperty(e,"__esModule",{value:!0}),e.getElementName=r,e.configure=i}),define("aurelia-templating-resources/dynamic-element",["exports","aurelia-templating"],function(e,t){"use strict";function n(e,n,r){for(var i,o,s,a=(i=(0,t.customElement)(e),o=(0,t.useView)(n),i(s=o(s=function(){function e(){}return e.prototype.bind=function(e){this.$parent=e},e}())||s)||s),u=0,c=r.length;u0)r.loading[e].push(n);else{r.loading[e]=[n];var o=i.default.createScriptRequest(r.getPath(e,t)),s=r.receivers.create(function(t){if(r.receivers.remove(s),r.loading[e]){var n=r.loading[e];delete r.loading[e];for(var i=function(e){e||o.cleanup()},a=0;a>>6)+i(128|63&t):i(224|t>>>12&15)+i(128|t>>>6&63)+i(128|63&t)},l=function(e){return e.replace(/[^\x00-\x7F]/g,c)},h=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[o.charAt(n>>>18),o.charAt(n>>>12&63),t>=2?"=":o.charAt(n>>>6&63),t>=1?"=":o.charAt(63&n)].join("")},p=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,h)}},function(e,t,n){"use strict";var r=n(12),i={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(e){return new r.OneOffTimer(0,e)},method:function(e){for(var t=[],n=1;n0)for(n=0;n0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}};t.__esModule=!0,t.default=i},function(e,t){"use strict";var n=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=function(e){function t(){e.apply(this,arguments)}return n(t,e),t}(Error);t.BadEventName=r;var i=function(e){function t(){e.apply(this,arguments)}return n(t,e),t}(Error);t.RequestTimedOut=i;var o=function(e){function t(){e.apply(this,arguments)}return n(t,e),t}(Error);t.TransportPriorityTooLow=o;var s=function(e){function t(){e.apply(this,arguments)}return n(t,e),t}(Error);t.TransportClosed=s;var a=function(e){function t(){e.apply(this,arguments)}return n(t,e),t}(Error);t.UnsupportedTransport=a;var u=function(e){function t(){e.apply(this,arguments)}return n(t,e),t}(Error);t.UnsupportedStrategy=u},function(e,t,n){"use strict";var r=n(32),i=n(33),o=n(35),s=n(36),a=n(37),u={createStreamingSocket:function(e){return this.createSocket(o.default,e)},createPollingSocket:function(e){return this.createSocket(s.default,e)},createSocket:function(e,t){return new i.default(e,t)},createXHR:function(e,t){return this.createRequest(a.default,e,t)},createRequest:function(e,t,n){return new r.default(e,t,n)}};t.__esModule=!0,t.default=u},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(2),o=n(23),s=function(e){function t(t,n,r){e.call(this),this.hooks=t,this.method=n,this.url=r}return r(t,e),t.prototype.start=function(e){var t=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){t.close()},i.default.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)},t.prototype.close=function(){this.unloader&&(i.default.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},t.prototype.onChunk=function(e,t){for(;;){var n=this.advanceBuffer(t);if(!n)break;this.emit("chunk",{status:e,data:n})} this.isBufferTooLong(t)&&this.emit("buffer_too_long")},t.prototype.advanceBuffer=function(e){var t=e.slice(this.position),n=t.indexOf("\n");return-1!==n?(this.position+=n+1,t.slice(0,n)):null},t.prototype.isBufferTooLong=function(e){return this.position===e.length&&e.length>262144},t}(o.default);t.__esModule=!0,t.default=s},function(e,t,n){"use strict";function r(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}function i(e,t){return e.base+"/"+t+"/xhr_send"}function o(e){return e+(-1===e.indexOf("?")?"?":"&")+"t="+ +new Date+"&n="+p++}function s(e,t){var n=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e);return n[1]+t+n[3]}function a(e){return Math.floor(Math.random()*e)}function u(e){for(var t=[],n=0;n0&&e.onChunk(n.status,n.responseText);break;case 4:n.responseText&&n.responseText.length>0&&e.onChunk(n.status,n.responseText),e.emit("finished",n.status),e.close()}},n},abortRequest:function(e){e.onreadystatechange=null,e.abort()}};t.__esModule=!0,t.default=i},function(e,t,n){"use strict";var r=n(9),i=n(11),o=n(39),s=function(){function e(e,t,n){this.key=e,this.session=t,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}return e.prototype.log=function(e,t){e<=this.options.level&&(this.events.push(r.extend({},t,{timestamp:i.default.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},e.prototype.error=function(e){this.log(o.default.ERROR,e)},e.prototype.info=function(e){this.log(o.default.INFO,e)},e.prototype.debug=function(e){this.log(o.default.DEBUG,e)},e.prototype.isEmpty=function(){return 0===this.events.length},e.prototype.send=function(e,t){var n=this,i=r.extend({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(i,function(e,r){e||n.sent++,t&&t(e,r)}),!0},e.prototype.generateUniqueID=function(){return++this.uniqueID},e}();t.__esModule=!0,t.default=s},function(e,t){"use strict";var n;!function(e){e[e.ERROR=3]="ERROR",e[e.INFO=6]="INFO",e[e.DEBUG=7]="DEBUG"}(n||(n={})),t.__esModule=!0,t.default=n},function(e,t,n){"use strict";function r(e){return function(t){return[e.apply(this,arguments),t]}}function i(e){return"string"==typeof e&&":"===e.charAt(0)}function o(e,t){return t[e.slice(1)]}function s(e,t){if(0===e.length)return[[],t];var n=c(e[0],t),r=s(e.slice(1),n[1]);return[[n[0]].concat(r[0]),r[1]]}function a(e,t){if(!i(e))return[e,t];var n=o(e,t);if(void 0===n)throw"Undefined symbol "+e;return[n,t]}function u(e,t){if(i(e[0])){var n=o(e[0],t);if(e.length>1){if("function"!=typeof n)throw"Calling non-function "+e[0];var r=[l.extend({},t)].concat(l.map(e.slice(1),function(e){return c(e,l.extend({},t))[0]}));return n.apply(this,r)}return[n,t]}return s(e,t)}function c(e,t){return"string"==typeof e?a(e,t):"object"==typeof e&&e instanceof Array&&e.length>0?u(e,t):[e,t]}var l=n(9),h=n(11),p=n(41),d=n(30),f=n(55),v=n(56),m=n(57),g=n(58),y=n(59),b=n(60),_=n(61),w=n(2),x=w.default.Transports;t.build=function(e,t){return c(e,l.extend({},C,t))[1].strategy};var k={isSupported:function(){return!1},connect:function(e,t){var n=h.default.defer(function(){t(new d.UnsupportedStrategy)});return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}},C={extend:function(e,t,n){return[l.extend({},t,n),e]},def:function(e,t,n){if(void 0!==e[t])throw"Redefining symbol "+t;return e[t]=n,[void 0,e]},def_transport:function(e,t,n,r,i,o){var s=x[n];if(!s)throw new d.UnsupportedTransport(n);var a;a=e.enabledTransports&&-1===l.arrayIndexOf(e.enabledTransports,t)||e.disabledTransports&&-1!==l.arrayIndexOf(e.disabledTransports,t)?k:new f.default(t,r,o?o.getAssistant(s):s,l.extend({key:e.key,encrypted:e.encrypted,timeline:e.timeline,ignoreNullOrigin:e.ignoreNullOrigin},i));var u=e.def(e,t,a)[1];return u.Transports=e.Transports||{},u.Transports[t]=a,[void 0,u]},transport_manager:r(function(e,t){return new p.default(t)}),sequential:r(function(e,t){var n=Array.prototype.slice.call(arguments,2);return new v.default(n,t)}),cached:r(function(e,t,n){return new g.default(n,e.Transports,{ttl:t,timeline:e.timeline,encrypted:e.encrypted})}),first_connected:r(function(e,t){return new _.default(t)}),best_connected_ever:r(function(){var e=Array.prototype.slice.call(arguments,1);return new m.default(e)}),delayed:r(function(e,t,n){return new y.default(n,{delay:t})}),if:r(function(e,t,n,r){return new b.default(t,n,r)}),is_supported:r(function(e,t){return function(){return t.isSupported()}})}},function(e,t,n){"use strict";var r=n(42),i=function(){function e(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}return e.prototype.getAssistant=function(e){return r.default.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},e.prototype.isAlive=function(){return this.livesLeft>0},e.prototype.reportDeath=function(){this.livesLeft-=1},e}();t.__esModule=!0,t.default=i},function(e,t,n){"use strict";var r=n(43),i=n(44),o=n(47),s=n(48),a=n(49),u=n(50),c=n(51),l=n(53),h=n(54),p={createChannels:function(){return new h.default},createConnectionManager:function(e,t){return new l.default(e,t)},createChannel:function(e,t){return new c.default(e,t)},createPrivateChannel:function(e,t){return new u.default(e,t)},createPresenceChannel:function(e,t){return new a.default(e,t)},createTimelineSender:function(e,t){return new s.default(e,t)},createAuthorizer:function(e,t){return t.authorizer?t.authorizer(e,t):new o.default(e,t)},createHandshake:function(e,t){return new i.default(e,t)},createAssistantToTheTransportManager:function(e,t,n){return new r.default(e,t,n)}};t.__esModule=!0,t.default=p},function(e,t,n){"use strict";var r=n(11),i=n(9),o=function(){function e(e,t,n){this.manager=e,this.transport=t,this.minPingDelay=n.minPingDelay,this.maxPingDelay=n.maxPingDelay,this.pingDelay=void 0}return e.prototype.createConnection=function(e,t,n,o){var s=this;o=i.extend({},o,{activityTimeout:this.pingDelay});var a=this.transport.createConnection(e,t,n,o),u=null,c=function(){a.unbind("open",c),a.bind("closed",l),u=r.default.now()},l=function(e){if(a.unbind("closed",l),1002===e.code||1003===e.code)s.manager.reportDeath();else if(!e.wasClean&&u){var t=r.default.now()-u;t<2*s.maxPingDelay&&(s.manager.reportDeath(),s.pingDelay=Math.max(t/2,s.minPingDelay))}};return a.bind("open",c),a},e.prototype.isSupported=function(e){return this.manager.isAlive()&&this.transport.isSupported(e)},e}();t.__esModule=!0,t.default=o},function(e,t,n){"use strict";var r=n(9),i=n(45),o=n(46),s=function(){function e(e,t){this.transport=e,this.callback=t,this.bindListeners()}return e.prototype.close=function(){this.unbindListeners(),this.transport.close()},e.prototype.bindListeners=function(){var e=this;this.onMessage=function(t){e.unbindListeners();var n;try{n=i.processHandshake(t)}catch(t){return e.finish("error",{error:t}),void e.transport.close()}"connected"===n.action?e.finish("connected",{connection:new o.default(n.id,e.transport),activityTimeout:n.activityTimeout}):(e.finish(n.action,{error:n.error}),e.transport.close())},this.onClosed=function(t){e.unbindListeners();var n=i.getCloseAction(t)||"backoff",r=i.getCloseError(t);e.finish(n,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},e.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},e.prototype.finish=function(e,t){this.callback(r.extend({transport:this.transport,action:e},t))},e}();t.__esModule=!0,t.default=s},function(e,t){"use strict";t.decodeMessage=function(e){try{var t=JSON.parse(e.data);if("string"==typeof t.data)try{t.data=JSON.parse(t.data)}catch(e){if(!(e instanceof SyntaxError))throw e}return t}catch(t){throw{type:"MessageParseError",error:t,data:e.data}}},t.encodeMessage=function(e){return JSON.stringify(e)},t.processHandshake=function(e){if(e=t.decodeMessage(e),"pusher:connection_established"===e.event){if(!e.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:e.data.socket_id,activityTimeout:1e3*e.data.activity_timeout}}if("pusher:error"===e.event)return{action:this.getCloseAction(e.data),error:this.getCloseError(e.data)};throw"Invalid handshake"},t.getCloseAction=function(e){return e.code<4e3?e.code>=1002&&e.code<=1004?"backoff":null:4e3===e.code?"ssl_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},t.getCloseError=function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(9),o=n(23),s=n(45),a=n(8),u=function(e){function t(t,n){e.call(this),this.id=t,this.transport=n,this.activityTimeout=n.activityTimeout,this.bindListeners()}return r(t,e),t.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},t.prototype.send=function(e){return this.transport.send(e)},t.prototype.send_event=function(e,t,n){var r={event:e,data:t};return n&&(r.channel=n),a.default.debug("Event sent",r),this.send(s.encodeMessage(r))},t.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},t.prototype.close=function(){this.transport.close()},t.prototype.bindListeners=function(){var e=this,t={message:function(t){var n;try{n=s.decodeMessage(t)}catch(n){e.emit("error",{type:"MessageParseError",error:n,data:t.data})}if(void 0!==n){switch(a.default.debug("Event recd",n),n.event){case"pusher:error":e.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":e.emit("ping");break;case"pusher:pong":e.emit("pong")}e.emit("message",n)}},activity:function(){e.emit("activity")},error:function(t){e.emit("error",{type:"WebSocketError",error:t})},closed:function(t){n(),t&&t.code&&e.handleCloseEvent(t),e.transport=null,e.emit("closed")}},n=function(){i.objectApply(t,function(t,n){e.transport.unbind(n,t)})};i.objectApply(t,function(t,n){e.transport.bind(n,t)})},t.prototype.handleCloseEvent=function(e){var t=s.getCloseAction(e),n=s.getCloseError(e);n&&this.emit("error",n),t&&this.emit(t)},t}(o.default);t.__esModule=!0,t.default=u},function(e,t,n){"use strict";var r=n(2),i=function(){function e(e,t){this.channel=e;var n=t.authTransport;if(void 0===r.default.getAuthorizers()[n])throw"'"+n+"' is not a recognized auth transport";this.type=n,this.options=t,this.authOptions=(t||{}).auth||{}}return e.prototype.composeQuery=function(e){var t="socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)t+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return t},e.prototype.authorize=function(t,n){return e.authorizers=e.authorizers||r.default.getAuthorizers(),e.authorizers[this.type].call(this,r.default,t,n)},e}();t.__esModule=!0,t.default=i},function(e,t,n){"use strict";var r=n(2),i=function(){function e(e,t){this.timeline=e,this.options=t||{}}return e.prototype.send=function(e,t){this.timeline.isEmpty()||this.timeline.send(r.default.TimelineTransport.getAgent(this,e),t)},e}();t.__esModule=!0,t.default=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(50),o=n(8),s=n(52),a=function(e){function t(t,n){e.call(this,t,n),this.members=new s.default}return r(t,e),t.prototype.authorize=function(t,n){var r=this;e.prototype.authorize.call(this,t,function(e,t){if(!e){if(void 0===t.channel_data)return o.default.warn("Invalid auth response for channel '"+r.name+"', expected 'channel_data' field"),void n("Invalid auth response");var i=JSON.parse(t.channel_data);r.members.setMyID(i.user_id)}n(e,t)})},t.prototype.handleEvent=function(e,t){switch(e){case"pusher_internal:subscription_succeeded":this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(t),this.emit("pusher:subscription_succeeded",this.members));break;case"pusher_internal:member_added":var n=this.members.addMember(t);this.emit("pusher:member_added",n);break;case"pusher_internal:member_removed":var r=this.members.removeMember(t);r&&this.emit("pusher:member_removed",r);break;default:i.default.prototype.handleEvent.call(this,e,t)}},t.prototype.disconnect=function(){this.members.reset(),e.prototype.disconnect.call(this)},t}(i.default);t.__esModule=!0,t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(42),o=n(51),s=function(e){function t(){e.apply(this,arguments)}return r(t,e),t.prototype.authorize=function(e,t){return i.default.createAuthorizer(this,this.pusher.config).authorize(e,t)},t}(o.default);t.__esModule=!0,t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(23),o=n(30),s=n(8),a=function(e){function t(t,n){e.call(this,function(e,n){s.default.debug("No callbacks on "+t+" for "+e)}),this.name=t,this.pusher=n,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}return r(t,e),t.prototype.authorize=function(e,t){return t(!1,{})},t.prototype.trigger=function(e,t){if(0!==e.indexOf("client-"))throw new o.BadEventName("Event '"+e+"' does not start with 'client-'");return this.pusher.send_event(e,t,this.name)},t.prototype.disconnect=function(){this.subscribed=!1},t.prototype.handleEvent=function(e,t){0===e.indexOf("pusher_internal:")?"pusher_internal:subscription_succeeded"===e&&(this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",t)):this.emit(e,t)},t.prototype.subscribe=function(){var e=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,function(t,n){t?e.handleEvent("pusher:subscription_error",n):e.pusher.send_event("pusher:subscribe",{auth:n.auth,channel_data:n.channel_data,channel:e.name})}))},t.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},t.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},t.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},t}(i.default);t.__esModule=!0,t.default=a},function(e,t,n){"use strict";var r=n(9),i=function(){function e(){this.reset()}return e.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null},e.prototype.each=function(e){var t=this;r.objectApply(this.members,function(n,r){e(t.get(r))})},e.prototype.setMyID=function(e){this.myID=e},e.prototype.onSubscription=function(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)},e.prototype.addMember=function(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)},e.prototype.removeMember=function(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t},e.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},e}();t.__esModule=!0,t.default=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(23),o=n(12),s=n(8),a=n(9),u=n(2),c=function(e){function t(t,n){var r=this;e.call(this),this.key=t,this.options=n||{},this.state="initialized",this.connection=null,this.encrypted=!!n.encrypted,this.timeline=this.options.timeline,this.connectionCallbacks=this.buildConnectionCallbacks(),this.errorCallbacks=this.buildErrorCallbacks(),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var i=u.default.getNetwork();i.bind("online",function(){r.timeline.info({netinfo:"online"}),"connecting"!==r.state&&"unavailable"!==r.state||r.retryIn(0)}),i.bind("offline",function(){r.timeline.info({netinfo:"offline"}),r.connection&&r.sendActivityCheck()}),this.updateStrategy()}return r(t,e),t.prototype.connect=function(){if(!this.connection&&!this.runner){if(!this.strategy.isSupported())return void this.updateState("failed");this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}},t.prototype.send=function(e){return!!this.connection&&this.connection.send(e)},t.prototype.send_event=function(e,t,n){return!!this.connection&&this.connection.send_event(e,t,n)},t.prototype.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},t.prototype.isEncrypted=function(){return this.encrypted},t.prototype.startConnecting=function(){var e=this,t=function(n,r){n?e.runner=e.strategy.connect(0,t):"error"===r.action?(e.emit("error",{type:"HandshakeError",error:r.error}),e.timeline.error({handshakeError:r.error})):(e.abortConnecting(),e.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,t)},t.prototype.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},t.prototype.disconnectInternally=function(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){this.abandonConnection().close()}},t.prototype.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,encrypted:this.encrypted})},t.prototype.retryIn=function(e){var t=this;this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new o.OneOffTimer(e||0,function(){t.disconnectInternally(),t.connect()})},t.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},t.prototype.setUnavailableTimer=function(){var e=this;this.unavailableTimer=new o.OneOffTimer(this.options.unavailableTimeout,function(){e.updateState("unavailable")})},t.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},t.prototype.sendActivityCheck=function(){var e=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new o.OneOffTimer(this.options.pongTimeout,function(){e.timeline.error({pong_timed_out:e.options.pongTimeout}),e.retryIn(0)})},t.prototype.resetActivityCheck=function(){var e=this;this.stopActivityCheck(),this.connection.handlesActivityChecks()||(this.activityTimer=new o.OneOffTimer(this.activityTimeout,function(){e.sendActivityCheck()}))},t.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},t.prototype.buildConnectionCallbacks=function(){var e=this;return{message:function(t){e.resetActivityCheck(),e.emit("message",t)},ping:function(){e.send_event("pusher:pong",{})},activity:function(){e.resetActivityCheck()},error:function(t){e.emit("error",{type:"WebSocketError",error:t})},closed:function(){e.abandonConnection(),e.shouldRetry()&&e.retryIn(1e3)}}},t.prototype.buildHandshakeCallbacks=function(e){var t=this;return a.extend({},e,{connected:function(e){t.activityTimeout=Math.min(t.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),t.clearUnavailableTimer(),t.setConnection(e.connection),t.socket_id=t.connection.id,t.updateState("connected",{socket_id:t.socket_id})}})},t.prototype.buildErrorCallbacks=function(){var e=this,t=function(t){return function(n){n.error&&e.emit("error",{type:"WebSocketError",error:n.error}),t(n)}};return{ssl_only:t(function(){e.encrypted=!0,e.updateStrategy(),e.retryIn(0)}),refused:t(function(){e.disconnect()}),backoff:t(function(){e.retryIn(1e3)}),retry:t(function(){e.retryIn(0)})}},t.prototype.setConnection=function(e){this.connection=e;for(var t in this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()},t.prototype.abandonConnection=function(){if(this.connection){this.stopActivityCheck();for(var e in this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}},t.prototype.updateState=function(e,t){var n=this.state;if(this.state=e,n!==e){var r=e;"connected"===r&&(r+=" with new socket ID "+t.socket_id),s.default.debug("State changed",n+" -> "+r),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:n,current:e}),this.emit(e,t)}},t.prototype.shouldRetry=function(){return"connecting"===this.state||"connected"===this.state},t}(i.default);t.__esModule=!0,t.default=c},function(e,t,n){"use strict";function r(e,t){return 0===e.indexOf("private-")?o.default.createPrivateChannel(e,t):0===e.indexOf("presence-")?o.default.createPresenceChannel(e,t):o.default.createChannel(e,t)}var i=n(9),o=n(42),s=function(){function e(){this.channels={}}return e.prototype.add=function(e,t){return this.channels[e]||(this.channels[e]=r(e,t)),this.channels[e]},e.prototype.all=function(){return i.values(this.channels)},e.prototype.find=function(e){return this.channels[e]},e.prototype.remove=function(e){var t=this.channels[e];return delete this.channels[e],t},e.prototype.disconnect=function(){i.objectApply(this.channels,function(e){e.disconnect()})},e}();t.__esModule=!0,t.default=s},function(e,t,n){"use strict";function r(e,t){return o.default.defer(function(){t(e)}),{abort:function(){},forceMinPriority:function(){}}}var i=n(42),o=n(11),s=n(30),a=n(9),u=function(){function e(e,t,n,r){this.name=e,this.priority=t,this.transport=n,this.options=r||{}}return e.prototype.isSupported=function(){return this.transport.isSupported({encrypted:this.options.encrypted})},e.prototype.connect=function(e,t){var n=this;if(!this.isSupported())return r(new s.UnsupportedStrategy,t);if(this.priority0&&(i=new o.OneOffTimer(n.timeout,function(){s.abort(),r(!0)})),s=e.connect(t,function(e,t){e&&i&&i.isRunning()&&!n.failFast||(i&&i.ensureAborted(),r(e,t))}),{abort:function(){i&&i.ensureAborted(),s.abort()},forceMinPriority:function(e){s.forceMinPriority(e)}}},e}();t.__esModule=!0,t.default=s},function(e,t,n){"use strict";function r(e,t,n){var r=s.map(e,function(e,r,i,o){return e.connect(t,n(r,o))});return{abort:function(){s.apply(r,o)},forceMinPriority:function(e){s.apply(r,function(t){t.forceMinPriority(e)})}}}function i(e){return s.all(e,function(e){return Boolean(e.error)})}function o(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}var s=n(9),a=n(11),u=function(){function e(e){this.strategies=e}return e.prototype.isSupported=function(){return s.any(this.strategies,a.default.method("isSupported"))},e.prototype.connect=function(e,t){return r(this.strategies,e,function(e,n){return function(r,o){return n[e].error=r,r?void(i(n)&&t(!0)):(s.apply(n,function(e){e.forceMinPriority(o.transport.priority)}),void t(null,o))}})},e}();t.__esModule=!0,t.default=u},function(e,t,n){"use strict";function r(e){return"pusherTransport"+(e?"Encrypted":"Unencrypted")}function i(e){var t=u.default.getLocalStorage();if(t)try{var n=t[r(e)];if(n)return JSON.parse(n)}catch(t){s(e)}return null}function o(e,t,n){var i=u.default.getLocalStorage();if(i)try{i[r(e)]=l.safeJSONStringify({timestamp:a.default.now(),transport:t,latency:n})}catch(e){}}function s(e){var t=u.default.getLocalStorage();if(t)try{delete t[r(e)]}catch(e){}}var a=n(11),u=n(2),c=n(56),l=n(9),h=function(){function e(e,t,n){this.strategy=e,this.transports=t,this.ttl=n.ttl||18e5,this.encrypted=n.encrypted,this.timeline=n.timeline}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n=this.encrypted,r=i(n),u=[this.strategy];if(r&&r.timestamp+this.ttl>=a.default.now()){var l=this.transports[r.transport];l&&(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),u.push(new c.default([l],{timeout:2*r.latency+1e3,failFast:!0})))}var h=a.default.now(),p=u.pop().connect(e,function r(i,c){i?(s(n),u.length>0?(h=a.default.now(),p=u.pop().connect(e,r)):t(i)):(o(n,c.transport.name,a.default.now()-h),t(null,c))});return{abort:function(){p.abort()},forceMinPriority:function(t){e=t,p&&p.forceMinPriority(t)}}},e}();t.__esModule=!0,t.default=h},function(e,t,n){"use strict";var r=n(12),i=function(){function e(e,t){var n=t.delay;this.strategy=e,this.options={delay:n}}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n,i=this.strategy,o=new r.OneOffTimer(this.options.delay,function(){n=i.connect(e,t)});return{abort:function(){o.ensureAborted(),n&&n.abort()},forceMinPriority:function(t){e=t,n&&n.forceMinPriority(t)}}},e}();t.__esModule=!0,t.default=i},function(e,t){"use strict";var n=function(){function e(e,t,n){this.test=e,this.trueBranch=t,this.falseBranch=n}return e.prototype.isSupported=function(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()},e.prototype.connect=function(e,t){return(this.test()?this.trueBranch:this.falseBranch).connect(e,t)},e}();t.__esModule=!0,t.default=n},function(e,t){"use strict";var n=function(){function e(e){this.strategy=e}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n=this.strategy.connect(e,function(e,r){r&&n.abort(),t(e,r)});return n},e}();t.__esModule=!0,t.default=n},function(e,t,n){"use strict";var r=n(5);t.getGlobalConfig=function(){return{wsHost:r.default.host,wsPort:r.default.ws_port,wssPort:r.default.wss_port,httpHost:r.default.sockjs_host,httpPort:r.default.sockjs_http_port,httpsPort:r.default.sockjs_https_port,httpPath:r.default.sockjs_path,statsHost:r.default.stats_host,authEndpoint:r.default.channel_auth_endpoint,authTransport:r.default.channel_auth_transport,activity_timeout:r.default.activity_timeout,pong_timeout:r.default.pong_timeout,unavailable_timeout:r.default.unavailable_timeout}},t.getClusterConfig=function(e){return{wsHost:"ws-"+e+".pusher.com",httpHost:"sockjs-"+e+".pusher.com"}}}])}),define("pusher-js",["pusher-js/pusher.min"],function(e){return e}),define("aurelia-dialog/aurelia-dialog",["exports","./ai-dialog","./ai-dialog-header","./ai-dialog-body","./ai-dialog-footer","./attach-focus","./dialog-configuration","./dialog-service","./dialog-controller","./dialog-result"],function(e,t,n,r,i,o,s,a,u,c){"use strict";function l(e,t){var n=new s.DialogConfiguration(e);"function"==typeof t?t(n):n.useDefaults(),n._apply()}Object.defineProperty(e,"__esModule",{value:!0}), e.DialogResult=e.DialogController=e.DialogService=e.DialogConfiguration=e.AttachFocus=e.AiDialogFooter=e.AiDialogBody=e.AiDialogHeader=e.AiDialog=void 0,Object.defineProperty(e,"AiDialog",{enumerable:!0,get:function(){return t.AiDialog}}),Object.defineProperty(e,"AiDialogHeader",{enumerable:!0,get:function(){return n.AiDialogHeader}}),Object.defineProperty(e,"AiDialogBody",{enumerable:!0,get:function(){return r.AiDialogBody}}),Object.defineProperty(e,"AiDialogFooter",{enumerable:!0,get:function(){return i.AiDialogFooter}}),Object.defineProperty(e,"AttachFocus",{enumerable:!0,get:function(){return o.AttachFocus}}),e.configure=l,Object.defineProperty(e,"DialogConfiguration",{enumerable:!0,get:function(){return s.DialogConfiguration}}),Object.defineProperty(e,"DialogService",{enumerable:!0,get:function(){return a.DialogService}}),Object.defineProperty(e,"DialogController",{enumerable:!0,get:function(){return u.DialogController}}),Object.defineProperty(e,"DialogResult",{enumerable:!0,get:function(){return c.DialogResult}})}),define("aurelia-dialog",["aurelia-dialog/aurelia-dialog"],function(e){return e}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("markdown-it/markdown-it.min",[],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.markdownit=e()}}(function(){var e;return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",o=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)"),s=new RegExp("^(?:"+r+"|"+i+")");t.exports.HTML_TAG_RE=o,t.exports.HTML_OPEN_CLOSE_TAG_RE=s},{}],4:[function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object String]"===r(e)}function o(e,t){return w.call(e,t)}function s(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function a(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function u(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function c(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function l(e,t){var n=0;return o(S,t)?S[t]:35===t.charCodeAt(0)&&C.test(t)&&(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),u(n))?c(n):e}function h(e){return e.indexOf("\\")<0?e:e.replace(x,"$1")}function p(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(k,function(e,t,n){return t||l(e,n)})}function d(e){return E[e]}function f(e){return O.test(e)?e.replace(/[&<>"]/g,d):e}function v(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function m(e){switch(e){case 9:case 32:return!0}return!1}function g(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function y(e){return A.test(e)}function b(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function _(e){return e.trim().replace(/\s+/g," ").toUpperCase()}var w=Object.prototype.hasOwnProperty,x=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,k=new RegExp(x.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),C=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,S=e("./entities"),O=/[&<>"]/,E={"&":"&","<":"<",">":">",'"':"""},A=e("uc.micro/categories/P/regex");n.lib={},n.lib.mdurl=e("mdurl"),n.lib.ucmicro=e("uc.micro"),n.assign=s,n.isString=i,n.has=o,n.unescapeMd=h,n.unescapeAll=p,n.isValidEntityCode=u,n.fromCodePoint=c,n.escapeHtml=f,n.arrayReplaceAt=a,n.isSpace=m,n.isWhiteSpace=g,n.isMdAsciiPunct=b,n.isPunctChar=y,n.escapeRE=v,n.normalizeReference=_},{"./entities":1,mdurl:58,"uc.micro":65,"uc.micro/categories/P/regex":63}],5:[function(e,t,n){"use strict";n.parseLinkLabel=e("./parse_link_label"),n.parseLinkDestination=e("./parse_link_destination"),n.parseLinkTitle=e("./parse_link_title")},{"./parse_link_destination":6,"./parse_link_label":7,"./parse_link_title":8}],6:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace,i=e("../common/utils").unescapeAll;t.exports=function(e,t,n){var o,s,a=t,u={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t1)break;if(41===o&&--s<0)break;t++}return a===t?u:(u.str=i(e.slice(a,t)),u.lines=0,u.pos=t,u.ok=!0,u)}},{"../common/utils":4}],7:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r,i,o,s,a=-1,u=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos=n)return u;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return u;for(t++,40===o&&(o=41);t=0))try{t.hostname=v.toASCII(t.hostname)}catch(e){}return f.encode(f.format(t))}function o(e){var t=f.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=v.toUnicode(t.hostname)}catch(e){}return f.decode(f.format(t))}function s(e,t){if(!(this instanceof s))return new s(e,t);t||a.isString(e)||(t=e||{},e="default"),this.inline=new p,this.block=new h,this.core=new l,this.renderer=new c,this.linkify=new d,this.validateLink=r,this.normalizeLink=i,this.normalizeLinkText=o,this.utils=a,this.helpers=a.assign({},u),this.options={},this.configure(e),t&&this.set(t)}var a=e("./common/utils"),u=e("./helpers"),c=e("./renderer"),l=e("./parser_core"),h=e("./parser_block"),p=e("./parser_inline"),d=e("linkify-it"),f=e("mdurl"),v=e("punycode"),m={default:e("./presets/default"),zero:e("./presets/zero"),commonmark:e("./presets/commonmark")},g=/^(vbscript|javascript|file|data):/,y=/^data:image\/(gif|png|jpeg|webp);/,b=["http:","https:","mailto:"];s.prototype.set=function(e){return a.assign(this.options,e),this},s.prototype.configure=function(e){var t,n=this;if(a.isString(e)&&(t=e,!(e=m[t])))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},s.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},s.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},s.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},s.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},s.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},s.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},s.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},t.exports=s},{"./common/utils":4,"./helpers":5,"./parser_block":10,"./parser_core":11,"./parser_inline":12,"./presets/commonmark":13,"./presets/default":14,"./presets/zero":15,"./renderer":16,"linkify-it":53,mdurl:58,punycode:60}],10:[function(e,t,n){"use strict";function r(){this.ruler=new i;for(var e=0;e=n))&&!(e.sCount[s]=u){e.line=n;break}for(r=0;r=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},r.prototype.parse=function(e,t,n,r){var i,o,s,a=new this.State(e,t,n,r);for(this.tokenize(a),o=this.ruler2.getRules(""),s=o.length,i=0;i"+s(e[t].content)+""},a.code_block=function(e,t,n,r,i){var o=e[t];return""+s(e[t].content)+"\n"},a.fence=function(e,t,n,r,i){var a,u,c,l,h=e[t],p=h.info?o(h.info).trim():"",d="";return p&&(d=p.split(/\s+/g)[0]),a=n.highlight?n.highlight(h.content,d)||s(h.content):s(h.content),0===a.indexOf(""+a+"\n"):"
"+a+"
\n"},a.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},a.text=function(e,t){return s(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},r.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")},r.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,s=0,a=e.length;s=4)return!1;if(62!==e.src.charCodeAt(O++))return!1;if(i)return!0;for(u=f=e.sCount[t]+O-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(O)?(O++,u++,f++,o=!1,w=!0):9===e.src.charCodeAt(O)?(w=!0,(e.bsCount[t]+f)%4==3?(O++,u++,f++,o=!1):o=!0):w=!1,v=[e.bMarks[t]],e.bMarks[t]=O;O=E,b=[e.sCount[t]],e.sCount[t]=f-u,_=[e.tShift[t]],e.tShift[t]=O-e.bMarks[t],k=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",d=t+1;d=E));d++)if(62!==e.src.charCodeAt(O++)||c){if(h)break;for(x=!1,a=0,l=k.length;a=E,m.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(w?1:0),b.push(e.sCount[d]),e.sCount[d]=f-u,_.push(e.tShift[d]),e.tShift[d]=O-e.bMarks[d]}for(g=e.blkIndent,e.blkIndent=0,C=e.push("blockquote_open","blockquote",1),C.markup=">",C.map=p=[t,0],e.md.block.tokenize(e,t,d),C=e.push("blockquote_close","blockquote",-1),C.markup=">",e.lineMax=S,e.parentType=y,p[1]=e.line,a=0;a<_.length;a++)e.bMarks[a+t]=v[a],e.tShift[a+t]=_[a],e.sCount[a+t]=b[a],e.bsCount[a+t]=m[a];return e.blkIndent=g,!0}},{"../common/utils":4}],19:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r=4))break;r++,i=r}return e.line=i,o=e.push("code_block","code",0),o.content=e.getLines(t,i,4+e.blkIndent,!0),o.map=[t,e.line],!0}},{}],20:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i,o,s,a,u,c,l,h=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(u=p,p=e.skipChars(p,i),(o=p-u)<3)return!1;if(l=e.src.slice(u,p),s=e.src.slice(p,d),s.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(a=t;!(++a>=n||(p=u=e.bMarks[a]+e.tShift[a],d=e.eMarks[a],p=4||(p=e.skipChars(p,i))-u=4)return!1;if(35!==(o=e.src.charCodeAt(c))||c>=l)return!1;for(s=1,o=e.src.charCodeAt(++c);35===o&&c6||cc&&r(e.src.charCodeAt(a-1))&&(l=a),e.line=t+1,u=e.push("heading_open","h"+String(s),1),u.markup="########".slice(0,s),u.map=[t,e.line],u=e.push("inline","",0),u.content=e.src.slice(c,l).trim(),u.map=[t,e.line],u.children=[],u=e.push("heading_close","h"+String(s),-1),u.markup="########".slice(0,s),0))}},{"../common/utils":4}],22:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace;t.exports=function(e,t,n,i){var o,s,a,u,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(c++))&&45!==o&&95!==o)return!1;for(s=1;c|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];t.exports=function(e,t,n,r){var i,s,a,u,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(u=e.src.slice(c,l),i=0;i=4)return!1;for(p=e.parentType,e.parentType="paragraph";d3)){if(e.sCount[d]>=e.blkIndent&&(u=e.bMarks[d]+e.tShift[d],c=e.eMarks[d],u=c))){l=61===h?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,s=f.length;o=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i=4)return!1;if(a&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(F=!0),(T=i(e,t))>=0){if(f=!0,R=e.bMarks[t]+e.tShift[t],_=Number(e.src.substr(R,T-R-1)),F&&1!==_)return!1}else{if(!((T=r(e,t))>=0))return!1;f=!1}if(F&&e.skipSpaces(T)>=e.eMarks[t])return!1;if(b=e.src.charCodeAt(T-1),a)return!0;for(y=e.tokens.length,f?(L=e.push("ordered_list_open","ol",1),1!==_&&(L.attrs=[["start",_]])):L=e.push("bullet_list_open","ul",1),L.map=g=[t,0],L.markup=String.fromCharCode(b),x=t,P=!1,D=e.md.block.ruler.getRules("list"),O=e.parentType,e.parentType="list";x=w?1:k-d,p>4&&(p=1),h=d+p,L=e.push("list_item_open","li",1),L.markup=String.fromCharCode(b),L.map=v=[t,0],C=e.blkIndent,A=e.tight,E=e.tShift[t],S=e.sCount[t],e.blkIndent=h,e.tight=!0,e.tShift[t]=c-e.bMarks[t],e.sCount[t]=k,c>=w&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!P||(N=!1),P=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=C,e.tShift[t]=E,e.sCount[t]=S,e.tight=A,L=e.push("list_item_close","li",-1),L.markup=String.fromCharCode(b),x=t=e.line,v[1]=x,c=e.bMarks[t],x>=n)break;if(e.sCount[x]3||e.sCount[u]<0)){for(r=!1,i=0,o=c.length;i=4)return!1;if(91!==e.src.charCodeAt(k))return!1;for(;++k3||e.sCount[S]<0)){for(b=!1,h=0,p=_.length;h0&&this.level++,this.tokens.push(r),r},r.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},r.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!o(this.src.charCodeAt(--e)))return e+1;return e},r.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},r.prototype.getLines=function(e,t,n,r){var i,s,a,u,c,l,h,p=e;if(e>=t)return"";for(l=new Array(t-e),i=0;pn?new Array(s-n+1).join(" ")+this.src.slice(u,c):this.src.slice(u,c)}return l.join("")},r.prototype.Token=i,t.exports=r},{"../common/utils":4,"../token":51}],29:[function(e,t,n){"use strict";function r(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function i(e){var t,n=[],r=0,i=e.length,o=0,s=0,a=!1,u=0;for(t=e.charCodeAt(r);rn)return!1;if(h=t+1,e.sCount[h]=4)return!1;if((c=e.bMarks[h]+e.tShift[h])>=e.eMarks[h])return!1;if(124!==(a=e.src.charCodeAt(c++))&&45!==a&&58!==a)return!1;for(;c=4)return!1;if(p=i(u.replace(/^\||\|$/g,"")),(d=p.length)>v.length)return!1;if(s)return!0;for(f=e.push("table_open","table",1),f.map=g=[t,0],f=e.push("thead_open","thead",1),f.map=[t,t+1],f=e.push("tr_open","tr",1),f.map=[t,t+1],l=0;l=4);h++){for(p=i(u.replace(/^\||\|$/g,"")),f=e.push("tr_open","tr",1),l=0;l\s]/i.test(e)}function i(e){return/^<\/a\s*>/i.test(e)}var o=e("../common/utils").arrayReplaceAt;t.exports=function(e){var t,n,s,a,u,c,l,h,p,d,f,v,m,g,y,b,_,w=e.tokens;if(e.md.options.linkify)for(n=0,s=w.length;n=0;t--)if(c=a[t],"link_close"!==c.type){if("html_inline"===c.type&&(r(c.content)&&m>0&&m--,i(c.content)&&m++),!(m>0)&&"text"===c.type&&e.md.linkify.test(c.content)){for(p=c.content,_=e.md.linkify.match(p),l=[],v=c.level,f=0,h=0;h<_.length;h++)g=_[h].url,y=e.md.normalizeLink(g),e.md.validateLink(y)&&(b=_[h].text,b=_[h].schema?"mailto:"!==_[h].schema||/^mailto:/i.test(b)?e.md.normalizeLinkText(b):e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),d=_[h].index,d>f&&(u=new e.Token("text","",0),u.content=p.slice(f,d),u.level=v,l.push(u)),u=new e.Token("link_open","a",1),u.attrs=[["href",y]],u.level=v++,u.markup="linkify",u.info="auto",l.push(u),u=new e.Token("text","",0),u.content=b,u.level=v,l.push(u),u=new e.Token("link_close","a",-1),u.level=--v,u.markup="linkify",u.info="auto",l.push(u),f=_[h].lastIndex);f=0;t--)n=e[t],"text"!==n.type||i||(n.content=n.content.replace(/\((c|tm|r|p)\)/gi,r)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function o(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)n=e[t],"text"!==n.type||r||s.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}var s=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,a=/\((c|tm|r|p)\)/i,u={c:"©",r:"®",p:"§",tm:"™"};t.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(a.test(e.tokens[t].content)&&i(e.tokens[t].children),s.test(e.tokens[t].content)&&o(e.tokens[t].children))}},{}],35:[function(e,t,n){"use strict";function r(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function i(e,t){var n,i,u,l,h,p,d,f,v,m,g,y,b,_,w,x,k,C,S,O,E;for(S=[],n=0;n=0&&!(S[k].level<=d);k--);if(S.length=k+1,"text"===i.type){u=i.content,h=0,p=u.length;e:for(;h=0)v=u.charCodeAt(l.index-1);else for(k=n-1;k>=0;k--)if("text"===e[k].type){v=e[k].content.charCodeAt(e[k].content.length-1);break}if(m=32,h=48&&v<=57&&(x=w=!1),w&&x&&(w=!1,x=y),w||x){if(x)for(k=S.length-1;k>=0&&(f=S[k],!(S[k].level=0;t--)"inline"===e.tokens[t].type&&u.test(e.tokens[t].content)&&i(e.tokens[t].children,e)}},{"../common/utils":4}],36:[function(e,t,n){"use strict";function r(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}var i=e("../token");r.prototype.Token=i,t.exports=r},{"../token":51}],37:[function(e,t,n){"use strict";var r=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,i=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;t.exports=function(e,t){var n,o,s,a,u,c,l=e.pos;return 60===e.src.charCodeAt(l)&&(n=e.src.slice(l),!(n.indexOf(">")<0||(i.test(n)?(o=n.match(i),a=o[0].slice(1,-1),u=e.md.normalizeLink(a),!e.md.validateLink(u)||(t||(c=e.push("link_open","a",1),c.attrs=[["href",u]],c.markup="autolink",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(a),c=e.push("link_close","a",-1),c.markup="autolink",c.info="auto"),e.pos+=o[0].length,0)):!r.test(n)||(s=n.match(r),a=s[0].slice(1,-1),u=e.md.normalizeLink("mailto:"+a),!e.md.validateLink(u)||(t||(c=e.push("link_open","a",1),c.attrs=[["href",u]],c.markup="autolink",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(a),c=e.push("link_close","a",-1),c.markup="autolink",c.info="auto"),e.pos+=s[0].length,0)))))}},{}],38:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,s,a,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u=0;){if(i=o[n],i.open&&i.marker===r.marker&&i.end<0&&i.level===r.level){var a=(i.close||r.open)&&void 0!==i.length&&void 0!==r.length&&(i.length+r.length)%3==0;if(!a){r.jump=t-n,r.open=!1,i.end=t,i.jump=0;break}}n-=i.jump+1}}},{}],40:[function(e,t,n){"use strict";t.exports.tokenize=function(e,t){var n,r,i,o=e.pos,s=e.src.charCodeAt(o);if(t)return!1;if(95!==s&&42!==s)return!1;for(r=e.scanDelims(e.pos,42===s),n=0;n?@[]^_`{|}~-".split("").forEach(function(e){i[e.charCodeAt(0)]=1}),t.exports=function(e,t){var n,o=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o=97&&t<=122}var i=e("../common/html_re").HTML_TAG_RE;t.exports=function(e,t){var n,o,s,a,u=e.pos;return!(!e.md.options.html||(s=e.posMax,60!==e.src.charCodeAt(u)||u+2>=s||33!==(n=e.src.charCodeAt(u+1))&&63!==n&&47!==n&&!r(n)||!(o=e.src.slice(u).match(i))||(t||(a=e.push("html_inline","",0),a.content=e.src.slice(u,u+o[0].length)),e.pos+=o[0].length,0)))}},{"../common/html_re":3}],44:[function(e,t,n){"use strict";var r=e("../common/utils").normalizeReference,i=e("../common/utils").isSpace;t.exports=function(e,t){var n,o,s,a,u,c,l,h,p,d,f,v,m,g="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(u=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=u+1)=b)return!1;for(m=l,p=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),p.ok&&(g=e.md.normalizeLink(p.str),e.md.validateLink(g)?l=p.pos:g=""),m=l;l=b||41!==e.src.charCodeAt(l))return e.pos=y,!1;l++}else{if(void 0===e.env.references)return!1;if(l=0?a=e.src.slice(m,l++):l=u+1):l=u+1,a||(a=e.src.slice(c,u)),!(h=e.env.references[r(a)]))return e.pos=y,!1;g=h.href,d=h.title}return t||(s=e.src.slice(c,u),e.md.inline.parse(s,e.md,e.env,v=[]),f=e.push("image","img",0),f.attrs=n=[["src",g],["alt",""]],f.children=v,f.content=s,d&&n.push(["title",d])),e.pos=l,e.posMax=b,!0}},{"../common/utils":4}],45:[function(e,t,n){"use strict";var r=e("../common/utils").normalizeReference,i=e("../common/utils").isSpace;t.exports=function(e,t){var n,o,s,a,u,c,l,h,p,d,f="",v=e.pos,m=e.posMax,g=e.pos,y=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(u=e.pos+1,(a=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=a+1)=m)return!1;for(g=c,l=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),l.ok&&(f=e.md.normalizeLink(l.str),e.md.validateLink(f)?c=l.pos:f=""),g=c;c=m||41!==e.src.charCodeAt(c))&&(y=!0),c++}if(y){if(void 0===e.env.references)return!1;if(c=0?s=e.src.slice(g,c++):c=a+1):c=a+1,s||(s=e.src.slice(u,a)),!(h=e.env.references[r(s)]))return e.pos=v,!1;f=h.href,p=h.title}return t||(e.pos=u,e.posMax=a,d=e.push("link_open","a",1),d.attrs=n=[["href",f]],p&&n.push(["title",p]),e.md.inline.tokenize(e),d=e.push("link_close","a",-1)),e.pos=c,e.posMax=m,!0}},{"../common/utils":4}],46:[function(e,t,n){"use strict";var r=e("../common/utils").isSpace;t.exports=function(e,t){var n,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(n=e.pending.length-1,i=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o0&&this.level++,this.pendingLevel=this.level,this.tokens.push(r),r},r.prototype.scanDelims=function(e,t){var n,r,i,u,c,l,h,p,d,f=e,v=!0,m=!0,g=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;f=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},t.exports=r},{}],52:[function(e,t,n){t.exports={Aacute:"Á",aacute:"á",Abreve:"A",abreve:"a",ac:"?",acd:"?",acE:"??",Acirc:"Â",acirc:"â",acute:"´",Acy:"?",acy:"?",AElig:"Æ",aelig:"æ",af:"?",Afr:"??",afr:"??",Agrave:"À",agrave:"à",alefsym:"?",aleph:"?",Alpha:"?",alpha:"a",Amacr:"A",amacr:"a",amalg:"?",amp:"&",AMP:"&",andand:"?",And:"?",and:"?",andd:"?",andslope:"?",andv:"?",ang:"?",ange:"?",angle:"?",angmsdaa:"?",angmsdab:"?",angmsdac:"?",angmsdad:"?",angmsdae:"?",angmsdaf:"?",angmsdag:"?",angmsdah:"?",angmsd:"?",angrt:"?",angrtvb:"?",angrtvbd:"?",angsph:"?",angst:"Å",angzarr:"?",Aogon:"A",aogon:"a",Aopf:"??",aopf:"??",apacir:"?",ap:"˜",apE:"?",ape:"?",apid:"?",apos:"'",ApplyFunction:"?",approx:"˜",approxeq:"?",Aring:"Å",aring:"å",Ascr:"??",ascr:"??",Assign:"?",ast:"*",asymp:"˜",asympeq:"?",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"?",awint:"?",backcong:"?",backepsilon:"?",backprime:"`",backsim:"?",backsimeq:"?",Backslash:"\",Barv:"?",barvee:"?",barwed:"?",Barwed:"?",barwedge:"?",bbrk:"?",bbrktbrk:"?",bcong:"?",Bcy:"?",bcy:"?",bdquo:"„",becaus:"?",because:"?",Because:"?",bemptyv:"?",bepsi:"?",bernou:"B",Bernoullis:"B",Beta:"?",beta:"ß",beth:"?",between:"?",Bfr:"??",bfr:"??",bigcap:"?",bigcirc:"?",bigcup:"?",bigodot:"?",bigoplus:"?",bigotimes:"?",bigsqcup:"?",bigstar:"?",bigtriangledown:"?",bigtriangleup:"?",biguplus:"?",bigvee:"?",bigwedge:"?",bkarow:"?",blacklozenge:"?",blacksquare:"?",blacktriangle:"?",blacktriangledown:"?",blacktriangleleft:"?",blacktriangleright:"?",blank:"?",blk12:"¦",blk14:"¦",blk34:"¦",block:"¦",bne:"=?",bnequiv:"=?",bNot:"?",bnot:"¬",Bopf:"??",bopf:"??",bot:"?",bottom:"?",bowtie:"?",boxbox:"?",boxdl:"+",boxdL:"+",boxDl:"+",boxDL:"+",boxdr:"+",boxdR:"+",boxDr:"+",boxDR:"+",boxh:"-",boxH:"-",boxhd:"-",boxHd:"-",boxhD:"-",boxHD:"-",boxhu:"-",boxHu:"-",boxhU:"-",boxHU:"-",boxminus:"?",boxplus:"?",boxtimes:"?",boxul:"+",boxuL:"+",boxUl:"+",boxUL:"+",boxur:"+",boxuR:"+",boxUr:"+",boxUR:"+",boxv:"¦",boxV:"¦",boxvh:"+",boxvH:"+",boxVh:"+",boxVH:"+",boxvl:"¦",boxvL:"¦",boxVl:"¦",boxVL:"¦",boxvr:"+",boxvR:"¦",boxVr:"¦",boxVR:"¦",bprime:"`",breve:"?",Breve:"?",brvbar:"¦",bscr:"??",Bscr:"B",bsemi:"?",bsim:"?",bsime:"?",bsolb:"?",bsol:"\\",bsolhsub:"?",bull:"•",bullet:"•",bump:"?",bumpE:"?",bumpe:"?",Bumpeq:"?",bumpeq:"?",Cacute:"C",cacute:"c",capand:"?",capbrcup:"?",capcap:"?",cap:"n",Cap:"?",capcup:"?",capdot:"?",CapitalDifferentialD:"?",caps:"n?",caret:"?",caron:"?",Cayleys:"C",ccaps:"?",Ccaron:"C",ccaron:"c",Ccedil:"Ç",ccedil:"ç",Ccirc:"C",ccirc:"c",Cconint:"?",ccups:"?",ccupssm:"?",Cdot:"C",cdot:"c",cedil:"¸",Cedilla:"¸",cemptyv:"?",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"??",Cfr:"C",CHcy:"?",chcy:"?",check:"?",checkmark:"?",Chi:"?",chi:"?",circ:"ˆ",circeq:"?",circlearrowleft:"?",circlearrowright:"?",circledast:"?",circledcirc:"?",circleddash:"?",CircleDot:"?",circledR:"®",circledS:"?",CircleMinus:"?",CirclePlus:"?",CircleTimes:"?",cir:"?",cirE:"?",cire:"?",cirfnint:"?",cirmid:"?",cirscir:"?",ClockwiseContourIntegral:"?",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"?",clubsuit:"?",colon:":",Colon:"?",Colone:"?",colone:"?",coloneq:"?",comma:",",commat:"@",comp:"?",compfn:"°",complement:"?",complexes:"C",cong:"?",congdot:"?",Congruent:"=",conint:"?",Conint:"?",ContourIntegral:"?",copf:"??",Copf:"C",coprod:"?",Coproduct:"?",copy:"©",COPY:"©",copysr:"?",CounterClockwiseContourIntegral:"?",crarr:"?",cross:"?",Cross:"?",Cscr:"??",cscr:"??",csub:"?",csube:"?",csup:"?",csupe:"?",ctdot:"?",cudarrl:"?",cudarrr:"?",cuepr:"?",cuesc:"?",cularr:"?",cularrp:"?",cupbrcap:"?",cupcap:"?",CupCap:"?",cup:"?",Cup:"?",cupcup:"?",cupdot:"?",cupor:"?",cups:"??",curarr:"?",curarrm:"?",curlyeqprec:"?",curlyeqsucc:"?",curlyvee:"?",curlywedge:"?",curren:"¤",curvearrowleft:"?",curvearrowright:"?",cuvee:"?",cuwed:"?",cwconint:"?",cwint:"?",cylcty:"?",dagger:"†",Dagger:"‡",daleth:"?",darr:"?",Darr:"?",dArr:"?",dash:"-",Dashv:"?",dashv:"?",dbkarow:"?",dblac:"?",Dcaron:"D",dcaron:"d",Dcy:"?",dcy:"?",ddagger:"‡",ddarr:"?",DD:"?",dd:"?",DDotrahd:"?",ddotseq:"?",deg:"°",Del:"?",Delta:"?",delta:"d",demptyv:"?",dfisht:"?",Dfr:"??",dfr:"??",dHar:"?",dharl:"?",dharr:"?",DiacriticalAcute:"´",DiacriticalDot:"?",DiacriticalDoubleAcute:"?",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"?",diamond:"?",Diamond:"?",diamondsuit:"?",diams:"?",die:"¨",DifferentialD:"?",digamma:"?",disin:"?",div:"÷",divide:"÷",divideontimes:"?",divonx:"?",DJcy:"?",djcy:"?",dlcorn:"?",dlcrop:"?",dollar:"$",Dopf:"??",dopf:"??",Dot:"¨",dot:"?",DotDot:"?",doteq:"?",doteqdot:"?",DotEqual:"?",dotminus:"?",dotplus:"?",dotsquare:"?",doublebarwedge:"?",DoubleContourIntegral:"?",DoubleDot:"¨",DoubleDownArrow:"?",DoubleLeftArrow:"?",DoubleLeftRightArrow:"?",DoubleLeftTee:"?",DoubleLongLeftArrow:"?",DoubleLongLeftRightArrow:"?",DoubleLongRightArrow:"?",DoubleRightArrow:"?",DoubleRightTee:"?",DoubleUpArrow:"?",DoubleUpDownArrow:"?",DoubleVerticalBar:"?",DownArrowBar:"?",downarrow:"?",DownArrow:"?",Downarrow:"?",DownArrowUpArrow:"?",DownBreve:"?",downdownarrows:"?",downharpoonleft:"?",downharpoonright:"?",DownLeftRightVector:"?",DownLeftTeeVector:"?",DownLeftVectorBar:"?",DownLeftVector:"?",DownRightTeeVector:"?",DownRightVectorBar:"?",DownRightVector:"?",DownTeeArrow:"?",DownTee:"?",drbkarow:"?",drcorn:"?",drcrop:"?",Dscr:"??",dscr:"??",DScy:"?",dscy:"?",dsol:"?",Dstrok:"Ð",dstrok:"d",dtdot:"?",dtri:"?",dtrif:"?",duarr:"?",duhar:"?",dwangle:"?",DZcy:"?",dzcy:"?",dzigrarr:"?",Eacute:"É",eacute:"é",easter:"?",Ecaron:"E",ecaron:"e",Ecirc:"Ê",ecirc:"ê",ecir:"?",ecolon:"?",Ecy:"?",ecy:"?",eDDot:"?",Edot:"E",edot:"e",eDot:"?",ee:"?",efDot:"?",Efr:"??",efr:"??",eg:"?",Egrave:"È",egrave:"è",egs:"?",egsdot:"?",el:"?",Element:"?",elinters:"?",ell:"l",els:"?",elsdot:"?",Emacr:"E",emacr:"e",empty:"Ø",emptyset:"Ø",EmptySmallSquare:"?",emptyv:"Ø",EmptyVerySmallSquare:"?",emsp13:" ",emsp14:" ",emsp:" ",ENG:"?",eng:"?",ensp:" ",Eogon:"E",eogon:"e",Eopf:"??",eopf:"??",epar:"?",eparsl:"?",eplus:"?",epsi:"e",Epsilon:"?",epsilon:"e",epsiv:"?",eqcirc:"?",eqcolon:"?",eqsim:"?",eqslantgtr:"?",eqslantless:"?",Equal:"?",equals:"=",EqualTilde:"?",equest:"?",Equilibrium:"?",equiv:"=",equivDD:"?",eqvparsl:"?",erarr:"?",erDot:"?",escr:"e",Escr:"E",esdot:"?",Esim:"?",esim:"?",Eta:"?",eta:"?",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"?",Exists:"?",expectation:"E",exponentiale:"?",ExponentialE:"?",fallingdotseq:"?",Fcy:"?",fcy:"?",female:"?",ffilig:"?",fflig:"?",ffllig:"?",Ffr:"??",ffr:"??",filig:"?",FilledSmallSquare:"?",FilledVerySmallSquare:"?",fjlig:"fj",flat:"?",fllig:"?",fltns:"?",fnof:"ƒ",Fopf:"??",fopf:"??",forall:"?",ForAll:"?",fork:"?",forkv:"?",Fouriertrf:"F",fpartint:"?",frac12:"½",frac13:"?",frac14:"¼",frac15:"?",frac16:"?",frac18:"?",frac23:"?",frac25:"?",frac34:"¾",frac35:"?",frac38:"?",frac45:"?",frac56:"?",frac58:"?",frac78:"?",frasl:"/",frown:"?",fscr:"??",Fscr:"F",gacute:"?",Gamma:"G",gamma:"?",Gammad:"?",gammad:"?",gap:"?",Gbreve:"G",gbreve:"g",Gcedil:"G",Gcirc:"G",gcirc:"g",Gcy:"?",gcy:"?",Gdot:"G",gdot:"g",ge:"=",gE:"?",gEl:"?",gel:"?",geq:"=",geqq:"?",geqslant:"?",gescc:"?",ges:"?",gesdot:"?",gesdoto:"?",gesdotol:"?",gesl:"??",gesles:"?",Gfr:"??",gfr:"??",gg:"»",Gg:"?",ggg:"?",gimel:"?",GJcy:"?",gjcy:"?",gla:"?",gl:"?",glE:"?",glj:"?",gnap:"?",gnapprox:"?",gne:"?",gnE:"?",gneq:"?",gneqq:"?",gnsim:"?",Gopf:"??",gopf:"??",grave:"`",GreaterEqual:"=",GreaterEqualLess:"?",GreaterFullEqual:"?",GreaterGreater:"?",GreaterLess:"?",GreaterSlantEqual:"?",GreaterTilde:"?",Gscr:"??",gscr:"g",gsim:"?",gsime:"?",gsiml:"?",gtcc:"?",gtcir:"?",gt:">",GT:">",Gt:"»",gtdot:"?",gtlPar:"?",gtquest:"?",gtrapprox:"?",gtrarr:"?",gtrdot:"?",gtreqless:"?",gtreqqless:"?",gtrless:"?",gtrsim:"?",gvertneqq:"??",gvnE:"??",Hacek:"?",hairsp:"?",half:"½",hamilt:"H",HARDcy:"?",hardcy:"?",harrcir:"?",harr:"?",hArr:"?",harrw:"?",Hat:"^",hbar:"?",Hcirc:"H",hcirc:"h",hearts:"?",heartsuit:"?",hellip:"…",hercon:"?",hfr:"??",Hfr:"H",HilbertSpace:"H",hksearow:"?",hkswarow:"?",hoarr:"?",homtht:"?",hookleftarrow:"?",hookrightarrow:"?",hopf:"??",Hopf:"H",horbar:"?",HorizontalLine:"-",hscr:"??",Hscr:"H",hslash:"?",Hstrok:"H",hstrok:"h",HumpDownHump:"?",HumpEqual:"?",hybull:"?",hyphen:"-",Iacute:"Í",iacute:"í",ic:"?",Icirc:"Î",icirc:"î",Icy:"?",icy:"?",Idot:"I",IEcy:"?",iecy:"?",iexcl:"¡",iff:"?",ifr:"??",Ifr:"I",Igrave:"Ì",igrave:"ì",ii:"?",iiiint:"?",iiint:"?",iinfin:"?",iiota:"?",IJlig:"?",ijlig:"?",Imacr:"I",imacr:"i",image:"I",ImaginaryI:"?",imagline:"I",imagpart:"I",imath:"i",Im:"I",imof:"?",imped:"?",Implies:"?",incare:"?",in:"?",infin:"8",infintie:"?",inodot:"i",intcal:"?",int:"?",Int:"?",integers:"Z",Integral:"?",intercal:"?",Intersection:"?",intlarhk:"?",intprod:"?",InvisibleComma:"?",InvisibleTimes:"?",IOcy:"?",iocy:"?",Iogon:"I",iogon:"i",Iopf:"??",iopf:"??",Iota:"?",iota:"?",iprod:"?",iquest:"¿",iscr:"??",Iscr:"I",isin:"?",isindot:"?",isinE:"?",isins:"?",isinsv:"?",isinv:"?",it:"?",Itilde:"I",itilde:"i",Iukcy:"?",iukcy:"?",Iuml:"Ï",iuml:"ï",Jcirc:"J",jcirc:"j",Jcy:"?",jcy:"?",Jfr:"??",jfr:"??",jmath:"?",Jopf:"??",jopf:"??",Jscr:"??",jscr:"??",Jsercy:"?",jsercy:"?",Jukcy:"?",jukcy:"?",Kappa:"?",kappa:"?",kappav:"?",Kcedil:"K",kcedil:"k",Kcy:"?",kcy:"?",Kfr:"??",kfr:"??",kgreen:"?",KHcy:"?",khcy:"?",KJcy:"?",kjcy:"?",Kopf:"??",kopf:"??",Kscr:"??",kscr:"??",lAarr:"?",Lacute:"L",lacute:"l",laemptyv:"?",lagran:"L",Lambda:"?",lambda:"?",lang:"?",Lang:"?",langd:"?",langle:"?",lap:"?",Laplacetrf:"L",laquo:"«",larrb:"?",larrbfs:"?",larr:"?",Larr:"?",lArr:"?",larrfs:"?",larrhk:"?",larrlp:"?",larrpl:"?",larrsim:"?",larrtl:"?",latail:"?",lAtail:"?",lat:"?",late:"?",lates:"??",lbarr:"?",lBarr:"?",lbbrk:"?",lbrace:"{",lbrack:"[",lbrke:"?",lbrksld:"?",lbrkslu:"?",Lcaron:"L",lcaron:"l",Lcedil:"L",lcedil:"l",lceil:"?",lcub:"{",Lcy:"?",lcy:"?",ldca:"?",ldquo:"“",ldquor:"„",ldrdhar:"?",ldrushar:"?",ldsh:"?",le:"=",lE:"?",LeftAngleBracket:"?",LeftArrowBar:"?",leftarrow:"?",LeftArrow:"?",Leftarrow:"?",LeftArrowRightArrow:"?",leftarrowtail:"?",LeftCeiling:"?",LeftDoubleBracket:"?",LeftDownTeeVector:"?",LeftDownVectorBar:"?",LeftDownVector:"?",LeftFloor:"?",leftharpoondown:"?",leftharpoonup:"?",leftleftarrows:"?",leftrightarrow:"?",LeftRightArrow:"?",Leftrightarrow:"?",leftrightarrows:"?",leftrightharpoons:"?",leftrightsquigarrow:"?",LeftRightVector:"?",LeftTeeArrow:"?",LeftTee:"?",LeftTeeVector:"?",leftthreetimes:"?",LeftTriangleBar:"?",LeftTriangle:"?",LeftTriangleEqual:"?",LeftUpDownVector:"?",LeftUpTeeVector:"?",LeftUpVectorBar:"?",LeftUpVector:"?",LeftVectorBar:"?",LeftVector:"?",lEg:"?",leg:"?",leq:"=",leqq:"?",leqslant:"?",lescc:"?",les:"?",lesdot:"?",lesdoto:"?",lesdotor:"?",lesg:"??",lesges:"?",lessapprox:"?",lessdot:"?",lesseqgtr:"?",lesseqqgtr:"?",LessEqualGreater:"?",LessFullEqual:"?",LessGreater:"?",lessgtr:"?",LessLess:"?",lesssim:"?",LessSlantEqual:"?",LessTilde:"?",lfisht:"?",lfloor:"?",Lfr:"??",lfr:"??",lg:"?",lgE:"?",lHar:"?",lhard:"?",lharu:"?",lharul:"?",lhblk:"_",LJcy:"?",ljcy:"?",llarr:"?",ll:"«",Ll:"?",llcorner:"?",Lleftarrow:"?",llhard:"?",lltri:"?",Lmidot:"?",lmidot:"?",lmoustache:"?",lmoust:"?",lnap:"?",lnapprox:"?",lne:"?",lnE:"?",lneq:"?",lneqq:"?",lnsim:"?",loang:"?",loarr:"?",lobrk:"?",longleftarrow:"?",LongLeftArrow:"?",Longleftarrow:"?",longleftrightarrow:"?",LongLeftRightArrow:"?",Longleftrightarrow:"?",longmapsto:"?",longrightarrow:"?",LongRightArrow:"?",Longrightarrow:"?",looparrowleft:"?",looparrowright:"?",lopar:"?",Lopf:"??",lopf:"??",loplus:"?",lotimes:"?",lowast:"*",lowbar:"_",LowerLeftArrow:"?",LowerRightArrow:"?",loz:"?",lozenge:"?",lozf:"?",lpar:"(",lparlt:"?",lrarr:"?",lrcorner:"?",lrhar:"?",lrhard:"?",lrm:"?",lrtri:"?",lsaquo:"‹",lscr:"??",Lscr:"L",lsh:"?",Lsh:"?",lsim:"?",lsime:"?",lsimg:"?",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"L",lstrok:"l",ltcc:"?",ltcir:"?",lt:"<",LT:"<",Lt:"«",ltdot:"?",lthree:"?",ltimes:"?",ltlarr:"?",ltquest:"?",ltri:"?",ltrie:"?",ltrif:"?",ltrPar:"?",lurdshar:"?",luruhar:"?",lvertneqq:"??",lvnE:"??",macr:"¯",male:"?",malt:"?",maltese:"?",Map:"?",map:"?",mapsto:"?",mapstodown:"?",mapstoleft:"?",mapstoup:"?",marker:"?",mcomma:"?",Mcy:"?",mcy:"?", mdash:"—",mDDot:"?",measuredangle:"?",MediumSpace:"?",Mellintrf:"M",Mfr:"??",mfr:"??",mho:"?",micro:"µ",midast:"*",midcir:"?",mid:"|",middot:"·",minusb:"?",minus:"-",minusd:"?",minusdu:"?",MinusPlus:"±",mlcp:"?",mldr:"…",mnplus:"±",models:"?",Mopf:"??",mopf:"??",mp:"±",mscr:"??",Mscr:"M",mstpos:"?",Mu:"?",mu:"µ",multimap:"?",mumap:"?",nabla:"?",Nacute:"N",nacute:"n",nang:"??",nap:"?",napE:"??",napid:"??",napos:"?",napprox:"?",natural:"?",naturals:"N",natur:"?",nbsp:" ",nbump:"??",nbumpe:"??",ncap:"?",Ncaron:"N",ncaron:"n",Ncedil:"N",ncedil:"n",ncong:"?",ncongdot:"??",ncup:"?",Ncy:"?",ncy:"?",ndash:"–",nearhk:"?",nearr:"?",neArr:"?",nearrow:"?",ne:"?",nedot:"??",NegativeMediumSpace:"?",NegativeThickSpace:"?",NegativeThinSpace:"?",NegativeVeryThinSpace:"?",nequiv:"?",nesear:"?",nesim:"??",NestedGreaterGreater:"»",NestedLessLess:"«",NewLine:"\n",nexist:"?",nexists:"?",Nfr:"??",nfr:"??",ngE:"??",nge:"?",ngeq:"?",ngeqq:"??",ngeqslant:"??",nges:"??",nGg:"??",ngsim:"?",nGt:"»?",ngt:"?",ngtr:"?",nGtv:"»?",nharr:"?",nhArr:"?",nhpar:"?",ni:"?",nis:"?",nisd:"?",niv:"?",NJcy:"?",njcy:"?",nlarr:"?",nlArr:"?",nldr:"?",nlE:"??",nle:"?",nleftarrow:"?",nLeftarrow:"?",nleftrightarrow:"?",nLeftrightarrow:"?",nleq:"?",nleqq:"??",nleqslant:"??",nles:"??",nless:"?",nLl:"??",nlsim:"?",nLt:"«?",nlt:"?",nltri:"?",nltrie:"?",nLtv:"«?",nmid:"?",NoBreak:"?",NonBreakingSpace:" ",nopf:"??",Nopf:"N",Not:"?",not:"¬",NotCongruent:"?",NotCupCap:"?",NotDoubleVerticalBar:"?",NotElement:"?",NotEqual:"?",NotEqualTilde:"??",NotExists:"?",NotGreater:"?",NotGreaterEqual:"?",NotGreaterFullEqual:"??",NotGreaterGreater:"»?",NotGreaterLess:"?",NotGreaterSlantEqual:"??",NotGreaterTilde:"?",NotHumpDownHump:"??",NotHumpEqual:"??",notin:"?",notindot:"??",notinE:"??",notinva:"?",notinvb:"?",notinvc:"?",NotLeftTriangleBar:"??",NotLeftTriangle:"?",NotLeftTriangleEqual:"?",NotLess:"?",NotLessEqual:"?",NotLessGreater:"?",NotLessLess:"«?",NotLessSlantEqual:"??",NotLessTilde:"?",NotNestedGreaterGreater:"??",NotNestedLessLess:"??",notni:"?",notniva:"?",notnivb:"?",notnivc:"?",NotPrecedes:"?",NotPrecedesEqual:"??",NotPrecedesSlantEqual:"?",NotReverseElement:"?",NotRightTriangleBar:"??",NotRightTriangle:"?",NotRightTriangleEqual:"?",NotSquareSubset:"??",NotSquareSubsetEqual:"?",NotSquareSuperset:"??",NotSquareSupersetEqual:"?",NotSubset:"??",NotSubsetEqual:"?",NotSucceeds:"?",NotSucceedsEqual:"??",NotSucceedsSlantEqual:"?",NotSucceedsTilde:"??",NotSuperset:"??",NotSupersetEqual:"?",NotTilde:"?",NotTildeEqual:"?",NotTildeFullEqual:"?",NotTildeTilde:"?",NotVerticalBar:"?",nparallel:"?",npar:"?",nparsl:"??",npart:"??",npolint:"?",npr:"?",nprcue:"?",nprec:"?",npreceq:"??",npre:"??",nrarrc:"??",nrarr:"?",nrArr:"?",nrarrw:"??",nrightarrow:"?",nRightarrow:"?",nrtri:"?",nrtrie:"?",nsc:"?",nsccue:"?",nsce:"??",Nscr:"??",nscr:"??",nshortmid:"?",nshortparallel:"?",nsim:"?",nsime:"?",nsimeq:"?",nsmid:"?",nspar:"?",nsqsube:"?",nsqsupe:"?",nsub:"?",nsubE:"??",nsube:"?",nsubset:"??",nsubseteq:"?",nsubseteqq:"??",nsucc:"?",nsucceq:"??",nsup:"?",nsupE:"??",nsupe:"?",nsupset:"??",nsupseteq:"?",nsupseteqq:"??",ntgl:"?",Ntilde:"Ñ",ntilde:"ñ",ntlg:"?",ntriangleleft:"?",ntrianglelefteq:"?",ntriangleright:"?",ntrianglerighteq:"?",Nu:"?",nu:"?",num:"#",numero:"?",numsp:"?",nvap:"??",nvdash:"?",nvDash:"?",nVdash:"?",nVDash:"?",nvge:"=?",nvgt:">?",nvHarr:"?",nvinfin:"?",nvlArr:"?",nvle:"=?",nvlt:"0&&t.__compiled__[e]}).map(c).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+i.src_ZPCc+"))("+v+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+i.src_ZPCc+"))("+v+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),h(t)}function v(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function m(e,t){var n=new v(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function g(e,t){if(!(this instanceof g))return new g(e,t);t||l(e)&&(t=e,e={}),this.__opts__=r({},y,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},b,e),this.__compiled__={},this.__tlds__=_,this.__tlds_replaced__=!1,this.re={},f(this)}var y={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},b={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},_="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|??".split("|");g.prototype.add=function(e,t){return this.__schemas__[e]=t,f(this),this},g.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},g.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,s,a,u;if(this.re.schema_test.test(e))for(a=this.re.schema_search,a.lastIndex=0;null!==(t=a.exec(e));)if(i=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s)),this.__index__>=0},g.prototype.pretest=function(e){return this.re.pretest.test(e)},g.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},g.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(m(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(m(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},g.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),f(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,f(this),this)},g.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},g.prototype.onCompile=function(){},t.exports=g},{"./lib/re":54}],54:[function(e,t,n){"use strict";t.exports=function(t){var n={};return n.src_Any=e("uc.micro/properties/Any/regex").source,n.src_Cc=e("uc.micro/categories/Cc/regex").source,n.src_Z=e("uc.micro/categories/Z/regex").source,n.src_P=e("uc.micro/categories/P/regex").source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|"),n.src_pseudo_letter="(?:(?![><|]|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|[><|]|"+n.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+n.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+n.src_ZCc+").|\\!(?!"+n.src_ZCc+"|[!]).|\\?(?!"+n.src_ZCc+"|[?]).)+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-(?!-)|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|[><|]|\\(|"+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}},{"uc.micro/categories/Cc/regex":61,"uc.micro/categories/P/regex":63,"uc.micro/categories/Z/regex":64,"uc.micro/properties/Any/regex":66}],55:[function(e,t,n){"use strict";function r(e){var t,n,r=o[e];if(r)return r;for(r=o[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t=55296&&u<=57343?"???":String.fromCharCode(u),t+=6):240==(248&i)&&t+91114111?c+="????":(u-=65536,c+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),t+=9):c+="?";return c})}var o={};i.defaultChars=";/?:@&=+$,#",i.componentChars="",t.exports=i},{}],56:[function(e,t,n){"use strict";function r(e){var t,n,r=o[e];if(r)return r;for(r=o[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1=56320&&u<=57343){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[o]);return l}var o={};i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",t.exports=i},{}],57:[function(e,t,n){"use strict";t.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",t+=e.hostname&&-1!==e.hostname.indexOf(":")?"["+e.hostname+"]":e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},{}],58:[function(e,t,n){"use strict";t.exports.encode=e("./encode"),t.exports.decode=e("./decode"),t.exports.format=e("./format"),t.exports.parse=e("./parse")},{"./decode":55,"./encode":56,"./format":57,"./parse":59}],59:[function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}function i(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(u),l=["'"].concat(c),h=["%","/","?",";","#"].concat(l),p=["/","?","#"],d={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,i,s,u,c=e;if(c=c.trim(),!t&&1===e.split("#").length){var l=a.exec(c);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var v=o.exec(c);if(v&&(v=v[0],i=v.toLowerCase(),this.protocol=v,c=c.substr(v.length)),(t||v||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(u="//"===c.substr(0,2))||v&&d[v]||(c=c.substr(2),this.slashes=!0)),!d[v]&&(u||v&&!f[v])){var m=-1;for(n=0;n127?"x":x[C];if(!k.match(/^[+a-z0-9A-Z_-]{0,63}$/)){var O=w.slice(0,n),E=w.slice(n+1),A=x.match(/^([+a-z0-9A-Z_-]{0,63})(.*)$/);A&&(O.push(A[1]),E.unshift(A[2])),E.length&&(c=E.join(".")+c),this.hostname=O.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var M=c.indexOf("#");-1!==M&&(this.hash=c.substr(M),c=c.slice(0,M));var T=c.indexOf("?");return-1!==T&&(this.search=c.substr(T),c=c.slice(0,T)),c&&(this.pathname=c),f[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.exports=i},{}],60:[function(t,n,r){(function(t){!function(i){function o(e){throw new RangeError(S[e])}function s(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function a(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(/[\x2E\u3002\uFF0E\uFF61]/g,"."),r+s(e.split("."),t).join(".")}function u(e){for(var t,n,r=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(e-=65536,t+=E(e>>>10&1023|55296),e=56320|1023&e),t+=E(e)}).join("")}function l(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:36}function h(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function p(e,t,n){var r=0;for(e=n?O(e/700):e>>1,e+=O(e/t);e>455;r+=36)e=O(e/35);return O(r+36*e/(e+38))}function d(e){var t,n,r,i,s,a,u,h,d,f,v=[],m=e.length,g=0,y=128,b=72;for(n=e.lastIndexOf("-"),n<0&&(n=0),r=0;r=128&&o("not-basic"),v.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=m&&o("invalid-input"),h=l(e.charCodeAt(i++)),(h>=36||h>O((x-g)/a))&&o("overflow"),g+=h*a,d=u<=b?1:u>=b+26?26:u-b,!(hO(x/f)&&o("overflow"),a*=f;t=v.length+1,b=p(g-s,t,0==s),O(g/t)>x-y&&o("overflow"),y+=O(g/t),g%=t,v.splice(g++,0,y)}return c(v)}function f(e){var t,n,r,i,s,a,c,l,d,f,v,m,g,y,b,_=[];for(e=u(e),m=e.length,t=128,n=0,s=72,a=0;a=t&&vO((x-n)/g)&&o("overflow"),n+=(c-t)*g,t=c,a=0;ax&&o("overflow"),v==t){for(l=n,d=36;f=d<=s?1:d>=s+26?26:d-s,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=Math.floor,E=String.fromCharCode;if(_={version:"1.4.1",ucs2:{decode:u,encode:c},decode:d,encode:f,toASCII:m,toUnicode:v},"function"==typeof e&&"object"==typeof e.amd&&e.amd)e("punycode",function(){return _});else if(g&&y)if(n.exports==g)y.exports=_;else for(w in _)_.hasOwnProperty(w)&&(g[w]=_[w]);else i.punycode=_}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],61:[function(e,t,n){t.exports=/[\0-\x1F\x7F-\x9F]/},{}],62:[function(e,t,n){t.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804\uDCBD|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},{}],63:[function(e,t,n){t.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E44\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},{}],64:[function(e,t,n){t.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},{}],65:[function(e,t,n){"use strict";n.Any=e("./properties/Any/regex"),n.Cc=e("./categories/Cc/regex"),n.Cf=e("./categories/Cf/regex"),n.P=e("./categories/P/regex"),n.Z=e("./categories/Z/regex")},{"./categories/Cc/regex":61,"./categories/Cf/regex":62,"./categories/P/regex":63,"./categories/Z/regex":64,"./properties/Any/regex":66}],66:[function(e,t,n){ t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},{}],67:[function(e,t,n){"use strict";t.exports=e("./lib/")},{"./lib/":9}]},{},[67])(67)}),define("markdown-it",["markdown-it/markdown-it.min"],function(e){return e}),define("aurelia-ui-virtualization/aurelia-ui-virtualization",["exports","./virtual-repeat","./infinite-scroll-next"],function(e,t,n){"use strict";function r(e){e.globalResources("./virtual-repeat","./infinite-scroll-next")}Object.defineProperty(e,"__esModule",{value:!0}),e.InfiniteScrollNext=e.VirtualRepeat=void 0,e.configure=r,e.VirtualRepeat=t.VirtualRepeat,e.InfiniteScrollNext=n.InfiniteScrollNext}),define("aurelia-ui-virtualization",["aurelia-ui-virtualization/aurelia-ui-virtualization"],function(e){return e}),define("aurelia-ui-virtualization/virtual-repeat",["exports","aurelia-dependency-injection","aurelia-binding","aurelia-templating","aurelia-templating-resources","aurelia-pal","./utilities","./dom-helper","./virtual-repeat-strategy-locator","./template-strategy"],function(e,t,n,r,i,o,s,a,u,c){"use strict";function l(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function d(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualRepeat=void 0;var f,v,m,g,y,b;e.VirtualRepeat=(f=(0,r.customAttribute)("virtual-repeat"),v=(0,t.inject)(o.DOM.Element,r.BoundViewFactory,r.TargetInstruction,r.ViewSlot,r.ViewResources,n.ObserverLocator,u.VirtualRepeatStrategyLocator,c.TemplateStrategyLocator,a.DomHelper),f(m=(0,r.templateController)(m=v((g=function(e){function t(t,n,r,o,s,a,u,c,p){var d=h(this,e.call(this,{local:"item",viewsRequireLifecycle:(0,i.viewsRequireLifecycle)(n)}));return d._first=0,d._previousFirst=0,d._viewsLength=0,d._lastRebind=0,d._topBufferHeight=0,d._bottomBufferHeight=0,d._bufferSize=5,d._scrollingDown=!1,d._scrollingUp=!1,d._switchedDirection=!1,d._isAttached=!1,d._ticking=!1,d._fixedHeightContainer=!1,d._hasCalculatedSizes=!1,d._isAtTop=!0,d._calledGetMore=!1,l(d,"items",y,d),l(d,"local",b,d),d.element=t,d.viewFactory=n,d.instruction=r,d.viewSlot=o,d.lookupFunctions=s.lookupFunctions,d.observerLocator=a,d.strategyLocator=u,d.templateStrategyLocator=c,d.sourceExpression=(0,i.getItemsSourceExpression)(d.instruction,"virtual-repeat.for"),d.isOneTime=(0,i.isOneTime)(d.sourceExpression),d.domHelper=p,d}return p(t,e),t.prototype.attached=function(){var e=this;this._isAttached=!0;var t=this.element;this._itemsLength=this.items.length,this.templateStrategy=this.templateStrategyLocator.getStrategy(t),this.scrollContainer=this.templateStrategy.getScrollContainer(t),this.topBuffer=this.templateStrategy.createTopBufferElement(t),this.bottomBuffer=this.templateStrategy.createBottomBufferElement(t),this.itemsChanged(),this.scrollListener=function(){return e._onScroll()},this.calcDistanceToTopInterval=setInterval(function(){var t=e.distanceToTop;e.distanceToTop=e.domHelper.getElementDistanceToTopOfDocument(e.topBuffer),e.distanceToTop+=e.topBufferDistance,t!==e.distanceToTop&&e._handleScroll()},500),this.distanceToTop=this.domHelper.getElementDistanceToTopOfDocument(this.templateStrategy.getFirstElement(this.topBuffer)),this.topBufferDistance=this.templateStrategy.getTopBufferDistance(this.topBuffer),this.domHelper.hasOverflowScroll(this.scrollContainer)?(this._fixedHeightContainer=!0,this.scrollContainer.addEventListener("scroll",this.scrollListener)):document.addEventListener("scroll",this.scrollListener)},t.prototype.bind=function(e,t){this.scope={bindingContext:e,overrideContext:t}},t.prototype.call=function(e,t){this[e](this.items,t)},t.prototype.detached=function(){this.scrollContainer.removeEventListener("scroll",this.scrollListener),this._first=0,this._previousFirst=0,this._viewsLength=0,this._lastRebind=0,this._topBufferHeight=0,this._bottomBufferHeight=0,this._scrollingDown=!1,this._scrollingUp=!1,this._switchedDirection=!1,this._isAttached=!1,this._ticking=!1,this._hasCalculatedSizes=!1,this.templateStrategy.removeBufferElements(this.element,this.topBuffer,this.bottomBuffer),this.isLastIndex=!1,this.scrollContainer=null,this.scrollContainerHeight=null,this.distanceToTop=null,this.removeAllViews(!0),this.scrollHandler&&this.scrollHandler.dispose(),this._unsubscribeCollection(),clearInterval(this.calcDistanceToTopInterval),this._sizeInterval&&clearInterval(this._sizeInterval)},t.prototype.itemsChanged=function(){if(this._unsubscribeCollection(),this.scope){var e=!1,t=this._getIndexOfLastView(),n=this.items;if(this.strategy=this.strategyLocator.getStrategy(n),n.length>0&&0===this.viewCount()&&this.strategy.createFirstItem(this),this._itemsLength>=n.length&&(this._skipNextScrollHandle=!0,e=!0),this._checkFixedHeightContainer(),this._calcInitialHeights(n.length),this.isOneTime||this._observeInnerCollection()||this._observeCollection(),this.strategy.instanceChanged(this,n,this._first),this._lastRebind=this._first,e&&t>this.items.length-1)if("TBODY"===this.scrollContainer.tagName){var r=this.scrollContainer.parentNode.parentNode;r.scrollTop=r.scrollTop+this.viewCount()*this.itemHeight}else this.scrollContainer.scrollTop=this.scrollContainer.scrollTop+this.viewCount()*this.itemHeight;e||(this._previousFirst=this._first,this._scrollingDown=!0,this._scrollingUp=!1,this.isLastIndex=this._getIndexOfLastView()>=this.items.length-1),this._handleScroll()}},t.prototype.unbind=function(){this.scope=null,this.items=null,this._itemsLength=null},t.prototype.handleCollectionMutated=function(e,t){this._handlingMutations=!0,this._itemsLength=e.length,this.strategy.instanceMutated(this,e,t)},t.prototype.handleInnerCollectionMutated=function(e,t){var n=this;if(!this.ignoreMutation){this.ignoreMutation=!0;var r=this.sourceExpression.evaluate(this.scope,this.lookupFunctions);this.observerLocator.taskQueue.queueMicroTask(function(){return n.ignoreMutation=!1}),r===this.items?this.itemsChanged():this.items=r}},t.prototype._onScroll=function(){var e=this;this._ticking||this._handlingMutations||(requestAnimationFrame(function(){return e._handleScroll()}),this._ticking=!0),this._handlingMutations&&(this._handlingMutations=!1)},t.prototype._handleScroll=function(){if(this._isAttached){if(this._skipNextScrollHandle)return void(this._skipNextScrollHandle=!1);var e=this.itemHeight,t=this._fixedHeightContainer?this.scrollContainer.scrollTop:pageYOffset-this.distanceToTop;if(this._first=Math.floor(t/e),this._first=this._first<0?0:this._first,this._first>this.items.length-this.elementsInView&&(this._first=this.items.length-this.elementsInView),this._checkScrolling(),this._scrollingDown){var n=this._first-this._lastRebind;this._switchedDirection&&(n=this._isAtTop?this._first:this._bufferSize-(this._lastRebind-this._first)),this._isAtTop=!1,this._lastRebind=this._first;var r=this._moveViews(n),i=r0&&this._getMore(),this._switchedDirection=!1,this._topBufferHeight=this._topBufferHeight+i,this._bottomBufferHeight=this._bottomBufferHeight-i,this._bottomBufferHeight>=0&&this._adjustBufferHeights()}else if(this._scrollingUp){var o=this._lastRebind-this._first,s=void 0===this.isLastIndex;this._switchedDirection&&(o=this.isLastIndex?this.items.length-this._first-this.elementsInView:this._bufferSize-(this._first-this._lastRebind)),this.isLastIndex=!1,this._lastRebind=this._first;var a=this._moveViews(o);this.movedViewsCount=a;var u=a0){var c=!!(0===this.movedViewsCount&&s&&this._first<=0);this._getMore(c)}this._switchedDirection=!1,this._topBufferHeight=this._topBufferHeight-u,this._bottomBufferHeight=this._bottomBufferHeight+u,this._topBufferHeight>=0&&this._adjustBufferHeights()}this._previousFirst=this._first,this._ticking=!1}},t.prototype._getMore=function(e){var t=this;if((this.isLastIndex||0===this._first||e)&&!this._calledGetMore){var n=function(){t._calledGetMore=!0;var e=t.view(0)&&t.view(0).firstChild&&t.view(0).firstChild.au&&t.view(0).firstChild.au["infinite-scroll-next"]?t.view(0).firstChild.au["infinite-scroll-next"].instruction.attributes["infinite-scroll-next"]:void 0,n=t._first,r=0===t._bottomBufferHeight,i=t._isAtTop,o={topIndex:n,isAtBottom:r,isAtTop:i};if(t.scope.overrideContext.$scrollContext=o,void 0===e)return null;if("string"!=typeof e){if(e.sourceExpression)return t._calledGetMore=!1,e.sourceExpression.evaluate(t.scope);throw new Error("'infinite-scroll-next' must be a function or evaluate to one")}var s=t.view(0).firstChild.getAttribute("infinite-scroll-next"),a=t.scope.overrideContext.bindingContext[s];if("function"!=typeof a)throw new Error("'infinite-scroll-next' must be a function or evaluate to one");var u=a.call(t.scope.overrideContext.bindingContext,n,r,i);return u instanceof Promise?u.then(function(){t._calledGetMore=!1}):(t._calledGetMore=!1,null)};this.observerLocator.taskQueue.queueMicroTask(n)}},t.prototype._checkScrolling=function(){this._first>this._previousFirst&&(this._bottomBufferHeight>0||!this.isLastIndex)?(this._scrollingDown?this._switchedDirection=!1:(this._scrollingDown=!0,this._scrollingUp=!1,this._switchedDirection=!0),this._isScrolling=!0):this._first=0||!this._isAtTop)?(this._scrollingUp?this._switchedDirection=!1:(this._scrollingDown=!1,this._scrollingUp=!0,this._switchedDirection=!0),this._isScrolling=!0):this._isScrolling=!1},t.prototype._checkFixedHeightContainer=function(){this.domHelper.hasOverflowScroll(this.scrollContainer)&&(this._fixedHeightContainer=!0)},t.prototype._adjustBufferHeights=function(){this.topBuffer.style.height=this._topBufferHeight+"px",this.bottomBuffer.style.height=this._bottomBufferHeight+"px"},t.prototype._unsubscribeCollection=function(){this.collectionObserver&&(this.collectionObserver.unsubscribe(this.callContext,this),this.collectionObserver=null,this.callContext=null)},t.prototype._moveViews=function(e){for(var t=this,n=this._scrollingDown?function(e,t){return e+t}:function(e,t){return e-t},r=function(){return t._scrollingDown?t.isLastIndex:t._isAtTop},i=this.viewCount(),o=this._scrollingDown?0:i-1,a=this.items,u=this._scrollingDown?this._getIndexOfLastView()+1:this._getIndexOfFirstView()-1,c=0,l=e-2*i;c=a.length-1,this._isAtTop=p<=0,r()&&i>=a.length||(c>l&&(0,s.rebindAndMoveView)(this,h,p,this._scrollingDown),c++)}return e-(e-c)},t.prototype._getIndexOfLastView=function(){var e=this.view(this.viewCount()-1);return e?e.overrideContext.$index:-1},t.prototype._getLastViewItem=function(){var e=this.viewSlot.children;if(e.length){return e[e.length-1].bindingContext[this.local]}},t.prototype._getIndexOfFirstView=function(){return this.view(0)?this.view(0).overrideContext.$index:-1},t.prototype._calcInitialHeights=function(e){var t=this;if(!(this._viewsLength>0&&this._itemsLength===e||e<=0)){this._hasCalculatedSizes=!0;var n=this.view(0).lastChild;if(this.itemHeight=(0,s.calcOuterHeight)(n),this.itemHeight<=0)return void(this._sizeInterval=setInterval(function(){(0,s.calcOuterHeight)(n)>0&&(clearInterval(t._sizeInterval),t.itemsChanged())},500));this._itemsLength=e,this.scrollContainerHeight=this._fixedHeightContainer?this._calcScrollHeight(this.scrollContainer):document.documentElement.clientHeight,this.elementsInView=Math.ceil(this.scrollContainerHeight/this.itemHeight)+1,this._viewsLength=2*this.elementsInView+this._bufferSize;var r=this.itemHeight*e-this.itemHeight*this._viewsLength;if(r<0&&(r=0),this._topBufferHeight>=r)this._topBufferHeight=r,this._bottomBufferHeight=0,this._first=this._itemsLength-this._viewsLength,this._first<0&&(this._first=0);else{this._first=this._getIndexOfFirstView();var i=this._first*this.itemHeight;this._topBufferHeight=i,this._bottomBufferHeight=r-i,this._bottomBufferHeight<0&&(this._bottomBufferHeight=0)}this._adjustBufferHeights()}},t.prototype._calcScrollHeight=function(e){var t=void 0;return t=e.getBoundingClientRect().height,t-=(0,s.getStyleValue)(e,"borderTopWidth"),t-=(0,s.getStyleValue)(e,"borderBottomWidth")},t.prototype._observeInnerCollection=function(){var e=this._getInnerCollection(),t=this.strategyLocator.getStrategy(e);return!!t&&(this.collectionObserver=t.getCollectionObserver(this.observerLocator,e),!!this.collectionObserver&&(this.callContext="handleInnerCollectionMutated",this.collectionObserver.subscribe(this.callContext,this),!0))},t.prototype._getInnerCollection=function(){var e=(0,i.unwrapExpression)(this.sourceExpression);return e?e.evaluate(this.scope,null):null},t.prototype._observeCollection=function(){var e=this.items;this.collectionObserver=this.strategy.getCollectionObserver(this.observerLocator,e),this.collectionObserver&&(this.callContext="handleCollectionMutated",this.collectionObserver.subscribe(this.callContext,this))},t.prototype.viewCount=function(){return this.viewSlot.children.length},t.prototype.views=function(){return this.viewSlot.children},t.prototype.view=function(e){return this.viewSlot.children[e]},t.prototype.addView=function(e,t){var n=this.viewFactory.create();n.bind(e,t),this.viewSlot.add(n)},t.prototype.insertView=function(e,t,n){var r=this.viewFactory.create();r.bind(t,n),this.viewSlot.insert(e,r)},t.prototype.removeAllViews=function(e,t){return this.viewSlot.removeAll(e,t)},t.prototype.removeView=function(e,t,n){return this.viewSlot.removeAt(e,t,n)},t.prototype.updateBindings=function(e){for(var t=e.bindings.length;t--;)(0,i.updateOneTimeBinding)(e.bindings[t]);for(t=e.controllers.length;t--;)for(var n=e.controllers[t].boundProperties.length;n--;){var r=e.controllers[t].boundProperties[n].binding;(0,i.updateOneTimeBinding)(r)}},t}(i.AbstractRepeater),y=d(g.prototype,"items",[r.bindable],{enumerable:!0,initializer:null}),b=d(g.prototype,"local",[r.bindable],{enumerable:!0,initializer:null}),m=g))||m)||m)||m)}),define("aurelia-ui-virtualization/utilities",["exports","aurelia-templating-resources","aurelia-templating"],function(e,t,n){"use strict";function r(e){var t=void 0;return t=e.getBoundingClientRect().height,t+=a(e,"marginTop"),t+=a(e,"marginBottom")}function i(e,t){(t.parentElement||t.parentNode).insertBefore(e.lastChild,t)}function o(e,n){var r=e.viewSlot.children,i=r.length,o=e.items.length;n>0&&(n-=1);for(var s=e._topBufferHeight/e.itemHeight;ni;)o--,e.removeView(o,!0);for(var s=e.local,a=0;a0)return Promise.all(a).then(function(){o._handleAddedSplices(e,r,i),(0,n.updateVirtualOverrideContexts)(e,0)});this._handleAddedSplices(e,r,i),(0,n.updateVirtualOverrideContexts)(e,0)}},o.prototype._removeViewAt=function(e,r,i,o,s){var a=void 0,u=void 0,c=e.viewSlot,l=e.viewCount(),h=void 0,p=s>l;if(e._viewsLength<=o)return e._bottomBufferHeight=e._bottomBufferHeight-e.itemHeight,void e._adjustBufferHeights();if(this._isIndexBeforeViewSlot(e,c,r)||this._isIndexAfterViewSlot(e,c,r))this._isIndexBeforeViewSlot(e,c,r)?e._bottomBufferHeight>0?(e._bottomBufferHeight=e._bottomBufferHeight-e.itemHeight,(0,n.rebindAndMoveView)(e,e.view(0),e.view(0).overrideContext.$index,!0)):e._topBufferHeight=e._topBufferHeight-e.itemHeight:this._isIndexAfterViewSlot(e,c,r)&&(e._bottomBufferHeight=e._bottomBufferHeight-e.itemHeight);else{var d=this._getViewIndex(e,c,r);if(a=e.removeView(d,i),e.items.length>l){var f=void 0;if(e._bottomBufferHeight>e.itemHeight){if(h=l,p)f=o;else{var v=e._getLastViewItem();f=e.items.indexOf(v)+1}e._bottomBufferHeight=e._bottomBufferHeight-e.itemHeight}else e._topBufferHeight>0&&(h=0,f=e._getIndexOfFirstView()-1,e._topBufferHeight=e._topBufferHeight-e.itemHeight);var m=e.items[f];if(m){var g=(0,t.createFullOverrideContext)(e,m,f,e.items.length);u=e.viewFactory.create(),u.bind(g.bindingContext,g)}}}a instanceof Promise?a.then(function(){e.viewSlot.insert(h,u),e._adjustBufferHeights()}):u&&e.viewSlot.insert(h,u),e._adjustBufferHeights()},o.prototype._isIndexBeforeViewSlot=function(e,t,n){return this._getViewIndex(e,t,n)<0},o.prototype._isIndexAfterViewSlot=function(e,t,n){return this._getViewIndex(e,t,n)>e._viewsLength-1},o.prototype._getViewIndex=function(e,t,n){return 0===e.viewCount()?-1:n-e._topBufferHeight/e.itemHeight},o.prototype._handleAddedSplices=function(e,r,i){for(var o=r.length,s=e.viewSlot,a=0,u=i.length;a0;if(0===e.viewCount()||!this._isIndexBeforeViewSlot(e,s,l)&&!this._isIndexAfterViewSlot(e,s,l)||p){var d=(0,t.createFullOverrideContext)(e,r[l],l,o);e.insertView(l,d.bindingContext,d),e._hasCalculatedSizes?e.viewCount()>e._viewsLength&&(p?(e.removeView(0,!0,!0),e._topBufferHeight=e._topBufferHeight+e.itemHeight,e._adjustBufferHeights()):(e.removeView(e.viewCount()-1,!0,!0),e._bottomBufferHeight=e._bottomBufferHeight+e.itemHeight)):e._calcInitialHeights(1)}else this._isIndexBeforeViewSlot(e,s,l)?e._topBufferHeight=e._topBufferHeight+e.itemHeight:this._isIndexAfterViewSlot(e,s,l)&&(e._bottomBufferHeight=e._bottomBufferHeight+e.itemHeight,e.isLastIndex=!1)}e._adjustBufferHeights()},o}(t.ArrayRepeatStrategy)}),define("aurelia-ui-virtualization/template-strategy",["exports","aurelia-dependency-injection","aurelia-pal","aurelia-templating","./utilities","./dom-helper"],function(e,t,n,r,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultTemplateStrategy=e.TableStrategy=e.TemplateStrategyLocator=void 0;var s,a,u,c,l=(e.TemplateStrategyLocator=(s=(0,t.inject)(t.Container))(a=function(){function e(e){this.container=e}return e.prototype.getStrategy=function(e){return e.parentNode&&"tbody"===e.parentNode.localName?this.container.get(l):this.container.get(h)},e}())||a,e.TableStrategy=(u=(0,t.inject)(o.DomHelper))(c=function(){function e(e){this.tableCssReset=" display: block; width: auto; height: auto; margin: 0; padding: 0; border: none; border-collapse: inherit; border-spacing: 0; background-color: transparent; -webkit-border-horizontal-spacing: 0; -webkit-border-vertical-spacing: 0;",this.domHelper=e}return e.prototype.getScrollContainer=function(e){return e.parentNode},e.prototype.moveViewFirst=function(e,t){var r=this._getTbodyElement(t.nextSibling),o=r.firstChild,s=n.DOM.nextElementSibling(o);(0,i.insertBeforeNode)(e,s)},e.prototype.moveViewLast=function(e,t){var n=this.getLastElement(t).nextSibling,r=(8===n.nodeType&&n.data,n);(0,i.insertBeforeNode)(e,r)},e.prototype.createTopBufferElement=function(e){var t="ul"===e.parentNode.localName?"li":"div",r=n.DOM.createElement(t),i=e.parentNode.parentNode;return i.parentNode.insertBefore(r,i),r.innerHTML=" ",r},e.prototype.createBottomBufferElement=function(e){var t="ul"===e.parentNode.localName?"li":"div",r=n.DOM.createElement(t),i=e.parentNode.parentNode;return i.parentNode.insertBefore(r,i.nextSibling),r},e.prototype.removeBufferElements=function(e,t,n){t.parentNode.removeChild(t),n.parentNode.removeChild(n)},e.prototype.getFirstElement=function(e){return this._getTbodyElement(n.DOM.nextElementSibling(e)).firstChild},e.prototype.getLastElement=function(e){var t=this._getTbodyElement(e.previousSibling),n=t.children;return n[n.length-1]},e.prototype.getTopBufferDistance=function(e){var t=this._getTbodyElement(e.nextSibling);return this.domHelper.getElementDistanceToTopOfDocument(t)-this.domHelper.getElementDistanceToTopOfDocument(e)},e.prototype._getTbodyElement=function(e){for(var t=void 0,n=e.children,r=0,i=n.length;r