@jeraldj/client-services 8.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +330 -0
- package/__test__/setup.d.ts +2 -0
- package/blocs/group-addable/cs-group-addable-bloc.d.ts +20 -0
- package/blocs/index.d.ts +1 -0
- package/blocs/index.js +2 -0
- package/blocs/index.js.LICENSE.txt +14 -0
- package/core/cs-client-storage.d.ts +5 -0
- package/core/cs-error.d.ts +5 -0
- package/core/http-service/errors/cs-http-client-error.d.ts +8 -0
- package/core/http-service/errors/cs-http-server-error.d.ts +8 -0
- package/core/http-service/errors/cs-network-error.d.ts +6 -0
- package/core/http-service/errors/cs-request-builder-error.d.ts +4 -0
- package/core/http-service/errors/index.d.ts +5 -0
- package/core/http-service/implementation/http-client-adapters/http-client-browser-adapter.d.ts +20 -0
- package/core/http-service/implementation/http-client-adapters/http-client-cordova-adapter.d.ts +21 -0
- package/core/http-service/implementation/http-client-adapters/http-client.d.ts +14 -0
- package/core/http-service/implementation/http-service-impl.d.ts +36 -0
- package/core/http-service/implementation/interceptors/bearer-token-inject-request-interceptor.d.ts +8 -0
- package/core/http-service/implementation/interceptors/user-token-inject-request-interceptor.d.ts +8 -0
- package/core/http-service/index.d.ts +2 -0
- package/core/http-service/index.js +1 -0
- package/core/http-service/interface/cs-http-interceptor.d.ts +4 -0
- package/core/http-service/interface/cs-http-service.d.ts +11 -0
- package/core/http-service/interface/cs-request-interceptor.d.ts +5 -0
- package/core/http-service/interface/cs-request.d.ts +77 -0
- package/core/http-service/interface/cs-response-interceptor.d.ts +6 -0
- package/core/http-service/interface/cs-response.d.ts +23 -0
- package/core/http-service/interface/index.d.ts +6 -0
- package/core/http-service/utilities/interceptors/cs-request-logger-interceptor.d.ts +6 -0
- package/core/http-service/utilities/interceptors/cs-response-logger-Interceptor.d.ts +7 -0
- package/core/http-service/utilities/interceptors/index.d.ts +2 -0
- package/core/http-service/utilities/interceptors/index.js +2 -0
- package/core/http-service/utilities/interceptors/index.js.LICENSE.txt +14 -0
- package/core/index.d.ts +2 -0
- package/core/index.js +1 -0
- package/cs-module.d.ts +124 -0
- package/index.d.ts +3 -0
- package/index.js +2 -0
- package/index.js.LICENSE.txt +60 -0
- package/injection-tokens.d.ts +76 -0
- package/models/certificate/index.d.ts +68 -0
- package/models/channel/index.d.ts +57 -0
- package/models/channel/index.js +1 -0
- package/models/content/index.d.ts +122 -0
- package/models/content/index.js +1 -0
- package/models/course/index.d.ts +68 -0
- package/models/course/index.js +1 -0
- package/models/device/index.d.ts +10 -0
- package/models/device/index.js +1 -0
- package/models/faq/index.d.ts +7 -0
- package/models/faq/index.js +1 -0
- package/models/form/index.d.ts +15 -0
- package/models/form/index.js +1 -0
- package/models/group/index.d.ts +96 -0
- package/models/group/index.js +1 -0
- package/models/index.d.ts +12 -0
- package/models/index.js +1 -0
- package/models/location/index.d.ts +6 -0
- package/models/location/index.js +1 -0
- package/models/notification/index.d.ts +33 -0
- package/models/organisation/index.d.ts +17 -0
- package/models/organisation/index.js +1 -0
- package/models/page/index.d.ts +23 -0
- package/models/page/index.js +1 -0
- package/models/user/index.d.ts +109 -0
- package/models/user/index.js +1 -0
- package/package.json +100 -0
- package/services/certificate/implementation/certificate-service-impl.d.ts +29 -0
- package/services/certificate/index.d.ts +1 -0
- package/services/certificate/interface/cs-certificate-service.d.ts +81 -0
- package/services/certificate/interface/index.d.ts +1 -0
- package/services/content/implementation/content-service-impl.d.ts +13 -0
- package/services/content/index.d.ts +1 -0
- package/services/content/index.js +1 -0
- package/services/content/interface/cs-content-filter-criteria.d.ts +11 -0
- package/services/content/interface/cs-content-mime-type.d.ts +17 -0
- package/services/content/interface/cs-content-service.d.ts +13 -0
- package/services/content/interface/cs-content-sort-criteria.d.ts +17 -0
- package/services/content/interface/cs-content-type.d.ts +35 -0
- package/services/content/interface/cs-primary-category.d.ts +17 -0
- package/services/content/interface/cs-resource-type.d.ts +10 -0
- package/services/content/interface/index.d.ts +7 -0
- package/services/content/utilities/content-group-generator/cs-contents-group-generator.d.ts +44 -0
- package/services/content/utilities/content-group-generator/index.d.ts +1 -0
- package/services/content/utilities/content-group-generator/index.js +1 -0
- package/services/content/utilities/content-progress-calculator/cs-content-progress-calculator.d.ts +8 -0
- package/services/content/utilities/content-progress-calculator/index.d.ts +1 -0
- package/services/content/utilities/content-progress-calculator/index.js +1 -0
- package/services/content/utilities/mime-type-facet-to-mime-type-category-aggregator/cs-mime-type-facet-to-mime-type-category-aggregator.d.ts +15 -0
- package/services/content/utilities/mime-type-facet-to-mime-type-category-aggregator/index.d.ts +1 -0
- package/services/content/utilities/mime-type-facet-to-mime-type-category-aggregator/index.js +1 -0
- package/services/content/utilities/primary-category-mapper/cs-primary-category-mapper.d.ts +5 -0
- package/services/content/utilities/primary-category-mapper/index.d.ts +1 -0
- package/services/content/utilities/primary-category-mapper/index.js +1 -0
- package/services/course/implementation/course-service-impl.d.ts +15 -0
- package/services/course/index.d.ts +1 -0
- package/services/course/index.js +1 -0
- package/services/course/interface/cs-course-service.d.ts +68 -0
- package/services/course/interface/index.d.ts +1 -0
- package/services/discussion/implementation/discussion-service-impl.d.ts +108 -0
- package/services/discussion/index.d.ts +1 -0
- package/services/discussion/interface/cs-discussion-service.d.ts +82 -0
- package/services/discussion/interface/index.d.ts +1 -0
- package/services/form/implementation/form-service-impl.d.ts +11 -0
- package/services/form/index.d.ts +0 -0
- package/services/form/interface/cs-form-service.d.ts +14 -0
- package/services/framework/implementation/cs-framework-config-bloc.d.ts +11 -0
- package/services/framework/implementation/framework-service-impl.d.ts +21 -0
- package/services/framework/index.d.ts +1 -0
- package/services/framework/index.js +1 -0
- package/services/framework/interface/cs-framework-service.d.ts +21 -0
- package/services/framework/interface/index.d.ts +1 -0
- package/services/group/activity/implementation/group-activity-service-impl.d.ts +16 -0
- package/services/group/activity/index.d.ts +1 -0
- package/services/group/activity/index.js +1 -0
- package/services/group/activity/interface/cs-group-activity-service.d.ts +38 -0
- package/services/group/activity/interface/index.d.ts +1 -0
- package/services/group/implementation/group-service-impl.d.ts +43 -0
- package/services/group/index.d.ts +1 -0
- package/services/group/index.js +1 -0
- package/services/group/interface/cs-group-service.d.ts +175 -0
- package/services/group/interface/index.d.ts +1 -0
- package/services/location/implementation/location-service-impl.d.ts +11 -0
- package/services/location/index.d.ts +1 -0
- package/services/location/index.js +1 -0
- package/services/location/interface/cs-location-service.d.ts +16 -0
- package/services/location/interface/index.d.ts +1 -0
- package/services/notification/implementation/notification-service-impl.d.ts +12 -0
- package/services/notification/index.d.ts +1 -0
- package/services/notification/interface/cs-notification-service.d.ts +22 -0
- package/services/notification/interface/index.d.ts +1 -0
- package/services/system-settings/implementation/system-settings-service-impl.d.ts +10 -0
- package/services/system-settings/index.d.ts +1 -0
- package/services/system-settings/index.js +1 -0
- package/services/system-settings/interface/cs-system-settings-service.d.ts +5 -0
- package/services/system-settings/interface/index.d.ts +1 -0
- package/services/user/implementation/user-service-impl.d.ts +25 -0
- package/services/user/index.d.ts +1 -0
- package/services/user/index.js +1 -0
- package/services/user/interface/cs-user-service.d.ts +83 -0
- package/services/user/interface/index.d.ts +1 -0
- package/telemetry/cs-telemetry-module.d.ts +30 -0
- package/telemetry/errors/cs-telemetry-validation-error.d.ts +6 -0
- package/telemetry/errors/index.d.ts +1 -0
- package/telemetry/implementation/pdf-player-telemetry-service-impl.d.ts +6 -0
- package/telemetry/implementation/player-telemetry-service-impl.d.ts +9 -0
- package/telemetry/implementation/telemetry-service-Impl.d.ts +38 -0
- package/telemetry/index.d.ts +4 -0
- package/telemetry/index.js +2 -0
- package/telemetry/index.js.LICENSE.txt +14 -0
- package/telemetry/injection-tokens.d.ts +9 -0
- package/telemetry/interface/cs-player-telemetry-service.d.ts +6 -0
- package/telemetry/interface/cs-telemetry-request.d.ts +69 -0
- package/telemetry/interface/cs-telemetry-service.d.ts +27 -0
- package/telemetry/interface/index.d.ts +3 -0
- package/utilities/aggregator/aggregator.d.ts +23 -0
- package/utilities/aggregator/index.d.ts +1 -0
- package/utilities/aggregator/index.js +1 -0
- package/utilities/certificate/certificate-verifier.d.ts +11 -0
- package/utilities/certificate/credentials.d.ts +343 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
!function t(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var r=n();for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function e(){return t.default}:function e(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=216)}([,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiBindToService=e.getServiceIdentifierAsString=e.typeConstraint=e.namedConstraint=e.taggedConstraint=e.traverseAncerstors=e.decorate=e.id=e.MetadataReader=e.postConstruct=e.targetName=e.multiInject=e.unmanaged=e.optional=e.LazyServiceIdentifer=e.inject=e.named=e.tagged=e.injectable=e.ContainerModule=e.AsyncContainerModule=e.TargetTypeEnum=e.BindingTypeEnum=e.BindingScopeEnum=e.Container=e.METADATA_KEY=void 0;var r=n(7);e.METADATA_KEY=r;var i=n(87);Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return i.Container}});var o=n(18);Object.defineProperty(e,"BindingScopeEnum",{enumerable:!0,get:function(){return o.BindingScopeEnum}}),Object.defineProperty(e,"BindingTypeEnum",{enumerable:!0,get:function(){return o.BindingTypeEnum}}),Object.defineProperty(e,"TargetTypeEnum",{enumerable:!0,get:function(){return o.TargetTypeEnum}});var a=n(103);Object.defineProperty(e,"AsyncContainerModule",{enumerable:!0,get:function(){return a.AsyncContainerModule}}),Object.defineProperty(e,"ContainerModule",{enumerable:!0,get:function(){return a.ContainerModule}});var u=n(104);Object.defineProperty(e,"injectable",{enumerable:!0,get:function(){return u.injectable}});var c=n(105);Object.defineProperty(e,"tagged",{enumerable:!0,get:function(){return c.tagged}});var s=n(106);Object.defineProperty(e,"named",{enumerable:!0,get:function(){return s.named}});var f=n(56);Object.defineProperty(e,"inject",{enumerable:!0,get:function(){return f.inject}}),Object.defineProperty(e,"LazyServiceIdentifer",{enumerable:!0,get:function(){return f.LazyServiceIdentifer}});var d=n(107);Object.defineProperty(e,"optional",{enumerable:!0,get:function(){return d.optional}});var p=n(108);Object.defineProperty(e,"unmanaged",{enumerable:!0,get:function(){return p.unmanaged}});var l=n(109);Object.defineProperty(e,"multiInject",{enumerable:!0,get:function(){return l.multiInject}});var y=n(110);Object.defineProperty(e,"targetName",{enumerable:!0,get:function(){return y.targetName}});var h=n(111);Object.defineProperty(e,"postConstruct",{enumerable:!0,get:function(){return h.postConstruct}});var g=n(54);Object.defineProperty(e,"MetadataReader",{enumerable:!0,get:function(){return g.MetadataReader}});var _=n(24);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return _.id}});var v=n(19);Object.defineProperty(e,"decorate",{enumerable:!0,get:function(){return v.decorate}});var T=n(59);Object.defineProperty(e,"traverseAncerstors",{enumerable:!0,get:function(){return T.traverseAncerstors}}),Object.defineProperty(e,"taggedConstraint",{enumerable:!0,get:function(){return T.taggedConstraint}}),Object.defineProperty(e,"namedConstraint",{enumerable:!0,get:function(){return T.namedConstraint}}),Object.defineProperty(e,"typeConstraint",{enumerable:!0,get:function(){return T.typeConstraint}});var m=n(30);Object.defineProperty(e,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return m.getServiceIdentifierAsString}});var b=n(112);Object.defineProperty(e,"multiBindToService",{enumerable:!0,get:function(){return b.multiBindToService}})},,,,,function(t,e,n){"use strict";function r(){return[e.INJECT_TAG,e.MULTI_INJECT_TAG,e.NAME_TAG,e.UNMANAGED_TAG,e.NAMED_TAG,e.OPTIONAL_TAG]}Object.defineProperty(e,"__esModule",{value:!0}),e.NON_CUSTOM_TAG_KEYS=e.POST_CONSTRUCT=e.DESIGN_PARAM_TYPES=e.PARAM_TYPES=e.TAGGED_PROP=e.TAGGED=e.MULTI_INJECT_TAG=e.INJECT_TAG=e.OPTIONAL_TAG=e.UNMANAGED_TAG=e.NAME_TAG=e.NAMED_TAG=void 0,e.NAMED_TAG="named",e.NAME_TAG="name",e.UNMANAGED_TAG="unmanaged",e.OPTIONAL_TAG="optional",e.INJECT_TAG="inject",e.MULTI_INJECT_TAG="multi_inject",e.TAGGED="inversify:tagged",e.TAGGED_PROP="inversify:tagged_props",e.PARAM_TYPES="inversify:paramtypes",e.DESIGN_PARAM_TYPES="design:paramtypes",e.POST_CONSTRUCT="post_construct",e.NON_CUSTOM_TAG_KEYS=r()},,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STACK_OVERFLOW=e.CIRCULAR_DEPENDENCY_IN_FACTORY=e.POST_CONSTRUCT_ERROR=e.MULTIPLE_POST_CONSTRUCT_METHODS=e.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK=e.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE=e.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE=e.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT=e.ARGUMENTS_LENGTH_MISMATCH=e.INVALID_DECORATOR_OPERATION=e.INVALID_TO_SELF_VALUE=e.INVALID_FUNCTION_BINDING=e.INVALID_MIDDLEWARE_RETURN=e.NO_MORE_SNAPSHOTS_AVAILABLE=e.INVALID_BINDING_TYPE=e.NOT_IMPLEMENTED=e.CIRCULAR_DEPENDENCY=e.UNDEFINED_INJECT_ANNOTATION=e.MISSING_INJECT_ANNOTATION=e.MISSING_INJECTABLE_ANNOTATION=e.NOT_REGISTERED=e.CANNOT_UNBIND=e.AMBIGUOUS_MATCH=e.KEY_NOT_FOUND=e.NULL_ARGUMENT=e.DUPLICATED_METADATA=e.DUPLICATED_INJECTABLE_DECORATOR=void 0,e.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",e.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",e.NULL_ARGUMENT="NULL argument",e.KEY_NOT_FOUND="Key Not Found",e.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",e.CANNOT_UNBIND="Could not unbind serviceIdentifier:",e.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",e.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",e.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:";var r=function(t){return"@inject called with undefined this could mean that the class "+t+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."};e.UNDEFINED_INJECT_ANNOTATION=r,e.CIRCULAR_DEPENDENCY="Circular dependency found:",e.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",e.INVALID_BINDING_TYPE="Invalid binding type:",e.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",e.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",e.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",e.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",e.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.";var i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"The number of constructor arguments in the derived class "+t[0]+" must be >= than the number of constructor arguments of its base class."};e.ARGUMENTS_LENGTH_MISMATCH=i,e.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",e.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",e.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",e.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",e.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"@postConstruct error in class "+t[0]+": "+t[1]};e.POST_CONSTRUCT_ERROR=o;var a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"It looks like there is a circular dependency in one of the '"+t[0]+"' bindings. Please investigate bindings withservice identifier '"+t[1]+"'."};e.CIRCULAR_DEPENDENCY_IN_FACTORY=a,e.STACK_OVERFLOW="Maximum call stack size exceeded"},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t,e){this._code=e}return Object.defineProperty(t.prototype,"code",{get:function(){return this._code},enumerable:!1,configurable:!0}),t}()},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var r=n(7),i=function(){function t(t,e){this.key=t,this.value=e}return t.prototype.toString=function(){return this.key===r.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},t}();e.Metadata=i},,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TargetTypeEnum=e.BindingTypeEnum=e.BindingScopeEnum=void 0;var r={Request:"Request",Singleton:"Singleton",Transient:"Transient"};e.BindingScopeEnum=r;var i={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};e.BindingTypeEnum=i;var o={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};e.TargetTypeEnum=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tagProperty=e.tagParameter=e.decorate=void 0;var r=n(11),i=n(7);function o(t,e,n,r){var o;u(i.TAGGED,t,e,r,n)}function a(t,e,n){var r;u(i.TAGGED_PROP,t.constructor,e,n)}function u(t,e,n,i,o){var a={},u="number"==typeof o,c=void 0!==o&&u?o.toString():n;if(u&&void 0!==n)throw new Error(r.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(t,e)&&(a=Reflect.getMetadata(t,e));var s=a[c];if(Array.isArray(s))for(var f=0,d=s;f<d.length;f++){var p=d[f];if(p.key===i.key)throw new Error(r.DUPLICATED_METADATA+" "+p.key.toString())}else s=[];s.push(i),a[c]=s,Reflect.defineMetadata(t,a,e)}function c(t,e){Reflect.decorate(t,e)}function s(t,e){return function(n,r){e(n,r,t)}}function f(t,e,n){"number"==typeof n?c([s(n,t)],e):"string"==typeof n?Reflect.decorate([t],e,n):c([t],e)}e.tagParameter=o,e.tagProperty=a,e.decorate=f},,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.id=void 0;var r=0;function i(){return r++}e.id=i},,,,,function(t,e,n){(function(e){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(this,n(29))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.circularDependencyToException=e.listMetadataForTarget=e.listRegisteredBindingsForServiceIdentifier=e.getServiceIdentifierAsString=e.getFunctionName=void 0;var r=n(11);function i(t){var e,e;return"function"==typeof t?(e=t).name:"symbol"==typeof t?t.toString():e=t}function o(t,e,n){var r="",i=n(t,e);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach(function(t){var e="Object";null!==t.implementationType&&(e=f(t.implementationType)),r=r+"\n "+e,t.constraint.metaData&&(r=r+" - "+t.constraint.metaData)})),r}function a(t,e){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===e||a(t.parentRequest,e))}function u(t){function e(t,n){void 0===n&&(n=[]);var r=i(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}var n;return e(t).reverse().join(" --\x3e ")}function c(t){t.childRequests.forEach(function(t){if(a(t,t.serviceIdentifier)){var e=u(t);throw new Error(r.CIRCULAR_DEPENDENCY+" "+e)}c(t)})}function s(t,e){if(e.isTagged()||e.isNamed()){var n="",r=e.getNamedTag(),i=e.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==i&&i.forEach(function(t){n+=t.toString()+"\n"})," "+t+"\n "+t+" - "+n}return" "+t}function f(t){if(t.name)return t.name;var e=t.toString(),n=e.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+e}e.getServiceIdentifierAsString=i,e.listRegisteredBindingsForServiceIdentifier=o,e.circularDependencyToException=c,e.listMetadataForTarget=s,e.getFunctionName=f},,,,,,function(t,e){var n=t.exports={},r,i;function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}function c(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var s=[],f=!1,d,p=-1;function l(){f&&d&&(f=!1,d.length?s=d.concat(s):p=-1,s.length&&y())}function y(){if(!f){var t=u(l);f=!0;for(var e=s.length;e;){for(d=s,s=[];++p<e;)d&&d[p].run();p=-1,e=s.length}d=null,f=!1,c(t)}}function h(t,e){this.fun=t,this.array=e}function g(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new h(t,e)),1!==s.length||f||u(y)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingOnSyntax=void 0;var r=n(47),i=function(){function t(t){this._binding=t}return t.prototype.onActivation=function(t){return this._binding.onActivation=t,new r.BindingWhenSyntax(this._binding)},t}();e.BindingOnSyntax=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingWhenSyntax=void 0;var r=n(46),i=n(59),o=function(){function t(t){this._binding=t}return t.prototype.when=function(t){return this._binding.constraint=t,new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetNamed=function(t){return this._binding.constraint=i.namedConstraint(t),new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(t){var e;return null!==t.target&&!t.target.isNamed()&&!t.target.isTagged()},new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetTagged=function(t,e){return this._binding.constraint=i.taggedConstraint(t)(e),new r.BindingOnSyntax(this._binding)},t.prototype.whenInjectedInto=function(t){return this._binding.constraint=function(e){return i.typeConstraint(t)(e.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenParentNamed=function(t){return this._binding.constraint=function(e){return i.namedConstraint(t)(e.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenParentTagged=function(t,e){return this._binding.constraint=function(n){return i.taggedConstraint(t)(e)(n.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorIs=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,i.typeConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorIs=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,i.typeConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorNamed=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,i.namedConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorNamed=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,i.namedConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._binding.constraint=function(n){return i.traverseAncerstors(n,i.taggedConstraint(t)(e))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorTagged=function(t,e){return this._binding.constraint=function(n){return!i.traverseAncerstors(n,i.taggedConstraint(t)(e))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorMatches=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,t)},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorMatches=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,t)},new r.BindingOnSyntax(this._binding)},t}();e.BindingWhenSyntax=o},,,,,function(t,e,n){"use strict";n.r(e);var r=n(165);n.d(e,"PlayerTelemetryService",function(){return r.a});var i=n(166);n.d(e,"TelemetryService",function(){return i.a});var o=n(167),a=n.n(o);for(var u in o)["default","PlayerTelemetryService","TelemetryService"].indexOf(u)<0&&function(t){n.d(e,t,function(){return o[t]})}(u)},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MetadataReader=void 0;var r=n(7),i=function(){function t(){}return t.prototype.getConstructorMetadata=function(t){var e,n;return{compilerGeneratedMetadata:Reflect.getMetadata(r.PARAM_TYPES,t),userGeneratedMetadata:Reflect.getMetadata(r.TAGGED,t)||{}}},t.prototype.getPropertiesMetadata=function(t){var e;return Reflect.getMetadata(r.TAGGED_PROP,t)||[]},t}();e.MetadataReader=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isStackOverflowExeption=void 0;var r=n(11);function i(t){return t instanceof RangeError||t.message===r.STACK_OVERFLOW}e.isStackOverflowExeption=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inject=e.LazyServiceIdentifer=void 0;var r=n(11),i=n(7),o=n(14),a=n(19),u=function(){function t(t){this._cb=t}return t.prototype.unwrap=function(){return this._cb()},t}();function c(t){return function(e,n,u){if(void 0===t)throw new Error(r.UNDEFINED_INJECT_ANNOTATION(e.name));var c=new o.Metadata(i.INJECT_TAG,t);"number"==typeof u?a.tagParameter(e,n,u,c):a.tagProperty(e,n,c)}}e.LazyServiceIdentifer=u,e.inject=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Target=void 0;var r=n(7),i=n(24),o=n(14),a=n(94),u=function(){function t(t,e,n,u){this.id=i.id(),this.type=t,this.serviceIdentifier=n,this.name=new a.QueryableString(e||""),this.metadata=new Array;var c=null;"string"==typeof u?c=new o.Metadata(r.NAMED_TAG,u):u instanceof o.Metadata&&(c=u),null!==c&&this.metadata.push(c)}return t.prototype.hasTag=function(t){for(var e=0,n=this.metadata;e<n.length;e++){var r;if(n[e].key===t)return!0}return!1},t.prototype.isArray=function(){return this.hasTag(r.MULTI_INJECT_TAG)},t.prototype.matchesArray=function(t){return this.matchesTag(r.MULTI_INJECT_TAG)(t)},t.prototype.isNamed=function(){return this.hasTag(r.NAMED_TAG)},t.prototype.isTagged=function(){return this.metadata.some(function(t){return r.NON_CUSTOM_TAG_KEYS.every(function(e){return t.key!==e})})},t.prototype.isOptional=function(){return this.matchesTag(r.OPTIONAL_TAG)(!0)},t.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(t){return t.key===r.NAMED_TAG})[0]:null},t.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(t){return r.NON_CUSTOM_TAG_KEYS.every(function(e){return t.key!==e})}):null},t.prototype.matchesNamedTag=function(t){return this.matchesTag(r.NAMED_TAG)(t)},t.prototype.matchesTag=function(t){var e=this;return function(n){for(var r=0,i=e.metadata;r<i.length;r++){var o=i[r];if(o.key===t&&o.value===n)return!0}return!1}},t}();e.Target=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingWhenOnSyntax=void 0;var r=n(46),i=n(47),o=function(){function t(t){this._binding=t,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding)}return t.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},t.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},t.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},t.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},t.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},t.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},t.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},t.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},t.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},t.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},t.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},t.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},t.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},t}();e.BindingWhenOnSyntax=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typeConstraint=e.namedConstraint=e.taggedConstraint=e.traverseAncerstors=void 0;var r=n(7),i=n(14),o=function(t,e){var n=t.parentRequest;return null!==n&&(!!e(n)||o(n,e))};e.traverseAncerstors=o;var a=function(t){return function(e){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(t)(e)};return n.metaData=new i.Metadata(t,e),n}};e.taggedConstraint=a;var u=a(r.NAMED_TAG);e.namedConstraint=u;var c=function(t){return function(e){var n=null;if(null!==e){var r;if(n=e.bindings[0],"string"==typeof t)return n.serviceIdentifier===t;var i=e.bindings[0].implementationType;return t===i}return!1}};e.typeConstraint=c},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){(function(t,e){var n;!function(n){!function(t){var r="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=o(n);function o(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===r.Reflect?r.Reflect=n:i=o(r.Reflect,i),t(i)}(function(e){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,u={__proto__:[]}instanceof Array,c=!a&&!u,s={create:a?function(){return ot(Object.create(null))}:u?function(){return ot({__proto__:null})}:function(){return ot({})},has:c?function(t,e){return n.call(t,e)}:function(t,e){return e in t},get:c?function(t,e){return n.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),d="object"==typeof t&&t.env&&"true"===t.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=d||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?nt():Map,l=d||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?rt():Set,y,h=new(d||"function"!=typeof WeakMap?it():WeakMap);function g(t,e,n,r){if(L(n)){if(!J(t))throw new TypeError;if(!H(e))throw new TypeError;return S(t,e)}if(!J(t))throw new TypeError;if(!k(e))throw new TypeError;if(!k(r)&&!L(r)&&!G(r))throw new TypeError;return G(r)&&(r=void 0),w(t,e,n=Y(n),r)}function _(t,e){function n(n,r){if(!k(n))throw new TypeError;if(!L(r)&&!z(r))throw new TypeError;j(t,e,n,r)}return n}function v(t,e,n,r){if(!k(n))throw new TypeError;return L(r)||(r=Y(r)),j(t,e,n,r)}function T(t,e,n){if(!k(e))throw new TypeError;return L(n)||(n=Y(n)),C(t,e,n)}function m(t,e,n){if(!k(e))throw new TypeError;return L(n)||(n=Y(n)),M(t,e,n)}function b(t,e,n){if(!k(e))throw new TypeError;return L(n)||(n=Y(n)),P(t,e,n)}function E(t,e,n){if(!k(e))throw new TypeError;return L(n)||(n=Y(n)),R(t,e,n)}function A(t,e){if(!k(t))throw new TypeError;return L(e)||(e=Y(e)),B(t,e)}function O(t,e){if(!k(t))throw new TypeError;return L(e)||(e=Y(e)),D(t,e)}function I(t,e,n){if(!k(e))throw new TypeError;L(n)||(n=Y(n));var r=N(e,n,!1);if(L(r))return!1;if(!r.delete(t))return!1;if(r.size>0)return!0;var i=h.get(e);return i.delete(n),i.size>0||h.delete(e),!0}function S(t,e){for(var n=t.length-1;n>=0;--n){var r,i=(0,t[n])(e);if(!L(i)&&!G(i)){if(!H(i))throw new TypeError;e=i}}return e}function w(t,e,n,r){for(var i=t.length-1;i>=0;--i){var o,a=(0,t[i])(e,n,r);if(!L(a)&&!G(a)){if(!k(a))throw new TypeError;r=a}}return r}function N(t,e,n){var r=h.get(t);if(L(r)){if(!n)return;r=new p,h.set(t,r)}var i=r.get(e);if(L(i)){if(!n)return;i=new p,r.set(e,i)}return i}function C(t,e,n){var r;if(M(t,e,n))return!0;var i=et(e);return!G(i)&&C(t,i,n)}function M(t,e,n){var r=N(e,n,!1);return!L(r)&&W(r.has(t))}function P(t,e,n){var r;if(M(t,e,n))return R(t,e,n);var i=et(e);return G(i)?void 0:P(t,i,n)}function R(t,e,n){var r=N(e,n,!1);if(!L(r))return r.get(t)}function j(t,e,n,r){var i;N(n,r,!0).set(t,e)}function B(t,e){var n=D(t,e),r=et(t);if(null===r)return n;var i=B(r,e);if(i.length<=0)return n;if(n.length<=0)return i;for(var o=new l,a=[],u=0,c=n;u<c.length;u++){var s=c[u],f;(f=o.has(s))||(o.add(s),a.push(s))}for(var d=0,p=i;d<p.length;d++){var s=p[d],f;(f=o.has(s))||(o.add(s),a.push(s))}return a}function D(t,e){var n=[],r=N(t,e,!1);if(L(r))return n;for(var i,o=X(r.keys()),a=0;;){var u=$(o);if(!u)return n.length=a,n;var c=Z(u);try{n[a]=c}catch(t){try{tt(o)}finally{throw t}}a++}}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function L(t){return void 0===t}function G(t){return null===t}function U(t){return"symbol"==typeof t}function k(t){return"object"==typeof t?null!==t:"function"==typeof t}function F(t,e){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var n=3===e?"string":5===e?"number":"default",r=Q(t,i);if(void 0!==r){var o=r.call(t,n);if(k(o))throw new TypeError;return o}return V(t,"default"===n?"number":n)}function V(t,e){if("string"===e){var n=t.toString,r,i,r;if(K(n))if(!k(r=n.call(t)))return r;if(K(i=t.valueOf))if(!k(r=i.call(t)))return r}else{var i,r;if(K(i=t.valueOf))if(!k(r=i.call(t)))return r;var o=t.toString,r;if(K(o))if(!k(r=o.call(t)))return r}throw new TypeError}function W(t){return!!t}function q(t){return""+t}function Y(t){var e=F(t,3);return U(e)?e:q(e)}function J(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function K(t){return"function"==typeof t}function H(t){return"function"==typeof t}function z(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}function Q(t,e){var n=t[e];if(null!=n){if(!K(n))throw new TypeError;return n}}function X(t){var e=Q(t,o);if(!K(e))throw new TypeError;var n=e.call(t);if(!k(n))throw new TypeError;return n}function Z(t){return t.value}function $(t){var e=t.next();return!e.done&&e}function tt(t){var e=t.return;e&&e.call(t)}function et(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var n=t.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return e;var i=r.constructor;return"function"!=typeof i||i===t?e:i}function nt(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var n=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new n(this._keys,this._values,r)},e.prototype.values=function(){return new n(this._keys,this._values,i)},e.prototype.entries=function(){return new n(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function r(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}function rt(){return function(){function t(){this._map=new p}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}()}function it(){var t=16,e=s.create(),r=i();return function(){function t(){this._key=i()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&s.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?s.get(e,this._key):void 0},t.prototype.set=function(t,e){var n;return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=i()},t}();function i(){var t;do{t="@@WeakMap@@"+c()}while(s.has(e,t));return e[t]=!0,t}function o(t,e){if(!n.call(t,r)){if(!e)return;Object.defineProperty(t,r,{value:s.create()})}return t[r]}function a(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}function u(t){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):a(new Uint8Array(t),t):a(new Array(t),t)}function c(){var e=u(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var n="",r=0;r<t;++r){var i=e[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}function ot(t){return t.__=void 0,delete t.__,t}e("decorate",g),e("metadata",_),e("defineMetadata",v),e("hasMetadata",T),e("hasOwnMetadata",m),e("getMetadata",b),e("getOwnMetadata",E),e("getMetadataKeys",A),e("getOwnMetadataKeys",O),e("deleteMetadata",I)})}(n||(n={}))}).call(this,n(36),n(29))},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n(function(e){e(t)})}return new(n||(n=Promise))(function(n,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(a,u)}c((r=r.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){n=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(6===a[0]&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t],i=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},o=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var a=n(88),u=n(11),c=n(18),s=n(7),f=n(54),d=n(89),p=n(96),l=n(98),y=n(24),h=n(30),g=n(101),_=n(102),v=function(){function t(t){this._appliedMiddleware=[];var e=t||{};if("object"!=typeof e)throw new Error(""+u.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(void 0===e.defaultScope)e.defaultScope=c.BindingScopeEnum.Transient;else if(e.defaultScope!==c.BindingScopeEnum.Singleton&&e.defaultScope!==c.BindingScopeEnum.Transient&&e.defaultScope!==c.BindingScopeEnum.Request)throw new Error(""+u.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(void 0===e.autoBindInjectable)e.autoBindInjectable=!1;else if("boolean"!=typeof e.autoBindInjectable)throw new Error(""+u.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(void 0===e.skipBaseClassChecks)e.skipBaseClassChecks=!1;else if("boolean"!=typeof e.skipBaseClassChecks)throw new Error(""+u.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:e.autoBindInjectable,defaultScope:e.defaultScope,skipBaseClassChecks:e.skipBaseClassChecks},this.id=y.id(),this._bindingDictionary=new _.Lookup,this._snapshots=[],this._middleware=null,this.parent=null,this._metadataReader=new f.MetadataReader}return t.merge=function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=new t,u=o([e,n],r).map(function(t){return d.getBindingDictionary(t)}),c=d.getBindingDictionary(a);function s(t,e){t.traverse(function(t,n){n.forEach(function(t){e.add(t.serviceIdentifier,t.clone())})})}return u.forEach(function(t){s(t,c)}),a},t.prototype.load=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=this._getContainerModuleHelpersFactory(),r=0,i=t;r<i.length;r++){var o=i[r],a=n(o.id);o.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)}},t.prototype.loadAsync=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(this,void 0,void 0,function(){var e,n,r,o,a;return i(this,function(i){switch(i.label){case 0:e=this._getContainerModuleHelpersFactory(),n=0,r=t,i.label=1;case 1:return n<r.length?(o=r[n],a=e(o.id),[4,o.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)]):[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},t.prototype.unload=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=function(t){return function(e){return e.moduleId===t}};e.forEach(function(e){var n=r(e.id);t._bindingDictionary.removeByCondition(n)})},t.prototype.bind=function(t){var e=this.options.defaultScope||c.BindingScopeEnum.Transient,n=new a.Binding(t,e);return this._bindingDictionary.add(t,n),new l.BindingToSyntax(n)},t.prototype.rebind=function(t){return this.unbind(t),this.bind(t)},t.prototype.unbind=function(t){try{this._bindingDictionary.remove(t)}catch(e){throw new Error(u.CANNOT_UNBIND+" "+h.getServiceIdentifierAsString(t))}},t.prototype.unbindAll=function(){this._bindingDictionary=new _.Lookup},t.prototype.isBound=function(t){var e=this._bindingDictionary.hasKey(t);return!e&&this.parent&&(e=this.parent.isBound(t)),e},t.prototype.isBoundNamed=function(t,e){return this.isBoundTagged(t,s.NAMED_TAG,e)},t.prototype.isBoundTagged=function(t,e,n){var r=!1;if(this._bindingDictionary.hasKey(t)){var i=this._bindingDictionary.get(t),o=d.createMockRequest(this,t,e,n);r=i.some(function(t){return t.constraint(o)})}return!r&&this.parent&&(r=this.parent.isBoundTagged(t,e,n)),r},t.prototype.snapshot=function(){this._snapshots.push(g.ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware))},t.prototype.restore=function(){var t=this._snapshots.pop();if(void 0===t)throw new Error(u.NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=t.bindings,this._middleware=t.middleware},t.prototype.createChild=function(e){var n=new t(e||this.options);return n.parent=this,n},t.prototype.applyMiddleware=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._appliedMiddleware=this._appliedMiddleware.concat(t);var n=this._middleware?this._middleware:this._planAndResolve();this._middleware=t.reduce(function(t,e){return e(t)},n)},t.prototype.applyCustomMetadataReader=function(t){this._metadataReader=t},t.prototype.get=function(t){return this._get(!1,!1,c.TargetTypeEnum.Variable,t)},t.prototype.getTagged=function(t,e,n){return this._get(!1,!1,c.TargetTypeEnum.Variable,t,e,n)},t.prototype.getNamed=function(t,e){return this.getTagged(t,s.NAMED_TAG,e)},t.prototype.getAll=function(t){return this._get(!0,!0,c.TargetTypeEnum.Variable,t)},t.prototype.getAllTagged=function(t,e,n){return this._get(!1,!0,c.TargetTypeEnum.Variable,t,e,n)},t.prototype.getAllNamed=function(t,e){return this.getAllTagged(t,s.NAMED_TAG,e)},t.prototype.resolve=function(t){var e=this.createChild();return e.bind(t).toSelf(),this._appliedMiddleware.forEach(function(t){e.applyMiddleware(t)}),e.get(t)},t.prototype._getContainerModuleHelpersFactory=function(){var t=this,e=function(t,e){t._binding.moduleId=e},n=function(n){return function(r){var i,o=t.bind.bind(t)(r);return e(o,n),o}},r=function(e){return function(e){var n;t.unbind.bind(t)(e)}},i=function(e){return function(e){var n;return t.isBound.bind(t)(e)}},o=function(n){return function(r){var i,o=t.rebind.bind(t)(r);return e(o,n),o}};return function(t){return{bindFunction:n(t),isboundFunction:i(t),rebindFunction:o(t),unbindFunction:r(t)}}},t.prototype._get=function(t,e,n,r,i,o){var a=null,c={avoidConstraints:t,contextInterceptor:function(t){return t},isMultiInject:e,key:i,serviceIdentifier:r,targetType:n,value:o};if(this._middleware){if(null==(a=this._middleware(c)))throw new Error(u.INVALID_MIDDLEWARE_RETURN)}else a=this._planAndResolve()(c);return a},t.prototype._planAndResolve=function(){var t=this;return function(e){var n=d.plan(t._metadataReader,t,e.isMultiInject,e.targetType,e.serviceIdentifier,e.key,e.value,e.avoidConstraints),r;return n=e.contextInterceptor(n),p.resolve(n)}},t}();e.Container=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Binding=void 0;var r=n(18),i=n(24),o=function(){function t(t,e){this.id=i.id(),this.activated=!1,this.serviceIdentifier=t,this.scope=e,this.type=r.BindingTypeEnum.Invalid,this.constraint=function(t){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.dynamicValue=null}return t.prototype.clone=function(){var e=new t(this.serviceIdentifier,this.scope);return e.activated=e.scope===r.BindingScopeEnum.Singleton&&this.activated,e.implementationType=this.implementationType,e.dynamicValue=this.dynamicValue,e.scope=this.scope,e.type=this.type,e.factory=this.factory,e.provider=this.provider,e.constraint=this.constraint,e.onActivation=this.onActivation,e.cache=this.cache,e},t}();e.Binding=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBindingDictionary=e.createMockRequest=e.plan=void 0;var r=n(90),i=n(11),o=n(18),a=n(7),u=n(55),c=n(30),s=n(91),f=n(14),d=n(92),p=n(93),l=n(95),y=n(57);function h(t){return t._bindingDictionary}function g(t,e,n,r,i,o){var u=t?a.MULTI_INJECT_TAG:a.INJECT_TAG,c=new f.Metadata(u,n),s=new y.Target(e,r,n,c);if(void 0!==i){var d=new f.Metadata(i,o);s.metadata.push(d)}return s}function _(t,e,n,i,o){var a=m(n.container,o.serviceIdentifier),u=[];return a.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof o.serviceIdentifier&&t.getConstructorMetadata(o.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(o.serviceIdentifier).toSelf(),a=m(n.container,o.serviceIdentifier)),u=e?a:a.filter(function(t){var e=new l.Request(t.serviceIdentifier,n,i,t,o);return t.constraint(e)}),v(o.serviceIdentifier,u,o,n.container),u}function v(t,e,n,o){switch(e.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return e;var a=c.getServiceIdentifierAsString(t),u=i.NOT_REGISTERED;throw u+=c.listMetadataForTarget(a,n),u+=c.listRegisteredBindingsForServiceIdentifier(o,a,m),new Error(u);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return e;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return e;var a=c.getServiceIdentifierAsString(t),u=i.AMBIGUOUS_MATCH+" "+a;throw u+=c.listRegisteredBindingsForServiceIdentifier(o,a,m),new Error(u)}}function T(t,e,n,r,a,u){var c,s;if(null===a){c=_(t,e,r,null,u),s=new l.Request(n,r,null,c,u);var f=new d.Plan(r,s);r.addPlan(f)}else c=_(t,e,r,a,u),s=a.addChildRequest(u.serviceIdentifier,c,u);c.forEach(function(e){var n=null;if(u.isArray())n=s.addChildRequest(e.serviceIdentifier,e,u);else{if(e.cache)return;n=s}if(e.type===o.BindingTypeEnum.Instance&&null!==e.implementationType){var a=p.getDependencies(t,e.implementationType);if(!r.container.options.skipBaseClassChecks){var c=p.getBaseClassDependencyCount(t,e.implementationType);if(a.length<c){var f=i.ARGUMENTS_LENGTH_MISMATCH(p.getFunctionName(e.implementationType));throw new Error(f)}}a.forEach(function(e){T(t,!1,e.serviceIdentifier,r,n,e)})}})}function m(t,e){var n=[],r=h(t);return r.hasKey(e)?n=r.get(e):null!==t.parent&&(n=m(t.parent,e)),n}function b(t,e,n,r,i,o,a,f){void 0===f&&(f=!1);var d=new s.Context(e),p=g(n,r,i,"",o,a);try{return T(t,f,i,d,null,p),d}catch(t){throw u.isStackOverflowExeption(t)&&d.plan&&c.circularDependencyToException(d.plan.rootRequest),t}}function E(t,e,n,r){var i=new y.Target(o.TargetTypeEnum.Variable,"",e,new f.Metadata(n,r)),a=new s.Context(t),u;return new l.Request(e,a,null,[],i)}e.getBindingDictionary=h,e.plan=b,e.createMockRequest=E},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingCount=void 0;var r={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1};e.BindingCount=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Context=void 0;var r=n(24),i=function(){function t(t){this.id=r.id(),this.container=t}return t.prototype.addPlan=function(t){this.plan=t},t.prototype.setCurrentRequest=function(t){this.currentRequest=t},t}();e.Context=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Plan=void 0;var r=function(){function t(t,e){this.parentContext=t,this.rootRequest=e}return t}();e.Plan=r},function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.getFunctionName=e.getBaseClassDependencyCount=e.getDependencies=void 0;var i=n(56),o=n(11),a=n(18),u=n(7),c=n(30);Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return c.getFunctionName}});var s=n(57);function f(t,e){var n,r;return d(t,c.getFunctionName(e),e,!1)}function d(t,e,n,i){var a=t.getConstructorMetadata(n),u=a.compilerGeneratedMetadata;if(void 0===u){var c=o.MISSING_INJECTABLE_ANNOTATION+" "+e+".";throw new Error(c)}var s=a.userGeneratedMetadata,f=Object.keys(s),d=0===n.length&&f.length>0,p=f.length>n.length,h,g=l(i,e,u,s,d||p?f.length:n.length),_=y(t,n),v;return r(r([],g),_)}function p(t,e,n,r,u){var c=u[t.toString()]||[],f=g(c),d=!0!==f.unmanaged,p=r[t],l=f.inject||f.multiInject;if((p=l||p)instanceof i.LazyServiceIdentifer&&(p=p.unwrap()),d){var y,h,_,v;if(!e&&(p===Object||p===Function||void 0===p)){var T=o.MISSING_INJECT_ANNOTATION+" argument "+t+" in class "+n+".";throw new Error(T)}var m=new s.Target(a.TargetTypeEnum.ConstructorArgument,f.targetName,p);return m.metadata=c,m}return null}function l(t,e,n,r,i){for(var o=[],a=0;a<i;a++){var u,c=p(a,t,e,n,r);null!==c&&o.push(c)}return o}function y(t,e){for(var n=t.getPropertiesMetadata(e),i=[],o,u=0,c=Object.keys(n);u<c.length;u++){var f=c[u],d=n[f],p=g(n[f]),l=p.targetName||f,h=p.inject||p.multiInject,_=new s.Target(a.TargetTypeEnum.ClassProperty,l,h);_.metadata=d,i.push(_)}var v=Object.getPrototypeOf(e.prototype).constructor;if(v!==Object){var T=y(t,v);i=r(r([],i),T)}return i}function h(t,e){var n=Object.getPrototypeOf(e.prototype).constructor;if(n!==Object){var r,i=d(t,c.getFunctionName(n),n,!0),o=i.map(function(t){return t.metadata.filter(function(t){return t.key===u.UNMANAGED_TAG})}),a=[].concat.apply([],o).length,s=i.length-a;return s>0?s:h(t,n)}return 0}function g(t){var e={};return t.forEach(function(t){e[t.key.toString()]=t.value}),{inject:e[u.INJECT_TAG],multiInject:e[u.MULTI_INJECT_TAG],targetName:e[u.NAME_TAG],unmanaged:e[u.UNMANAGED_TAG]}}e.getDependencies=f,e.getBaseClassDependencyCount=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QueryableString=void 0;var r=function(){function t(t){this.str=t}return t.prototype.startsWith=function(t){return 0===this.str.indexOf(t)},t.prototype.endsWith=function(t){var e="",n=t.split("").reverse().join("");return e=this.str.split("").reverse().join(""),this.startsWith.call({str:e},n)},t.prototype.contains=function(t){return-1!==this.str.indexOf(t)},t.prototype.equals=function(t){return this.str===t},t.prototype.value=function(){return this.str},t}();e.QueryableString=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Request=void 0;var r=n(24),i=function(){function t(t,e,n,i,o){this.id=r.id(),this.serviceIdentifier=t,this.parentContext=e,this.parentRequest=n,this.target=o,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=null===n?new Map:null}return t.prototype.addChildRequest=function(e,n,r){var i=new t(e,this.parentContext,this,n,r);return this.childRequests.push(i),i},t}();e.Request=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolve=void 0;var r=n(11),i=n(18),o=n(55),a=n(30),u=n(97),c=function(t,e,n){try{return n()}catch(n){throw o.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(t,e.toString())):n}},s=function(t){return function(e){e.parentContext.setCurrentRequest(e);var n=e.bindings,o=e.childRequests,f=e.target&&e.target.isArray(),d=!(e.parentRequest&&e.parentRequest.target&&e.target&&e.parentRequest.target.matchesArray(e.target.serviceIdentifier));if(f&&d)return o.map(function(e){var n;return s(t)(e)});var p=null;if(!e.target.isOptional()||0!==n.length){var l=n[0],y=l.scope===i.BindingScopeEnum.Singleton,h=l.scope===i.BindingScopeEnum.Request;if(y&&l.activated)return l.cache;if(h&&null!==t&&t.has(l.id))return t.get(l.id);if(l.type===i.BindingTypeEnum.ConstantValue)p=l.cache,l.activated=!0;else if(l.type===i.BindingTypeEnum.Function)p=l.cache,l.activated=!0;else if(l.type===i.BindingTypeEnum.Constructor)p=l.implementationType;else if(l.type===i.BindingTypeEnum.DynamicValue&&null!==l.dynamicValue)p=c("toDynamicValue",l.serviceIdentifier,function(){return l.dynamicValue(e.parentContext)});else if(l.type===i.BindingTypeEnum.Factory&&null!==l.factory)p=c("toFactory",l.serviceIdentifier,function(){return l.factory(e.parentContext)});else if(l.type===i.BindingTypeEnum.Provider&&null!==l.provider)p=c("toProvider",l.serviceIdentifier,function(){return l.provider(e.parentContext)});else{if(l.type!==i.BindingTypeEnum.Instance||null===l.implementationType){var g=a.getServiceIdentifierAsString(e.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+g)}p=u.resolveInstance(l.implementationType,o,s(t))}return"function"==typeof l.onActivation&&(p=l.onActivation(e.parentContext,p)),y&&(l.cache=p,l.activated=!0),h&&null!==t&&!t.has(l.id)&&t.set(l.id,p),p}}};function f(t){var e;return s(t.plan.rootRequest.requestScope)(t.plan.rootRequest)}e.resolve=f},function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.resolveInstance=void 0;var i=n(11),o=n(18),a=n(7);function u(t,e,n){var r=e.filter(function(t){return null!==t.target&&t.target.type===o.TargetTypeEnum.ClassProperty}),i=r.map(n);return r.forEach(function(e,n){var r="";r=e.target.name.value();var o=i[n];t[r]=o}),t}function c(t,e){return new(t.bind.apply(t,r([void 0],e)))}function s(t,e){if(Reflect.hasMetadata(a.POST_CONSTRUCT,t)){var n=Reflect.getMetadata(a.POST_CONSTRUCT,t);try{e[n.value]()}catch(e){throw new Error(i.POST_CONSTRUCT_ERROR(t.name,e.message))}}}function f(t,e,n){var r=null,i,a;e.length>0?r=u(r=c(t,e.filter(function(t){return null!==t.target&&t.target.type===o.TargetTypeEnum.ConstructorArgument}).map(n)),e,n):r=new t;return s(t,r),r}e.resolveInstance=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingToSyntax=void 0;var r=n(11),i=n(18),o=n(99),a=n(58),u=function(){function t(t){this._binding=t}return t.prototype.to=function(t){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=t,new o.BindingInWhenOnSyntax(this._binding)},t.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+r.INVALID_TO_SELF_VALUE);var t=this._binding.serviceIdentifier;return this.to(t)},t.prototype.toConstantValue=function(t){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=t,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=i.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toDynamicValue=function(t){return this._binding.type=i.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=t,this._binding.implementationType=null,new o.BindingInWhenOnSyntax(this._binding)},t.prototype.toConstructor=function(t){return this._binding.type=i.BindingTypeEnum.Constructor,this._binding.implementationType=t,this._binding.scope=i.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toFactory=function(t){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=t,this._binding.scope=i.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toFunction=function(t){if("function"!=typeof t)throw new Error(r.INVALID_FUNCTION_BINDING);var e=this.toConstantValue(t);return this._binding.type=i.BindingTypeEnum.Function,this._binding.scope=i.BindingScopeEnum.Singleton,e},t.prototype.toAutoFactory=function(t){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(e){var n;return function(){return e.container.get(t)}},this._binding.scope=i.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toProvider=function(t){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=t,this._binding.scope=i.BindingScopeEnum.Singleton,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toService=function(t){this.toDynamicValue(function(e){return e.container.get(t)})},t}();e.BindingToSyntax=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingInWhenOnSyntax=void 0;var r=n(100),i=n(46),o=n(47),a=function(){function t(t){this._binding=t,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(t)}return t.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},t.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},t.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},t.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},t.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},t.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},t.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},t.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},t.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},t.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},t.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},t.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},t.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},t.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},t.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},t.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},t}();e.BindingInWhenOnSyntax=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingInSyntax=void 0;var r=n(18),i=n(58),o=function(){function t(t){this._binding=t}return t.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new i.BindingWhenOnSyntax(this._binding)},t.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new i.BindingWhenOnSyntax(this._binding)},t.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new i.BindingWhenOnSyntax(this._binding)},t}();e.BindingInSyntax=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContainerSnapshot=void 0;var r=function(){function t(){}return t.of=function(e,n){var r=new t;return r.bindings=e,r.middleware=n,r},t}();e.ContainerSnapshot=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lookup=void 0;var r=n(11),i=function(){function t(){this._map=new Map}return t.prototype.getMap=function(){return this._map},t.prototype.add=function(t,e){if(null==t)throw new Error(r.NULL_ARGUMENT);if(null==e)throw new Error(r.NULL_ARGUMENT);var n=this._map.get(t);void 0!==n?(n.push(e),this._map.set(t,n)):this._map.set(t,[e])},t.prototype.get=function(t){if(null==t)throw new Error(r.NULL_ARGUMENT);var e=this._map.get(t);if(void 0!==e)return e;throw new Error(r.KEY_NOT_FOUND)},t.prototype.remove=function(t){if(null==t)throw new Error(r.NULL_ARGUMENT);if(!this._map.delete(t))throw new Error(r.KEY_NOT_FOUND)},t.prototype.removeByCondition=function(t){var e=this;this._map.forEach(function(n,r){var i=n.filter(function(e){return!t(e)});i.length>0?e._map.set(r,i):e._map.delete(r)})},t.prototype.hasKey=function(t){if(null==t)throw new Error(r.NULL_ARGUMENT);return this._map.has(t)},t.prototype.clone=function(){var e=new t;return this._map.forEach(function(t,n){t.forEach(function(t){return e.add(n,t.clone())})}),e},t.prototype.traverse=function(t){this._map.forEach(function(e,n){t(n,e)})},t}();e.Lookup=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncContainerModule=e.ContainerModule=void 0;var r=n(24),i=function(){function t(t){this.id=r.id(),this.registry=t}return t}();e.ContainerModule=i;var o=function(){function t(t){this.id=r.id(),this.registry=t}return t}();e.AsyncContainerModule=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectable=void 0;var r=n(11),i=n(7);function o(){return function(t){if(Reflect.hasOwnMetadata(i.PARAM_TYPES,t))throw new Error(r.DUPLICATED_INJECTABLE_DECORATOR);var e=Reflect.getMetadata(i.DESIGN_PARAM_TYPES,t)||[];return Reflect.defineMetadata(i.PARAM_TYPES,e,t),t}}e.injectable=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tagged=void 0;var r=n(14),i=n(19);function o(t,e){return function(n,o,a){var u=new r.Metadata(t,e);"number"==typeof a?i.tagParameter(n,o,a,u):i.tagProperty(n,o,u)}}e.tagged=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.named=void 0;var r=n(7),i=n(14),o=n(19);function a(t){return function(e,n,a){var u=new i.Metadata(r.NAMED_TAG,t);"number"==typeof a?o.tagParameter(e,n,a,u):o.tagProperty(e,n,u)}}e.named=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.optional=void 0;var r=n(7),i=n(14),o=n(19);function a(){return function(t,e,n){var a=new i.Metadata(r.OPTIONAL_TAG,!0);"number"==typeof n?o.tagParameter(t,e,n,a):o.tagProperty(t,e,a)}}e.optional=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unmanaged=void 0;var r=n(7),i=n(14),o=n(19);function a(){return function(t,e,n){var a=new i.Metadata(r.UNMANAGED_TAG,!0);o.tagParameter(t,e,n,a)}}e.unmanaged=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiInject=void 0;var r=n(7),i=n(14),o=n(19);function a(t){return function(e,n,a){var u=new i.Metadata(r.MULTI_INJECT_TAG,t);"number"==typeof a?o.tagParameter(e,n,a,u):o.tagProperty(e,n,u)}}e.multiInject=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.targetName=void 0;var r=n(7),i=n(14),o=n(19);function a(t){return function(e,n,a){var u=new i.Metadata(r.NAME_TAG,t);o.tagParameter(e,n,a,u)}}e.targetName=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.postConstruct=void 0;var r=n(11),i=n(7),o=n(14);function a(){return function(t,e,n){var a=new o.Metadata(i.POST_CONSTRUCT,e);if(Reflect.hasOwnMetadata(i.POST_CONSTRUCT,t.constructor))throw new Error(r.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(i.POST_CONSTRUCT,a,t.constructor)}}e.postConstruct=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiBindToService=void 0;var r=function(t){return function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.forEach(function(n){return t.bind(n).toService(e)})}}};e.multiBindToService=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){}return t}()},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return T});var r=n(2),i=function(t,e,n,r){var i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(a=t[u])&&(o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o},o=function(){function t(){this._isInitialsed=!1}return t.prototype.raiseEndTelemetryWith=function(t,e,n,r){throw new Error("Method not implemented.")},t.prototype.initTelemetry=function(t){window.EkTelemetry&&(this.telemetryProvider=window.EkTelemetry,this._isInitialsed=!0,this.context=t,this.telemetryProvider.initialize(t.config))},t.prototype.initTelmetry=function(t,e,n,r,i){null!=this.context&&this.telemetryProvider?this.telemetryProvider.initialize(this.context.config):(this.config.pdata=t,this.config.channel=n,this.config.did=i,this.config.sid=r,this.actor=e)},t.prototype.setTelemetryAttributes=function(t,e,n,r,i){this.config.pdata=t,this.config.channel=n,this.config.did=i,this.config.sid=r,this.actor=e},t.prototype.formulateBasicConfigForTelemetry=function(){},t.prototype.initProducerData=function(t){if(this.pData)return this.pData;this.config.pdata=t},t.prototype.isTelemetryInitialised=function(){return this._isInitialsed},t.prototype.raiseInteractTelemetry=function(t){this.isTelemetryInitialised()&&this.telemetryProvider.interact(t.edata,t.options)},t.prototype.raiseSearchTelemetry=function(t){this.isTelemetryInitialised()&&this.telemetryProvider.search(t.edata,t.options)},t.prototype.raiseSearchTelemetryWith=function(t,e,n,r){},t.prototype.raiseInteractTelemetryWith=function(t,e,n,r){},t.prototype.raiseImpressionTelemetry=function(t){this.isTelemetryInitialised()&&this.telemetryProvider.impression(t.edata,t.options)},t.prototype.raiseImpressionTelemetryWith=function(t,e,n,r){},t.prototype.raiseLogTelemetry=function(t){this.isTelemetryInitialised()&&this.telemetryProvider.log(t.edata,t.options)},t.prototype.raiseLogTelemetryWith=function(t,e,n,r){},t.prototype.raiseErrorTelemetry=function(t){this.isTelemetryInitialised()&&this.telemetryProvider.error(t.edata,t.options)},t.prototype.raiseErrorTelemetryWith=function(t,e,n,r){},t.prototype.raiseAuditTelemetry=function(t){this.isTelemetryInitialised()&&this.telemetryProvider.audit(t.edata,t.options)},t.prototype.raiseAuditTelemetryWith=function(t,e,n,r){},t.prototype.raiseStartTelemetry=function(t){this.isTelemetryInitialised()&&this.telemetryProvider.start(this.context.config,t.options.object.id,t.options.object.ver,t.edata,t.options)},t.prototype.raiseEndTelemetry=function(t){this.isTelemetryInitialised()&&this.telemetryProvider.end(t.edata,t.options)},t.prototype.raiseShareTelemetry=function(t){this.isTelemetryInitialised()&&this.telemetryProvider.share(t.edata,t.options)},t.prototype.raiseShareTelemetryWith=function(t,e,n,r){},t.prototype.raiseFeedBackTelemetry=function(t){this.isTelemetryInitialised()&&this.telemetryProvider.share(t.edata,t.options)},t.prototype.raiseFeedBackTelemetryWith=function(t,e,n,r){},t.prototype.raiseAssesTelemetry=function(t,e){this.isTelemetryInitialised()&&this.telemetryProvider.assess(t,e)},t.prototype.raiseResponseTelemetry=function(t,e){this.isTelemetryInitialised()&&this.telemetryProvider.response(t,e)},t.prototype.raiseSummaryTelemetry=function(t,e){this.isTelemetryInitialised()&&this.telemetryProvider.summary(t,e)},t=i([Object(r.injectable)()],t)}(),a={CONTAINER:Symbol.for("CONTAINER"),services:{telemetry:{TELEMETRY_SERVICE:Symbol.for("TELEMETRY_SERVICE"),PLAYER_TELEMETRY_SERVICE:Symbol.for("PLAYER_TELEMETRY_SERVICE")}}},u=n(52),c=function(t,e,n,r){var i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(a=t[u])&&(o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o},s=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},f=function(){function t(t){this.telemetryService=t}return t.prototype.onStartEvent=function(t,e){},t.prototype.onEndEvent=function(t,e){},t.prototype.onErrorEvent=function(t,e){},t.prototype.onHeartBeatEvent=function(t,e){"LOADED"===t.type||"PLAY"===t.type||this.telemetryService.raiseLogTelemetry({})},t=c([Object(r.injectable)(),s("design:paramtypes",[u.TelemetryService])],t)}(),d=(p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},p(t,e)},function(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p,l=function(t,e,n,r){var i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(a=t[u])&&(o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o},y=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t,e){return function(n,r){e(n,r,t)}},g=function(t){function e(e){return t.call(this,e)||this}return d(e,t),e.prototype.onHeartBeatEvent=function(t,e){},e=l([Object(r.injectable)(),h(0,Object(r.inject)(a.services.telemetry.TELEMETRY_SERVICE)),y("design:paramtypes",[u.TelemetryService])],e)}(f),_=function(t,e,n,r){function i(t){return t instanceof n?t:new n(function(e){e(t)})}return new(n||(n=Promise))(function(n,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(a,u)}c((r=r.apply(t,e||[])).next())})},v=function(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){n=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(6===a[0]&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t],i=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},T=function(){function t(){this._isInitialised=!1}return Object.defineProperty(t,"instance",{get:function(){return t._instance||(t._instance=new t),t._instance},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInitialised",{get:function(){return this._isInitialised},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"telemetryService",{get:function(){return this._container.get(a.services.telemetry.TELEMETRY_SERVICE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playerTelemetryService",{get:function(){return this._container.get(a.services.telemetry.PLAYER_TELEMETRY_SERVICE)},enumerable:!1,configurable:!0}),t.prototype.init=function(t){return _(this,void 0,void 0,function(){return v(this,function(t){return this._container=new r.Container,this._container.bind(a.CONTAINER).toConstantValue(this._container),this.initOrUpdateServices(),this._isInitialised=!0,[2]})})},t.prototype.initOrUpdateServices=function(){this._container.bind(a.services.telemetry.TELEMETRY_SERVICE).to(o).inSingletonScope(),this._container.bind(a.services.telemetry.PLAYER_TELEMETRY_SERVICE).to(g).inSingletonScope()},t}()},,function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(12),i=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o,a=function(t){function e(n){var r=t.call(this,n,e.code)||this;return Object.setPrototypeOf(r,e.prototype),r}return i(e,t),e.isInstance=function(t){return t.code&&t.code===e.code},e.code="TELEMETRY_VALIDATION_ERROR",e}(r.a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var r=n(86),i=n.n(r),o=n(52);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,function(){return o[t]})}(a);var u=n(168);n.d(e,"CsTelemetryModule",function(){return u.a});var c=n(170);n.d(e,"CsTelemetryError",function(){return c.a})}])});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (C) Microsoft. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare abstract class PlayerTelemetryService {
|
|
2
|
+
abstract onStartEvent(event: any, data: any): any;
|
|
3
|
+
abstract onEndEvent(event: any, data: any): any;
|
|
4
|
+
abstract onHeartBeatEvent(event: any, data: any): any;
|
|
5
|
+
abstract onErrorEvent(event: any, data: any): any;
|
|
6
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export interface IProducerdata {
|
|
2
|
+
'id': string;
|
|
3
|
+
'ver': string;
|
|
4
|
+
'pid': string;
|
|
5
|
+
}
|
|
6
|
+
export interface IRollup {
|
|
7
|
+
'l1'?: string;
|
|
8
|
+
'l2'?: string;
|
|
9
|
+
'l3'?: string;
|
|
10
|
+
'l4'?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ITelemetryObject {
|
|
13
|
+
'id'?: string;
|
|
14
|
+
'type'?: string;
|
|
15
|
+
'ver'?: string;
|
|
16
|
+
'rollup'?: IRollup;
|
|
17
|
+
}
|
|
18
|
+
export interface IContext {
|
|
19
|
+
'env': string;
|
|
20
|
+
'sid': string;
|
|
21
|
+
'did': string;
|
|
22
|
+
'channel'?: string;
|
|
23
|
+
'cdata'?: Array<ICDataEntry>;
|
|
24
|
+
'pdata'?: IProducerdata;
|
|
25
|
+
'rollup'?: IRollup;
|
|
26
|
+
}
|
|
27
|
+
export interface ICDataEntry {
|
|
28
|
+
'type': string;
|
|
29
|
+
'id': string;
|
|
30
|
+
}
|
|
31
|
+
export interface IActor {
|
|
32
|
+
'id': string;
|
|
33
|
+
'type': string;
|
|
34
|
+
}
|
|
35
|
+
export interface IEventInput {
|
|
36
|
+
'eid': string;
|
|
37
|
+
'ets': string;
|
|
38
|
+
'ver'?: string;
|
|
39
|
+
'actor'?: IActor;
|
|
40
|
+
'context': IContext;
|
|
41
|
+
'object'?: ITelemetryObject;
|
|
42
|
+
'tags'?: Array<string>;
|
|
43
|
+
'edata'?: {};
|
|
44
|
+
'mid': string;
|
|
45
|
+
}
|
|
46
|
+
export interface ITelemetry {
|
|
47
|
+
'pdata': IProducerdata;
|
|
48
|
+
'env': string;
|
|
49
|
+
'apislug': string;
|
|
50
|
+
'channel': string;
|
|
51
|
+
'uid'?: string;
|
|
52
|
+
'endpoint': string;
|
|
53
|
+
'did'?: string;
|
|
54
|
+
'authtoken'?: string;
|
|
55
|
+
'sid'?: string;
|
|
56
|
+
'batchsize'?: Number;
|
|
57
|
+
'runningEnv'?: string;
|
|
58
|
+
'mode'?: string;
|
|
59
|
+
'host'?: string;
|
|
60
|
+
'tags'?: Array<string>;
|
|
61
|
+
'cdata'?: Array<ICDataEntry>;
|
|
62
|
+
'dispatcher'?: undefined;
|
|
63
|
+
'enableValidation': boolean;
|
|
64
|
+
'timeDiff'?: Number;
|
|
65
|
+
}
|
|
66
|
+
export interface ITelemetryContext {
|
|
67
|
+
'config': ITelemetry;
|
|
68
|
+
'userOrgDetails': any;
|
|
69
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IActor, ICDataEntry, IProducerdata, ITelemetryObject } from './cs-telemetry-request';
|
|
2
|
+
export declare abstract class TelemetryService {
|
|
3
|
+
abstract initTelemetry(telemetryConfig: any): any;
|
|
4
|
+
abstract raiseInteractTelemetry(interactObject: any): any;
|
|
5
|
+
abstract raiseInteractTelemetryWith(cdata: Array<ICDataEntry>, env: string, edata: any, telemetryObject?: ITelemetryObject): any;
|
|
6
|
+
abstract raiseImpressionTelemetry(interactObject: any): any;
|
|
7
|
+
abstract raiseImpressionTelemetryWith(cdata: Array<ICDataEntry>, env: string, edata: any, telemetryObject?: ITelemetryObject): any;
|
|
8
|
+
abstract raiseLogTelemetry(logObject: any): any;
|
|
9
|
+
abstract raiseLogTelemetryWith(cdata: Array<ICDataEntry>, env: string, edata: any, telemetryObject?: ITelemetryObject): any;
|
|
10
|
+
abstract raiseErrorTelemetry(errorObject: any): any;
|
|
11
|
+
abstract raiseErrorTelemetryWith(cdata: Array<ICDataEntry>, env: string, edata: any, telemetryObject?: ITelemetryObject): any;
|
|
12
|
+
abstract raiseAuditTelemetry(auditObject: any): any;
|
|
13
|
+
abstract raiseAuditTelemetryWith(cdata: Array<ICDataEntry>, env: string, edata: any, telemetryObject?: ITelemetryObject): any;
|
|
14
|
+
abstract raiseStartTelemetry(startEventObject: any): any;
|
|
15
|
+
abstract raiseEndTelemetry(startEventObject: any): any;
|
|
16
|
+
abstract raiseEndTelemetryWith(cdata: Array<ICDataEntry>, env: string, edata: any, telemetryObject?: ITelemetryObject): any;
|
|
17
|
+
abstract raiseShareTelemetry(shareEventObject: any): any;
|
|
18
|
+
abstract raiseShareTelemetryWith(cdata: Array<ICDataEntry>, env: string, edata: any, telemetryObject?: ITelemetryObject): any;
|
|
19
|
+
abstract raiseFeedBackTelemetry(feedbackEventObject: any): any;
|
|
20
|
+
abstract raiseFeedBackTelemetryWith(cdata: Array<ICDataEntry>, env: string, edata: any, telemetryObject?: ITelemetryObject): any;
|
|
21
|
+
abstract setTelemetryAttributes(pdata: IProducerdata, actor: IActor, channel: string, sid: string, did: string): any;
|
|
22
|
+
abstract raiseAssesTelemetry(data: any, options: any): any;
|
|
23
|
+
abstract raiseResponseTelemetry(data: any, options: any): any;
|
|
24
|
+
abstract raiseSummaryTelemetry(data: any, options: any): any;
|
|
25
|
+
abstract raiseSearchTelemetry(interactObject: any): any;
|
|
26
|
+
abstract raiseSearchTelemetryWith(cdata: Array<ICDataEntry>, env: string, edata: any, telemetryObject?: ITelemetryObject): any;
|
|
27
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare type Primitive = string | number | boolean;
|
|
2
|
+
interface SortCriteria {
|
|
3
|
+
[key: string]: 'asc' | 'desc' | SortComprehension;
|
|
4
|
+
}
|
|
5
|
+
interface SortComprehension {
|
|
6
|
+
order: 'asc' | 'desc';
|
|
7
|
+
preference?: Primitive[];
|
|
8
|
+
}
|
|
9
|
+
export declare class Aggregator {
|
|
10
|
+
static groupByIntoMap<T>(list: T[], field: keyof T | string): {
|
|
11
|
+
[key: string]: T[];
|
|
12
|
+
};
|
|
13
|
+
static groupByIntoPairList<T>(list: T[], field: keyof T | string): [string, T[]][];
|
|
14
|
+
static sorted<T>(list: T[], sort: SortCriteria[], comparator?: (a: any, b: any) => number): T[];
|
|
15
|
+
static filtered<T>(list: T[], filter: {
|
|
16
|
+
[key: string]: {
|
|
17
|
+
operation: '==' | '<=' | '>=' | '!=';
|
|
18
|
+
value: any;
|
|
19
|
+
};
|
|
20
|
+
}[]): T[];
|
|
21
|
+
private static deepGet;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './aggregator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function e(r,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t=n();for(var o in t)("object"==typeof exports?exports:r)[o]=t[o]}}(window,function(){return function(e){var r={};function n(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)n.d(t,o,function(r){return e[r]}.bind(null,o));return t},n.n=function(e){var r=e&&e.__esModule?function r(){return e.default}:function r(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=71)}({71:function(e,r,n){"use strict";n.r(r),n.d(r,"Aggregator",function(){return f});var t=function(){return t=Object.assign||function(e){for(var r,n=1,t=arguments.length;n<t;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},t.apply(this,arguments)},o=function(){for(var e=0,r=0,n=arguments.length;r<n;r++)e+=arguments[r].length;for(var t=Array(e),o=0,r=0;r<n;r++)for(var f=arguments[r],i=0,u=f.length;i<u;i++,o++)t[o]=f[i];return t},f=function(){function e(){}return e.groupByIntoMap=function(r,n){return r.reduce(function(r,f){var i,u=String(e.deepGet(f,String(n).split(".")));return t(t({},r),((i={})[u]=o(r[u]||[],[f]),i))},{})},e.groupByIntoPairList=function(r,n){var t=e.groupByIntoMap(r,n);return Object.keys(t).map(function(e){return[e,t[e]]})},e.sorted=function(r,n,t){return r.sort(function(r,o){for(var f=0,i=0,u=n;i<u.length;i++){var c=u[i];for(var a in c)if(a in c){var p=e.deepGet(r,a.split(".")).toLowerCase(),l=e.deepGet(o,a.split(".")).toLowerCase();if(f=t?t(p,l):String(p).localeCompare(l),"asc"===c[a]||"desc"===c[a])f="asc"===c[a]?f:-f;else{var s=c[a];if(s.preference){for(var d=0;d<s.preference.length;d++)"string"==typeof s.preference[d]&&(s.preference[d]=s.preference[d].toLowerCase());s.preference.indexOf(p)>-1&&s.preference.indexOf(l)>-1?f=s.preference.indexOf(p)-s.preference.indexOf(l):s.preference.indexOf(p)>-1&&-1===s.preference.indexOf(l)?f=-1:s.preference.indexOf(l)>-1&&-1===s.preference.indexOf(p)&&(f=1)}f="asc"===s.order?f:-f}}if(0!==f)break}return f})},e.filtered=function(r,n){return r.filter(function(r){for(var t=!0,o=0,f=n;o<f.length;o++){var i=f[o];if(!t)break;for(var u in i)if(u in i){var c=e.deepGet(r,u.split(".")),a=i[u],p=a.operation,l=a.value;switch(p){case"==":t=c===l;break;case"<=":case">=":t=c<=l;break;case"!=":t=c!==l}}}return t})},e.deepGet=function(e,r){return r.reduce(function(e,r){return e&&e[r]?e[r]:null},e)},e}()}})});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CsHttpService } from '../../core/http-service/interface';
|
|
2
|
+
import { Container } from 'inversify';
|
|
3
|
+
export declare class CertificateVerifier {
|
|
4
|
+
private httpService;
|
|
5
|
+
private container;
|
|
6
|
+
get host(): string;
|
|
7
|
+
constructor(httpService: CsHttpService, container: Container);
|
|
8
|
+
private publicKey;
|
|
9
|
+
verifyData(signedJSON: any, publicKey: any): Promise<any>;
|
|
10
|
+
customLoader: (url: any) => Promise<any>;
|
|
11
|
+
}
|