UNPKG

aurelia-split-pane

Version:
1 lines 359 kB
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=37)}({0:function(e,t,n){"use strict";(function(e){function i(e,t,n){if(t){if(t.innerError&&n)return t;var i="\n------------------------------------------------\n";e+=i+"Inner Error:\n","string"==typeof t?e+="Message: "+t:(t.message?e+="Message: "+t.message:e+="Unknown Inner Error Type. Displaying Inner Error as JSON:\n "+JSON.stringify(t,null," "),t.stack&&(e+="\nInner Error Stack:\n"+t.stack,e+="\nEnd Inner Error Stack")),e+=i}var r=new Error(e);return t&&(r.innerError=t),r}n.d(t,"a",function(){return i}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"f",function(){return a}),n.d(t,"e",function(){return u}),n.d(t,"g",function(){return c});var r={},o={noop:function(){},eachModule:function(){},moduleName:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return e})};o.global="undefined"!=typeof self?self:void 0!==e?e:new Function("return this")();var s={},a=!1;function u(e){a||(a=!0,"function"!=typeof Object.getPropertyDescriptor&&(Object.getPropertyDescriptor=function(e,t){for(var n=Object.getOwnPropertyDescriptor(e,t),i=Object.getPrototypeOf(e);void 0===n&&null!==i;)n=Object.getOwnPropertyDescriptor(i,t),i=Object.getPrototypeOf(i);return n}),e(o,r,s))}function c(){a=!1}}).call(this,n(25))},1:function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return p}),n.d(t,"e",function(){return d}),n.d(t,"f",function(){return b});var i=n(0),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o="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};function s(e){return e&&("function"==typeof e||"object"===(void 0===e?"undefined":o(e)))}var a={resource:"aurelia:resource",paramTypes:"design:paramtypes",propertyType:"design:type",properties:"design:properties",get:function(e,t,n){if(s(t)){var i=a.getOwn(e,t,n);return void 0===i?a.get(e,Object.getPrototypeOf(t),n):i}},getOwn:function(e,t,n){if(s(t))return Reflect.getOwnMetadata(e,t,n)},define:function(e,t,n,i){Reflect.defineMetadata(e,t,n,i)},getOrCreateOwn:function(e,t,n,i){var r=a.getOwn(e,n,i);return void 0===r&&(r=new t,Reflect.defineMetadata(e,r,n,i)),r}},u=new Map,c=Object.freeze({moduleId:void 0,moduleMember:void 0}),l=function(){function e(e,t){this.moduleId=e,this.moduleMember=t}return e.get=function(t){var n=u.get(t);return void 0===n&&i.d.eachModule(function(i,r){if("object"===(void 0===r?"undefined":o(r)))for(var s in r){if(r[s]===t)return u.set(t,n=new e(i,s)),!0}return r===t&&(u.set(t,n=new e(i,"default")),!0)}),n||c},e.set=function(e,t){u.set(e,t)},e}();function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(e,n,i){var r=t.length;if(n){for(i=i||{value:e[n],writable:!0,configurable:!0,enumerable:!0};r--;)i=t[r](e,n,i)||i;Object.defineProperty(e,n,i)}else for(;r--;)e=t[r](e)||e;return e};return i.on=i,i}function p(e,t,n){function i(n,i,o){var s=n.constructor.name+"#"+i,a=t?{}:e||{},u="DEPRECATION - "+s;if("function"!=typeof o.value)throw new SyntaxError("Only methods can be marked as deprecated.");return a.message&&(u+=" - "+a.message),r({},o,{value:function(){if(a.error)throw new Error(u);return console.warn(u),o.value.apply(this,arguments)}})}return t?i(e,t,n):i}function d(e){var t=Object.keys(e);return function(n){var i=function(n){for(var i="function"==typeof n?n.prototype:n,r=t.length;r--;){var o=t[r];Object.defineProperty(i,o,{value:e[o],writable:!0})}};return n?i(n):i}}function f(){return!0}function v(){}function g(e){return void 0===e?e={}:"function"==typeof e&&(e={validate:e}),e.validate||(e.validate=f),e.compose||(e.compose=v),e}function m(e){return function(t){return!0===e(t)}}function y(e,t){return function(n){var i=t(n);if(!0!==i)throw new Error(i||e+" was not correctly implemented.")}}function b(e,t){t=g(t);var n=function n(i){var r="function"==typeof i?i.prototype:i;t.compose(r),n.assert(r),Object.defineProperty(r,"protocol:"+e,{enumerable:!1,configurable:!1,writable:!1,value:!0})};return n.validate=m(t.validate),n.assert=y(e,t.validate),n}b.create=function(e,t){t=g(t);var n="protocol:"+e,i=function(n){var i=b(e,t);return n?i(n):i};return i.decorates=function(e){return!0===e[n]},i.validate=m(t.validate),i.assert=y(e,t.validate),i}},10:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return a});var i=n(0),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o="function"==typeof e;function s(e){return function(){var t=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(t),clearInterval(n),e()}}}var a=function(){function t(){var e,t,n,r,o=this;this.flushing=!1,this.longStacks=!1,this.microTaskQueue=[],this.microTaskQueueCapacity=1024,this.taskQueue=[],i.c.mutationObserver?this.requestFlushMicroTaskQueue=(e=function(){return o.flushMicroTaskQueue()},t=1,n=i.b.createMutationObserver(e),r=i.b.createTextNode(""),n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}):this.requestFlushMicroTaskQueue=s(function(){return o.flushMicroTaskQueue()}),this.requestFlushTaskQueue=s(function(){return o.flushTaskQueue()})}return t.prototype._flushQueue=function(t,n){var i=0,s=void 0;try{for(this.flushing=!0;i<t.length;)if(s=t[i],this.longStacks&&(this.stack="string"==typeof s.stack?s.stack:void 0),s.call(),++i>n){for(var a=0,c=t.length-i;a<c;a++)t[a]=t[a+i];t.length-=i,i=0}}catch(t){!function(t,n,i){i&&n.stack&&"object"===(void 0===t?"undefined":r(t))&&null!==t&&(t.stack=u(t.stack)+n.stack),"onError"in n?n.onError(t):o?e(function(){throw t}):setTimeout(function(){throw t},0)}(t,s,this.longStacks)}finally{this.flushing=!1}},t.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)},t.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)},t.prototype.flushTaskQueue=function(){var e=this.taskQueue;this.taskQueue=[],this._flushQueue(e,Number.MAX_VALUE)},t.prototype.flushMicroTaskQueue=function(){var e=this.microTaskQueue;this._flushQueue(e,this.microTaskQueueCapacity),e.length=0},t.prototype.prepareQueueStack=function(e){var t=e+function(e){return e.replace(/^[\s\S]*?\bqueue(Micro)?Task\b[^\n]*\n/,"")}(function(){var e=new Error;if(e.stack)return e.stack;try{throw e}catch(e){return e.stack}}());return"string"==typeof this.stack&&(t=u(t)+this.stack),t},t}();function u(e){var t=e.lastIndexOf("flushMicroTaskQueue");return t<0&&(t=e.lastIndexOf("flushTaskQueue"))<0?e:(t=e.lastIndexOf("\n",t))<0?e:e.substr(0,t)}}).call(this,n(35).setImmediate)},11:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"b",function(){return a});var i=n(0),r="aurelia-hide",o="."+r+" { display:none !important; }";function s(){i.b.injectStyles(o)}function a(e){i.c.shadowDOM&&e&&!e.hasAureliaHideStyle&&(e.hasAureliaHideStyle=!0,i.b.injectStyles(o,e))}},12:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=["focus","if","else","repeat","show","hide","with"];function r(e){var t=e.type,n=null!==t.elementName?t.elementName:t.attributeName;return-1===i.indexOf(n)&&(t.handlesAttached||t.handlesBind||t.handlesCreated||t.handlesDetached||t.handlesUnbind)||t.viewFactory&&s(t.viewFactory)||e.viewFactory&&s(e.viewFactory)}function o(e){var t=e.behaviorInstructions;if(t)for(var n=t.length;n--;)if(r(t[n]))return!0;return e.viewFactory&&s(e.viewFactory)}function s(e){if("_viewsRequireLifecycle"in e)return e._viewsRequireLifecycle;if(e._viewsRequireLifecycle=!1,e.viewFactory)return e._viewsRequireLifecycle=s(e.viewFactory),e._viewsRequireLifecycle;if(e.template.querySelector(".au-animate"))return e._viewsRequireLifecycle=!0,!0;for(var t in e.instructions)if(o(e.instructions[t]))return e._viewsRequireLifecycle=!0,!0;return e._viewsRequireLifecycle=!1,!1}},13:function(e,t,n){"use strict";function i(e){throw new Error("History must implement "+e+"().")}n.d(t,"a",function(){return r});var r=function(){function e(){}return e.prototype.activate=function(e){i("activate")},e.prototype.deactivate=function(){i("deactivate")},e.prototype.getAbsoluteRoot=function(){i("getAbsoluteRoot")},e.prototype.navigate=function(e,t){i("navigate")},e.prototype.navigateBack=function(){i("navigateBack")},e.prototype.setTitle=function(e){i("setTitle")},e.prototype.setState=function(e,t){i("setState")},e.prototype.getState=function(e){i("getState")},e}()},14:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(3),r=function(){function e(){this.signals={}}return e.prototype.signal=function(e){var t=this.signals[e];if(t)for(var n=t.length;n--;)t[n].call(i.hb)},e}()},15:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,r=function(){function e(){}return e.prototype.sanitize=function(e){return e.replace(i,"")},e}()},16:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(e){Object.assign(this,{local:"items",viewsRequireLifecycle:!0},e)}return e.prototype.viewCount=function(){throw new Error("subclass must implement `viewCount`")},e.prototype.views=function(){throw new Error("subclass must implement `views`")},e.prototype.view=function(e){throw new Error("subclass must implement `view`")},e.prototype.matcher=function(){throw new Error("subclass must implement `matcher`")},e.prototype.addView=function(e,t){throw new Error("subclass must implement `addView`")},e.prototype.insertView=function(e,t,n){throw new Error("subclass must implement `insertView`")},e.prototype.moveView=function(e,t){throw new Error("subclass must implement `moveView`")},e.prototype.removeAllViews=function(e,t){throw new Error("subclass must implement `removeAllViews`")},e.prototype.removeViews=function(e,t,n){throw new Error("subclass must implement `removeView`")},e.prototype.removeView=function(e,t,n){throw new Error("subclass must implement `removeView`")},e.prototype.updateBindings=function(e){throw new Error("subclass must implement `updateBindings`")},e}()},17:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(5),r=function(){function e(){}return e.prototype.getCollectionObserver=function(){return null},e.prototype.instanceChanged=function(e,t){var n=this,i=e.removeAllViews(!0,!e.viewsRequireLifecycle);i instanceof Promise?i.then(function(){return n._standardProcessItems(e,t)}):this._standardProcessItems(e,t)},e.prototype._standardProcessItems=function(e,t){var n=e.viewCount(),r=void 0,o=void 0,s=void 0,a=void 0;if((a=n-(t=Math.floor(t)))>0)for(a>n&&(a=n),r=0,o=a;r<o;++r)e.removeView(n-(r+1),!0,!e.viewsRequireLifecycle);else{for(r=n,o=t;r<o;++r)s=Object(i.a)(e,r,r,o),e.addView(s.bindingContext,s);Object(i.h)(e.views(),0)}},e}()},18:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(5),r=function(){function e(){}return e.prototype.getCollectionObserver=function(e,t){return e.getSetObserver(t)},e.prototype.instanceChanged=function(e,t){var n=this,i=e.removeAllViews(!0,!e.viewsRequireLifecycle);i instanceof Promise?i.then(function(){return n._standardProcessItems(e,t)}):this._standardProcessItems(e,t)},e.prototype._standardProcessItems=function(e,t){var n=0,r=void 0;t.forEach(function(o){r=Object(i.a)(e,o,n,t.size),e.addView(r.bindingContext,r),++n})},e.prototype.instanceMutated=function(e,t,n){var r,o=void 0,s=void 0,a=void 0,u=void 0,c=void 0,l=[],h=void 0;for(s=0,r=n.length;s<r;++s)switch(o=(c=n[s]).value,c.type){case"add":var p=Math.max(t.size-1,0);a=Object(i.a)(e,o,p,t.size),e.insertView(p,a.bindingContext,a);break;case"delete":u=this._getViewIndexByValue(e,o),(h=e.removeView(u,!0,!e.viewsRequireLifecycle))instanceof Promise&&l.push(h);break;case"clear":e.removeAllViews(!0,!e.viewsRequireLifecycle);break;default:continue}l.length>0?Promise.all(l).then(function(){Object(i.h)(e.views(),0)}):Object(i.h)(e.views(),0)},e.prototype._getViewIndexByValue=function(e,t){var n,i=void 0;for(i=0,n=e.viewCount();i<n;++i)if(e.view(i).bindingContext[e.local]===t)return i},e}()},19:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(5),r=function(){function e(){}return e.prototype.getCollectionObserver=function(e,t){return e.getMapObserver(t)},e.prototype.instanceChanged=function(e,t){var n=this,i=e.removeAllViews(!0,!e.viewsRequireLifecycle);i instanceof Promise?i.then(function(){return n._standardProcessItems(e,t)}):this._standardProcessItems(e,t)},e.prototype._standardProcessItems=function(e,t){var n=0,r=void 0;t.forEach(function(o,s){r=Object(i.a)(e,o,n,t.size,s),e.addView(r.bindingContext,r),++n})},e.prototype.instanceMutated=function(e,t,n){var r,o=void 0,s=void 0,a=void 0,u=void 0,c=void 0,l=void 0,h=[],p=void 0;for(s=0,r=n.length;s<r;++s)switch(o=(l=n[s]).key,l.type){case"update":u=this._getViewIndexByKey(e,o),(p=e.removeView(u,!0,!e.viewsRequireLifecycle))instanceof Promise&&h.push(p),a=Object(i.a)(e,t.get(o),u,t.size,o),e.insertView(u,a.bindingContext,a);break;case"add":c=e.viewCount()<=t.size-1?e.viewCount():t.size-1,a=Object(i.a)(e,t.get(o),c,t.size,o),e.insertView(t.size-1,a.bindingContext,a);break;case"delete":if(void 0===l.oldValue)return;u=this._getViewIndexByKey(e,o),(p=e.removeView(u,!0,!e.viewsRequireLifecycle))instanceof Promise&&h.push(p);break;case"clear":e.removeAllViews(!0,!e.viewsRequireLifecycle);break;default:continue}h.length>0?Promise.all(h).then(function(){Object(i.h)(e.views(),0)}):Object(i.h)(e.views(),0)},e.prototype._getViewIndexByKey=function(e,t){var n,i=void 0;for(i=0,n=e.viewCount();i<n;++i)if(e.view(i).bindingContext[e.key]===t)return i},e}()},2:function(e,t,n){"use strict";n.d(t,"P",function(){return T}),n.d(t,"a",function(){return N}),n.d(t,"i",function(){return V}),n.d(t,"j",function(){return I}),n.d(t,"h",function(){return L}),n.d(t,"N",function(){return q}),n.d(t,"O",function(){return D}),n.d(t,"I",function(){return z}),n.d(t,"Ia",function(){return H}),n.d(t,"n",function(){return U}),n.d(t,"v",function(){return Q}),n.d(t,"F",function(){return G}),n.d(t,"b",function(){return $}),n.d(t,"B",function(){return K}),n.d(t,"Ka",function(){return X}),n.d(t,"t",function(){return Y}),n.d(t,"l",function(){return J}),n.d(t,"r",function(){return Z}),n.d(t,"C",function(){return ee}),n.d(t,"p",function(){return te}),n.d(t,"K",function(){return ne}),n.d(t,"e",function(){return re}),n.d(t,"z",function(){return se}),n.d(t,"s",function(){return ae}),n.d(t,"y",function(){return ue}),n.d(t,"x",function(){return ce}),n.d(t,"L",function(){return he}),n.d(t,"E",function(){return pe}),n.d(t,"M",function(){return de}),n.d(t,"f",function(){return ke}),n.d(t,"J",function(){return Ce}),n.d(t,"G",function(){return Ee}),n.d(t,"w",function(){return Ae}),n.d(t,"u",function(){return Pe}),n.d(t,"q",function(){return Re}),n.d(t,"H",function(){return Ne}),n.d(t,"k",function(){return Ve}),n.d(t,"c",function(){return Ie}),n.d(t,"d",function(){return Fe}),n.d(t,"o",function(){return ze}),n.d(t,"T",function(){return Ue}),n.d(t,"S",function(){return We}),n.d(t,"A",function(){return Je}),n.d(t,"g",function(){return et}),n.d(t,"m",function(){return tt}),n.d(t,"Da",function(){return it}),n.d(t,"Q",function(){return rt}),n.d(t,"W",function(){return ot}),n.d(t,"V",function(){return st}),n.d(t,"Ea",function(){return at}),n.d(t,"R",function(){return ut}),n.d(t,"X",function(){return ct}),n.d(t,"Fa",function(){return ht}),n.d(t,"Ba",function(){return pt}),n.d(t,"Ca",function(){return ft}),n.d(t,"U",function(){return vt}),n.d(t,"Ha",function(){return gt}),n.d(t,"Ga",function(){return mt}),n.d(t,"Z",function(){return yt}),n.d(t,"Aa",function(){return bt}),n.d(t,"Y",function(){return wt}),n.d(t,"Ja",function(){return xt}),n.d(t,"D",function(){return kt});var i,r,o,s,a,u,c,l,h,p,d,f,v,g,m,y,b,w,x,k,C=n(6),_=n(1),O=n(0),S=n(7),E=n(8),A=n(4),P=n(3),R=n(10),j=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T={enterBegin:"animation:enter:begin",enterActive:"animation:enter:active",enterDone:"animation:enter:done",enterTimeout:"animation:enter:timeout",leaveBegin:"animation:leave:begin",leaveActive:"animation:leave:active",leaveDone:"animation:leave:done",leaveTimeout:"animation:leave:timeout",staggerNext:"animation:stagger:next",removeClassBegin:"animation:remove-class:begin",removeClassActive:"animation:remove-class:active",removeClassDone:"animation:remove-class:done",removeClassTimeout:"animation:remove-class:timeout",addClassBegin:"animation:add-class:begin",addClassActive:"animation:add-class:active",addClassDone:"animation:add-class:done",addClassTimeout:"animation:add-class:timeout",animateBegin:"animation:animate:begin",animateActive:"animation:animate:active",animateDone:"animation:animate:done",animateTimeout:"animation:animate:timeout",sequenceBegin:"animation:sequence:begin",sequenceDone:"animation:sequence:done"},N=function(){function e(){}return e.prototype.enter=function(e){return Promise.resolve(!1)},e.prototype.leave=function(e){return Promise.resolve(!1)},e.prototype.removeClass=function(e,t){return e.classList.remove(t),Promise.resolve(!1)},e.prototype.addClass=function(e,t){return e.classList.add(t),Promise.resolve(!1)},e.prototype.animate=function(e,t){return Promise.resolve(!1)},e.prototype.runSequence=function(e){},e.prototype.registerEffect=function(e,t){},e.prototype.unregisterEffect=function(e){},e}(),V=function(){function e(e){this.owner=e,this.owner._compositionCount++}return e.prototype.done=function(){this.owner._compositionCount--,this.owner._tryCompleteTransaction()},e}(),I=function(){function e(e){this.owner=e,this.owner._ownershipToken=this,this.thenable=this._createThenable()}return e.prototype.waitForCompositionComplete=function(){return this.owner._tryCompleteTransaction(),this.thenable},e.prototype.resolve=function(){this._resolveCallback()},e.prototype._createThenable=function(){var e=this;return new Promise(function(t,n){e._resolveCallback=t})},e}(),L=function(){function e(){this._ownershipToken=null,this._compositionCount=0}return e.prototype.tryCapture=function(){return null===this._ownershipToken?new I(this):null},e.prototype.enlist=function(){return new V(this)},e.prototype._tryCompleteTransaction=function(){if(this._compositionCount<=0&&(this._compositionCount=0,null!==this._ownershipToken)){var e=this._ownershipToken;this._ownershipToken=null,e.resolve()}},e}(),F=/([A-Z])/g;function B(e){return"-"+e.toLowerCase()}function q(e){return(e.charAt(0).toLowerCase()+e.slice(1)).replace(F,B)}function D(e){return!(e.auInterpolationTarget||/[^\t\n\r ]/.test(e.textContent))}var z=function(){function e(){}return e.prototype.initialize=function(e,t){this.instance=e.get(t)},e.prototype.register=function(e,t){e.registerViewEngineHooks(this.instance)},e.prototype.load=function(e,t){},e.convention=function(t){if(t.endsWith("ViewEngineHooks"))return new e},e}();function H(e){var t=function(e){_.d.define(_.d.resource,new z,e)};return e?t(e):t}var U=function(){function e(e){this.element=e,this.subscriptions={}}return e.prototype._enqueueHandler=function(e){this.subscriptions[e.eventName]=this.subscriptions[e.eventName]||[],this.subscriptions[e.eventName].push(e)},e.prototype._dequeueHandler=function(e){var t=void 0,n=this.subscriptions[e.eventName];return n&&(t=n.indexOf(e))>-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],r=O.b.createCustomEvent(e,{cancelable:i,bubbles:n,detail:t});this.element.dispatchEvent(r)},e.prototype.subscribe=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("function"==typeof t)return new W(this,e,t,n,!1)},e.prototype.subscribeOnce=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("function"==typeof t)return new W(this,e,t,n,!0)},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}(),W=function(){function e(e,t,n,i,r){this.owner=e,this.eventName=t,this.handler=n,this.capture="boolean"==typeof i?i:i.capture,this.bubbles=!this.capture,this.captureOrOptions=i,this.once=r,e.element.addEventListener(t,this,i),e._enqueueHandler(this)}return e.prototype.handleEvent=function(e){(0,this.handler)(e),this.once&&this.dispose()},e.prototype.dispose=function(){this.owner.element.removeEventListener(this.eventName,this,this.captureOrOptions),this.owner._dequeueHandler(this),this.owner=this.handler=null},e}(),Q=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}(),G=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};G.normal=new G;var $=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 i=new e;return i.type=t,i.attributes=n||{},i},e.element=function(t,n){var i=new e;return i.type=n,i.attributes={},i.anchorIsContainer=!(t.hasAttribute("containerless")||n.containerless),i.initiatedByBehavior=!0,i},e.attribute=function(t,n){var i=new e;return i.attrName=t,i.type=n||null,i.attributes={},i},e.dynamic=function(t,n,i){var r=new e;return r.host=t,r.viewModel=n,r.viewFactory=i,r.inheritBindingContext=!0,r},e}();$.normal=new $;var K=(r=i=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 i=new e;return i.parentInjectorId=t,i.expressions=e.noExpressions,i.behaviorInstructions=[n],i.viewFactory=n.viewFactory,i.providers=[n.type.target],i.lifting=!0,i},e.normal=function(t,n,i,r,o,s){var a=new e;return a.injectorId=t,a.parentInjectorId=n,a.providers=i,a.behaviorInstructions=r,a.expressions=o,a.anchorIsContainer=!s||s.anchorIsContainer,a.elementInstruction=s,a},e.surrogate=function(t,n,i,r){var o=new e;return o.expressions=i,o.behaviorInstructions=n,o.providers=t,o.values=r,o},e}(),i.noExpressions=Object.freeze([]),r),X=_.f.create("aurelia:view-strategy",{validate:function(e){return"function"==typeof e.loadViewFactory||"View strategies must implement: loadViewFactory(viewEngine: ViewEngine, compileInstruction: ViewCompileInstruction, loadContext?: ResourceLoadContext): Promise<ViewFactory>"},compose:function(e){"function"!=typeof e.makeRelativeTo&&(e.makeRelativeTo=O.d.noop)}}),Y=X()(o=function(){function e(e){this.path=e,this.absolutePath=null}return e.prototype.loadViewFactory=function(e,t,n,i){return null===this.absolutePath&&this.moduleId&&(this.absolutePath=Object(S.d)(this.path,this.moduleId)),t.associatedModuleId=this.moduleId,e.loadViewFactory(this.absolutePath||this.path,t,n,i)},e.prototype.makeRelativeTo=function(e){null===this.absolutePath&&(this.absolutePath=Object(S.d)(this.path,e))},e}())||o,J=X()(s=function(){function e(e,t){this.moduleId=t.moduleId,this.viewUrl=e.convertOriginToViewUrl(t)}return e.prototype.loadViewFactory=function(e,t,n,i){return t.associatedModuleId=this.moduleId,e.loadViewFactory(this.viewUrl,t,n,i)},e}())||s,Z=X()(a=function(){function e(e,t){this.dependencies=e||null,this.dependencyBaseUrl=t||""}return e.prototype.loadViewFactory=function(e,t,n,i){var r=this.entry,o=this.dependencies;if(r&&r.factoryIsReady)return Promise.resolve(null);if(this.entry=r=new E.c(this.moduleId||this.dependencyBaseUrl),r.dependencies=[],r.templateIsLoaded=!0,null!==o)for(var s=0,a=o.length;s<a;++s){var u=o[s];"string"==typeof u||"function"==typeof u?r.addDependency(u):r.addDependency(u.from,u.as)}return t.associatedModuleId=this.moduleId,e.loadViewFactory(r,t,n,i)},e}())||a,ee=X()(u=function(){function e(e,t){this.moduleId=e,this.entry=t}return e.prototype.loadViewFactory=function(e,t,n,i){var r=this.entry;return r.factoryIsReady?Promise.resolve(r.factory):(t.associatedModuleId=this.moduleId,e.loadViewFactory(r,t,n,i))},e}())||u,te=X()(c=function(){function e(e,t,n){this.markup=e,this.dependencies=t||null,this.dependencyBaseUrl=n||""}return e.prototype.loadViewFactory=function(e,t,n,i){var r=this.entry,o=this.dependencies;if(r&&r.factoryIsReady)return Promise.resolve(r.factory);if(this.entry=r=new E.c(this.moduleId||this.dependencyBaseUrl),r.template=O.b.createTemplateFromMarkup(this.markup),null!==o)for(var s=0,a=o.length;s<a;++s){var u=o[s];"string"==typeof u||"function"==typeof u?r.addDependency(u):r.addDependency(u.from,u.as)}return t.associatedModuleId=this.moduleId,e.loadViewFactory(r,t,n,i)},e}())||c,ne=(h=l=function(){function e(){}return e.prototype.getViewStrategy=function(t){if(!t)return null;if("object"===(void 0===t?"undefined":M(t))&&"getViewStrategy"in t){var n=_.a.get(t.constructor);return"string"==typeof(t=t.getViewStrategy())&&(t=new Y(t)),X.assert(t),n.moduleId&&t.makeRelativeTo(n.moduleId),t}if("string"==typeof t&&(t=new Y(t)),X.validate(t))return t;"function"!=typeof t&&(t=t.constructor);var i=_.a.get(t),r=_.d.get(e.viewStrategyMetadataKey,t);if(r)i.moduleId&&(r.moduleId=i.moduleId);else{if(!i.moduleId)throw new Error("Cannot determine default view strategy for object.",t);r=this.createFallbackViewStrategy(i)}return r},e.prototype.createFallbackViewStrategy=function(e){return new J(this,e)},e.prototype.convertOriginToViewUrl=function(e){var t=e.moduleId;return(t.endsWith(".js")||t.endsWith(".ts")?t.substring(0,t.length-3):t)+".html"},e}(),l.viewStrategyMetadataKey="aurelia:view-strategy",h);function ie(e){throw new Error("BindingLanguage must implement "+e+"().")}var re=function(){function e(){}return e.prototype.inspectAttribute=function(e,t,n,i){ie("inspectAttribute")},e.prototype.createAttributeInstruction=function(e,t,n,i){ie("createAttributeInstruction")},e.prototype.inspectTextContent=function(e,t){ie("inspectTextContent")},e}(),oe=Object.freeze([]),se=Object(A.r)(O.b.Element)(p=function(){function e(e){this.element=e,this.element.auSlotAttribute=this}return e.prototype.valueChanged=function(e,t){},e}())||p,ae=function(){function e(e,t,n,i){this.anchor=e,this.anchor.viewSlot=this,this.name=t,this.destinationName=n,this.fallbackFactory=i,this.destinationSlot=null,this.projections=0,this.contentView=null,new se(this.anchor).value=this.destinationName}return e.prototype.renderFallbackContent=function(e,t,n,i){if(null===this.contentView){this.contentView=this.fallbackFactory.create(this.ownerView.container),this.contentView.bind(this.ownerView.bindingContext,this.ownerView.overrideContext);var r=Object.create(null);r[this.destinationSlot.name]=this.destinationSlot,ce.distributeView(this.contentView,r,n,i,this.destinationSlot.name)}},e.prototype.passThroughTo=function(e){this.destinationSlot=e},e.prototype.addNode=function(t,n,i,r){null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),n.viewSlot instanceof e?n.viewSlot.passThroughTo(this):(this.projections++,this.destinationSlot.addNode(t,n,i,r))},e.prototype.removeView=function(e,t){this.projections--,this.destinationSlot.removeView(e,t),this.needsFallbackRendering&&this.renderFallbackContent(null,oe,t)},e.prototype.removeAll=function(e){this.projections=0,this.destinationSlot.removeAll(e),this.needsFallbackRendering&&this.renderFallbackContent(null,oe,e)},e.prototype.projectFrom=function(e,t){this.destinationSlot.projectFrom(e,t)},e.prototype.created=function(e){this.ownerView=e},e.prototype.bind=function(e){this.contentView&&this.contentView.bind(e.bindingContext,e.overrideContext)},e.prototype.attached=function(){this.contentView&&this.contentView.attached()},e.prototype.detached=function(){this.contentView&&this.contentView.detached()},e.prototype.unbind=function(){this.contentView&&this.contentView.unbind()},j(e,[{key:"needsFallbackRendering",get:function(){return this.fallbackFactory&&0===this.projections}}]),e}(),ue=function(){function e(e,t,n){this.anchor=e,this.anchor.isContentProjectionSource=!0,this.anchor.viewSlot=this,this.name=t,this.fallbackFactory=n,this.contentView=null,this.projections=0,this.children=[],this.projectFromAnchors=null,this.destinationSlots=null}return e.prototype.addNode=function(e,t,n,i,r){if(null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),t.viewSlot instanceof ae)t.viewSlot.passThroughTo(this);else if(null!==this.destinationSlots)ce.distributeNodes(e,[t],this.destinationSlots,this,i);else{t.auOwnerView=e,t.auProjectionSource=n,t.auAssignedSlot=this;var o=this._findAnchor(e,t,n,i);o.parentNode.insertBefore(t,o),this.children.push(t),this.projections++}},e.prototype.removeView=function(e,t){if(null!==this.destinationSlots)ce.undistributeView(e,this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)ce.undistributeView(e,this.contentView.slots,t);else{var n=this.children.find(function(e){return e.auSlotProjectFrom===t});if(n){for(var i=n.auProjectionChildren,r=0,o=i.length;r<o;++r){var s=i[r];s.auOwnerView===e&&(i.splice(r,1),e.fragment.appendChild(s),r--,o--,this.projections--)}this.needsFallbackRendering&&this.renderFallbackContent(e,oe,t)}}},e.prototype.removeAll=function(e){if(null!==this.destinationSlots)ce.undistributeAll(this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)ce.undistributeAll(this.contentView.slots,e);else{var t=this.children.find(function(t){return t.auSlotProjectFrom===e});if(t){for(var n=t.auProjectionChildren,i=0,r=n.length;i<r;++i){var o=n[i];o.auOwnerView.fragment.appendChild(o),this.projections--}t.auProjectionChildren=[],this.needsFallbackRendering&&this.renderFallbackContent(null,oe,e)}}},e.prototype._findAnchor=function(e,t,n,i){if(n){var r=this.children.find(function(e){return e.auSlotProjectFrom===n});if(r){if(void 0!==i)for(var o=r.auProjectionChildren,s=-1,a=void 0,u=0,c=o.length;u<c;++u){var l=o[u];if(l.auOwnerView!==a&&(s++,a=l.auOwnerView,s>=i&&a!==e))return o.splice(u,0,t),l}return r.auProjectionChildren.push(t),r}}return this.anchor},e.prototype.projectTo=function(e){this.destinationSlots=e},e.prototype.projectFrom=function(e,t){var n=O.b.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,i){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 r=this.contentView.slots,o=this.projectFromAnchors;if(null!==o)for(var s in r)for(var a=r[s],u=0,c=o.length;u<c;++u){var l=o[u];a.projectFrom(l.auOwnerView,l.auSlotProjectFrom)}this.fallbackSlots=r,ce.distributeNodes(e,t,r,n,i)}},e.prototype.created=function(e){this.ownerView=e},e.prototype.bind=function(e){this.contentView&&this.contentView.bind(e.bindingContext,e.overrideContext)},e.prototype.attached=function(){this.contentView&&this.contentView.attached()},e.prototype.detached=function(){this.contentView&&this.contentView.detached()},e.prototype.unbind=function(){this.contentView&&this.contentView.unbind()},j(e,[{key:"needsFallbackRendering",get:function(){return this.fallbackFactory&&0===this.projections}}]),e}(),ce=(f=d=function(){function e(){}return e.getSlotName=function(t){return void 0===t.auSlotAttribute?e.defaultSlotKey:t.auSlotAttribute.value},e.distributeView=function(t,n,i,r,o){var s=void 0;if(null===t)s=oe;else{var a=t.fragment.childNodes,u=a.length;s=new Array(u);for(var c=0;c<u;++c)s[c]=a[c]}e.distributeNodes(t,s,n,i,r,o)},e.undistributeView=function(e,t,n){for(var i in t)t[i].removeView(e,n)},e.undistributeAll=function(e,t){for(var n in e)e[n].removeAll(t)},e.distributeNodes=function(t,n,i,r,o,s){for(var a=0,u=n.length;a<u;++a){var c=n[a],l=c.nodeType;if(c.isContentProjectionSource){for(var h in c.viewSlot.projectTo(i),i)i[h].projectFrom(t,c.viewSlot);n.splice(a,1),u--,a--}else if(1===l||3===l||c.viewSlot instanceof ae)if(3===l&&D(c))n.splice(a,1),u--,a--;else{var p=i[s||e.getSlotName(c)];p&&(p.addNode(t,c,r,o),n.splice(a,1),u--,a--)}else n.splice(a,1),u--,a--}for(var d in i){var f=i[d];f.needsFallbackRendering&&f.renderFallbackContent(t,n,r,o)}},e}(),d.defaultSlotKey="__au-default-slot-key__",f);function le(e,t,n,i){if(t){var r=e[t];if(r){if(r!==n)throw new Error("Attempted to register "+i+" when one with the same name already exists. Name: "+t+".")}else e[t]=n}}var he=function(){function e(e,t){this.bindingLanguage=null,this.parent=e||null,this.hasParent=null!==this.parent,this.viewUrl=t||"",this.lookupFunctions={valueConverters:this.getValueConverter.bind(this),bindingBehaviors:this.getBindingBehavior.bind(this)},this.attributes=Object.create(null),this.elements=Object.create(null),this.valueConverters=Object.create(null),this.bindingBehaviors=Object.create(null),this.attributeMap=Object.create(null),this.values=Object.create(null),this.beforeCompile=this.afterCompile=this.beforeCreate=this.afterCreate=this.beforeBind=this.beforeUnbind=!1}return e.prototype._tryAddHook=function(e,t){if("function"==typeof e[t]){for(var n=e[t].bind(e),i=1,r=void 0;void 0!==this[r=t+i.toString()];)i++;this[t]=!0,this[r]=n}},e.prototype._invokeHook=function(e,t,n,i,r){if(this.hasParent&&this.parent._invokeHook(e,t,n,i,r),this[e]){this[e+"1"](t,n,i,r);var o=e+"2";if(this[o]&&(this[o](t,n,i,r),this[o=e+"3"])){this[o](t,n,i,r);for(var s=4;void 0!==this[o=e+s.toString()];)this[o](t,n,i,r),s++}}},e.prototype.registerViewEngineHooks=function(e){this._tryAddHook(e,"beforeCompile"),this._tryAddHook(e,"afterCompile"),this._tryAddHook(e,"beforeCreate"),this._tryAddHook(e,"afterCreate"),this._tryAddHook(e,"beforeBind"),this._tryAddHook(e,"beforeUnbind")},e.prototype.getBindingLanguage=function(e){return this.bindingLanguage||(this.bindingLanguage=e)},e.prototype.patchInParent=function(e){var t=this.parent;this.parent=e||null,this.hasParent=null!==this.parent,null===e.parent&&(e.parent=t,e.hasParent=null!==t)},e.prototype.relativeToView=function(e){return Object(S.d)(e,this.viewUrl)},e.prototype.registerElement=function(e,t){le(this.elements,e,t,"an Element")},e.prototype.getElement=function(e){return this.elements[e]||(this.hasParent?this.parent.getElement(e):null)},e.prototype.mapAttribute=function(e){return this.attributeMap[e]||(this.hasParent?this.parent.mapAttribute(e):null)},e.prototype.registerAttribute=function(e,t,n){this.attributeMap[e]=n,le(this.attributes,e,t,"an Attribute")},e.prototype.getAttribute=function(e){return this.attributes[e]||(this.hasParent?this.parent.getAttribute(e):null)},e.prototype.registerValueConverter=function(e,t){le(this.valueConverters,e,t,"a ValueConverter")},e.prototype.getValueConverter=function(e){return this.valueConverters[e]||(this.hasParent?this.parent.getValueConverter(e):null)},e.prototype.registerBindingBehavior=function(e,t){le(this.bindingBehaviors,e,t,"a BindingBehavior")},e.prototype.getBindingBehavior=function(e){return this.bindingBehaviors[e]||(this.hasParent?this.parent.getBindingBehavior(e):null)},e.prototype.registerValue=function(e,t){le(this.values,e,t,"a value")},e.prototype.getValue=function(e){return this.values[e]||(this.hasParent?this.parent.getValue(e):null)},e}(),pe=function(){function e(e,t,n,i,r,o,s){for(var a in this.container=e,this.viewFactory=t,this.resources=t.resources,this.fragment=n,this.firstChild=n.firstChild,this.lastChild=n.lastChild,this.controllers=i,this.bindings=r,this.children=o,this.slots=s,this.hasSlots=!1,this.fromCache=!1,this.isBound=!1,this.isAttached=!1,this.bindingContext=null,this.overrideContext=null,this.controller=null,this.viewModelScope=null,this.animatableElement=void 0,this._isUserControlled=!1,this.contentView=null,s){this.hasSlots=!0;break}}return e.prototype.returnToCache=function(){this.viewFactory.returnViewToCache(this)},e.prototype.created=function(){var e,t=void 0,n=this.controllers;for(t=0,e=n.length;t<e;++t)n[t].created(this)},e.prototype.bind=function(e,t,n){var i=void 0,r=void 0,o=void 0,s=void 0,a=void 0;if(!n||!this._isUserControlled){if(this.isBound){if(this.bindingContext===e)return;this.unbind()}for(this.isBound=!0,this.bindingContext=e,this.overrideContext=t||Object(P.Na)(e),this.resources._invokeHook("beforeBind",this),s=0,a=(r=this.bindings).length;s<a;++s)r[s].bind(this);for(null!==this.viewModelScope&&(e.bind(this.viewModelScope.bindingContext,this.viewModelScope.overrideContext),this.viewModelScope=null),s=0,a=(i=this.controllers).length;s<a;++s)i[s].bind(this);for(s=0,a=(o=this.children).length;s<a;++s)o[s].bind(e,t,!0);this.hasSlots&&ce.distributeView(this.contentView,this.slots)}},e.prototype.addBinding=function(e){this.bindings.push(e),this.isBound&&e.bind(this)},e.prototype.unbind=function(){var e=void 0,t=void 0,n=void 0,i=void 0,r=void 0;if(this.isBound){for(this.isBound=!1,this.resources._invokeHook("beforeUnbind",this),null!==this.controller&&this.controller.unbind(),i=0,r=(t=this.bindings).length;i<r;++i)t[i].unbind();for(i=0,r=(e=this.controllers).length;i<r;++i)e[i].unbind();for(i=0,r=(n=this.children).length;i<r;++i)n[i].unbind();this.bindingContext=null,this.overrideContext=null}},e.prototype.insertNodesBefore=function(e){e.parentNode.insertBefore(this.fragment,e)},e.prototype.appendNodesTo=function(e){e.appendChild(this.fragment)},e.prototype.removeNodes=function(){for(var e=this.fragment,t=this.firstChild,n=this.lastChild,i=void 0;t&&(i=t.nextSibling,e.appendChild(t),t!==n);)t=i},e.prototype.attached=function(){var e=void 0,t=void 0,n=void 0,i=void 0;if(!this.isAttached){for(this.isAttached=!0,null!==this.controller&&this.controller.attached(),n=0,i=(e=this.controllers).length;n<i;++n)e[n].attached();for(n=0,i=(t=this.children).length;n<i;++n)t[n].attached()}},e.prototype.detached=function(){var e=void 0,t=void 0,n=void 0,i=void 0;if(this.isAttached){for(this.isAttached=!1,null!==this.controller&&this.controller.detached(),n=0,i=(e=this.controllers).length;n<i;++n)e[n].detached();for(n=0,i=(t=this.children).length;n<i;++n)t[n].detached()}},e}();var de=function(){function e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N.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=function(e){if(void 0!==e.animatableElement)return e.animatableElement;for(var t=e.firstChild;t&&1!==t.nodeType;)t=t.nextSibling;return t&&1===t.nodeType?e.animatableElement=t.classList.contains("au-animate")?t:null:e.animatableElement=null}(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,i=void 0,r=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=0,n=(r=this.children).length;i<n;++i)r[i].bind(e,t,!0)},e.prototype.unbind=function(){if(this.isBound){var e,t=void 0,n=this.children;for(this.isBound=!1,this.bindingContext=null,this.overrideContext=null,t=0,e=n.length;t<e;++t)n[t].unbind()}},e.prototype.add=function(e){if(this.anchorIsContainer?e.appendNodesTo(this.anchor):e.insertNodesBefore(this.anchor),this.children.push(e),this.isAttached)return e.attached(),this.animateView(e,"enter")},e.prototype.insert=function(e,t){var n=this.children,i=n.length;return 0===e&&0===i||e>=i?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,i=n[e];i.removeNodes(),i.insertNodesBefore(n[t].firstChild),n.splice(e,1),n.splice(t,0,i)}},e.prototype.remove=function(e,t,n){return this.removeAt(this.children.indexOf(e),t,n)},e.prototype.removeMany=function(e,t,n){var i=this,r=this.children,o=e.length,s=void 0,a=[];e.forEach(function(e){if(n)e.removeNodes();else{var t=i.animateView(e,"leave");t?a.push(t.then(function(){return e.removeNodes()})):e.removeNodes()}});var u=function(){if(i.isAttached)for(s=0;s<o;++s)e[s].detached();if(t)for(s=0;s<o;++s)e[s].returnToCache();for(s=0;s<o;++s){var n=r.indexOf(e[s]);n>=0&&r.splice(n,1)}};return a.length>0?Promise.all(a).then(function(){return u()}):u()},e.prototype.removeAt=function(e,t,n){var i=this,r=this.children[e],o=function(){return e=i.children.indexOf(r),r.removeNodes(),i.children.splice(e,1),i.isAttached&&r.detached(),t&&r.returnToCache(),r};if(!n){var s=this.animateView(r,"leave");if(s)return s.then(function(){return o()})}return o()},e.prototype.removeAll=function(e,t){var n=this,i=this.children,r=i.length,o=void 0,s=[];i.forEach(function(e){if(t)e.removeNodes();else{var i=n.animateView(e,"leave");i?s.push(i.then(function(){return e.removeNodes()})):e.removeNodes()}});var a=function(){if(n.isAttached)for(o=0;o<r;++o)i[o].detached();if(e)for(o=0;o<r;++o){var t=i[o];t&&t.returnToCache()}n.children=[]};return s.length>0?Promise.all(s).then(function(){return a()}):a()},e.prototype.attached=function(){var e,t,n=void 0,i=void 0;if(!this.isAttached)for(this.isAttached=!0,n=0,e=(t=this.children).length;n<e;++n)(i=t[n]).attached(),this.animateView(i,"enter")},e.prototype.detached=function(){var e=void 0,t=void 0,n=void 0;if(this.isAttached)for(this.isAttached=!1,e=0,t=(n=this.children).length;e<t;++e)n[e].detached()},e.prototype.projectTo=function(e){var t=this;this.projectToSlots=e,this.add=this._projectionAdd,this.insert=this._projectionInsert,this.move=this._projectionMove,this.remove=this._projectionRemove,this.removeAt=this._projectionRemoveAt,this.removeMany=this._projectionRemoveMany,this.removeAll=this._projectionRemoveAll,this.children.forEach(function(n){return ce.distributeView(n,e,t)})},e.prototype._projectionAdd=function(e){ce.distributeView(e,this.projectToSlots,this),this.children.push(e),this.isAttached&&e.attached()},e.prototype._projectionInsert=function(e,t){0===e&&!this.children.length||e>=this.children.length?this.add(t):(ce.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,i=n[e];ce.undistributeView(i,this.projectToSlots,this),ce.distributeView(i,this.projectToSlots,this,t),n.splice(e,1),n.splice(t,0,i)}},e.prototype._projectionRemove=function(e,t){ce.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];ce.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){ce.undistributeAll(this.projectToSlots,this);var t=this.children;if(this.isAttached)for(var n=0,i=t.length;n<i;++n)t[n].detached();this.children=[]},e}(),fe=new(Object(A.z)(v=function(){function e(){}return e.prototype.get=function(e,t){var n=t.__providerId__;return n in e?e[n]:e[n]=e.invoke(t)},e}())||v);function ve(e){if(e===O.b.Element)return this.element;if(e===ke){if(this.boundViewFactory)return this.boundViewFactory;var t=this.instruction.viewFactory,n=this.partReplacements;return n&&(t=n[t.part]||t),this.boundViewFactory=new ke(this,t,n),this.boundViewFactory}return e===de?(void 0===this.viewSlot&&(this.viewSlot=new de(this.element,this.instruction.anchorIsContainer),this.element.isContentProjectionSource=this.instruction.lifting,this.children.push(this.viewSlot)),this.viewSlot):e===U?this.elementEvents||(this.elementEvents=new U(this.element)):e===L?this.compositionTransaction||(this.compositionTransaction=this.parent.get(e)):e===he?this.viewResources:e===K?this.instruction:this.superGet(e)}function ge(e){return this._element.hasAttribute(e)}function me(e){return this._element.getAttribute(e)}function ye(e,t){this._element.setAttribute(e,t)}function be(e,t,n,i,r,o,s,a,u){var c=n.behaviorInstructions,l=n.expressions,h=void 0,p=void 0,d=void 0,f=void 0,v=void 0;if(n.contentExpression)return r.push(n.contentExpression.createBinding(t.nextSibling)),t.nextSibling.auInterpolationTarget=!0,void t.parentNode.removeChild(t);if(n.shadowSlot){var g=O.b.createComment("slot"),m=void 0;return m=n.slotDestination?new ae(g,n.slotName,n.slotDestination,n.slotFallbackFactory):new ue(g,n.slotName,n.slotFallbackFactory),O.b.replaceNode(g,t),s[n.slotName]=m,void i.push(m)}if(c.length)for(n.anchorIsContainer||(t=function(e,t){var n=O.b.createComment("anchor");if(t){var i=e.firstChild;i&&"AU-CONTENT"===i.tagName&&(n.contentElement=i),n._element=e,n.hasAttribute=ge,n.getAttribute=me,n.setAttribute=ye}return O.b.replaceNode(n,e),n}(t,n.elementInstruction)),e[n.injectorId]=h=function(e,t,n,i,r,o){var s,a=e.createChild(),u=void 0;for(a.element=t,a.instruction=n,a.children=i,a.viewResources=o,a.partReplacements=r,u=(s=n.providers).length;u--;)a._resolvers.set(s[u],fe);return a.superGet=a.get,a.get=ve,a}(e[n.parentInjectorId],t,n,o,a,u),p=0,d=c.length;p<d;++p)v=(f=c[p]).type.create(h,f,t,r),i.push(v);for(p=0,d=l.length;p<d;++p)r.push(l[p].createBinding(t))}function we(e,t){var n=e.split(";"),i=void 0,r=void 0,o=void 0,s=void 0,a=void 0;for(t=t||{},r=0;r<n.length;r++)i=(o=n[r]).indexOf(":"),s=o.substring(0,i).trim(),a=o.substring(i+1).trim(),t[s]=a;return t}function xe(e){var t="";for(var n in e)t+=n+":"+e[n]+";";return t}var ke=function(){function e(e,t,n){this.parentContainer=e,this.viewFactory=t,this.factoryCreateInstruction={partReplacements:n}}return e.prototype.create=function(){var e=this.viewFactory.create(this.parentContainer.createChild(),this.factoryCreateInstruction);return e._isUserControlled=!0,e},e.prototype.setCacheSize=function(e,t){this.viewFactory.setCacheSize(e,t)},e.prototype.getCachedView=function(){return this.viewFactory.getCachedView()},e.prototype.returnViewToCache=function(e){this.viewFactory.returnViewToCache(e)},j(e,[{key:"isCaching",get:function(){return this.viewFactory.isCaching}}]),e}(),Ce=function(){function e(e,t,n){this.isCaching=!1,this.template=e,this.instructions=t,this.resources=n,this.cacheSize=-1,this.cache=null}return e.prototype.setCacheSize=function(e,t){e&&("*"===e?e=Number.MAX_VALUE:"string"==typeof e&&(e=parseInt(e,10))),-1!==this.cacheSize&&t||(this.cacheSize=e),this.cacheSize>0?this.cache=[]:this.cache=null,this.isCaching=this.cacheSize>0},e.prototype.getCachedView=function(){return null!==this.cache&&this.cache.pop()||null},e.prototype.returnViewToCache=function(e){e.isAttached&&e.detached(),e.isBound&&e.unbind(),null!==this.cache&&this.cache.length<this.cacheSize&&(e.fromCache=!0,this.cache.push(e))},e.prototype.create=function(e,t,n){t=t||$.normal;var i=this.getCachedView();if(null!==i)return i;v