ode-ngjs-front 1.4.16-develop-b2school.202510201215 → 1.4.16-develop-integration.202510221210
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/{88bf8796d91b9cb078e8709f0d1df5e5.html → 048f0eccf89021875b26fda0b249c1d4.html} +0 -2
- package/dist/ode-ngjs-front.js +3 -3
- package/dist/ode-ngjs-front.js.map +1 -1
- package/dist/ts/modules/widgets.module.d.ts +1 -0
- package/dist/ts/modules/widgets.module.d.ts.map +1 -1
- package/dist/ts/services/theme-helper.service.d.ts.map +1 -1
- package/dist/ts/widgets/ptit-observatoire-widget/ptit-observatoire-widget.widget.d.ts +2 -0
- package/dist/ts/widgets/ptit-observatoire-widget/ptit-observatoire-widget.widget.d.ts.map +1 -0
- package/dist/ts/widgets/screen-time-widget/screen-time-widget.widget.d.ts +6 -7
- package/dist/ts/widgets/screen-time-widget/screen-time-widget.widget.d.ts.map +1 -1
- package/dist/version.txt +1 -1
- package/dist/widgets/ptit-observatoire-widget/ptit-observatoire-widget.widget.js +2 -0
- package/dist/widgets/ptit-observatoire-widget/ptit-observatoire-widget.widget.js.map +1 -0
- package/dist/widgets/screen-time-widget/screen-time-widget.widget.js +1 -1
- package/dist/widgets/screen-time-widget/screen-time-widget.widget.js.map +1 -1
- package/package.json +2 -2
package/dist/ode-ngjs-front.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var __webpack_modules__={807:()=>{!function(e){var t="application/x-dnd",n="application/json",r="Text",i=["move","copy","link"];function o(e,t){return"all"==t?e:e.filter(function(e){return-1!=t.toLowerCase().indexOf(e)})}e.directive("dndDraggable",["$parse","$timeout",function(e,s){return function(u,c,l){c.attr("draggable","true"),l.dndDisableIf&&u.$watch(l.dndDisableIf,function(e){c.attr("draggable",!e)}),c.on("dragstart",function(d){if(d=d.originalEvent||d,"false"==c.attr("draggable"))return!0;a.isDragging=!0,a.itemType=l.dndType&&u.$eval(l.dndType).toLowerCase(),a.dropEffect="none",a.effectAllowed=l.dndEffectAllowed||i[0],d.dataTransfer.effectAllowed=a.effectAllowed;var f=u.$eval(l.dndDraggable),h=t+(a.itemType?"-"+a.itemType:"");try{d.dataTransfer.setData(h,angular.toJson(f))}catch(e){var p=angular.toJson({item:f,type:a.itemType});try{d.dataTransfer.setData(n,p)}catch(e){var v=o(i,a.effectAllowed);d.dataTransfer.effectAllowed=v[0],d.dataTransfer.setData(r,p)}}if(c.addClass("dndDragging"),s(function(){c.addClass("dndDraggingSource")},0),d._dndHandle&&d.dataTransfer.setDragImage&&d.dataTransfer.setDragImage(c[0],0,0),e(l.dndDragstart)(u,{event:d}),l.dndCallback){var m=e(l.dndCallback);a.callback=function(e){return m(u,e||{})}}d.stopPropagation()}),c.on("dragend",function(t){t=t.originalEvent||t,u.$apply(function(){var n=a.dropEffect;e(l[{copy:"dndCopied",link:"dndLinked",move:"dndMoved",none:"dndCanceled"}[n]])(u,{event:t}),e(l.dndDragend)(u,{event:t,dropEffect:n})}),a.isDragging=!1,a.callback=void 0,c.removeClass("dndDragging"),c.removeClass("dndDraggingSource"),t.stopPropagation(),s(function(){c.removeClass("dndDraggingSource")},0)}),c.on("click",function(t){l.dndSelected&&(t=t.originalEvent||t,u.$apply(function(){e(l.dndSelected)(u,{event:t})}),t.stopPropagation())}),c.on("selectstart",function(){this.dragDrop&&this.dragDrop()})}}]),e.directive("dndList",["$parse",function(e){return function(s,u,c){var l=function(){var e;return angular.forEach(u.children(),function(t){var n=angular.element(t);n.hasClass("dndPlaceholder")&&(e=n)}),e||angular.element("<li class='dndPlaceholder'></li>")}();l.remove();var d=l[0],f=u[0],h={};function p(e){if(!e)return r;for(var i=0;i<e.length;i++)if(e[i]==r||e[i]==n||e[i].substr(0,17)==t)return e[i];return null}function v(e){return a.isDragging?a.itemType||void 0:e==r||e==n?null:e&&e.substr(18)||void 0}function m(e){return!h.disabled&&(!(!h.externalSources&&!a.isDragging)&&(!h.allowedTypes||null===e||e&&-1!=h.allowedTypes.indexOf(e)))}function g(e,t){var n=i;return t||(n=o(n,e.dataTransfer.effectAllowed)),a.isDragging&&(n=o(n,a.effectAllowed)),c.dndEffectAllowed&&(n=o(n,c.dndEffectAllowed)),n.length?e.ctrlKey&&-1!=n.indexOf("copy")?"copy":e.altKey&&-1!=n.indexOf("link")?"link":n[0]:"none"}function b(){return l.remove(),u.removeClass("dndDragover"),!0}function y(t,n,r,i,o,u){return e(t)(s,{callback:a.callback,dropEffect:r,event:n,external:!a.isDragging,index:void 0!==o?o:w(),item:u||void 0,type:i})}function w(){return Array.prototype.indexOf.call(f.children,d)}u.on("dragenter",function(e){e=e.originalEvent||e;var t=c.dndAllowedTypes&&s.$eval(c.dndAllowedTypes);h={allowedTypes:angular.isArray(t)&&t.join("|").toLowerCase().split("|"),disabled:c.dndDisableIf&&s.$eval(c.dndDisableIf),externalSources:c.dndExternalSources&&s.$eval(c.dndExternalSources),horizontal:c.dndHorizontalList&&s.$eval(c.dndHorizontalList)};var n=p(e.dataTransfer.types);if(!n||!m(v(n)))return!0;e.preventDefault()}),u.on("dragover",function(e){var t=p((e=e.originalEvent||e).dataTransfer.types),n=v(t);if(!t||!m(n))return!0;if(d.parentNode!=f&&u.append(l),e.target!=f){for(var i=e.target;i.parentNode!=f&&i.parentNode;)i=i.parentNode;if(i.parentNode==f&&i!=d){var o=i.getBoundingClientRect();if(h.horizontal)var a=e.clientX<o.left+o.width/2;else a=e.clientY<o.top+o.height/2;f.insertBefore(d,a?i:i.nextSibling)}}var s=t==r,w=g(e,s);return"none"==w||c.dndDragover&&!y(c.dndDragover,e,w,n)?b():(e.preventDefault(),s||(e.dataTransfer.dropEffect=w),u.addClass("dndDragover"),e.stopPropagation(),!1)}),u.on("drop",function(e){var t=p((e=e.originalEvent||e).dataTransfer.types),i=v(t);if(!t||!m(i))return!0;e.preventDefault();try{var o=JSON.parse(e.dataTransfer.getData(t))}catch(e){return b()}if((t==r||t==n)&&(i=o.type||void 0,o=o.item,!m(i)))return b();var u=t==r,l=g(e,u);if("none"==l)return b();var d=w();return c.dndDrop&&!(o=y(c.dndDrop,e,l,i,d,o))?b():(a.dropEffect=l,u||(e.dataTransfer.dropEffect=l),!0!==o&&s.$apply(function(){s.$eval(c.dndList).splice(d,0,o)}),y(c.dndInserted,e,l,i,d,o),b(),e.stopPropagation(),!1)}),u.on("dragleave",function(e){e=e.originalEvent||e;var t=document.elementFromPoint(e.clientX,e.clientY);f.contains(t)&&!e._dndPhShown?e._dndPhShown=!0:b()})}}]),e.directive("dndNodrag",function(){return function(e,t,n){t.attr("draggable","true"),t.on("dragstart",function(e){(e=e.originalEvent||e)._dndHandle||(e.dataTransfer.types&&e.dataTransfer.types.length||e.preventDefault(),e.stopPropagation())}),t.on("dragend",function(e){(e=e.originalEvent||e)._dndHandle||e.stopPropagation()})}}),e.directive("dndHandle",function(){return function(e,t,n){t.attr("draggable","true"),t.on("dragstart dragend",function(e){(e=e.originalEvent||e)._dndHandle=!0})}});var a={}}(angular.module("dndLists",[]))},925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"88bf8796d91b9cb078e8709f0d1df5e5.html"},6722:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"7f0136c03fe438995347a346ee478b3a.html"},5230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"2ebddef9552e6e74febdcc049e7b6cea.html"},41:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=' <div ng-class="{\'d-none\': !ctrl.showMenu || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <img class="img-fluid" skin-src="/img/illustrations/recorder-audio.svg" width="100" height="100" alt="recorder"> </div> <div ng-class="{ \'d-none\': !ctrl.showMenu || !ctrl.isAudioCompatible || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <button type="button" ng-click="ctrl.switchRecorder(\'audio\')" class="btn btn-circle" i18n-title="embed.audio.title"> <i class="fas fa-microphone"></i> </button> </div> <div ng-class="{ \'d-none\': !ctrl.showMenu || !ctrl.isVideoCompatible || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <button type="button" ng-click="ctrl.switchRecorder(\'video\')" class="btn btn-circle"> <i class="fas fa-video"></i> </button> </div> <div ng-if="!ctrl.isAudioCompatible && !ctrl.isVideoCompatible" class="flex-fill"> <p><i18n>recorder.not.supported</i18n></p> </div> <div ng-if="!ctrl.isVideoCompatible" class="flex-fill"> <div ng-if="VideoRecorder.isIncompatibleBrowser()"> <p><i18n>embed.video.incompatible.details</i18n></p> <p class="update"> <a href="https://www.google.fr/chrome/browser/desktop/" target="_blank"> <img src="/auth/public/img/chrome_logo.png"/> </a> <a href="https://www.mozilla.org/fr/firefox/new/" target="_blank"> <img src="/auth/public/img/firefox_logo.png"/> </a> </p> </div> <div ng-if="VideoRecorder.isIncompatibleDevice()"> <p><i18n>embed.video.incompatible.devices</i18n></p> <p><i18n>embed.video.incompatible.devices.footer</i18n></p> <img skin-src="images/emptyscreen-recorder-video.svg" height="150"> </div> </div> <div id="audioRecorder" class="flex-fill" ng-if="ctrl.selectedRecorder === \'audio\'"> <div class="record-timer"> <i class="fas fa-microphone"></i> [[ctrl.time()]] </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <input type="text" class="form-control" i18n-placeholder="title" ng-model="ctrl.recorder.title"/> </div> <div class="record-controls" ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <button id="btnAudioRecorder" type="button" class="btn btn-circle" ng-click="ctrl.switchAudioRecord()" ng-class="{ \'d-none\': ctrl.isVideo || !ctrl.isAudioCompatible }" ng-disabled="ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.isSaved"> <i class="fas" ng-class="{\'fa-microphone\': !ctrl.isRecording, \'fa-pause\': ctrl.isRecording}"></i> <span class="label" ng-if="ctrl.isIdle || ctrl.isStopped"><i18n>embed.record</i18n></span> <span class="label" ng-if="!ctrl.isRecording && !ctrl.isIdle && !ctrl.isStopped" ng-class="{\'d-none\': ctrl.isIdle}"><i18n>embed.resume</i18n></span> <span class="label" ng-if="ctrl.isRecording"><i18n>embed.suspend</i18n></span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.switchPlay()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading"> <i class="fas" ng-class="ctrl.isPlaying ? \'fa-pause\' : \'fa-play\'"></i> <span class="label" ng-if="!ctrl.isPlaying"><i18n>embed.play</i18n></span> <span class="label" ng-if="ctrl.isPlaying"><i18n>embed.pause</i18n></span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.saveRecord()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.recordIsSaved"> <i ng-class="ctrl.getSaveBtnClass()"></i> <span class="label"><i18n>embed.save</i18n></span> </button> <button type="button" class="btn btn-circle btn-danger" ng-click="ctrl.clean()" ng-disabled="ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i class="fas fa-times"></i> <span class="label"><i18n>embed.redo</i18n></span> </button> </div> </div> <div id="videoRecorder" class="flex-fill" navigation-guard="true" guard-root="videoCapturedGuard" ng-if="ctrl.selectedRecorder === \'video\'"> <div class="record-timer"> <i class="fas fa-video"></i> [[ctrl.msToTime(ctrl.recorder.elapsedTime)]]/[[ctrl.msToTime(ctrl.recordMaxTime)]] </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <select title="selectWebcam" class="form-select mb-2" ng-if="ctrl.videoInputDevices.length > 1" ng-options="vid as vid.label for vid in ctrl.videoInputDevices" ng-disabled="ctrl.isRecording" ng-model="ctrl.selectedVid" ng-change="ctrl.switchVideo(ctrl.selectedVid.deviceId)"> </select> </div> <div id="recorderWidgetVideoPlayer" class="record-widget-player"> </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <label class="visually-hidden" for="video-recorder"><i18n>title</i18n></label> <input type="text" id="video-recorder" class="form-control" i18n-placeholder="title" ng-model="ctrl.recorder.title"/> </div> <div class="record-controls" custom-guard="recordGuard" ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <button id="btnVideoRecorder" type="button" class="btn btn-circle" ng-if="!(ctrl.isAudio) && ctrl.isVideoCompatible" ng-click="ctrl.switchVideoRecord()" ng-disabled="ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.isSaved"> <i class="fas" ng-class="{\'fa-stop\': ctrl.isRecording, \'fa-video\': !ctrl.isRecording}"></i> <span class="label">[[ctrl.isRecording ? \'embed.stop\' : \'embed.record\' | i18n]]</span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.switchPlay()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading"> <i class="fas" ng-class="{\'fa-pause\': ctrl.isPlaying, \'fa-play\': !ctrl.isPlaying}"></i> <span class="label">[[ctrl.isPlaying ? \'embed.pause\' : \'embed.play\' | i18n]]</span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.saveRecord()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i ng-class="ctrl.getSaveBtnClass()"></i> <span class="label"> <i18n>embed.save</i18n> </span> </button> <button type="button" class="btn btn-circle btn-danger" ng-click="ctrl.clean()" ng-disabled="ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i class="fas fa-times"></i> <span class="label"><i18n>embed.redo</i18n></span> </button> </div> </div> <div ng-class="{\'d-none\': !ctrl.displaySavedMessage, \'d-block record-widget-message\': ctrl.displaySavedMessage}"> <p class="text-success">{{ctrl.recorder.title}} <i18n>embed.saved.file</i18n></p> <a ng-href="/workspace/workspace#/apps" class="btn btn btn-outline-third rounded-pill d-inline-block mx-auto"><i18n>embed.goto.file</i18n></a> <button class="btn btn-link d-block mx-auto" ng-click="ctrl.clean()"><i18n>embed.new.recording</i18n></button> </div>'},3146:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<ode-modal visible="ctrl.display.showAuthenticatedConnectorLightbox" on-close="ctrl.onClose()"> <ode-modal-title> <i18n>apps.authenticatedConnector.lightbox.title</i18n> </ode-modal-title> <ode-modal-body> <p class="text-center"> <i18n>apps.authenticatedConnector.lightbox.content</i18n> </p> </ode-modal-body> <ode-modal-footer> <button class="btn btn-light text-primary" ng-click="ctrl.onClose()"> <i18n>cancel</i18n> </button> <button class="btn btn-primary" ng-click="ctrl.onConfirm()"> <i18n>confirm</i18n> </button> </ode-modal-footer> </ode-modal> '},2306:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<i class="navbar-help ic-help" ng-click="onHelp()"></i> <ode-modal class="modal-help" visible="display.read" on-close="display.read = false"> <ode-modal-title></ode-modal-title> <ode-modal-body><div></div></ode-modal-body> </ode-modal> '},959:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=' <header class="header no-2d" ng-if="ctrl.is1D"> <div class="container-fluid"> <nav class="navbar"><a class="navbar-title d-md-none text-truncate h4" href="/welcome?token=[[ctrl.version]]" ng-bind-html="ctrl.title"></a> <div class="d-none d-md-inline-flex gap-12 align-items-center"> <img ng-src="[[ctrl.avatar]]" alt=""/><span class="navbar-text" translate key="welcome"></span> </div> <ul class="navbar-nav gap-8" aria-hidden="false" aria-label="navbar.main.navigation" role="menubar"> <li class="nav-item" ng-if="me.hasWorkflow(\'org.entcore.conversation.controllers.ConversationController|view\')"><a href="/conversation/conversation" class="nav-link" i18n-title="navbar.messages" aria-label="navbar.messages"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon notification"> <path fill-rule="evenodd" clip-rule="evenodd" d="M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z" fill="currentColor"></path> </svg><span class="position-absolute badge rounded-pill bg-danger" ng-if="nbNewMessages">[[nbNewMessages]]<span class="visually-hidden"> <i18n>navbar.messages</i18n> </span></span></a></li> <li class="nav-item"><a href="/userbook/mon-compte" class="nav-link"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="icon user"> <g clip-path="url(#one-profile_svg__a)"> <path fill="currentColor" d="M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"> </path> </g> <defs> <clipPath id="one-profile_svg__a"> <path fill="#fff" d="M0 0h24v24H0z"></path> </clipPath> </defs> </svg><span class="visually-hidden"> <i18n>navbar.myaccount</i18n> </span></a></li> <li class="nav-item"><a href="/" class="nav-link" logout i18n-title="navbar.disconnect"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon logout"> <path d="M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z" fill="currentColor"></path> </svg><span class="visually-hidden"> <i18n>navbar.disconnect</i18n> </span></a></li> <li class="nav-item" ng-if="ctrl.currentLanguage == \'fr\' && me.hasWorkflow(\'org.entcore.portal.controllers.PortalController|oldHelpEnable\')" pulsar="{index:5, style:{zIndex:1021}, i18n:\'portal.pulsar.help\', position:\'bottom center\'}"> <a href="" i18n-title="navbar.help"> <help></help> </a> </li> <li class="nav-item d-md-none"><button class="nav-link btn btn-naked" type="button" aria-controls="navbarCollapsed" aria-expanded="false" aria-label="navbar.secondary.navigation"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon rafter-down"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z" fill="currentColor"></path> </svg></button></li> </ul> </nav> </div> <nav class="navbar no-2d navbar-secondary navbar-expand-md" aria-label="navbar.secondary.navigation"> <div class="container-fluid"> <div class="collapse navbar-collapse" id="navbarCollapsed"><a class="navbar-brand d-md-block" href="/timeline/timeline" aria-label="Accueil"><img class="logo" skin-src="img/illustrations/logo.png" alt="Logo de l\'ENT"> <span class="text-truncate d-md-none" ng-bind-html="ctrl.title"></span> </a> <ul class="navbar-nav gap-8"> <li class="nav-item"><a href="/timeline/timeline?token=[[ctrl.version]]" class="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" color="#fff" class="d-md-none"> <path fill="currentColor" d="M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"> </path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.whatsnew</i18n> </span></a></li> <li class="nav-item"><a href="/userbook/annuaire?myClass&token=[[ctrl.version]]" class="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" color="#fff" class="d-md-none"> <path d="M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z" fill="currentColor"></path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.classMembers</i18n> </span></a></li> <li class="nav-item"><a href="/welcome?token=[[ctrl.version]]" class="button"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff" class="d-md-none"> <path d="M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z" fill="currentColor"></path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.myapps</i18n> </span></a></li> </ul> </div> </div> </nav> </header> <header class="header no-1d" ng-if="ctrl.is2D"> <nav class="navbar navbar-expand-md"> <div class="container-fluid" style="max-width:1700px"> <a class="navbar-brand d-md-block" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'timeline\', \'from\':\'logo\'} })" href="/timeline/timeline?token=[[ctrl.version]]" i18n-title="navbar.home"> <img class="logo" skin-src="img/illustrations/logo.png" alt="logo NEO" width="300" height="52"> </a> <ul class="navbar-nav"> <li class="nav-item"> <a href="/timeline/timeline" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'timeline\', \'from\':\'menu\'} })" class="nav-link" i18n-title="navbar.home"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff"> <path d="M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.home</i18n> </span> </a> </li> <li class="nav-item position-relative popover-trigger" id=":r2:" aria-haspopup="true" aria-expanded="false" pulsar="{index:3, style:{zIndex:1021}, i18n:\'portal.pulsar.apps\', position:\'bottom center\'}"> <a href="/welcome" i18n-title="navbar.applications" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'welcome\', \'from\':\'menu\'} })" class="nav-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff"> <path d="M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.applications</i18n> </span> </a> <div aria-labelledby=":r2:" class="popover position-absolute top-100 start-50 translate-middle-x top-100" role="tooltip"> <div class="popover-body"> <div class="widget-body d-flex flex-wrap"> <div class="text-dark" ng-if="ctrl.apps.length === 0"> <i18n>navbar.myapps.more</i18n> </div> <a class="bookmarked-app" connector-lightbox-trigger="app" aria-label="[[app.displayName]]" target="[[app.target]]" href="[[app.address]]" i18n-title="[[app.displayName]]" ng-switch="app.icon.indexOf(\'/\')" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'app\', \'app\':app} })" ng-repeat="app in ctrl.apps | limitTo:6 track by $index"> <i class="fs-1" ng-class="ctrl.getIconClass(app)" ng-switch-when="-1"></i> <img skin-src="[[app.icon]]" ng-switch-default alt="[[app.displayName]]"/> </a> </div> </div> <div class="popover-footer widget-footer border-top border-ghost"> <div class="widget-footer"> <div class="widget-footer-action"> <a href="/welcome" class="link"> <i18n>plus</i18n> </a> </div> </div> </div> </div> </li> <li class="nav-item" ng-include="ctrl.conversationUnreadUrl"> <div class="nav-link conversation" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'conversation\'} })"></div> </li> <li class="nav-item" ng-if="ctrl.currentLanguage == \'fr\' && me.hasWorkflow(\'org.entcore.portal.controllers.PortalController|oldHelpEnable\')" pulsar="{index:5, style:{zIndex:1021}, i18n:\'portal.pulsar.help\', position:\'bottom center\'}"> <a href="" class="nav-link" i18n-title="navbar.help"> <help></help> </a> </li> <li class="nav-item"> <div class="dropdown"> <button class="nav-link btn btn-naked d-md-none" type="button" aria-controls="dropdown-navbar" aria-expanded="false" aria-label="navbar.open.menu" ng-click="dropdownToggle = !dropdownToggle"> <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon rafter-down" color="#fff"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z" fill="currentColor"></path> </svg> </button> <ul class="dropdown-menu dropdown-menu-end" id="dropdown-navbar" ng-class="{\'show\' : dropdownToggle}"> <li class="nav-item" data-community ng-if="me.hasWorkflow(\'net.atos.entng.community.controllers.CommunityController|view\')"> <a class="nav-link dropdown-item" href="/community" i18n-title="navbar.community" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'community\'} })"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true" class="icon community"><path fill="currentColor" d="M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"></path></svg> <span class="nav-text"><i18n>navbar.community</i18n></span> </a> </li> <li class="nav-item position-relative popover-trigger" id=":r3:" aria-haspopup="true" aria-expanded="false" ng-if="me.hasWorkflow(\'fr.openent.searchengine.controllers.SearchEngineController|view\')"> <a href="/searchengine" i18n-title="navbar.search" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'searchengine\', \'from\':\'menu\'} })" class="nav-link dropdown-item"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon search"> <path d="M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.search</i18n> </span> </a> <div aria-labelledby=":r3:" class="popover position-absolute top-100 start-50 translate-middle-x" role="tooltip"> <div class="search-text input-group py-8 px-12"> <input id="my-search-input" class="form-control form-control-sm" type="text" name="my-search-input" ng-model="ctrl.mysearch" ng-keyup="ctrl.launchSearch($event, \'key\');"/><button class="btn btn-filled btn-primary btn-sm btn-icon btn-sm btn-search btn-sm" i18n-title="navbar.search" ng-click="ctrl.launchSearch($event, \'button\');"> <span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true"> <path fill="currentColor" fill-rule="evenodd" d="M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z" clip-rule="evenodd"></path> </svg></span> </button> </div> </div> </li> <li class="nav-item"> <a href="/userbook/mon-compte" pulsar="{ index:4, style:{zIndex:1021}, i18n:\'portal.pulsar.account\', position:\'bottom center\'}" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'myaccount\'} })" i18n-title="navbar.myaccount" class="nav-link dropdown-item"> <div class="avatar avatar-sm rounded-circle bg-white"> <img data-ng-src="[[ctrl.avatar ? ctrl.avatar+\'?thumbnail=48x48\' : \'\']]" width="30" height="30" alt="[[ctrl.username]]"/> </div> <span class="nav-text"> <i18n>navbar.myaccount</i18n> </span> </a> </li> <li class="nav-item"> <hr class="dropdown-divider"> </li> <li class="nav-item"> <a href="" logout i18n-title="navbar.disconnect" class="nav-link dropdown-item"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon logout"> <path d="M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.disconnect</i18n> </span> </a> </li> </ul> </div> </li> </ul> </div> </nav> </header>'},4809:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="row"> <input type="text" ng-model="ctrl.search" i18n-placeholder="search" autocomplete="off"/> </div> '},9018:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="toast fade" role="alert" aria-live="assertive" aria-atomic="true"> <div class="toast-header"> <strong class="me-auto">[[header]]</strong> <small class="text-muted">[[since]]</small> <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close" ng-click="visible(false)"></button> </div> <div class="toast-body" ng-transclude></div> </div>'},9068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<section class="lightbox" ng-class="{\'lightbox\': !tiny, \'tiny-lightbox\': tiny}"> <div class="background"></div> <div class="content"> <div class="twelve cell" ng-transclude></div> <div class="close-lightbox"> <i class="close-2x"></i> </div> </div> </section>'},7597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="{{ctrl.id+\'Label\'}}" aria-hidden="true" ng-class="{show: ctrl.visible}" ng-style="ctrl.getStyle()"> <div class="modal-backdrop fade show" style="z-index:1040"></div> <div class="modal-dialog" ng-class="ctrl.getSizeClass()" role="document" style="z-index:1050"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="{{ctrl.id+\'Label\'}}" ng-transclude="title"></h5> <button type="button" class="btn-close" aria-label="Close" ng-if="ctrl.onClose" ng-click="ctrl.onClose()"> </button> </div> <div class="modal-body" ng-transclude="body"></div> <div class="modal-footer" ng-transclude="footer"></div> </div> </div> </div> '},9325:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<style id="pulsar-css">pulsar{z-index:1036;position:absolute;pointer-events:all}.pulsar-layer{box-shadow:0 0 0 99999px rgb(0 0 0 / 60%);position:absolute;border-radius:2px;z-index:1035}pulsar .content{background:#fff;width:300px;box-shadow:1px 1px 7px rgb(0 0 0 / 40%);padding:15px;box-sizing:border-box;border:6px solid #ddd;border-radius:2px;position:relative}pulsar .content .inf{position:absolute;left:10px;top:10px;color:#fff;background:#ffaa4d;border-radius:50%;line-height:22px;text-align:center;width:22px;height:22px}pulsar .content .inf::before{font-size:18px;content:\'i\';font-style:italic;font-weight:700;display:inline-block;margin-left:-1px}pulsar .content .close{position:absolute;right:10px;top:10px;width:22px;height:22px;line-height:17px;background:#ddd;border-radius:50%;color:#636363}pulsar i.close{font-family:generic-icons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none;font-weight:400!important;text-align:center;cursor:pointer;font-style:normal}pulsar .content>div.text{margin-top:25px;padding:10px;font-size:14px;line-height:18px}pulsar .content .close::before{content:\'\\e866\';font-size:9px}pulsar nav.dots ul{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:0;margin:15px 0 25px}pulsar nav.dots li.dot{list-style-type:none;margin:0 10px;cursor:pointer}pulsar nav.dots li.dot::before{content:" ";display:block;width:17px;height:17px;background:0 0;border:2px solid silver;border-radius:50%;box-sizing:border-box;transition:all 250ms ease}pulsar nav.dots li.dot:hover::before{border-color:#ff8500;background:0 0}nav.dots li.dot.active::before{color:#4bafd5}pulsar nav.dots li.dot.active::before{border-color:#ff8500;background:#ff8500}pulsar nav.dots li.dot::before{font-size:60px;width:12px;height:12px}pulsar nav.dots li.dot::before{content:" ";display:block;width:17px;height:17px;background:0 0;border:2px solid silver;border-radius:50%;box-sizing:border-box;transition:all 250ms ease}pulsar .arrow{width:0;height:0;border-style:solid;border-width:0 8.4px 14px 8.4px;border-color:transparent transparent #ddd transparent;z-index:1;position:absolute}pulsar.middle .arrow{left:calc(50% - 7px);top:-14px}pulsar.left .arrow{transform:rotate(90deg);right:-14px}pulsar.left.top .arrow{top:1px}pulsar.left.center .arrow{top:calc(50% - 7px)}pulsar.right.center .arrow{top:calc(50% - 7px)}pulsar.right .arrow{transform:rotate(270deg);left:-14px}pulsar.right.top .arrow{top:1px}pulsar.center.top .arrow{transform:rotate(180deg);top:100%;left:calc(50% - 7px)}pulsar.bottom .arrow{top:-14px}pulsar.bottom.center .arrow{left:calc(50% - 7px)}pulsar.bottom.left .arrow,pulsar.bottom.right .arrow{top:1px}pulsar.bottom.right .arrow{left:-14px;transform:rotate(-90deg)}pulsar.bottom.left .arrow{transform:rotate(90deg);right:-14px;left:auto}.pulsar-button{position:absolute;z-index:999;width:40px;height:40px}.pulsar-button::after,.pulsar-button::before{content:"";opacity:.5;position:absolute;z-index:-1;inset:-6px 0 0 -6px;height:42px;width:42px;content:"";border-radius:50%;box-shadow:0 0 5px 6px rgb(120 218 255 / 60%);transform:scale(.1,.1);transition:all 250ms ease;animation:pulsate 1s ease-out;animation-iteration-count:infinite}.pulsar-button::after{animation-delay:.3s}.pulse-spot{position:absolute;cursor:pointer;width:30px;height:30px;font-size:18px;text-align:center;line-height:21px;font-weight:700;color:#fff;border-radius:50%;border:4px solid transparent;background:#ff8500;transition:all 250ms ease}.pulse-spot::before{content:\'i\';font-style:italic;font-family:\'Times New Roman\',Times,serif}pulsar .row{flex-direction:row-reverse;justify-content:space-between;margin-left:0!important;margin-right:0!important;max-width:100%;width:100%;position:relative;clear:both;box-sizing:border-box}pulsar .row>*{width:auto}@keyframes pulsate{0%{transform:scale(.1,.1);opacity:0}50%{opacity:1}100%{transform:scale(1.2,1.2);opacity:0}}.pulsar-button{display:none}@media (min-width:992px){.pulsar-button{display:block}}</style>'},6066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<style id="widget-container-css">ul[dnd-list],ul[dnd-list]>li{position:relative}ul[dnd-list]{padding-left:0}ul[dnd-list][dnd-drop]{min-height:42px;transition:all .1s ease-in-out 0s}ul[dnd-list][dnd-dragover].dndReject{display:block;background-color:#ff8c8c;min-height:90px;border-radius:6px;margin-bottom:2em}ul[dnd-list] .dndDraggingSource{display:none}ul[dnd-list] .dndPlaceholder{display:block;background-color:#ffdbb7;min-height:90px;border-radius:6px;margin-bottom:2em}ul[dnd-list] li{list-style:none}.dndDragging:not(.dndDraggingSource){cursor:grabbing!important;border:1px solid rgb(255 133 0)}.dnDragover{cursor:grabbing}.dndDragging:not(.dndDraggingSource):active,.dndDragging:not(.dndDraggingSource):focus,.dndDragging:not(.dndDraggingSource):hover{cursor:grabbing;cursor:-webkit-grabbing}</style> <ul dnd-list dnd-allowed-types="[]" ng-if="ctrl.lockedWidgets.length"> <li ng-repeat="widget in ctrl.lockedWidgets track by widget.platformConf.id" class="widget widget-locked" ode-widget="widget"> </li> </ul> <ul dnd-list dnd-allowed-types="[\'left\',\'right\']" dnd-dragover="ctrl.onDnDDragOver(event, index, type, dropEffect)" dnd-drop="ctrl.onDnDDrop(event, item, index, dropEffect)"> <li ng-repeat="widget in ctrl.dndWidgets track by widget.platformConf.id" class="widget" ode-widget="widget" dnd-draggable="widget.platformConf.id" dnd-type="widget.userPref.position" dnd-disable-if="ctrl.isMobileView"> </li> </ul>'},2011:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="<span>{{ctrl.sayHello()}}</span>"},991:function(e){e.exports=function(){var e=window,t=document,n={on:function(t,n,r){"addEventListener"in e?t.addEventListener(n,r,!1):t.attachEvent("on"+n,r)},off:function(t,n,r){"removeEventListener"in e?t.removeEventListener(n,r,!1):t.detachEvent("on"+n,r)},bind:function(e,t){return function(){e.apply(t,arguments)}},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},config:function(e,t){return null!=e?e:t},transSupport:!1,useFilter:/msie [678]/i.test(navigator.userAgent),_checkTransition:function(){var e=t.createElement("div"),n={webkit:"webkit",Moz:"",O:"o",ms:"MS"};for(var r in n)r+"Transition"in e.style&&(this.vendorPrefix=n[r],this.transSupport=!0)}};n._checkTransition();var r=function(t){t||(t={}),this.queue=[],this.baseCls=t.baseCls||"humane",this.addnCls=t.addnCls||"",this.timeout="timeout"in t?t.timeout:2500,this.waitForMove=t.waitForMove||!1,this.clickToClose=t.clickToClose||!1,this.timeoutAfterMove=t.timeoutAfterMove||!1,this.container=t.container;try{this._setupEl()}catch(t){n.on(e,"load",n.bind(this._setupEl,this))}};return r.prototype={constructor:r,_setupEl:function(){var e=t.createElement("div");if(e.style.display="none",!this.container){if(!t.body)throw"document.body is null";this.container=t.body}this.container.appendChild(e),this.el=e,this.removeEvent=n.bind(function(){var e=n.config(this.currentMsg.timeoutAfterMove,this.timeoutAfterMove);e?setTimeout(n.bind(this.remove,this),e):this.remove()},this),this.transEvent=n.bind(this._afterAnimation,this),this._run()},_afterTimeout:function(){n.config(this.currentMsg.waitForMove,this.waitForMove)?this.removeEventsSet||(n.on(t.body,"mousemove",this.removeEvent),n.on(t.body,"click",this.removeEvent),n.on(t.body,"keypress",this.removeEvent),n.on(t.body,"touchstart",this.removeEvent),this.removeEventsSet=!0):this.remove()},_run:function(){if(!this._animating&&this.queue.length&&this.el){this._animating=!0,this.currentTimer&&(clearTimeout(this.currentTimer),this.currentTimer=null);var e=this.queue.shift();n.config(e.clickToClose,this.clickToClose)&&(n.on(this.el,"click",this.removeEvent),n.on(this.el,"touchstart",this.removeEvent));var t=n.config(e.timeout,this.timeout);t>0&&(this.currentTimer=setTimeout(n.bind(this._afterTimeout,this),t)),n.isArray(e.html)&&(e.html="<ul><li>"+e.html.join("<li>")+"</ul>"),this.el.innerHTML=e.html,this.currentMsg=e,this.el.className=this.baseCls,n.transSupport?(this.el.style.display="block",setTimeout(n.bind(this._showMsg,this),50)):this._showMsg()}},_setOpacity:function(e){if(n.useFilter)try{this.el.filters.item("DXImageTransform.Microsoft.Alpha").Opacity=100*e}catch(e){}else this.el.style.opacity=String(e)},_showMsg:function(){var e=n.config(this.currentMsg.addnCls,this.addnCls);if(n.transSupport)this.el.className=this.baseCls+" "+e+" "+this.baseCls+"-animate";else{var t=0;this.el.className=this.baseCls+" "+e+" "+this.baseCls+"-js-animate",this._setOpacity(0),this.el.style.display="block";var r=this,i=setInterval(function(){t<1?((t+=.1)>1&&(t=1),r._setOpacity(t)):clearInterval(i)},30)}},_hideMsg:function(){var e=n.config(this.currentMsg.addnCls,this.addnCls);if(n.transSupport)this.el.className=this.baseCls+" "+e,n.on(this.el,n.vendorPrefix?n.vendorPrefix+"TransitionEnd":"transitionend",this.transEvent);else var t=1,r=this,i=setInterval(function(){t>0?((t-=.1)<0&&(t=0),r._setOpacity(t)):(r.el.className=r.baseCls+" "+e,clearInterval(i),r._afterAnimation())},30)},_afterAnimation:function(){n.transSupport&&n.off(this.el,n.vendorPrefix?n.vendorPrefix+"TransitionEnd":"transitionend",this.transEvent),this.currentMsg.cb&&this.currentMsg.cb(),this.el.style.display="none",this._animating=!1,this._run()},remove:function(e){var r="function"==typeof e?e:null;n.off(t.body,"mousemove",this.removeEvent),n.off(t.body,"click",this.removeEvent),n.off(t.body,"keypress",this.removeEvent),n.off(t.body,"touchstart",this.removeEvent),n.off(this.el,"click",this.removeEvent),n.off(this.el,"touchstart",this.removeEvent),this.removeEventsSet=!1,r&&this.currentMsg&&(this.currentMsg.cb=r),this._animating?this._hideMsg():r&&r()},log:function(e,t,n,r){var i={};if(r)for(var o in r)i[o]=r[o];if("function"==typeof t)n=t;else if(t)for(var o in t)i[o]=t[o];return i.html=e,n&&(i.cb=n),this.queue.push(i),this._run(),this},spawn:function(e){var t=this;return function(n,r,i){return t.log.call(t,n,r,i,e),t}},create:function(e){return new r(e)}},new r}()},9740:function(e,t,n){!function(e){"use strict";
|
|
1
|
+
(()=>{var __webpack_modules__={807:()=>{!function(e){var t="application/x-dnd",n="application/json",r="Text",i=["move","copy","link"];function o(e,t){return"all"==t?e:e.filter(function(e){return-1!=t.toLowerCase().indexOf(e)})}e.directive("dndDraggable",["$parse","$timeout",function(e,s){return function(u,c,l){c.attr("draggable","true"),l.dndDisableIf&&u.$watch(l.dndDisableIf,function(e){c.attr("draggable",!e)}),c.on("dragstart",function(d){if(d=d.originalEvent||d,"false"==c.attr("draggable"))return!0;a.isDragging=!0,a.itemType=l.dndType&&u.$eval(l.dndType).toLowerCase(),a.dropEffect="none",a.effectAllowed=l.dndEffectAllowed||i[0],d.dataTransfer.effectAllowed=a.effectAllowed;var f=u.$eval(l.dndDraggable),h=t+(a.itemType?"-"+a.itemType:"");try{d.dataTransfer.setData(h,angular.toJson(f))}catch(e){var p=angular.toJson({item:f,type:a.itemType});try{d.dataTransfer.setData(n,p)}catch(e){var v=o(i,a.effectAllowed);d.dataTransfer.effectAllowed=v[0],d.dataTransfer.setData(r,p)}}if(c.addClass("dndDragging"),s(function(){c.addClass("dndDraggingSource")},0),d._dndHandle&&d.dataTransfer.setDragImage&&d.dataTransfer.setDragImage(c[0],0,0),e(l.dndDragstart)(u,{event:d}),l.dndCallback){var m=e(l.dndCallback);a.callback=function(e){return m(u,e||{})}}d.stopPropagation()}),c.on("dragend",function(t){t=t.originalEvent||t,u.$apply(function(){var n=a.dropEffect;e(l[{copy:"dndCopied",link:"dndLinked",move:"dndMoved",none:"dndCanceled"}[n]])(u,{event:t}),e(l.dndDragend)(u,{event:t,dropEffect:n})}),a.isDragging=!1,a.callback=void 0,c.removeClass("dndDragging"),c.removeClass("dndDraggingSource"),t.stopPropagation(),s(function(){c.removeClass("dndDraggingSource")},0)}),c.on("click",function(t){l.dndSelected&&(t=t.originalEvent||t,u.$apply(function(){e(l.dndSelected)(u,{event:t})}),t.stopPropagation())}),c.on("selectstart",function(){this.dragDrop&&this.dragDrop()})}}]),e.directive("dndList",["$parse",function(e){return function(s,u,c){var l=function(){var e;return angular.forEach(u.children(),function(t){var n=angular.element(t);n.hasClass("dndPlaceholder")&&(e=n)}),e||angular.element("<li class='dndPlaceholder'></li>")}();l.remove();var d=l[0],f=u[0],h={};function p(e){if(!e)return r;for(var i=0;i<e.length;i++)if(e[i]==r||e[i]==n||e[i].substr(0,17)==t)return e[i];return null}function v(e){return a.isDragging?a.itemType||void 0:e==r||e==n?null:e&&e.substr(18)||void 0}function m(e){return!h.disabled&&(!(!h.externalSources&&!a.isDragging)&&(!h.allowedTypes||null===e||e&&-1!=h.allowedTypes.indexOf(e)))}function g(e,t){var n=i;return t||(n=o(n,e.dataTransfer.effectAllowed)),a.isDragging&&(n=o(n,a.effectAllowed)),c.dndEffectAllowed&&(n=o(n,c.dndEffectAllowed)),n.length?e.ctrlKey&&-1!=n.indexOf("copy")?"copy":e.altKey&&-1!=n.indexOf("link")?"link":n[0]:"none"}function b(){return l.remove(),u.removeClass("dndDragover"),!0}function y(t,n,r,i,o,u){return e(t)(s,{callback:a.callback,dropEffect:r,event:n,external:!a.isDragging,index:void 0!==o?o:w(),item:u||void 0,type:i})}function w(){return Array.prototype.indexOf.call(f.children,d)}u.on("dragenter",function(e){e=e.originalEvent||e;var t=c.dndAllowedTypes&&s.$eval(c.dndAllowedTypes);h={allowedTypes:angular.isArray(t)&&t.join("|").toLowerCase().split("|"),disabled:c.dndDisableIf&&s.$eval(c.dndDisableIf),externalSources:c.dndExternalSources&&s.$eval(c.dndExternalSources),horizontal:c.dndHorizontalList&&s.$eval(c.dndHorizontalList)};var n=p(e.dataTransfer.types);if(!n||!m(v(n)))return!0;e.preventDefault()}),u.on("dragover",function(e){var t=p((e=e.originalEvent||e).dataTransfer.types),n=v(t);if(!t||!m(n))return!0;if(d.parentNode!=f&&u.append(l),e.target!=f){for(var i=e.target;i.parentNode!=f&&i.parentNode;)i=i.parentNode;if(i.parentNode==f&&i!=d){var o=i.getBoundingClientRect();if(h.horizontal)var a=e.clientX<o.left+o.width/2;else a=e.clientY<o.top+o.height/2;f.insertBefore(d,a?i:i.nextSibling)}}var s=t==r,w=g(e,s);return"none"==w||c.dndDragover&&!y(c.dndDragover,e,w,n)?b():(e.preventDefault(),s||(e.dataTransfer.dropEffect=w),u.addClass("dndDragover"),e.stopPropagation(),!1)}),u.on("drop",function(e){var t=p((e=e.originalEvent||e).dataTransfer.types),i=v(t);if(!t||!m(i))return!0;e.preventDefault();try{var o=JSON.parse(e.dataTransfer.getData(t))}catch(e){return b()}if((t==r||t==n)&&(i=o.type||void 0,o=o.item,!m(i)))return b();var u=t==r,l=g(e,u);if("none"==l)return b();var d=w();return c.dndDrop&&!(o=y(c.dndDrop,e,l,i,d,o))?b():(a.dropEffect=l,u||(e.dataTransfer.dropEffect=l),!0!==o&&s.$apply(function(){s.$eval(c.dndList).splice(d,0,o)}),y(c.dndInserted,e,l,i,d,o),b(),e.stopPropagation(),!1)}),u.on("dragleave",function(e){e=e.originalEvent||e;var t=document.elementFromPoint(e.clientX,e.clientY);f.contains(t)&&!e._dndPhShown?e._dndPhShown=!0:b()})}}]),e.directive("dndNodrag",function(){return function(e,t,n){t.attr("draggable","true"),t.on("dragstart",function(e){(e=e.originalEvent||e)._dndHandle||(e.dataTransfer.types&&e.dataTransfer.types.length||e.preventDefault(),e.stopPropagation())}),t.on("dragend",function(e){(e=e.originalEvent||e)._dndHandle||e.stopPropagation()})}}),e.directive("dndHandle",function(){return function(e,t,n){t.attr("draggable","true"),t.on("dragstart dragend",function(e){(e=e.originalEvent||e)._dndHandle=!0})}});var a={}}(angular.module("dndLists",[]))},925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"048f0eccf89021875b26fda0b249c1d4.html"},6722:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"7f0136c03fe438995347a346ee478b3a.html"},5230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"2ebddef9552e6e74febdcc049e7b6cea.html"},41:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=' <div ng-class="{\'d-none\': !ctrl.showMenu || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <img class="img-fluid" skin-src="/img/illustrations/recorder-audio.svg" width="100" height="100" alt="recorder"> </div> <div ng-class="{ \'d-none\': !ctrl.showMenu || !ctrl.isAudioCompatible || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <button type="button" ng-click="ctrl.switchRecorder(\'audio\')" class="btn btn-circle" i18n-title="embed.audio.title"> <i class="fas fa-microphone"></i> </button> </div> <div ng-class="{ \'d-none\': !ctrl.showMenu || !ctrl.isVideoCompatible || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <button type="button" ng-click="ctrl.switchRecorder(\'video\')" class="btn btn-circle"> <i class="fas fa-video"></i> </button> </div> <div ng-if="!ctrl.isAudioCompatible && !ctrl.isVideoCompatible" class="flex-fill"> <p><i18n>recorder.not.supported</i18n></p> </div> <div ng-if="!ctrl.isVideoCompatible" class="flex-fill"> <div ng-if="VideoRecorder.isIncompatibleBrowser()"> <p><i18n>embed.video.incompatible.details</i18n></p> <p class="update"> <a href="https://www.google.fr/chrome/browser/desktop/" target="_blank"> <img src="/auth/public/img/chrome_logo.png"/> </a> <a href="https://www.mozilla.org/fr/firefox/new/" target="_blank"> <img src="/auth/public/img/firefox_logo.png"/> </a> </p> </div> <div ng-if="VideoRecorder.isIncompatibleDevice()"> <p><i18n>embed.video.incompatible.devices</i18n></p> <p><i18n>embed.video.incompatible.devices.footer</i18n></p> <img skin-src="images/emptyscreen-recorder-video.svg" height="150"> </div> </div> <div id="audioRecorder" class="flex-fill" ng-if="ctrl.selectedRecorder === \'audio\'"> <div class="record-timer"> <i class="fas fa-microphone"></i> [[ctrl.time()]] </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <input type="text" class="form-control" i18n-placeholder="title" ng-model="ctrl.recorder.title"/> </div> <div class="record-controls" ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <button id="btnAudioRecorder" type="button" class="btn btn-circle" ng-click="ctrl.switchAudioRecord()" ng-class="{ \'d-none\': ctrl.isVideo || !ctrl.isAudioCompatible }" ng-disabled="ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.isSaved"> <i class="fas" ng-class="{\'fa-microphone\': !ctrl.isRecording, \'fa-pause\': ctrl.isRecording}"></i> <span class="label" ng-if="ctrl.isIdle || ctrl.isStopped"><i18n>embed.record</i18n></span> <span class="label" ng-if="!ctrl.isRecording && !ctrl.isIdle && !ctrl.isStopped" ng-class="{\'d-none\': ctrl.isIdle}"><i18n>embed.resume</i18n></span> <span class="label" ng-if="ctrl.isRecording"><i18n>embed.suspend</i18n></span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.switchPlay()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading"> <i class="fas" ng-class="ctrl.isPlaying ? \'fa-pause\' : \'fa-play\'"></i> <span class="label" ng-if="!ctrl.isPlaying"><i18n>embed.play</i18n></span> <span class="label" ng-if="ctrl.isPlaying"><i18n>embed.pause</i18n></span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.saveRecord()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.recordIsSaved"> <i ng-class="ctrl.getSaveBtnClass()"></i> <span class="label"><i18n>embed.save</i18n></span> </button> <button type="button" class="btn btn-circle btn-danger" ng-click="ctrl.clean()" ng-disabled="ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i class="fas fa-times"></i> <span class="label"><i18n>embed.redo</i18n></span> </button> </div> </div> <div id="videoRecorder" class="flex-fill" navigation-guard="true" guard-root="videoCapturedGuard" ng-if="ctrl.selectedRecorder === \'video\'"> <div class="record-timer"> <i class="fas fa-video"></i> [[ctrl.msToTime(ctrl.recorder.elapsedTime)]]/[[ctrl.msToTime(ctrl.recordMaxTime)]] </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <select title="selectWebcam" class="form-select mb-2" ng-if="ctrl.videoInputDevices.length > 1" ng-options="vid as vid.label for vid in ctrl.videoInputDevices" ng-disabled="ctrl.isRecording" ng-model="ctrl.selectedVid" ng-change="ctrl.switchVideo(ctrl.selectedVid.deviceId)"> </select> </div> <div id="recorderWidgetVideoPlayer" class="record-widget-player"> </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <label class="visually-hidden" for="video-recorder"><i18n>title</i18n></label> <input type="text" id="video-recorder" class="form-control" i18n-placeholder="title" ng-model="ctrl.recorder.title"/> </div> <div class="record-controls" custom-guard="recordGuard" ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <button id="btnVideoRecorder" type="button" class="btn btn-circle" ng-if="!(ctrl.isAudio) && ctrl.isVideoCompatible" ng-click="ctrl.switchVideoRecord()" ng-disabled="ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.isSaved"> <i class="fas" ng-class="{\'fa-stop\': ctrl.isRecording, \'fa-video\': !ctrl.isRecording}"></i> <span class="label">[[ctrl.isRecording ? \'embed.stop\' : \'embed.record\' | i18n]]</span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.switchPlay()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading"> <i class="fas" ng-class="{\'fa-pause\': ctrl.isPlaying, \'fa-play\': !ctrl.isPlaying}"></i> <span class="label">[[ctrl.isPlaying ? \'embed.pause\' : \'embed.play\' | i18n]]</span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.saveRecord()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i ng-class="ctrl.getSaveBtnClass()"></i> <span class="label"> <i18n>embed.save</i18n> </span> </button> <button type="button" class="btn btn-circle btn-danger" ng-click="ctrl.clean()" ng-disabled="ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i class="fas fa-times"></i> <span class="label"><i18n>embed.redo</i18n></span> </button> </div> </div> <div ng-class="{\'d-none\': !ctrl.displaySavedMessage, \'d-block record-widget-message\': ctrl.displaySavedMessage}"> <p class="text-success">{{ctrl.recorder.title}} <i18n>embed.saved.file</i18n></p> <a ng-href="/workspace/workspace#/apps" class="btn btn btn-outline-third rounded-pill d-inline-block mx-auto"><i18n>embed.goto.file</i18n></a> <button class="btn btn-link d-block mx-auto" ng-click="ctrl.clean()"><i18n>embed.new.recording</i18n></button> </div>'},3146:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<ode-modal visible="ctrl.display.showAuthenticatedConnectorLightbox" on-close="ctrl.onClose()"> <ode-modal-title> <i18n>apps.authenticatedConnector.lightbox.title</i18n> </ode-modal-title> <ode-modal-body> <p class="text-center"> <i18n>apps.authenticatedConnector.lightbox.content</i18n> </p> </ode-modal-body> <ode-modal-footer> <button class="btn btn-light text-primary" ng-click="ctrl.onClose()"> <i18n>cancel</i18n> </button> <button class="btn btn-primary" ng-click="ctrl.onConfirm()"> <i18n>confirm</i18n> </button> </ode-modal-footer> </ode-modal> '},2306:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<i class="navbar-help ic-help" ng-click="onHelp()"></i> <ode-modal class="modal-help" visible="display.read" on-close="display.read = false"> <ode-modal-title></ode-modal-title> <ode-modal-body><div></div></ode-modal-body> </ode-modal> '},959:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=' <header class="header no-2d" ng-if="ctrl.is1D"> <div class="container-fluid"> <nav class="navbar"><a class="navbar-title d-md-none text-truncate h4" href="/welcome?token=[[ctrl.version]]" ng-bind-html="ctrl.title"></a> <div class="d-none d-md-inline-flex gap-12 align-items-center"> <img ng-src="[[ctrl.avatar]]" alt=""/><span class="navbar-text" translate key="welcome"></span> </div> <ul class="navbar-nav gap-8" aria-hidden="false" aria-label="navbar.main.navigation" role="menubar"> <li class="nav-item" ng-if="me.hasWorkflow(\'org.entcore.conversation.controllers.ConversationController|view\')"><a href="/conversation/conversation" class="nav-link" i18n-title="navbar.messages" aria-label="navbar.messages"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon notification"> <path fill-rule="evenodd" clip-rule="evenodd" d="M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z" fill="currentColor"></path> </svg><span class="position-absolute badge rounded-pill bg-danger" ng-if="nbNewMessages">[[nbNewMessages]]<span class="visually-hidden"> <i18n>navbar.messages</i18n> </span></span></a></li> <li class="nav-item"><a href="/userbook/mon-compte" class="nav-link"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="icon user"> <g clip-path="url(#one-profile_svg__a)"> <path fill="currentColor" d="M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"> </path> </g> <defs> <clipPath id="one-profile_svg__a"> <path fill="#fff" d="M0 0h24v24H0z"></path> </clipPath> </defs> </svg><span class="visually-hidden"> <i18n>navbar.myaccount</i18n> </span></a></li> <li class="nav-item"><a href="/" class="nav-link" logout i18n-title="navbar.disconnect"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon logout"> <path d="M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z" fill="currentColor"></path> </svg><span class="visually-hidden"> <i18n>navbar.disconnect</i18n> </span></a></li> <li class="nav-item" ng-if="ctrl.currentLanguage == \'fr\' && me.hasWorkflow(\'org.entcore.portal.controllers.PortalController|oldHelpEnable\')" pulsar="{index:5, style:{zIndex:1021}, i18n:\'portal.pulsar.help\', position:\'bottom center\'}"> <a href="" i18n-title="navbar.help"> <help></help> </a> </li> <li class="nav-item d-md-none"><button class="nav-link btn btn-naked" type="button" aria-controls="navbarCollapsed" aria-expanded="false" aria-label="navbar.secondary.navigation"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon rafter-down"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z" fill="currentColor"></path> </svg></button></li> </ul> </nav> </div> <nav class="navbar no-2d navbar-secondary navbar-expand-md" aria-label="navbar.secondary.navigation"> <div class="container-fluid"> <div class="collapse navbar-collapse" id="navbarCollapsed"><a class="navbar-brand d-md-block" href="/timeline/timeline" aria-label="Accueil"><img class="logo" skin-src="img/illustrations/logo.png" alt="Logo de l\'ENT"> <span class="text-truncate d-md-none" ng-bind-html="ctrl.title"></span> </a> <ul class="navbar-nav gap-8"> <li class="nav-item"><a href="/timeline/timeline?token=[[ctrl.version]]" class="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" color="#fff" class="d-md-none"> <path fill="currentColor" d="M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"> </path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.whatsnew</i18n> </span></a></li> <li class="nav-item"><a href="/userbook/annuaire?myClass&token=[[ctrl.version]]" class="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" color="#fff" class="d-md-none"> <path d="M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z" fill="currentColor"></path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.classMembers</i18n> </span></a></li> <li class="nav-item"><a href="/welcome?token=[[ctrl.version]]" class="button"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff" class="d-md-none"> <path d="M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z" fill="currentColor"></path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.myapps</i18n> </span></a></li> </ul> </div> </div> </nav> </header> <header class="header no-1d" ng-if="ctrl.is2D"> <nav class="navbar navbar-expand-md"> <div class="container-fluid" style="max-width:1700px"> <a class="navbar-brand d-md-block" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'timeline\', \'from\':\'logo\'} })" href="/timeline/timeline?token=[[ctrl.version]]" i18n-title="navbar.home"> <img class="logo" skin-src="img/illustrations/logo.png" alt="logo NEO" width="300" height="52"> </a> <ul class="navbar-nav"> <li class="nav-item"> <a href="/timeline/timeline" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'timeline\', \'from\':\'menu\'} })" class="nav-link" i18n-title="navbar.home"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff"> <path d="M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.home</i18n> </span> </a> </li> <li class="nav-item position-relative popover-trigger" id=":r2:" aria-haspopup="true" aria-expanded="false" pulsar="{index:3, style:{zIndex:1021}, i18n:\'portal.pulsar.apps\', position:\'bottom center\'}"> <a href="/welcome" i18n-title="navbar.applications" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'welcome\', \'from\':\'menu\'} })" class="nav-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff"> <path d="M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.applications</i18n> </span> </a> <div aria-labelledby=":r2:" class="popover position-absolute top-100 start-50 translate-middle-x top-100" role="tooltip"> <div class="popover-body"> <div class="widget-body d-flex flex-wrap"> <div class="text-dark" ng-if="ctrl.apps.length === 0"> <i18n>navbar.myapps.more</i18n> </div> <a class="bookmarked-app" connector-lightbox-trigger="app" aria-label="[[app.displayName]]" target="[[app.target]]" href="[[app.address]]" i18n-title="[[app.displayName]]" ng-switch="app.icon.indexOf(\'/\')" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'app\', \'app\':app} })" ng-repeat="app in ctrl.apps | limitTo:6 track by $index"> <i class="fs-1" ng-class="ctrl.getIconClass(app)" ng-switch-when="-1"></i> <img skin-src="[[app.icon]]" ng-switch-default alt="[[app.displayName]]"/> </a> </div> </div> <div class="popover-footer widget-footer border-top border-ghost"> <div class="widget-footer"> <div class="widget-footer-action"> <a href="/welcome" class="link"> <i18n>plus</i18n> </a> </div> </div> </div> </div> </li> <li class="nav-item" ng-include="ctrl.conversationUnreadUrl"> <div class="nav-link conversation" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'conversation\'} })"></div> </li> <li class="nav-item" ng-if="ctrl.currentLanguage == \'fr\' && me.hasWorkflow(\'org.entcore.portal.controllers.PortalController|oldHelpEnable\')" pulsar="{index:5, style:{zIndex:1021}, i18n:\'portal.pulsar.help\', position:\'bottom center\'}"> <a href="" class="nav-link" i18n-title="navbar.help"> <help></help> </a> </li> <li class="nav-item"> <div class="dropdown"> <button class="nav-link btn btn-naked d-md-none" type="button" aria-controls="dropdown-navbar" aria-expanded="false" aria-label="navbar.open.menu" ng-click="dropdownToggle = !dropdownToggle"> <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon rafter-down" color="#fff"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z" fill="currentColor"></path> </svg> </button> <ul class="dropdown-menu dropdown-menu-end" id="dropdown-navbar" ng-class="{\'show\' : dropdownToggle}"> <li class="nav-item" data-community ng-if="me.hasWorkflow(\'net.atos.entng.community.controllers.CommunityController|view\')"> <a class="nav-link dropdown-item" href="/community" i18n-title="navbar.community" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'community\'} })"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true" class="icon community"><path fill="currentColor" d="M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"></path></svg> <span class="nav-text"><i18n>navbar.community</i18n></span> </a> </li> <li class="nav-item position-relative popover-trigger" id=":r3:" aria-haspopup="true" aria-expanded="false" ng-if="me.hasWorkflow(\'fr.openent.searchengine.controllers.SearchEngineController|view\')"> <a href="/searchengine" i18n-title="navbar.search" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'searchengine\', \'from\':\'menu\'} })" class="nav-link dropdown-item"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon search"> <path d="M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.search</i18n> </span> </a> <div aria-labelledby=":r3:" class="popover position-absolute top-100 start-50 translate-middle-x" role="tooltip"> <div class="search-text input-group py-8 px-12"> <input id="my-search-input" class="form-control form-control-sm" type="text" name="my-search-input" ng-model="ctrl.mysearch" ng-keyup="ctrl.launchSearch($event, \'key\');"/><button class="btn btn-filled btn-primary btn-sm btn-icon btn-sm btn-search btn-sm" i18n-title="navbar.search" ng-click="ctrl.launchSearch($event, \'button\');"> <span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true"> <path fill="currentColor" fill-rule="evenodd" d="M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z" clip-rule="evenodd"></path> </svg></span> </button> </div> </div> </li> <li class="nav-item"> <a href="/userbook/mon-compte" pulsar="{ index:4, style:{zIndex:1021}, i18n:\'portal.pulsar.account\', position:\'bottom center\'}" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'myaccount\'} })" i18n-title="navbar.myaccount" class="nav-link dropdown-item"> <div class="avatar avatar-sm rounded-circle bg-white"> <img data-ng-src="[[ctrl.avatar ? ctrl.avatar+\'?thumbnail=48x48\' : \'\']]" width="30" height="30" alt="[[ctrl.username]]"/> </div> <span class="nav-text"> <i18n>navbar.myaccount</i18n> </span> </a> </li> <li class="nav-item"> <hr class="dropdown-divider"> </li> <li class="nav-item"> <a href="" logout i18n-title="navbar.disconnect" class="nav-link dropdown-item"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon logout"> <path d="M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.disconnect</i18n> </span> </a> </li> </ul> </div> </li> </ul> </div> </nav> </header>'},4809:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="row"> <input type="text" ng-model="ctrl.search" i18n-placeholder="search" autocomplete="off"/> </div> '},9018:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="toast fade" role="alert" aria-live="assertive" aria-atomic="true"> <div class="toast-header"> <strong class="me-auto">[[header]]</strong> <small class="text-muted">[[since]]</small> <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close" ng-click="visible(false)"></button> </div> <div class="toast-body" ng-transclude></div> </div>'},9068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<section class="lightbox" ng-class="{\'lightbox\': !tiny, \'tiny-lightbox\': tiny}"> <div class="background"></div> <div class="content"> <div class="twelve cell" ng-transclude></div> <div class="close-lightbox"> <i class="close-2x"></i> </div> </div> </section>'},7597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="{{ctrl.id+\'Label\'}}" aria-hidden="true" ng-class="{show: ctrl.visible}" ng-style="ctrl.getStyle()"> <div class="modal-backdrop fade show" style="z-index:1040"></div> <div class="modal-dialog" ng-class="ctrl.getSizeClass()" role="document" style="z-index:1050"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="{{ctrl.id+\'Label\'}}" ng-transclude="title"></h5> <button type="button" class="btn-close" aria-label="Close" ng-if="ctrl.onClose" ng-click="ctrl.onClose()"> </button> </div> <div class="modal-body" ng-transclude="body"></div> <div class="modal-footer" ng-transclude="footer"></div> </div> </div> </div> '},9325:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<style id="pulsar-css">pulsar{z-index:1036;position:absolute;pointer-events:all}.pulsar-layer{box-shadow:0 0 0 99999px rgb(0 0 0 / 60%);position:absolute;border-radius:2px;z-index:1035}pulsar .content{background:#fff;width:300px;box-shadow:1px 1px 7px rgb(0 0 0 / 40%);padding:15px;box-sizing:border-box;border:6px solid #ddd;border-radius:2px;position:relative}pulsar .content .inf{position:absolute;left:10px;top:10px;color:#fff;background:#ffaa4d;border-radius:50%;line-height:22px;text-align:center;width:22px;height:22px}pulsar .content .inf::before{font-size:18px;content:\'i\';font-style:italic;font-weight:700;display:inline-block;margin-left:-1px}pulsar .content .close{position:absolute;right:10px;top:10px;width:22px;height:22px;line-height:17px;background:#ddd;border-radius:50%;color:#636363}pulsar i.close{font-family:generic-icons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none;font-weight:400!important;text-align:center;cursor:pointer;font-style:normal}pulsar .content>div.text{margin-top:25px;padding:10px;font-size:14px;line-height:18px}pulsar .content .close::before{content:\'\\e866\';font-size:9px}pulsar nav.dots ul{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:0;margin:15px 0 25px}pulsar nav.dots li.dot{list-style-type:none;margin:0 10px;cursor:pointer}pulsar nav.dots li.dot::before{content:" ";display:block;width:17px;height:17px;background:0 0;border:2px solid silver;border-radius:50%;box-sizing:border-box;transition:all 250ms ease}pulsar nav.dots li.dot:hover::before{border-color:#ff8500;background:0 0}nav.dots li.dot.active::before{color:#4bafd5}pulsar nav.dots li.dot.active::before{border-color:#ff8500;background:#ff8500}pulsar nav.dots li.dot::before{font-size:60px;width:12px;height:12px}pulsar nav.dots li.dot::before{content:" ";display:block;width:17px;height:17px;background:0 0;border:2px solid silver;border-radius:50%;box-sizing:border-box;transition:all 250ms ease}pulsar .arrow{width:0;height:0;border-style:solid;border-width:0 8.4px 14px 8.4px;border-color:transparent transparent #ddd transparent;z-index:1;position:absolute}pulsar.middle .arrow{left:calc(50% - 7px);top:-14px}pulsar.left .arrow{transform:rotate(90deg);right:-14px}pulsar.left.top .arrow{top:1px}pulsar.left.center .arrow{top:calc(50% - 7px)}pulsar.right.center .arrow{top:calc(50% - 7px)}pulsar.right .arrow{transform:rotate(270deg);left:-14px}pulsar.right.top .arrow{top:1px}pulsar.center.top .arrow{transform:rotate(180deg);top:100%;left:calc(50% - 7px)}pulsar.bottom .arrow{top:-14px}pulsar.bottom.center .arrow{left:calc(50% - 7px)}pulsar.bottom.left .arrow,pulsar.bottom.right .arrow{top:1px}pulsar.bottom.right .arrow{left:-14px;transform:rotate(-90deg)}pulsar.bottom.left .arrow{transform:rotate(90deg);right:-14px;left:auto}.pulsar-button{position:absolute;z-index:999;width:40px;height:40px}.pulsar-button::after,.pulsar-button::before{content:"";opacity:.5;position:absolute;z-index:-1;inset:-6px 0 0 -6px;height:42px;width:42px;content:"";border-radius:50%;box-shadow:0 0 5px 6px rgb(120 218 255 / 60%);transform:scale(.1,.1);transition:all 250ms ease;animation:pulsate 1s ease-out;animation-iteration-count:infinite}.pulsar-button::after{animation-delay:.3s}.pulse-spot{position:absolute;cursor:pointer;width:30px;height:30px;font-size:18px;text-align:center;line-height:21px;font-weight:700;color:#fff;border-radius:50%;border:4px solid transparent;background:#ff8500;transition:all 250ms ease}.pulse-spot::before{content:\'i\';font-style:italic;font-family:\'Times New Roman\',Times,serif}pulsar .row{flex-direction:row-reverse;justify-content:space-between;margin-left:0!important;margin-right:0!important;max-width:100%;width:100%;position:relative;clear:both;box-sizing:border-box}pulsar .row>*{width:auto}@keyframes pulsate{0%{transform:scale(.1,.1);opacity:0}50%{opacity:1}100%{transform:scale(1.2,1.2);opacity:0}}.pulsar-button{display:none}@media (min-width:992px){.pulsar-button{display:block}}</style>'},6066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<style id="widget-container-css">ul[dnd-list],ul[dnd-list]>li{position:relative}ul[dnd-list]{padding-left:0}ul[dnd-list][dnd-drop]{min-height:42px;transition:all .1s ease-in-out 0s}ul[dnd-list][dnd-dragover].dndReject{display:block;background-color:#ff8c8c;min-height:90px;border-radius:6px;margin-bottom:2em}ul[dnd-list] .dndDraggingSource{display:none}ul[dnd-list] .dndPlaceholder{display:block;background-color:#ffdbb7;min-height:90px;border-radius:6px;margin-bottom:2em}ul[dnd-list] li{list-style:none}.dndDragging:not(.dndDraggingSource){cursor:grabbing!important;border:1px solid rgb(255 133 0)}.dnDragover{cursor:grabbing}.dndDragging:not(.dndDraggingSource):active,.dndDragging:not(.dndDraggingSource):focus,.dndDragging:not(.dndDraggingSource):hover{cursor:grabbing;cursor:-webkit-grabbing}</style> <ul dnd-list dnd-allowed-types="[]" ng-if="ctrl.lockedWidgets.length"> <li ng-repeat="widget in ctrl.lockedWidgets track by widget.platformConf.id" class="widget widget-locked" ode-widget="widget"> </li> </ul> <ul dnd-list dnd-allowed-types="[\'left\',\'right\']" dnd-dragover="ctrl.onDnDDragOver(event, index, type, dropEffect)" dnd-drop="ctrl.onDnDDrop(event, item, index, dropEffect)"> <li ng-repeat="widget in ctrl.dndWidgets track by widget.platformConf.id" class="widget" ode-widget="widget" dnd-draggable="widget.platformConf.id" dnd-type="widget.userPref.position" dnd-disable-if="ctrl.isMobileView"> </li> </ul>'},2011:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="<span>{{ctrl.sayHello()}}</span>"},991:function(e){e.exports=function(){var e=window,t=document,n={on:function(t,n,r){"addEventListener"in e?t.addEventListener(n,r,!1):t.attachEvent("on"+n,r)},off:function(t,n,r){"removeEventListener"in e?t.removeEventListener(n,r,!1):t.detachEvent("on"+n,r)},bind:function(e,t){return function(){e.apply(t,arguments)}},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},config:function(e,t){return null!=e?e:t},transSupport:!1,useFilter:/msie [678]/i.test(navigator.userAgent),_checkTransition:function(){var e=t.createElement("div"),n={webkit:"webkit",Moz:"",O:"o",ms:"MS"};for(var r in n)r+"Transition"in e.style&&(this.vendorPrefix=n[r],this.transSupport=!0)}};n._checkTransition();var r=function(t){t||(t={}),this.queue=[],this.baseCls=t.baseCls||"humane",this.addnCls=t.addnCls||"",this.timeout="timeout"in t?t.timeout:2500,this.waitForMove=t.waitForMove||!1,this.clickToClose=t.clickToClose||!1,this.timeoutAfterMove=t.timeoutAfterMove||!1,this.container=t.container;try{this._setupEl()}catch(t){n.on(e,"load",n.bind(this._setupEl,this))}};return r.prototype={constructor:r,_setupEl:function(){var e=t.createElement("div");if(e.style.display="none",!this.container){if(!t.body)throw"document.body is null";this.container=t.body}this.container.appendChild(e),this.el=e,this.removeEvent=n.bind(function(){var e=n.config(this.currentMsg.timeoutAfterMove,this.timeoutAfterMove);e?setTimeout(n.bind(this.remove,this),e):this.remove()},this),this.transEvent=n.bind(this._afterAnimation,this),this._run()},_afterTimeout:function(){n.config(this.currentMsg.waitForMove,this.waitForMove)?this.removeEventsSet||(n.on(t.body,"mousemove",this.removeEvent),n.on(t.body,"click",this.removeEvent),n.on(t.body,"keypress",this.removeEvent),n.on(t.body,"touchstart",this.removeEvent),this.removeEventsSet=!0):this.remove()},_run:function(){if(!this._animating&&this.queue.length&&this.el){this._animating=!0,this.currentTimer&&(clearTimeout(this.currentTimer),this.currentTimer=null);var e=this.queue.shift();n.config(e.clickToClose,this.clickToClose)&&(n.on(this.el,"click",this.removeEvent),n.on(this.el,"touchstart",this.removeEvent));var t=n.config(e.timeout,this.timeout);t>0&&(this.currentTimer=setTimeout(n.bind(this._afterTimeout,this),t)),n.isArray(e.html)&&(e.html="<ul><li>"+e.html.join("<li>")+"</ul>"),this.el.innerHTML=e.html,this.currentMsg=e,this.el.className=this.baseCls,n.transSupport?(this.el.style.display="block",setTimeout(n.bind(this._showMsg,this),50)):this._showMsg()}},_setOpacity:function(e){if(n.useFilter)try{this.el.filters.item("DXImageTransform.Microsoft.Alpha").Opacity=100*e}catch(e){}else this.el.style.opacity=String(e)},_showMsg:function(){var e=n.config(this.currentMsg.addnCls,this.addnCls);if(n.transSupport)this.el.className=this.baseCls+" "+e+" "+this.baseCls+"-animate";else{var t=0;this.el.className=this.baseCls+" "+e+" "+this.baseCls+"-js-animate",this._setOpacity(0),this.el.style.display="block";var r=this,i=setInterval(function(){t<1?((t+=.1)>1&&(t=1),r._setOpacity(t)):clearInterval(i)},30)}},_hideMsg:function(){var e=n.config(this.currentMsg.addnCls,this.addnCls);if(n.transSupport)this.el.className=this.baseCls+" "+e,n.on(this.el,n.vendorPrefix?n.vendorPrefix+"TransitionEnd":"transitionend",this.transEvent);else var t=1,r=this,i=setInterval(function(){t>0?((t-=.1)<0&&(t=0),r._setOpacity(t)):(r.el.className=r.baseCls+" "+e,clearInterval(i),r._afterAnimation())},30)},_afterAnimation:function(){n.transSupport&&n.off(this.el,n.vendorPrefix?n.vendorPrefix+"TransitionEnd":"transitionend",this.transEvent),this.currentMsg.cb&&this.currentMsg.cb(),this.el.style.display="none",this._animating=!1,this._run()},remove:function(e){var r="function"==typeof e?e:null;n.off(t.body,"mousemove",this.removeEvent),n.off(t.body,"click",this.removeEvent),n.off(t.body,"keypress",this.removeEvent),n.off(t.body,"touchstart",this.removeEvent),n.off(this.el,"click",this.removeEvent),n.off(this.el,"touchstart",this.removeEvent),this.removeEventsSet=!1,r&&this.currentMsg&&(this.currentMsg.cb=r),this._animating?this._hideMsg():r&&r()},log:function(e,t,n,r){var i={};if(r)for(var o in r)i[o]=r[o];if("function"==typeof t)n=t;else if(t)for(var o in t)i[o]=t[o];return i.html=e,n&&(i.cb=n),this.queue.push(i),this._run(),this},spawn:function(e){var t=this;return function(n,r,i){return t.log.call(t,n,r,i,e),t}},create:function(e){return new r(e)}},new r}()},9740:function(e,t,n){!function(e){"use strict";
|
|
2
2
|
//! moment.js locale configuration
|
|
3
3
|
function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},5655:function(e,t,n){!function(e){"use strict";
|
|
4
4
|
//! moment.js locale configuration
|
|
@@ -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.ptitObservatoire="ptit-observatoire-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.ptitObservatoire:return[3,37];case a.screenTime:return[3,39]}return[3,41];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:case 40:return t.sent(),[3,42];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){n.e(443).then(function(t){var r=n(5883);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 39: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 41:throw'Unknown widget "'.concat(o,'"');case 42: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","evaluation-widget":"ic-widget-evaluation","ptit-observatoire-widget":"ic-widget-edumalin","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;
|
|
29
29
|
/*!@license
|
|
30
30
|
* UAParser.js v0.7.28
|
|
31
31
|
* Lightweight JavaScript-based User-Agent string parser
|
|
@@ -33,5 +33,5 @@ var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|
|
33
33
|
*
|
|
34
34
|
* Copyright © 2012-2021 Faisal Salman <f@faisalman.com>
|
|
35
35
|
* Licensed under MIT License
|
|
36
|
-
*/!function(i,o){"use strict";var a="function",s="undefined",u="object",c="string",l="model",d="name",f="type",h="vendor",p="version",v="architecture",m="console",g="mobile",b="tablet",y="smarttv",w="wearable",_="embedded",x={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return typeof e===c&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o},trim:function(e,t){return e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof t===s?e:e.substring(0,255)}},k={rgx:function(e,t){for(var n,r,i,s,c,l,d=0;d<t.length&&!c;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!c;)if(c=f[n++].exec(e))for(i=0;i<h.length;i++)l=c[++r],typeof(s=h[i])===u&&s.length>0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;d+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(x.has(t[n][r],e))return"?"===n?o:n}else if(x.has(t[n],e))return"?"===n?o:n;return e}},S={browser:{oldSafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{.1:"12.",21:"13.",31:"14.",39:"15.",41:"16.",42:"17.",44:"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},M={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[d,p],[/opios[\/\s]+([\w\.]+)/i],[p,[d,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[p,[d,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[p,[d,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure Browser"],p],[/focus\/([\w\.]+)/i],[p,[d,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[p,[d,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[p,[d,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[d,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[d,p],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[d],[/;fbav\/([\w\.]+);/i],[p,[d,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[d,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[d,p],[/\bgsa\/([\w\.]+)\s.*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[p,[d,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[d,"Chrome WebView"],p],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[p,[d,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[p,d],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[d,[p,k.str,S.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape)\/([\w\.-]+)/i],[[d,"Netscape"],p],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[p,[d,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[d,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,x.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows\s(ce|mobile);\sppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[v,/ower/,"",x.lowerize]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,x.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[l,[h,"Samsung"],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[l,[h,"Samsung"],[f,g]],[/\((ip(?:hone|od)[\s\w]*);/i],[l,[h,"Apple"],[f,g]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[h,"Apple"],[f,b]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[l,[h,"Huawei"],[f,b]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[l,[h,"Huawei"],[f,g]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[l,/_/g," "],[h,"Xiaomi"],[f,g]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[l,/_/g," "],[h,"Xiaomi"],[f,b]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[l,[h,"OPPO"],[f,g]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[l,[h,"Vivo"],[f,g]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[l,[h,"Realme"],[f,g]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[l,[h,"Motorola"],[f,g]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[l,[h,"Motorola"],[f,b]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[l,[h,"LG"],[f,b]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[l,[h,"LG"],[f,g]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[l,[h,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[l,/_/g," "],[h,"Nokia"],[f,g]],[/droid.+;\s(pixel\sc)[\s)]/i],[l,[h,"Google"],[f,b]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[l,[h,"Google"],[f,g]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[h,"Sony"],[f,g]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[l,"Xperia Tablet"],[h,"Sony"],[f,b]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[l,[h,"OnePlus"],[f,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[l,[h,"Amazon"],[f,b]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[l,"Fire Phone"],[h,"Amazon"],[f,g]],[/\((playbook);[\w\s\),;-]+(rim)/i],[l,h,[f,b]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[l,[h,"BlackBerry"],[f,g]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[l,[h,"ASUS"],[f,b]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[l,[h,"ASUS"],[f,g]],[/(nexus\s9)/i],[l,[h,"HTC"],[f,b]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[h,[l,/_/g," "],[f,g]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[l,[h,"Acer"],[f,b]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[l,[h,"Meizu"],[f,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[h,l,[f,g]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[h,l,[f,b]],[/\s(surface\sduo)\s/i],[l,[h,"Microsoft"],[f,b]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[l,[h,"Fairphone"],[f,g]],[/\s(u304aa)\sbuild/i],[l,[h,"AT&T"],[f,g]],[/sie-(\w*)/i],[l,[h,"Siemens"],[f,g]],[/[;\/]\s?(rct\w+)\sbuild/i],[l,[h,"RCA"],[f,b]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[l,[h,"Dell"],[f,b]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[l,[h,"Verizon"],[f,b]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[l,[h,"Barnes & Noble"],[f,b]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[l,[h,"NuVision"],[f,b]],[/;\s(k88)\sbuild/i],[l,[h,"ZTE"],[f,b]],[/;\s(nx\d{3}j)\sbuild/i],[l,[h,"ZTE"],[f,g]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[l,[h,"Swiss"],[f,g]],[/[;\/]\s?(zur\d{3})\sbuild/i],[l,[h,"Swiss"],[f,b]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[l,[h,"Zeki"],[f,b]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[h,"Dragon Touch"],l,[f,b]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[l,[h,"Insignia"],[f,b]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[l,[h,"NextBook"],[f,b]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[h,"Voice"],l,[f,g]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[h,"LvTel"],l,[f,g]],[/;\s(ph-1)\s/i],[l,[h,"Essential"],[f,g]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[l,[h,"Envizen"],[f,b]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[l,[h,"MachSpeed"],[f,b]],[/[;\/]\s?tu_(1491)\sbuild/i],[l,[h,"Rotor"],[f,b]],[/(shield[\w\s]+)\sbuild/i],[l,[h,"Nvidia"],[f,b]],[/(sprint)\s(\w+)/i],[h,l,[f,g]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[h,"Microsoft"],[f,g]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[h,"Zebra"],[f,b]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[h,"Zebra"],[f,g]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[h,l,[f,m]],[/droid.+;\s(shield)\sbuild/i],[l,[h,"Nvidia"],[f,m]],[/(playstation\s[345portablevi]+)/i],[l,[h,"Sony"],[f,m]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[l,[h,"Microsoft"],[f,m]],[/smart-tv.+(samsung)/i],[h,[f,y]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[h,"Samsung"],[f,y]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[h,"LG"],[f,y]],[/(apple)\s?tv/i],[h,[l,"Apple TV"],[f,y]],[/crkey/i],[[l,"Chromecast"],[h,"Google"],[f,y]],[/droid.+aft([\w])(\sbuild\/|\))/i],[l,[h,"Amazon"],[f,y]],[/\(dtv[\);].+(aquos)/i],[l,[h,"Sharp"],[f,y]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[h,x.trim],[l,x.trim],[f,y]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[f,y]],[/((pebble))app\/[\d\.]+\s/i],[h,l,[f,w]],[/droid.+;\s(glass)\s\d/i],[l,[h,"Google"],[f,w]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[l,[h,"Zebra"],[f,w]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[h,[f,_]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[l,[f,g]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[l,[f,b]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[f,x.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[l,[h,"Generic"]],[/(phone)/i],[[f,g]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[d,p],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[d,[p,k.str,S.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[d,"Windows"],[p,k.str,S.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[d,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[d,p],[/(sunos)\s?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[d,p]]},D=function(e,t){if("object"==typeof e&&(t=e,e=o),!(this instanceof D))return new D(e,t).getResult();var n=e||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=t?x.extend(M,t):M;return this.getBrowser=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.browser),e.major=x.major(e.version),e},this.getCPU=function(){var e={architecture:o};return k.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:o,model:o,type:o};return k.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>255?x.trim(e,255):e,this},this.setUA(n),this};D.VERSION="0.7.28",D.BROWSER={NAME:d,MAJOR:"major",VERSION:p},D.CPU={ARCHITECTURE:v},D.DEVICE={MODEL:l,VENDOR:h,TYPE:f,CONSOLE:m,MOBILE:g,SMARTTV:y,TABLET:b,WEARABLE:w,EMBEDDED:_},D.ENGINE={NAME:d,VERSION:p},D.OS={NAME:d,VERSION:p},typeof t!==s?(e.exports&&(t=e.exports=D),t.UAParser=D):(r=function(){return D}.call(t,n,t,e))===o||(e.exports=r);var O=void 0!==i&&(i.jQuery||i.Zepto);if(O&&!O.ua){var T=new D;O.ua=T.getResult(),O.ua.get=function(){return T.getUA()},O.ua.set=function(e){T.setUA(e);var t=T.getResult();for(var n in t)O.ua[n]=t[n]}}}("object"==typeof window?window:this)},3336:e=>{"use strict";e.exports=$},4202:e=>{"use strict";e.exports=angular},5262:e=>{"use strict";e.exports=window.entcore["ode-ts-client"]}},__webpack_module_cache__={},inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,n)=>(__webpack_require__.f[n](e,t),t),[])),__webpack_require__.u=e=>(({91:"widgets/cantine-widget/cantine-widget.widget",142:"widgets/universalis-widget/universalis-widget.widget",165:"widgets/qwant-widget/qwant-widget.widget",202:"widgets/screen-time-widget/screen-time-widget.widget",306:"widgets/school-widget/school-widget.widget",364:"widgets/bookmark-widget/bookmark-widget.widget",368:"widgets/dicodelazone-widget/dicodelazone-widget.widget",376:"widgets/last-infos-widget/last-infos-widget.widget",390:"widgets/rss-widget/rss-widget.widget",438:"widgets/carnet-de-bord/carnet-de-bord.widget",447:"widgets/edumalin-widget/edumalin-widget.widget",484:"widgets/cursus-widget/cursus-widget.widget",536:"widgets/maxicours-widget/maxicours-widget.widget",539:"widgets/briefme-widget/briefme-widget.widget",556:"widgets/calendar-widget/calendar-widget.widget",649:"widgets/my-apps/my-apps.widget",815:"widgets/agenda-widget/agenda-widget.widget",820:"widgets/mediacentre-widget/mediacentre-widget.widget",932:"widgets/record-me/record-me.widget"}[e]||e)+".js"),__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="ode-ngjs-front:",__webpack_require__.l=(e,t,n,r)=>{if(inProgress[e])inProgress[e].push(t);else{var i,o;if(void 0!==n)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var u=a[s];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==dataWebpackPrefix+n){i=u;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",dataWebpackPrefix+n),i.src=e),inProgress[e]=[t];var c=(t,n)=>{i.onerror=i.onload=null,clearTimeout(l);var r=inProgress[e];if(delete inProgress[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach(e=>e(n)),t)return t(n)},l=setTimeout(c.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=c.bind(null,i.onerror),i.onload=c.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={610:0};__webpack_require__.f.j=(t,n)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,n=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,a,s]=n,u=0;if(o.some(t=>0!==e[t])){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)s(__webpack_require__)}for(t&&t(n);u<o.length;u++)i=o[u],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[o[u]]=0},n=self.webpackChunkode_ngjs_front=self.webpackChunkode_ngjs_front||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var __webpack_exports__=__webpack_require__(9294)})();
|
|
36
|
+
*/!function(i,o){"use strict";var a="function",s="undefined",u="object",c="string",l="model",d="name",f="type",h="vendor",p="version",v="architecture",m="console",g="mobile",b="tablet",y="smarttv",w="wearable",_="embedded",x={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return typeof e===c&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o},trim:function(e,t){return e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof t===s?e:e.substring(0,255)}},k={rgx:function(e,t){for(var n,r,i,s,c,l,d=0;d<t.length&&!c;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!c;)if(c=f[n++].exec(e))for(i=0;i<h.length;i++)l=c[++r],typeof(s=h[i])===u&&s.length>0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;d+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(x.has(t[n][r],e))return"?"===n?o:n}else if(x.has(t[n],e))return"?"===n?o:n;return e}},S={browser:{oldSafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{.1:"12.",21:"13.",31:"14.",39:"15.",41:"16.",42:"17.",44:"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},M={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[d,p],[/opios[\/\s]+([\w\.]+)/i],[p,[d,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[p,[d,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[p,[d,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure Browser"],p],[/focus\/([\w\.]+)/i],[p,[d,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[p,[d,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[p,[d,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[d,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[d,p],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[d],[/;fbav\/([\w\.]+);/i],[p,[d,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[d,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[d,p],[/\bgsa\/([\w\.]+)\s.*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[p,[d,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[d,"Chrome WebView"],p],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[p,[d,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[p,d],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[d,[p,k.str,S.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape)\/([\w\.-]+)/i],[[d,"Netscape"],p],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[p,[d,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[d,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,x.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows\s(ce|mobile);\sppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[v,/ower/,"",x.lowerize]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,x.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[l,[h,"Samsung"],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[l,[h,"Samsung"],[f,g]],[/\((ip(?:hone|od)[\s\w]*);/i],[l,[h,"Apple"],[f,g]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[h,"Apple"],[f,b]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[l,[h,"Huawei"],[f,b]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[l,[h,"Huawei"],[f,g]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[l,/_/g," "],[h,"Xiaomi"],[f,g]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[l,/_/g," "],[h,"Xiaomi"],[f,b]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[l,[h,"OPPO"],[f,g]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[l,[h,"Vivo"],[f,g]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[l,[h,"Realme"],[f,g]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[l,[h,"Motorola"],[f,g]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[l,[h,"Motorola"],[f,b]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[l,[h,"LG"],[f,b]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[l,[h,"LG"],[f,g]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[l,[h,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[l,/_/g," "],[h,"Nokia"],[f,g]],[/droid.+;\s(pixel\sc)[\s)]/i],[l,[h,"Google"],[f,b]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[l,[h,"Google"],[f,g]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[h,"Sony"],[f,g]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[l,"Xperia Tablet"],[h,"Sony"],[f,b]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[l,[h,"OnePlus"],[f,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[l,[h,"Amazon"],[f,b]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[l,"Fire Phone"],[h,"Amazon"],[f,g]],[/\((playbook);[\w\s\),;-]+(rim)/i],[l,h,[f,b]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[l,[h,"BlackBerry"],[f,g]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[l,[h,"ASUS"],[f,b]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[l,[h,"ASUS"],[f,g]],[/(nexus\s9)/i],[l,[h,"HTC"],[f,b]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[h,[l,/_/g," "],[f,g]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[l,[h,"Acer"],[f,b]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[l,[h,"Meizu"],[f,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[h,l,[f,g]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[h,l,[f,b]],[/\s(surface\sduo)\s/i],[l,[h,"Microsoft"],[f,b]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[l,[h,"Fairphone"],[f,g]],[/\s(u304aa)\sbuild/i],[l,[h,"AT&T"],[f,g]],[/sie-(\w*)/i],[l,[h,"Siemens"],[f,g]],[/[;\/]\s?(rct\w+)\sbuild/i],[l,[h,"RCA"],[f,b]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[l,[h,"Dell"],[f,b]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[l,[h,"Verizon"],[f,b]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[l,[h,"Barnes & Noble"],[f,b]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[l,[h,"NuVision"],[f,b]],[/;\s(k88)\sbuild/i],[l,[h,"ZTE"],[f,b]],[/;\s(nx\d{3}j)\sbuild/i],[l,[h,"ZTE"],[f,g]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[l,[h,"Swiss"],[f,g]],[/[;\/]\s?(zur\d{3})\sbuild/i],[l,[h,"Swiss"],[f,b]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[l,[h,"Zeki"],[f,b]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[h,"Dragon Touch"],l,[f,b]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[l,[h,"Insignia"],[f,b]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[l,[h,"NextBook"],[f,b]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[h,"Voice"],l,[f,g]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[h,"LvTel"],l,[f,g]],[/;\s(ph-1)\s/i],[l,[h,"Essential"],[f,g]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[l,[h,"Envizen"],[f,b]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[l,[h,"MachSpeed"],[f,b]],[/[;\/]\s?tu_(1491)\sbuild/i],[l,[h,"Rotor"],[f,b]],[/(shield[\w\s]+)\sbuild/i],[l,[h,"Nvidia"],[f,b]],[/(sprint)\s(\w+)/i],[h,l,[f,g]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[h,"Microsoft"],[f,g]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[h,"Zebra"],[f,b]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[h,"Zebra"],[f,g]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[h,l,[f,m]],[/droid.+;\s(shield)\sbuild/i],[l,[h,"Nvidia"],[f,m]],[/(playstation\s[345portablevi]+)/i],[l,[h,"Sony"],[f,m]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[l,[h,"Microsoft"],[f,m]],[/smart-tv.+(samsung)/i],[h,[f,y]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[h,"Samsung"],[f,y]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[h,"LG"],[f,y]],[/(apple)\s?tv/i],[h,[l,"Apple TV"],[f,y]],[/crkey/i],[[l,"Chromecast"],[h,"Google"],[f,y]],[/droid.+aft([\w])(\sbuild\/|\))/i],[l,[h,"Amazon"],[f,y]],[/\(dtv[\);].+(aquos)/i],[l,[h,"Sharp"],[f,y]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[h,x.trim],[l,x.trim],[f,y]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[f,y]],[/((pebble))app\/[\d\.]+\s/i],[h,l,[f,w]],[/droid.+;\s(glass)\s\d/i],[l,[h,"Google"],[f,w]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[l,[h,"Zebra"],[f,w]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[h,[f,_]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[l,[f,g]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[l,[f,b]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[f,x.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[l,[h,"Generic"]],[/(phone)/i],[[f,g]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[d,p],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[d,[p,k.str,S.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[d,"Windows"],[p,k.str,S.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[d,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[d,p],[/(sunos)\s?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[d,p]]},D=function(e,t){if("object"==typeof e&&(t=e,e=o),!(this instanceof D))return new D(e,t).getResult();var n=e||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=t?x.extend(M,t):M;return this.getBrowser=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.browser),e.major=x.major(e.version),e},this.getCPU=function(){var e={architecture:o};return k.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:o,model:o,type:o};return k.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>255?x.trim(e,255):e,this},this.setUA(n),this};D.VERSION="0.7.28",D.BROWSER={NAME:d,MAJOR:"major",VERSION:p},D.CPU={ARCHITECTURE:v},D.DEVICE={MODEL:l,VENDOR:h,TYPE:f,CONSOLE:m,MOBILE:g,SMARTTV:y,TABLET:b,WEARABLE:w,EMBEDDED:_},D.ENGINE={NAME:d,VERSION:p},D.OS={NAME:d,VERSION:p},typeof t!==s?(e.exports&&(t=e.exports=D),t.UAParser=D):(r=function(){return D}.call(t,n,t,e))===o||(e.exports=r);var O=void 0!==i&&(i.jQuery||i.Zepto);if(O&&!O.ua){var T=new D;O.ua=T.getResult(),O.ua.get=function(){return T.getUA()},O.ua.set=function(e){T.setUA(e);var t=T.getResult();for(var n in t)O.ua[n]=t[n]}}}("object"==typeof window?window:this)},3336:e=>{"use strict";e.exports=$},4202:e=>{"use strict";e.exports=angular},5262:e=>{"use strict";e.exports=window.entcore["ode-ts-client"]}},__webpack_module_cache__={},inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,n)=>(__webpack_require__.f[n](e,t),t),[])),__webpack_require__.u=e=>(({91:"widgets/cantine-widget/cantine-widget.widget",142:"widgets/universalis-widget/universalis-widget.widget",165:"widgets/qwant-widget/qwant-widget.widget",202:"widgets/screen-time-widget/screen-time-widget.widget",306:"widgets/school-widget/school-widget.widget",364:"widgets/bookmark-widget/bookmark-widget.widget",368:"widgets/dicodelazone-widget/dicodelazone-widget.widget",376:"widgets/last-infos-widget/last-infos-widget.widget",390:"widgets/rss-widget/rss-widget.widget",438:"widgets/carnet-de-bord/carnet-de-bord.widget",443:"widgets/ptit-observatoire-widget/ptit-observatoire-widget.widget",447:"widgets/edumalin-widget/edumalin-widget.widget",484:"widgets/cursus-widget/cursus-widget.widget",536:"widgets/maxicours-widget/maxicours-widget.widget",539:"widgets/briefme-widget/briefme-widget.widget",556:"widgets/calendar-widget/calendar-widget.widget",649:"widgets/my-apps/my-apps.widget",815:"widgets/agenda-widget/agenda-widget.widget",820:"widgets/mediacentre-widget/mediacentre-widget.widget",932:"widgets/record-me/record-me.widget"}[e]||e)+".js"),__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="ode-ngjs-front:",__webpack_require__.l=(e,t,n,r)=>{if(inProgress[e])inProgress[e].push(t);else{var i,o;if(void 0!==n)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var u=a[s];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==dataWebpackPrefix+n){i=u;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",dataWebpackPrefix+n),i.src=e),inProgress[e]=[t];var c=(t,n)=>{i.onerror=i.onload=null,clearTimeout(l);var r=inProgress[e];if(delete inProgress[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach(e=>e(n)),t)return t(n)},l=setTimeout(c.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=c.bind(null,i.onerror),i.onload=c.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={610:0};__webpack_require__.f.j=(t,n)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,n=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,a,s]=n,u=0;if(o.some(t=>0!==e[t])){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)s(__webpack_require__)}for(t&&t(n);u<o.length;u++)i=o[u],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[o[u]]=0},n=self.webpackChunkode_ngjs_front=self.webpackChunkode_ngjs_front||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var __webpack_exports__=__webpack_require__(9294)})();
|
|
37
37
|
//# sourceMappingURL=ode-ngjs-front.js.map
|