ode-ngjs-front 1.4.17 → 1.4.18
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/dist/ode-ngjs-front.js +1 -1
- package/dist/ode-ngjs-front.js.map +1 -1
- package/dist/version.txt +1 -1
- package/package.json +1 -1
package/dist/ode-ngjs-front.js
CHANGED
|
@@ -25,7 +25,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
25
25
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
26
|
PERFORMANCE OF THIS SOFTWARE.
|
|
27
27
|
***************************************************************************** */
|
|
28
|
-
var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}Object.create;function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function l(e){return this instanceof l?(this.v=e,this):new l(e)}function d(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof l?Promise.resolve(n.value.v).then(u,c):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function f(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=s(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}Object.create;function h(e){return"function"==typeof e}function p(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var v=p(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function m(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var g=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=s(o),l=a.next();!l.done;l=a.next()){l.value.remove(this)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var d=this.initialTeardown;if(h(d))try{d()}catch(e){i=e instanceof v?e.errors:[e]}var f=this._teardowns;if(f){this._teardowns=null;try{for(var p=s(f),m=p.next();!m.done;m=p.next()){var g=m.value;try{w(g)}catch(e){i=null!=i?i:[],e instanceof v?i=c(c([],u(i)),u(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{m&&!m.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}}if(i)throw new v(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)w(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&m(t,e)},e.prototype.remove=function(t){var n=this._teardowns;n&&m(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),b=g.EMPTY;function y(e){return e instanceof g||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function w(e){h(e)?e():e.unsubscribe()}var _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},x={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=x.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,c([],u(e)))},clearTimeout:function(e){var t=x.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function k(e){x.setTimeout(function(){var t=_.onUnhandledError;if(!t)throw e;t(e)})}function S(){}var M=D("C",void 0,void 0);function D(e,t,n){return{kind:e,value:t,error:n}}var O=null;function T(e){if(_.useDeprecatedSynchronousErrorHandling){var t=!O;if(t&&(O={errorThrown:!1,error:null}),e(),t){var n=O,r=n.errorThrown,i=n.error;if(O=null,r)throw i}}else e()}var P=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,y(t)&&t.add(n)):n.destination=I,n}return i(t,e),t.create=function(e,t,n){return new C(e,t,n)},t.prototype.next=function(e){this.isStopped?j(function(e){return D("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?j(D("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?j(M,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(g),C=function(e){function t(t,n,r){var i,o=e.call(this)||this;if(h(t))i=t;else if(t){var a;i=t.next,n=t.error,r=t.complete,o&&_.useDeprecatedNextContext?(a=Object.create(t)).unsubscribe=function(){return o.unsubscribe()}:a=t,i=null==i?void 0:i.bind(a),n=null==n?void 0:n.bind(a),r=null==r?void 0:r.bind(a)}return o.destination={next:i?E(i,o):S,error:E(null!=n?n:A,o),complete:r?E(r,o):S},o}return i(t,e),t}(P);function E(e,t){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{e.apply(void 0,c([],u(t)))}catch(e){_.useDeprecatedSynchronousErrorHandling?function(e){_.useDeprecatedSynchronousErrorHandling&&O&&(O.errorThrown=!0,O.error=e)}(e):k(e)}}}function A(e){throw e}function j(e,t){var n=_.onStoppedNotification;n&&x.setTimeout(function(){return n(e,t)})}var I={closed:!0,next:S,error:A,complete:S},N="function"==typeof Symbol&&Symbol.observable||"@@observable";function R(e){return e}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return L(e)}function L(e){return 0===e.length?R:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var F=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof P||function(e){return e&&h(e.next)&&h(e.error)&&h(e.complete)}(r)&&y(r)?e:new C(e,t,n);return T(function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=W(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(e){r(e),null==i||i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[N]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return L(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=W(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function W(e){var t;return null!==(t=null!=e?e:_.Promise)&&void 0!==t?t:Promise}function V(e){return h(null==e?void 0:e.lift)}function U(e){return function(t){if(V(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}var G=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.onFinalize=o,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return i(t,e),t.prototype.unsubscribe=function(){var t,n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}(P);function $(){return U(function(e,t){var n=null;e._refCount++;var r=new G(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),t.unsubscribe()}});e.subscribe(r),r.closed||(n=e.connect())})}var H=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,V(t)&&(r.lift=t.lift),r}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new g;var n=this.getSubject();t.add(this.source.subscribe(new G(n,void 0,function(){e._teardown(),n.complete()},function(t){e._teardown(),n.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=g.EMPTY)}return t},t.prototype.refCount=function(){return $()(this)},t}(F),z={now:function(){return(z.delegate||performance).now()},delegate:void 0},q={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=q.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var i=t(function(t){n=void 0,e(t)});return new g(function(){return null==n?void 0:n(i)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=q.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,c([],u(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=q.delegate;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,c([],u(e)))},delegate:void 0};function B(e){return e?Z(e):X}function Z(e){var t=q.schedule;return new F(function(n){var r=new g,i=e||z,o=i.now(),a=function(s){var u=i.now();n.next({timestamp:e?u:s,elapsed:u-o}),n.closed||r.add(t(a))};return r.add(t(a)),r})}var J,X=Z(),K=p(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Q=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new ee(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new K},t.prototype.next=function(e){var t=this;T(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){var i=t.observers.slice();try{for(var o=s(i),a=o.next();!a.done;a=o.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;T(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;T(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=t.hasError,r=t.isStopped,i=t.observers;return n||r?b:(i.push(e),new g(function(){return m(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new F;return e.source=this,e},t.create=function(e,t){return new ee(e,t)},t}(F),ee=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return i(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:b},t}(Q),te=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Q),ne={now:function(){return(ne.delegate||Date).now()},delegate:void 0},re=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ne);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return i(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var a=n.now(),s=0,u=1;u<r.length&&r[u]<=a;u+=2)s=u;s&&r.splice(0,s+1)}},t}(Q),ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,i=t._value,o=t.thrownError,a=t.isStopped,s=t._isComplete;n?e.error(o):(a||s)&&(r&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(Q),oe=function(e){function t(t,n){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(g),ae={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ae.delegate;return((null==n?void 0:n.setInterval)||setInterval).apply(void 0,c([],u(e)))},clearInterval:function(e){var t=ae.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},se=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return i(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),ae.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;ae.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=!!e&&e||new Error(e)}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,m(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(oe),ue=1,ce={};function le(e){return e in ce&&(delete ce[e],!0)}var de=function(e){var t=ue++;return ce[t]=!0,J||(J=Promise.resolve()),J.then(function(){return le(t)&&e()}),t},fe=function(e){le(e)},he={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=he.delegate;return((null==n?void 0:n.setImmediate)||de).apply(void 0,c([],u(e)))},clearImmediate:function(e){var t=he.delegate;return((null==t?void 0:t.clearImmediate)||fe)(e)},delegate:void 0},pe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=he.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(he.clearImmediate(n),t._scheduled=void 0)},t}(se),ve=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=ne.now,e}(),me=function(e){function t(t,n){void 0===n&&(n=ve.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(ve),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var i=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this._active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(me),be=new ge(pe),ye=be,we=new me(se),_e=we,xe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(se),ke=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(me))(xe),Se=ke,Me=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=q.requestAnimationFrame(function(){return t.flush(void 0)})))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(q.cancelAnimationFrame(n),t._scheduled=void 0)},t}(se),De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var i=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this._active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(me),Oe=new De(Me),Te=Oe,Pe=function(e){function t(t,n){void 0===t&&(t=Ce),void 0===n&&(n=1/0);var r=e.call(this,t,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return i(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(me),Ce=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return i(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}return g.EMPTY},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(se),Ee=new F(function(e){return e.complete()});function Ae(e){return e?function(e){return new F(function(t){return e.schedule(function(){return t.complete()})})}(e):Ee}function je(e,t){return new F(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}var Ie=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Ne(e){return h(null==e?void 0:e.then)}var Re,Ye="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Le(e,t,n,r){void 0===r&&(r=0);var i=t.schedule(function(){try{n.call(this)}catch(t){e.error(t)}},r);return e.add(i),i}function Fe(e,t){return new F(function(n){var r;return n.add(t.schedule(function(){r=e[Ye](),Le(n,t,function(){var e=r.next(),t=e.value;e.done?n.complete():(n.next(t),this.schedule())})})),function(){return h(null==r?void 0:r.return)&&r.return()}})}function We(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(function(n){var r=new g;return r.add(t.schedule(function(){var i=e[Symbol.asyncIterator]();r.add(t.schedule(function(){var e=this;i.next().then(function(t){t.done?n.complete():(n.next(t.value),e.schedule())})}))})),r})}function Ve(e){return h(e[N])}function Ue(e){return h(null==e?void 0:e[Ye])}function Ge(e){return Symbol.asyncIterator&&h(null==e?void 0:e[Symbol.asyncIterator])}function $e(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function He(e){return d(this,arguments,function(){var t,n,r;return a(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,l(t.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,l(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,l(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function ze(e){return h(null==e?void 0:e.getReader)}function qe(e,t){if(null!=e){if(Ve(e))return function(e,t){return new F(function(n){var r=new g;return r.add(t.schedule(function(){var i=e[N]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(Ie(e))return je(e,t);if(Ne(e))return function(e,t){return new F(function(n){return t.schedule(function(){return e.then(function(e){n.add(t.schedule(function(){n.next(e),n.add(t.schedule(function(){return n.complete()}))}))},function(e){n.add(t.schedule(function(){return n.error(e)}))})})})}(e,t);if(Ge(e))return We(e,t);if(Ue(e))return Fe(e,t);if(ze(e))return function(e,t){return We(He(e),t)}(e,t)}throw $e(e)}function Be(e,t){return t?qe(e,t):Ze(e)}function Ze(e){if(e instanceof F)return e;if(null!=e){if(Ve(e))return r=e,new F(function(e){var t=r[N]();if(h(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(Ie(e))return Je(e);if(Ne(e))return n=e,new F(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,k)});if(Ge(e))return Xe(e);if(Ue(e))return t=e,new F(function(e){var n,r;try{for(var i=s(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()});if(ze(e))return Xe(He(e))}var t,n,r;throw $e(e)}function Je(e){return new F(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Xe(e){return new F(function(t){(function(e,t){var n,r,i,s;return o(this,void 0,void 0,function(){var o,u;return a(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=f(e),a.label=1;case 1:return[4,n.next()];case 2:if((r=a.sent()).done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=a.sent(),i={error:u},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function Ke(e,t){return t?je(e,t):Je(e)}function Qe(e){return e&&h(e.schedule)}function et(e){return e[e.length-1]}function tt(e){return h(et(e))?e.pop():void 0}function nt(e){return Qe(et(e))?e.pop():void 0}function rt(e,t){return"number"==typeof et(e)?e.pop():t}function it(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return n?je(e,n):Ke(e)}function ot(e,t){var n=h(e)?e:function(){return e},r=function(e){return e.error(n())};return new F(t?function(e){return t.schedule(r,0,e)}:r)}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(Re||(Re={}));var at=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return st(this,e)},e.prototype.do=function(e,t,n){var r=this,i=r.kind,o=r.value,a=r.error;return"N"===i?null==e?void 0:e(o):"E"===i?null==t?void 0:t(a):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return h(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,r=e.error,i="N"===t?it(n):"E"===t?ot(function(){return r}):"C"===t?Ee:0;if(!i)throw new TypeError("Unexpected notification kind "+t);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function st(e,t){var n,r,i,o=e,a=o.kind,s=o.value,u=o.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(n=t.next)||void 0===n||n.call(t,s):"E"===a?null===(r=t.error)||void 0===r||r.call(t,u):null===(i=t.complete)||void 0===i||i.call(t)}function ut(e){return!!e&&(e instanceof F||h(e.lift)&&h(e.subscribe))}var ct=p(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function lt(e,t){var n="object"==typeof t;return new Promise(function(r,i){var o,a=!1;e.subscribe({next:function(e){o=e,a=!0},error:i,complete:function(){a?r(o):n?r(t.defaultValue):i(new ct)}})})}function dt(e,t){var n="object"==typeof t;return new Promise(function(r,i){var o=new C({next:function(e){r(e),o.unsubscribe()},error:i,complete:function(){n?r(t.defaultValue):i(new ct)}});e.subscribe(o)})}var ft=p(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),ht=p(function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}),pt=p(function(e){return function(t){e(this),this.name="SequenceError",this.message=t}});function vt(e){return e instanceof Date&&!isNaN(e)}var mt=p(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function gt(e,t){var n=vt(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,a=void 0===o?bt:o,s=n.scheduler,u=void 0===s?null!=t?t:we:s,c=n.meta,l=void 0===c?null:c;if(null==r&&null==i)throw new TypeError("No timeout provided.");return U(function(e,t){var n,o,s=null,c=0,d=function(e){o=Le(t,u,function(){n.unsubscribe(),Ze(a({meta:l,lastValue:s,seen:c})).subscribe(t)},e)};n=e.subscribe(new G(t,function(e){null==o||o.unsubscribe(),c++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),d(null!=r?"number"==typeof r?r:+r-u.now():i)})}function bt(e){throw new mt(e)}function yt(e,t){return void 0===t&&(t=0),U(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function wt(e,t){return U(function(n,r){var i=0;n.subscribe(new G(r,function(n){r.next(e.call(t,n,i++))}))})}var _t=Array.isArray;function xt(e){return wt(function(t){return function(e,t){return _t(t)?e.apply(void 0,c([],u(t))):e(t)}(e,t)})}function kt(e,t){return void 0===t&&(t=0),U(function(n,r){n.subscribe(new G(r,function(n){return r.add(e.schedule(function(){return r.next(n)},t))},function(){return r.add(e.schedule(function(){return r.complete()},t))},function(n){return r.add(e.schedule(function(){return r.error(n)},t))}))})}function St(e,t,n,r){if(n){if(!Qe(n))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return St(e,t,r).apply(this,i).pipe(xt(n))};r=n}return r?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return St(e,t).apply(this,n).pipe(yt(r),kt(r))}:function(){for(var n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new ie,a=!0;return new F(function(i){var s=o.subscribe(i);if(a){a=!1;var l=!1,d=!1;t.apply(n,c(c([],u(r)),[function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=t.shift();if(null!=r)return void o.error(r)}o.next(1<t.length?t:t[0]),d=!0,l&&o.complete()}])),d&&o.complete(),l=!0}return s})}}function Mt(e,t,n){return St(!1,e,t,n)}function Dt(e,t,n){return St(!0,e,t,n)}var Ot=Array.isArray,Tt=Object.getPrototypeOf,Pt=Object.prototype,Ct=Object.keys;function Et(e){if(1===e.length){var t=e[0];if(Ot(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&Tt(r)===Pt){var n=Ct(t);return{args:n.map(function(e){return t[e]}),keys:n}}}var r;return{args:e,keys:null}}function At(e,t){return e.reduce(function(e,n,r){return e[n]=t[r],e},{})}function jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=tt(e),i=Et(e),o=i.args,a=i.keys;if(0===o.length)return Be([],n);var s=new F(It(o,n,a?function(e){return At(a,e)}:R));return r?s.pipe(xt(r)):s}function It(e,t,n){return void 0===n&&(n=R),function(r){Nt(t,function(){for(var i=e.length,o=new Array(i),a=i,s=i,u=function(i){Nt(t,function(){var u=Be(e[i],t),c=!1;u.subscribe(new G(r,function(e){o[i]=e,c||(c=!0,s--),s||r.next(n(o.slice()))},function(){--a||r.complete()}))},r)},c=0;c<i;c++)u(c)},r)}}function Nt(e,t,n){e?n.add(e.schedule(t)):t()}function Rt(e,t,n,r,i,o,a,s){var u=[],c=0,l=0,d=!1,f=function(){!d||u.length||c||t.complete()},h=function(e){return c<r?p(e):u.push(e)},p=function(e){o&&t.next(e),c++;var s=!1;Ze(n(e,l++)).subscribe(new G(t,function(e){null==i||i(e),o?h(e):t.next(e)},function(){s=!0},void 0,function(){if(s)try{c--;for(var e=function(){var e=u.shift();a?t.add(a.schedule(function(){return p(e)})):p(e)};u.length&&c<r;)e();f()}catch(e){t.error(e)}}))};return e.subscribe(new G(t,h,function(){d=!0,f()})),function(){null==s||s()}}function Yt(e,t,n){return void 0===n&&(n=1/0),h(t)?Yt(function(n,r){return wt(function(e,i){return t(n,e,r,i)})(Ze(e(n,r)))},n):("number"==typeof t&&(n=t),U(function(t,r){return Rt(t,r,e,n)}))}function Lt(e){return void 0===e&&(e=1/0),Yt(R,e)}function Ft(){return Lt(1)}function Wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ft()(Ke(e,nt(e)))}function Vt(e){return new F(function(t){Ze(e()).subscribe(t)})}var Ut={connector:function(){return new Q},resetOnDisconnect:!0};function Gt(e,t){void 0===t&&(t=Ut);var n=null,r=t.connector,i=t.resetOnDisconnect,o=void 0===i||i,a=r(),s=new F(function(e){return a.subscribe(e)});return s.connect=function(){return n&&!n.closed||(n=Vt(function(){return e}).subscribe(a),o&&n.add(function(){return a=r()})),n},s}function $t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e),r=Et(e),i=r.args,o=r.keys,a=new F(function(e){var t=i.length;if(t)for(var n=new Array(t),r=t,a=t,s=function(t){var s=!1;Ze(i[t]).subscribe(new G(e,function(e){s||(s=!0,a--),n[t]=e},function(){--r&&s||(a||e.next(o?At(o,n):n),e.complete())}))},u=0;u<t;u++)s(u);else e.complete()});return n?a.pipe(xt(n)):a}var Ht=["addListener","removeListener"],zt=["addEventListener","removeEventListener"],qt=["on","off"];function Bt(e,t,n,r){if(h(n)&&(r=n,n=void 0),r)return Bt(e,t,n).pipe(xt(r));var i=u(function(e){return h(e.addEventListener)&&h(e.removeEventListener)}(e)?zt.map(function(r){return function(i){return e[r](t,i,n)}}):function(e){return h(e.addListener)&&h(e.removeListener)}(e)?Ht.map(Zt(e,t)):function(e){return h(e.on)&&h(e.off)}(e)?qt.map(Zt(e,t)):[],2),o=i[0],a=i[1];if(!o&&Ie(e))return Yt(function(e){return Bt(e,t,n)})(Ke(e));if(!o)throw new TypeError("Invalid event target");return new F(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return o(t),function(){return a(t)}})}function Zt(e,t){return function(n){return function(r){return e[n](t,r)}}}function Jt(e,t,n){return n?Jt(e,t).pipe(xt(n)):new F(function(n){var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)},i=e(r);return h(t)?function(){return t(r,i)}:void 0})}function Xt(e,t,n,r,i){var o,s,u,c;function l(){var e;return a(this,function(r){switch(r.label){case 0:e=c,r.label=1;case 1:return t&&!t(e)?[3,4]:[4,u(e)];case 2:r.sent(),r.label=3;case 3:return e=n(e),[3,1];case 4:return[2]}})}return 1===arguments.length?(c=(o=e).initialState,t=o.condition,n=o.iterate,s=o.resultSelector,u=void 0===s?R:s,i=o.scheduler):(c=e,!r||Qe(r)?(u=R,i=r):u=r),Vt(i?function(){return Fe(l(),i)}:l)}function Kt(e,t,n){return Vt(function(){return e()?t:n})}function Qt(e,t,n){void 0===e&&(e=0),void 0===n&&(n=_e);var r=-1;return null!=t&&(Qe(t)?n=t:r=t),new F(function(t){var i=vt(e)?+e-n.now():e;i<0&&(i=0);var o=0;return n.schedule(function(){t.closed||(t.next(o++),0<=r?this.schedule(void 0,r):t.complete())},i)})}function en(e,t){return void 0===e&&(e=0),void 0===t&&(t=we),e<0&&(e=0),Qt(e,e,t)}function tn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=rt(e,1/0),i=e;return i.length?1===i.length?Ze(i[0]):Lt(r)(Ke(i,n)):Ee}var nn=new F(S);function rn(){return nn}var on=Array.isArray;function an(e){return 1===e.length&&on(e[0])?e[0]:e}function sn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=an(e);return U(function(e,t){var r=c([e],u(n)),i=function(){if(!t.closed)if(r.length>0){var e=void 0;try{e=Ze(r.shift())}catch(e){return void i()}var n=new G(t,void 0,S,S);t.add(e.subscribe(n)),n.add(i)}else t.complete()};i()})}(an(e))(Ee)}function un(e,t){return Be(Object.entries(e),t)}function cn(e,t){return function(n,r){return!e.call(t,n,r)}}function ln(e,t){return U(function(n,r){var i=0;n.subscribe(new G(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}function dn(e,t,n){return[ln(t,n)(Ze(e)),ln(cn(t,n))(Ze(e))]}function fn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=an(e)).length?Ze(e[0]):new F(hn(e))}function hn(e){return function(t){for(var n=[],r=function(r){n.push(Ze(e[r]).subscribe(new G(t,function(e){if(n){for(var i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}t.next(e)})))},i=0;n&&!t.closed&&i<e.length;i++)r(i)}}function pn(e,t,n){if(null==t&&(t=e,e=0),t<=0)return Ee;var r=t+e;return new F(n?function(t){var i=e;return n.schedule(function(){i<r?(t.next(i++),this.schedule()):t.complete()})}:function(t){for(var n=e;n<r&&!t.closed;)t.next(n++);t.complete()})}function vn(e,t){return new F(function(n){var r=e(),i=t(r);return(i?Ze(i):Ee).subscribe(n),function(){r&&r.unsubscribe()}})}function mn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e),r=an(e);return r.length?new F(function(e){var t=r.map(function(){return[]}),i=r.map(function(){return!1});e.add(function(){t=i=null});for(var o=function(o){Ze(r[o]).subscribe(new G(e,function(r){if(t[o].push(r),t.every(function(e){return e.length})){var a=t.map(function(e){return e.shift()});e.next(n?n.apply(void 0,c([],u(a))):a),t.some(function(e,t){return!e.length&&i[t]})&&e.complete()}},function(){i[o]=!0,!t[o].length&&e.complete()}))},a=0;!e.closed&&a<r.length;a++)o(a);return function(){t=i=null}}):Ee}function gn(e){return U(function(t,n){var r=!1,i=null,o=null,a=!1,s=function(){if(null==o||o.unsubscribe(),o=null,r){r=!1;var e=i;i=null,n.next(e)}a&&n.complete()},u=function(){o=null,a&&n.complete()};t.subscribe(new G(n,function(t){r=!0,i=t,o||Ze(e(t)).subscribe(o=new G(n,s,u))},function(){a=!0,(!r||!o||o.closed)&&n.complete()}))})}function bn(e,t){return void 0===t&&(t=_e),gn(function(){return Qt(e,t)})}function yn(e){return U(function(t,n){var r=[];return t.subscribe(new G(n,function(e){return r.push(e)},function(){n.next(r),n.complete()})),e.subscribe(new G(n,function(){var e=r;r=[],n.next(e)},S)),function(){r=null}})}function wn(e,t){return void 0===t&&(t=null),t=null!=t?t:e,U(function(n,r){var i=[],o=0;n.subscribe(new G(r,function(n){var a,u,c,l,d=null;o++%t===0&&i.push([]);try{for(var f=s(i),h=f.next();!h.done;h=f.next()){(g=h.value).push(n),e<=g.length&&(d=null!=d?d:[]).push(g)}}catch(e){a={error:e}}finally{try{h&&!h.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}if(d)try{for(var p=s(d),v=p.next();!v.done;v=p.next()){var g=v.value;m(i,g),r.next(g)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(l=p.return)&&l.call(p)}finally{if(c)throw c.error}}},function(){var e,t;try{for(var n=s(i),o=n.next();!o.done;o=n.next()){var a=o.value;r.next(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.complete()},void 0,function(){i=null}))})}function _n(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(t=nt(r))&&void 0!==t?t:we,a=null!==(n=r[0])&&void 0!==n?n:null,u=r[1]||1/0;return U(function(t,n){var r=[],i=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),m(r,e),n.next(t),i&&l()},l=function(){if(r){var t=new g;n.add(t);var i={buffer:[],subs:t};r.push(i),t.add(o.schedule(function(){return c(i)},e))}};null!==a&&a>=0?n.add(o.schedule(function(){l(),!this.closed&&n.add(this.schedule(null,a))},a)):i=!0,l();var d=new G(n,function(e){var t,n,i=r.slice();try{for(var o=s(i),a=o.next();!a.done;a=o.next()){var l=a.value,d=l.buffer;d.push(e),u<=d.length&&c(l)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},function(){for(;null==r?void 0:r.length;)n.next(r.shift().buffer);null==d||d.unsubscribe(),n.complete(),n.unsubscribe()},void 0,function(){return r=null});t.subscribe(d)})}function xn(e,t){return U(function(n,r){var i=[];Ze(e).subscribe(new G(r,function(e){var n=[];i.push(n);var o=new g;o.add(Ze(t(e)).subscribe(new G(r,function(){m(i,n),r.next(n),o.unsubscribe()},S)))},S)),n.subscribe(new G(r,function(e){var t,n;try{for(var r=s(i),o=r.next();!o.done;o=r.next()){o.value.push(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},function(){for(;i.length>0;)r.next(i.shift());r.complete()}))})}function kn(e){return U(function(t,n){var r=null,i=null,o=function(){null==i||i.unsubscribe();var t=r;r=[],t&&n.next(t),Ze(e()).subscribe(i=new G(n,o,S))};o(),t.subscribe(new G(n,function(e){return null==r?void 0:r.push(e)},function(){r&&n.next(r),n.complete()},void 0,function(){return r=i=null}))})}function Sn(e){return U(function(t,n){var r,i=null,o=!1;i=t.subscribe(new G(n,void 0,void 0,function(a){r=Ze(e(a,Sn(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(n)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(n))})}function Mn(e,t,n,r,i){return function(o,a){var s=n,u=t,c=0;o.subscribe(new G(a,function(t){var n=c++;u=s?e(u,t,n):(s=!0,t),r&&a.next(u)},i&&function(){s&&a.next(u),a.complete()}))}}function Dn(e,t){return U(Mn(e,t,arguments.length>=2,!1,!0))}var On=function(e,t){return e.push(t),e};function Tn(){return U(function(e,t){Dn(On,[])(e).subscribe(t)})}function Pn(e,t){return Y(Tn(),Yt(function(t){return e(t)}),t?xt(t):R)}function Cn(e){return Pn(jt,e)}var En=Cn;function An(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e);return n?Y(An.apply(void 0,c([],u(e))),xt(n)):U(function(t,n){It(c([t],u(an(e))))(n)})}function jn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return An.apply(void 0,c([],u(e)))}function In(e,t){return h(t)?Yt(e,t,1):Yt(e,1)}function Nn(e,t){return h(t)?In(function(){return e},t):In(function(){return e})}function Rn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return U(function(t,r){Ft()(Ke(c([t],u(e)),n)).subscribe(r)})}function Yn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rn.apply(void 0,c([],u(e)))}var Ln={connector:function(){return new Q}};function Fn(e,t){void 0===t&&(t=Ln);var n=t.connector;return U(function(t,r){var i,o=n();Be(e((i=o,new F(function(e){return i.subscribe(e)})))).subscribe(r),r.add(t.subscribe(o))})}function Wn(e){return Dn(function(t,n,r){return!e||e(n,r)?t+1:t},0)}function Vn(e){return U(function(t,n){var r=!1,i=null,o=null,a=function(){if(null==o||o.unsubscribe(),o=null,r){r=!1;var e=i;i=null,n.next(e)}};t.subscribe(new G(n,function(t){null==o||o.unsubscribe(),r=!0,i=t,o=new G(n,a,S),Ze(e(t)).subscribe(o)},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function Un(e,t){return void 0===t&&(t=we),U(function(n,r){var i=null,o=null,a=null,s=function(){if(i){i.unsubscribe(),i=null;var e=o;o=null,r.next(e)}};function u(){var n=a+e,o=t.now();if(o<n)return i=this.schedule(void 0,n-o),void r.add(i);s()}n.subscribe(new G(r,function(n){o=n,a=t.now(),i||(i=t.schedule(u,e),r.add(i))},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function Gn(e){return U(function(t,n){var r=!1;t.subscribe(new G(n,function(e){r=!0,n.next(e)},function(){r||n.next(e),n.complete()}))})}function $n(e){return e<=0?function(){return Ee}:U(function(t,n){var r=0;t.subscribe(new G(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function Hn(){return U(function(e,t){e.subscribe(new G(t,S))})}function zn(e){return wt(function(){return e})}function qn(e,t){return t?function(n){return Wt(t.pipe($n(1),Hn()),n.pipe(qn(e)))}:Yt(function(t,n){return e(t,n).pipe($n(1),zn(t))})}function Bn(e,t){void 0===t&&(t=we);var n=Qt(e,t);return qn(function(){return n})}function Zn(){return U(function(e,t){e.subscribe(new G(t,function(e){return st(e,t)}))})}function Jn(e,t){return U(function(n,r){var i=new Set;n.subscribe(new G(r,function(t){var n=e?e(t):t;i.has(n)||(i.add(n),r.next(t))})),null==t||t.subscribe(new G(r,function(){return i.clear()},S))})}function Xn(e,t){return void 0===t&&(t=R),e=null!=e?e:Kn,U(function(n,r){var i,o=!0;n.subscribe(new G(r,function(n){var a=t(n);!o&&e(i,a)||(o=!1,i=a,r.next(n))}))})}function Kn(e,t){return e===t}function Qn(e,t){return Xn(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}function er(e){return void 0===e&&(e=tr),U(function(t,n){var r=!1;t.subscribe(new G(n,function(e){r=!0,n.next(e)},function(){return r?n.complete():n.error(e())}))})}function tr(){return new ct}function nr(e,t){if(e<0)throw new ft;var n=arguments.length>=2;return function(r){return r.pipe(ln(function(t,n){return n===e}),$n(1),n?Gn(t):er(function(){return new ft}))}}function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return Wt(t,it.apply(void 0,c([],u(e))))}}function ir(e,t){return U(function(n,r){var i=0;n.subscribe(new G(r,function(o){e.call(t,o,i++,n)||(r.next(!1),r.complete())},function(){r.next(!0),r.complete()}))})}function or(){return U(function(e,t){var n=!1,r=null;e.subscribe(new G(t,function(e){r||(r=Ze(e).subscribe(new G(t,void 0,function(){r=null,n&&t.complete()})))},function(){n=!0,!r&&t.complete()}))})}var ar=or;function sr(e,t){return t?function(n){return n.pipe(sr(function(n,r){return Ze(e(n,r)).pipe(wt(function(e,i){return t(n,e,r,i)}))}))}:U(function(t,n){var r=0,i=null,o=!1;t.subscribe(new G(n,function(t){i||(i=new G(n,void 0,function(){i=null,o&&n.complete()}),Ze(e(t,r++)).subscribe(i))},function(){o=!0,!i&&n.complete()}))})}function ur(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,U(function(r,i){return Rt(r,i,e,t,void 0,!0,n)})}function cr(e){return U(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}function lr(e,t){return U(dr(e,t,"value"))}function dr(e,t,n){var r="index"===n;return function(n,i){var o=0;n.subscribe(new G(i,function(a){var s=o++;e.call(t,a,s,n)&&(i.next(r?s:a),i.complete())},function(){i.next(r?-1:void 0),i.complete()}))}}function fr(e,t){return U(dr(e,t,"index"))}function hr(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ln(function(t,n){return e(t,n,r)}):R,$n(1),n?Gn(t):er(function(){return new ct}))}}function pr(e,t,n,r){return U(function(i,o){var a;t&&"function"!=typeof t?(n=t.duration,a=t.element,r=t.connector):a=t;var s=new Map,u=function(e){s.forEach(e),e(o)},c=function(e){return u(function(t){return t.error(e)})},l=new vr(o,function(t){try{var i=e(t),u=s.get(i);if(!u){s.set(i,u=r?r():new Q);var d=(h=i,p=u,(v=new F(function(e){l.activeGroups++;var t=p.subscribe(e);return function(){t.unsubscribe(),0===--l.activeGroups&&l.teardownAttempted&&l.unsubscribe()}})).key=h,v);if(o.next(d),n){var f=new G(u,function(){u.complete(),null==f||f.unsubscribe()},void 0,void 0,function(){return s.delete(i)});l.add(Ze(n(d)).subscribe(f))}}u.next(a?a(t):t)}catch(e){c(e)}var h,p,v},function(){return u(function(e){return e.complete()})},c,function(){return s.clear()});i.subscribe(l)})}var vr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeGroups=0,t.teardownAttempted=!1,t}return i(t,e),t.prototype.unsubscribe=function(){this.teardownAttempted=!0,0===this.activeGroups&&e.prototype.unsubscribe.call(this)},t}(G);function mr(){return U(function(e,t){e.subscribe(new G(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}function gr(e){return e<=0?function(){return Ee}:U(function(t,n){var r=[];t.subscribe(new G(n,function(t){r.push(t),e<r.length&&r.shift()},function(){var e,t;try{for(var i=s(r),o=i.next();!o.done;o=i.next()){var a=o.value;n.next(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}n.complete()},void 0,function(){r=null}))})}function br(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ln(function(t,n){return e(t,n,r)}):R,gr(1),n?Gn(t):er(function(){return new ct}))}}function yr(){return U(function(e,t){e.subscribe(new G(t,function(e){t.next(at.createNext(e))},function(){t.next(at.createComplete()),t.complete()},function(e){t.next(at.createError(e)),t.complete()}))})}function wr(e){return Dn(h(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var _r=Yt;function xr(e,t,n){return void 0===n&&(n=1/0),h(t)?Yt(function(){return e},t,n):("number"==typeof t&&(n=t),Yt(function(){return e},n))}function kr(e,t,n){return void 0===n&&(n=1/0),U(function(r,i){var o=t;return Rt(r,i,function(t,n){return e(o,t,n)},n,function(e){o=e},!1,void 0,function(){return o=null})})}function Sr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=rt(e,1/0);return e=an(e),U(function(t,i){Lt(r)(Ke(c([t],u(e)),n)).subscribe(i)})}function Mr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Sr.apply(void 0,c([],u(e)))}function Dr(e){return Dn(h(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}function Or(e,t){var n=h(e)?e:function(){return e};return h(t)?Fn(t,{connector:n}):function(e){return new H(e,n)}}function Tr(){return U(function(e,t){var n,r=!1;e.subscribe(new G(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))})}function Pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return wt(function(t){for(var r=t,i=0;i<n;i++){var o=null==r?void 0:r[e[i]];if(void 0===o)return;r=o}return r})}function Cr(e){return e?function(t){return Fn(e)(t)}:function(e){return Or(new Q)(e)}}function Er(e){return function(t){var n=new te(e);return new H(t,function(){return n})}}function Ar(){return function(e){var t=new ie;return new H(e,function(){return t})}}function jr(e,t,n,r){n&&!h(n)&&(r=n);var i=h(n)?n:void 0;return function(n){return Or(new re(e,t,r),i)(n)}}function Ir(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?U(function(t,n){hn(c([t],u(e)))(n)}):R}function Nr(e){return void 0===e&&(e=1/0),e<=0?function(){return Ee}:U(function(t,n){var r,i=0,o=function(){var a=!1;r=t.subscribe(new G(n,void 0,function(){++i<e?r?(r.unsubscribe(),r=null,o()):a=!0:n.complete()})),a&&(r.unsubscribe(),r=null,o())};o()})}function Rr(e){return U(function(t,n){var r,i,o=!1,a=!1,s=!1,u=function(){return s&&a&&(n.complete(),!0)},c=function(){s=!1,r=t.subscribe(new G(n,void 0,function(){s=!0,!u()&&(i||(i=new Q,e(i).subscribe(new G(n,function(){r?c():o=!0},function(){a=!0,u()}))),i).next()})),o&&(r.unsubscribe(),r=null,o=!1,c())};c()})}function Yr(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,r=void 0===n?1/0:n,i=t.delay,o=t.resetOnSuccess,a=void 0!==o&&o;return r<=0?R:U(function(e,t){var n,o=0,s=function(){var u=!1;n=e.subscribe(new G(t,function(e){a&&(o=0),t.next(e)},void 0,function(e){if(o++<r){var a=function(){n?(n.unsubscribe(),n=null,s()):u=!0};if(null!=i){var c="number"==typeof i?Qt(i):Ze(i(e,o)),l=new G(t,function(){l.unsubscribe(),a()},function(){t.complete()});c.subscribe(l)}else a()}else t.error(e)})),u&&(n.unsubscribe(),n=null,s())};s()})}function Lr(e){return U(function(t,n){var r,i,o=!1,a=function(){r=t.subscribe(new G(n,void 0,void 0,function(t){i||(i=new Q,e(i).subscribe(new G(n,function(){return r?a():o=!0}))),i&&i.next(t)})),o&&(r.unsubscribe(),r=null,o=!1,a())};a()})}function Fr(e){return U(function(t,n){var r=!1,i=null;t.subscribe(new G(n,function(e){r=!0,i=e}));e.subscribe(new G(n,function(){if(r){r=!1;var e=i;i=null,n.next(e)}},S))})}function Wr(e,t){return void 0===t&&(t=we),Fr(en(e,t))}function Vr(e,t){return U(Mn(e,t,arguments.length>=2,!0))}function Ur(e,t){return void 0===t&&(t=function(e,t){return e===t}),U(function(n,r){var i={buffer:[],complete:!1},o={buffer:[],complete:!1},a=function(e){r.next(e),r.complete()},s=function(e,n){var i=new G(r,function(r){var i=n.buffer,o=n.complete;0===i.length?o?a(!1):e.buffer.push(r):!t(r,i.shift())&&a(!1)},function(){e.complete=!0;var t=n.complete,r=n.buffer;t&&a(0===r.length),null==i||i.unsubscribe()});return i};n.subscribe(s(i,o)),e.subscribe(s(o,i))})}function Gr(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new Q}:t,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,a=void 0===o||o,s=e.resetOnRefCountZero,u=void 0===s||s;return function(e){var t=null,r=null,o=null,s=0,c=!1,l=!1,d=function(){null==r||r.unsubscribe(),r=null},f=function(){d(),t=o=null,c=l=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return U(function(e,p){s++,l||c||d();var v=o=null!=o?o:n();p.add(function(){0!==--s||l||c||(r=$r(h,u))}),v.subscribe(p),t||(t=new C({next:function(e){return v.next(e)},error:function(e){l=!0,d(),r=$r(f,i,e),v.error(e)},complete:function(){c=!0,d(),r=$r(f,a),v.complete()}}),Be(e).subscribe(t))})(e)}}function $r(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return!0===t?(e(),null):!1===t?null:t.apply(void 0,c([],u(n))).pipe($n(1)).subscribe(function(){return e()})}function Hr(e,t,n){var r,i,o,a=!1;return e&&"object"==typeof e?(o=null!==(r=e.bufferSize)&&void 0!==r?r:1/0,t=null!==(i=e.windowTime)&&void 0!==i?i:1/0,a=!!e.refCount,n=e.scheduler):o=null!=e?e:1/0,Gr({connector:function(){return new re(o,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function zr(e){return U(function(t,n){var r,i=!1,o=!1,a=0;t.subscribe(new G(n,function(s){o=!0,e&&!e(s,a++,t)||(i&&n.error(new pt("Too many matching values")),i=!0,r=s)},function(){i?(n.next(r),n.complete()):n.error(o?new ht("No matching values"):new ct)}))})}function qr(e){return ln(function(t,n){return e<=n})}function Br(e){return e<=0?R:U(function(t,n){var r=new Array(e),i=0;return t.subscribe(new G(n,function(t){var o=i++;if(o<e)r[o]=t;else{var a=o%e,s=r[a];r[a]=t,n.next(s)}})),function(){r=null}})}function Zr(e){return U(function(t,n){var r=!1,i=new G(n,function(){null==i||i.unsubscribe(),r=!0},S);Ze(e).subscribe(i),t.subscribe(new G(n,function(e){return r&&n.next(e)}))})}function Jr(e){return U(function(t,n){var r=!1,i=0;t.subscribe(new G(n,function(t){return(r||(r=!e(t,i++)))&&n.next(t)}))})}function Xr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return U(function(t,r){(n?Wt(e,t,n):Wt(e,t)).subscribe(r)})}function Kr(e,t){return U(function(n,r){var i=null,o=0,a=!1,s=function(){return a&&!i&&r.complete()};n.subscribe(new G(r,function(n){null==i||i.unsubscribe();var a=0,u=o++;Ze(e(n,u)).subscribe(i=new G(r,function(e){return r.next(t?t(n,e,u,a++):e)},function(){i=null,s()}))},function(){a=!0,s()}))})}function Qr(){return Kr(R)}function ei(e,t){return h(t)?Kr(function(){return e},t):Kr(function(){return e})}function ti(e,t){return U(function(n,r){var i=t;return Kr(function(t,n){return e(i,t,n)},function(e,t){return i=t,t})(n).subscribe(r),function(){i=null}})}function ni(e){return U(function(t,n){Ze(e).subscribe(new G(n,function(){return n.complete()},S)),!n.closed&&t.subscribe(n)})}function ri(e,t){return void 0===t&&(t=!1),U(function(n,r){var i=0;n.subscribe(new G(r,function(n){var o=e(n,i++);(o||t)&&r.next(n),!o&&r.complete()}))})}function ii(e,t,n){var r=h(e)||t||n?{next:e,error:t,complete:n}:e;return r?U(function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var i=!0;e.subscribe(new G(t,function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)},function(){var e;i=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()},function(e){var n;i=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)},function(){var e,t;i&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)}))}):R}var oi={leading:!0,trailing:!1};function ai(e,t){var n=void 0===t?oi:t,r=n.leading,i=n.trailing;return U(function(t,n){var o=!1,a=null,s=null,u=!1,c=function(){null==s||s.unsubscribe(),s=null,i&&(f(),u&&n.complete())},l=function(){s=null,u&&n.complete()},d=function(t){return s=Ze(e(t)).subscribe(new G(n,c,l))},f=function(){if(o){o=!1;var e=a;a=null,n.next(e),!u&&d(e)}};t.subscribe(new G(n,function(e){o=!0,a=e,(!s||s.closed)&&(r?f():d(e))},function(){u=!0,(!(i&&o&&s)||s.closed)&&n.complete()}))})}function si(e,t,n){void 0===t&&(t=we),void 0===n&&(n=oi);var r=Qt(e,t);return ai(function(){return r},n)}function ui(e){return void 0===e&&(e=_e),function(t){return Vt(function(){return t.pipe(Vr(function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}},{current:e.now(),value:void 0,last:void 0}),wt(function(e){var t=e.current,n=e.last,r=e.value;return new ci(r,t-n)}))})}}var ci=function(e,t){this.value=e,this.interval=t};function li(e,t,n){var r,i,o;if(n=null!=n?n:_e,vt(e)?r=e:"number"==typeof e&&(i=e),!t)throw new TypeError("No observable provided to switch to");if(o=function(){return t},null==r&&null==i)throw new TypeError("No timeout provided.");return gt({first:r,each:i,scheduler:n,with:o})}function di(e){return void 0===e&&(e=ne),wt(function(t){return{value:t,timestamp:e.now()}})}function fi(e){return U(function(t,n){var r=new Q;n.next(r.asObservable());var i=function(e){r.error(e),n.error(e)};return t.subscribe(new G(n,function(e){return null==r?void 0:r.next(e)},function(){r.complete(),n.complete()},i)),e.subscribe(new G(n,function(){r.complete(),n.next(r=new Q)},S,i)),function(){null==r||r.unsubscribe(),r=null}})}function hi(e,t){void 0===t&&(t=0);var n=t>0?t:e;return U(function(t,r){var i=[new Q],o=0;r.next(i[0].asObservable()),t.subscribe(new G(r,function(t){var a,u;try{for(var c=s(i),l=c.next();!l.done;l=c.next()){l.value.next(t)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}var d=o-e+1;if(d>=0&&d%n===0&&i.shift().complete(),++o%n===0){var f=new Q;i.push(f),r.next(f.asObservable())}},function(){for(;i.length>0;)i.shift().complete();r.complete()},function(e){for(;i.length>0;)i.shift().error(e);r.error(e)},function(){i=null}))})}function pi(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(t=nt(r))&&void 0!==t?t:we,a=null!==(n=r[0])&&void 0!==n?n:null,s=r[1]||1/0;return U(function(t,n){var r=[],i=!1,u=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),m(r,e),i&&c()},c=function(){if(r){var t=new g;n.add(t);var i=new Q,a={window:i,subs:t,seen:0};r.push(a),n.next(i.asObservable()),t.add(o.schedule(function(){return u(a)},e))}};null!==a&&a>=0?n.add(o.schedule(function(){c(),!this.closed&&n.add(this.schedule(null,a))},a)):i=!0,c();var l=function(e){return r.slice().forEach(e)},d=function(e){l(function(t){var n=t.window;return e(n)}),e(n),n.unsubscribe()};return t.subscribe(new G(n,function(e){l(function(t){t.window.next(e),s<=++t.seen&&u(t)})},function(){return d(function(e){return e.complete()})},function(e){return d(function(t){return t.error(e)})})),function(){r=null}})}function vi(e,t){return U(function(n,r){var i=[],o=function(e){for(;0<i.length;)i.shift().error(e);r.error(e)};Ze(e).subscribe(new G(r,function(e){var n=new Q;i.push(n);var a,s=new g;try{a=Ze(t(e))}catch(e){return void o(e)}r.next(n.asObservable()),s.add(a.subscribe(new G(r,function(){m(i,n),n.complete(),s.unsubscribe()},S,o)))},S)),n.subscribe(new G(r,function(e){var t,n,r=i.slice();try{for(var o=s(r),a=o.next();!a.done;a=o.next()){a.value.next(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},function(){for(;0<i.length;)i.shift().complete();r.complete()},o,function(){for(;0<i.length;)i.shift().unsubscribe()}))})}function mi(e){return U(function(t,n){var r,i,o=function(e){r.error(e),n.error(e)},a=function(){var t;null==i||i.unsubscribe(),null==r||r.complete(),r=new Q,n.next(r.asObservable());try{t=Ze(e())}catch(e){return void o(e)}t.subscribe(i=new G(n,a,a,o))};a(),t.subscribe(new G(n,function(e){return r.next(e)},function(){r.complete(),n.complete()},o,function(){null==i||i.unsubscribe(),r=null}))})}function gi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e);return U(function(t,r){for(var i=e.length,o=new Array(i),a=e.map(function(){return!1}),s=!1,l=function(t){Ze(e[t]).subscribe(new G(r,function(e){o[t]=e,s||a[t]||(a[t]=!0,(s=a.every(R))&&(a=null))},S))},d=0;d<i;d++)l(d);t.subscribe(new G(r,function(e){if(s){var t=c([e],u(o));r.next(n?n.apply(void 0,c([],u(t))):t)}}))})}function bi(e){return Pn(mn,e)}function yi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U(function(t,n){mn.apply(void 0,c([t],u(e))).subscribe(n)})}function wi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yi.apply(void 0,c([],u(e)))}},3030:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(e){this.richContentSvc=e,this.restrict="A",this.scope={bindHtml:"="}}return e.prototype.link=function(e,t,n,r){var i=this;e.$watch("bindHtml",function(n){var r;return i.richContentSvc.apply(null!==(r=n)&&void 0!==r?r:"",t,e)})},e}();function r(e){return new n(e)}t.DirectiveFactory=r,r.$inject=["odeRichContentService"]},1098:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var o=n(9419),a=n(9826),s=n(3148),u=function(){function e(){this.hasRecorded=!1}return e.prototype.guardObjectIsDirty=function(){return this.hasRecorded},e.prototype.guardObjectReset=function(){this.hasRecorded=!1},e}(),c=function(){function e(e,t){var n=this;this.videoUploadService=e,this.videoEventTrackerService=t,this._recorder=this.setRecorder("audio"),this.isAudioCompatible=a.audio_recorder.isCompatible(),this.isVideoCompatible=s.VideoRecorder.isCompatible()&&(0,o.session)().hasWorkflow("com.opendigitaleducation.video.controllers.VideoController|capture"),this.disabledButtons=!0,this.displaySavedMessage=!1,this.selectedRecorder="none",this.recordIsSaved=!1,this.msToTime=function(e){e/=1e3;var t=parseInt(""+e/60),r=parseInt(""+e%60);return t+":"+n.pad2(r)}}return e.prototype.setRecorder=function(e){return this._recorder="audio"===e?a.audio_recorder:new s.VideoRecorder(this.videoFactory,this.videoDurationHandler,this.videoUploadService,this.videoEventTrackerService,this.selectedVid),this._recorder.status(this.recorderStatus),this._recorder},Object.defineProperty(e.prototype,"recorder",{get:function(){return this._recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPermission",{get:function(){return"granted"===this.recorder.permission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIdle",{get:function(){return!this.recorder||"idle"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPreparing",{get:function(){return"preparing"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRecording",{get:function(){return"recording"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSuspended",{get:function(){return"suspended"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPaused",{get:function(){return"paused"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPlaying",{get:function(){return"playing"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStopped",{get:function(){return"stopped"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEncoding",{get:function(){return"encoding"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUploading",{get:function(){return"uploading"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showMenu",{get:function(){return this.isIdle||this.isStopped||!this.hasPermission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showRecorder",{get:function(){return this.hasPermission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showActionButtons",{get:function(){return this.recorder&&this.recorder.elapsedTime>0&&!this.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAudio",{get:function(){return this._recorder===a.audio_recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVideo",{get:function(){return this._recorder!==a.audio_recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"recordMaxTime",{get:function(){return 60*this.videoUploadService.maxDuration*1e3},enumerable:!1,configurable:!0}),e.prototype.switchRecorder=function(e){var t,n;"audio"===e?(this.selectedRecorder="audio",this.setRecorder("audio")):(this.selectedRecorder="video",this.msToTime(0),this.setRecorder("video"),null===(n=null===(t=this.recorder)||void 0===t?void 0:t.prepare)||void 0===n||n.call(t))},e.prototype.switchAudioRecord=function(){var e,t;if(this.setRecorder("audio"),this.isRecording)this.disabledButtons=!1,this.recordIsSaved=!1,null===(e=this.recorder)||void 0===e||e.suspend();else{null===(t=this.recorder)||void 0===t||t.record();var n=document.getElementById("btnAudioRecorder");n&&this.trackEvent(n,{detail:{open:"audio"}})}},e.prototype.switchVideoRecord=function(){var e,t;if(this.isRecording)this.disabledButtons=!1,null===(e=this.recorder)||void 0===e||e.suspend();else{null===(t=this.recorder)||void 0===t||t.record();var n=document.getElementById("btnVideoRecorder");n&&this.trackEvent(n,{detail:{open:"video"}})}this.isPaused&&this.restart()},e.prototype.trackEvent=function(e,t){var n,r;void 0===t.bubbles&&(t.bubbles=!0);var i=null;!t||"audio"!==(null===(n=t.detail)||void 0===n?void 0:n.open)&&"video"!==(null===(r=t.detail)||void 0===r?void 0:r.open)||(i=new CustomEvent("ode-recorder",t)),i&&e&&e.dispatchEvent(i)},e.prototype.pad2=function(e){return(e<10?"0":"")+e},e.prototype.time=function(){return this.recorder?this.msToTime(1e3*this.recorder.elapsedTime):""},e.prototype.switchPlay=function(){this.recorder&&(this.isPlaying?this.recorder.pause():this.recorder.play())},e.prototype.switchVideo=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return[4,(t=this.recorder).switchCamera(e)];case 1:return n.sent(),[4,t.record()];case 2:return n.sent(),[2]}})})},e.prototype.saveRecord=function(){var e;null===(e=this.recorder)||void 0===e||e.save(),this.recordIsSaved=!0},e.prototype.redo=function(){var e,t;null===(e=this.recorder)||void 0===e||e.flush(),null===(t=this.recorder)||void 0===t||t.record()},e.prototype.restart=function(){var e,t=this,n=document.getElementById("recorderWidgetVideoPlayer");null==n||n.removeChild(n.firstElementChild),null===(e=this.recorder)||void 0===e||e.flush(),this.switchRecorder("video"),setTimeout(function(){var e;null===(e=t.recorder)||void 0===e||e.record()},100)},e.prototype.getSaveBtnClass=function(){return this.isEncoding||this.isUploading?"fas fa-spinner fa-spin":"fas fa-save"},e.prototype.getSavedStatus=function(e){return"saved"===e?(this.displaySavedMessage=!0,!0):(this.displaySavedMessage=!1,!1)},e.prototype.clean=function(){var e;this.displaySavedMessage=!1,this.recordIsSaved=!1,this.disabledButtons=!0,null===(e=this.recorder)||void 0===e||e.flush(),this.selectedRecorder="none"},e}();t.Controller=c;var l=function(){function e(e){this.helperSvc=e,this.restrict="EA",this.template=n(41).Z,this.scope={format:"@?",onUpload:"&?"},this.controller=["odeVideoUploadService","odeVideoEventTrackerService",c],this.controllerAs="ctrl",this.require=["odeRecorder"]}return e.prototype.link=function(e,t,n,r){var i=this,a=r?r[0]:null;if(a&&a.recorder){if(e.recordGuard=new u,a.isVideoCompatible){var s=(0,o.conf)().Platform.idiom,c={deviceId:"environment",label:s.translate("video.back.camera"),groupId:"",kind:"videoinput"},l={deviceId:"user",label:s.translate("video.front.camera"),groupId:"",kind:"videoinput"};a.videoUploadService.initialize().then(function(){return navigator.mediaDevices.enumerateDevices()}).then(function(e){return e.filter(function(e){return"videoinput"===e.kind})}).then(function(e){switch(o.deviceType){case"Mobile":case"Tablet":e&&e.length>1?a.videoInputDevices=[c,l]:a.videoInputDevices=[c];break;default:a.videoInputDevices=e}}).catch(function(){console.error("[VideoController.videoInputDevices] An error occured while detecting cameras."),a.videoInputDevices=[c]}).finally(function(){a.videoInputDevices&&(a.selectedVid=a.videoInputDevices[0]),i.helperSvc.safeApply(e)})}a.videoFactory=function(){var e=document.createElement("video");return e.setAttribute("style","max-width:100%"),e.setAttribute("playsinline","true"),e.setAttribute("autoplay",""),e.setAttribute("muted",""),setTimeout(function(){var t;null===(t=document.getElementById("recorderWidgetVideoPlayer"))||void 0===t||t.appendChild(e)},100),e};var d={startedAt:0,endedAt:0};a.videoDurationHandler=function(t){var n;0===d.startedAt&&(d.startedAt=t.timeStamp),a.isRecording&&(d.endedAt=t.timeStamp,a.recorder.elapsedTime=d.endedAt-d.startedAt,a.recorder.elapsedTime>=a.recordMaxTime&&(a.disabledButtons=!1,null===(n=a.recorder)||void 0===n||n.suspend())),i.helperSvc.safeApply(e)},a.recorderStatus=function(t){switch(t){case"recording":d.endedAt=d.startedAt=0,e.recordGuard&&(e.recordGuard.hasRecorded=!0);break;case"saved":e.recordGuard&&e.recordGuard.guardObjectReset(),e.onUpload&&e.onUpload(),a.getSavedStatus(t);case"idle":e.recordGuard&&e.recordGuard.guardObjectReset()}i.helperSvc.safeApply(e)}}},e}();function d(e){return new l(e)}t.DirectiveFactory=d,d.$inject=["odeNgHelperService"]},4262:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.TriggerDirectiveFactory=t.Controller=void 0;var o=n(5262),a=n(9419),s=new o.RxJS.Subject,u=function(){function e(){this.restrict="A",this.scope={connectorLightboxTrigger:"="}}return e.prototype.link=function(e,t,n){t.on("click",function(n){var r={app:e.connectorLightboxTrigger,element:t[0],$mutex:!1,ctrlKey:!!n.ctrlKey,metaKey:!!n.metaKey};return n.preventDefault(),s.next(r),!1}),e.$on("$destroy",function(){t.off("click")})},e}(),c=function(){function e(e){this.xitiSvc=e,this.display={showAuthenticatedConnectorLightbox:!1}}return e.prototype.onClose=function(){this.display.showAuthenticatedConnectorLightbox=!1},e.prototype.onConfirm=function(){var e=this;if(this._currentAppEvent){var t=this._currentAppEvent.app;this.onClose(),this.authenticatedConnectorsAccessed?this.authenticatedConnectorsAccessed.push(t.name):this.authenticatedConnectorsAccessed=[t.name];var n=this._currentAppEvent.ctrlKey||this._currentAppEvent.metaKey?"_blank":t.target?t.target:"_self";"_self"!==n?((0,a.conf)().User.preferences.update("authenticatedConnectorsAccessed",this.authenticatedConnectorsAccessed).save("authenticatedConnectorsAccessed"),this.windowOpen(t.address,n)):r(e,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,(0,a.conf)().User.preferences.update("authenticatedConnectorsAccessed",this.authenticatedConnectorsAccessed).save("authenticatedConnectorsAccessed")];case 1:return e.sent(),this.windowOpen(t.address,n),[2]}})})}},e.prototype.isAuthenticatedConnector=function(e){return!!e.casType||e.scope&&e.scope.length>0&&!!e.scope[0]},e.prototype.isAuthenticatedConnectorFirstAccess=function(e){return!this.authenticatedConnectorsAccessed||this.authenticatedConnectorsAccessed&&!this.authenticatedConnectorsAccessed.includes(e.name)},e.prototype.openAppWithCheck=function(e){if(this._currentAppEvent=e,!e.$mutex){e.$mutex=!0;var t=e.app;if(void 0===t)throw"ConnectorLightbox, Controller.openAppWithCheck failed : target app is undefined";var n=e.ctrlKey||e.metaKey?"_blank":t.target?t.target:"_self";!this.skipCheck&&this.isAuthenticatedConnector(t)&&this.isAuthenticatedConnectorFirstAccess(t)?(this.display.showAuthenticatedConnectorLightbox=!0,this.apply&&this.apply()):this.windowOpen(t.address,n)}},e.prototype.windowOpen=function(e,t){this._currentAppEvent&&this._currentAppEvent.app.isExternal?"_self"==t?this.xitiSvc.trackClick(this._currentAppEvent.app.name,this._currentAppEvent.element).finally(function(){window.open(e,t)}):(this.xitiSvc.trackClick(this._currentAppEvent.app.name,this._currentAppEvent.element).finally(function(){}),window.open(e,t)):window.open(e,t)},e}();t.Controller=c;var l=function(){function e(){this.restrict="E",this.template=n(3146).Z,this.scope={},this.controller=["odeXiti",c],this.controllerAs="ctrl",this.require=["connectorLightbox"]}return e.prototype.link=function(e,t,n,u){return r(this,void 0,void 0,function(){var t,n,r,c,l;return i(this,function(i){switch(i.label){case 0:return(t=u?u[0]:null)?(t.apply=function(){e.$apply()},n=s.subscribe(function(e){t.openAppWithCheck(e)}),e.$on("$destroy",function(){n.unsubscribe()}),r=t,[4,(0,a.conf)().User.preferences.load("authenticatedConnectorsAccessed")]):[2];case 1:r.authenticatedConnectorsAccessed=i.sent(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,(0,a.conf)().Platform.apps.getPublicConf(o.APP.CAS)];case 3:return c=i.sent(),t.skipCheck=!!c.skip,[3,5];case 4:return l=i.sent(),console.warn("Failed to get public conf: ",l),[3,5];case 5:return[2]}})})},e}();t.TriggerDirectiveFactory=function(){return new u},t.DirectiveFactory=function(){return new l}},8961:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(9419),a=function(){function e(){this.restrict="E",this.template=n(2306).Z,this.scope={}}return e.prototype.link=function(e,t,n){return r(this,void 0,void 0,function(){var t,n,r,a,s,u,c,l,d,f,h,p;return i(this,function(i){switch(i.label){case 0:return t=(0,o.conf)().Platform.theme,null===(n=(0,o.session)().currentApp)?[2]:[4,t.getHelpPath()];case 1:return r=i.sent(),c=(0,o.conf)().Platform.idiom,l=$("ode-modal"),e.onHelp=function(){a?p(a):(0,o.http)().get(e.helpPath,{queryParams:{"index.html":(0,o.conf)().Platform.deploymentTag}}).then(function(t){404===(0,o.http)().latestResponse.status?(s=c.translate("help.notfound.title"),u="<p>"+c.translate("help.notfound.text")+"</p>",h(s,u)):p(a=t),e.$apply()})},e.display={},e.helpPath=r+"/application/"+n+"/","."===n&&"/adapter"!==window.location.pathname?e.helpPath=r+"/application/portal/":"/adapter"===window.location.pathname?e.helpPath=r+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")&&(e.helpPath=r+"/application/parametrage-de-la-classe/"),h=function(t,n){l.find(".modal-title").html(t),l.find(".modal-body").html(n),e.display.read=!0,e.$apply("display")},p=function(t){(d=$("<div>"+t+"</div>")).find("> p").prev().insertAfter(d.find("> p")),d.find("img").each(function(t,n){$(n).attr("src",e.helpPath+"../.."+$(n).attr("src"))}),l.find("ode-modal-body > div").html(d.html()),l.find("li a").on("click",function(e){var t;l.find(".section").slideUp(),$("div#"+(null===(t=$(e.target).attr("href"))||void 0===t?void 0:t.split("#")[1])).slideDown()}),l.find("div.paragraph a").on("click",function(e){window.open($(e.target).closest("a").attr("href"),"_newtab")}),l.find("li a").first().click(),l.find("#TOC").wrap('<div id="burger-menu" class="burger-menu"></div>'),(f=l.find("#burger-menu")).prepend('<button id="burger-button" class="burger-button"><i class="burger-icon"></i></button>'),l.find("#burger-button").on("click",function(e){f.toggleClass("active")}),l.find("#TOC > ul li a").on("click",function(e){f.removeClass("active")});var n=function(e){0==l.find("#TOC > ul").find(e.target).length&&0==f.find(e.target).length&&f.removeClass("active")};$("body").on("click",n),e.$on("$destroy",function(){$("body").off("click",n)}),e.display.read=!0,e.$apply("display")},[2]}})})},e}();t.Directive=a,t.DirectiveFactory=function(){return new a}},737:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(9419),a=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,a){return r(this,void 0,void 0,function(){return i(this,function(e){return t.attr("href","/auth/logout?callback="+(0,o.conf)().Platform.theme.logoutCallback),[2]})})},e}();t.Directive=a,t.DirectiveFactory=function(){return new a}},6644:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=n(9419),o=r(n(3336)),a=function(){function e(e,t,n){this.session=e,this.helperSvc=t,this.themeSvc=n,this.currentLanguage="",this.username="",this.avatar="no-avatar.svg",this.messagerieLink="/zimbra/zimbra",this.mysearch="",this.apps=[],this.is1D=!1,this.is2D=!1}return e.prototype.refreshAvatar=function(){this.avatar=(0,i.session)().avatarUrl,this.username=(0,i.session)().description.displayName},e.prototype.openApps=function(e){var t=(0,o.default)(window).width();"number"==typeof t&&t<=700&&e.preventDefault()},e.prototype.launchSearch=function(e,t){var n=this.mysearch;"key"===t&&e.stopPropagation(),"button"!==t&&13!=e.keyCode||(this.trackEvent(e,{detail:{open:"searchengine",from:"search"}}),n=n&&""!==n?n:" ",this.mysearch="",window.location.href="/searchengine#/"+n)},e.prototype.getIconClass=function(e){var t=this.themeSvc.getIconCode(e);return"ic-app-".concat(t," color-app-").concat(t)},e.prototype.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("ode-navbar",t);n&&e.currentTarget&&e.currentTarget.dispatchEvent(n)},e}();t.Controller=a;var s=function(){function e(){this.restrict="E",this.template=n(959).Z,this.scope={title:"@?"},this.bindToController=!0,this.controller=["odeSession","odeNgHelperService","odeThemeHelperService",a],this.controllerAs="ctrl",this.require=["odeNavbar"]}return e.prototype.link=function(e,t,n,r){if(r){var o=r[0],a=(0,i.conf)().Platform;e.lang=a.idiom,e.nbNewMessages=0,e.version=a.deploymentTag,e.me={hasWorkflow:function(e){return(0,i.session)().hasWorkflow(e)}},e.goToMessagerie=function(){console.log(e.messagerieLink),(0,i.http)().get("/userbook/preference/zimbra").then(function(t){var n;try{t.preference&&(JSON.parse(t.preference).modeExpert&&(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|preauth")))?(e.messagerieLink="/zimbra/preauth",window.open(e.messagerieLink)):(e.messagerieLink="/zimbra/zimbra",window.location.href=window.location.origin+e.messagerieLink),console.log(e.messagerieLink)}catch(t){e.messagerieLink="/zimbra/zimbra"}})},e.refreshMails=function(){var t;(null===(t=e.me)||void 0===t?void 0:t.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|view"))?(0,i.http)().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:(new Date).getTime()}}).then(function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")}):(0,i.http)().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:(new Date).getTime()}}).then(function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")})},e.refreshAvatar=function(){o.refreshAvatar()},Promise.all([o.session.getLanguage(),a.theme.onOverrideReady(),o.session.getBookmarks(),a.theme.onFullyReady()]).then(function(t){o.skin=a.theme,o.is1D=a.theme.is1D,o.is2D=a.theme.is2D,o.currentLanguage=t[0];var n=t[1];n.portal&&-1!==n.portal.indexOf("conversation-unread")&&(o.conversationUnreadUrl="/assets/themes/"+a.theme.skin+"/template/portal/conversation-unread.html?hash="+a.deploymentTag),o.refreshAvatar(),e.refreshMails&&e.refreshMails(),o.apps=t[2],e.$apply()})}},e}();t.DirectiveFactory=function(){return new s}},3010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var r=n(5262),i=n(9419),o=function(){function e(e){this.tracking=e,this.restrict="E",this.transclude={infotips:"odeInfotips"},this.scope={app:"@?",name:"@"}}return e.prototype.templateUrl=function(e,t){return t.templateUrl?t.templateUrl:n(925).Z},e.prototype.link=function(e,t,n){var o,a,s=(0,i.conf)().User.preferences;(0,i.notif)().onLangReady().promise.then(function(e){i.L10n.initialize(e)}),e.goToMyAccount=function(){document.location.href="/userbook/mon-compte",s.get(r.USER_PREFS.RGPD_COOKIES).showInfoTip=!1,s.save(r.USER_PREFS.RGPD_COOKIES)},e.me={hasWorkflow:function(e){return(0,i.session)().hasWorkflow(e)}},e.closeBanner=function(){e.showRgpd=!1,s.get(r.USER_PREFS.RGPD_COOKIES).showInfoTip=!1,s.save(r.USER_PREFS.RGPD_COOKIES)},e.app&&this.tracking.trackApp(e.app),(null===(o=e.me)||void 0===o?void 0:o.hasWorkflow("fr.openent.chatbot.controller.ChatbotController|view"))&&$.ajax("/chatbot/public/js/chatbot.js",{dataType:"script"}),(null===(a=e.me)||void 0===a?void 0:a.hasWorkflow("org.entcore.portal.controllers.PortalController|optionalFeatureCantoo"))&&(0,i.http)().get("/optionalFeature/cantoo").then(function(e){var t=document.createElement("script");t.src=e.scriptPath,t.async=!0,document.body.appendChild(t)}),this.addZendeskGuideWedget(e)},e.prototype.addZendeskGuideWedget=function(e){(0,i.http)().get("/zendeskGuide/config?module=timeline").then(function(t){if(t&&t.key){var n=document.createElement("script");n.id="ze-snippet",n.src="https://static.zdassets.com/ekr/snippet.js?key=".concat(t.key),document.body.appendChild(n).onload=function(){var n,r;"es"===(0,i.session)().currentLanguage?window.zE(function(){window.zE.setLocale("es-419")}):window.zE(function(){window.zE.setLocale("fr")}),t.module.default&&window.zE("webWidget","helpCenter:setSuggestions",{labels:[t.module.default]}),window.zE("webWidget","updateSettings",{webWidget:{color:{theme:t.color||"#ffc400"},zIndex:22,launcher:{mobile:{labelVisible:!0}},contactForm:{suppress:!(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))},helpCenter:{messageButton:{"*":"Assistance ENT","es-419":"Asistencia ENT"},originalArticleButton:null===(r=t.articleRedirectButton)||void 0===r||r}}}),window.addEventListener("scroll",function(){window.zE("webWidget","updateSettings",{webWidget:{launcher:{mobile:{labelVisible:window.scrollY<=5}}}})}),window.zE("webWidget:on","open",function(){var t;(null===(t=e.me)||void 0===t?void 0:t.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))&&window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!1}}})}),window.zE("webWidget:on","userEvent",function(t){var n,r=t.category,i=t.action,o=t.properties;"Contact Form Shown"===i&&"Zendesk Web Widget"===r&&o&&"contact-form"===o.name&&(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))&&(window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!0}}}),window.zE("webWidget","close"),window.open("/support","_blank"))})}}})},e}();function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["odeTracking"]},8945:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(9419),a=function(){function e(){this.restrict="E",this.templateUrl=n(6722).Z}return e.prototype.link=function(e,t,n,a){var s=this,u=(0,o.conf)().Platform.theme,c=(0,o.session)().user;e.closeBanner=function(){e.setCookie("test",30),e.showBanner=!1},e.getCookie=function(){for(var e="smartBanner=",t=decodeURIComponent(document.cookie).split(";"),n=0;n<t.length;n++){for(var r=t[n];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(e))return r.substring(12,r.length)}return null},e.setCookie=function(e,t){var n=new Date;n.setTime(n.getTime()+24*t*60*60*1e3);var r="expires="+n.toUTCString();document.cookie="smartBanner="+e+";"+r},e.showBanner=!1,e.init=function(){return r(s,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,o.http)().get("/conf/smartBanner").then(function(e){return 200==(0,o.http)().latestResponse.status&&null!==e?e:null})];case 1:if(null!=(t=r.sent())){if(e.banner=t,-1!=(e.banner["excludeUserTypes-".concat(u.skin)]||[]).indexOf(c.type))return[2];e.showBanner=null==e.getCookie(),n=(0,o.conf)().Platform.idiom,e.icon=n.translate("smartbanner.icon.uri"),e.showBanner&&(/Android/i.test(navigator.userAgent)?(e.store=n.translate("smartbanner.android.store"),e.appRef=n.translate("smartbanner.android.uri")):/iPhone|iPad|iPod/i.test(navigator.userAgent)?(e.store=n.translate("smartbanner.ios.store"),e.appRef=n.translate("smartbanner.ios.uri")):e.showBanner=!1)}return[3,3];case 2:return r.sent(),[3,3];case 3:return[2]}})})},e.init()},e}();t.DirectiveFactory=function(){return new a}},4452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(e){this.xitiSvc=e,this.restrict="E",this.scope=!1}return e.prototype.link=function(e,t,n){this.xitiSvc.runScript()},e}();function r(e){return new n(e)}t.DirectiveFactory=r,r.$inject=["odeXiti"]},5012:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var n=function(){function e(e){this.helperSvc=e,this.restrict="A"}return e.prototype.link=function(e,t,n,r){var i=this;n.$observe("skinSrc",function(){t.attr("src",i.helperSvc.toSkinUrl(n.skinSrc))})},e}();function r(e){return new n(e)}t.Directive=n,t.DirectiveFactory=r,r.$inject=["odeThemeHelperService"]},5103:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(5262),a=function(){function e(e){this.helperSvc=e,this.restrict="EA"}return e.prototype.link=function(e,t,n,a){return r(this,void 0,void 0,function(){var e,n,r,a,s,u,c,l;return i(this,function(i){switch(i.label){case 0:return[4,(e=o.ConfigurationFrameworkFactory.instance().Platform.theme).getConf()];case 1:return n=i.sent(),[4,e.onSkinReady()];case 2:for(i.sent(),r=e.themeName,a=e.skinName,s=e.themeUrl,u=0,c=n.overriding;u<c.length;u++)if((l=c[u]).child===r&&l.bootstrapVersion){s="".concat(this.helperSvc.CDN,"/assets/themes/").concat(l.bootstrapVersion,"/skins/").concat(a,"/"),t.addClass(l.bootstrapVersion),this.helperSvc.loadThemeJs(l.bootstrapVersion);break}return this.helperSvc.applyStyle(s),[2]}})})},e}();function s(e){return new a(e)}t.Directive=a,t.DirectiveFactory=s,s.$inject=["odeThemeHelperService"]},6507:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,r){},e}();t.DirectiveFactory=function(){return new n}},8190:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=function(e){this.$timeout=e};t.Controller=r;var i=function(){function e(e){this.$compile=e,this.restrict="E",this.template=n(4809).Z,this.replace=!0,this.scope={options:"&",ngModel:"=",ngChange:"&",search:"=?"},this.bindToController=!0,this.controller=["$timeout",r],this.controllerAs="ctrl",this.require=["autocomplete"]}return e.prototype.link=function(e,t,n,r){r&&r[0];n.autocomplete},e}();function o(e){return new i(e)}t.DirectiveFactory=o,o.$inject=["$compile"]},9269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18nBase=void 0;var r=n(5262),i=function(){function e(e){this.$compile=e}return Object.defineProperty(e.prototype,"idiom",{get:function(){return r.ConfigurationFrameworkFactory.instance().Platform.idiom},enumerable:!1,configurable:!0}),e}();t.I18nBase=i},9806:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nPlaceholder",function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nPlaceholder)+"</span>")(e);setTimeout(function(){t.attr("placeholder",o.text())},10)})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},848:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nTitle",function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nTitle)+"</span>")(e);setTimeout(function(){t.attr("title",o.text())},10)})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},4048:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nValue",function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nValue)+"</span>")(e);setTimeout(function(){t.attr("value",o.text())},10)})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},1586:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.restrict="E",t}return i(t,e),t.prototype.link=function(e,t,n,r){var i=t.text().trim(),o=this.idiom.translate(i);t.html(this.$compile('<span class="no-style">'+o+"</span>")(e).html())},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},7329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterFactory=void 0;var r=n(9419),i=function(e,t){return(0,r.conf)().Platform.idiom.translate(e,t)};t.FilterFactory=function(){return i}},7484:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.restrict="A",t.replace=!0,t}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("content",function(r){n.content&&t.html(i.$compile('<span class="no-style">'+i.idiom.translate(n.content)+"</span>")(e).html())}),n.$observe("attr",function(r){if(n.attr){var o=i.$compile("<span>"+i.idiom.translate(n[n.attr])+"</span>")(e);setTimeout(function(){t.attr(n.attr,o.text())},10)}}),n.$observe("attrs",function(r){if(n.attrs){var o=e.$eval(n.attrs),a=function(){var n=i.$compile("<span>"+i.idiom.translate(o[s])+"</span>")(e);setTimeout(function(){t.attr(s,n.text())},0)};for(var s in o)a()}}),n.$observe("key",function(r){n.key&&t.html(i.$compile('<span class="no-style">'+i.idiom.translate(n.key)+"</span>")(e).html())})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},1411:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var a=o(n(4202)),s=n(9419),u=function(){function e(){this.restrict="E",this.template=n(9018).Z,this.scope={header:"@?",since:"@?",userprefsKey:"@?",userprefsField:"@",onChange:"&?",saveOnChange:"=?",showOnce:"=?",show:"=?"},this.transclude=!0}return e.prototype.link=function(e,t,n,o){return r(this,void 0,void 0,function(){var n,r,o;return i(this,function(i){switch(i.label){case 0:return n="infotip",a.default.isString(e.userprefsKey)&&e.userprefsKey.trim().length>0&&(n=e.userprefsKey.trim()),r=function(n){var r=null!=n?n:e.visible();e.onChange&&e.onChange({$visible:r}),r?t.find(".toast").addClass("show"):t.find(".toast").removeClass("show")},[4,(o=(0,s.conf)().User.preferences).load(n)];case 1:return i.sent(),e.visible=function(t){if(arguments.length<=0)return!1!==o.get(n)[e.userprefsField];o.get(n)[e.userprefsField]=t,r(t),e.saveOnChange&&o.save(n)},e.$watch("show",function(t){void 0!==t&&e.visible(t)}),r(),e.showOnce&&(o.get(n)[e.userprefsField]=!1,o.save(n)),[2]}})})},e}();t.DirectiveFactory=function(){return new u}},1504:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var a=o(n(3336)),s=(function(){function e(e){this.all=e}e.prototype.stayOpen=function(){return r(this,void 0,void 0,function(){var e,t,n;return i(this,function(r){switch(r.label){case 0:e=0,t=this.all,r.label=1;case 1:return e<t.length?(n=t[e])?[4,n.stayOpen()]:[3,3]:[3,4];case 2:if(r.sent())return[2,!0];r.label=3;case 3:return e++,[3,1];case 4:return[2,!1]}})})}}(),function(){function e(){this.restrict="E",this.template=n(9068).Z,this.transclude=!0,this.scope={show:"=",tiny:"=",onShow:"&?",onClose:"&",delegate:"=",delegateClose:"&?"}}return e.prototype.link=function(e,t,n,o){var s=e.delegate;t.children(".lightbox").find("> .background").on("click",function(o){return r(this,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:return 0!==t.children(".lightbox").find("image-editor, share-panel, .import-files, .split-screen, [template=entcore\\/image-editor\\/main]").length?[3,3]:s?[4,s.stayOpen()]:[3,2];case 1:if(!0===r.sent())return[2];r.label=2;case 2:if(n.delegateClose&&!0===e.delegateClose({$element:t}))return[2];t.children(".lightbox").first().fadeOut(),(0,a.default)("body").css({overflow:"auto"}),(0,a.default)("body").removeClass("lightbox-opened"),e.$eval(e.onClose),e.$apply(),e.show=!1,e.$$phase||e.$parent.$apply(),r.label=3;case 3:return[2]}})})}),t.children(".lightbox").find("> .content > .close-lightbox > i.close-2x").on("click",function(o){return r(this,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:return 0!==t.children(".lightbox").find("share-panel").length?[3,3]:s?[4,s.stayOpen()]:[3,2];case 1:if(!0===r.sent())return[2];r.label=2;case 2:if(n.delegateClose&&!0===e.delegateClose({$element:t}))return[2];t.children(".lightbox").first().fadeOut(),(0,a.default)("body").css({overflow:"auto"}),(0,a.default)("body").removeClass("lightbox-opened"),e.$eval(e.onClose),e.$apply(),e.show=!1,e.$$phase||e.$parent.$apply(),r.label=3;case 3:return[2]}})})}),t.children(".lightbox").on("mousedown",function(e){e.stopPropagation()}),e.$watch("show",function(r){if(r){n.onShow&&e.onShow({$element:t}),t.trigger("lightboxvisible");var i=t.children(".lightbox"),o=t.parents();e.backup={overflow:o.filter(function(e,t){return"visible"!==(0,a.default)(t).css("overflow-x")||"visible"!==(0,a.default)(t).css("overflow-y")}),zIndex:o.map(function(e,t){var n,r="";return-1!==(null===(n=(0,a.default)(t).attr("style"))||void 0===n?void 0:n.indexOf("z-index"))&&(r=(0,a.default)(t).css("z-index")),{element:(0,a.default)(t),index:r}})},e.backup.overflow.forEach(function(e){(0,a.default)(e).css({overflow:"visible"})}),e.backup.zIndex.forEach(function(e){e.element.css("z-index",99999)}),setTimeout(function(){0===t.parents("header.main").length&&(0,a.default)("body").addClass("lightbox-opened"),i.fadeIn()},100),(0,a.default)("body").css({overflow:"hidden"})}else{var s=!0;(0,a.default)("lightbox .lightbox").each(function(e,n){n!==t.children(".lightbox")[0]&&"block"===(0,a.default)(n).css("display")&&(s=!1)}),s&&((0,a.default)("body").removeClass("lightbox-opened"),(0,a.default)("body").css({overflow:"auto"})),e.backup&&(e.backup.overflow.forEach(function(e){(0,a.default)(e).css("overflow","")}),e.backup.zIndex.forEach(function(e){e.element.css("z-index",e.index)})),t.children(".lightbox").fadeOut()}}),e.$on("$destroy",function(){t.parents("lightbox").length||((0,a.default)("body").removeClass("lightbox-opened"),(0,a.default)("body").css({overflow:"auto"}),e.backup&&(e.backup.overflow.forEach(function(e){(0,a.default)(e).css("overflow","")}),e.backup.zIndex.forEach(function(e){e.element.css("z-index",e.index)})))})},e}());t.DirectiveFactory=function(){return new s}},8151:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var n=function(){this.name="default"};t.Controller=n;var r=function(){function e(){this.restrict="A",this.controller=[n],this.require=["odeModalContainer"]}return e.prototype.link=function(e,t,n,r){if(r){var i=r[0];"string"==typeof n.odeModalContainer&&n.odeModalContainer.trim().length>0&&(i.name=n.odeModalContainer),i.attach=function(e){t&&e&&t.append(e)}}},e}();t.DirectiveFactory=function(){return new r}},5248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=n(9294),i=function(){function e(){this.size="md",this.container="default",this.id=null}return e.prototype.getStyle=function(){return{display:this.visible?"block":"none","background-color":"transparent"}},e.prototype.getSizeClass=function(){switch(this.size){case"sm":return"modal-sm";case"lg":return"modal-lg";case"xl":return"modal-xl";default:return""}},e}();t.Controller=i;var o=function(){function e(){this.restrict="E",this.template=n(7597).Z,this.scope={id:"@",size:"@?",container:"=?",visible:"=?",onClose:"&?"},this.bindToController=!0,this.transclude={title:"?odeModalTitle",body:"odeModalBody",footer:"?odeModalFooter"},this.controller=[i],this.controllerAs="ctrl",this.require=["odeModal","?^^odeModalContainer"]}return e.prototype.link=function(e,t,n,i){if(i){var o=i[0],a=i[1];a&&a.attach&&a.name===o.container&&a.attach(t),void 0!==n.id&&0!==n.id.length||(o.id=r.L10n.moment(new Date).format("YYMMDDHHMMssSSS")+(1e3*Math.random()).toFixed(0))}},e}();t.DirectiveFactory=function(){return new o}},4358:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){var i=new o.ObjectGuard(function(){return e.$eval(n.customGuard)});return e.$watch(function(){return e.$eval(n.customGuard)},function(){i.reset()}),i},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},6197:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard(function(){return r.$dirty},function(){return!1})},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},2235:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard(function(){return"object"==typeof r.$modelValue&&r.$modelValue.id||""},function(){return"object"==typeof r.$modelValue&&r.$modelValue.id||""},function(e,t){return e&&t?e._id==t._id:!e&&!t})},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},8900:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericGuardDirective=void 0;var r=n(3848),i=function(){function e(){this.require=["?ngModel","?^^guardRoot"],this.restrict="A"}return e.prototype.link=function(e,t,n,i){var o=i?i[0]:null,a=i?i[0]:null,s=this.guardFactory(e,t,n,o),u=0;if(null!=s)if(null!=o?o.$formatters.push(function(e){return 0==u&&(setTimeout(function(){return s.reset()}),u++),e}):setTimeout(function(){return s.reset()}),null!=a)a.registerGuard(s),e.$on("$destroy",function(){a.unregisterGuard(s)});else{var c=r.navigationGuardService.registerIndependantGuard(s);e.$on("$destroy",function(){r.navigationGuardService.unregisterIndependantGuard(c)})}},e}();t.GenericGuardDirective=i},5509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=n(3848),i=function(){function e(){this.rootID=""}return e.prototype.registerGuard=function(e){r.navigationGuardService.registerGuard(this.rootID,e)},e.prototype.unregisterGuard=function(e){r.navigationGuardService.unregisterGuard(this.rootID,e)},e.prototype.reset=function(){r.navigationGuardService.reset(this.rootID)},e}();t.Controller=i;var o=function(){function e(){this.restrict="A",this.scope={guardRoot:"@?"},this.controller=[i],this.require=["guardRoot"]}return e.prototype.link=function(e,t,n,i){var o,a=i?i[0]:null;if(a){a.rootID=null!==(o=e.guardRoot)&&void 0!==o?o:r.navigationGuardService.generateID();var s=r.AngularJSRouteChangeListener.getInstance(e.$root);r.navigationGuardService.registerListener(s),r.navigationGuardService.registerListener(r.DOMRouteChangeListener.getInstance()),e.$on("$destroy",function(){r.navigationGuardService.unregisterListener(s),r.navigationGuardService.unregisterListener(r.DOMRouteChangeListener.getInstance()),r.navigationGuardService.unregisterRoot(a.rootID)})}},e}();t.DirectiveFactory=function(){return new o}},1367:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard(function(){return r.$viewValue||""},function(){return r.$viewValue||""})},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},9071:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=n(3848),a=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,r){var a=e.$eval(n.navigationTriggerParam||"{onEvent:'click'}");a.rootGuardId=a.rootGuardId||"*";var s=new o.ManualChangeListener;o.navigationGuardService.registerListener(s);var u=[],c=function(t){t&&t.preventDefault(),s.onChange.next({checkGuardId:a.rootGuardId,confirmMessageKey:a.guardMessageKey,accept:function(){e.$eval(n.navigationTrigger)},reject:function(){}})},l=function(e,t,n){e.on(t,n),u.push(function(){return e.off(t,n)})};i.default.isString(a.onEvent)?l(t,a.onEvent,c):i.default.isArray(a.onEvent)&&a.onEvent.forEach(function(e,n,r){i.default.isString(e)&&r.lastIndexOf(e)===n&&l(t,e,c)}),e.$on("$destroy",function(){!function(){for(var e=0,t=u;e<t.length;e++)(0,t[e])();u=[]}(),o.navigationGuardService.unregisterListener(s)})},e}();t.DirectiveFactory=function(){return new a}},9948:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(){function e(){this.require="?^guardRoot",this.restrict="A"}return e.prototype.link=function(e,t,n,a){var s=this,u=a?a[0]:null;if(u){var c=n.resetGuardId,l=function(){return r(s,void 0,void 0,function(){var t;return i(this,function(r){switch(r.label){case 0:return(t=e.$eval(n.resetGuard))instanceof Promise?[4,t]:[3,2];case 1:return r.sent(),[3,3];case 2:console.warn("[resetGuard] result is not instance of Promise"),r.label=3;case 3:return null!=c&&""!=c?o.navigationGuardService.reset(c):null!=u?u.reset():(console.warn("[resetGuard] A reset directive has no root, resetting all guards..."),o.navigationGuardService.resetAll()),[2]}})})},d=function(){var e=n.resetGuardEvent;if("string"!=typeof e||!e.trim()){var r=(t.prop("tagName")||"").toLowerCase();e="form"==r?"submit":"click"}return t.on(e,l),function(){return t.off(e,l)}}();e.$on("$destroy",function(){d()})}},e}();t.DirectiveFactory=function(){return new a}},1682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(){this.require="^popover",this.restrict="E"}return e.prototype.link=function(e,t,n,r){t.addClass("d-none")},e}();t.DirectiveFactory=function(){return new n}},8700:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=function(){function e(){this.require="^popover"}return e.prototype.link=function(e,t,n,r){var o=function(e){e=e.toUpperCase();var n=t[0];do{n=n.parentNode}while(n&&n.nodeName.toUpperCase()!==e);return n?i.default.element(n):t}("popover"),a=o.attr("mouse-event")||"mouseover",s=o.find("popover-content");o.on(a,function(e){"click"===a&&(s.hasClass("d-none")&&e.stopPropagation(),i.default.element(document.querySelector("body")).one("click",function(e){o.triggerHandler("close"),s.addClass("d-none")}));var t=s.offset(),n=s.width()||0,r=$(window).width()||0,u=s.height()||0,c=$(window).width()||0;t&&(t.left+n>r&&s.addClass("right"),t.left<0&&s.addClass("left"),t.top+u>c&&s.addClass("bottom")),s.removeClass("d-none")}),"mouseover"===a&&o.on("mouseout",function(e){o.triggerHandler("close"),s.addClass("d-none")})},e}();t.DirectiveFactory=function(){return new o}},8245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.PulsarController=void 0;var n=function(){};t.PulsarController=n;var r=function(){function e(){this.controller=[n],this.restrict="E"}return e.prototype.link=function(e,t,n,r){t.on("close",function(){n.onClose&&e.$eval(n.onClose)})},e}();t.DirectiveFactory=function(){return new r}},3868:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=r(n(3336)),o=function(){function e(e){this.quickstart=e,this.show={assistant:!1},this.hidePulsars=function(){(0,i.default)(".pulsar-button").addClass("hidden")}}return e.prototype.clearTimeout=function(){this.token&&clearTimeout(this.token)},e.prototype.goTo=function(e){this.quickstart.goTo(e.index),this.currentStep=this.quickstart.assistantIndex},e.prototype.next=function(){this.quickstart.nextAssistantStep(),this.currentStep=this.quickstart.assistantIndex,this.quickstart.assistantIndex||(this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout())},e.prototype.previous=function(){this.quickstart.previousAssistantStep(),this.currentStep=this.quickstart.assistantIndex},e.prototype.seeLater=function(){this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout(),this.quickstart.seeAssistantLater()},e.prototype.closeAssistant=function(){this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout(),this.quickstart.state.assistant=-1,this.quickstart.save()},e}();t.Controller=o;var a=function(){function e(e){this.helperSvc=e,this.restrict="E",this.templateUrl=n(5230).Z,this.scope=!0,this.bindToController=!0,this.controller=["odeQuickstartService",o],this.controllerAs="ctrl",this.require=["assistant"]}return e.prototype.link=function(e,t,n,r){var i=r?r[0]:null;!i||this.helperSvc.viewport<=this.helperSvc.FAT_MOBILE||i.quickstart.load(function(){if(i){if(-1===i.quickstart.state.assistant||0===i.quickstart.mySteps.length)return;i.hidePulsars(),i.show.assistant=!0,i.currentStep=i.quickstart.assistantIndex,i.steps=i.quickstart.mySteps,e.$apply()}})},e}();function s(e){return new a(e)}t.DirectiveFactory=s,s.$inject=["odeNgHelperService"]},7424:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=n(9419),a=r(n(3336)),s=function(){function e(e,t,n){this.$compile=e,this.helperSvc=t,this.quickstartSvc=n,this.restrict="A",this.scope=!0}return e.prototype.link=function(e,t,r,s){var u=this,c=(0,o.conf)().Platform.idiom;if(t&&(e.me={hasWorkflow:(0,o.session)().hasWorkflow},!(this.helperSvc.viewport<=this.helperSvc.TABLET)&&e.me.hasWorkflow("org.entcore.portal.controllers.PortalController|quickstart"))){var l=e.$eval(r.pulsar);if(!l.workflow||e.me.hasWorkflow(l.workflow)){e.pulsarInfos=l,e.pulsarInfos.steps=[];var d=(0,a.default)("[pulsar]");d.each(function(t,n){var r=i.default.element(n).scope().$eval((0,a.default)(n).attr("pulsar"));r.el=n,e.pulsarInfos.steps.push(r)}),"object"==typeof l&&void 0!==l.index||console.error("Invalid pulsar object. Should look like pulsar=\"{ index: 0, i18n: 'my.key', position: 'top bottom'}\"");var f=null,h=null,p=30,v=10,m=function(){l.position||(l.position="center center");var r="center";-1!==l.position.indexOf("left")&&(r="left"),-1!==l.position.indexOf("right")&&(r="right");var s="center";-1!==l.position.indexOf("top")&&(s="top"),-1!==l.position.indexOf("bottom")&&(s="bottom"),document.querySelector("style#pulsar-css")||(0,a.default)(n(9325).Z).appendTo("body"),f=(0,a.default)('\n\t\t\t\t<div class="pulsar-button">\n\t\t\t\t\t<div class="pulse-spot"></div>\n\t\t\t\t</div>\n\t\t\t').appendTo("body"),l.className&&l.className.split(" ").forEach(function(e){null==f||f.addClass(e)}),f.data("active",!0);var m=!0,g=function(){var e,n,i,o,u,d,b,y,w,_,x,k,S,M,D=0,O=0;"string"==typeof l.delta&&(l.delta=c.translate(l.delta),D=parseInt(l.delta.split(" ")[0]),O=parseInt(l.delta.split(" ")[1]));var T=null!==(e=t.offset())&&void 0!==e?e:{left:0,top:0},P=null!==(n=t.width())&&void 0!==n?n:0,C=null!==(i=t.height())&&void 0!==i?i:0,E={left:T.left-35,right:T.left+P+5,center:T.left+P/2-15},A={top:T.top,bottom:T.top+C+5,center:T.top+C/2-15};if("top center"===l.position&&(A.top=T.top-p-5),"none"!==(null==f?void 0:f.css("display"))&&(null==f||f.offset({left:E[r]+D,top:A[s]+O}),l.style&&"number"==typeof l.style.zIndex&&(null==f||f.css("z-index",l.style.zIndex))),h&&h.find(".arrow").length){var j=E[r]-(null!==(o=h.children(".content").width())&&void 0!==o?o:0)-15,I=A[s]-v;"top"===s&&"center"===r&&(I=A[s]-(null!==(u=h.children(".content").height())&&void 0!==u?u:0)-15),"center"===s&&(I=A[s]-(null!==(d=h.children(".content").height())&&void 0!==d?d:0)/2),"center"===r&&(j=E[r]-(null!==(b=h.children(".content").width())&&void 0!==b?b:0)/2-2),"center"===s&&"center"===r&&(h.addClass("middle"),s="bottom"),"right"===r&&(j=E[r]+v+10),"bottom"===s&&(I="center"===r?A[s]+v+10:A[s]-15);var N=null!==(y=(0,a.default)(window).width())&&void 0!==y?y:0,R=null!==(w=(0,a.default)(window).height())&&void 0!==w?w:0,Y=15,L=I,F=j,W=F+(null!==(_=h.width())&&void 0!==_?_:0)+Y,V=L+(null!==(x=h.height())&&void 0!==x?x:0)+Y,U=N-((null!==(k=h.width())&&void 0!==k?k:0)+Y),G=R-((null!==(S=h.height())&&void 0!==S?S:0)+Y),$=F-U,H=Y-F,z=L-G,q=Y-L,B=h.find(".arrow"),Z=B.position().left,J=B.position().top;W>N&&(j=N-((null!==(M=h.width())&&void 0!==M?M:0)+Y),"center"===r&&m&&(B.css({left:Z+$,right:"auto"}),m=!1)),j<=Y&&(j=Y,"center"===r&&m&&(B.css({left:H+v,right:"auto"}),m=!1)),V>R&&(I=G,"bottom"===s&&m&&(B.css({top:z+5,bottom:"auto"}),m=!1)),I<Y&&(I=Y,"center"===s&&"center"!==r&&m&&(B.css({top:J-q,bottom:"auto"}),m=!1)),h.offset({left:j+D,top:I+O})}setTimeout(g,100)};g();var b=function(){var e,n,r,i,o,s,u;(0,a.default)(".pulsar-layer").remove();var c="[pulsar-highlight="+l.index+"]",d=(0,a.default)("body").find(c);0!==d.length&&(u=d),u||(u=t),(0,a.default)('<div class="pulsar-layer"></div>').width((null!==(e=u.outerWidth())&&void 0!==e?e:0)+20).height((null!==(n=u.outerHeight())&&void 0!==n?n:0)+20).offset({top:(null!==(i=null===(r=null==u?void 0:u.offset())||void 0===r?void 0:r.top)&&void 0!==i?i:0)-v,left:(null!==(s=null===(o=null==u?void 0:u.offset())||void 0===o?void 0:o.left)&&void 0!==s?s:0)-v}).css({position:"absolute"}).hide().appendTo("body").fadeIn("slow")};f.on("click",function(n){(0,a.default)("body").css("pointer-events","none"),(0,a.default)("body").on("scroll touchmove mousewheel",function(e){return e.preventDefault(),e.stopPropagation(),!1}),e.pulsarInfos.index<=0&&e.trackEvent(t[0],{detail:{open:"true"}}),e.pulsarInfos.steps=[],(d=(0,a.default)("[pulsar]")).each(function(t,n){var r=i.default.element(n).scope().$eval((0,a.default)(n).attr("pulsar"));r.el=n,e.pulsarInfos.steps.push(r)}),h=(0,a.default)("<pulsar></pulsar>").addClass(r).addClass(s),l.className&&l.className.split(" ").forEach(function(e){null==h||h.addClass(e)}),null==f||f.hide(),b(),(0,a.default)(window).on("resize.placeLayers",b),(0,o.http)().get("/infra/public/template/pulsar.html").then(function(t){var n=(0,a.default)(t);n.find("button").addClass("btn btn-primary");var r=u.$compile(n)(e);null==h||h.html(r)}),(0,a.default)("body").append(h)})};i.default.element(window).on("resize",function(){f&&f.data("active")&&f.css("display","")});var g=function(){null==h||h.find("button").css("pointer-events","none"),(0,a.default)(window).off("resize.placeLayers"),null==f||f.fadeOut("slow",function(){null==f||f.remove()}),null==h||h.fadeOut("slow",function(){null==h||h.remove()}),(0,a.default)(".pulsar-layer").remove(),(0,a.default)("body").off("scroll touchmove mousewheel"),(0,a.default)("body").css("pointer-events",""),null==f||f.data("active",!1)};e.closePulsar=function(){h&&f&&(h.fadeOut(0,function(){null==h||h.remove()}),f.removeClass("hidden"),(0,a.default)(".pulsar-layer").fadeOut(0,function(){(0,a.default)(".pulsar-layer").remove()}),(0,a.default)("body").off("scroll touchmove mousewheel"),(0,a.default)("body").css("pointer-events",""),f.data("active",!1))},i.default.element(document).on("click",function(t){(0,a.default)(t.target).parents("pulsar").length>0||(0,a.default)(t.target).parents(".pulsar-button").length>0||(0,a.default)(t.target).hasClass("pulsar-button")||e.closePulsar()}),e.paintPulsar=function(){m(),null==f||f.triggerHandler("click")},e.isLastStep=function(){return void 0===e.pulsarInfos.steps.find(function(t){return t.index>e.pulsarInfos.index})},e.goTo=function(e){g(),u.quickstartSvc.goToAppStep(e.index),e.el&&i.default.element(e.el).scope().paintPulsar()},e.next=function(){g();var n=u.quickstartSvc.nextAppStep(),r=e.pulsarInfos.steps.find(function(e){return e.index===n});if(void 0===r){if(void 0!==e.pulsarInfos.steps.find(function(e){return e.index>n}))return void e.next()}else if(r.el)return void(i.default.element(r.el).data("skip-pulsar")?e.next():i.default.element(r.el).scope().paintPulsar());e.trackEvent(t[0],{detail:{open:"false"}})},e.previous=function(){g();var t=u.quickstartSvc.previousAppStep();if(void 0!==e.pulsarInfos.steps.find(function(e){return e.index===t}))for(var n=0;n<e.pulsarInfos.steps.length;n++){var r=e.pulsarInfos.steps[n];if(r.index===t&&r.el){if(i.default.element(r.el).data("skip-pulsar"))return void e.previous();i.default.element(r.el).scope().paintPulsar()}}else void 0!==e.pulsarInfos.steps.find(function(e){return e.index<t})&&e.previous()},e.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("pulsar",t);n&&e&&e.dispatchEvent(n)},this.quickstartSvc.load(function(){u.quickstartSvc.appIndex()===l.index&&m()})}else t.removeAttr("pulsar")}},e}();function u(e,t,n){return new s(e,t,n)}t.DirectiveFactory=u,u.$inject=["$compile","odeNgHelperService","odeQuickstartService"]},9445:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Widget=t.WidgetContainer=t.Recorder=t.Infotip=t.Logout=t.SkinSrc=t.WithTheme=t.Navbar=t.Portal=t.Xiti=t.BindHtml=t.Autocomplete=t.Help=t.SmartBanner=t.ConnectorLightbox=t.Lightbox=t.PopoverOpener=t.PopoverContent=t.Popover=t.Pulsar=t.Assistant=t.AppTitle=t.ResetGuard=t.CustomGuard=t.DocumentGuard=t.DirtyGuard=t.InputGuard=t.GuardRoot=t.NavigationTrigger=t.I18nFilter=t.I18nPlaceholder=t.I18nTitle=t.I18nValue=t.I18n=t.Translate=t.ModalContainer=t.Modal=void 0,t.Modal=o(n(5248)),t.ModalContainer=o(n(8151)),t.Translate=o(n(7484)),t.I18n=o(n(1586)),t.I18nValue=o(n(4048)),t.I18nTitle=o(n(848)),t.I18nPlaceholder=o(n(9806)),t.I18nFilter=o(n(7329)),t.NavigationTrigger=o(n(9071)),t.GuardRoot=o(n(5509)),t.InputGuard=o(n(1367)),t.DirtyGuard=o(n(6197)),t.DocumentGuard=o(n(2235)),t.CustomGuard=o(n(4358)),t.ResetGuard=o(n(9948)),t.AppTitle=o(n(6507)),t.Assistant=o(n(3868)),t.Pulsar=o(n(7424)),t.Popover=o(n(8245)),t.PopoverContent=o(n(1682)),t.PopoverOpener=o(n(8700)),t.Lightbox=o(n(1504)),t.ConnectorLightbox=o(n(4262)),t.SmartBanner=o(n(8945)),t.Help=o(n(8961)),t.Autocomplete=o(n(8190)),t.BindHtml=o(n(3030)),t.Xiti=o(n(4452)),t.Portal=o(n(3010)),t.Navbar=o(n(6644)),t.WithTheme=o(n(5103)),t.SkinSrc=o(n(5012)),t.Logout=o(n(737)),t.Infotip=o(n(1411)),t.Recorder=o(n(1098)),t.WidgetContainer=o(n(4406)),t.Widget=o(n(5210))},4406:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=r(n(4202)),o=n(5262),a=function(){function e(e,t){this.widgetSvc=e,this.helperSvc=t}return e.prototype.loadWidgets=function(){var e=this,t=function(e,t){return e.userPref.index<t.userPref.index?-1:e.userPref.index===t.userPref.index?0:1};this.dndWidgets=this.widgetSvc.list().filter(function(t){return t.userPref.position===e.position&&t.userPref.show&&!t.platformConf.mandatory}).sort(t),this.lockedWidgets=this.widgetSvc.list().filter(function(t){return t.userPref.position===e.position&&t.platformConf.mandatory}).sort(t)},e.prototype.updateAndSave=function(){var e;return null===(e=this.dndWidgets)||void 0===e||e.forEach(function(e,t){e.userPref.index=t}),o.WidgetFrameworkFactory.instance().saveUserPrefs()},e.prototype.checkPosition=function(e){var t,n;return(null===(t=e.userPref)||void 0===t?void 0:t.position)===this.position||"left"===(null===(n=e.userPref)||void 0===n?void 0:n.position)&&!this.position},Object.defineProperty(e.prototype,"allowedDndTypes",{get:function(){return[""+this.position]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMobileView",{get:function(){return this.helperSvc.viewport<992},enumerable:!1,configurable:!0}),e.prototype.onDnDDragOver=function(e,t,n,r){var i=n===this.position;return console.log("index="+t+", type="+n+", dropEffect="+r+", allowed="+i),i||this.signalReject&&this.signalReject(),i},e.prototype.onDnDDrop=function(e,t,n,r){if(this.dndWidgets&&0<=n&&n<=this.dndWidgets.length){var i=this.dndWidgets.findIndex(function(e){return e.platformConf.id===t});if(-1===i||i===n)return!1;var o=this.dndWidgets[i];return this.dndWidgets.splice(i,1),n>0&&n>=i&&n--,this.dndWidgets.splice(n,0,o),this.trackEvent(e,{detail:{move:o.platformConf.name,from:i+1,to:n+1}}),this.updateAndSave(),!0}return!1},e.prototype.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("ode-widget-container",t);n&&e.currentTarget&&e.currentTarget.dispatchEvent(n)},e}();t.Controller=a;var s=function(){function e(){this.restrict="A",this.template=n(6066).Z,this.scope={},this.bindToController=!0,this.controller=["odeWidgetService","odeNgHelperService",a],this.controllerAs="ctrl",this.require=["odeWidgetContainer"]}return e.prototype.link=function(e,t,n,r){var o;if(r){var a=r[0],s={position:"left"},u=null!==(o=n.odeWidgetContainer)&&void 0!==o?o:s;if("string"==typeof u)try{u=i.default.fromJson(u)}catch(e){u=s}u.position||(u.position="left"),a.signalReject=function(){var e="dndReject",n=t.children("ul[dnd-list][dnd-dragover]");n.hasClass(e)||(n.addClass(e),setTimeout(function(){n.removeClass(e)},1500))},a.widgetSvc.initialize().then(function(){a.position=u.position,a.loadWidgets(),e.$apply()});var c=a.widgetSvc.onChange().subscribe({next:function(t){a.loadWidgets(),e.$apply()}});e.$on("$destroy",function(){c&&c.unsubscribe()})}},e}();t.DirectiveFactory=function(){return new s}},5210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var n=function(e){this.widgetSvc=e,this.widget=null};t.Controller=n;var r=function(){function e(e,t){this.$compile=e,this.widgetLoader=t,this.restrict="A",this.scope={widget:"=odeWidget"},this.bindToController=!0,this.controller=["odeWidgetService",n],this.controllerAs="ctrl",this.require=["odeWidget"]}return e.prototype.link=function(e,t,n,r){var i=this;if(r){var o=r[0];this.widgetLoader(o.widget.platformConf.name).then(function(){var n="<ode-".concat(o.widget.platformConf.name,"></ode-").concat(o.widget.platformConf.name,">"),r=i.$compile(n)(e);t.append(r)})}},e}();function i(e,t){return new r(e,t)}t.DirectiveFactory=i,i.$inject=["$compile","odeWidgetLoader"]},9294:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Samples=void 0,t.Samples=o(n(4679)),a(n(9445),t),a(n(6731),t),a(n(1032),t),a(n(9419),t),"undefined"!=typeof window&&(window.entcore=window.entcore||{},window.entcore["ode-ngjs-front"]=e.exports)},6586:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeBaseModule=void 0;var i=r(n(4202)),o=n(6731),a=n(5262),s=i.default.module("odeBase",["ngSanitize","ngRoute"],["$interpolateProvider",function(e){e.startSymbol("[["),e.endSymbol("]]")}]).config(["$sceDelegateProvider",function(e){e.resourceUrlWhitelist(["self",a.ConfigurationFrameworkFactory.instance().Platform.cdnDomain+"/**"])}]);t.odeBaseModule=function(){return s.value("notify",o.notify).service("odeNotify",o.NotifyService).service("odeNgHelperService",o.NgHelperService).service("odeSession",o.SessionService).service("odeTracking",o.TrackingService).service("odeXiti",o.XitiService)}},7211:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeI18nModule=void 0;var i=r(n(4202)),o=n(9445),a=n(6731),s=i.default.module("odeI18n",[]);t.odeI18nModule=function(){return s.directive("translate",o.Translate.DirectiveFactory).directive("i18n",o.I18n.DirectiveFactory).directive("i18nValue",o.I18nValue.DirectiveFactory).directive("i18nPlaceholder",o.I18nPlaceholder.DirectiveFactory).directive("i18nTitle",o.I18nTitle.DirectiveFactory).filter("i18n",o.I18nFilter.FilterFactory).service("odeI18n",a.I18nService)}},1032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OdeModules=void 0;var r=n(6586),i=n(7211),o=n(6837),a=n(2357),s=function(){function e(){}return e.getBase=function(){return(0,r.odeBaseModule)().name},e.getI18n=function(){return(0,i.odeI18nModule)().name},e.getUi=function(){return(0,o.odeUiModule)().name},e.getWidgets=function(){return(0,a.odeWidgetModule)().name},e}();t.OdeModules=s},6837:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeUiModule=void 0;var i=r(n(4202)),o=n(9445),a=n(6731),s=(n(807),i.default.module("odeUi",["dndLists"]));t.odeUiModule=function(){return s.directive("odePortal",o.Portal.DirectiveFactory).directive("odeNavbar",o.Navbar.DirectiveFactory).directive("withTheme",o.WithTheme.DirectiveFactory).directive("odeModal",o.Modal.DirectiveFactory).directive("odeModalContainer",o.ModalContainer.DirectiveFactory).directive("odeInfotip",o.Infotip.DirectiveFactory).directive("navigationTrigger",o.NavigationTrigger.DirectiveFactory).directive("guardRoot",o.GuardRoot.DirectiveFactory).directive("inputGuard",o.InputGuard.DirectiveFactory).directive("dirtyGuard",o.DirtyGuard.DirectiveFactory).directive("documentGuard",o.DocumentGuard.DirectiveFactory).directive("customGuard",o.CustomGuard.DirectiveFactory).directive("resetGuard",o.ResetGuard.DirectiveFactory).directive("appTitle",o.AppTitle.DirectiveFactory).directive("logout",o.Logout.DirectiveFactory).directive("popover",o.Popover.DirectiveFactory).directive("popoverContent",o.PopoverContent.DirectiveFactory).directive("popoverOpener",o.PopoverOpener.DirectiveFactory).directive("assistant",o.Assistant.DirectiveFactory).directive("pulsar",o.Pulsar.DirectiveFactory).directive("lightbox",o.Lightbox.DirectiveFactory).directive("connectorLightbox",o.ConnectorLightbox.DirectiveFactory).directive("connectorLightboxTrigger",o.ConnectorLightbox.TriggerDirectiveFactory).directive("smartBanner",o.SmartBanner.DirectiveFactory).directive("help",o.Help.DirectiveFactory).directive("bindHtml",o.BindHtml.DirectiveFactory).directive("xiti",o.Xiti.DirectiveFactory).directive("autocomplete",o.Autocomplete.DirectiveFactory).directive("skinSrc",o.SkinSrc.DirectiveFactory).directive("odeRecorder",o.Recorder.DirectiveFactory).directive("odeWidgetContainer",o.WidgetContainer.DirectiveFactory).directive("odeWidget",o.Widget.DirectiveFactory).service("odeThemeHelperService",a.ThemeHelperService).service("odeQuickstartService",a.QuickstartService).service("odeWidgetService",a.WidgetService).service("odeRichContentService",a.RichContentService).service("odeVideoUploadService",a.VideoUploadService).service("odeVideoEventTrackerService",a.VideoEventTrackerService)}},2357:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeWidgetModule=t.KnownWidget=void 0;var a,s=o(n(4202));!function(e){e.maxicours="maxicours-widget",e.cursus="cursus-widget",e.school="school-widget",e.recordMe="record-me",e.agenda="agenda-widget",e.qwant="qwant",e.bookmark="bookmark-widget",e.rss="rss-widget",e.myApps="my-apps",e.carnetDeBord="carnet-de-bord",e.dicoDeLaZone="dicodelazone-widget",e.calendar="calendar-widget",e.universalis="universalis-widget",e.briefme="briefme-widget",e.lastInfos="last-infos-widget",e.edumalin="edumalin-widget",e.mediacentre="mediacentre-widget",e.cantine="cantine-widget",e.screenTime="screen-time-widget"}(a=t.KnownWidget||(t.KnownWidget={}));var u=s.default.module("odeWidgets",[]).factory("odeWidgetLoader",["$injector",function(e){var t=this;return function(o){return r(t,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:switch(o){case a.maxicours:return[3,1];case a.cursus:return[3,3];case a.school:return[3,5];case a.recordMe:return[3,7];case a.agenda:return[3,9];case a.qwant:return[3,11];case a.bookmark:return[3,13];case a.rss:return[3,15];case a.myApps:return[3,17];case a.carnetDeBord:return[3,19];case a.dicoDeLaZone:return[3,21];case a.calendar:return[3,23];case a.universalis:return[3,25];case a.briefme:return[3,27];case a.lastInfos:return[3,29];case a.edumalin:return[3,31];case a.mediacentre:return[3,33];case a.cantine:return[3,35];case a.screenTime:return[3,37]}return[3,39];case 1:return[4,new Promise(function(e,t){n.e(536).then(function(t){var r=n(3132);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 2:case 4:case 6:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return t.sent(),[3,40];case 3:return[4,new Promise(function(e,t){n.e(484).then(function(t){var r=n(1916);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 5:return[4,new Promise(function(e,t){n.e(306).then(function(t){var r=n(5623);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 7:return[4,new Promise(function(e,t){n.e(932).then(function(t){var r=n(1317);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 9:return[4,new Promise(function(e,t){n.e(815).then(function(t){var r=n(624);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 11:return[4,new Promise(function(e,t){n.e(165).then(function(t){var r=n(3399);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 13:return[4,new Promise(function(e,t){n.e(364).then(function(t){var r=n(9278);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 15:return[4,new Promise(function(e,t){n.e(390).then(function(t){var r=n(7377);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 17:return[4,new Promise(function(e,t){n.e(649).then(function(t){var r=n(1204);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 19:return[4,new Promise(function(e,t){n.e(438).then(function(t){var r=n(5613);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 21:return[4,new Promise(function(e,t){n.e(368).then(function(t){var r=n(2579);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 23:return[4,new Promise(function(e,t){n.e(556).then(function(t){var r=n(9492);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 25:return[4,new Promise(function(e,t){n.e(142).then(function(t){var r=n(462);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 27:return[4,new Promise(function(e,t){n.e(539).then(function(t){var r=n(2445);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 29:return[4,new Promise(function(e,t){n.e(376).then(function(t){var r=n(5479);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 31:return[4,new Promise(function(e,t){n.e(447).then(function(t){var r=n(3691);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 33:return[4,new Promise(function(e,t){n.e(820).then(function(t){var r=n(5116);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 35:return[4,new Promise(function(e,t){Promise.all([n.e(669),n.e(91)]).then(function(t){var r=n(8544);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 37:return[4,new Promise(function(e,t){Promise.all([n.e(919),n.e(202)]).then(function(t){var r=n(58);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 39:throw'Unknown widget "'.concat(o,'"');case 40:return[2]}})})}}]);t.odeWidgetModule=function(){return u}},4329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceFactory=t.AlertSvc=void 0;var n=function(){function e(e){this.$window=e}return e.prototype.alert=function(e){this.$window.alert(null!=e?e:"Undefined message...")},e}();function r(e){return new n(e)}t.AlertSvc=n,t.ServiceFactory=r,r.$inject=["$window"]},4679:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AlertSvc=t.SaySomething=void 0,t.SaySomething=o(n(2285)),t.AlertSvc=o(n(4329))},2285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=t.Controller=void 0;var r=function(){function e(e){this.$http=e}return e.prototype.sayHello=function(){return"".concat(this.what,", ").concat(this.userName," !")},e}();t.Controller=r;var i=function(){function e(e){this.$compile=e,this.restrict="E",this.template=n(2011).Z,this.scope={what:"@",userName:"=ngModel"},this.bindToController=!0,this.controller=["$http",r],this.controllerAs="ctrl",this.require=["saySomething","ngModel"]}return e.prototype.link=function(e,t,n,r){var i=r?r[0]:null,o=r?r[1]:null;console.log(null==i?void 0:i.userName),console.log(o)},e}();function o(e){return new i(e)}t.Directive=i,t.DirectiveFactory=o,o.$inject=["$compile"]},1760:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18nService=void 0;var r=(0,n(9419).conf)().Platform.idiom,i=function(){function e(){}return e.prototype.translate=function(e){return r.translate(e)},e}();t.I18nService=i},6731:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(7774),t),i(n(1760),t),i(n(4763),t),i(n(1599),t),i(n(6615),t),i(n(1147),t),i(n(9698),t),i(n(7374),t),i(n(298),t),i(n(2411),t),i(n(8328),t),i(n(7291),t)},1147:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NgHelperService=void 0;var i=r(n(4202)),o=r(n(3336)),a=function(){function e(){}return e.prototype.safeApply=function(e,t){var n=e.$root.$$phase;"$apply"==n||"$digest"==n?i.default.isFunction(t)&&t(e):"string"==typeof t||i.default.isFunction(t)?e.$apply(t):e.$apply()},e.prototype.each=function(e,t){for(var n=0;n<(null==e?void 0:e.length);n++)t(n,e[n])},e.prototype.offset=function(e,t){if(void 0!==t&&e.css("position","relative").css("top",t.top+"px").css("left",t.left+"px"),!e[0].getClientRects().length)return{top:0,left:0};var n=e[0].getBoundingClientRect();return{top:n.top+window.pageYOffset,left:n.left+window.pageXOffset}},e.prototype.width=function(e){var t;return null!==(t=(0,o.default)(e).width())&&void 0!==t?t:0},e.prototype.height=function(e){var t;return null!==(t=(0,o.default)(e).height())&&void 0!==t?t:0},e.prototype.parents=function(e,t){for(var n=i.default.element("<div></div>"),r=0;r<(null==e?void 0:e.length);r++){var o=e[r];do{(o=o.parentNode).matches(t)&&n.append(o)}while(o)}return n.children()},Object.defineProperty(e.prototype,"viewport",{get:function(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"WIDE_SCREEN",{get:function(){return 1200},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"TABLET",{get:function(){return 800},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"FAT_MOBILE",{get:function(){return 550},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"SMALL_MOBILE",{get:function(){return 420},enumerable:!1,configurable:!0}),e}();t.NgHelperService=a},7774:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.notify=t.NotifyService=void 0;var i=r(n(4202)),o=n(9419),a=n(991);i.default.element("head").append('<style id="humane-js">\n .humane,\n .humane-original {\n position: fixed;\n -moz-transition: all 0.2s ease-out;\n -webkit-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n z-index: 100000;\n filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);\n }\n .humane,\n .humane-original {\n font-family: Ubuntu, Verdana, sans-serif;\n line-height: 40px;\n font-size: 25px;\n top: 25%;\n left: 25%;\n opacity: 0;\n width: 50%;\n min-height: 40px;\n padding: 10px;\n text-align: center;\n background-color: #000;\n color: #fff;\n -webkit-border-radius: 15px;\n border-radius: 15px;\n }\n .humane p,\n .humane-original p,\n .humane ul,\n .humane-original ul {\n margin: 0;\n padding: 0;\n }\n .humane ul,\n .humane-original ul {\n list-style: none;\n }\n .humane.humane-original-info,\n .humane-original.humane-original-info {\n background-color: #030;\n }\n .humane.humane-original-success,\n .humane-original.humane-original-success {\n background-color: #030;\n }\n .humane.humane-original-error,\n .humane-original.humane-original-error {\n background-color: #300;\n }\n .humane.humane-animate,\n .humane-original.humane-original-animate {\n opacity: 0.8;\n }\n .humane.humane-animate:hover,\n .humane-original.humane-original-animate:hover {\n opacity: 0.6;\n }\n .humane.humane-js-animate,\n .humane-original.humane-original-js-animate {\n opacity: 0.8;\n }\n .humane.humane-js-animate:hover,\n .humane-original.humane-original-js-animate:hover {\n opacity: 0.6;\n filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);\n }\n</style>');var s=function(){function e(){}return e.prototype.message=function(e,t,n){t=(0,o.conf)().Platform.idiom.translate(t);var r={addnCls:"humane-original-"+e};"number"==typeof n&&(r.timeout=n),a.spawn(r)(t)},e.prototype.error=function(e,t){this.message("error",e,t)},e.prototype.info=function(e,t){this.message("info",e,t)},e.prototype.success=function(e,t){this.message("success",e,t)},e}();t.NotifyService=s,t.notify=new s},9698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuickstartService=void 0;var r=n(9419),i=(0,r.conf)().Platform.theme,o={get me(){return(0,r.session)().user}},a=function(){function e(){this.app="",this.steps={},this.state={},this.types={ENSEIGNANT:"teacher",ELEVE:"student",PERSEDUCNAT:"personnel",PERSRELELEVE:"relative",SUPERADMIN:""},this.mySteps=[],this.assistantIndex={},this.loaded=!1,this.loading=!1,this.awaiters=[]}return e.prototype.assistantStep=function(e){return i.basePath+"template/assistant/"+this.types[o.me.type]+"/"+e+".html"},e.prototype.nextAssistantStep=function(){this.state.assistant++,this.state.assistant===this.steps[this.types[o.me.type]]?(this.state.assistant=-1,this.assistantIndex=void 0):this.assistantIndex=this.mySteps[this.state.assistant],this.save()},Object.defineProperty(e.prototype,"assistantTimerFormat",{get:function(){return"MM/DD/YYYY HH:mm"},enumerable:!1,configurable:!0}),e.prototype.seeAssistantLater=function(){this.state.assistantTimer=r.L10n.moment().format(this.assistantTimerFormat),this.save()},e.prototype.getAppStep=function(){return this.state[i.skin][this.app]},e.prototype.goToAppStep=function(e){return this.state[i.skin][this.app]=e,this.save(),e},e.prototype.nextAppStep=function(){return this.goToAppStep(this.getAppStep()+1)},e.prototype.previousAppStep=function(){return this.goToAppStep(this.getAppStep()-1)},e.prototype.closeApp=function(){this.goToAppStep(-1)},e.prototype.appIndex=function(){return this.app=window.location.href.split("//")[1].split("/").slice(1).join("/"),this.state[i.skin]||(this.state[i.skin]={}),this.state[i.skin][this.app]||(this.state[i.skin][this.app]=0),this.state[i.skin][this.app]},e.prototype.previousAssistantStep=function(){this.state.assistant--,this.state.assistant<0&&(this.state.assistant=0),this.assistantIndex=this.mySteps[this.state.assistant],this.save()},e.prototype.save=function(e){(0,r.http)().putJson("/userbook/preference/quickstart",this.state).then(function(){"function"==typeof e&&e()})},e.prototype.goTo=function(e){e>this.mySteps.length&&(e=-1),this.state.assistant=e,-1!==e&&(this.assistantIndex=this.mySteps[e]),this.save()},e.prototype.load=function(e){var t=this;this.loaded?"function"==typeof e&&e():(e&&this.awaiters.push(e),this.loading||(this.loading=!0,(0,r.http)().get("/userbook/preference/quickstart").then(function(e){var n;if(e.preference)try{n=JSON.parse(e.preference)}catch(e){console.log("Error parsing quickstart preferences")}n||(n={}),n.assistant||(n.assistant=0),n[i.skin]||(n[i.skin]={}),t.state=n,-1===n.assistant||n.assistantTimer&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).year()===r.L10n.moment().year()&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).dayOfYear()===r.L10n.moment().dayOfYear()&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).hour()===r.L10n.moment().hour()?(t.loaded=!0,t.awaiters.forEach(function(e){"function"==typeof e&&e()})):(0,r.http)().get(i.basePath+"template/assistant/steps.json").then(function(e){t.steps=e;for(var n=t.steps[t.types[o.me.type]],r=0;r<n;r++)t.mySteps.push({index:r,path:t.assistantStep(r)}),t.assistantIndex=t.mySteps[t.state.assistant];t.loaded=!0,t.awaiters.forEach(function(e){"function"==typeof e&&e()})})})))},e}();t.QuickstartService=a},2411:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RichContentService=void 0;var i=r(n(3336)),o=function(){function e(e){this.$compile=e}return e.prototype.apply=function(e,t,n){var r=(0,i.default)("<div>"+(e||"")+"</div>");r.find("[resizable]").removeAttr("resizable").css("cursor","initial"),r.find("[bind-html]").removeAttr("bind-html"),r.find("[ng-include]").removeAttr("ng-include"),r.find("[ng-transclude]").removeAttr("ng-transclude"),r.find("[draggable]").removeAttr("draggable").css("cursor","initial"),r.find("[contenteditable]").removeAttr("contenteditable"),r.find("script").remove(),r.find("*").each(function(e,t){for(var n=t.attributes,r=n.length-1;r>=0;r--)(n[r].name.startsWith("on")||n[r].value.includes("javascript:"))&&t.removeAttribute(n[r].name)});var o=r[0].outerHTML;t.html(this.$compile(o)(n.$parent)),t.find("audio").each(function(e,t){var n=(0,i.default)(t).parent();(0,i.default)(t).attr("src",t.src).attr("preload","none").detach().appendTo(n)}),t.find("img").css({cursor:""})},e.$inject=["$compile"],e}();t.RichContentService=o},4763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionService=void 0;var r=n(9419),i=function(){function e(){}return e.prototype.hasWorkflow=function(e){return(0,r.session)().hasWorkflow(e)},e.prototype.getLanguage=function(){return(0,r.notif)().onSessionReady().promise.then(function(e){return(0,r.session)().currentLanguage})},e.prototype.getBookmarks=function(){return(0,r.notif)().onSessionReady().promise.then(function(e){return(0,r.conf)().User.bookmarkedApps})},e}();t.SessionService=i},6615:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeHelperService=void 0;var a=o(n(4202)),s=n(9419),u=o(n(3336)),c=function(){function e(e){this.ngHelperSvc=e,this.iconOfWidget={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme big","edumalin-widget":"ic-widget-edumalin","mediacentre-widget":"ic-widget-mediacentre","cantine-widget":"ic-widget-cantine","screen-time-widget":"ic-widget-screen"}}return Object.defineProperty(e.prototype,"platform",{get:function(){return(0,s.conf)().Platform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CDN",{get:function(){return this.platform.cdnDomain},enumerable:!1,configurable:!0}),e.prototype.getBootstrapThemePath=function(){return r(this,void 0,void 0,function(){var e,t,n,r,o;return i(this,function(i){switch(i.label){case 0:return e=this.platform.theme.themeName,[4,this.platform.theme.getConf()];case 1:for(t=i.sent(),n=0,r=t.overriding;n<r.length;n++)if((o=r[n]).child===e)return[2,"".concat(this.CDN,"/assets/themes/").concat(o.bootstrapVersion)];return[2,"".concat(this.CDN,"/assets/themes/").concat(e)]}})})},e.prototype.getBootstrapSkinPath=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,this.getBootstrapThemePath()];case 1:return e=t.sent(),[2,"".concat(e,"/skins/").concat(this.platform.theme.skinName)]}})})},e.prototype.toSkinUrl=function(e){if(!a.default.element(document.querySelectorAll("#theme")).attr("href"))return"";var t=this.platform.theme.basePath;return-1===e.indexOf("http://")&&-1===e.indexOf("https://")&&-1===e.indexOf("/workspace/")?t+e:e},e.prototype.loadOldWrappedTheme=function(e,t){(0,u.default)("#themeOld").remove();var n=a.default.element('<link rel="stylesheet" \n type="text/css" \n href="'.concat(this.platform.cdnDomain,"/assets/themes/").concat(e,"/skins/").concat(t,"/wrapped.theme.css?version=").concat(this.platform.deploymentTag,'"\n id="themeOld"\n crossorigin="anonymous" />'));(0,u.default)("head").append(n)},e.prototype.loadThemeJs=function(e){(0,u.default)("#themeJS").remove();var t=a.default.element('<script\n type="text/javascript"\n src="'.concat(this.platform.cdnDomain,"/assets/themes/").concat(e,"/js/theme.js?version=").concat(this.platform.deploymentTag,'"\n id="themeJS" />'));(0,u.default)("body").append(t)},e.prototype.applyStyle=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){return e&&e.length>0&&e.lastIndexOf("/",e.length-1)!==e.length-1&&(e+="/"),e="".concat(e,"theme.css?version=").concat(this.platform.deploymentTag),0===(0,u.default)("#theme").length?(t=a.default.element('<link rel="stylesheet" \n type="text/css" \n href="'.concat(e,'"\n id="theme"\n crossorigin="anonymous" />')),n=a.default.element('<link rel="icon" href="'.concat(this.platform.theme.basePath,'img/illustrations/favicon.ico" />')),t.on("load",function(e){(0,u.default)("body").show()}),(0,u.default)("head").append(t).append(n),setTimeout(function(){(0,u.default)("body").show()},300)):(0,u.default)("#theme").attr("href",e),[2]})})},e.prototype.listThemes=function(){return this.platform.theme.listThemes()},e.prototype.setTheme=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return[4,this.getBootstrapThemePath()];case 1:return t=n.sent(),this.applyStyle("".concat(t,"/skins/").concat(e._id)),this.platform.theme.setDefaultTheme(e),[2]}})})},e.prototype.getIconCode=function(e){var t=e.icon.trim().toLowerCase()||"";switch(t&&t.length>0?t.endsWith("-large")&&(t=t.replace("-large","")):t=e.displayName.trim().toLowerCase(),t=(0,s.conf)().Platform.idiom.removeAccents(t)){case"admin.title":t="admin";break;case"banques des savoirs":t="banquesavoir";break;case"collaborativewall":t="collaborative-wall";break;case"communautés":t="community";break;case"directory.user":t="userbook";break;case"emploi du temps":t="edt";break;case"messagerie":t="conversation";break;case"news":t="actualites";break;case"homeworks":case"cahier de texte":t="cahier-de-texte";break;case"diary":case"cahier de texte 2d":t="cahier-textes"}return t},e.prototype.getWidgetIconClass=function(e){return this.iconOfWidget[e.platformConf.name]},e.$inject=["odeNgHelperService"],e}();t.ThemeHelperService=c},7374:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackingService=void 0;var a=o(n(4202)),s=n(9419),u=function(){function e(e,t,n){this.$document=e,this.$location=t,this.$rootScope=n,this.hasOptedIn=!1}return e.prototype.loadParams=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return e=this,[4,(0,s.conf)().Platform.analytics.parameters("matomo")];case 1:return[2,e._params=t.sent()]}})})},e.prototype.trackApp=function(e){var t=this;this.loadParams().then(function(e){var n;if(e&&t.shouldTrackCurrentApp())try{var r=window._paq=null!==(n=window._paq)&&void 0!==n?n:[];r.push(["setRequestMethod","POST"]),e.UserId&&r.push(["setUserId",e.UserId]),e.Profile&&r.push(["setCustomDimension",1,e.Profile]),e.School&&r.push(["setCustomDimension",2,e.School]),e.Project&&r.push(["setCustomDimension",3,e.Project]),r.push(["trackPageView"]),r.push(["enableLinkTracking"]),function(){var t;r.push(["setTrackerUrl",e.url+"matomo.php"]),r.push(["setSiteId",e.siteId]);var n=document,i=n.createElement("script"),o=n.getElementsByTagName("script")[0];i.type="text/javascript",i.async=!0,i.src=e.url+"ode.js",null===(t=o.parentNode)||void 0===t||t.insertBefore(i,o)}();var i=t;if(r.push([function(){i.hasOptedIn=!this.isUserOptedOut(),i.$rootScope.$digest()}]),e.detailApps){var o=(0,s.session)().user;if(a.default.isArray(e.doNotTrack)&&a.default.isArray(o.apps))for(var u=0;u<o.apps.length;u++)if(o.apps[u]&&o.apps[u].address&&o.apps[u].name&&-1!==t.$location.absUrl().indexOf(o.apps[u].address)&&-1!==e.doNotTrack.indexOf(o.apps[u].name))return;var c=t.$location.absUrl().split("#")[0];t.trackPage(t.$document[0].title,c)}}catch(e){console.error('Invalid tracker object. Should look like {"siteId": 99999, "url":"http://your.matomo.server.com/"}"',e)}})},e.prototype.trackPage=function(e,t){var n=this;this.loadParams().then(function(r){if(r&&n.shouldTrackCurrentApp()){var i=window._paq=window._paq||[];i.push(["setDocumentTitle",e]),i.push(["setCustomUrl",t]),i.push(["trackPageView"])}})},e.prototype.willTrackEvent=function(e){var t=this._params;if(!t)return!1;var n=this.getCurrentMatchingApps();if(t.trackOnly&&t.trackOnly.length>0){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(-1!==t.trackOnly.indexOf("".concat(o.name,".").concat(e))||-1!==t.trackOnly.indexOf("*.".concat(e)))return!0}return!1}if(t.doNotTrack instanceof Array&&t.doNotTrack.length>0)for(var a=0,s=n;a<s.length;a++){o=s[a];if(-1!==t.doNotTrack.indexOf("".concat(o.name,".").concat(e))||-1!==t.doNotTrack.indexOf("*.".concat(e)))return!1}return!0},e.prototype.trackEvent=function(e,t,n,r){this.loadParams().then(function(i){if(i){var o=window._paq=window._paq||[],a=["trackEvent",e,t];"string"==typeof n&&(n=n.trim()).length>0&&a.push(n),"number"==typeof r&&a.push(r),o.push(a)}})},e.prototype.saveOptIn=function(){var e=this;this.loadParams().then(function(t){t&&(window._paq=window._paq||[]).push(e.hasOptedIn?["forgetUserOptOut"]:["optUserOut"])})},e.prototype.shouldTrackCurrentApp=function(){var e=this._params;if(!e)return!1;if(e.doNotTrack)for(var t=0,n=this.getCurrentMatchingApps();t<n.length;t++){var r=n[t];if(-1!==e.doNotTrack.indexOf(r.name))return!1}return!0},e.prototype.getCurrentMatchingApps=function(){var e=[],t=(0,s.session)().user.apps;if(t instanceof Array)for(var n=0;n<t.length;n++){var r=t[n];r&&r.address&&r.name&&-1!==location.href.indexOf(r.address)&&e.push(r)}return e},e.prototype.shouldTrackEvent=function(e,t){if(!e)return!1;var n=this.getCurrentMatchingApps();if(e.trackOnly&&e.trackOnly.length>0){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(-1!==e.trackOnly.indexOf("".concat(o.name,".").concat(t))||-1!==e.trackOnly.indexOf("*.".concat(t)))return!0}return!1}if(e.doNotTrack instanceof Array&&e.doNotTrack.length>0)for(var a=0,s=n;a<s.length;a++){o=s[a];if(-1!==e.doNotTrack.indexOf("".concat(o.name,".").concat(t))||-1!==e.doNotTrack.indexOf("*.".concat(t)))return!1}return!0},e}();t.TrackingService=u,u.$inject=["$document","$location","$rootScope"]},7291:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoEventTrackerService=void 0;var r=n(9419),i=function(){function e(){}return e.asFormData=function(){var e=new FormData,t=r.devices.getBrowserInfo();return e.append("device",r.deviceType),e.append("browser",t.name+" "+t.version),e.append("url",window.location.hostname),e.append("app",(0,r.session)().currentApp||""),e},e.prototype.generateSaveEvent=function(e,t){var n=r.devices.getBrowserInfo(),i={videoId:t.videoworkspaceid,userId:(0,r.session)().user.userId,userProfile:(0,r.session)().description.profiles[0],device:r.deviceType,browser:n.name+" "+n.version,structure:(0,r.session)().user.structureNames[0],level:(0,r.session)().user.level,duration:Math.round(e),weight:t.videosize,captation:!0,url:window.location.hostname,app:(0,r.session)().currentApp};(0,r.http)().postJson("/video/event/save",i)},e}();t.VideoEventTrackerService=i},8328:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoUploadService=void 0;var o=n(5262),a=n(9419),s=n(7291),u=function(){function e(){this._maxWeight=50,this._maxDuration=3,this._acceptVideoUploadExtensions=["mp4","mov","avi"],this._initialized=!1}return Object.defineProperty(e.prototype,"validExtensions",{get:function(){return this._acceptVideoUploadExtensions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxWeight",{get:function(){return this._maxWeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDuration",{get:function(){return this._maxDuration},enumerable:!1,configurable:!0}),e.prototype.initialize=function(){return r(this,void 0,void 0,function(){var e=this;return i(this,function(t){switch(t.label){case 0:if(this._initialized)return[2];t.label=1;case 1:return t.trys.push([1,,3,4]),[4,(0,a.conf)().Platform.apps.initialize(o.APP.VIDEO,!1)];case 2:return t.sent(),(0,a.conf)().Platform.apps.getPublicConf(o.APP.VIDEO).then(function(t){e._maxWeight=e.safeValueOf(t,"max-videosize-mbytes",e._maxWeight),e._maxDuration=e.safeValueOf(t,"max-videoduration-minutes",e._maxDuration);var n=t["accept-videoupload-extensions"];n&&("string"==typeof n&&(n=[n]),e._acceptVideoUploadExtensions=n||e._acceptVideoUploadExtensions,e._acceptVideoUploadExtensions=e._acceptVideoUploadExtensions.map(function(e){return e.toUpperCase()}))}),[3,4];case 3:return this._initialized=!0,[7];case 4:return[2]}})})},e.prototype.safeValueOf=function(e,t,n){try{var r=parseInt(e[t]);return"number"!=typeof r||isNaN(r)?n:r}catch(e){return n}},e.prototype.checkValidExtension=function(e){return e=e.toUpperCase(),-1!==this._acceptVideoUploadExtensions.findIndex(function(t){return e===t})},e.prototype.upload=function(e,t,n,o){return r(this,void 0,void 0,function(){var r,u,c,l,d,f,h;return i(this,function(p){switch(p.label){case 0:if(!e)throw new Error("Invalid video file.");if(!t)throw new Error("Invalid video filename.");return r="/video/encode?captation="+n,(u=s.VideoEventTrackerService.asFormData()).append("file",e,t),u.append("weight",""+e.size),u.append("captation",""+n),o&&(u.append("duration",""+o),r+="&duration="+o),[4,(0,a.http)().post(r,u)];case 1:if(p.sent(),202!=(0,a.http)().latestResponse.status)return[3,5];c="/video/status/"+(0,a.http)().latestResponse.data.processid,l=0,d=1,f=function(){var e,t;return i(this,function(n){switch(n.label){case 0:return e=d+l,[4,new Promise(function(t){return setTimeout(t,1e3*e)})];case 1:return n.sent(),l=d,d=Math.min(8,e),[4,(0,a.http)().get(c)];case 2:return t=n.sent(),201==(0,a.http)().latestResponse.status?[2,{value:t}]:202!=(0,a.http)().latestResponse.status?[2,"break"]:[2]}})},p.label=2;case 2:return[5,f()];case 3:if("object"==typeof(h=p.sent()))return[2,h.value];if("break"===h)return[3,5];p.label=4;case 4:return[3,2];case 5:throw new Error("Video cannot be uploaded.")}})})},e}();t.VideoUploadService=u},1599:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetService=void 0;var r=n(5262),i=n(9419),o=function(){function e(){}return e.prototype.initialize=function(){return r.WidgetFrameworkFactory.instance().initialize(null,null)},e.prototype.list=function(){return r.WidgetFrameworkFactory.instance().list},e.prototype.onChange=function(){return(0,i.notif)().events().pipe(r.RxJS.filter(function(e){return e.layer===r.LAYER_NAME.WIDGETS&&e.name===r.EVENT_NAME.USERPREF_CHANGED}))},e}();t.WidgetService=o},298:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.XitiService=void 0;var utils_1=__webpack_require__(9419),ATTag,XitiService=function(){function XitiService(){}return XitiService.prototype.runScript=function(){var e=this;return Promise.all([(0,utils_1.conf)().Platform.analytics.xiti(),this.loadScript()]).then(function(t){var n=t[0];if(n)return console.debug("XiTi conf="+JSON.stringify(n)),e.run(n)}).catch(function(e){e&&console.debug("XiTi: run script error="+JSON.stringify(e))})},XitiService.prototype.trackClick=function(e,t){var n=this;return Promise.all([(0,utils_1.conf)().Platform.analytics.xiti(),this.loadScript(),this.loadCasMapping(e)]).then(function(r){var i=r[0];if(i)return console.debug("XiTi conf="+JSON.stringify(i)),n.click(i,r[2],e,t)}).catch(function(e){e&&console.debug("XiTi: track click error="+JSON.stringify(e))})},XitiService.prototype.loadScript=function(){return __awaiter(this,void 0,void 0,function(){var scriptPath,response;return __generator(this,function(_a){switch(_a.label){case 0:return"undefined"!=typeof ATInternet?[3,2]:(scriptPath="/xiti/public/js/lib/smarttag_ENT.js",[4,(0,utils_1.http)().get(scriptPath,{headers:{Accept:"application/javascript"}})]);case 1:if(response=_a.sent(),200!=(0,utils_1.http)().latestResponse.status)throw"Error while loading XiTi script";eval(response),_a.label=2;case 2:return[2]}})})},XitiService.prototype.loadCasMapping=function(e){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(r){switch(r.label){case 0:return t="/xiti/cas-infos?connector=".concat(e),[4,(0,utils_1.http)().get(t)];case 1:if(n=r.sent(),200!=(0,utils_1.http)().latestResponse.status)throw"Error while loading XiTi CAS mapping";if(!n.xitiService||!n.xitiOutil)throw"Malformed XiTi CAS mapping";return[2,n]}})})},XitiService.prototype.run=function(e,t){return void 0===t&&(t=window.location.pathname),__awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(o){if(!ATInternet)return[2];for(r in n=e.LIBELLE_SERVICE.default||null,e.LIBELLE_SERVICE)if("default"!==r&&t.indexOf(r)>=0){n=e.LIBELLE_SERVICE[r];break}return i=function(e){if(e&&e.split("/").length>0){var t=window.location.pathname.split("/")[1];return"userbook"==t&&(t="directory"),"welcome"==t&&(t="."),t}}(t),(ATTag=new ATInternet.Tracker.Tag({site:e.STRUCT_ID})).setProps({SERVICE:n,TYPE:e.TYPE,OUTIL:e.OUTIL,UAI:e.STRUCT_UAI,PROJET:e.PROJET,EXPLOITANT:e.EXPLOITANT,PLATEFORME:e.PLATFORME,PROFIL:e.PROFILE},!0),ATTag.identifiedVisitor.set({id:e.ID_PERSO,category:e.PROFILE}),ATTag.page.set({name:"userbook"===i?"directory":i,chapter1:"",chapter2:"",chapter3:"",level2:e.STRUCT_UAI}),ATTag.dispatch(),[2]})})},XitiService.prototype.click=function(e,t,n,r){if(ATInternet&&ATTag){console.debug("xiti click !!!");var i={SERVICE:t.xitiService,TYPE:"TIERS",OUTIL:t.xitiOutil},o=n,a=e.STRUCT_UAI;ATTag.setProps(i,!1),ATTag.click.send({elem:r,name:o,type:"navigation",level2:a})}},XitiService}();exports.XitiService=XitiService},1880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Base64=void 0;var n=function(){function e(){}return e.encode=function(e){return btoa(e)},e.decode=function(e){return atob(e)},e}();t.Base64=n},3710:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deviceType=t.devices=void 0;var r=n(2238);t.devices={getOSInfo:function(e){return new r.UAParser(e).getOS()},isIE:function(){return-1!==navigator.userAgent.indexOf("Trident")},isiOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},isIphone:function(){return-1!=navigator.userAgent.indexOf("iPhone")},isIpod:function(){return-1!=navigator.userAgent.indexOf("iPod")},isIpad:function(){return-1!=navigator.userAgent.indexOf("iPad")},getBrowserInfo:function(){var e=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),"string"==typeof e?e.split(t):[]},t=navigator.userAgent;if(-1!==t.indexOf("OPR")){var n=e(t,"OPR/")[1];return{name:"Opera",version:parseInt(e(n,".")[0])}}if(-1!==t.indexOf("Edg")){var r=e(t,"Edg/")[1];return{name:"Edge",version:parseInt(e(r,".")[0])}}if(-1!==t.indexOf("Chrome")){var i=e(t,"Chrome/")[1];return{name:"Chrome",version:parseInt(e(i,".")[0])}}if(-1!==t.indexOf("IEMobile")){var o=e(t,"IEMobile/")[1];return{name:"MSIE",version:parseInt(e(o,";")[0])}}if(-1!==t.indexOf("AppleWebKit")&&-1===t.indexOf("Chrome")&&-1===t.indexOf("CriOS")&&-1===t.indexOf("FxiOS")){var a=e(t,"Version/")[1];return{name:"Safari",version:parseInt(e(a,".")[0])}}if(-1!==t.indexOf("Firefox")){var s=e(t,"Firefox/")[1];return{name:"Firefox",version:parseInt(e(s,".")[0])}}if(-1!==t.indexOf("MSIE")){var u=e(t,"MSIE ")[1];return{name:"MSIE",version:parseInt(e(u,";")[0])}}if(-1===t.indexOf("MSIE")&&-1!==t.indexOf("Trident")){u=e(t,"rv:")[1];return{name:"MSIE",version:parseInt(e(u,".")[0])}}if(-1!==t.indexOf("CriOS")){var c=e(t,"CriOS/")[1];return{name:"CriOS",version:parseInt(e(c,".")[0])}}if(-1!==t.indexOf("FxiOS")){var l=e(t,"FxiOS/")[1];return{name:"FxiOS",version:parseInt(e(l,".")[0])}}return{name:"unknown",version:0}}},navigator.userAgent.match(/Mobile/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/Windows Phone/i)||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/webOS/i)?(t.deviceType="Mobile",document.getElementsByTagName("html")[0].setAttribute("mobile-device","")):navigator.userAgent.match(/Tablet/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Nexus 7/i)||navigator.userAgent.match(/Nexus 10/i)||navigator.userAgent.match(/KFAPWI/i)?(t.deviceType="Tablet",document.getElementsByTagName("html")[0].setAttribute("tablet-device","")):(t.deviceType="Desktop",document.getElementsByTagName("html")[0].setAttribute("desktop-device",""))},9419:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackedActionFromWidget=void 0,i(n(2167),t),i(n(4943),t),i(n(6660),t),i(n(8701),t),i(n(1880),t),i(n(3710),t),i(n(5511),t);var o=n(2357);Object.defineProperty(t,"TrackedActionFromWidget",{enumerable:!0,get:function(){return o.KnownWidget}})},2167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8701:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.L10n=void 0;var i=r(n(381)),o=function(){function e(){}return e.initialize=function(e){var t={fr:{calendar:{lastDay:"[Hier à] HH[h]mm",sameDay:"[Aujourd'hui à] HH[h]mm",nextDay:"dddd D MMMM YYYY",lastWeek:"dddd D MMMM YYYY",nextWeek:"dddd D MMMM YYYY",sameElse:"dddd D MMMM YYYY"}}};i.default.locale(e),e in t&&i.default.updateLocale(e,t[e])},e.moment=function(e,t,n,r){return"boolean"!=typeof t||n||"boolean"==typeof r?(0,i.default)(e,t,n,r):(0,i.default)(e,r)},e.utc=function(e,t){return i.default.utc(e)},e.unix=function(e){return i.default.unix(e)},e}();t.L10n=o},3848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ManualChangeListener=t.DOMRouteChangeListener=t.AngularJSRouteChangeListener=t.ObjectGuard=t.InputGuard=t.navigationGuardService=t.NavigationGuardService=void 0;var r=n(7754),i=n(4943);function o(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}function a(e){var t=[];return e.forEach(function(e,n){return t.push(n)}),t}var s=function(){function e(){this.debounceMs=1e3,this._lastTime=null,this._lastResponse=null,this._listeners=new Map,this._guards=new Map,this._id_counter=0,this.onUserConfirmNavigate=new Array}return e.prototype.generateID=function(){return"__auto_guard_id_"+t.navigationGuardService._id_counter++},e.prototype._getGuardsMapByID=function(e){var n=t.navigationGuardService._guards.get(e);return null!=n?n:new Set},e.prototype.registerGuard=function(e,n){var r=t.navigationGuardService._getGuardsMapByID(e);r.add(n),t.navigationGuardService._guards.set(e,r)},e.prototype.unregisterGuard=function(e,n){var r=t.navigationGuardService._getGuardsMapByID(e);r.delete(n),0==r.size&&t.navigationGuardService.unregisterRoot(e)},e.prototype.unregisterRoot=function(e){t.navigationGuardService._guards.delete(e)},e.prototype.registerIndependantGuard=function(e){var n=t.navigationGuardService.generateID();return t.navigationGuardService.registerGuard(n,e),n},e.prototype.unregisterIndependantGuard=function(e){t.navigationGuardService.unregisterRoot(e)},e.prototype.registerListener=function(e){if(!t.navigationGuardService._listeners.has(e)){e.start();var n=e.onChange.subscribe(function(e){t.navigationGuardService.tryNavigate(e)});t.navigationGuardService._listeners.set(e,n)}},e.prototype.unregisterListener=function(e){var n=t.navigationGuardService._listeners.get(e);n&&(n.unsubscribe(),e.stop(),t.navigationGuardService._listeners.delete(e))},e.prototype.tryNavigate=function(e){var n=t.navigationGuardService._lastTime||0,r=(new Date).getTime()-n,s=t.navigationGuardService._lastResponse;if(null!=s&&r<t.navigationGuardService.debounceMs)s?e.accept():e.reject();else{for(var u=e.confirmMessageKey||"navigation.guard.text",c=0,l=a(t.navigationGuardService._guards);c<l.length;c++){var d=l[c],f=t.navigationGuardService._guards.get(d);if(f&&(!e.checkGuardId||"*"===e.checkGuardId||e.checkGuardId===d))for(var h=0,p=o(f);h<p.length;h++){var v=p[h];if(!v.canNavigate()){for(var m=confirm((0,i.conf)().Platform.idiom.translate(u)),g=0,b=t.navigationGuardService.onUserConfirmNavigate;g<b.length;g++){(0,b[g])(m)}return v.onUserConfirmNavigate&&v.onUserConfirmNavigate(m),t.navigationGuardService._lastTime=(new Date).getTime(),t.navigationGuardService._lastResponse=m,void(m?(e.accept(),t.navigationGuardService.resetAll()):e.reject())}}}e.accept()}},e.prototype.reset=function(e){for(var n=0,r=o(t.navigationGuardService._getGuardsMapByID(e));n<r.length;n++){r[n].reset()}},e.prototype.resetAll=function(){for(var e=0,n=a(t.navigationGuardService._guards);e<n.length;e++){var r=n[e];t.navigationGuardService.reset(r)}},e}();t.NavigationGuardService=s,t.navigationGuardService=new s;var u=function(){function e(e,t,n){void 0===n&&(n=function(e,t){return e==t}),this.currentValue=e,this.resetter=t,this.comparator=n,this.reference=this.resetter()}return e.prototype.unNaN=function(e){return"number"==typeof e&&!0===isNaN(e)?null:e},e.prototype.reset=function(){this.reference=this.resetter()},e.prototype.canNavigate=function(){return this.comparator(this.unNaN(this.reference),this.unNaN(this.currentValue()))},e}();t.InputGuard=u;var c=function(){function e(e){this.currentValue=e}return e.prototype.reset=function(){this.currentValue().guardObjectReset()},e.prototype.canNavigate=function(){return!this.currentValue().guardObjectIsDirty()},e.prototype.onUserConfirmNavigate=function(e){var t=this.currentValue();t.guardOnUserConfirmNavigate&&t.guardOnUserConfirmNavigate(e)},e}();t.ObjectGuard=c;var l=function(){function e(e){this.$rootScope=e,this.subscription=null,this.onChange=new r.Subject;var n=this;e.$on("$destroy",function(){t.navigationGuardService.unregisterListener(n)})}return e.prototype.start=function(){var e=this;this.subscription||(this.subscription=this.$rootScope.$on("$locationChangeStart",function(t,n,r){e.onChange.next({accept:function(){},reject:function(){t.preventDefault()}})}))},e.prototype.stop=function(){this.subscription&&this.subscription(),this.subscription=null},e.getInstance=function(t){return null==e._instance&&(e._instance=new e(t)),e._instance},e._instance=null,e}();t.AngularJSRouteChangeListener=l;var d=function(){function e(){var e=this;this.onChange=new r.Subject,this.callback=function(t){var n=!1;return e.onChange.next({accept:function(){n=!0},reject:function(){t.preventDefault(),t.returnValue=!1,n=!1}}),n}}return e.prototype.start=function(){window.addEventListener("beforeunload",this.callback,!1)},e.prototype.stop=function(){window.removeEventListener("beforeunload",this.callback)},e.getInstance=function(){return null==e._instance&&(e._instance=new e),e._instance},e._instance=null,e}();t.DOMRouteChangeListener=d;var f=function(){function e(){this.onChange=new r.Subject}return e.prototype.start=function(){},e.prototype.stop=function(){this.onChange.unsubscribe()},e}();t.ManualChangeListener=f},6660:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4202)),o=n(5262),a=n(9419);document.addEventListener("DOMContentLoaded",function(){o.SessionFrameworkFactory.instance().initialize().then(function(){var e;return(0,a.conf)().initialize(null===(e=window.entcore)||void 0===e?void 0:e.deploymentTag,null)}).then(function(){i.default.bootstrap(document.querySelector("html"),["app"])})},{once:!0})},9826:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.audio_recorder=void 0;var a=n(9419),s=n(7774),u=o(n(3336)),c=null;function l(){return r(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return c?[3,2]:[4,u.default.ajax("/infra/public/js/zlib.min.js",{dataType:"script"})];case 1:c=e.sent(),e.label=2;case 2:return[2,c]}})})}var d={getUserMediaLegacy:navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,getUserMedia:navigator.mediaDevices&&navigator.mediaDevices.getUserMedia,AudioContext:window.AudioContext||window.webkitAudioContext};t.audio_recorder=function(){var e,t,n,o=(0,a.conf)().Platform.idiom,u=null,c=!0,f=new Audio,h=[],p=[],v=4096,m=!1,g=0,b=0,y=new Worker("/infra/public/js/audioEncoder.js"),w=[];function _(e){var t="https:"===window.location.protocol?"wss":"ws",n=window.location.host;return"localhost:8090"===window.location.host&&(n="localhost:6502"),"".concat(t+"://"+n,"/audio/").concat("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),"?sampleRate=").concat(e)}function x(){var t=p.length;t>b&&(y.postMessage(["init",e.sampleRate]),y.postMessage(["chunk",h.slice(b,t),p.slice(b,t),(t-b)*v]),y.onmessage=function(e){if(c){var t=parseInt(""+performance.now()),n=new Zlib.Deflate(e.data);u&&u.send(n.compress()),parseInt(""+performance.now())-t>50&&(c=!1,u&&u.send("rawdata"))}else u&&u.send(e.data)},b=t)}function k(){u&&1===u.readyState&&u.close(),S()}function S(){u=null,h=[],p=[],b=0}function M(e,t){try{w.forEach(function(n){"function"==typeof n&&n(e,t)})}catch(e){}}return{elapsedTime:0,loadComponents:function(){var r=this;this.title||(this.title=a.L10n.moment().format("YYYY-MM-DD HH[h]mm")+" "+o.translate("recorder.filename.audio")),m=!0;var i=function(i){r.permission="granted",e=new d.AudioContext,y.postMessage(["init",e.sampleRate]);var o=e.createMediaStreamSource(i);t=e.createGain(),o.connect(t),(n=e.createScriptProcessor(v,2,2)).onaudioprocess=function(e){if("recording"===r.state){var t=new Float32Array(e.inputBuffer.getChannelData(0));h.push(t);var n=new Float32Array(e.inputBuffer.getChannelData(1));p.push(n),g+=v,r.elapsedTime+=e.inputBuffer.duration,x(),M(r.state)}},t.connect(n),n.connect(e.destination)};void 0!==d.getUserMedia?d.getUserMedia.call(navigator.mediaDevices,{audio:!0}).then(i).catch(function(e){e&&(r.permission="denied",console.log("err:",e))}):void 0!==d.getUserMediaLegacy&&d.getUserMediaLegacy({audio:!0},i,function(e){console.log("err:",e)})},isCompatible:function(){return void 0!==d.AudioContext&&(void 0!==d.getUserMedia||void 0!==d.getUserMediaLegacy)},stop:function(){u&&u.send("cancel"),this.state="idle",f.pause(),f.currentTime>0&&(f.currentTime=0),h=[],p=[],M(this.state)},flush:function(){this.title="",this.stop(),this.elapsedTime=0,h=[],p=[],M(this.state)},record:function(){return r(this,void 0,void 0,function(){var e,t=this;return i(this,function(n){switch(n.label){case 0:return f.pause(),"preparing"==(e=this).state?[2]:(e.state="preparing",[4,l()]);case 1:return n.sent(),u?(e.state="recording",M(e.state),m||e.loadComponents()):((u=new WebSocket(_((new d.AudioContext).sampleRate))).onopen=function(){f.currentTime>0&&(f.currentTime=0),e.state="recording",M(e.state),c||u&&u.send("rawdata"),m||e.loadComponents()},u.onerror=function(t){console.log(t),e.state="stopped",M(e.state),k(),s.notify.error(t.error)},u.onmessage=function(e){return r(t,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return e.data&&e.data.indexOf&&"function"==typeof e.data.indexOf&&-1!==e.data.indexOf("error")?(console.log(e.data),k(),s.notify.error(e.data),[3,3]):[3,1];case 1:return e.data&&e.data.text&&"function"==typeof e.data.text&&"encoding"===this.state?(n=(t=JSON).parse,[4,e.data.text()]):[3,3];case 2:"ok"===n.apply(t,[r.sent()]).status?(k(),M("saved"),this.elapsedTime=0):(console.log(e.data),k(),s.notify.error(e.data)),r.label=3;case 3:return[2]}})})},u.onclose=function(t){e.state="stopped",e.elapsedTime=0,M(e.state),S()}),[2]}})})},suspend:function(){return this.state="suspended",f.pause(),M(this.state),Promise.resolve()},pause:function(){this.state="paused",f.pause(),M(this.state)},play:function(){this.pause(),this.state="playing";var t=new Worker("/infra/public/js/audioEncoder.js");t.postMessage(["init",e.sampleRate]),t.postMessage(["wav",p,h,g]),t.onmessage=function(e){f.src=window.URL.createObjectURL(e.data),f.play()},M(this.state)},status:function(e){w.push(e)},title:"",state:"idle",permission:"idle",save:function(){x(),u&&u.send("save-"+this.title),this.state="encoding",M(this.state)},mute:function(e){t.gain.value=e?0:1}}}()},3148:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoRecorder=void 0;var o=n(4943),a=n(8701),s=n(6731),u=n(3710),c=function(){function e(e,t,n,r,i){var o=this;this.videoFactory=e,this.handleDuration=t,this.uploader=n,this.tracker=r,this.defaultDevice=i,this._status="preparing",this.constraints={audio:!0,video:{width:640,height:360,facingMode:"environment"}},this.title="",this.elapsedTime=0,this.followers=[],this.videoEndedHandler=function(e){o.gumVideo&&(o.pause(),o.gumVideo.currentTime=0)},i&&this.setCamera(i.deviceId)}return Object.defineProperty(e.prototype,"permission",{get:function(){return(0,o.session)().hasWorkflow("com.opendigitaleducation.video.controllers.VideoController|capture")?"granted":"denied"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._status},enumerable:!1,configurable:!0}),e.prototype.status=function(e){this.followers.push(e)},e.prototype.updateStatus=function(e,t){this._status=e;try{this.followers.forEach(function(t){"function"==typeof t&&t(e)})}catch(e){}},e.isCompatible=function(){var t;return"function"==typeof(null===(t=navigator.mediaDevices)||void 0===t?void 0:t.getSupportedConstraints)&&navigator.mediaDevices.getSupportedConstraints().deviceId&&!(e.isIncompatibleDevice()||e.isIncompatibleBrowser())||!1},e.isIncompatibleDevice=function(){var e=u.devices.getOSInfo();return!(e&&"iOS"===e.name&&e.version&&e.version>="14.3")&&(u.devices.isIphone()||u.devices.isIpad()||u.devices.isIpod())},e.isIncompatibleBrowser=function(){if(!window.MediaRecorder)return!0;var e=u.devices.getBrowserInfo();return-1===["Firefox","Chrome","Edge","Opera","Safari","CriOS","FxiOS"].findIndex(function(t){return e.name==t})},e.prototype.suspend=function(){return this.stopRecording(!0)},e.prototype.flush=function(){this.stopStreaming(),this.title=""},e.prototype.save=function(){var e=this;this.title||(this.title="video-"+this.generateVideoId()),this.updateStatus("encoding"),this.uploader.upload(this.getBuffer(),this.title,!0,Math.round(this.elapsedTime)).then(function(t){"succeed"===t.state?(e.tracker.generateSaveEvent(e.elapsedTime,t),e.updateStatus("saved"),e.updateStatus("suspended")):"error"===t.state&&(e.updateStatus("suspended"),t.code&&s.notify.error(t.code))}).catch(function(t){e.updateStatus("suspended"),s.notify.error("video.file.error")})},e.prototype.bindPlayEvents=function(){this.gumVideo&&(this.unbindPlayEvents(),this.gumVideo.addEventListener("ended",this.videoEndedHandler,!1))},e.prototype.unbindPlayEvents=function(){this.gumVideo&&this.gumVideo.removeEventListener("ended",this.videoEndedHandler,!1)},e.prototype.unbindRecordEvent=function(){this.gumVideo&&this.gumVideo.removeEventListener("timeupdate",this.handleDuration)},e.prototype.bindRecordEvent=function(){this.gumVideo&&(this.unbindRecordEvent(),this.gumVideo.addEventListener("timeupdate",this.handleDuration))},e.prototype.setCamera=function(e){"environment"===e||"user"===e?(delete this.constraints.video.deviceId,this.constraints.video.facingMode=e):e&&(delete this.constraints.video.facingMode,this.constraints.video.deviceId=e)},e.prototype.switchCamera=function(e){var t,n,r;return this.setCamera(e),this.stream&&("active"===(null===(t=this.mediaRecorder)||void 0===t?void 0:t.state)&&(null===(n=this.mediaRecorder)||void 0===n||n.requestData(),null===(r=this.mediaRecorder)||void 0===r||r.stop()),this.turnOffCamera(),delete this.stream),this.startStreaming()},e.prototype.play=function(){this.gumVideo?(this.preparePlay(),this.gumVideo.play(),this.updateStatus("playing")):console.warn("[VideoRecorder.play] stream not init")},e.prototype.preparePlay=function(){if("paused"!=this._status){this.unbindRecordEvent(),this.bindPlayEvents();var e=this.getBuffer();this.gumVideo&&(this.gumVideo.muted=!1,this.gumVideo.srcObject=null,this.gumVideo.autoplay=!1,this.gumVideo.src=window.URL.createObjectURL(e)),this.updateStatus("paused")}},e.prototype.pause=function(){this.gumVideo?(this.gumVideo.pause(),this.updateStatus("paused")):console.warn("[VideoRecorder.play] stream not init")},e.prototype.prepareRecord=function(){this.stream?"recording"!=this._status&&(this.gumVideo&&(this.gumVideo.muted=!0,this.gumVideo.volume=1,this.gumVideo.autoplay=!0,this.gumVideo.src&&window.URL.revokeObjectURL(this.gumVideo.src),this.gumVideo.srcObject=this.stream,this.gumVideo.controls=!1),this.unbindPlayEvents(),this.bindRecordEvent(),this.updateStatus("recording")):console.warn("[VideoRecorder.prepareRecord] stream not init")},e.prototype.stopStreaming=function(){if(this.gumVideo&&(this.unbindPlayEvents(),this.unbindRecordEvent()),this.stream){try{this.stopRecording(!1)}catch(e){}this.turnOffCamera(),delete this.stream}this.gumVideo&&delete this.gumVideo,this.updateStatus("idle")},e.prototype.startStreaming=function(e){return r(this,void 0,void 0,function(){var t,n,r;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,10]),this.stream?[2]:(this.gumVideo||(this.gumVideo=this.videoFactory()),[4,navigator.mediaDevices.getUserMedia(this.constraints)]);case 1:return n=i.sent(),this.stream=n,this.prepareRecord(),[3,10];case 2:return(t=i.sent())?"NotAllowedError"!=t.name?[3,3]:e?[2,e()]:[3,8]:[3,9];case 3:if("NotReadableError"!=t.name)return[3,8];i.label=4;case 4:return i.trys.push([4,6,,7]),[4,navigator.mediaDevices.getUserMedia({})];case 5:return n=i.sent(),this.gumVideo||(this.gumVideo=this.videoFactory()),this.stream=n,this.prepareRecord(),[3,7];case 6:return r=i.sent(),alert(r),[3,7];case 7:return[2];case 8:alert(t),i.label=9;case 9:return[3,10];case 10:return[2]}})})},e.prototype.generateVideoId=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},e.prototype.resume=function(){var e;this.prepareRecord(),null===(e=this.mediaRecorder)||void 0===e||e.resume()},e.prototype.canStartRecording=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,(0,o.session)().latestQuotaAndUsage];case 1:return[2,(e=t.sent()).quota>e.storage]}})})},e.prototype.findBestSupportedMimeType=function(){return MediaRecorder.isTypeSupported?["video/webm;codecs=vp9",'video/mp4; codecs="avc1.424028, mp4a.40.2"',"video/webm;codecs=vp8,opus","video/webm"].find(function(e){return!!MediaRecorder.isTypeSupported(e)||(console.error("[VideoRecorder.startRecording] ".concat(e," is not Supported")),!1)})||"video/ogg":"video/webm;codecs=vp8,opus"},e.prototype.prepare=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return this.gumVideo||(this.gumVideo=this.videoFactory()),[4,navigator.mediaDevices.getUserMedia(this.constraints)];case 1:return e=t.sent(),this.stream=e,this.stream?("recording"!==this._status&&this.gumVideo&&(this.gumVideo.muted=!0,this.gumVideo.volume=1,this.gumVideo.autoplay=!0,this.gumVideo.src&&window.URL.revokeObjectURL(this.gumVideo.src),this.gumVideo.srcObject=this.stream,this.gumVideo.controls=!1),[2]):(console.warn("[VideoRecorder.prepareRecord] stream not init"),[2])}})})},e.prototype.record=function(){return r(this,void 0,void 0,function(){var e,t,n=this;return i(this,function(r){switch(r.label){case 0:return[4,this.startStreaming()];case 1:if(r.sent(),!this.stream)return[2];e=(0,o.conf)().Platform.idiom,this.title||(this.title=a.L10n.moment().format("YYYY-MM-DD HH[h]mm")+" "+e.translate("recorder.filename.video")),this.prepareRecord(),this.recorded=new Array,t={mimeType:this.findBestSupportedMimeType()};try{this.mediaRecorder=new MediaRecorder(this.stream,t),this.recordMimeType=t.mimeType}catch(e){return console.error("[VideoRecorder.startRecording] Exception while creating MediaRecorder:",e),[2]}return this.mediaRecorder.onstop=function(){},this.mediaRecorder.ondataavailable=function(e){var t;e.data&&e.data.size>0&&(null===(t=n.recorded)||void 0===t||t.push(e.data))},this.mediaRecorder.start(1e3),[2]}})})},e.prototype.stopRecording=function(e){var t,n,r,i=this;return"recording"===(null===(t=this.mediaRecorder)||void 0===t?void 0:t.state)&&(null===(n=this.mediaRecorder)||void 0===n||n.requestData(),null===(r=this.mediaRecorder)||void 0===r||r.stop()),new Promise(function(t){e?setTimeout(function(){i.preparePlay(),t()},0):(i.updateStatus("stopped"),t())})},e.prototype.turnOffCamera=function(){if(this.stream)for(var e=0,t=this.stream.getTracks();e<t.length;e++){var n=t[e];try{n.stop()}catch(e){}}},e.prototype.getBuffer=function(){return new Blob(this.recorded,{type:this.recordMimeType})},e.prototype.clearBuffer=function(e){delete this.recorded,e&&this.prepareRecord()},e}();t.VideoRecorder=c},4943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.session=t.http=t.notif=t.conf=void 0;var r=n(5262);t.conf=function(){return r.ConfigurationFrameworkFactory.instance()},t.notif=function(){return r.NotifyFrameworkFactory.instance()},t.http=function(){return r.TransportFrameworkFactory.instance().http},t.session=function(){return r.SessionFrameworkFactory.instance().session}},2238:function(e,t,n){var r;
|
|
28
|
+
var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}Object.create;function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function l(e){return this instanceof l?(this.v=e,this):new l(e)}function d(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof l?Promise.resolve(n.value.v).then(u,c):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function f(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=s(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}Object.create;function h(e){return"function"==typeof e}function p(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var v=p(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function m(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var g=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=s(o),l=a.next();!l.done;l=a.next()){l.value.remove(this)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var d=this.initialTeardown;if(h(d))try{d()}catch(e){i=e instanceof v?e.errors:[e]}var f=this._teardowns;if(f){this._teardowns=null;try{for(var p=s(f),m=p.next();!m.done;m=p.next()){var g=m.value;try{w(g)}catch(e){i=null!=i?i:[],e instanceof v?i=c(c([],u(i)),u(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{m&&!m.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}}if(i)throw new v(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)w(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&m(t,e)},e.prototype.remove=function(t){var n=this._teardowns;n&&m(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),b=g.EMPTY;function y(e){return e instanceof g||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function w(e){h(e)?e():e.unsubscribe()}var _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},x={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=x.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,c([],u(e)))},clearTimeout:function(e){var t=x.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function k(e){x.setTimeout(function(){var t=_.onUnhandledError;if(!t)throw e;t(e)})}function S(){}var M=D("C",void 0,void 0);function D(e,t,n){return{kind:e,value:t,error:n}}var O=null;function T(e){if(_.useDeprecatedSynchronousErrorHandling){var t=!O;if(t&&(O={errorThrown:!1,error:null}),e(),t){var n=O,r=n.errorThrown,i=n.error;if(O=null,r)throw i}}else e()}var P=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,y(t)&&t.add(n)):n.destination=I,n}return i(t,e),t.create=function(e,t,n){return new C(e,t,n)},t.prototype.next=function(e){this.isStopped?j(function(e){return D("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?j(D("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?j(M,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(g),C=function(e){function t(t,n,r){var i,o=e.call(this)||this;if(h(t))i=t;else if(t){var a;i=t.next,n=t.error,r=t.complete,o&&_.useDeprecatedNextContext?(a=Object.create(t)).unsubscribe=function(){return o.unsubscribe()}:a=t,i=null==i?void 0:i.bind(a),n=null==n?void 0:n.bind(a),r=null==r?void 0:r.bind(a)}return o.destination={next:i?E(i,o):S,error:E(null!=n?n:A,o),complete:r?E(r,o):S},o}return i(t,e),t}(P);function E(e,t){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{e.apply(void 0,c([],u(t)))}catch(e){_.useDeprecatedSynchronousErrorHandling?function(e){_.useDeprecatedSynchronousErrorHandling&&O&&(O.errorThrown=!0,O.error=e)}(e):k(e)}}}function A(e){throw e}function j(e,t){var n=_.onStoppedNotification;n&&x.setTimeout(function(){return n(e,t)})}var I={closed:!0,next:S,error:A,complete:S},N="function"==typeof Symbol&&Symbol.observable||"@@observable";function R(e){return e}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return L(e)}function L(e){return 0===e.length?R:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var F=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof P||function(e){return e&&h(e.next)&&h(e.error)&&h(e.complete)}(r)&&y(r)?e:new C(e,t,n);return T(function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=W(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(e){r(e),null==i||i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[N]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return L(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=W(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function W(e){var t;return null!==(t=null!=e?e:_.Promise)&&void 0!==t?t:Promise}function V(e){return h(null==e?void 0:e.lift)}function U(e){return function(t){if(V(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}var G=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.onFinalize=o,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return i(t,e),t.prototype.unsubscribe=function(){var t,n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}(P);function $(){return U(function(e,t){var n=null;e._refCount++;var r=new G(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),t.unsubscribe()}});e.subscribe(r),r.closed||(n=e.connect())})}var H=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,V(t)&&(r.lift=t.lift),r}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new g;var n=this.getSubject();t.add(this.source.subscribe(new G(n,void 0,function(){e._teardown(),n.complete()},function(t){e._teardown(),n.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=g.EMPTY)}return t},t.prototype.refCount=function(){return $()(this)},t}(F),z={now:function(){return(z.delegate||performance).now()},delegate:void 0},q={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=q.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var i=t(function(t){n=void 0,e(t)});return new g(function(){return null==n?void 0:n(i)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=q.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,c([],u(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=q.delegate;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,c([],u(e)))},delegate:void 0};function B(e){return e?Z(e):X}function Z(e){var t=q.schedule;return new F(function(n){var r=new g,i=e||z,o=i.now(),a=function(s){var u=i.now();n.next({timestamp:e?u:s,elapsed:u-o}),n.closed||r.add(t(a))};return r.add(t(a)),r})}var J,X=Z(),K=p(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Q=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new ee(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new K},t.prototype.next=function(e){var t=this;T(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){var i=t.observers.slice();try{for(var o=s(i),a=o.next();!a.done;a=o.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;T(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;T(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=t.hasError,r=t.isStopped,i=t.observers;return n||r?b:(i.push(e),new g(function(){return m(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new F;return e.source=this,e},t.create=function(e,t){return new ee(e,t)},t}(F),ee=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return i(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:b},t}(Q),te=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Q),ne={now:function(){return(ne.delegate||Date).now()},delegate:void 0},re=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ne);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return i(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var a=n.now(),s=0,u=1;u<r.length&&r[u]<=a;u+=2)s=u;s&&r.splice(0,s+1)}},t}(Q),ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,i=t._value,o=t.thrownError,a=t.isStopped,s=t._isComplete;n?e.error(o):(a||s)&&(r&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(Q),oe=function(e){function t(t,n){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(g),ae={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ae.delegate;return((null==n?void 0:n.setInterval)||setInterval).apply(void 0,c([],u(e)))},clearInterval:function(e){var t=ae.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},se=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return i(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),ae.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;ae.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=!!e&&e||new Error(e)}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,m(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(oe),ue=1,ce={};function le(e){return e in ce&&(delete ce[e],!0)}var de=function(e){var t=ue++;return ce[t]=!0,J||(J=Promise.resolve()),J.then(function(){return le(t)&&e()}),t},fe=function(e){le(e)},he={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=he.delegate;return((null==n?void 0:n.setImmediate)||de).apply(void 0,c([],u(e)))},clearImmediate:function(e){var t=he.delegate;return((null==t?void 0:t.clearImmediate)||fe)(e)},delegate:void 0},pe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=he.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(he.clearImmediate(n),t._scheduled=void 0)},t}(se),ve=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=ne.now,e}(),me=function(e){function t(t,n){void 0===n&&(n=ve.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(ve),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var i=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this._active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(me),be=new ge(pe),ye=be,we=new me(se),_e=we,xe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(se),ke=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(me))(xe),Se=ke,Me=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=q.requestAnimationFrame(function(){return t.flush(void 0)})))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(q.cancelAnimationFrame(n),t._scheduled=void 0)},t}(se),De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var i=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this._active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(me),Oe=new De(Me),Te=Oe,Pe=function(e){function t(t,n){void 0===t&&(t=Ce),void 0===n&&(n=1/0);var r=e.call(this,t,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return i(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(me),Ce=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return i(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}return g.EMPTY},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(se),Ee=new F(function(e){return e.complete()});function Ae(e){return e?function(e){return new F(function(t){return e.schedule(function(){return t.complete()})})}(e):Ee}function je(e,t){return new F(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}var Ie=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Ne(e){return h(null==e?void 0:e.then)}var Re,Ye="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Le(e,t,n,r){void 0===r&&(r=0);var i=t.schedule(function(){try{n.call(this)}catch(t){e.error(t)}},r);return e.add(i),i}function Fe(e,t){return new F(function(n){var r;return n.add(t.schedule(function(){r=e[Ye](),Le(n,t,function(){var e=r.next(),t=e.value;e.done?n.complete():(n.next(t),this.schedule())})})),function(){return h(null==r?void 0:r.return)&&r.return()}})}function We(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(function(n){var r=new g;return r.add(t.schedule(function(){var i=e[Symbol.asyncIterator]();r.add(t.schedule(function(){var e=this;i.next().then(function(t){t.done?n.complete():(n.next(t.value),e.schedule())})}))})),r})}function Ve(e){return h(e[N])}function Ue(e){return h(null==e?void 0:e[Ye])}function Ge(e){return Symbol.asyncIterator&&h(null==e?void 0:e[Symbol.asyncIterator])}function $e(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function He(e){return d(this,arguments,function(){var t,n,r;return a(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,l(t.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,l(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,l(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function ze(e){return h(null==e?void 0:e.getReader)}function qe(e,t){if(null!=e){if(Ve(e))return function(e,t){return new F(function(n){var r=new g;return r.add(t.schedule(function(){var i=e[N]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(Ie(e))return je(e,t);if(Ne(e))return function(e,t){return new F(function(n){return t.schedule(function(){return e.then(function(e){n.add(t.schedule(function(){n.next(e),n.add(t.schedule(function(){return n.complete()}))}))},function(e){n.add(t.schedule(function(){return n.error(e)}))})})})}(e,t);if(Ge(e))return We(e,t);if(Ue(e))return Fe(e,t);if(ze(e))return function(e,t){return We(He(e),t)}(e,t)}throw $e(e)}function Be(e,t){return t?qe(e,t):Ze(e)}function Ze(e){if(e instanceof F)return e;if(null!=e){if(Ve(e))return r=e,new F(function(e){var t=r[N]();if(h(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(Ie(e))return Je(e);if(Ne(e))return n=e,new F(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,k)});if(Ge(e))return Xe(e);if(Ue(e))return t=e,new F(function(e){var n,r;try{for(var i=s(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()});if(ze(e))return Xe(He(e))}var t,n,r;throw $e(e)}function Je(e){return new F(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Xe(e){return new F(function(t){(function(e,t){var n,r,i,s;return o(this,void 0,void 0,function(){var o,u;return a(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=f(e),a.label=1;case 1:return[4,n.next()];case 2:if((r=a.sent()).done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=a.sent(),i={error:u},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function Ke(e,t){return t?je(e,t):Je(e)}function Qe(e){return e&&h(e.schedule)}function et(e){return e[e.length-1]}function tt(e){return h(et(e))?e.pop():void 0}function nt(e){return Qe(et(e))?e.pop():void 0}function rt(e,t){return"number"==typeof et(e)?e.pop():t}function it(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return n?je(e,n):Ke(e)}function ot(e,t){var n=h(e)?e:function(){return e},r=function(e){return e.error(n())};return new F(t?function(e){return t.schedule(r,0,e)}:r)}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(Re||(Re={}));var at=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return st(this,e)},e.prototype.do=function(e,t,n){var r=this,i=r.kind,o=r.value,a=r.error;return"N"===i?null==e?void 0:e(o):"E"===i?null==t?void 0:t(a):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return h(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,r=e.error,i="N"===t?it(n):"E"===t?ot(function(){return r}):"C"===t?Ee:0;if(!i)throw new TypeError("Unexpected notification kind "+t);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function st(e,t){var n,r,i,o=e,a=o.kind,s=o.value,u=o.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(n=t.next)||void 0===n||n.call(t,s):"E"===a?null===(r=t.error)||void 0===r||r.call(t,u):null===(i=t.complete)||void 0===i||i.call(t)}function ut(e){return!!e&&(e instanceof F||h(e.lift)&&h(e.subscribe))}var ct=p(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function lt(e,t){var n="object"==typeof t;return new Promise(function(r,i){var o,a=!1;e.subscribe({next:function(e){o=e,a=!0},error:i,complete:function(){a?r(o):n?r(t.defaultValue):i(new ct)}})})}function dt(e,t){var n="object"==typeof t;return new Promise(function(r,i){var o=new C({next:function(e){r(e),o.unsubscribe()},error:i,complete:function(){n?r(t.defaultValue):i(new ct)}});e.subscribe(o)})}var ft=p(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),ht=p(function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}),pt=p(function(e){return function(t){e(this),this.name="SequenceError",this.message=t}});function vt(e){return e instanceof Date&&!isNaN(e)}var mt=p(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function gt(e,t){var n=vt(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,a=void 0===o?bt:o,s=n.scheduler,u=void 0===s?null!=t?t:we:s,c=n.meta,l=void 0===c?null:c;if(null==r&&null==i)throw new TypeError("No timeout provided.");return U(function(e,t){var n,o,s=null,c=0,d=function(e){o=Le(t,u,function(){n.unsubscribe(),Ze(a({meta:l,lastValue:s,seen:c})).subscribe(t)},e)};n=e.subscribe(new G(t,function(e){null==o||o.unsubscribe(),c++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),d(null!=r?"number"==typeof r?r:+r-u.now():i)})}function bt(e){throw new mt(e)}function yt(e,t){return void 0===t&&(t=0),U(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function wt(e,t){return U(function(n,r){var i=0;n.subscribe(new G(r,function(n){r.next(e.call(t,n,i++))}))})}var _t=Array.isArray;function xt(e){return wt(function(t){return function(e,t){return _t(t)?e.apply(void 0,c([],u(t))):e(t)}(e,t)})}function kt(e,t){return void 0===t&&(t=0),U(function(n,r){n.subscribe(new G(r,function(n){return r.add(e.schedule(function(){return r.next(n)},t))},function(){return r.add(e.schedule(function(){return r.complete()},t))},function(n){return r.add(e.schedule(function(){return r.error(n)},t))}))})}function St(e,t,n,r){if(n){if(!Qe(n))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return St(e,t,r).apply(this,i).pipe(xt(n))};r=n}return r?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return St(e,t).apply(this,n).pipe(yt(r),kt(r))}:function(){for(var n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new ie,a=!0;return new F(function(i){var s=o.subscribe(i);if(a){a=!1;var l=!1,d=!1;t.apply(n,c(c([],u(r)),[function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=t.shift();if(null!=r)return void o.error(r)}o.next(1<t.length?t:t[0]),d=!0,l&&o.complete()}])),d&&o.complete(),l=!0}return s})}}function Mt(e,t,n){return St(!1,e,t,n)}function Dt(e,t,n){return St(!0,e,t,n)}var Ot=Array.isArray,Tt=Object.getPrototypeOf,Pt=Object.prototype,Ct=Object.keys;function Et(e){if(1===e.length){var t=e[0];if(Ot(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&Tt(r)===Pt){var n=Ct(t);return{args:n.map(function(e){return t[e]}),keys:n}}}var r;return{args:e,keys:null}}function At(e,t){return e.reduce(function(e,n,r){return e[n]=t[r],e},{})}function jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=tt(e),i=Et(e),o=i.args,a=i.keys;if(0===o.length)return Be([],n);var s=new F(It(o,n,a?function(e){return At(a,e)}:R));return r?s.pipe(xt(r)):s}function It(e,t,n){return void 0===n&&(n=R),function(r){Nt(t,function(){for(var i=e.length,o=new Array(i),a=i,s=i,u=function(i){Nt(t,function(){var u=Be(e[i],t),c=!1;u.subscribe(new G(r,function(e){o[i]=e,c||(c=!0,s--),s||r.next(n(o.slice()))},function(){--a||r.complete()}))},r)},c=0;c<i;c++)u(c)},r)}}function Nt(e,t,n){e?n.add(e.schedule(t)):t()}function Rt(e,t,n,r,i,o,a,s){var u=[],c=0,l=0,d=!1,f=function(){!d||u.length||c||t.complete()},h=function(e){return c<r?p(e):u.push(e)},p=function(e){o&&t.next(e),c++;var s=!1;Ze(n(e,l++)).subscribe(new G(t,function(e){null==i||i(e),o?h(e):t.next(e)},function(){s=!0},void 0,function(){if(s)try{c--;for(var e=function(){var e=u.shift();a?t.add(a.schedule(function(){return p(e)})):p(e)};u.length&&c<r;)e();f()}catch(e){t.error(e)}}))};return e.subscribe(new G(t,h,function(){d=!0,f()})),function(){null==s||s()}}function Yt(e,t,n){return void 0===n&&(n=1/0),h(t)?Yt(function(n,r){return wt(function(e,i){return t(n,e,r,i)})(Ze(e(n,r)))},n):("number"==typeof t&&(n=t),U(function(t,r){return Rt(t,r,e,n)}))}function Lt(e){return void 0===e&&(e=1/0),Yt(R,e)}function Ft(){return Lt(1)}function Wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ft()(Ke(e,nt(e)))}function Vt(e){return new F(function(t){Ze(e()).subscribe(t)})}var Ut={connector:function(){return new Q},resetOnDisconnect:!0};function Gt(e,t){void 0===t&&(t=Ut);var n=null,r=t.connector,i=t.resetOnDisconnect,o=void 0===i||i,a=r(),s=new F(function(e){return a.subscribe(e)});return s.connect=function(){return n&&!n.closed||(n=Vt(function(){return e}).subscribe(a),o&&n.add(function(){return a=r()})),n},s}function $t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e),r=Et(e),i=r.args,o=r.keys,a=new F(function(e){var t=i.length;if(t)for(var n=new Array(t),r=t,a=t,s=function(t){var s=!1;Ze(i[t]).subscribe(new G(e,function(e){s||(s=!0,a--),n[t]=e},function(){--r&&s||(a||e.next(o?At(o,n):n),e.complete())}))},u=0;u<t;u++)s(u);else e.complete()});return n?a.pipe(xt(n)):a}var Ht=["addListener","removeListener"],zt=["addEventListener","removeEventListener"],qt=["on","off"];function Bt(e,t,n,r){if(h(n)&&(r=n,n=void 0),r)return Bt(e,t,n).pipe(xt(r));var i=u(function(e){return h(e.addEventListener)&&h(e.removeEventListener)}(e)?zt.map(function(r){return function(i){return e[r](t,i,n)}}):function(e){return h(e.addListener)&&h(e.removeListener)}(e)?Ht.map(Zt(e,t)):function(e){return h(e.on)&&h(e.off)}(e)?qt.map(Zt(e,t)):[],2),o=i[0],a=i[1];if(!o&&Ie(e))return Yt(function(e){return Bt(e,t,n)})(Ke(e));if(!o)throw new TypeError("Invalid event target");return new F(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return o(t),function(){return a(t)}})}function Zt(e,t){return function(n){return function(r){return e[n](t,r)}}}function Jt(e,t,n){return n?Jt(e,t).pipe(xt(n)):new F(function(n){var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)},i=e(r);return h(t)?function(){return t(r,i)}:void 0})}function Xt(e,t,n,r,i){var o,s,u,c;function l(){var e;return a(this,function(r){switch(r.label){case 0:e=c,r.label=1;case 1:return t&&!t(e)?[3,4]:[4,u(e)];case 2:r.sent(),r.label=3;case 3:return e=n(e),[3,1];case 4:return[2]}})}return 1===arguments.length?(c=(o=e).initialState,t=o.condition,n=o.iterate,s=o.resultSelector,u=void 0===s?R:s,i=o.scheduler):(c=e,!r||Qe(r)?(u=R,i=r):u=r),Vt(i?function(){return Fe(l(),i)}:l)}function Kt(e,t,n){return Vt(function(){return e()?t:n})}function Qt(e,t,n){void 0===e&&(e=0),void 0===n&&(n=_e);var r=-1;return null!=t&&(Qe(t)?n=t:r=t),new F(function(t){var i=vt(e)?+e-n.now():e;i<0&&(i=0);var o=0;return n.schedule(function(){t.closed||(t.next(o++),0<=r?this.schedule(void 0,r):t.complete())},i)})}function en(e,t){return void 0===e&&(e=0),void 0===t&&(t=we),e<0&&(e=0),Qt(e,e,t)}function tn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=rt(e,1/0),i=e;return i.length?1===i.length?Ze(i[0]):Lt(r)(Ke(i,n)):Ee}var nn=new F(S);function rn(){return nn}var on=Array.isArray;function an(e){return 1===e.length&&on(e[0])?e[0]:e}function sn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=an(e);return U(function(e,t){var r=c([e],u(n)),i=function(){if(!t.closed)if(r.length>0){var e=void 0;try{e=Ze(r.shift())}catch(e){return void i()}var n=new G(t,void 0,S,S);t.add(e.subscribe(n)),n.add(i)}else t.complete()};i()})}(an(e))(Ee)}function un(e,t){return Be(Object.entries(e),t)}function cn(e,t){return function(n,r){return!e.call(t,n,r)}}function ln(e,t){return U(function(n,r){var i=0;n.subscribe(new G(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}function dn(e,t,n){return[ln(t,n)(Ze(e)),ln(cn(t,n))(Ze(e))]}function fn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=an(e)).length?Ze(e[0]):new F(hn(e))}function hn(e){return function(t){for(var n=[],r=function(r){n.push(Ze(e[r]).subscribe(new G(t,function(e){if(n){for(var i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}t.next(e)})))},i=0;n&&!t.closed&&i<e.length;i++)r(i)}}function pn(e,t,n){if(null==t&&(t=e,e=0),t<=0)return Ee;var r=t+e;return new F(n?function(t){var i=e;return n.schedule(function(){i<r?(t.next(i++),this.schedule()):t.complete()})}:function(t){for(var n=e;n<r&&!t.closed;)t.next(n++);t.complete()})}function vn(e,t){return new F(function(n){var r=e(),i=t(r);return(i?Ze(i):Ee).subscribe(n),function(){r&&r.unsubscribe()}})}function mn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e),r=an(e);return r.length?new F(function(e){var t=r.map(function(){return[]}),i=r.map(function(){return!1});e.add(function(){t=i=null});for(var o=function(o){Ze(r[o]).subscribe(new G(e,function(r){if(t[o].push(r),t.every(function(e){return e.length})){var a=t.map(function(e){return e.shift()});e.next(n?n.apply(void 0,c([],u(a))):a),t.some(function(e,t){return!e.length&&i[t]})&&e.complete()}},function(){i[o]=!0,!t[o].length&&e.complete()}))},a=0;!e.closed&&a<r.length;a++)o(a);return function(){t=i=null}}):Ee}function gn(e){return U(function(t,n){var r=!1,i=null,o=null,a=!1,s=function(){if(null==o||o.unsubscribe(),o=null,r){r=!1;var e=i;i=null,n.next(e)}a&&n.complete()},u=function(){o=null,a&&n.complete()};t.subscribe(new G(n,function(t){r=!0,i=t,o||Ze(e(t)).subscribe(o=new G(n,s,u))},function(){a=!0,(!r||!o||o.closed)&&n.complete()}))})}function bn(e,t){return void 0===t&&(t=_e),gn(function(){return Qt(e,t)})}function yn(e){return U(function(t,n){var r=[];return t.subscribe(new G(n,function(e){return r.push(e)},function(){n.next(r),n.complete()})),e.subscribe(new G(n,function(){var e=r;r=[],n.next(e)},S)),function(){r=null}})}function wn(e,t){return void 0===t&&(t=null),t=null!=t?t:e,U(function(n,r){var i=[],o=0;n.subscribe(new G(r,function(n){var a,u,c,l,d=null;o++%t===0&&i.push([]);try{for(var f=s(i),h=f.next();!h.done;h=f.next()){(g=h.value).push(n),e<=g.length&&(d=null!=d?d:[]).push(g)}}catch(e){a={error:e}}finally{try{h&&!h.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}if(d)try{for(var p=s(d),v=p.next();!v.done;v=p.next()){var g=v.value;m(i,g),r.next(g)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(l=p.return)&&l.call(p)}finally{if(c)throw c.error}}},function(){var e,t;try{for(var n=s(i),o=n.next();!o.done;o=n.next()){var a=o.value;r.next(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.complete()},void 0,function(){i=null}))})}function _n(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(t=nt(r))&&void 0!==t?t:we,a=null!==(n=r[0])&&void 0!==n?n:null,u=r[1]||1/0;return U(function(t,n){var r=[],i=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),m(r,e),n.next(t),i&&l()},l=function(){if(r){var t=new g;n.add(t);var i={buffer:[],subs:t};r.push(i),t.add(o.schedule(function(){return c(i)},e))}};null!==a&&a>=0?n.add(o.schedule(function(){l(),!this.closed&&n.add(this.schedule(null,a))},a)):i=!0,l();var d=new G(n,function(e){var t,n,i=r.slice();try{for(var o=s(i),a=o.next();!a.done;a=o.next()){var l=a.value,d=l.buffer;d.push(e),u<=d.length&&c(l)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},function(){for(;null==r?void 0:r.length;)n.next(r.shift().buffer);null==d||d.unsubscribe(),n.complete(),n.unsubscribe()},void 0,function(){return r=null});t.subscribe(d)})}function xn(e,t){return U(function(n,r){var i=[];Ze(e).subscribe(new G(r,function(e){var n=[];i.push(n);var o=new g;o.add(Ze(t(e)).subscribe(new G(r,function(){m(i,n),r.next(n),o.unsubscribe()},S)))},S)),n.subscribe(new G(r,function(e){var t,n;try{for(var r=s(i),o=r.next();!o.done;o=r.next()){o.value.push(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},function(){for(;i.length>0;)r.next(i.shift());r.complete()}))})}function kn(e){return U(function(t,n){var r=null,i=null,o=function(){null==i||i.unsubscribe();var t=r;r=[],t&&n.next(t),Ze(e()).subscribe(i=new G(n,o,S))};o(),t.subscribe(new G(n,function(e){return null==r?void 0:r.push(e)},function(){r&&n.next(r),n.complete()},void 0,function(){return r=i=null}))})}function Sn(e){return U(function(t,n){var r,i=null,o=!1;i=t.subscribe(new G(n,void 0,void 0,function(a){r=Ze(e(a,Sn(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(n)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(n))})}function Mn(e,t,n,r,i){return function(o,a){var s=n,u=t,c=0;o.subscribe(new G(a,function(t){var n=c++;u=s?e(u,t,n):(s=!0,t),r&&a.next(u)},i&&function(){s&&a.next(u),a.complete()}))}}function Dn(e,t){return U(Mn(e,t,arguments.length>=2,!1,!0))}var On=function(e,t){return e.push(t),e};function Tn(){return U(function(e,t){Dn(On,[])(e).subscribe(t)})}function Pn(e,t){return Y(Tn(),Yt(function(t){return e(t)}),t?xt(t):R)}function Cn(e){return Pn(jt,e)}var En=Cn;function An(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e);return n?Y(An.apply(void 0,c([],u(e))),xt(n)):U(function(t,n){It(c([t],u(an(e))))(n)})}function jn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return An.apply(void 0,c([],u(e)))}function In(e,t){return h(t)?Yt(e,t,1):Yt(e,1)}function Nn(e,t){return h(t)?In(function(){return e},t):In(function(){return e})}function Rn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return U(function(t,r){Ft()(Ke(c([t],u(e)),n)).subscribe(r)})}function Yn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rn.apply(void 0,c([],u(e)))}var Ln={connector:function(){return new Q}};function Fn(e,t){void 0===t&&(t=Ln);var n=t.connector;return U(function(t,r){var i,o=n();Be(e((i=o,new F(function(e){return i.subscribe(e)})))).subscribe(r),r.add(t.subscribe(o))})}function Wn(e){return Dn(function(t,n,r){return!e||e(n,r)?t+1:t},0)}function Vn(e){return U(function(t,n){var r=!1,i=null,o=null,a=function(){if(null==o||o.unsubscribe(),o=null,r){r=!1;var e=i;i=null,n.next(e)}};t.subscribe(new G(n,function(t){null==o||o.unsubscribe(),r=!0,i=t,o=new G(n,a,S),Ze(e(t)).subscribe(o)},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function Un(e,t){return void 0===t&&(t=we),U(function(n,r){var i=null,o=null,a=null,s=function(){if(i){i.unsubscribe(),i=null;var e=o;o=null,r.next(e)}};function u(){var n=a+e,o=t.now();if(o<n)return i=this.schedule(void 0,n-o),void r.add(i);s()}n.subscribe(new G(r,function(n){o=n,a=t.now(),i||(i=t.schedule(u,e),r.add(i))},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function Gn(e){return U(function(t,n){var r=!1;t.subscribe(new G(n,function(e){r=!0,n.next(e)},function(){r||n.next(e),n.complete()}))})}function $n(e){return e<=0?function(){return Ee}:U(function(t,n){var r=0;t.subscribe(new G(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function Hn(){return U(function(e,t){e.subscribe(new G(t,S))})}function zn(e){return wt(function(){return e})}function qn(e,t){return t?function(n){return Wt(t.pipe($n(1),Hn()),n.pipe(qn(e)))}:Yt(function(t,n){return e(t,n).pipe($n(1),zn(t))})}function Bn(e,t){void 0===t&&(t=we);var n=Qt(e,t);return qn(function(){return n})}function Zn(){return U(function(e,t){e.subscribe(new G(t,function(e){return st(e,t)}))})}function Jn(e,t){return U(function(n,r){var i=new Set;n.subscribe(new G(r,function(t){var n=e?e(t):t;i.has(n)||(i.add(n),r.next(t))})),null==t||t.subscribe(new G(r,function(){return i.clear()},S))})}function Xn(e,t){return void 0===t&&(t=R),e=null!=e?e:Kn,U(function(n,r){var i,o=!0;n.subscribe(new G(r,function(n){var a=t(n);!o&&e(i,a)||(o=!1,i=a,r.next(n))}))})}function Kn(e,t){return e===t}function Qn(e,t){return Xn(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}function er(e){return void 0===e&&(e=tr),U(function(t,n){var r=!1;t.subscribe(new G(n,function(e){r=!0,n.next(e)},function(){return r?n.complete():n.error(e())}))})}function tr(){return new ct}function nr(e,t){if(e<0)throw new ft;var n=arguments.length>=2;return function(r){return r.pipe(ln(function(t,n){return n===e}),$n(1),n?Gn(t):er(function(){return new ft}))}}function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return Wt(t,it.apply(void 0,c([],u(e))))}}function ir(e,t){return U(function(n,r){var i=0;n.subscribe(new G(r,function(o){e.call(t,o,i++,n)||(r.next(!1),r.complete())},function(){r.next(!0),r.complete()}))})}function or(){return U(function(e,t){var n=!1,r=null;e.subscribe(new G(t,function(e){r||(r=Ze(e).subscribe(new G(t,void 0,function(){r=null,n&&t.complete()})))},function(){n=!0,!r&&t.complete()}))})}var ar=or;function sr(e,t){return t?function(n){return n.pipe(sr(function(n,r){return Ze(e(n,r)).pipe(wt(function(e,i){return t(n,e,r,i)}))}))}:U(function(t,n){var r=0,i=null,o=!1;t.subscribe(new G(n,function(t){i||(i=new G(n,void 0,function(){i=null,o&&n.complete()}),Ze(e(t,r++)).subscribe(i))},function(){o=!0,!i&&n.complete()}))})}function ur(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,U(function(r,i){return Rt(r,i,e,t,void 0,!0,n)})}function cr(e){return U(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}function lr(e,t){return U(dr(e,t,"value"))}function dr(e,t,n){var r="index"===n;return function(n,i){var o=0;n.subscribe(new G(i,function(a){var s=o++;e.call(t,a,s,n)&&(i.next(r?s:a),i.complete())},function(){i.next(r?-1:void 0),i.complete()}))}}function fr(e,t){return U(dr(e,t,"index"))}function hr(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ln(function(t,n){return e(t,n,r)}):R,$n(1),n?Gn(t):er(function(){return new ct}))}}function pr(e,t,n,r){return U(function(i,o){var a;t&&"function"!=typeof t?(n=t.duration,a=t.element,r=t.connector):a=t;var s=new Map,u=function(e){s.forEach(e),e(o)},c=function(e){return u(function(t){return t.error(e)})},l=new vr(o,function(t){try{var i=e(t),u=s.get(i);if(!u){s.set(i,u=r?r():new Q);var d=(h=i,p=u,(v=new F(function(e){l.activeGroups++;var t=p.subscribe(e);return function(){t.unsubscribe(),0===--l.activeGroups&&l.teardownAttempted&&l.unsubscribe()}})).key=h,v);if(o.next(d),n){var f=new G(u,function(){u.complete(),null==f||f.unsubscribe()},void 0,void 0,function(){return s.delete(i)});l.add(Ze(n(d)).subscribe(f))}}u.next(a?a(t):t)}catch(e){c(e)}var h,p,v},function(){return u(function(e){return e.complete()})},c,function(){return s.clear()});i.subscribe(l)})}var vr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeGroups=0,t.teardownAttempted=!1,t}return i(t,e),t.prototype.unsubscribe=function(){this.teardownAttempted=!0,0===this.activeGroups&&e.prototype.unsubscribe.call(this)},t}(G);function mr(){return U(function(e,t){e.subscribe(new G(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}function gr(e){return e<=0?function(){return Ee}:U(function(t,n){var r=[];t.subscribe(new G(n,function(t){r.push(t),e<r.length&&r.shift()},function(){var e,t;try{for(var i=s(r),o=i.next();!o.done;o=i.next()){var a=o.value;n.next(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}n.complete()},void 0,function(){r=null}))})}function br(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ln(function(t,n){return e(t,n,r)}):R,gr(1),n?Gn(t):er(function(){return new ct}))}}function yr(){return U(function(e,t){e.subscribe(new G(t,function(e){t.next(at.createNext(e))},function(){t.next(at.createComplete()),t.complete()},function(e){t.next(at.createError(e)),t.complete()}))})}function wr(e){return Dn(h(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var _r=Yt;function xr(e,t,n){return void 0===n&&(n=1/0),h(t)?Yt(function(){return e},t,n):("number"==typeof t&&(n=t),Yt(function(){return e},n))}function kr(e,t,n){return void 0===n&&(n=1/0),U(function(r,i){var o=t;return Rt(r,i,function(t,n){return e(o,t,n)},n,function(e){o=e},!1,void 0,function(){return o=null})})}function Sr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=rt(e,1/0);return e=an(e),U(function(t,i){Lt(r)(Ke(c([t],u(e)),n)).subscribe(i)})}function Mr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Sr.apply(void 0,c([],u(e)))}function Dr(e){return Dn(h(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}function Or(e,t){var n=h(e)?e:function(){return e};return h(t)?Fn(t,{connector:n}):function(e){return new H(e,n)}}function Tr(){return U(function(e,t){var n,r=!1;e.subscribe(new G(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))})}function Pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return wt(function(t){for(var r=t,i=0;i<n;i++){var o=null==r?void 0:r[e[i]];if(void 0===o)return;r=o}return r})}function Cr(e){return e?function(t){return Fn(e)(t)}:function(e){return Or(new Q)(e)}}function Er(e){return function(t){var n=new te(e);return new H(t,function(){return n})}}function Ar(){return function(e){var t=new ie;return new H(e,function(){return t})}}function jr(e,t,n,r){n&&!h(n)&&(r=n);var i=h(n)?n:void 0;return function(n){return Or(new re(e,t,r),i)(n)}}function Ir(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?U(function(t,n){hn(c([t],u(e)))(n)}):R}function Nr(e){return void 0===e&&(e=1/0),e<=0?function(){return Ee}:U(function(t,n){var r,i=0,o=function(){var a=!1;r=t.subscribe(new G(n,void 0,function(){++i<e?r?(r.unsubscribe(),r=null,o()):a=!0:n.complete()})),a&&(r.unsubscribe(),r=null,o())};o()})}function Rr(e){return U(function(t,n){var r,i,o=!1,a=!1,s=!1,u=function(){return s&&a&&(n.complete(),!0)},c=function(){s=!1,r=t.subscribe(new G(n,void 0,function(){s=!0,!u()&&(i||(i=new Q,e(i).subscribe(new G(n,function(){r?c():o=!0},function(){a=!0,u()}))),i).next()})),o&&(r.unsubscribe(),r=null,o=!1,c())};c()})}function Yr(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,r=void 0===n?1/0:n,i=t.delay,o=t.resetOnSuccess,a=void 0!==o&&o;return r<=0?R:U(function(e,t){var n,o=0,s=function(){var u=!1;n=e.subscribe(new G(t,function(e){a&&(o=0),t.next(e)},void 0,function(e){if(o++<r){var a=function(){n?(n.unsubscribe(),n=null,s()):u=!0};if(null!=i){var c="number"==typeof i?Qt(i):Ze(i(e,o)),l=new G(t,function(){l.unsubscribe(),a()},function(){t.complete()});c.subscribe(l)}else a()}else t.error(e)})),u&&(n.unsubscribe(),n=null,s())};s()})}function Lr(e){return U(function(t,n){var r,i,o=!1,a=function(){r=t.subscribe(new G(n,void 0,void 0,function(t){i||(i=new Q,e(i).subscribe(new G(n,function(){return r?a():o=!0}))),i&&i.next(t)})),o&&(r.unsubscribe(),r=null,o=!1,a())};a()})}function Fr(e){return U(function(t,n){var r=!1,i=null;t.subscribe(new G(n,function(e){r=!0,i=e}));e.subscribe(new G(n,function(){if(r){r=!1;var e=i;i=null,n.next(e)}},S))})}function Wr(e,t){return void 0===t&&(t=we),Fr(en(e,t))}function Vr(e,t){return U(Mn(e,t,arguments.length>=2,!0))}function Ur(e,t){return void 0===t&&(t=function(e,t){return e===t}),U(function(n,r){var i={buffer:[],complete:!1},o={buffer:[],complete:!1},a=function(e){r.next(e),r.complete()},s=function(e,n){var i=new G(r,function(r){var i=n.buffer,o=n.complete;0===i.length?o?a(!1):e.buffer.push(r):!t(r,i.shift())&&a(!1)},function(){e.complete=!0;var t=n.complete,r=n.buffer;t&&a(0===r.length),null==i||i.unsubscribe()});return i};n.subscribe(s(i,o)),e.subscribe(s(o,i))})}function Gr(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new Q}:t,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,a=void 0===o||o,s=e.resetOnRefCountZero,u=void 0===s||s;return function(e){var t=null,r=null,o=null,s=0,c=!1,l=!1,d=function(){null==r||r.unsubscribe(),r=null},f=function(){d(),t=o=null,c=l=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return U(function(e,p){s++,l||c||d();var v=o=null!=o?o:n();p.add(function(){0!==--s||l||c||(r=$r(h,u))}),v.subscribe(p),t||(t=new C({next:function(e){return v.next(e)},error:function(e){l=!0,d(),r=$r(f,i,e),v.error(e)},complete:function(){c=!0,d(),r=$r(f,a),v.complete()}}),Be(e).subscribe(t))})(e)}}function $r(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return!0===t?(e(),null):!1===t?null:t.apply(void 0,c([],u(n))).pipe($n(1)).subscribe(function(){return e()})}function Hr(e,t,n){var r,i,o,a=!1;return e&&"object"==typeof e?(o=null!==(r=e.bufferSize)&&void 0!==r?r:1/0,t=null!==(i=e.windowTime)&&void 0!==i?i:1/0,a=!!e.refCount,n=e.scheduler):o=null!=e?e:1/0,Gr({connector:function(){return new re(o,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function zr(e){return U(function(t,n){var r,i=!1,o=!1,a=0;t.subscribe(new G(n,function(s){o=!0,e&&!e(s,a++,t)||(i&&n.error(new pt("Too many matching values")),i=!0,r=s)},function(){i?(n.next(r),n.complete()):n.error(o?new ht("No matching values"):new ct)}))})}function qr(e){return ln(function(t,n){return e<=n})}function Br(e){return e<=0?R:U(function(t,n){var r=new Array(e),i=0;return t.subscribe(new G(n,function(t){var o=i++;if(o<e)r[o]=t;else{var a=o%e,s=r[a];r[a]=t,n.next(s)}})),function(){r=null}})}function Zr(e){return U(function(t,n){var r=!1,i=new G(n,function(){null==i||i.unsubscribe(),r=!0},S);Ze(e).subscribe(i),t.subscribe(new G(n,function(e){return r&&n.next(e)}))})}function Jr(e){return U(function(t,n){var r=!1,i=0;t.subscribe(new G(n,function(t){return(r||(r=!e(t,i++)))&&n.next(t)}))})}function Xr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return U(function(t,r){(n?Wt(e,t,n):Wt(e,t)).subscribe(r)})}function Kr(e,t){return U(function(n,r){var i=null,o=0,a=!1,s=function(){return a&&!i&&r.complete()};n.subscribe(new G(r,function(n){null==i||i.unsubscribe();var a=0,u=o++;Ze(e(n,u)).subscribe(i=new G(r,function(e){return r.next(t?t(n,e,u,a++):e)},function(){i=null,s()}))},function(){a=!0,s()}))})}function Qr(){return Kr(R)}function ei(e,t){return h(t)?Kr(function(){return e},t):Kr(function(){return e})}function ti(e,t){return U(function(n,r){var i=t;return Kr(function(t,n){return e(i,t,n)},function(e,t){return i=t,t})(n).subscribe(r),function(){i=null}})}function ni(e){return U(function(t,n){Ze(e).subscribe(new G(n,function(){return n.complete()},S)),!n.closed&&t.subscribe(n)})}function ri(e,t){return void 0===t&&(t=!1),U(function(n,r){var i=0;n.subscribe(new G(r,function(n){var o=e(n,i++);(o||t)&&r.next(n),!o&&r.complete()}))})}function ii(e,t,n){var r=h(e)||t||n?{next:e,error:t,complete:n}:e;return r?U(function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var i=!0;e.subscribe(new G(t,function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)},function(){var e;i=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()},function(e){var n;i=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)},function(){var e,t;i&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)}))}):R}var oi={leading:!0,trailing:!1};function ai(e,t){var n=void 0===t?oi:t,r=n.leading,i=n.trailing;return U(function(t,n){var o=!1,a=null,s=null,u=!1,c=function(){null==s||s.unsubscribe(),s=null,i&&(f(),u&&n.complete())},l=function(){s=null,u&&n.complete()},d=function(t){return s=Ze(e(t)).subscribe(new G(n,c,l))},f=function(){if(o){o=!1;var e=a;a=null,n.next(e),!u&&d(e)}};t.subscribe(new G(n,function(e){o=!0,a=e,(!s||s.closed)&&(r?f():d(e))},function(){u=!0,(!(i&&o&&s)||s.closed)&&n.complete()}))})}function si(e,t,n){void 0===t&&(t=we),void 0===n&&(n=oi);var r=Qt(e,t);return ai(function(){return r},n)}function ui(e){return void 0===e&&(e=_e),function(t){return Vt(function(){return t.pipe(Vr(function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}},{current:e.now(),value:void 0,last:void 0}),wt(function(e){var t=e.current,n=e.last,r=e.value;return new ci(r,t-n)}))})}}var ci=function(e,t){this.value=e,this.interval=t};function li(e,t,n){var r,i,o;if(n=null!=n?n:_e,vt(e)?r=e:"number"==typeof e&&(i=e),!t)throw new TypeError("No observable provided to switch to");if(o=function(){return t},null==r&&null==i)throw new TypeError("No timeout provided.");return gt({first:r,each:i,scheduler:n,with:o})}function di(e){return void 0===e&&(e=ne),wt(function(t){return{value:t,timestamp:e.now()}})}function fi(e){return U(function(t,n){var r=new Q;n.next(r.asObservable());var i=function(e){r.error(e),n.error(e)};return t.subscribe(new G(n,function(e){return null==r?void 0:r.next(e)},function(){r.complete(),n.complete()},i)),e.subscribe(new G(n,function(){r.complete(),n.next(r=new Q)},S,i)),function(){null==r||r.unsubscribe(),r=null}})}function hi(e,t){void 0===t&&(t=0);var n=t>0?t:e;return U(function(t,r){var i=[new Q],o=0;r.next(i[0].asObservable()),t.subscribe(new G(r,function(t){var a,u;try{for(var c=s(i),l=c.next();!l.done;l=c.next()){l.value.next(t)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}var d=o-e+1;if(d>=0&&d%n===0&&i.shift().complete(),++o%n===0){var f=new Q;i.push(f),r.next(f.asObservable())}},function(){for(;i.length>0;)i.shift().complete();r.complete()},function(e){for(;i.length>0;)i.shift().error(e);r.error(e)},function(){i=null}))})}function pi(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(t=nt(r))&&void 0!==t?t:we,a=null!==(n=r[0])&&void 0!==n?n:null,s=r[1]||1/0;return U(function(t,n){var r=[],i=!1,u=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),m(r,e),i&&c()},c=function(){if(r){var t=new g;n.add(t);var i=new Q,a={window:i,subs:t,seen:0};r.push(a),n.next(i.asObservable()),t.add(o.schedule(function(){return u(a)},e))}};null!==a&&a>=0?n.add(o.schedule(function(){c(),!this.closed&&n.add(this.schedule(null,a))},a)):i=!0,c();var l=function(e){return r.slice().forEach(e)},d=function(e){l(function(t){var n=t.window;return e(n)}),e(n),n.unsubscribe()};return t.subscribe(new G(n,function(e){l(function(t){t.window.next(e),s<=++t.seen&&u(t)})},function(){return d(function(e){return e.complete()})},function(e){return d(function(t){return t.error(e)})})),function(){r=null}})}function vi(e,t){return U(function(n,r){var i=[],o=function(e){for(;0<i.length;)i.shift().error(e);r.error(e)};Ze(e).subscribe(new G(r,function(e){var n=new Q;i.push(n);var a,s=new g;try{a=Ze(t(e))}catch(e){return void o(e)}r.next(n.asObservable()),s.add(a.subscribe(new G(r,function(){m(i,n),n.complete(),s.unsubscribe()},S,o)))},S)),n.subscribe(new G(r,function(e){var t,n,r=i.slice();try{for(var o=s(r),a=o.next();!a.done;a=o.next()){a.value.next(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},function(){for(;0<i.length;)i.shift().complete();r.complete()},o,function(){for(;0<i.length;)i.shift().unsubscribe()}))})}function mi(e){return U(function(t,n){var r,i,o=function(e){r.error(e),n.error(e)},a=function(){var t;null==i||i.unsubscribe(),null==r||r.complete(),r=new Q,n.next(r.asObservable());try{t=Ze(e())}catch(e){return void o(e)}t.subscribe(i=new G(n,a,a,o))};a(),t.subscribe(new G(n,function(e){return r.next(e)},function(){r.complete(),n.complete()},o,function(){null==i||i.unsubscribe(),r=null}))})}function gi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e);return U(function(t,r){for(var i=e.length,o=new Array(i),a=e.map(function(){return!1}),s=!1,l=function(t){Ze(e[t]).subscribe(new G(r,function(e){o[t]=e,s||a[t]||(a[t]=!0,(s=a.every(R))&&(a=null))},S))},d=0;d<i;d++)l(d);t.subscribe(new G(r,function(e){if(s){var t=c([e],u(o));r.next(n?n.apply(void 0,c([],u(t))):t)}}))})}function bi(e){return Pn(mn,e)}function yi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U(function(t,n){mn.apply(void 0,c([t],u(e))).subscribe(n)})}function wi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yi.apply(void 0,c([],u(e)))}},3030:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(e){this.richContentSvc=e,this.restrict="A",this.scope={bindHtml:"="}}return e.prototype.link=function(e,t,n,r){var i=this;e.$watch("bindHtml",function(n){var r;return i.richContentSvc.apply(null!==(r=n)&&void 0!==r?r:"",t,e)})},e}();function r(e){return new n(e)}t.DirectiveFactory=r,r.$inject=["odeRichContentService"]},1098:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var o=n(9419),a=n(9826),s=n(3148),u=function(){function e(){this.hasRecorded=!1}return e.prototype.guardObjectIsDirty=function(){return this.hasRecorded},e.prototype.guardObjectReset=function(){this.hasRecorded=!1},e}(),c=function(){function e(e,t){var n=this;this.videoUploadService=e,this.videoEventTrackerService=t,this._recorder=this.setRecorder("audio"),this.isAudioCompatible=a.audio_recorder.isCompatible(),this.isVideoCompatible=s.VideoRecorder.isCompatible()&&(0,o.session)().hasWorkflow("com.opendigitaleducation.video.controllers.VideoController|capture"),this.disabledButtons=!0,this.displaySavedMessage=!1,this.selectedRecorder="none",this.recordIsSaved=!1,this.msToTime=function(e){e/=1e3;var t=parseInt(""+e/60),r=parseInt(""+e%60);return t+":"+n.pad2(r)}}return e.prototype.setRecorder=function(e){return this._recorder="audio"===e?a.audio_recorder:new s.VideoRecorder(this.videoFactory,this.videoDurationHandler,this.videoUploadService,this.videoEventTrackerService,this.selectedVid),this._recorder.status(this.recorderStatus),this._recorder},Object.defineProperty(e.prototype,"recorder",{get:function(){return this._recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPermission",{get:function(){return"granted"===this.recorder.permission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIdle",{get:function(){return!this.recorder||"idle"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPreparing",{get:function(){return"preparing"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRecording",{get:function(){return"recording"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSuspended",{get:function(){return"suspended"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPaused",{get:function(){return"paused"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPlaying",{get:function(){return"playing"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStopped",{get:function(){return"stopped"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEncoding",{get:function(){return"encoding"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUploading",{get:function(){return"uploading"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showMenu",{get:function(){return this.isIdle||this.isStopped||!this.hasPermission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showRecorder",{get:function(){return this.hasPermission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showActionButtons",{get:function(){return this.recorder&&this.recorder.elapsedTime>0&&!this.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAudio",{get:function(){return this._recorder===a.audio_recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVideo",{get:function(){return this._recorder!==a.audio_recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"recordMaxTime",{get:function(){return 60*this.videoUploadService.maxDuration*1e3},enumerable:!1,configurable:!0}),e.prototype.switchRecorder=function(e){var t,n;"audio"===e?(this.selectedRecorder="audio",this.setRecorder("audio")):(this.selectedRecorder="video",this.msToTime(0),this.setRecorder("video"),null===(n=null===(t=this.recorder)||void 0===t?void 0:t.prepare)||void 0===n||n.call(t))},e.prototype.switchAudioRecord=function(){var e,t;if(this.setRecorder("audio"),this.isRecording)this.disabledButtons=!1,this.recordIsSaved=!1,null===(e=this.recorder)||void 0===e||e.suspend();else{null===(t=this.recorder)||void 0===t||t.record();var n=document.getElementById("btnAudioRecorder");n&&this.trackEvent(n,{detail:{open:"audio"}})}},e.prototype.switchVideoRecord=function(){var e,t;if(this.isRecording)this.disabledButtons=!1,null===(e=this.recorder)||void 0===e||e.suspend();else{null===(t=this.recorder)||void 0===t||t.record();var n=document.getElementById("btnVideoRecorder");n&&this.trackEvent(n,{detail:{open:"video"}})}this.isPaused&&this.restart()},e.prototype.trackEvent=function(e,t){var n,r;void 0===t.bubbles&&(t.bubbles=!0);var i=null;!t||"audio"!==(null===(n=t.detail)||void 0===n?void 0:n.open)&&"video"!==(null===(r=t.detail)||void 0===r?void 0:r.open)||(i=new CustomEvent("ode-recorder",t)),i&&e&&e.dispatchEvent(i)},e.prototype.pad2=function(e){return(e<10?"0":"")+e},e.prototype.time=function(){return this.recorder?this.msToTime(1e3*this.recorder.elapsedTime):""},e.prototype.switchPlay=function(){this.recorder&&(this.isPlaying?this.recorder.pause():this.recorder.play())},e.prototype.switchVideo=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return[4,(t=this.recorder).switchCamera(e)];case 1:return n.sent(),[4,t.record()];case 2:return n.sent(),[2]}})})},e.prototype.saveRecord=function(){var e;null===(e=this.recorder)||void 0===e||e.save(),this.recordIsSaved=!0},e.prototype.redo=function(){var e,t;null===(e=this.recorder)||void 0===e||e.flush(),null===(t=this.recorder)||void 0===t||t.record()},e.prototype.restart=function(){var e,t=this,n=document.getElementById("recorderWidgetVideoPlayer");null==n||n.removeChild(n.firstElementChild),null===(e=this.recorder)||void 0===e||e.flush(),this.switchRecorder("video"),setTimeout(function(){var e;null===(e=t.recorder)||void 0===e||e.record()},100)},e.prototype.getSaveBtnClass=function(){return this.isEncoding||this.isUploading?"fas fa-spinner fa-spin":"fas fa-save"},e.prototype.getSavedStatus=function(e){return"saved"===e?(this.displaySavedMessage=!0,!0):(this.displaySavedMessage=!1,!1)},e.prototype.clean=function(){var e;this.displaySavedMessage=!1,this.recordIsSaved=!1,this.disabledButtons=!0,null===(e=this.recorder)||void 0===e||e.flush(),this.selectedRecorder="none"},e}();t.Controller=c;var l=function(){function e(e){this.helperSvc=e,this.restrict="EA",this.template=n(41).Z,this.scope={format:"@?",onUpload:"&?"},this.controller=["odeVideoUploadService","odeVideoEventTrackerService",c],this.controllerAs="ctrl",this.require=["odeRecorder"]}return e.prototype.link=function(e,t,n,r){var i=this,a=r?r[0]:null;if(a&&a.recorder){if(e.recordGuard=new u,a.isVideoCompatible){var s=(0,o.conf)().Platform.idiom,c={deviceId:"environment",label:s.translate("video.back.camera"),groupId:"",kind:"videoinput"},l={deviceId:"user",label:s.translate("video.front.camera"),groupId:"",kind:"videoinput"};a.videoUploadService.initialize().then(function(){return navigator.mediaDevices.enumerateDevices()}).then(function(e){return e.filter(function(e){return"videoinput"===e.kind})}).then(function(e){switch(o.deviceType){case"Mobile":case"Tablet":e&&e.length>1?a.videoInputDevices=[c,l]:a.videoInputDevices=[c];break;default:a.videoInputDevices=e}}).catch(function(){console.error("[VideoController.videoInputDevices] An error occured while detecting cameras."),a.videoInputDevices=[c]}).finally(function(){a.videoInputDevices&&(a.selectedVid=a.videoInputDevices[0]),i.helperSvc.safeApply(e)})}a.videoFactory=function(){var e=document.createElement("video");return e.setAttribute("style","max-width:100%"),e.setAttribute("playsinline","true"),e.setAttribute("autoplay",""),e.setAttribute("muted",""),setTimeout(function(){var t;null===(t=document.getElementById("recorderWidgetVideoPlayer"))||void 0===t||t.appendChild(e)},100),e};var d={startedAt:0,endedAt:0};a.videoDurationHandler=function(t){var n;0===d.startedAt&&(d.startedAt=t.timeStamp),a.isRecording&&(d.endedAt=t.timeStamp,a.recorder.elapsedTime=d.endedAt-d.startedAt,a.recorder.elapsedTime>=a.recordMaxTime&&(a.disabledButtons=!1,null===(n=a.recorder)||void 0===n||n.suspend())),i.helperSvc.safeApply(e)},a.recorderStatus=function(t){switch(t){case"recording":d.endedAt=d.startedAt=0,e.recordGuard&&(e.recordGuard.hasRecorded=!0);break;case"saved":e.recordGuard&&e.recordGuard.guardObjectReset(),e.onUpload&&e.onUpload(),a.getSavedStatus(t);case"idle":e.recordGuard&&e.recordGuard.guardObjectReset()}i.helperSvc.safeApply(e)}}},e}();function d(e){return new l(e)}t.DirectiveFactory=d,d.$inject=["odeNgHelperService"]},4262:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.TriggerDirectiveFactory=t.Controller=void 0;var o=n(5262),a=n(9419),s=new o.RxJS.Subject,u=function(){function e(){this.restrict="A",this.scope={connectorLightboxTrigger:"="}}return e.prototype.link=function(e,t,n){t.on("click",function(n){var r={app:e.connectorLightboxTrigger,element:t[0],$mutex:!1,ctrlKey:!!n.ctrlKey,metaKey:!!n.metaKey};return n.preventDefault(),s.next(r),!1}),e.$on("$destroy",function(){t.off("click")})},e}(),c=function(){function e(e){this.xitiSvc=e,this.display={showAuthenticatedConnectorLightbox:!1}}return e.prototype.onClose=function(){this.display.showAuthenticatedConnectorLightbox=!1},e.prototype.onConfirm=function(){var e=this;if(this._currentAppEvent){var t=this._currentAppEvent.app;this.onClose(),this.authenticatedConnectorsAccessed?this.authenticatedConnectorsAccessed.push(t.name):this.authenticatedConnectorsAccessed=[t.name];var n=this._currentAppEvent.ctrlKey||this._currentAppEvent.metaKey?"_blank":t.target?t.target:"_self";"_self"!==n?((0,a.conf)().User.preferences.update("authenticatedConnectorsAccessed",this.authenticatedConnectorsAccessed).save("authenticatedConnectorsAccessed"),this.windowOpen(t.address,n)):r(e,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,(0,a.conf)().User.preferences.update("authenticatedConnectorsAccessed",this.authenticatedConnectorsAccessed).save("authenticatedConnectorsAccessed")];case 1:return e.sent(),this.windowOpen(t.address,n),[2]}})})}},e.prototype.isAuthenticatedConnector=function(e){return!!e.casType||e.scope&&e.scope.length>0&&!!e.scope[0]},e.prototype.isAuthenticatedConnectorFirstAccess=function(e){return!this.authenticatedConnectorsAccessed||this.authenticatedConnectorsAccessed&&!this.authenticatedConnectorsAccessed.includes(e.name)},e.prototype.openAppWithCheck=function(e){if(this._currentAppEvent=e,!e.$mutex){e.$mutex=!0;var t=e.app;if(void 0===t)throw"ConnectorLightbox, Controller.openAppWithCheck failed : target app is undefined";var n=e.ctrlKey||e.metaKey?"_blank":t.target?t.target:"_self";!this.skipCheck&&this.isAuthenticatedConnector(t)&&this.isAuthenticatedConnectorFirstAccess(t)?(this.display.showAuthenticatedConnectorLightbox=!0,this.apply&&this.apply()):this.windowOpen(t.address,n)}},e.prototype.windowOpen=function(e,t){this._currentAppEvent&&this._currentAppEvent.app.isExternal?"_self"==t?this.xitiSvc.trackClick(this._currentAppEvent.app.name,this._currentAppEvent.element).finally(function(){window.open(e,t)}):(this.xitiSvc.trackClick(this._currentAppEvent.app.name,this._currentAppEvent.element).finally(function(){}),window.open(e,t)):window.open(e,t)},e}();t.Controller=c;var l=function(){function e(){this.restrict="E",this.template=n(3146).Z,this.scope={},this.controller=["odeXiti",c],this.controllerAs="ctrl",this.require=["connectorLightbox"]}return e.prototype.link=function(e,t,n,u){return r(this,void 0,void 0,function(){var t,n,r,c,l;return i(this,function(i){switch(i.label){case 0:return(t=u?u[0]:null)?(t.apply=function(){e.$apply()},n=s.subscribe(function(e){t.openAppWithCheck(e)}),e.$on("$destroy",function(){n.unsubscribe()}),r=t,[4,(0,a.conf)().User.preferences.load("authenticatedConnectorsAccessed")]):[2];case 1:r.authenticatedConnectorsAccessed=i.sent(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,(0,a.conf)().Platform.apps.getPublicConf(o.APP.CAS)];case 3:return c=i.sent(),t.skipCheck=!!c.skip,[3,5];case 4:return l=i.sent(),console.warn("Failed to get public conf: ",l),[3,5];case 5:return[2]}})})},e}();t.TriggerDirectiveFactory=function(){return new u},t.DirectiveFactory=function(){return new l}},8961:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(9419),a=function(){function e(){this.restrict="E",this.template=n(2306).Z,this.scope={}}return e.prototype.link=function(e,t,n){return r(this,void 0,void 0,function(){var t,n,r,a,s,u,c,l,d,f,h,p;return i(this,function(i){switch(i.label){case 0:return t=(0,o.conf)().Platform.theme,null===(n=(0,o.session)().currentApp)?[2]:[4,t.getHelpPath()];case 1:return r=i.sent(),c=(0,o.conf)().Platform.idiom,l=$("ode-modal"),e.onHelp=function(){a?p(a):(0,o.http)().get(e.helpPath,{queryParams:{"index.html":(0,o.conf)().Platform.deploymentTag}}).then(function(t){404===(0,o.http)().latestResponse.status?(s=c.translate("help.notfound.title"),u="<p>"+c.translate("help.notfound.text")+"</p>",h(s,u)):p(a=t),e.$apply()})},e.display={},e.helpPath=r+"/application/"+n+"/","."===n&&"/adapter"!==window.location.pathname?e.helpPath=r+"/application/portal/":"/adapter"===window.location.pathname?e.helpPath=r+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")&&(e.helpPath=r+"/application/parametrage-de-la-classe/"),h=function(t,n){l.find(".modal-title").html(t),l.find(".modal-body").html(n),e.display.read=!0,e.$apply("display")},p=function(t){(d=$("<div>"+t+"</div>")).find("> p").prev().insertAfter(d.find("> p")),d.find("img").each(function(t,n){$(n).attr("src",e.helpPath+"../.."+$(n).attr("src"))}),l.find("ode-modal-body > div").html(d.html()),l.find("li a").on("click",function(e){var t;l.find(".section").slideUp(),$("div#"+(null===(t=$(e.target).attr("href"))||void 0===t?void 0:t.split("#")[1])).slideDown()}),l.find("div.paragraph a").on("click",function(e){window.open($(e.target).closest("a").attr("href"),"_newtab")}),l.find("li a").first().click(),l.find("#TOC").wrap('<div id="burger-menu" class="burger-menu"></div>'),(f=l.find("#burger-menu")).prepend('<button id="burger-button" class="burger-button"><i class="burger-icon"></i></button>'),l.find("#burger-button").on("click",function(e){f.toggleClass("active")}),l.find("#TOC > ul li a").on("click",function(e){f.removeClass("active")});var n=function(e){0==l.find("#TOC > ul").find(e.target).length&&0==f.find(e.target).length&&f.removeClass("active")};$("body").on("click",n),e.$on("$destroy",function(){$("body").off("click",n)}),e.display.read=!0,e.$apply("display")},[2]}})})},e}();t.Directive=a,t.DirectiveFactory=function(){return new a}},737:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(9419),a=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,a){return r(this,void 0,void 0,function(){return i(this,function(e){return t.attr("href","/auth/logout?callback="+(0,o.conf)().Platform.theme.logoutCallback),[2]})})},e}();t.Directive=a,t.DirectiveFactory=function(){return new a}},6644:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=n(9419),o=r(n(3336)),a=function(){function e(e,t,n){this.session=e,this.helperSvc=t,this.themeSvc=n,this.currentLanguage="",this.username="",this.avatar="no-avatar.svg",this.messagerieLink="/zimbra/zimbra",this.mysearch="",this.apps=[],this.is1D=!1,this.is2D=!1}return e.prototype.refreshAvatar=function(){this.avatar=(0,i.session)().avatarUrl,this.username=(0,i.session)().description.displayName},e.prototype.openApps=function(e){var t=(0,o.default)(window).width();"number"==typeof t&&t<=700&&e.preventDefault()},e.prototype.launchSearch=function(e,t){var n=this.mysearch;"key"===t&&e.stopPropagation(),"button"!==t&&13!=e.keyCode||(this.trackEvent(e,{detail:{open:"searchengine",from:"search"}}),n=n&&""!==n?n:" ",this.mysearch="",window.location.href="/searchengine#/"+n)},e.prototype.getIconClass=function(e){var t=this.themeSvc.getIconCode(e);return"ic-app-".concat(t," color-app-").concat(t)},e.prototype.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("ode-navbar",t);n&&e.currentTarget&&e.currentTarget.dispatchEvent(n)},e}();t.Controller=a;var s=function(){function e(){this.restrict="E",this.template=n(959).Z,this.scope={title:"@?"},this.bindToController=!0,this.controller=["odeSession","odeNgHelperService","odeThemeHelperService",a],this.controllerAs="ctrl",this.require=["odeNavbar"]}return e.prototype.link=function(e,t,n,r){if(r){var o=r[0],a=(0,i.conf)().Platform;e.lang=a.idiom,e.nbNewMessages=0,e.version=a.deploymentTag,e.me={hasWorkflow:function(e){return(0,i.session)().hasWorkflow(e)}},e.goToMessagerie=function(){console.log(e.messagerieLink),(0,i.http)().get("/userbook/preference/zimbra").then(function(t){var n;try{t.preference&&(JSON.parse(t.preference).modeExpert&&(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|preauth")))?(e.messagerieLink="/zimbra/preauth",window.open(e.messagerieLink)):(e.messagerieLink="/zimbra/zimbra",window.location.href=window.location.origin+e.messagerieLink),console.log(e.messagerieLink)}catch(t){e.messagerieLink="/zimbra/zimbra"}})},e.refreshMails=function(){var t;(null===(t=e.me)||void 0===t?void 0:t.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|view"))?(0,i.http)().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:(new Date).getTime()}}).then(function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")}):(0,i.http)().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:(new Date).getTime()}}).then(function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")})},e.refreshAvatar=function(){o.refreshAvatar()},Promise.all([o.session.getLanguage(),a.theme.onOverrideReady(),o.session.getBookmarks(),a.theme.onFullyReady()]).then(function(t){o.skin=a.theme,o.is1D=a.theme.is1D,o.is2D=a.theme.is2D,o.currentLanguage=t[0];var n=t[1];n.portal&&-1!==n.portal.indexOf("conversation-unread")&&(o.conversationUnreadUrl="/assets/themes/"+a.theme.skin+"/template/portal/conversation-unread.html?hash="+a.deploymentTag),o.refreshAvatar(),e.refreshMails&&e.refreshMails(),o.apps=t[2],e.$apply()})}},e}();t.DirectiveFactory=function(){return new s}},3010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var r=n(5262),i=n(9419),o=function(){function e(e){this.tracking=e,this.restrict="E",this.transclude={infotips:"odeInfotips"},this.scope={app:"@?",name:"@"}}return e.prototype.templateUrl=function(e,t){return t.templateUrl?t.templateUrl:n(925).Z},e.prototype.link=function(e,t,n){var o,a,s=(0,i.conf)().User.preferences;(0,i.notif)().onLangReady().promise.then(function(e){i.L10n.initialize(e)}),e.goToMyAccount=function(){document.location.href="/userbook/mon-compte",s.get(r.USER_PREFS.RGPD_COOKIES).showInfoTip=!1,s.save(r.USER_PREFS.RGPD_COOKIES)},e.me={hasWorkflow:function(e){return(0,i.session)().hasWorkflow(e)}},e.closeBanner=function(){e.showRgpd=!1,s.get(r.USER_PREFS.RGPD_COOKIES).showInfoTip=!1,s.save(r.USER_PREFS.RGPD_COOKIES)},e.app&&this.tracking.trackApp(e.app),(null===(o=e.me)||void 0===o?void 0:o.hasWorkflow("fr.openent.chatbot.controller.ChatbotController|view"))&&$.ajax("/chatbot/public/js/chatbot.js",{dataType:"script"}),(null===(a=e.me)||void 0===a?void 0:a.hasWorkflow("org.entcore.portal.controllers.PortalController|optionalFeatureCantoo"))&&(0,i.http)().get("/optionalFeature/cantoo").then(function(e){var t=document.createElement("script");t.src=e.scriptPath,t.async=!0,document.body.appendChild(t)}),this.addZendeskGuideWedget(e)},e.prototype.addZendeskGuideWedget=function(e){(0,i.http)().get("/zendeskGuide/config?module=timeline").then(function(t){if(t&&t.key){var n=document.createElement("script");n.id="ze-snippet",n.src="https://static.zdassets.com/ekr/snippet.js?key=".concat(t.key),document.body.appendChild(n).onload=function(){var n,r;"es"===(0,i.session)().currentLanguage?window.zE(function(){window.zE.setLocale("es-419")}):window.zE(function(){window.zE.setLocale("fr")}),t.module.default&&window.zE("webWidget","helpCenter:setSuggestions",{labels:[t.module.default]}),window.zE("webWidget","updateSettings",{webWidget:{color:{theme:t.color||"#ffc400"},zIndex:22,launcher:{mobile:{labelVisible:!0}},contactForm:{suppress:!(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))},helpCenter:{messageButton:{"*":"Assistance ENT","es-419":"Asistencia ENT"},originalArticleButton:null===(r=t.articleRedirectButton)||void 0===r||r}}}),window.addEventListener("scroll",function(){window.zE("webWidget","updateSettings",{webWidget:{launcher:{mobile:{labelVisible:window.scrollY<=5}}}})}),window.zE("webWidget:on","open",function(){var t;(null===(t=e.me)||void 0===t?void 0:t.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))&&window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!1}}})}),window.zE("webWidget:on","userEvent",function(t){var n,r=t.category,i=t.action,o=t.properties;"Contact Form Shown"===i&&"Zendesk Web Widget"===r&&o&&"contact-form"===o.name&&(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))&&(window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!0}}}),window.zE("webWidget","close"),window.open("/support","_blank"))})}}})},e}();function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["odeTracking"]},8945:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(9419),a=function(){function e(){this.restrict="E",this.templateUrl=n(6722).Z}return e.prototype.link=function(e,t,n,a){var s=this,u=(0,o.conf)().Platform.theme,c=(0,o.session)().user;e.closeBanner=function(){e.setCookie("test",30),e.showBanner=!1},e.getCookie=function(){for(var e="smartBanner=",t=decodeURIComponent(document.cookie).split(";"),n=0;n<t.length;n++){for(var r=t[n];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(e))return r.substring(12,r.length)}return null},e.setCookie=function(e,t){var n=new Date;n.setTime(n.getTime()+24*t*60*60*1e3);var r="expires="+n.toUTCString();document.cookie="smartBanner="+e+";"+r},e.showBanner=!1,e.init=function(){return r(s,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,o.http)().get("/conf/smartBanner").then(function(e){return 200==(0,o.http)().latestResponse.status&&null!==e?e:null})];case 1:if(null!=(t=r.sent())){if(e.banner=t,-1!=(e.banner["excludeUserTypes-".concat(u.skin)]||[]).indexOf(c.type))return[2];e.showBanner=null==e.getCookie(),n=(0,o.conf)().Platform.idiom,e.icon=n.translate("smartbanner.icon.uri"),e.showBanner&&(/Android/i.test(navigator.userAgent)?(e.store=n.translate("smartbanner.android.store"),e.appRef=n.translate("smartbanner.android.uri")):/iPhone|iPad|iPod/i.test(navigator.userAgent)?(e.store=n.translate("smartbanner.ios.store"),e.appRef=n.translate("smartbanner.ios.uri")):e.showBanner=!1)}return[3,3];case 2:return r.sent(),[3,3];case 3:return[2]}})})},e.init()},e}();t.DirectiveFactory=function(){return new a}},4452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(e){this.xitiSvc=e,this.restrict="E",this.scope=!1}return e.prototype.link=function(e,t,n){this.xitiSvc.runScript()},e}();function r(e){return new n(e)}t.DirectiveFactory=r,r.$inject=["odeXiti"]},5012:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var n=function(){function e(e){this.helperSvc=e,this.restrict="A"}return e.prototype.link=function(e,t,n,r){var i=this;n.$observe("skinSrc",function(){t.attr("src",i.helperSvc.toSkinUrl(n.skinSrc))})},e}();function r(e){return new n(e)}t.Directive=n,t.DirectiveFactory=r,r.$inject=["odeThemeHelperService"]},5103:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(5262),a=function(){function e(e){this.helperSvc=e,this.restrict="EA"}return e.prototype.link=function(e,t,n,a){return r(this,void 0,void 0,function(){var e,n,r,a,s,u,c,l;return i(this,function(i){switch(i.label){case 0:return[4,(e=o.ConfigurationFrameworkFactory.instance().Platform.theme).getConf()];case 1:return n=i.sent(),[4,e.onSkinReady()];case 2:for(i.sent(),r=e.themeName,a=e.skinName,s=e.themeUrl,u=0,c=n.overriding;u<c.length;u++)if((l=c[u]).child===r&&l.bootstrapVersion){s="".concat(this.helperSvc.CDN,"/assets/themes/").concat(l.bootstrapVersion,"/skins/").concat(a,"/"),t.addClass(l.bootstrapVersion),this.helperSvc.loadThemeJs(l.bootstrapVersion);break}return this.helperSvc.applyStyle(s),[2]}})})},e}();function s(e){return new a(e)}t.Directive=a,t.DirectiveFactory=s,s.$inject=["odeThemeHelperService"]},6507:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,r){},e}();t.DirectiveFactory=function(){return new n}},8190:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=function(e){this.$timeout=e};t.Controller=r;var i=function(){function e(e){this.$compile=e,this.restrict="E",this.template=n(4809).Z,this.replace=!0,this.scope={options:"&",ngModel:"=",ngChange:"&",search:"=?"},this.bindToController=!0,this.controller=["$timeout",r],this.controllerAs="ctrl",this.require=["autocomplete"]}return e.prototype.link=function(e,t,n,r){r&&r[0];n.autocomplete},e}();function o(e){return new i(e)}t.DirectiveFactory=o,o.$inject=["$compile"]},9269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18nBase=void 0;var r=n(5262),i=function(){function e(e){this.$compile=e}return Object.defineProperty(e.prototype,"idiom",{get:function(){return r.ConfigurationFrameworkFactory.instance().Platform.idiom},enumerable:!1,configurable:!0}),e}();t.I18nBase=i},9806:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nPlaceholder",function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nPlaceholder)+"</span>")(e);setTimeout(function(){t.attr("placeholder",o.text())},10)})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},848:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nTitle",function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nTitle)+"</span>")(e);setTimeout(function(){t.attr("title",o.text())},10)})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},4048:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nValue",function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nValue)+"</span>")(e);setTimeout(function(){t.attr("value",o.text())},10)})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},1586:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.restrict="E",t}return i(t,e),t.prototype.link=function(e,t,n,r){var i=t.text().trim(),o=this.idiom.translate(i);t.html(this.$compile('<span class="no-style">'+o+"</span>")(e).html())},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},7329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterFactory=void 0;var r=n(9419),i=function(e,t){return(0,r.conf)().Platform.idiom.translate(e,t)};t.FilterFactory=function(){return i}},7484:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.restrict="A",t.replace=!0,t}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("content",function(r){n.content&&t.html(i.$compile('<span class="no-style">'+i.idiom.translate(n.content)+"</span>")(e).html())}),n.$observe("attr",function(r){if(n.attr){var o=i.$compile("<span>"+i.idiom.translate(n[n.attr])+"</span>")(e);setTimeout(function(){t.attr(n.attr,o.text())},10)}}),n.$observe("attrs",function(r){if(n.attrs){var o=e.$eval(n.attrs),a=function(){var n=i.$compile("<span>"+i.idiom.translate(o[s])+"</span>")(e);setTimeout(function(){t.attr(s,n.text())},0)};for(var s in o)a()}}),n.$observe("key",function(r){n.key&&t.html(i.$compile('<span class="no-style">'+i.idiom.translate(n.key)+"</span>")(e).html())})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},1411:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var a=o(n(4202)),s=n(9419),u=function(){function e(){this.restrict="E",this.template=n(9018).Z,this.scope={header:"@?",since:"@?",userprefsKey:"@?",userprefsField:"@",onChange:"&?",saveOnChange:"=?",showOnce:"=?",show:"=?"},this.transclude=!0}return e.prototype.link=function(e,t,n,o){return r(this,void 0,void 0,function(){var n,r,o;return i(this,function(i){switch(i.label){case 0:return n="infotip",a.default.isString(e.userprefsKey)&&e.userprefsKey.trim().length>0&&(n=e.userprefsKey.trim()),r=function(n){var r=null!=n?n:e.visible();e.onChange&&e.onChange({$visible:r}),r?t.find(".toast").addClass("show"):t.find(".toast").removeClass("show")},[4,(o=(0,s.conf)().User.preferences).load(n)];case 1:return i.sent(),e.visible=function(t){if(arguments.length<=0)return!1!==o.get(n)[e.userprefsField];o.get(n)[e.userprefsField]=t,r(t),e.saveOnChange&&o.save(n)},e.$watch("show",function(t){void 0!==t&&e.visible(t)}),r(),e.showOnce&&(o.get(n)[e.userprefsField]=!1,o.save(n)),[2]}})})},e}();t.DirectiveFactory=function(){return new u}},1504:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var a=o(n(3336)),s=(function(){function e(e){this.all=e}e.prototype.stayOpen=function(){return r(this,void 0,void 0,function(){var e,t,n;return i(this,function(r){switch(r.label){case 0:e=0,t=this.all,r.label=1;case 1:return e<t.length?(n=t[e])?[4,n.stayOpen()]:[3,3]:[3,4];case 2:if(r.sent())return[2,!0];r.label=3;case 3:return e++,[3,1];case 4:return[2,!1]}})})}}(),function(){function e(){this.restrict="E",this.template=n(9068).Z,this.transclude=!0,this.scope={show:"=",tiny:"=",onShow:"&?",onClose:"&",delegate:"=",delegateClose:"&?"}}return e.prototype.link=function(e,t,n,o){var s=e.delegate;t.children(".lightbox").find("> .background").on("click",function(o){return r(this,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:return 0!==t.children(".lightbox").find("image-editor, share-panel, .import-files, .split-screen, [template=entcore\\/image-editor\\/main]").length?[3,3]:s?[4,s.stayOpen()]:[3,2];case 1:if(!0===r.sent())return[2];r.label=2;case 2:if(n.delegateClose&&!0===e.delegateClose({$element:t}))return[2];t.children(".lightbox").first().fadeOut(),(0,a.default)("body").css({overflow:"auto"}),(0,a.default)("body").removeClass("lightbox-opened"),e.$eval(e.onClose),e.$apply(),e.show=!1,e.$$phase||e.$parent.$apply(),r.label=3;case 3:return[2]}})})}),t.children(".lightbox").find("> .content > .close-lightbox > i.close-2x").on("click",function(o){return r(this,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:return 0!==t.children(".lightbox").find("share-panel").length?[3,3]:s?[4,s.stayOpen()]:[3,2];case 1:if(!0===r.sent())return[2];r.label=2;case 2:if(n.delegateClose&&!0===e.delegateClose({$element:t}))return[2];t.children(".lightbox").first().fadeOut(),(0,a.default)("body").css({overflow:"auto"}),(0,a.default)("body").removeClass("lightbox-opened"),e.$eval(e.onClose),e.$apply(),e.show=!1,e.$$phase||e.$parent.$apply(),r.label=3;case 3:return[2]}})})}),t.children(".lightbox").on("mousedown",function(e){e.stopPropagation()}),e.$watch("show",function(r){if(r){n.onShow&&e.onShow({$element:t}),t.trigger("lightboxvisible");var i=t.children(".lightbox"),o=t.parents();e.backup={overflow:o.filter(function(e,t){return"visible"!==(0,a.default)(t).css("overflow-x")||"visible"!==(0,a.default)(t).css("overflow-y")}),zIndex:o.map(function(e,t){var n,r="";return-1!==(null===(n=(0,a.default)(t).attr("style"))||void 0===n?void 0:n.indexOf("z-index"))&&(r=(0,a.default)(t).css("z-index")),{element:(0,a.default)(t),index:r}})},e.backup.overflow.forEach(function(e){(0,a.default)(e).css({overflow:"visible"})}),e.backup.zIndex.forEach(function(e){e.element.css("z-index",99999)}),setTimeout(function(){0===t.parents("header.main").length&&(0,a.default)("body").addClass("lightbox-opened"),i.fadeIn()},100),(0,a.default)("body").css({overflow:"hidden"})}else{var s=!0;(0,a.default)("lightbox .lightbox").each(function(e,n){n!==t.children(".lightbox")[0]&&"block"===(0,a.default)(n).css("display")&&(s=!1)}),s&&((0,a.default)("body").removeClass("lightbox-opened"),(0,a.default)("body").css({overflow:"auto"})),e.backup&&(e.backup.overflow.forEach(function(e){(0,a.default)(e).css("overflow","")}),e.backup.zIndex.forEach(function(e){e.element.css("z-index",e.index)})),t.children(".lightbox").fadeOut()}}),e.$on("$destroy",function(){t.parents("lightbox").length||((0,a.default)("body").removeClass("lightbox-opened"),(0,a.default)("body").css({overflow:"auto"}),e.backup&&(e.backup.overflow.forEach(function(e){(0,a.default)(e).css("overflow","")}),e.backup.zIndex.forEach(function(e){e.element.css("z-index",e.index)})))})},e}());t.DirectiveFactory=function(){return new s}},8151:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var n=function(){this.name="default"};t.Controller=n;var r=function(){function e(){this.restrict="A",this.controller=[n],this.require=["odeModalContainer"]}return e.prototype.link=function(e,t,n,r){if(r){var i=r[0];"string"==typeof n.odeModalContainer&&n.odeModalContainer.trim().length>0&&(i.name=n.odeModalContainer),i.attach=function(e){t&&e&&t.append(e)}}},e}();t.DirectiveFactory=function(){return new r}},5248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=n(9294),i=function(){function e(){this.size="md",this.container="default",this.id=null}return e.prototype.getStyle=function(){return{display:this.visible?"block":"none","background-color":"transparent"}},e.prototype.getSizeClass=function(){switch(this.size){case"sm":return"modal-sm";case"lg":return"modal-lg";case"xl":return"modal-xl";default:return""}},e}();t.Controller=i;var o=function(){function e(){this.restrict="E",this.template=n(7597).Z,this.scope={id:"@",size:"@?",container:"=?",visible:"=?",onClose:"&?"},this.bindToController=!0,this.transclude={title:"?odeModalTitle",body:"odeModalBody",footer:"?odeModalFooter"},this.controller=[i],this.controllerAs="ctrl",this.require=["odeModal","?^^odeModalContainer"]}return e.prototype.link=function(e,t,n,i){if(i){var o=i[0],a=i[1];a&&a.attach&&a.name===o.container&&a.attach(t),void 0!==n.id&&0!==n.id.length||(o.id=r.L10n.moment(new Date).format("YYMMDDHHMMssSSS")+(1e3*Math.random()).toFixed(0))}},e}();t.DirectiveFactory=function(){return new o}},4358:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){var i=new o.ObjectGuard(function(){return e.$eval(n.customGuard)});return e.$watch(function(){return e.$eval(n.customGuard)},function(){i.reset()}),i},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},6197:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard(function(){return r.$dirty},function(){return!1})},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},2235:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard(function(){return"object"==typeof r.$modelValue&&r.$modelValue.id||""},function(){return"object"==typeof r.$modelValue&&r.$modelValue.id||""},function(e,t){return e&&t?e._id==t._id:!e&&!t})},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},8900:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericGuardDirective=void 0;var r=n(3848),i=function(){function e(){this.require=["?ngModel","?^^guardRoot"],this.restrict="A"}return e.prototype.link=function(e,t,n,i){var o=i?i[0]:null,a=i?i[0]:null,s=this.guardFactory(e,t,n,o),u=0;if(null!=s)if(null!=o?o.$formatters.push(function(e){return 0==u&&(setTimeout(function(){return s.reset()}),u++),e}):setTimeout(function(){return s.reset()}),null!=a)a.registerGuard(s),e.$on("$destroy",function(){a.unregisterGuard(s)});else{var c=r.navigationGuardService.registerIndependantGuard(s);e.$on("$destroy",function(){r.navigationGuardService.unregisterIndependantGuard(c)})}},e}();t.GenericGuardDirective=i},5509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=n(3848),i=function(){function e(){this.rootID=""}return e.prototype.registerGuard=function(e){r.navigationGuardService.registerGuard(this.rootID,e)},e.prototype.unregisterGuard=function(e){r.navigationGuardService.unregisterGuard(this.rootID,e)},e.prototype.reset=function(){r.navigationGuardService.reset(this.rootID)},e}();t.Controller=i;var o=function(){function e(){this.restrict="A",this.scope={guardRoot:"@?"},this.controller=[i],this.require=["guardRoot"]}return e.prototype.link=function(e,t,n,i){var o,a=i?i[0]:null;if(a){a.rootID=null!==(o=e.guardRoot)&&void 0!==o?o:r.navigationGuardService.generateID();var s=r.AngularJSRouteChangeListener.getInstance(e.$root);r.navigationGuardService.registerListener(s),r.navigationGuardService.registerListener(r.DOMRouteChangeListener.getInstance()),e.$on("$destroy",function(){r.navigationGuardService.unregisterListener(s),r.navigationGuardService.unregisterListener(r.DOMRouteChangeListener.getInstance()),r.navigationGuardService.unregisterRoot(a.rootID)})}},e}();t.DirectiveFactory=function(){return new o}},1367:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard(function(){return r.$viewValue||""},function(){return r.$viewValue||""})},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},9071:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=n(3848),a=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,r){var a=e.$eval(n.navigationTriggerParam||"{onEvent:'click'}");a.rootGuardId=a.rootGuardId||"*";var s=new o.ManualChangeListener;o.navigationGuardService.registerListener(s);var u=[],c=function(t){t&&t.preventDefault(),s.onChange.next({checkGuardId:a.rootGuardId,confirmMessageKey:a.guardMessageKey,accept:function(){e.$eval(n.navigationTrigger)},reject:function(){}})},l=function(e,t,n){e.on(t,n),u.push(function(){return e.off(t,n)})};i.default.isString(a.onEvent)?l(t,a.onEvent,c):i.default.isArray(a.onEvent)&&a.onEvent.forEach(function(e,n,r){i.default.isString(e)&&r.lastIndexOf(e)===n&&l(t,e,c)}),e.$on("$destroy",function(){!function(){for(var e=0,t=u;e<t.length;e++)(0,t[e])();u=[]}(),o.navigationGuardService.unregisterListener(s)})},e}();t.DirectiveFactory=function(){return new a}},9948:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(){function e(){this.require="?^guardRoot",this.restrict="A"}return e.prototype.link=function(e,t,n,a){var s=this,u=a?a[0]:null;if(u){var c=n.resetGuardId,l=function(){return r(s,void 0,void 0,function(){var t;return i(this,function(r){switch(r.label){case 0:return(t=e.$eval(n.resetGuard))instanceof Promise?[4,t]:[3,2];case 1:return r.sent(),[3,3];case 2:console.warn("[resetGuard] result is not instance of Promise"),r.label=3;case 3:return null!=c&&""!=c?o.navigationGuardService.reset(c):null!=u?u.reset():(console.warn("[resetGuard] A reset directive has no root, resetting all guards..."),o.navigationGuardService.resetAll()),[2]}})})},d=function(){var e=n.resetGuardEvent;if("string"!=typeof e||!e.trim()){var r=(t.prop("tagName")||"").toLowerCase();e="form"==r?"submit":"click"}return t.on(e,l),function(){return t.off(e,l)}}();e.$on("$destroy",function(){d()})}},e}();t.DirectiveFactory=function(){return new a}},1682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(){this.require="^popover",this.restrict="E"}return e.prototype.link=function(e,t,n,r){t.addClass("d-none")},e}();t.DirectiveFactory=function(){return new n}},8700:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=function(){function e(){this.require="^popover"}return e.prototype.link=function(e,t,n,r){var o=function(e){e=e.toUpperCase();var n=t[0];do{n=n.parentNode}while(n&&n.nodeName.toUpperCase()!==e);return n?i.default.element(n):t}("popover"),a=o.attr("mouse-event")||"mouseover",s=o.find("popover-content");o.on(a,function(e){"click"===a&&(s.hasClass("d-none")&&e.stopPropagation(),i.default.element(document.querySelector("body")).one("click",function(e){o.triggerHandler("close"),s.addClass("d-none")}));var t=s.offset(),n=s.width()||0,r=$(window).width()||0,u=s.height()||0,c=$(window).width()||0;t&&(t.left+n>r&&s.addClass("right"),t.left<0&&s.addClass("left"),t.top+u>c&&s.addClass("bottom")),s.removeClass("d-none")}),"mouseover"===a&&o.on("mouseout",function(e){o.triggerHandler("close"),s.addClass("d-none")})},e}();t.DirectiveFactory=function(){return new o}},8245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.PulsarController=void 0;var n=function(){};t.PulsarController=n;var r=function(){function e(){this.controller=[n],this.restrict="E"}return e.prototype.link=function(e,t,n,r){t.on("close",function(){n.onClose&&e.$eval(n.onClose)})},e}();t.DirectiveFactory=function(){return new r}},3868:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=r(n(3336)),o=function(){function e(e){this.quickstart=e,this.show={assistant:!1},this.hidePulsars=function(){(0,i.default)(".pulsar-button").addClass("hidden")}}return e.prototype.clearTimeout=function(){this.token&&clearTimeout(this.token)},e.prototype.goTo=function(e){this.quickstart.goTo(e.index),this.currentStep=this.quickstart.assistantIndex},e.prototype.next=function(){this.quickstart.nextAssistantStep(),this.currentStep=this.quickstart.assistantIndex,this.quickstart.assistantIndex||(this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout())},e.prototype.previous=function(){this.quickstart.previousAssistantStep(),this.currentStep=this.quickstart.assistantIndex},e.prototype.seeLater=function(){this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout(),this.quickstart.seeAssistantLater()},e.prototype.closeAssistant=function(){this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout(),this.quickstart.state.assistant=-1,this.quickstart.save()},e}();t.Controller=o;var a=function(){function e(e){this.helperSvc=e,this.restrict="E",this.templateUrl=n(5230).Z,this.scope=!0,this.bindToController=!0,this.controller=["odeQuickstartService",o],this.controllerAs="ctrl",this.require=["assistant"]}return e.prototype.link=function(e,t,n,r){var i=r?r[0]:null;!i||this.helperSvc.viewport<=this.helperSvc.FAT_MOBILE||i.quickstart.load(function(){if(i){if(-1===i.quickstart.state.assistant||0===i.quickstart.mySteps.length)return;i.hidePulsars(),i.show.assistant=!0,i.currentStep=i.quickstart.assistantIndex,i.steps=i.quickstart.mySteps,e.$apply()}})},e}();function s(e){return new a(e)}t.DirectiveFactory=s,s.$inject=["odeNgHelperService"]},7424:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=n(9419),a=r(n(3336)),s=function(){function e(e,t,n){this.$compile=e,this.helperSvc=t,this.quickstartSvc=n,this.restrict="A",this.scope=!0}return e.prototype.link=function(e,t,r,s){var u=this,c=(0,o.conf)().Platform.idiom;if(t&&(e.me={hasWorkflow:(0,o.session)().hasWorkflow},!(this.helperSvc.viewport<=this.helperSvc.TABLET)&&e.me.hasWorkflow("org.entcore.portal.controllers.PortalController|quickstart"))){var l=e.$eval(r.pulsar);if(!l.workflow||e.me.hasWorkflow(l.workflow)){e.pulsarInfos=l,e.pulsarInfos.steps=[];var d=(0,a.default)("[pulsar]");d.each(function(t,n){var r=i.default.element(n).scope().$eval((0,a.default)(n).attr("pulsar"));r.el=n,e.pulsarInfos.steps.push(r)}),"object"==typeof l&&void 0!==l.index||console.error("Invalid pulsar object. Should look like pulsar=\"{ index: 0, i18n: 'my.key', position: 'top bottom'}\"");var f=null,h=null,p=30,v=10,m=function(){l.position||(l.position="center center");var r="center";-1!==l.position.indexOf("left")&&(r="left"),-1!==l.position.indexOf("right")&&(r="right");var s="center";-1!==l.position.indexOf("top")&&(s="top"),-1!==l.position.indexOf("bottom")&&(s="bottom"),document.querySelector("style#pulsar-css")||(0,a.default)(n(9325).Z).appendTo("body"),f=(0,a.default)('\n\t\t\t\t<div class="pulsar-button">\n\t\t\t\t\t<div class="pulse-spot"></div>\n\t\t\t\t</div>\n\t\t\t').appendTo("body"),l.className&&l.className.split(" ").forEach(function(e){null==f||f.addClass(e)}),f.data("active",!0);var m=!0,g=function(){var e,n,i,o,u,d,b,y,w,_,x,k,S,M,D=0,O=0;"string"==typeof l.delta&&(l.delta=c.translate(l.delta),D=parseInt(l.delta.split(" ")[0]),O=parseInt(l.delta.split(" ")[1]));var T=null!==(e=t.offset())&&void 0!==e?e:{left:0,top:0},P=null!==(n=t.width())&&void 0!==n?n:0,C=null!==(i=t.height())&&void 0!==i?i:0,E={left:T.left-35,right:T.left+P+5,center:T.left+P/2-15},A={top:T.top,bottom:T.top+C+5,center:T.top+C/2-15};if("top center"===l.position&&(A.top=T.top-p-5),"none"!==(null==f?void 0:f.css("display"))&&(null==f||f.offset({left:E[r]+D,top:A[s]+O}),l.style&&"number"==typeof l.style.zIndex&&(null==f||f.css("z-index",l.style.zIndex))),h&&h.find(".arrow").length){var j=E[r]-(null!==(o=h.children(".content").width())&&void 0!==o?o:0)-15,I=A[s]-v;"top"===s&&"center"===r&&(I=A[s]-(null!==(u=h.children(".content").height())&&void 0!==u?u:0)-15),"center"===s&&(I=A[s]-(null!==(d=h.children(".content").height())&&void 0!==d?d:0)/2),"center"===r&&(j=E[r]-(null!==(b=h.children(".content").width())&&void 0!==b?b:0)/2-2),"center"===s&&"center"===r&&(h.addClass("middle"),s="bottom"),"right"===r&&(j=E[r]+v+10),"bottom"===s&&(I="center"===r?A[s]+v+10:A[s]-15);var N=null!==(y=(0,a.default)(window).width())&&void 0!==y?y:0,R=null!==(w=(0,a.default)(window).height())&&void 0!==w?w:0,Y=15,L=I,F=j,W=F+(null!==(_=h.width())&&void 0!==_?_:0)+Y,V=L+(null!==(x=h.height())&&void 0!==x?x:0)+Y,U=N-((null!==(k=h.width())&&void 0!==k?k:0)+Y),G=R-((null!==(S=h.height())&&void 0!==S?S:0)+Y),$=F-U,H=Y-F,z=L-G,q=Y-L,B=h.find(".arrow"),Z=B.position().left,J=B.position().top;W>N&&(j=N-((null!==(M=h.width())&&void 0!==M?M:0)+Y),"center"===r&&m&&(B.css({left:Z+$,right:"auto"}),m=!1)),j<=Y&&(j=Y,"center"===r&&m&&(B.css({left:H+v,right:"auto"}),m=!1)),V>R&&(I=G,"bottom"===s&&m&&(B.css({top:z+5,bottom:"auto"}),m=!1)),I<Y&&(I=Y,"center"===s&&"center"!==r&&m&&(B.css({top:J-q,bottom:"auto"}),m=!1)),h.offset({left:j+D,top:I+O})}setTimeout(g,100)};g();var b=function(){var e,n,r,i,o,s,u;(0,a.default)(".pulsar-layer").remove();var c="[pulsar-highlight="+l.index+"]",d=(0,a.default)("body").find(c);0!==d.length&&(u=d),u||(u=t),(0,a.default)('<div class="pulsar-layer"></div>').width((null!==(e=u.outerWidth())&&void 0!==e?e:0)+20).height((null!==(n=u.outerHeight())&&void 0!==n?n:0)+20).offset({top:(null!==(i=null===(r=null==u?void 0:u.offset())||void 0===r?void 0:r.top)&&void 0!==i?i:0)-v,left:(null!==(s=null===(o=null==u?void 0:u.offset())||void 0===o?void 0:o.left)&&void 0!==s?s:0)-v}).css({position:"absolute"}).hide().appendTo("body").fadeIn("slow")};f.on("click",function(n){(0,a.default)("body").css("pointer-events","none"),(0,a.default)("body").on("scroll touchmove mousewheel",function(e){return e.preventDefault(),e.stopPropagation(),!1}),e.pulsarInfos.index<=0&&e.trackEvent(t[0],{detail:{open:"true"}}),e.pulsarInfos.steps=[],(d=(0,a.default)("[pulsar]")).each(function(t,n){var r=i.default.element(n).scope().$eval((0,a.default)(n).attr("pulsar"));r.el=n,e.pulsarInfos.steps.push(r)}),h=(0,a.default)("<pulsar></pulsar>").addClass(r).addClass(s),l.className&&l.className.split(" ").forEach(function(e){null==h||h.addClass(e)}),null==f||f.hide(),b(),(0,a.default)(window).on("resize.placeLayers",b),(0,o.http)().get("/infra/public/template/pulsar.html").then(function(t){var n=(0,a.default)(t);n.find("button").addClass("btn btn-primary");var r=u.$compile(n)(e);null==h||h.html(r)}),(0,a.default)("body").append(h)})};i.default.element(window).on("resize",function(){f&&f.data("active")&&f.css("display","")});var g=function(){null==h||h.find("button").css("pointer-events","none"),(0,a.default)(window).off("resize.placeLayers"),null==f||f.fadeOut("slow",function(){null==f||f.remove()}),null==h||h.fadeOut("slow",function(){null==h||h.remove()}),(0,a.default)(".pulsar-layer").remove(),(0,a.default)("body").off("scroll touchmove mousewheel"),(0,a.default)("body").css("pointer-events",""),null==f||f.data("active",!1)};e.closePulsar=function(){h&&f&&(h.fadeOut(0,function(){null==h||h.remove()}),f.removeClass("hidden"),(0,a.default)(".pulsar-layer").fadeOut(0,function(){(0,a.default)(".pulsar-layer").remove()}),(0,a.default)("body").off("scroll touchmove mousewheel"),(0,a.default)("body").css("pointer-events",""),f.data("active",!1))},i.default.element(document).on("click",function(t){(0,a.default)(t.target).parents("pulsar").length>0||(0,a.default)(t.target).parents(".pulsar-button").length>0||(0,a.default)(t.target).hasClass("pulsar-button")||e.closePulsar()}),e.paintPulsar=function(){m(),null==f||f.triggerHandler("click")},e.isLastStep=function(){return void 0===e.pulsarInfos.steps.find(function(t){return t.index>e.pulsarInfos.index})},e.goTo=function(e){g(),u.quickstartSvc.goToAppStep(e.index),e.el&&i.default.element(e.el).scope().paintPulsar()},e.next=function(){g();var n=u.quickstartSvc.nextAppStep(),r=e.pulsarInfos.steps.find(function(e){return e.index===n});if(void 0===r){if(void 0!==e.pulsarInfos.steps.find(function(e){return e.index>n}))return void e.next()}else if(r.el)return void(i.default.element(r.el).data("skip-pulsar")?e.next():i.default.element(r.el).scope().paintPulsar());e.trackEvent(t[0],{detail:{open:"false"}})},e.previous=function(){g();var t=u.quickstartSvc.previousAppStep();if(void 0!==e.pulsarInfos.steps.find(function(e){return e.index===t}))for(var n=0;n<e.pulsarInfos.steps.length;n++){var r=e.pulsarInfos.steps[n];if(r.index===t&&r.el){if(i.default.element(r.el).data("skip-pulsar"))return void e.previous();i.default.element(r.el).scope().paintPulsar()}}else void 0!==e.pulsarInfos.steps.find(function(e){return e.index<t})&&e.previous()},e.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("pulsar",t);n&&e&&e.dispatchEvent(n)},this.quickstartSvc.load(function(){u.quickstartSvc.appIndex()===l.index&&m()})}else t.removeAttr("pulsar")}},e}();function u(e,t,n){return new s(e,t,n)}t.DirectiveFactory=u,u.$inject=["$compile","odeNgHelperService","odeQuickstartService"]},9445:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Widget=t.WidgetContainer=t.Recorder=t.Infotip=t.Logout=t.SkinSrc=t.WithTheme=t.Navbar=t.Portal=t.Xiti=t.BindHtml=t.Autocomplete=t.Help=t.SmartBanner=t.ConnectorLightbox=t.Lightbox=t.PopoverOpener=t.PopoverContent=t.Popover=t.Pulsar=t.Assistant=t.AppTitle=t.ResetGuard=t.CustomGuard=t.DocumentGuard=t.DirtyGuard=t.InputGuard=t.GuardRoot=t.NavigationTrigger=t.I18nFilter=t.I18nPlaceholder=t.I18nTitle=t.I18nValue=t.I18n=t.Translate=t.ModalContainer=t.Modal=void 0,t.Modal=o(n(5248)),t.ModalContainer=o(n(8151)),t.Translate=o(n(7484)),t.I18n=o(n(1586)),t.I18nValue=o(n(4048)),t.I18nTitle=o(n(848)),t.I18nPlaceholder=o(n(9806)),t.I18nFilter=o(n(7329)),t.NavigationTrigger=o(n(9071)),t.GuardRoot=o(n(5509)),t.InputGuard=o(n(1367)),t.DirtyGuard=o(n(6197)),t.DocumentGuard=o(n(2235)),t.CustomGuard=o(n(4358)),t.ResetGuard=o(n(9948)),t.AppTitle=o(n(6507)),t.Assistant=o(n(3868)),t.Pulsar=o(n(7424)),t.Popover=o(n(8245)),t.PopoverContent=o(n(1682)),t.PopoverOpener=o(n(8700)),t.Lightbox=o(n(1504)),t.ConnectorLightbox=o(n(4262)),t.SmartBanner=o(n(8945)),t.Help=o(n(8961)),t.Autocomplete=o(n(8190)),t.BindHtml=o(n(3030)),t.Xiti=o(n(4452)),t.Portal=o(n(3010)),t.Navbar=o(n(6644)),t.WithTheme=o(n(5103)),t.SkinSrc=o(n(5012)),t.Logout=o(n(737)),t.Infotip=o(n(1411)),t.Recorder=o(n(1098)),t.WidgetContainer=o(n(4406)),t.Widget=o(n(5210))},4406:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=r(n(4202)),o=n(5262),a=function(){function e(e,t){this.widgetSvc=e,this.helperSvc=t}return e.prototype.loadWidgets=function(){var e=this,t=function(e,t){return e.userPref.index<t.userPref.index?-1:e.userPref.index===t.userPref.index?0:1};this.dndWidgets=this.widgetSvc.list().filter(function(t){return t.userPref.position===e.position&&t.userPref.show&&!t.platformConf.mandatory}).sort(t),this.lockedWidgets=this.widgetSvc.list().filter(function(t){return t.userPref.position===e.position&&t.platformConf.mandatory}).sort(t)},e.prototype.updateAndSave=function(){var e;return null===(e=this.dndWidgets)||void 0===e||e.forEach(function(e,t){e.userPref.index=t}),o.WidgetFrameworkFactory.instance().saveUserPrefs()},e.prototype.checkPosition=function(e){var t,n;return(null===(t=e.userPref)||void 0===t?void 0:t.position)===this.position||"left"===(null===(n=e.userPref)||void 0===n?void 0:n.position)&&!this.position},Object.defineProperty(e.prototype,"allowedDndTypes",{get:function(){return[""+this.position]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMobileView",{get:function(){return this.helperSvc.viewport<992},enumerable:!1,configurable:!0}),e.prototype.onDnDDragOver=function(e,t,n,r){var i=n===this.position;return console.log("index="+t+", type="+n+", dropEffect="+r+", allowed="+i),i||this.signalReject&&this.signalReject(),i},e.prototype.onDnDDrop=function(e,t,n,r){if(this.dndWidgets&&0<=n&&n<=this.dndWidgets.length){var i=this.dndWidgets.findIndex(function(e){return e.platformConf.id===t});if(-1===i||i===n)return!1;var o=this.dndWidgets[i];return this.dndWidgets.splice(i,1),n>0&&n>=i&&n--,this.dndWidgets.splice(n,0,o),this.trackEvent(e,{detail:{move:o.platformConf.name,from:i+1,to:n+1}}),this.updateAndSave(),!0}return!1},e.prototype.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("ode-widget-container",t);n&&e.currentTarget&&e.currentTarget.dispatchEvent(n)},e}();t.Controller=a;var s=function(){function e(){this.restrict="A",this.template=n(6066).Z,this.scope={},this.bindToController=!0,this.controller=["odeWidgetService","odeNgHelperService",a],this.controllerAs="ctrl",this.require=["odeWidgetContainer"]}return e.prototype.link=function(e,t,n,r){var o;if(r){var a=r[0],s={position:"left"},u=null!==(o=n.odeWidgetContainer)&&void 0!==o?o:s;if("string"==typeof u)try{u=i.default.fromJson(u)}catch(e){u=s}u.position||(u.position="left"),a.signalReject=function(){var e="dndReject",n=t.children("ul[dnd-list][dnd-dragover]");n.hasClass(e)||(n.addClass(e),setTimeout(function(){n.removeClass(e)},1500))},a.widgetSvc.initialize().then(function(){a.position=u.position,a.loadWidgets(),e.$apply()});var c=a.widgetSvc.onChange().subscribe({next:function(t){a.loadWidgets(),e.$apply()}});e.$on("$destroy",function(){c&&c.unsubscribe()})}},e}();t.DirectiveFactory=function(){return new s}},5210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var n=function(e){this.widgetSvc=e,this.widget=null};t.Controller=n;var r=function(){function e(e,t){this.$compile=e,this.widgetLoader=t,this.restrict="A",this.scope={widget:"=odeWidget"},this.bindToController=!0,this.controller=["odeWidgetService",n],this.controllerAs="ctrl",this.require=["odeWidget"]}return e.prototype.link=function(e,t,n,r){var i=this;if(r){var o=r[0];this.widgetLoader(o.widget.platformConf.name).then(function(){var n="<ode-".concat(o.widget.platformConf.name,"></ode-").concat(o.widget.platformConf.name,">"),r=i.$compile(n)(e);t.append(r)})}},e}();function i(e,t){return new r(e,t)}t.DirectiveFactory=i,i.$inject=["$compile","odeWidgetLoader"]},9294:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Samples=void 0,t.Samples=o(n(4679)),a(n(9445),t),a(n(6731),t),a(n(1032),t),a(n(9419),t),"undefined"!=typeof window&&(window.entcore=window.entcore||{},window.entcore["ode-ngjs-front"]=e.exports)},6586:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeBaseModule=void 0;var i=r(n(4202)),o=n(6731),a=n(5262),s=i.default.module("odeBase",["ngSanitize","ngRoute"],["$interpolateProvider",function(e){e.startSymbol("[["),e.endSymbol("]]")}]).config(["$sceDelegateProvider",function(e){e.resourceUrlWhitelist(["self",a.ConfigurationFrameworkFactory.instance().Platform.cdnDomain+"/**"])}]);t.odeBaseModule=function(){return s.value("notify",o.notify).service("odeNotify",o.NotifyService).service("odeNgHelperService",o.NgHelperService).service("odeSession",o.SessionService).service("odeTracking",o.TrackingService).service("odeXiti",o.XitiService)}},7211:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeI18nModule=void 0;var i=r(n(4202)),o=n(9445),a=n(6731),s=i.default.module("odeI18n",[]);t.odeI18nModule=function(){return s.directive("translate",o.Translate.DirectiveFactory).directive("i18n",o.I18n.DirectiveFactory).directive("i18nValue",o.I18nValue.DirectiveFactory).directive("i18nPlaceholder",o.I18nPlaceholder.DirectiveFactory).directive("i18nTitle",o.I18nTitle.DirectiveFactory).filter("i18n",o.I18nFilter.FilterFactory).service("odeI18n",a.I18nService)}},1032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OdeModules=void 0;var r=n(6586),i=n(7211),o=n(6837),a=n(2357),s=function(){function e(){}return e.getBase=function(){return(0,r.odeBaseModule)().name},e.getI18n=function(){return(0,i.odeI18nModule)().name},e.getUi=function(){return(0,o.odeUiModule)().name},e.getWidgets=function(){return(0,a.odeWidgetModule)().name},e}();t.OdeModules=s},6837:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeUiModule=void 0;var i=r(n(4202)),o=n(9445),a=n(6731),s=(n(807),i.default.module("odeUi",["dndLists"]));t.odeUiModule=function(){return s.directive("odePortal",o.Portal.DirectiveFactory).directive("odeNavbar",o.Navbar.DirectiveFactory).directive("withTheme",o.WithTheme.DirectiveFactory).directive("odeModal",o.Modal.DirectiveFactory).directive("odeModalContainer",o.ModalContainer.DirectiveFactory).directive("odeInfotip",o.Infotip.DirectiveFactory).directive("navigationTrigger",o.NavigationTrigger.DirectiveFactory).directive("guardRoot",o.GuardRoot.DirectiveFactory).directive("inputGuard",o.InputGuard.DirectiveFactory).directive("dirtyGuard",o.DirtyGuard.DirectiveFactory).directive("documentGuard",o.DocumentGuard.DirectiveFactory).directive("customGuard",o.CustomGuard.DirectiveFactory).directive("resetGuard",o.ResetGuard.DirectiveFactory).directive("appTitle",o.AppTitle.DirectiveFactory).directive("logout",o.Logout.DirectiveFactory).directive("popover",o.Popover.DirectiveFactory).directive("popoverContent",o.PopoverContent.DirectiveFactory).directive("popoverOpener",o.PopoverOpener.DirectiveFactory).directive("assistant",o.Assistant.DirectiveFactory).directive("pulsar",o.Pulsar.DirectiveFactory).directive("lightbox",o.Lightbox.DirectiveFactory).directive("connectorLightbox",o.ConnectorLightbox.DirectiveFactory).directive("connectorLightboxTrigger",o.ConnectorLightbox.TriggerDirectiveFactory).directive("smartBanner",o.SmartBanner.DirectiveFactory).directive("help",o.Help.DirectiveFactory).directive("bindHtml",o.BindHtml.DirectiveFactory).directive("xiti",o.Xiti.DirectiveFactory).directive("autocomplete",o.Autocomplete.DirectiveFactory).directive("skinSrc",o.SkinSrc.DirectiveFactory).directive("odeRecorder",o.Recorder.DirectiveFactory).directive("odeWidgetContainer",o.WidgetContainer.DirectiveFactory).directive("odeWidget",o.Widget.DirectiveFactory).service("odeThemeHelperService",a.ThemeHelperService).service("odeQuickstartService",a.QuickstartService).service("odeWidgetService",a.WidgetService).service("odeRichContentService",a.RichContentService).service("odeVideoUploadService",a.VideoUploadService).service("odeVideoEventTrackerService",a.VideoEventTrackerService)}},2357:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeWidgetModule=t.KnownWidget=void 0;var a,s=o(n(4202));!function(e){e.maxicours="maxicours-widget",e.cursus="cursus-widget",e.school="school-widget",e.recordMe="record-me",e.agenda="agenda-widget",e.qwant="qwant",e.bookmark="bookmark-widget",e.rss="rss-widget",e.myApps="my-apps",e.carnetDeBord="carnet-de-bord",e.dicoDeLaZone="dicodelazone-widget",e.calendar="calendar-widget",e.universalis="universalis-widget",e.briefme="briefme-widget",e.lastInfos="last-infos-widget",e.edumalin="edumalin-widget",e.mediacentre="mediacentre-widget",e.cantine="cantine-widget",e.screenTime="screen-time-widget"}(a=t.KnownWidget||(t.KnownWidget={}));var u=s.default.module("odeWidgets",[]).factory("odeWidgetLoader",["$injector",function(e){var t=this;return function(o){return r(t,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:switch(o){case a.maxicours:return[3,1];case a.cursus:return[3,3];case a.school:return[3,5];case a.recordMe:return[3,7];case a.agenda:return[3,9];case a.qwant:return[3,11];case a.bookmark:return[3,13];case a.rss:return[3,15];case a.myApps:return[3,17];case a.carnetDeBord:return[3,19];case a.dicoDeLaZone:return[3,21];case a.calendar:return[3,23];case a.universalis:return[3,25];case a.briefme:return[3,27];case a.lastInfos:return[3,29];case a.edumalin:return[3,31];case a.mediacentre:return[3,33];case a.cantine:return[3,35];case a.screenTime:return[3,37]}return[3,39];case 1:return[4,new Promise(function(e,t){n.e(536).then(function(t){var r=n(3132);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 2:case 4:case 6:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return t.sent(),[3,40];case 3:return[4,new Promise(function(e,t){n.e(484).then(function(t){var r=n(1916);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 5:return[4,new Promise(function(e,t){n.e(306).then(function(t){var r=n(5623);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 7:return[4,new Promise(function(e,t){n.e(932).then(function(t){var r=n(1317);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 9:return[4,new Promise(function(e,t){n.e(815).then(function(t){var r=n(624);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 11:return[4,new Promise(function(e,t){n.e(165).then(function(t){var r=n(3399);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 13:return[4,new Promise(function(e,t){n.e(364).then(function(t){var r=n(9278);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 15:return[4,new Promise(function(e,t){n.e(390).then(function(t){var r=n(7377);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 17:return[4,new Promise(function(e,t){n.e(649).then(function(t){var r=n(1204);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 19:return[4,new Promise(function(e,t){n.e(438).then(function(t){var r=n(5613);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 21:return[4,new Promise(function(e,t){n.e(368).then(function(t){var r=n(2579);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 23:return[4,new Promise(function(e,t){n.e(556).then(function(t){var r=n(9492);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 25:return[4,new Promise(function(e,t){n.e(142).then(function(t){var r=n(462);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 27:return[4,new Promise(function(e,t){n.e(539).then(function(t){var r=n(2445);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 29:return[4,new Promise(function(e,t){n.e(376).then(function(t){var r=n(5479);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 31:return[4,new Promise(function(e,t){n.e(447).then(function(t){var r=n(3691);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 33:return[4,new Promise(function(e,t){n.e(820).then(function(t){var r=n(5116);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 35:return[4,new Promise(function(e,t){Promise.all([n.e(669),n.e(91)]).then(function(t){var r=n(8544);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 37:return[4,new Promise(function(e,t){Promise.all([n.e(919),n.e(202)]).then(function(t){var r=n(58);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 39:throw'Unknown widget "'.concat(o,'"');case 40:return[2]}})})}}]);t.odeWidgetModule=function(){return u}},4329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceFactory=t.AlertSvc=void 0;var n=function(){function e(e){this.$window=e}return e.prototype.alert=function(e){this.$window.alert(null!=e?e:"Undefined message...")},e}();function r(e){return new n(e)}t.AlertSvc=n,t.ServiceFactory=r,r.$inject=["$window"]},4679:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AlertSvc=t.SaySomething=void 0,t.SaySomething=o(n(2285)),t.AlertSvc=o(n(4329))},2285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=t.Controller=void 0;var r=function(){function e(e){this.$http=e}return e.prototype.sayHello=function(){return"".concat(this.what,", ").concat(this.userName," !")},e}();t.Controller=r;var i=function(){function e(e){this.$compile=e,this.restrict="E",this.template=n(2011).Z,this.scope={what:"@",userName:"=ngModel"},this.bindToController=!0,this.controller=["$http",r],this.controllerAs="ctrl",this.require=["saySomething","ngModel"]}return e.prototype.link=function(e,t,n,r){var i=r?r[0]:null,o=r?r[1]:null;console.log(null==i?void 0:i.userName),console.log(o)},e}();function o(e){return new i(e)}t.Directive=i,t.DirectiveFactory=o,o.$inject=["$compile"]},1760:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18nService=void 0;var r=(0,n(9419).conf)().Platform.idiom,i=function(){function e(){}return e.prototype.translate=function(e){return r.translate(e)},e}();t.I18nService=i},6731:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(7774),t),i(n(1760),t),i(n(4763),t),i(n(1599),t),i(n(6615),t),i(n(1147),t),i(n(9698),t),i(n(7374),t),i(n(298),t),i(n(2411),t),i(n(8328),t),i(n(7291),t)},1147:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NgHelperService=void 0;var i=r(n(4202)),o=r(n(3336)),a=function(){function e(){}return e.prototype.safeApply=function(e,t){var n=e.$root.$$phase;"$apply"==n||"$digest"==n?i.default.isFunction(t)&&t(e):"string"==typeof t||i.default.isFunction(t)?e.$apply(t):e.$apply()},e.prototype.each=function(e,t){for(var n=0;n<(null==e?void 0:e.length);n++)t(n,e[n])},e.prototype.offset=function(e,t){if(void 0!==t&&e.css("position","relative").css("top",t.top+"px").css("left",t.left+"px"),!e[0].getClientRects().length)return{top:0,left:0};var n=e[0].getBoundingClientRect();return{top:n.top+window.pageYOffset,left:n.left+window.pageXOffset}},e.prototype.width=function(e){var t;return null!==(t=(0,o.default)(e).width())&&void 0!==t?t:0},e.prototype.height=function(e){var t;return null!==(t=(0,o.default)(e).height())&&void 0!==t?t:0},e.prototype.parents=function(e,t){for(var n=i.default.element("<div></div>"),r=0;r<(null==e?void 0:e.length);r++){var o=e[r];do{(o=o.parentNode).matches(t)&&n.append(o)}while(o)}return n.children()},Object.defineProperty(e.prototype,"viewport",{get:function(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"WIDE_SCREEN",{get:function(){return 1200},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"TABLET",{get:function(){return 800},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"FAT_MOBILE",{get:function(){return 550},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"SMALL_MOBILE",{get:function(){return 420},enumerable:!1,configurable:!0}),e}();t.NgHelperService=a},7774:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.notify=t.NotifyService=void 0;var i=r(n(4202)),o=n(9419),a=n(991);i.default.element("head").append('<style id="humane-js">\n .humane,\n .humane-original {\n position: fixed;\n -moz-transition: all 0.2s ease-out;\n -webkit-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n z-index: 100000;\n filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);\n }\n .humane,\n .humane-original {\n font-family: Ubuntu, Verdana, sans-serif;\n line-height: 40px;\n font-size: 25px;\n top: 25%;\n left: 25%;\n opacity: 0;\n width: 50%;\n min-height: 40px;\n padding: 10px;\n text-align: center;\n background-color: #000;\n color: #fff;\n -webkit-border-radius: 15px;\n border-radius: 15px;\n }\n .humane p,\n .humane-original p,\n .humane ul,\n .humane-original ul {\n margin: 0;\n padding: 0;\n }\n .humane ul,\n .humane-original ul {\n list-style: none;\n }\n .humane.humane-original-info,\n .humane-original.humane-original-info {\n background-color: #030;\n }\n .humane.humane-original-success,\n .humane-original.humane-original-success {\n background-color: #030;\n }\n .humane.humane-original-error,\n .humane-original.humane-original-error {\n background-color: #300;\n }\n .humane.humane-animate,\n .humane-original.humane-original-animate {\n opacity: 0.8;\n }\n .humane.humane-animate:hover,\n .humane-original.humane-original-animate:hover {\n opacity: 0.6;\n }\n .humane.humane-js-animate,\n .humane-original.humane-original-js-animate {\n opacity: 0.8;\n }\n .humane.humane-js-animate:hover,\n .humane-original.humane-original-js-animate:hover {\n opacity: 0.6;\n filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);\n }\n</style>');var s=function(){function e(){}return e.prototype.message=function(e,t,n){t=(0,o.conf)().Platform.idiom.translate(t);var r={addnCls:"humane-original-"+e};"number"==typeof n&&(r.timeout=n),a.spawn(r)(t)},e.prototype.error=function(e,t){this.message("error",e,t)},e.prototype.info=function(e,t){this.message("info",e,t)},e.prototype.success=function(e,t){this.message("success",e,t)},e}();t.NotifyService=s,t.notify=new s},9698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuickstartService=void 0;var r=n(9419),i=(0,r.conf)().Platform.theme,o={get me(){return(0,r.session)().user}},a=function(){function e(){this.app="",this.steps={},this.state={},this.types={ENSEIGNANT:"teacher",ELEVE:"student",PERSEDUCNAT:"personnel",PERSRELELEVE:"relative",SUPERADMIN:""},this.mySteps=[],this.assistantIndex={},this.loaded=!1,this.loading=!1,this.awaiters=[]}return e.prototype.assistantStep=function(e){return i.basePath+"template/assistant/"+this.types[o.me.type]+"/"+e+".html"},e.prototype.nextAssistantStep=function(){this.state.assistant++,this.state.assistant===this.steps[this.types[o.me.type]]?(this.state.assistant=-1,this.assistantIndex=void 0):this.assistantIndex=this.mySteps[this.state.assistant],this.save()},Object.defineProperty(e.prototype,"assistantTimerFormat",{get:function(){return"MM/DD/YYYY HH:mm"},enumerable:!1,configurable:!0}),e.prototype.seeAssistantLater=function(){this.state.assistantTimer=r.L10n.moment().format(this.assistantTimerFormat),this.save()},e.prototype.getAppStep=function(){return this.state[i.skin][this.app]},e.prototype.goToAppStep=function(e){return this.state[i.skin][this.app]=e,this.save(),e},e.prototype.nextAppStep=function(){return this.goToAppStep(this.getAppStep()+1)},e.prototype.previousAppStep=function(){return this.goToAppStep(this.getAppStep()-1)},e.prototype.closeApp=function(){this.goToAppStep(-1)},e.prototype.appIndex=function(){return this.app=window.location.href.split("//")[1].split("/").slice(1).join("/"),this.state[i.skin]||(this.state[i.skin]={}),this.state[i.skin][this.app]||(this.state[i.skin][this.app]=0),this.state[i.skin][this.app]},e.prototype.previousAssistantStep=function(){this.state.assistant--,this.state.assistant<0&&(this.state.assistant=0),this.assistantIndex=this.mySteps[this.state.assistant],this.save()},e.prototype.save=function(e){(0,r.http)().putJson("/userbook/preference/quickstart",this.state).then(function(){"function"==typeof e&&e()})},e.prototype.goTo=function(e){e>this.mySteps.length&&(e=-1),this.state.assistant=e,-1!==e&&(this.assistantIndex=this.mySteps[e]),this.save()},e.prototype.load=function(e){var t=this;this.loaded?"function"==typeof e&&e():(e&&this.awaiters.push(e),this.loading||(this.loading=!0,(0,r.http)().get("/userbook/preference/quickstart").then(function(e){var n;if(e.preference)try{n=JSON.parse(e.preference)}catch(e){console.log("Error parsing quickstart preferences")}n||(n={}),n.assistant||(n.assistant=0),n[i.skin]||(n[i.skin]={}),t.state=n,-1===n.assistant||n.assistantTimer&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).year()===r.L10n.moment().year()&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).dayOfYear()===r.L10n.moment().dayOfYear()&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).hour()===r.L10n.moment().hour()?(t.loaded=!0,t.awaiters.forEach(function(e){"function"==typeof e&&e()})):(0,r.http)().get(i.basePath+"template/assistant/steps.json").then(function(e){t.steps=e;for(var n=t.steps[t.types[o.me.type]],r=0;r<n;r++)t.mySteps.push({index:r,path:t.assistantStep(r)}),t.assistantIndex=t.mySteps[t.state.assistant];t.loaded=!0,t.awaiters.forEach(function(e){"function"==typeof e&&e()})})})))},e}();t.QuickstartService=a},2411:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RichContentService=void 0;var i=r(n(3336)),o=function(){function e(e){this.$compile=e}return e.prototype.apply=function(e,t,n){var r=(0,i.default)("<div>"+(e||"")+"</div>");r.find("[resizable]").removeAttr("resizable").css("cursor","initial"),r.find("[bind-html]").removeAttr("bind-html"),r.find("[ng-include]").removeAttr("ng-include"),r.find("[ng-transclude]").removeAttr("ng-transclude"),r.find("[draggable]").removeAttr("draggable").css("cursor","initial"),r.find("[contenteditable]").removeAttr("contenteditable"),r.find("script").remove(),r.find("*").each(function(e,t){for(var n=t.attributes,r=n.length-1;r>=0;r--)(n[r].name.startsWith("on")||n[r].value.includes("javascript:"))&&t.removeAttribute(n[r].name)});var o=r[0].outerHTML;t.html(this.$compile(o)(n.$parent)),t.find("audio").each(function(e,t){var n=(0,i.default)(t).parent();(0,i.default)(t).attr("src",t.src).attr("preload","none").detach().appendTo(n)}),t.find("img").css({cursor:""})},e.$inject=["$compile"],e}();t.RichContentService=o},4763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionService=void 0;var r=n(9419),i=function(){function e(){}return e.prototype.hasWorkflow=function(e){return(0,r.session)().hasWorkflow(e)},e.prototype.getLanguage=function(){return(0,r.notif)().onSessionReady().promise.then(function(e){return(0,r.session)().currentLanguage})},e.prototype.getBookmarks=function(){return(0,r.notif)().onSessionReady().promise.then(function(e){return(0,r.conf)().User.bookmarkedApps})},e}();t.SessionService=i},6615:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeHelperService=void 0;var a=o(n(4202)),s=n(9419),u=o(n(3336)),c=function(){function e(e){this.ngHelperSvc=e,this.iconOfWidget={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme big","edumalin-widget":"ic-widget-edumalin","mediacentre-widget":"ic-widget-mediacentre","cantine-widget":"ic-widget-cantine","screen-time-widget":"ic-widget-screen-time"}}return Object.defineProperty(e.prototype,"platform",{get:function(){return(0,s.conf)().Platform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CDN",{get:function(){return this.platform.cdnDomain},enumerable:!1,configurable:!0}),e.prototype.getBootstrapThemePath=function(){return r(this,void 0,void 0,function(){var e,t,n,r,o;return i(this,function(i){switch(i.label){case 0:return e=this.platform.theme.themeName,[4,this.platform.theme.getConf()];case 1:for(t=i.sent(),n=0,r=t.overriding;n<r.length;n++)if((o=r[n]).child===e)return[2,"".concat(this.CDN,"/assets/themes/").concat(o.bootstrapVersion)];return[2,"".concat(this.CDN,"/assets/themes/").concat(e)]}})})},e.prototype.getBootstrapSkinPath=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,this.getBootstrapThemePath()];case 1:return e=t.sent(),[2,"".concat(e,"/skins/").concat(this.platform.theme.skinName)]}})})},e.prototype.toSkinUrl=function(e){if(!a.default.element(document.querySelectorAll("#theme")).attr("href"))return"";var t=this.platform.theme.basePath;return-1===e.indexOf("http://")&&-1===e.indexOf("https://")&&-1===e.indexOf("/workspace/")?t+e:e},e.prototype.loadOldWrappedTheme=function(e,t){(0,u.default)("#themeOld").remove();var n=a.default.element('<link rel="stylesheet" \n type="text/css" \n href="'.concat(this.platform.cdnDomain,"/assets/themes/").concat(e,"/skins/").concat(t,"/wrapped.theme.css?version=").concat(this.platform.deploymentTag,'"\n id="themeOld"\n crossorigin="anonymous" />'));(0,u.default)("head").append(n)},e.prototype.loadThemeJs=function(e){(0,u.default)("#themeJS").remove();var t=a.default.element('<script\n type="text/javascript"\n src="'.concat(this.platform.cdnDomain,"/assets/themes/").concat(e,"/js/theme.js?version=").concat(this.platform.deploymentTag,'"\n id="themeJS" />'));(0,u.default)("body").append(t)},e.prototype.applyStyle=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){return e&&e.length>0&&e.lastIndexOf("/",e.length-1)!==e.length-1&&(e+="/"),e="".concat(e,"theme.css?version=").concat(this.platform.deploymentTag),0===(0,u.default)("#theme").length?(t=a.default.element('<link rel="stylesheet" \n type="text/css" \n href="'.concat(e,'"\n id="theme"\n crossorigin="anonymous" />')),n=a.default.element('<link rel="icon" href="'.concat(this.platform.theme.basePath,'img/illustrations/favicon.ico" />')),t.on("load",function(e){(0,u.default)("body").show()}),(0,u.default)("head").append(t).append(n),setTimeout(function(){(0,u.default)("body").show()},300)):(0,u.default)("#theme").attr("href",e),[2]})})},e.prototype.listThemes=function(){return this.platform.theme.listThemes()},e.prototype.setTheme=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return[4,this.getBootstrapThemePath()];case 1:return t=n.sent(),this.applyStyle("".concat(t,"/skins/").concat(e._id)),this.platform.theme.setDefaultTheme(e),[2]}})})},e.prototype.getIconCode=function(e){var t=e.icon.trim().toLowerCase()||"";switch(t&&t.length>0?t.endsWith("-large")&&(t=t.replace("-large","")):t=e.displayName.trim().toLowerCase(),t=(0,s.conf)().Platform.idiom.removeAccents(t)){case"admin.title":t="admin";break;case"banques des savoirs":t="banquesavoir";break;case"collaborativewall":t="collaborative-wall";break;case"communautés":t="community";break;case"directory.user":t="userbook";break;case"emploi du temps":t="edt";break;case"messagerie":t="conversation";break;case"news":t="actualites";break;case"homeworks":case"cahier de texte":t="cahier-de-texte";break;case"diary":case"cahier de texte 2d":t="cahier-textes"}return t},e.prototype.getWidgetIconClass=function(e){return this.iconOfWidget[e.platformConf.name]},e.$inject=["odeNgHelperService"],e}();t.ThemeHelperService=c},7374:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackingService=void 0;var a=o(n(4202)),s=n(9419),u=function(){function e(e,t,n){this.$document=e,this.$location=t,this.$rootScope=n,this.hasOptedIn=!1}return e.prototype.loadParams=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return e=this,[4,(0,s.conf)().Platform.analytics.parameters("matomo")];case 1:return[2,e._params=t.sent()]}})})},e.prototype.trackApp=function(e){var t=this;this.loadParams().then(function(e){var n;if(e&&t.shouldTrackCurrentApp())try{var r=window._paq=null!==(n=window._paq)&&void 0!==n?n:[];r.push(["setRequestMethod","POST"]),e.UserId&&r.push(["setUserId",e.UserId]),e.Profile&&r.push(["setCustomDimension",1,e.Profile]),e.School&&r.push(["setCustomDimension",2,e.School]),e.Project&&r.push(["setCustomDimension",3,e.Project]),r.push(["trackPageView"]),r.push(["enableLinkTracking"]),function(){var t;r.push(["setTrackerUrl",e.url+"matomo.php"]),r.push(["setSiteId",e.siteId]);var n=document,i=n.createElement("script"),o=n.getElementsByTagName("script")[0];i.type="text/javascript",i.async=!0,i.src=e.url+"ode.js",null===(t=o.parentNode)||void 0===t||t.insertBefore(i,o)}();var i=t;if(r.push([function(){i.hasOptedIn=!this.isUserOptedOut(),i.$rootScope.$digest()}]),e.detailApps){var o=(0,s.session)().user;if(a.default.isArray(e.doNotTrack)&&a.default.isArray(o.apps))for(var u=0;u<o.apps.length;u++)if(o.apps[u]&&o.apps[u].address&&o.apps[u].name&&-1!==t.$location.absUrl().indexOf(o.apps[u].address)&&-1!==e.doNotTrack.indexOf(o.apps[u].name))return;var c=t.$location.absUrl().split("#")[0];t.trackPage(t.$document[0].title,c)}}catch(e){console.error('Invalid tracker object. Should look like {"siteId": 99999, "url":"http://your.matomo.server.com/"}"',e)}})},e.prototype.trackPage=function(e,t){var n=this;this.loadParams().then(function(r){if(r&&n.shouldTrackCurrentApp()){var i=window._paq=window._paq||[];i.push(["setDocumentTitle",e]),i.push(["setCustomUrl",t]),i.push(["trackPageView"])}})},e.prototype.willTrackEvent=function(e){var t=this._params;if(!t)return!1;var n=this.getCurrentMatchingApps();if(t.trackOnly&&t.trackOnly.length>0){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(-1!==t.trackOnly.indexOf("".concat(o.name,".").concat(e))||-1!==t.trackOnly.indexOf("*.".concat(e)))return!0}return!1}if(t.doNotTrack instanceof Array&&t.doNotTrack.length>0)for(var a=0,s=n;a<s.length;a++){o=s[a];if(-1!==t.doNotTrack.indexOf("".concat(o.name,".").concat(e))||-1!==t.doNotTrack.indexOf("*.".concat(e)))return!1}return!0},e.prototype.trackEvent=function(e,t,n,r){this.loadParams().then(function(i){if(i){var o=window._paq=window._paq||[],a=["trackEvent",e,t];"string"==typeof n&&(n=n.trim()).length>0&&a.push(n),"number"==typeof r&&a.push(r),o.push(a)}})},e.prototype.saveOptIn=function(){var e=this;this.loadParams().then(function(t){t&&(window._paq=window._paq||[]).push(e.hasOptedIn?["forgetUserOptOut"]:["optUserOut"])})},e.prototype.shouldTrackCurrentApp=function(){var e=this._params;if(!e)return!1;if(e.doNotTrack)for(var t=0,n=this.getCurrentMatchingApps();t<n.length;t++){var r=n[t];if(-1!==e.doNotTrack.indexOf(r.name))return!1}return!0},e.prototype.getCurrentMatchingApps=function(){var e=[],t=(0,s.session)().user.apps;if(t instanceof Array)for(var n=0;n<t.length;n++){var r=t[n];r&&r.address&&r.name&&-1!==location.href.indexOf(r.address)&&e.push(r)}return e},e.prototype.shouldTrackEvent=function(e,t){if(!e)return!1;var n=this.getCurrentMatchingApps();if(e.trackOnly&&e.trackOnly.length>0){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(-1!==e.trackOnly.indexOf("".concat(o.name,".").concat(t))||-1!==e.trackOnly.indexOf("*.".concat(t)))return!0}return!1}if(e.doNotTrack instanceof Array&&e.doNotTrack.length>0)for(var a=0,s=n;a<s.length;a++){o=s[a];if(-1!==e.doNotTrack.indexOf("".concat(o.name,".").concat(t))||-1!==e.doNotTrack.indexOf("*.".concat(t)))return!1}return!0},e}();t.TrackingService=u,u.$inject=["$document","$location","$rootScope"]},7291:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoEventTrackerService=void 0;var r=n(9419),i=function(){function e(){}return e.asFormData=function(){var e=new FormData,t=r.devices.getBrowserInfo();return e.append("device",r.deviceType),e.append("browser",t.name+" "+t.version),e.append("url",window.location.hostname),e.append("app",(0,r.session)().currentApp||""),e},e.prototype.generateSaveEvent=function(e,t){var n=r.devices.getBrowserInfo(),i={videoId:t.videoworkspaceid,userId:(0,r.session)().user.userId,userProfile:(0,r.session)().description.profiles[0],device:r.deviceType,browser:n.name+" "+n.version,structure:(0,r.session)().user.structureNames[0],level:(0,r.session)().user.level,duration:Math.round(e),weight:t.videosize,captation:!0,url:window.location.hostname,app:(0,r.session)().currentApp};(0,r.http)().postJson("/video/event/save",i)},e}();t.VideoEventTrackerService=i},8328:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoUploadService=void 0;var o=n(5262),a=n(9419),s=n(7291),u=function(){function e(){this._maxWeight=50,this._maxDuration=3,this._acceptVideoUploadExtensions=["mp4","mov","avi"],this._initialized=!1}return Object.defineProperty(e.prototype,"validExtensions",{get:function(){return this._acceptVideoUploadExtensions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxWeight",{get:function(){return this._maxWeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDuration",{get:function(){return this._maxDuration},enumerable:!1,configurable:!0}),e.prototype.initialize=function(){return r(this,void 0,void 0,function(){var e=this;return i(this,function(t){switch(t.label){case 0:if(this._initialized)return[2];t.label=1;case 1:return t.trys.push([1,,3,4]),[4,(0,a.conf)().Platform.apps.initialize(o.APP.VIDEO,!1)];case 2:return t.sent(),(0,a.conf)().Platform.apps.getPublicConf(o.APP.VIDEO).then(function(t){e._maxWeight=e.safeValueOf(t,"max-videosize-mbytes",e._maxWeight),e._maxDuration=e.safeValueOf(t,"max-videoduration-minutes",e._maxDuration);var n=t["accept-videoupload-extensions"];n&&("string"==typeof n&&(n=[n]),e._acceptVideoUploadExtensions=n||e._acceptVideoUploadExtensions,e._acceptVideoUploadExtensions=e._acceptVideoUploadExtensions.map(function(e){return e.toUpperCase()}))}),[3,4];case 3:return this._initialized=!0,[7];case 4:return[2]}})})},e.prototype.safeValueOf=function(e,t,n){try{var r=parseInt(e[t]);return"number"!=typeof r||isNaN(r)?n:r}catch(e){return n}},e.prototype.checkValidExtension=function(e){return e=e.toUpperCase(),-1!==this._acceptVideoUploadExtensions.findIndex(function(t){return e===t})},e.prototype.upload=function(e,t,n,o){return r(this,void 0,void 0,function(){var r,u,c,l,d,f,h;return i(this,function(p){switch(p.label){case 0:if(!e)throw new Error("Invalid video file.");if(!t)throw new Error("Invalid video filename.");return r="/video/encode?captation="+n,(u=s.VideoEventTrackerService.asFormData()).append("file",e,t),u.append("weight",""+e.size),u.append("captation",""+n),o&&(u.append("duration",""+o),r+="&duration="+o),[4,(0,a.http)().post(r,u)];case 1:if(p.sent(),202!=(0,a.http)().latestResponse.status)return[3,5];c="/video/status/"+(0,a.http)().latestResponse.data.processid,l=0,d=1,f=function(){var e,t;return i(this,function(n){switch(n.label){case 0:return e=d+l,[4,new Promise(function(t){return setTimeout(t,1e3*e)})];case 1:return n.sent(),l=d,d=Math.min(8,e),[4,(0,a.http)().get(c)];case 2:return t=n.sent(),201==(0,a.http)().latestResponse.status?[2,{value:t}]:202!=(0,a.http)().latestResponse.status?[2,"break"]:[2]}})},p.label=2;case 2:return[5,f()];case 3:if("object"==typeof(h=p.sent()))return[2,h.value];if("break"===h)return[3,5];p.label=4;case 4:return[3,2];case 5:throw new Error("Video cannot be uploaded.")}})})},e}();t.VideoUploadService=u},1599:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetService=void 0;var r=n(5262),i=n(9419),o=function(){function e(){}return e.prototype.initialize=function(){return r.WidgetFrameworkFactory.instance().initialize(null,null)},e.prototype.list=function(){return r.WidgetFrameworkFactory.instance().list},e.prototype.onChange=function(){return(0,i.notif)().events().pipe(r.RxJS.filter(function(e){return e.layer===r.LAYER_NAME.WIDGETS&&e.name===r.EVENT_NAME.USERPREF_CHANGED}))},e}();t.WidgetService=o},298:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.XitiService=void 0;var utils_1=__webpack_require__(9419),ATTag,XitiService=function(){function XitiService(){}return XitiService.prototype.runScript=function(){var e=this;return Promise.all([(0,utils_1.conf)().Platform.analytics.xiti(),this.loadScript()]).then(function(t){var n=t[0];if(n)return console.debug("XiTi conf="+JSON.stringify(n)),e.run(n)}).catch(function(e){e&&console.debug("XiTi: run script error="+JSON.stringify(e))})},XitiService.prototype.trackClick=function(e,t){var n=this;return Promise.all([(0,utils_1.conf)().Platform.analytics.xiti(),this.loadScript(),this.loadCasMapping(e)]).then(function(r){var i=r[0];if(i)return console.debug("XiTi conf="+JSON.stringify(i)),n.click(i,r[2],e,t)}).catch(function(e){e&&console.debug("XiTi: track click error="+JSON.stringify(e))})},XitiService.prototype.loadScript=function(){return __awaiter(this,void 0,void 0,function(){var scriptPath,response;return __generator(this,function(_a){switch(_a.label){case 0:return"undefined"!=typeof ATInternet?[3,2]:(scriptPath="/xiti/public/js/lib/smarttag_ENT.js",[4,(0,utils_1.http)().get(scriptPath,{headers:{Accept:"application/javascript"}})]);case 1:if(response=_a.sent(),200!=(0,utils_1.http)().latestResponse.status)throw"Error while loading XiTi script";eval(response),_a.label=2;case 2:return[2]}})})},XitiService.prototype.loadCasMapping=function(e){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(r){switch(r.label){case 0:return t="/xiti/cas-infos?connector=".concat(e),[4,(0,utils_1.http)().get(t)];case 1:if(n=r.sent(),200!=(0,utils_1.http)().latestResponse.status)throw"Error while loading XiTi CAS mapping";if(!n.xitiService||!n.xitiOutil)throw"Malformed XiTi CAS mapping";return[2,n]}})})},XitiService.prototype.run=function(e,t){return void 0===t&&(t=window.location.pathname),__awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(o){if(!ATInternet)return[2];for(r in n=e.LIBELLE_SERVICE.default||null,e.LIBELLE_SERVICE)if("default"!==r&&t.indexOf(r)>=0){n=e.LIBELLE_SERVICE[r];break}return i=function(e){if(e&&e.split("/").length>0){var t=window.location.pathname.split("/")[1];return"userbook"==t&&(t="directory"),"welcome"==t&&(t="."),t}}(t),(ATTag=new ATInternet.Tracker.Tag({site:e.STRUCT_ID})).setProps({SERVICE:n,TYPE:e.TYPE,OUTIL:e.OUTIL,UAI:e.STRUCT_UAI,PROJET:e.PROJET,EXPLOITANT:e.EXPLOITANT,PLATEFORME:e.PLATFORME,PROFIL:e.PROFILE},!0),ATTag.identifiedVisitor.set({id:e.ID_PERSO,category:e.PROFILE}),ATTag.page.set({name:"userbook"===i?"directory":i,chapter1:"",chapter2:"",chapter3:"",level2:e.STRUCT_UAI}),ATTag.dispatch(),[2]})})},XitiService.prototype.click=function(e,t,n,r){if(ATInternet&&ATTag){console.debug("xiti click !!!");var i={SERVICE:t.xitiService,TYPE:"TIERS",OUTIL:t.xitiOutil},o=n,a=e.STRUCT_UAI;ATTag.setProps(i,!1),ATTag.click.send({elem:r,name:o,type:"navigation",level2:a})}},XitiService}();exports.XitiService=XitiService},1880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Base64=void 0;var n=function(){function e(){}return e.encode=function(e){return btoa(e)},e.decode=function(e){return atob(e)},e}();t.Base64=n},3710:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deviceType=t.devices=void 0;var r=n(2238);t.devices={getOSInfo:function(e){return new r.UAParser(e).getOS()},isIE:function(){return-1!==navigator.userAgent.indexOf("Trident")},isiOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},isIphone:function(){return-1!=navigator.userAgent.indexOf("iPhone")},isIpod:function(){return-1!=navigator.userAgent.indexOf("iPod")},isIpad:function(){return-1!=navigator.userAgent.indexOf("iPad")},getBrowserInfo:function(){var e=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),"string"==typeof e?e.split(t):[]},t=navigator.userAgent;if(-1!==t.indexOf("OPR")){var n=e(t,"OPR/")[1];return{name:"Opera",version:parseInt(e(n,".")[0])}}if(-1!==t.indexOf("Edg")){var r=e(t,"Edg/")[1];return{name:"Edge",version:parseInt(e(r,".")[0])}}if(-1!==t.indexOf("Chrome")){var i=e(t,"Chrome/")[1];return{name:"Chrome",version:parseInt(e(i,".")[0])}}if(-1!==t.indexOf("IEMobile")){var o=e(t,"IEMobile/")[1];return{name:"MSIE",version:parseInt(e(o,";")[0])}}if(-1!==t.indexOf("AppleWebKit")&&-1===t.indexOf("Chrome")&&-1===t.indexOf("CriOS")&&-1===t.indexOf("FxiOS")){var a=e(t,"Version/")[1];return{name:"Safari",version:parseInt(e(a,".")[0])}}if(-1!==t.indexOf("Firefox")){var s=e(t,"Firefox/")[1];return{name:"Firefox",version:parseInt(e(s,".")[0])}}if(-1!==t.indexOf("MSIE")){var u=e(t,"MSIE ")[1];return{name:"MSIE",version:parseInt(e(u,";")[0])}}if(-1===t.indexOf("MSIE")&&-1!==t.indexOf("Trident")){u=e(t,"rv:")[1];return{name:"MSIE",version:parseInt(e(u,".")[0])}}if(-1!==t.indexOf("CriOS")){var c=e(t,"CriOS/")[1];return{name:"CriOS",version:parseInt(e(c,".")[0])}}if(-1!==t.indexOf("FxiOS")){var l=e(t,"FxiOS/")[1];return{name:"FxiOS",version:parseInt(e(l,".")[0])}}return{name:"unknown",version:0}}},navigator.userAgent.match(/Mobile/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/Windows Phone/i)||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/webOS/i)?(t.deviceType="Mobile",document.getElementsByTagName("html")[0].setAttribute("mobile-device","")):navigator.userAgent.match(/Tablet/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Nexus 7/i)||navigator.userAgent.match(/Nexus 10/i)||navigator.userAgent.match(/KFAPWI/i)?(t.deviceType="Tablet",document.getElementsByTagName("html")[0].setAttribute("tablet-device","")):(t.deviceType="Desktop",document.getElementsByTagName("html")[0].setAttribute("desktop-device",""))},9419:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackedActionFromWidget=void 0,i(n(2167),t),i(n(4943),t),i(n(6660),t),i(n(8701),t),i(n(1880),t),i(n(3710),t),i(n(5511),t);var o=n(2357);Object.defineProperty(t,"TrackedActionFromWidget",{enumerable:!0,get:function(){return o.KnownWidget}})},2167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8701:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.L10n=void 0;var i=r(n(381)),o=function(){function e(){}return e.initialize=function(e){var t={fr:{calendar:{lastDay:"[Hier à] HH[h]mm",sameDay:"[Aujourd'hui à] HH[h]mm",nextDay:"dddd D MMMM YYYY",lastWeek:"dddd D MMMM YYYY",nextWeek:"dddd D MMMM YYYY",sameElse:"dddd D MMMM YYYY"}}};i.default.locale(e),e in t&&i.default.updateLocale(e,t[e])},e.moment=function(e,t,n,r){return"boolean"!=typeof t||n||"boolean"==typeof r?(0,i.default)(e,t,n,r):(0,i.default)(e,r)},e.utc=function(e,t){return i.default.utc(e)},e.unix=function(e){return i.default.unix(e)},e}();t.L10n=o},3848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ManualChangeListener=t.DOMRouteChangeListener=t.AngularJSRouteChangeListener=t.ObjectGuard=t.InputGuard=t.navigationGuardService=t.NavigationGuardService=void 0;var r=n(7754),i=n(4943);function o(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}function a(e){var t=[];return e.forEach(function(e,n){return t.push(n)}),t}var s=function(){function e(){this.debounceMs=1e3,this._lastTime=null,this._lastResponse=null,this._listeners=new Map,this._guards=new Map,this._id_counter=0,this.onUserConfirmNavigate=new Array}return e.prototype.generateID=function(){return"__auto_guard_id_"+t.navigationGuardService._id_counter++},e.prototype._getGuardsMapByID=function(e){var n=t.navigationGuardService._guards.get(e);return null!=n?n:new Set},e.prototype.registerGuard=function(e,n){var r=t.navigationGuardService._getGuardsMapByID(e);r.add(n),t.navigationGuardService._guards.set(e,r)},e.prototype.unregisterGuard=function(e,n){var r=t.navigationGuardService._getGuardsMapByID(e);r.delete(n),0==r.size&&t.navigationGuardService.unregisterRoot(e)},e.prototype.unregisterRoot=function(e){t.navigationGuardService._guards.delete(e)},e.prototype.registerIndependantGuard=function(e){var n=t.navigationGuardService.generateID();return t.navigationGuardService.registerGuard(n,e),n},e.prototype.unregisterIndependantGuard=function(e){t.navigationGuardService.unregisterRoot(e)},e.prototype.registerListener=function(e){if(!t.navigationGuardService._listeners.has(e)){e.start();var n=e.onChange.subscribe(function(e){t.navigationGuardService.tryNavigate(e)});t.navigationGuardService._listeners.set(e,n)}},e.prototype.unregisterListener=function(e){var n=t.navigationGuardService._listeners.get(e);n&&(n.unsubscribe(),e.stop(),t.navigationGuardService._listeners.delete(e))},e.prototype.tryNavigate=function(e){var n=t.navigationGuardService._lastTime||0,r=(new Date).getTime()-n,s=t.navigationGuardService._lastResponse;if(null!=s&&r<t.navigationGuardService.debounceMs)s?e.accept():e.reject();else{for(var u=e.confirmMessageKey||"navigation.guard.text",c=0,l=a(t.navigationGuardService._guards);c<l.length;c++){var d=l[c],f=t.navigationGuardService._guards.get(d);if(f&&(!e.checkGuardId||"*"===e.checkGuardId||e.checkGuardId===d))for(var h=0,p=o(f);h<p.length;h++){var v=p[h];if(!v.canNavigate()){for(var m=confirm((0,i.conf)().Platform.idiom.translate(u)),g=0,b=t.navigationGuardService.onUserConfirmNavigate;g<b.length;g++){(0,b[g])(m)}return v.onUserConfirmNavigate&&v.onUserConfirmNavigate(m),t.navigationGuardService._lastTime=(new Date).getTime(),t.navigationGuardService._lastResponse=m,void(m?(e.accept(),t.navigationGuardService.resetAll()):e.reject())}}}e.accept()}},e.prototype.reset=function(e){for(var n=0,r=o(t.navigationGuardService._getGuardsMapByID(e));n<r.length;n++){r[n].reset()}},e.prototype.resetAll=function(){for(var e=0,n=a(t.navigationGuardService._guards);e<n.length;e++){var r=n[e];t.navigationGuardService.reset(r)}},e}();t.NavigationGuardService=s,t.navigationGuardService=new s;var u=function(){function e(e,t,n){void 0===n&&(n=function(e,t){return e==t}),this.currentValue=e,this.resetter=t,this.comparator=n,this.reference=this.resetter()}return e.prototype.unNaN=function(e){return"number"==typeof e&&!0===isNaN(e)?null:e},e.prototype.reset=function(){this.reference=this.resetter()},e.prototype.canNavigate=function(){return this.comparator(this.unNaN(this.reference),this.unNaN(this.currentValue()))},e}();t.InputGuard=u;var c=function(){function e(e){this.currentValue=e}return e.prototype.reset=function(){this.currentValue().guardObjectReset()},e.prototype.canNavigate=function(){return!this.currentValue().guardObjectIsDirty()},e.prototype.onUserConfirmNavigate=function(e){var t=this.currentValue();t.guardOnUserConfirmNavigate&&t.guardOnUserConfirmNavigate(e)},e}();t.ObjectGuard=c;var l=function(){function e(e){this.$rootScope=e,this.subscription=null,this.onChange=new r.Subject;var n=this;e.$on("$destroy",function(){t.navigationGuardService.unregisterListener(n)})}return e.prototype.start=function(){var e=this;this.subscription||(this.subscription=this.$rootScope.$on("$locationChangeStart",function(t,n,r){e.onChange.next({accept:function(){},reject:function(){t.preventDefault()}})}))},e.prototype.stop=function(){this.subscription&&this.subscription(),this.subscription=null},e.getInstance=function(t){return null==e._instance&&(e._instance=new e(t)),e._instance},e._instance=null,e}();t.AngularJSRouteChangeListener=l;var d=function(){function e(){var e=this;this.onChange=new r.Subject,this.callback=function(t){var n=!1;return e.onChange.next({accept:function(){n=!0},reject:function(){t.preventDefault(),t.returnValue=!1,n=!1}}),n}}return e.prototype.start=function(){window.addEventListener("beforeunload",this.callback,!1)},e.prototype.stop=function(){window.removeEventListener("beforeunload",this.callback)},e.getInstance=function(){return null==e._instance&&(e._instance=new e),e._instance},e._instance=null,e}();t.DOMRouteChangeListener=d;var f=function(){function e(){this.onChange=new r.Subject}return e.prototype.start=function(){},e.prototype.stop=function(){this.onChange.unsubscribe()},e}();t.ManualChangeListener=f},6660:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4202)),o=n(5262),a=n(9419);document.addEventListener("DOMContentLoaded",function(){o.SessionFrameworkFactory.instance().initialize().then(function(){var e;return(0,a.conf)().initialize(null===(e=window.entcore)||void 0===e?void 0:e.deploymentTag,null)}).then(function(){i.default.bootstrap(document.querySelector("html"),["app"])})},{once:!0})},9826:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.audio_recorder=void 0;var a=n(9419),s=n(7774),u=o(n(3336)),c=null;function l(){return r(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return c?[3,2]:[4,u.default.ajax("/infra/public/js/zlib.min.js",{dataType:"script"})];case 1:c=e.sent(),e.label=2;case 2:return[2,c]}})})}var d={getUserMediaLegacy:navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,getUserMedia:navigator.mediaDevices&&navigator.mediaDevices.getUserMedia,AudioContext:window.AudioContext||window.webkitAudioContext};t.audio_recorder=function(){var e,t,n,o=(0,a.conf)().Platform.idiom,u=null,c=!0,f=new Audio,h=[],p=[],v=4096,m=!1,g=0,b=0,y=new Worker("/infra/public/js/audioEncoder.js"),w=[];function _(e){var t="https:"===window.location.protocol?"wss":"ws",n=window.location.host;return"localhost:8090"===window.location.host&&(n="localhost:6502"),"".concat(t+"://"+n,"/audio/").concat("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),"?sampleRate=").concat(e)}function x(){var t=p.length;t>b&&(y.postMessage(["init",e.sampleRate]),y.postMessage(["chunk",h.slice(b,t),p.slice(b,t),(t-b)*v]),y.onmessage=function(e){if(c){var t=parseInt(""+performance.now()),n=new Zlib.Deflate(e.data);u&&u.send(n.compress()),parseInt(""+performance.now())-t>50&&(c=!1,u&&u.send("rawdata"))}else u&&u.send(e.data)},b=t)}function k(){u&&1===u.readyState&&u.close(),S()}function S(){u=null,h=[],p=[],b=0}function M(e,t){try{w.forEach(function(n){"function"==typeof n&&n(e,t)})}catch(e){}}return{elapsedTime:0,loadComponents:function(){var r=this;this.title||(this.title=a.L10n.moment().format("YYYY-MM-DD HH[h]mm")+" "+o.translate("recorder.filename.audio")),m=!0;var i=function(i){r.permission="granted",e=new d.AudioContext,y.postMessage(["init",e.sampleRate]);var o=e.createMediaStreamSource(i);t=e.createGain(),o.connect(t),(n=e.createScriptProcessor(v,2,2)).onaudioprocess=function(e){if("recording"===r.state){var t=new Float32Array(e.inputBuffer.getChannelData(0));h.push(t);var n=new Float32Array(e.inputBuffer.getChannelData(1));p.push(n),g+=v,r.elapsedTime+=e.inputBuffer.duration,x(),M(r.state)}},t.connect(n),n.connect(e.destination)};void 0!==d.getUserMedia?d.getUserMedia.call(navigator.mediaDevices,{audio:!0}).then(i).catch(function(e){e&&(r.permission="denied",console.log("err:",e))}):void 0!==d.getUserMediaLegacy&&d.getUserMediaLegacy({audio:!0},i,function(e){console.log("err:",e)})},isCompatible:function(){return void 0!==d.AudioContext&&(void 0!==d.getUserMedia||void 0!==d.getUserMediaLegacy)},stop:function(){u&&u.send("cancel"),this.state="idle",f.pause(),f.currentTime>0&&(f.currentTime=0),h=[],p=[],M(this.state)},flush:function(){this.title="",this.stop(),this.elapsedTime=0,h=[],p=[],M(this.state)},record:function(){return r(this,void 0,void 0,function(){var e,t=this;return i(this,function(n){switch(n.label){case 0:return f.pause(),"preparing"==(e=this).state?[2]:(e.state="preparing",[4,l()]);case 1:return n.sent(),u?(e.state="recording",M(e.state),m||e.loadComponents()):((u=new WebSocket(_((new d.AudioContext).sampleRate))).onopen=function(){f.currentTime>0&&(f.currentTime=0),e.state="recording",M(e.state),c||u&&u.send("rawdata"),m||e.loadComponents()},u.onerror=function(t){console.log(t),e.state="stopped",M(e.state),k(),s.notify.error(t.error)},u.onmessage=function(e){return r(t,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return e.data&&e.data.indexOf&&"function"==typeof e.data.indexOf&&-1!==e.data.indexOf("error")?(console.log(e.data),k(),s.notify.error(e.data),[3,3]):[3,1];case 1:return e.data&&e.data.text&&"function"==typeof e.data.text&&"encoding"===this.state?(n=(t=JSON).parse,[4,e.data.text()]):[3,3];case 2:"ok"===n.apply(t,[r.sent()]).status?(k(),M("saved"),this.elapsedTime=0):(console.log(e.data),k(),s.notify.error(e.data)),r.label=3;case 3:return[2]}})})},u.onclose=function(t){e.state="stopped",e.elapsedTime=0,M(e.state),S()}),[2]}})})},suspend:function(){return this.state="suspended",f.pause(),M(this.state),Promise.resolve()},pause:function(){this.state="paused",f.pause(),M(this.state)},play:function(){this.pause(),this.state="playing";var t=new Worker("/infra/public/js/audioEncoder.js");t.postMessage(["init",e.sampleRate]),t.postMessage(["wav",p,h,g]),t.onmessage=function(e){f.src=window.URL.createObjectURL(e.data),f.play()},M(this.state)},status:function(e){w.push(e)},title:"",state:"idle",permission:"idle",save:function(){x(),u&&u.send("save-"+this.title),this.state="encoding",M(this.state)},mute:function(e){t.gain.value=e?0:1}}}()},3148:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoRecorder=void 0;var o=n(4943),a=n(8701),s=n(6731),u=n(3710),c=function(){function e(e,t,n,r,i){var o=this;this.videoFactory=e,this.handleDuration=t,this.uploader=n,this.tracker=r,this.defaultDevice=i,this._status="preparing",this.constraints={audio:!0,video:{width:640,height:360,facingMode:"environment"}},this.title="",this.elapsedTime=0,this.followers=[],this.videoEndedHandler=function(e){o.gumVideo&&(o.pause(),o.gumVideo.currentTime=0)},i&&this.setCamera(i.deviceId)}return Object.defineProperty(e.prototype,"permission",{get:function(){return(0,o.session)().hasWorkflow("com.opendigitaleducation.video.controllers.VideoController|capture")?"granted":"denied"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._status},enumerable:!1,configurable:!0}),e.prototype.status=function(e){this.followers.push(e)},e.prototype.updateStatus=function(e,t){this._status=e;try{this.followers.forEach(function(t){"function"==typeof t&&t(e)})}catch(e){}},e.isCompatible=function(){var t;return"function"==typeof(null===(t=navigator.mediaDevices)||void 0===t?void 0:t.getSupportedConstraints)&&navigator.mediaDevices.getSupportedConstraints().deviceId&&!(e.isIncompatibleDevice()||e.isIncompatibleBrowser())||!1},e.isIncompatibleDevice=function(){var e=u.devices.getOSInfo();return!(e&&"iOS"===e.name&&e.version&&e.version>="14.3")&&(u.devices.isIphone()||u.devices.isIpad()||u.devices.isIpod())},e.isIncompatibleBrowser=function(){if(!window.MediaRecorder)return!0;var e=u.devices.getBrowserInfo();return-1===["Firefox","Chrome","Edge","Opera","Safari","CriOS","FxiOS"].findIndex(function(t){return e.name==t})},e.prototype.suspend=function(){return this.stopRecording(!0)},e.prototype.flush=function(){this.stopStreaming(),this.title=""},e.prototype.save=function(){var e=this;this.title||(this.title="video-"+this.generateVideoId()),this.updateStatus("encoding"),this.uploader.upload(this.getBuffer(),this.title,!0,Math.round(this.elapsedTime)).then(function(t){"succeed"===t.state?(e.tracker.generateSaveEvent(e.elapsedTime,t),e.updateStatus("saved"),e.updateStatus("suspended")):"error"===t.state&&(e.updateStatus("suspended"),t.code&&s.notify.error(t.code))}).catch(function(t){e.updateStatus("suspended"),s.notify.error("video.file.error")})},e.prototype.bindPlayEvents=function(){this.gumVideo&&(this.unbindPlayEvents(),this.gumVideo.addEventListener("ended",this.videoEndedHandler,!1))},e.prototype.unbindPlayEvents=function(){this.gumVideo&&this.gumVideo.removeEventListener("ended",this.videoEndedHandler,!1)},e.prototype.unbindRecordEvent=function(){this.gumVideo&&this.gumVideo.removeEventListener("timeupdate",this.handleDuration)},e.prototype.bindRecordEvent=function(){this.gumVideo&&(this.unbindRecordEvent(),this.gumVideo.addEventListener("timeupdate",this.handleDuration))},e.prototype.setCamera=function(e){"environment"===e||"user"===e?(delete this.constraints.video.deviceId,this.constraints.video.facingMode=e):e&&(delete this.constraints.video.facingMode,this.constraints.video.deviceId=e)},e.prototype.switchCamera=function(e){var t,n,r;return this.setCamera(e),this.stream&&("active"===(null===(t=this.mediaRecorder)||void 0===t?void 0:t.state)&&(null===(n=this.mediaRecorder)||void 0===n||n.requestData(),null===(r=this.mediaRecorder)||void 0===r||r.stop()),this.turnOffCamera(),delete this.stream),this.startStreaming()},e.prototype.play=function(){this.gumVideo?(this.preparePlay(),this.gumVideo.play(),this.updateStatus("playing")):console.warn("[VideoRecorder.play] stream not init")},e.prototype.preparePlay=function(){if("paused"!=this._status){this.unbindRecordEvent(),this.bindPlayEvents();var e=this.getBuffer();this.gumVideo&&(this.gumVideo.muted=!1,this.gumVideo.srcObject=null,this.gumVideo.autoplay=!1,this.gumVideo.src=window.URL.createObjectURL(e)),this.updateStatus("paused")}},e.prototype.pause=function(){this.gumVideo?(this.gumVideo.pause(),this.updateStatus("paused")):console.warn("[VideoRecorder.play] stream not init")},e.prototype.prepareRecord=function(){this.stream?"recording"!=this._status&&(this.gumVideo&&(this.gumVideo.muted=!0,this.gumVideo.volume=1,this.gumVideo.autoplay=!0,this.gumVideo.src&&window.URL.revokeObjectURL(this.gumVideo.src),this.gumVideo.srcObject=this.stream,this.gumVideo.controls=!1),this.unbindPlayEvents(),this.bindRecordEvent(),this.updateStatus("recording")):console.warn("[VideoRecorder.prepareRecord] stream not init")},e.prototype.stopStreaming=function(){if(this.gumVideo&&(this.unbindPlayEvents(),this.unbindRecordEvent()),this.stream){try{this.stopRecording(!1)}catch(e){}this.turnOffCamera(),delete this.stream}this.gumVideo&&delete this.gumVideo,this.updateStatus("idle")},e.prototype.startStreaming=function(e){return r(this,void 0,void 0,function(){var t,n,r;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,10]),this.stream?[2]:(this.gumVideo||(this.gumVideo=this.videoFactory()),[4,navigator.mediaDevices.getUserMedia(this.constraints)]);case 1:return n=i.sent(),this.stream=n,this.prepareRecord(),[3,10];case 2:return(t=i.sent())?"NotAllowedError"!=t.name?[3,3]:e?[2,e()]:[3,8]:[3,9];case 3:if("NotReadableError"!=t.name)return[3,8];i.label=4;case 4:return i.trys.push([4,6,,7]),[4,navigator.mediaDevices.getUserMedia({})];case 5:return n=i.sent(),this.gumVideo||(this.gumVideo=this.videoFactory()),this.stream=n,this.prepareRecord(),[3,7];case 6:return r=i.sent(),alert(r),[3,7];case 7:return[2];case 8:alert(t),i.label=9;case 9:return[3,10];case 10:return[2]}})})},e.prototype.generateVideoId=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},e.prototype.resume=function(){var e;this.prepareRecord(),null===(e=this.mediaRecorder)||void 0===e||e.resume()},e.prototype.canStartRecording=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,(0,o.session)().latestQuotaAndUsage];case 1:return[2,(e=t.sent()).quota>e.storage]}})})},e.prototype.findBestSupportedMimeType=function(){return MediaRecorder.isTypeSupported?["video/webm;codecs=vp9",'video/mp4; codecs="avc1.424028, mp4a.40.2"',"video/webm;codecs=vp8,opus","video/webm"].find(function(e){return!!MediaRecorder.isTypeSupported(e)||(console.error("[VideoRecorder.startRecording] ".concat(e," is not Supported")),!1)})||"video/ogg":"video/webm;codecs=vp8,opus"},e.prototype.prepare=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return this.gumVideo||(this.gumVideo=this.videoFactory()),[4,navigator.mediaDevices.getUserMedia(this.constraints)];case 1:return e=t.sent(),this.stream=e,this.stream?("recording"!==this._status&&this.gumVideo&&(this.gumVideo.muted=!0,this.gumVideo.volume=1,this.gumVideo.autoplay=!0,this.gumVideo.src&&window.URL.revokeObjectURL(this.gumVideo.src),this.gumVideo.srcObject=this.stream,this.gumVideo.controls=!1),[2]):(console.warn("[VideoRecorder.prepareRecord] stream not init"),[2])}})})},e.prototype.record=function(){return r(this,void 0,void 0,function(){var e,t,n=this;return i(this,function(r){switch(r.label){case 0:return[4,this.startStreaming()];case 1:if(r.sent(),!this.stream)return[2];e=(0,o.conf)().Platform.idiom,this.title||(this.title=a.L10n.moment().format("YYYY-MM-DD HH[h]mm")+" "+e.translate("recorder.filename.video")),this.prepareRecord(),this.recorded=new Array,t={mimeType:this.findBestSupportedMimeType()};try{this.mediaRecorder=new MediaRecorder(this.stream,t),this.recordMimeType=t.mimeType}catch(e){return console.error("[VideoRecorder.startRecording] Exception while creating MediaRecorder:",e),[2]}return this.mediaRecorder.onstop=function(){},this.mediaRecorder.ondataavailable=function(e){var t;e.data&&e.data.size>0&&(null===(t=n.recorded)||void 0===t||t.push(e.data))},this.mediaRecorder.start(1e3),[2]}})})},e.prototype.stopRecording=function(e){var t,n,r,i=this;return"recording"===(null===(t=this.mediaRecorder)||void 0===t?void 0:t.state)&&(null===(n=this.mediaRecorder)||void 0===n||n.requestData(),null===(r=this.mediaRecorder)||void 0===r||r.stop()),new Promise(function(t){e?setTimeout(function(){i.preparePlay(),t()},0):(i.updateStatus("stopped"),t())})},e.prototype.turnOffCamera=function(){if(this.stream)for(var e=0,t=this.stream.getTracks();e<t.length;e++){var n=t[e];try{n.stop()}catch(e){}}},e.prototype.getBuffer=function(){return new Blob(this.recorded,{type:this.recordMimeType})},e.prototype.clearBuffer=function(e){delete this.recorded,e&&this.prepareRecord()},e}();t.VideoRecorder=c},4943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.session=t.http=t.notif=t.conf=void 0;var r=n(5262);t.conf=function(){return r.ConfigurationFrameworkFactory.instance()},t.notif=function(){return r.NotifyFrameworkFactory.instance()},t.http=function(){return r.TransportFrameworkFactory.instance().http},t.session=function(){return r.SessionFrameworkFactory.instance().session}},2238:function(e,t,n){var r;
|
|
29
29
|
/*!@license
|
|
30
30
|
* UAParser.js v0.7.28
|
|
31
31
|
* Lightweight JavaScript-based User-Agent string parser
|