@clickview/library-editor 1.1.32-dev-us.0 ā 1.1.32-dev-us.2
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("_"),require("Backbone"),require("Handlebars"),require("moment"),require("Marionette"),require("Bloodhound"),require("FontAwesome"),require("Polyglot"),require("DOMPurify"),require("CVEvents"),require("ClipboardJS")):"function"==typeof define&&define.amd?define(["_","Backbone","Handlebars","moment","Marionette","Bloodhound","FontAwesome","Polyglot","DOMPurify","CVEvents","ClipboardJS"],t):"object"==typeof exports?exports["@clickview/library-editor"]=t(require("_"),require("Backbone"),require("Handlebars"),require("moment"),require("Marionette"),require("Bloodhound"),require("FontAwesome"),require("Polyglot"),require("DOMPurify"),require("CVEvents"),require("ClipboardJS")):e["@clickview/library-editor"]=t(e._,e.Backbone,e.Handlebars,e.moment,e.Marionette,e.Bloodhound,e.FontAwesome,e.Polyglot,e.DOMPurify,e.CVEvents,e.ClipboardJS)}(window,(function(e,t,n,r,o,i,a,c,u,s,l){return function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,u=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&u.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);u.length;)u.shift()()}var n={},r={18:0},o={18:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,1:1,3:1,5:1,6:1,7:1,8:1,9:1,10:1,12:1,13:1,14:1,15:1,16:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,30:1,31:1,32:1,33:1,37:1,38:1,39:1,40:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,50:1,51:1,54:1,55:1,56:1,57:1,58:1,59:1,61:1,62:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="css/"+e+"-library-editor-"+{0:"c3083c7c46",1:"9a899a1d1d",2:"31d6cfe0d1",3:"904319558a",4:"31d6cfe0d1",5:"24603066ed",6:"d96af27be1",7:"b08725a10e",8:"eb68c1df75",9:"fec6984a64",10:"53c28be130",11:"31d6cfe0d1",12:"7f17ad1c90",13:"911b8069ae",14:"f507c0ef52",15:"b08725a10e",16:"89ad109c63",17:"31d6cfe0d1",20:"2bd52b5a32",21:"a7633bece5",22:"459b106aec",23:"33acb75c24",24:"b180014922",25:"4c64aed388",26:"f0118cbca0",27:"b72d0e2d36",28:"de55d150ef",29:"b0e16f882d",30:"10f54d8a75",31:"4d763bac2b",32:"d962911bc5",33:"630c133693",34:"31d6cfe0d1",35:"31d6cfe0d1",36:"31d6cfe0d1",37:"d18b8a3619",38:"8b225d15f4",39:"b08725a10e",40:"b08725a10e",41:"9a2d011500",42:"593c0084b4",43:"aa3e9bea9a",44:"7b1cd4a5cc",45:"f1820aeeff",46:"547abc7492",47:"3f6fb7f3ab",48:"467e156ba3",49:"31d6cfe0d1",50:"7aca18778d",51:"81c5aced1f",52:"31d6cfe0d1",53:"31d6cfe0d1",54:"d3b8bb68f9",55:"94a8c4e7fa",56:"61808b02a0",57:"c49b3847df",58:"8f5e04b64a",59:"b64f6f3e74",60:"31d6cfe0d1",61:"7f123672b2",62:"61e4c24a7b",63:"31d6cfe0d1",64:"31d6cfe0d1",65:"31d6cfe0d1",66:"31d6cfe0d1",67:"31d6cfe0d1",68:"31d6cfe0d1",69:"31d6cfe0d1",70:"31d6cfe0d1",71:"31d6cfe0d1",72:"31d6cfe0d1"}[e]+".chunk.css",a=i.p+o,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=(f=c[u]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(s===o||s===a))return t()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){var f;if((s=(f=l[u]).getAttribute("data-href"))===o||s===a)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var o=t&&t.target&&t.target.src||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=o,delete r[e],p.parentNode.removeChild(p),n(i)},p.href=a,document.getElementsByTagName("head")[0].appendChild(p)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=a);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"scripts/"+e+"-"+{0:"a18e26846e",1:"ecff75be6d",2:"a6cad67b85",3:"188e3bf14a",4:"2ceadcaf8a",5:"2a77c1d61f",6:"a144cc408e",7:"62d0e57237",8:"e144a881ef",9:"26cdec5aff",10:"2dba16a8e3",11:"a70b0fc08f",12:"ef97c451a4",13:"5c62e46aa9",14:"ae5b7a2544",15:"ddc146974a",16:"23feadec4d",17:"793bed854d",20:"5387bae6c0",21:"f7efa1b042",22:"97643a9034",23:"45c614ae39",24:"f347d049b2",25:"5df93f7c10",26:"374f7e4ab0",27:"ec16a6bcc4",28:"32578fa4ca",29:"3d011e657e",30:"2aa1f5eb57",31:"a934ac5c62",32:"c5cce6d3d3",33:"ebc62ae19b",34:"4c47139fd5",35:"4fb867fb85",36:"af3dbae780",37:"d5bde0cbb2",38:"d8479d2b2f",39:"6b2eaebb1f",40:"82bc916750",41:"a0e807e2f4",42:"e759e939af",43:"8b627c3aff",44:"1d7deb29f3",45:"b6db45e772",46:"cd3b33a39e",47:"5271122384",48:"32c8f02159",49:"7100a40b00",50:"0fae63024c",51:"19eebceba1",52:"f0b44b5478",53:"116fe1efcb",54:"db0c4b3204",55:"3497f6f8f6",56:"f22b6a7a9a",57:"7ccebbe560",58:"31bed8c5c8",59:"1a216fcead",60:"ac7c3ecf19",61:"be882b7f60",62:"e51c3109a1",63:"eb521c48ca",64:"03b7b67514",65:"922bcab824",66:"59b93f3d3f",67:"06a1be3a68",68:"e917b2b473",69:"33574bee94",70:"4920915604",71:"3901fcf97c",72:"dfff8d9687"}[e]+".chunk.js"}(e);var s=new Error;c=function(t){u.onerror=u.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,n[1](s)}o[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var u=0;u<a.length;u++)t(a[u]);var s=c;return i(i.s=979)}([function(e,t,n){"use strict";var r,o,i=n(219),a=n(138),c=n(178),u=n(144),s={Filters:{OPTION_SELECTED:"option:selected",APPLY_FILTER:"apply:filter",FILTER_CHANGED:"filter:changed"},ContentUpdates:{DISABLE_REVIEW:"disable:review"},MigrationWizard:{SORT_VIDEOS:"sort:videos",TOGGLE_MIGRATED:"toggle:migrated",SELECTED_CHANGED:"selected:changed",CLOSE_BANNER:"close:banner"}};!function(e){e.Folder="folder",e.Exchange="exchange",e.HostedLibrary="hosted_library",e.CustomLibrary="custom_library",e.Workspace="workspace"}(r||(r={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Channel="channels",e.Distributors="companies",e.Producers="people",e.Tags="tags",e.Language="languages",e.TagsRaw="tag",e.ChannelRaw="channel",e.Recent="recent",e.Direct="direct",e.ProductionCompanies="companies",e.Directors="people",e.Season="season"}(o||(o={}));var l,f=n(32),p=n(1),h=n(25),y=n(9),d=n(245),b=n.n(d),v=n(157),g=n.n(v),m=n(646),w=n.n(m),S=n(647),O=n.n(S),C=n(277),k=n.n(C),E=n(278),_=n.n(E),R=n(648),P=n.n(R),A=n(246),T=n.n(A),x=n(649),L=n.n(x),j=n(279),N=n.n(j),I=n(650),V=n.n(I),B=n(651),D=n.n(B),M=n(319),U=n.n(M),F=n(652),H=n.n(F),z=n(653),q=n.n(z),W=n(280),Y=n.n(W),G=n(281),K=n.n(G),Q=n(654),Z=n.n(Q),$=n(655),X=n.n($),J=n(656),ee=n.n(J),te=n(657),ne=n.n(te),re=n(658),oe=n.n(re),ie=n(659),ae=n.n(ie),ce=n(660),ue=n.n(ce),se=n(661),le=n.n(se),fe=n(662),pe=n.n(fe),he=n(663),ye=n.n(he),de=n(664),be=n.n(de),ve=n(665),ge=n.n(ve),me=n(666),we=n.n(me),Se=n(667),Oe=n.n(Se),Ce=n(668),ke=n.n(Ce),Ee=n(669),_e=n.n(Ee),Re=n(670),Pe=n.n(Re),Ae=n(671),Te=n.n(Ae),xe=n(672),Le=n.n(xe),je=n(282),Ne=n.n(je),Ie=n(320),Ve=n.n(Ie),Be=n(673),De=n.n(Be),Me=n(674),Ue=n.n(Me),Fe=n(321),He=n.n(Fe),ze=n(322),qe=n.n(ze),We=n(675),Ye=n.n(We),Ge=n(676),Ke=n.n(Ge),Qe=n(677),Ze=n.n(Qe),$e=n(678),Xe=n.n($e),Je=n(679),et=n.n(Je),tt=n(276),nt=n.n(tt),rt=n(323),ot=n.n(rt),it=n(680),at=n.n(it),ct=n(681),ut=n.n(ct),st=n(682),lt=n.n(st),ft=n(683),pt=n.n(ft),ht=n(684),yt=n.n(ht),dt=n(685),bt=n.n(dt),vt=n(686),gt=n.n(vt),mt=n(687),wt=n.n(mt),St=n(688),Ot=n.n(St),Ct=n(689),kt=n.n(Ct),Et=n(690),_t=n.n(Et),Rt=n(691),Pt=n.n(Rt);function At(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tt,xt=(At(l={},y.h.VideoList,{component:h.a.ComponentCollection,options:{childOptions:{template:b.a,className:"border-bottom position-relative px-3",viewOptions:{styles:g.a}}}}),At(l,y.h.VideoListWithBulkActions,{component:h.a.ComponentCollection,options:{childOptions:{template:b.a,className:"".concat(g.a.contentContainerWithBulkActions," border-bottom position-relative px-3"),viewOptions:{styles:g.a}}}}),At(l,y.h.VideoGroupList,{component:h.a.ComponentCollection,options:{className:w.a.videoGroupList,childOptions:{template:b.a,className:"".concat(g.a.partialVideoItem," border-bottom position-relative px-3"),viewOptions:{styles:g.a}}}}),At(l,y.h.SubFolder,{component:h.a.ComponentCollection,options:{collectionLength:1,className:"p-3 border-bottom",childOptions:{template:"<div></div>",className:"".concat(O.a.partialSubFolder," d-inline-block rounded mr-3 partial-loading-background")}}}),At(l,y.h.NotificationPopover,{component:h.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:k.a,className:"px-1 py-2",viewOptions:{styles:_.a}}}}),At(l,y.h.StaffRequestList,{component:h.a.ComponentCollection,options:{className:T.a.list,collectionLength:6,childOptions:{template:P.a,className:"p-3 border-bottom ".concat(T.a.item),viewOptions:{styles:T.a}}}}),At(l,y.h.StaffRequestDetails,{component:h.a.Component,options:{template:L.a,className:"p-3 border-bottom ".concat(N.a.actions),viewOptions:{styles:N.a}}}),At(l,y.h.DashboardNotifications,{component:h.a.ComponentCollection,options:{collectionLength:7,childOptions:{template:k.a,className:"py-2",viewOptions:{styles:_.a}}}}),At(l,y.h.DashboardActionTile,{component:h.a.Component,options:{template:V.a,className:"d-flex flex-column align-items-end",viewOptions:{styles:D.a}}}),At(l,y.h.Banner,{component:h.a.Component,options:{template:"<div></div>",className:"".concat(U.a.banner," partial-loading-background")}}),At(l,y.h.VideoListHeader,{component:h.a.Component,options:{template:H.a,className:"px-3 py-2 border-bottom clearfix",viewOptions:{styles:q.a}}}),At(l,y.h.SearchFilter,{component:h.a.ComponentCollection,options:{collectionLength:6,childOptions:{template:Y.a,tagName:"li",className:"d-inline-block rounded m-1 partial-loading-background",viewOptions:{styles:K.a}}}}),At(l,y.h.PastReleasesSearchFilter,{component:h.a.ComponentCollection,options:{collectionLength:3,childOptions:{template:Y.a,tagName:"li",className:"d-inline-block rounded m-1 partial-loading-background",viewOptions:{styles:K.a}}}}),At(l,y.h.AwaitingReviewHeader,{component:h.a.Component,options:{template:at.a,className:"p-3 border-bottom text-right",viewOptions:{styles:ut.a}}}),At(l,y.h.VideoHeader,{component:h.a.Component,options:{template:ee.a,className:"w-100 p-2",viewOptions:{styles:ne.a}}}),At(l,y.h.VideoBasicInfo,{component:h.a.Component,options:{template:oe.a,viewOptions:{styles:ae.a}}}),At(l,y.h.VideoSidebarInfo,{component:h.a.Component,options:{template:Z.a,className:"pt-3 pb-3 pl-2 pr-3",viewOptions:{styles:X.a}}}),At(l,y.h.EditVideoTabs,{component:h.a.Component,options:{template:ue.a,className:"w-100",viewOptions:{styles:le.a}}}),At(l,y.h.EditVideoDetails,{component:h.a.Component,options:{template:pe.a,className:"w-100",viewOptions:{styles:ye.a}}}),At(l,y.h.EditVideoChapterList,{component:h.a.Component,options:{template:be.a,className:"w-100",viewOptions:{styles:ge.a}}}),At(l,y.h.EditVideoChaptersForm,{component:h.a.Component,options:{template:we.a,className:"w-100 mt-3",viewOptions:{styles:Oe.a}}}),At(l,y.h.WebPlayer,{component:h.a.Component,options:{template:ke.a,className:"w-100",viewOptions:{styles:_e.a}}}),At(l,y.h.EditVideoUploadArea,{component:h.a.Component,options:{template:Pe.a,className:"mt-3",viewOptions:{styles:Te.a}}}),At(l,y.h.Share,{component:h.a.Component,options:{template:Le.a,className:Ne.a.container,viewOptions:{styles:Ne.a}}}),At(l,y.h.PublisherArchiveSearchBar,{component:h.a.Component,options:{template:'<div><h5 class="m-0">Add videos from Publisher Archive</h5></div>',className:"container col-12 m-0 p-3 ".concat(Ve.a.containerWithBottomBorder)}}),At(l,y.h.PublisherArchiveSectionHeader,{component:h.a.Component,options:{template:Ye.a,className:"row no-gutters ".concat(ot.a.currentHeader),viewOptions:{styles:Ke.a}}}),At(l,y.h.PublisherArchiveLeftNav,{component:h.a.ComponentCollection,options:{collectionLength:10,childOptions:{template:Ze.a,viewOptions:{styles:Xe.a}}}}),At(l,y.h.PublisherArchiveVideoList,{component:h.a.Component,options:{template:De.a,viewOptions:{styles:p.extend({},Ue.a,He.a,qe.a),videoItems:new Array(19).fill("")}}}),At(l,y.h.PublisherArchiveStatusBar,{component:h.a.Component,options:{template:et.a,className:"p-2 w-100 ".concat(nt.a.statusBar),viewOptions:{styles:nt.a}}}),At(l,y.h.LeftNav,{component:h.a.Component,options:{template:lt.a,viewOptions:{styles:pt.a}}}),At(l,y.h.LibraryFolders,{component:h.a.ComponentCollection,options:{collectionLength:7,className:"row mt-4 pt-2",noExtraClass:!0,tagName:"div",childOptions:{template:yt.a,className:"col-3 p-2",viewOptions:{styles:bt.a}}}}),At(l,y.h.VideoItemPreview,{component:h.a.Component,options:{className:"w-100",template:gt.a,viewOptions:{styles:wt.a}}}),At(l,y.h.EditResourcesCVContent,{component:h.a.Component,options:{className:"w-100",template:Ot.a,viewOptions:{styles:kt.a}}}),At(l,y.h.TagFilter,{component:h.a.Component,options:{template:_t.a,viewOptions:{styles:Pt.a}}}),l),Lt=n(48),jt=n(17),Nt={LIBRARY_EDITOR:"hc/sections/360001974533",VIDEO_ACCESS:"hc/articles/360000153947",ADD_FROM_ONLINE:"hc/articles/360011718234",UPLOAD:"hc/articles/360012069334",PUBLISHER_ARCHIVE:"hc/articles/360011150174",PBT_ERROR_CODES:"hc/articles/360012421153",MANUAL_REVIEW:"hc/en-us/articles/360020004534",LIBRARY_REVIEW:"hc/articles/360000163788",PUBLISHER_SERVER:"hc/en-us/articles/360023108873",MIGRATION_OPTIONS:"hc/en-us/articles/360023109033"};function It(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vt,Bt=(It(Tt={},y.f.Thumbnails,{width:640,height:360}),It(Tt,y.f.Banners,{width:1200,height:222}),Tt),Dt=It({},y.f.Thumbnails,{width:1280,height:720}),Mt={EmptyStates:{Default:"/images/empty-states/illo-empty@2x.png",LibraryEditor:"/images/empty-states/no-library@2x.png",Library:"/images/empty-states/pointing-boy@2x.png",Folder:"/images/empty-states/illo-emptyfolder@2x.png",Search:"/images/empty-states/illo-no-results@2x.png",VideoAccess:"/images/empty-states/illo-empty3@2x.png",AwaitingReview:"/images/empty-states/illo-empty2@2x.png",PastReleases:"/images/empty-states/illo-empty-past-releases-large@2x.png",StaffRequests:"/images/empty-states/illo-empty@2x.png",StaffRequestsDashboardTile:"/images/empty-states/illo-empty-staffreq@2x.png",ContentUpdatesDashboardTile:"/images/empty-states/illo-empty-past-releases@2x.png"},Shared:{GeneratePdf:"/images/pdf-email-filled@2x.png",GenerateCsv:"/images/csv-email-filled.png"}},Ut=n(3),Ft=n(41),Ht=n.n(Ft);function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qt,Wt=(zt(Vt={},y.c.Default,(function(){return{imageUrl:Mt.EmptyStates.Default,customClass:Ht.a.paddedContainer,customImageClass:Ht.a.imageLarge}})),zt(Vt,y.c.LibraryEditor,(function(e){return{imageUrl:Mt.EmptyStates.LibraryEditor,heading:e.options.componentOptions.heading,description:'<button class="add-library btn btn-secondary position-relative '.concat(Ht.a.addLibraryButton,'">\n <span class="d-inline-block position-absolute ').concat(Ht.a.addLibraryPlus,'">\n ').concat(e.options.componentOptions.plusSvg,"</span> ").concat(e.options.componentOptions.btnText,"</button>"),appLink:{".add-library":{application:a.a.LIBRARY_EDITOR,action:u.a.LibraryEditor.NEW_LIBRARY}},customClass:"".concat(Ht.a.paddedContainer," bg-white"),customImageClass:Ht.a.imageLarge}})),zt(Vt,y.c.Library,(function(e){return{imageUrl:Mt.EmptyStates.Library,heading:e.options.componentOptions.heading,description:e.options.componentOptions.description,appLink:{".add-folder":{application:a.a.LIBRARY_EDITOR,action:u.a.Shared.NEW_FOLDER,args:[e.options.componentOptions.libraryId]}},customClass:"".concat(Ht.a.paddedContainer," bg-white"),customImageClass:Ht.a.imageLarge}})),zt(Vt,y.c.Folder,(function(e){return{imageUrl:Mt.EmptyStates.Folder,heading:e.options.componentOptions.heading,description:e.options.componentOptions.description,customClass:Ht.a.paddedContainer,customImageClass:Ht.a.imageLarge}})),zt(Vt,y.c.Series,(function(e){return{imageUrl:Mt.EmptyStates.Folder,heading:e.options.componentOptions.heading,description:e.options.componentOptions.description,customClass:Ht.a.paddedContainer,customImageClass:Ht.a.imageLarge}})),zt(Vt,y.c.Search,(function(e){return{imageUrl:Mt.EmptyStates.Search,heading:e.options.componentOptions.heading,description:e.options.componentOptions.description,customClass:Ht.a.paddedContainer,customImageClass:Ht.a.imageLarge}})),zt(Vt,y.c.AwaitingReview,(function(e){return{imageUrl:Mt.EmptyStates.AwaitingReview,heading:e.options.componentOptions.heading,description:e.options.componentOptions.description,appLink:{".disable-review":{application:a.a.CONTENT_UPDATES,action:u.a.ContentUpdates.DISABLE_REVIEW}},customClass:Ht.a.paddedContainer,customImageClass:Ht.a.imageLarge}})),zt(Vt,y.c.PastReleases,(function(e){return{imageUrl:Mt.EmptyStates.PastReleases,heading:e.options.componentOptions.heading,customClass:Ht.a.paddedContainer,customImageClass:Ht.a.imageLarge}})),zt(Vt,y.c.StaffRequests,(function(e){return{imageUrl:Mt.EmptyStates.StaffRequests,heading:e.options.componentOptions.emptyState,description:e.options.componentOptions.description,customClass:Ht.a.paddedContainer,customImageClass:Ht.a.imageLarge}})),zt(Vt,y.c.VideoAccess,(function(e){return{imageUrl:Mt.EmptyStates.VideoAccess,heading:e.options.componentOptions.heading,customClass:Ht.a.paddedContainer,customImageClass:Ht.a.imageLarge}})),zt(Vt,y.c.StaffRequestsDashboardTile,(function(e){return{imageUrl:Mt.EmptyStates.StaffRequestsDashboardTile,customImageClass:"".concat(e.options.componentOptions.imageClass," ").concat(Ht.a.imageLarge)}})),zt(Vt,y.c.ContentUpdatesDashboardTile,(function(e){return{imageUrl:Mt.EmptyStates.ContentUpdatesDashboardTile,customImageClass:"".concat(e.options.componentOptions.imageClass," ").concat(Ht.a.imageLarge)}})),zt(Vt,y.c.ManualReviewVideos,(function(){var e=Ut.a.getPhrase("shared.emptyState","migrationWarnings");return{imageUrl:Mt.EmptyStates.Default,heading:e,customClass:"p-3",customImageClass:Ht.a.imageLarge}})),Vt),Yt=n(61);function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kt=(Gt(qt={},Yt.a.StudentWorkspaceSharing,(function(){return Ut.a.getPhrase("shared.constants","studentWorkspaceSharing")})),Gt(qt,Yt.a.StudentToStudentMessaging,(function(){return Ut.a.getPhrase("shared.constants","studentMessaging")})),Gt(qt,Yt.a.HideResourcesForStudents,(function(){return Ut.a.getPhrase("shared.constants","hideResources")})),Gt(qt,Yt.a.LibraryReview,(function(){return Ut.a.getPhrase("shared.constants","libraryReview")})),Gt(qt,Yt.a.SchoolMessaging,(function(){return Ut.a.getPhrase("shared.constants","schoolMessaging")})),Gt(qt,Yt.a.StaffRequest,(function(){return Ut.a.getPhrase("shared.constants","staffRequests")})),qt),Qt=n(160),Zt={NAME:"Webplayer"},$t=n(103),Xt={UploadingUserContent:"terms-and-conditions/#uploading-user-content"},Jt={VERIFY_EMAIL:"/settings/account",UPLOAD_LOGO:"/settings/school"},en=n(18),tn=(n(179),{edge:16});n.d(t,"o",(function(){return i.a})),n.d(t,"e",(function(){return a.b})),n.d(t,"w",(function(){return a.c})),n.d(t,"b",(function(){return a.a})),n.d(t,"A",(function(){return c.a})),n.d(t,"a",(function(){return u.a})),n.d(t,"i",(function(){return s})),n.d(t,"q",(function(){return r})),n.d(t,"v",(function(){return o})),n.d(t,"f",(function(){return f.a})),n.d(t,"u",(function(){return xt})),n.d(t,"n",(function(){return Lt.a})),n.d(t,"x",(function(){return jt.b})),n.d(t,"g",(function(){return jt.a})),n.d(t,"y",(function(){return Nt})),n.d(t,"k",(function(){return Bt})),n.d(t,"m",(function(){return Dt})),n.d(t,"l",(function(){return Mt})),n.d(t,"h",(function(){return Wt})),n.d(t,"y",(function(){return Nt})),n.d(t,"j",(function(){return Kt})),n.d(t,"s",(function(){return Qt.a})),n.d(t,"z",(function(){return Zt})),n.d(t,"c",(function(){return $t.a})),n.d(t,"r",(function(){return Xt})),n.d(t,"c",(function(){return $t.a})),n.d(t,"t",(function(){return Jt})),n.d(t,"d",(function(){return en.a})),n.d(t,"p",(function(){return tn}))},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(311);n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(692),o=n(1),i=n(693),a=n(68),c=n(11),u=n(150),s=n(20),l=n(63);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(b,e);var t,n,a,f=d(b);function b(){return p(this,b),f.apply(this,arguments)}return t=b,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return u.a.LANGUAGE}},{key:"setConfig",value:function(e){this.polyglot=new r({locale:e.locale,phrases:e.phrases.rootElement||e.phrases}),this.cache={}}},{key:"getPhrase",value:function(e,t,n){var r="".concat(e,".").concat(t);if(this.polyglot||c.c.throw(new s.a("LanguageService config must be set.")),!this.polyglot.has(r)){if(!l.a.isDevelopment){var a=window.trackJs;return a&&a.console.error("No phrase set for ".concat(r," in language config")),""}c.c.throw(new s.a("No phrase set for ".concat(r," in language config.")))}if(!n||o.isEmpty(n)){var u=this.cache[r];if(u)return u;var f=this.polyglot.t(r);return this.cache[r]=f,f}var p=o.omit(n,"smartCount"),h={};for(var y in p){var d=p[y];"number"==typeof d&&(d=d.toString()),h[y]=i.sanitize(d)}o.isNumber(n.smartCount)&&(h.smart_count=n.smartCount);var b="".concat(r,":").concat(o.values(Object.assign({},h)).join(":")),v=this.cache[b];if(v)return v;var g=this.polyglot.t(r,h);return this.cache[b]=g,g}},{key:"encloseNamespace",value:function(e){var t=this;return function(n,r){return t.getPhrase(e,n,r)}}}])&&h(t.prototype,n),a&&h(t,a),b}(a.a).Instance},function(e,t,n){"use strict";var r=n(324);n.d(t,"AssocDescriptor",(function(){return r.a})),n.d(t,"ClickDescriptor",(function(){return r.b})),n.d(t,"CustomerSettingDescriptor",(function(){return r.c})),n.d(t,"DirectSearchDescriptor",(function(){return r.d})),n.d(t,"EntityType",(function(){return r.e})),n.d(t,"EventDefaultValue",(function(){return r.f})),n.d(t,"EventVersion",(function(){return r.g})),n.d(t,"FilterDescriptor",(function(){return r.h})),n.d(t,"InteractionType",(function(){return r.i})),n.d(t,"InteractionTypeDescriptor",(function(){return r.j})),n.d(t,"LocationContext",(function(){return r.k})),n.d(t,"OperationDescriptor",(function(){return r.l})),n.d(t,"PageDescriptor",(function(){return r.m})),n.d(t,"PlaybackDescriptor",(function(){return r.n})),n.d(t,"SearchQueryType",(function(){return r.o})),n.d(t,"SuggestionDescriptor",(function(){return r.p})),n.d(t,"UserAction",(function(){return r.q})),n.d(t,"WorkflowPhase",(function(){return r.r}));n(222),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),o=n(20),i=n(68),a=n(11);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,i,c=l(f);function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=c.call(this)).constructors={},e.destructors={},e.instances={},e.singletonInstances={},e.referenceCounts={},e}return t=f,i=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return"InstanceManager"}},{key:"registerDataService",value:function(e,t){var n=this;this.validateConstructor(e);var r=e.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new e({dataProvider:n.getInstance(t.dataProvider),cache:n.getInstance(t.cache),bootstrapData:t.bootstrapData,defaultErrorHandler:t.defaultErrorHandler,alertService:t.alertService})},this.destructors[r]=function(){n.instances[r]?n.instances[r].destroy():a.c.throw(new o.a("Trying to destroy a ".concat(r," instance that has already been destroyed"))),n.releaseInstance(t.dataProvider),n.releaseInstance(t.cache)},this}},{key:"registerInstance",value:function(e,t){var n=this;this.validateConstructor(e);var o=e.prototype.name;return this.referenceCounts[o]=0,this.constructors[o]=function(){return new e(t)},this.destructors[o]=function(){return r.isFunction(n.instances[o].destroy)&&n.instances[o].destroy()},this}},{key:"registerSingleton",value:function(e){var t=e.name;return this.singletonInstances[t]=e,this}},{key:"getInstance",value:function(e,t){var n=this;return this.singletonInstances[e]?this.singletonInstances[e]:(this.constructors[e]||a.c.throw(new o.a("".concat(e," was not registered with ").concat(this.name))),this.referenceCounts[e]++,t&&this.listenTo(t,"destroy",(function(){return n.releaseInstance(e)})),this.instances[e]||(this.instances[e]=this.constructors[e]()),this.instances[e])}},{key:"releaseInstance",value:function(e){var t=this;if(this.instances[e])return window.setTimeout((function(){t.referenceCounts[e]--,t.referenceCounts[e]<1&&(t.destructors[e](),delete t.instances[e])}),0),this}},{key:"validateConstructor",value:function(e){var t=e.prototype.name;t||a.c.throw(new o.a("Classes registered with ".concat(this.name," must have a unique name property."))),this.constructors[t]&&a.c.throw(new o.a("A class with the name: ".concat(t," has already been registered with ").concat(this.name)))}}])&&u(t.prototype,n),i&&u(t,i),f}(i.a).Instance},function(e,n){e.exports=t},,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"}(r||(r={}))},function(e,t,n){"use strict";var r,o,i,a,c;function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.MostRecent=0]="MostRecent",e[e.LeastRecent=1]="LeastRecent",e[e.AtoZ=2]="AtoZ",e[e.ZtoA=3]="ZtoA",e[e.OrderIndex=4]="OrderIndex",e[e.ProductionYear=5]="ProductionYear",e[e.Newest=6]="Newest",e[e.SeriesSort=7]="SeriesSort"}(r||(r={})),function(e){e[e.Banner=0]="Banner",e[e.VideoListHeader=1]="VideoListHeader",e[e.VideoList=2]="VideoList",e[e.VideoListWithBulkActions=3]="VideoListWithBulkActions",e[e.VideoGroupList=4]="VideoGroupList",e[e.SubFolder=5]="SubFolder",e[e.NotificationPopover=6]="NotificationPopover",e[e.StaffRequestList=7]="StaffRequestList",e[e.StaffRequestDetails=8]="StaffRequestDetails",e[e.DashboardNotifications=9]="DashboardNotifications",e[e.DashboardActionTile=10]="DashboardActionTile",e[e.SearchBar=11]="SearchBar",e[e.SearchFilter=12]="SearchFilter",e[e.PastReleasesSearchFilter=13]="PastReleasesSearchFilter",e[e.AwaitingReviewHeader=14]="AwaitingReviewHeader",e[e.VideoSidebarInfo=15]="VideoSidebarInfo",e[e.VideoBasicInfo=16]="VideoBasicInfo",e[e.VideoHeader=17]="VideoHeader",e[e.EditVideoTabs=18]="EditVideoTabs",e[e.EditVideoDetails=19]="EditVideoDetails",e[e.EditVideoChapterList=20]="EditVideoChapterList",e[e.EditVideoChaptersForm=21]="EditVideoChaptersForm",e[e.EditVideoUploadArea=22]="EditVideoUploadArea",e[e.WebPlayer=23]="WebPlayer",e[e.Share=24]="Share",e[e.PublisherArchiveSearchBar=25]="PublisherArchiveSearchBar",e[e.PublisherArchiveSectionHeader=26]="PublisherArchiveSectionHeader",e[e.PublisherArchiveLeftNav=27]="PublisherArchiveLeftNav",e[e.PublisherArchiveVideoList=28]="PublisherArchiveVideoList",e[e.PublisherArchiveStatusBar=29]="PublisherArchiveStatusBar",e[e.LeftNav=30]="LeftNav",e[e.LibraryFolders=31]="LibraryFolders",e[e.EditResourcesCVContent=32]="EditResourcesCVContent",e[e.TagFilter=33]="TagFilter",e[e.VideoItemPreview=34]="VideoItemPreview",e[e.Unselected=35]="Unselected"}(o||(o={})),function(e){e.AU="AU",e.UK="UK",e.NZ="NZ",e.US="US"}(i||(i={})),function(e){e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other",e[e.HostedLibrary=9]="HostedLibrary"}(c||(c={}));var s,l,f,p,h,y,d;u(a={},c.Unclassified,{hasYearGroups:!0}),u(a,c.Primary,{hasYearGroups:!0}),u(a,c.Secondary,{hasYearGroups:!0}),u(a,c.K12,{hasYearGroups:!0}),u(a,c.Tertiary,{hasYearGroups:!1}),u(a,c.NonEducational,{hasYearGroups:!1}),u(a,c.Partners,{hasYearGroups:!0}),u(a,c.Internal,{hasYearGroups:!0}),u(a,c.Other,{hasYearGroups:!0}),u(a,c.HostedLibrary,{hasYearGroups:!0});!function(e){e[e.All=0]="All",e[e.Kindergarten=1]="Kindergarten",e[e.Year1=2]="Year1",e[e.Year2=3]="Year2",e[e.Year3=4]="Year3",e[e.Year4=5]="Year4",e[e.Year5=6]="Year5",e[e.Year6=7]="Year6",e[e.Year7=8]="Year7",e[e.Year8=9]="Year8",e[e.Year9=10]="Year9",e[e.Year10=11]="Year10",e[e.Year11=12]="Year11",e[e.Year12=13]="Year12",e[e.Year13=14]="Year13",e[e.Students=15]="Students",e[e.Staff=16]="Staff"}(s||(s={})),function(e){e[e.Private=1]="Private",e[e.SchoolOnly=2]="SchoolOnly",e[e.Public=3]="Public"}(l||(l={})),function(e){e[e.Default=0]="Default",e[e.LibraryEditor=1]="LibraryEditor",e[e.Library=2]="Library",e[e.Folder=3]="Folder",e[e.Series=4]="Series",e[e.Search=5]="Search",e[e.Notifications=6]="Notifications",e[e.VideoAccess=7]="VideoAccess",e[e.AwaitingReview=8]="AwaitingReview",e[e.PastReleases=9]="PastReleases",e[e.StaffRequests=10]="StaffRequests",e[e.StaffRequestsDashboardTile=11]="StaffRequestsDashboardTile",e[e.ContentUpdatesDashboardTile=12]="ContentUpdatesDashboardTile",e[e.ManualReviewVideos=13]="ManualReviewVideos"}(f||(f={})),function(e){e[e.Video=11]="Video",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection"}(p||(p={})),function(e){e[e.AdminOnly=0]="AdminOnly",e[e.StaffRequest=1]="StaffRequest",e[e.Teachers=2]="Teachers"}(h||(h={})),function(e){e[e.Thumbnails=0]="Thumbnails",e[e.Banners=1]="Banners",e[e.Avatars=2]="Avatars"}(y||(y={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1"}(d||(d={}));var b,v,g,m=n(69);!function(e){e.FULL_YEAR="D MMMM YYYY",e.YEAR="YYYY"}(b||(b={})),function(e){e[e.TermUpdate=1]="TermUpdate",e[e.RestrictedByAdmin=2]="RestrictedByAdmin"}(v||(v={})),function(e){e.Producer="producers",e.Director="directors",e.ProductionCompany="productionCompanies",e.Distributor="distributors"}(g||(g={})),n.d(t,"d",(function(){return r})),n.d(t,"h",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"n",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"g",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"f",(function(){return y})),n.d(t,"e",(function(){return d})),n.d(t,"m",(function(){return m.a})),n.d(t,"l",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"a",(function(){return g}))},function(e,t){e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return O}));var r=n(6),o=n(14),i=n(63),a=n(38);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}function p(e){var t=b();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){var t="function"==typeof Map?new Map:void 0;return(y=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,e)})(e)}function d(e,t,n){return(d=b()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&v(o,n.prototype),o}).apply(null,arguments)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){f(n,e);var t=p(n);function n(e){return l(this,n),t.call(this,e)}return n}(y(Error)),w=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return s(n,[{key:"name",get:function(){return"SilentError"}}]),n}(m),S=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return s(n,[{key:"name",get:function(){return"CoreError"}}]),n}(y(Error)),O={throw:function(e){if(r.Radio.channel(o.a.SHELL).trigger(a.a.ERROR,e),!(e instanceof w||i.a.isDevelopment))throw e}}},function(e,t,n){"use strict";var r=n(194),o=n(30),i=n(1),a={GetViewModel:function(e,t){var n=o.a.get("current:bulkactions");return n.get(t)!==e&&o.a.clear(e),n.set(t,e),o.a.get(e)},GetSelectedIds:function(e){return i.map(a.GetSelectedModels(e),(function(e){return e.get("id")}))},GetSelectedModels:function(e){var t=a.GetViewModel(e.key,e.type).toJSON(),n={};if(i.isFunction(e.excludePredicate)&&(n=i.groupBy(e.collection.filter(e.excludePredicate),(function(e){return e.id}))),t.all){var r=e.collection.filter((function(e){return!1!==t[e.id]}));return i.filter(r,(function(e){return!n[e.id]}))}var o=e.collection.filter((function(e){return!0===t[e.id]}));return i.filter(o,(function(e){return!n[e.id]}))}},c=n(2),u=n(3),s=n(88),l=n(35),f=n(9),p="shared.utils",h={GetCurrentSortType:function(){var e=h.GetSortViewModel();return h.GetSortTypeFromName(e.get("sortName"))},GetSortViewModel:function(){return o.a.get("video:sorting",h.GetDefaultSort(),{storage:{type:s.c.LocalStorage,persistProps:["sortName","name"]}})},GetFilterFromSort:function(e){switch(e){case l.a.MostRecent:return"orderbydesc:timestamp";case l.a.AtoZ:return"orderby:name";case l.a.ProductionYear:return"orderbydesc:productionyear";case l.a.Newest:return"orderbydesc:datecreated";case l.a.SeriesSort:return"orderby:seriessort";default:return""}},GetDefaultSort:function(){return h.CreateSortObject(l.a.MostRecent)},CreateSortObject:function(e){return{sortType:e,name:h.GetSortName(e),sortName:l.a[e].toLowerCase()}},CreateSortCollection:function(){var e=new c.a.Collection;for(var t in l.a)"number"==typeof l.a[t]&&e.push(new c.a.Model(h.CreateSortObject(l.a[t])));return e},GetSortName:function(e){switch(e){case l.a.MostRecent:return u.a.getPhrase(p,"recentlyAdded");case l.a.AtoZ:return u.a.getPhrase(p,"atoz");case l.a.ProductionYear:return u.a.getPhrase(p,"productionYear");case l.a.Newest:return u.a.getPhrase(p,"newest");case l.a.SeriesSort:return u.a.getPhrase(p,"seriesTitle");default:return""}},GetSortTypeFromName:function(e){switch(e){case"mostrecent":return l.a.MostRecent;case"atoz":return l.a.AtoZ;case"productionyear":return l.a.ProductionYear;case"newest":return l.a.Newest;case"seriessort":return l.a.SeriesSort;default:return l.a.MostRecent}},MapSortTypeToExportServiceSortType:function(e){switch(e){case l.a.MostRecent:return f.d.MostRecent;case l.a.AtoZ:return f.d.AtoZ;case l.a.ProductionYear:return f.d.ProductionYear;case l.a.Newest:return f.d.Newest;case l.a.SeriesSort:return f.d.SeriesSort;default:return f.d.MostRecent}}},y=n(29),d={mapYearGroupToName:function(e){var t=f.n[e],n=t.split(/(\d+)/);return n[1]?"".concat(n[0]," ").concat(n[1]," ").concat(u.a.getPhrase("shared.utils","andBelow")):e===f.n.All?u.a.getPhrase("shared.utils","studentsAndStaff"):t},hasRestriction:function(e){return!i.isUndefined(e.get("restrictions"))},hasAdminRestriction:function(e){var t=e.restrictions;return!!t&&!t.last().get("expiresOn")},isAwaitingReview:function(e){var t=e.restrictions;return!!t&&!!t.last().get("expiresOn")},getRestrictionMessage:function(e){return e.includes("Year")||e.includes("Kindergarten")?u.a.getPhrase("shared.utils","students",{yearGroup:e}):u.a.getPhrase("shared.utils","nonStudents",{group:e})},getReviewBadgeClassName:function(e,t,n){if(!e.restrictions||!e.restrictions.length)return"";var r=y().add(7,"days"),o=e.restrictions.first().get("expiresOn");return y(o).isSameOrBefore(r)?n:t},getRestrictionTooltipMessage:function(e){if(!e.restrictions)return"";if(d.isAwaitingReview(e))return d.getReviewTimeMessage(e);var t=e.restrictions.last(),n=d.mapYearGroupToName(t.get("groupId"));return d.getRestrictionMessage(n)},getReviewTimeMessage:function(e){var t=e.restrictions.first().get("expiresOn"),n=y(t).fromNow(!0);return"".concat(n," ").concat(u.a.getPhrase("shared.utils","leftToReview"))}},b={trimToMinutes:function(e){for(;("0"===e.charAt(0)||":"===e.charAt(0))&&e.length>5;)e=e.substr(1);return e},toSeconds:function(e){return y.duration(e).asSeconds()},secondsToHoursFormatted:function(e){return y.utc(1e3*e).format("HH:mm:ss")},getHoursComponent:function(e){return y.duration(e,"seconds").hours()},getMinutesComponent:function(e){return y.duration(e,"seconds").minutes()},getSecondsComponent:function(e){return y.duration(e,"seconds").seconds()},millisecondsToSeconds:function(e){return e/1e3},parseTime:function(e){var t=b.validateRawTime(e),n=t.hours,r=t.minutes,o=t.seconds,a=parseInt(n,10),c=parseInt(r,10),u=parseInt(o,10);return i.isNumber(a)||i.isNumber(c)||i.isNumber(u)?a<0||c<0||u<0?-1:b.toSeconds("".concat(a,":").concat(c,":").concat(u)):-1},validateRawTime:function(e){var t=e.hours,n=e.minutes,r=e.seconds;return(i.isUndefined(t)||i.isNaN(t))&&(t=0),(i.isUndefined(n)||i.isNaN(t))&&(n=0),(i.isUndefined(r)||i.isNaN(t))&&(r=0),{hours:t,minutes:n,seconds:r}}},v=n(233),g=n(61),m={getLibraryReviewOptions:function(e){return{kind:v.a.Permanent,name:g.a.LibraryReview,value:e}}},w=n(49),S=n(310),O=n(60),C=n(97),k=n(0),E=n(252);function _(e){return e.libraries&&e.libraries.every((function(e){return e.get("type")===O.a.CustomLibrary}))}var R,P={canEditVideo:function(e){return _(e)},canPublicShare:function(e){var t;return!(null===(t=e.get("metadata"))||void 0===t?void 0:t.royaltyReportingId)&&_(e)},canDownloadVideo:function(e){return e.libraries&&e.libraries.every((function(e){return e.get("type")!==O.a.HostedLibrary}))},canAddToExchange:function(e){return e.libraries&&e.libraries.every((function(e){return e.get("type")!==O.a.HostedLibrary&&e.get("type")!==O.a.Exchange}))},canShareVideo:function(e,t){return t===k.b.CONTENT_UPDATES||e.libraries&&!!e.libraries.where({type:O.a.CustomLibrary,status:C.a.Published}).length},getSuggestAnEditPermissionsMessage:function(e){if(!P.canEditVideo(e))return u.a.getPhrase("shared.utils","suggestEdit")},getSharePermissionsMessage:function(e,t){if(!P.canShareVideo(e,t))return t===k.b.LIBRARY_EDITOR?u.a.getPhrase("shared.utils","share"):""},filterObjectsByOwnerType:function(e,t,n){var r=e.filter((function(e){var r=e.get("customer")&&e.get("customer").id;return!r&&t===E.a.ClickView||r===n&&t===E.a.Customer}));return new c.a.Collection(r)}},A=n(89),T=n(154);function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L,j={size:"small",bgColor:"000"};!function(e){e.Avatar="avatar",e.Banner="banner",e.Thumbnail="thumbnail"}(L||(L={}));var N=(x(R={},f.f.Avatars,L.Avatar),x(R,f.f.Banners,L.Banner),x(R,f.f.Thumbnails,L.Thumbnail),R),I=function(e){return"v1/category-map/".concat(e)},V={createUrl:function(e,t){return V._createUrl(e,t)},Rfc3986EncodeURIComponent:function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},createThumbnailUrl:function(e,t){var n=e instanceof A.a?e.get("url"):e;if(n){var r=i.extend({},j,t);return V._createUrl(n,r)}},createBannerUrl:function(e,t,n){var r=e instanceof T.a?e.get("url"):e;return r?V._createUrl(r,n):V._createCategoryMappedUrl(t,n)},createFolderThumbnailUrl:function(e,t,n){return"string"==typeof e||e instanceof A.a&&e.get("url")?V.createThumbnailUrl(e,n):V._createCategoryMappedUrl(t,i.extend({},j,n))},_createCategoryMappedUrl:function(e,t){var n=e.fallbackBaseUrl,r=e.fallbackCategoryName,o=e.type,a="".concat(n).concat(I(N[o])),c=i.extend({name:V.Rfc3986EncodeURIComponent(r)},t);return V._createUrl(a,c)},_createUrl:function(e,t){if(e){if(i.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&";return"".concat(e).concat(r).concat(n)}}},B={setRating:function(e,t){if(t)if(e&&e.id){var n=t.findWhere({selected:!0}),r=t.findWhere({id:e.id});X.deselectAll(t,{silent:!1}),(n||r)&&(n?r.id!==n.id&&r.set("selected",!0):r.set("selected",!0))}else X.deselectAll(t)}},D=n(243),M={getDevicesUserCanManage:function(e,t){return e&&new D.a(e.where({customerId:t}))},getNewestDeviceUserCanManage:function(e,t){var n=M.getDevicesUserCanManage(e,t);if(n||n.length)return n.max((function(e){return new Date(e.get("dateCreated"))}))},customerHasLocalCache:function(e,t){return e&&!!M.getDevicesUserCanManage(e,t).length}},U={generateUniqueChannelName:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"customCid",n=e[t]||e.cid||(e[t]=i.uniqueId("custom"));return"".concat(e.name).concat(n)}},F=function(e,t,n){var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},H={ToDisplayDuration:function(e){if(!i.isNumber(e))return"";var t=new Date(e),n=t.getUTCHours(),r=F(t.getUTCMinutes(),2,"0"),o=F(t.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(r,":").concat(o):"".concat(r,":").concat(o)}},z=n(6),q=(n(14),{name:[{required:!0,msg:function(){return u.a.getPhrase("shared.utils","selectLanguage")}}]}),W=n(298),Y=n(95),G=n(187),K={getEditVideoTabs:function(e,t){return[{name:function(){return u.a.getPhrase("shared.utils","videoDetails")},link:{selector:".edit-video-applink",appLink:{application:k.b.LIBRARY_EDITOR,action:k.a.LibraryEditor.EDIT_VIDEO,args:[e]}}},{name:function(){return u.a.getPhrase("shared.utils","chapters")},link:{selector:".edit-chapters-applink",appLink:{application:k.b.LIBRARY_EDITOR,action:k.a.LibraryEditor.EDIT_VIDEO_CHAPTERS,args:[e]}},hide:t&&t.hideChaptersTab},{name:function(){return u.a.getPhrase("shared.utils","resourcesSubtitlesLinks")},link:{selector:".edit-resources-subtitles-applink",appLink:{application:k.b.LIBRARY_EDITOR,action:k.a.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[e]}}}]},initBackButton:function(){var e=Y.a.getPreviousRoute();e&&!i.contains(G.EditVideoBackButtonActionsBlacklist,e.appLink.action)&&o.a.get(G.EditVideoBackButtonKey).set({appLink:e.appLink})},getBackButton:function(e){var t={application:k.b.LIBRARY_EDITOR,action:k.a.LibraryEditor.VIDEO_DETAILS,args:[e]},n=o.a.get(G.EditVideoBackButtonKey).get("appLink")||t;return{name:this.getBackButtonText(n),link:{selector:".go-back-applink",appLink:n}}},getBackButtonText:function(e){if(!e)return u.a.getPhrase("shared.utils","backToVideoDetails");switch(e.action){case k.a.LibraryEditor.FOLDER:return u.a.getPhrase("shared.utils","backFolder");case k.a.LibraryEditor.SERIES:return u.a.getPhrase("shared.utils","backSeries");case k.a.Search.HOME:return u.a.getPhrase("shared.utils","backSearch");case k.a.ContentUpdates.PAST_RELEASES:return u.a.getPhrase("shared.utils","backPastReleases");case k.a.LibraryEditor.VIDEO_DETAILS:return u.a.getPhrase("shared.utils","backDetails");default:return u.a.getPhrase("shared.utils","back")}}},Q={hasLibraryOfType:function(e,t){var n=e.libraries;return!(!n||!n.length)&&n.any((function(e){return e.get("type")===t}))},hasCustomLibrary:function(e){return Q.hasLibraryOfType(e,O.a.CustomLibrary)},getSourceTypes:function(e){return e.libraries?e.libraries.map((function(e){return e.get("type")})):[]},isExchangeVideo:function(e){return e.libraries&&e.libraries.any((function(e){return e.get("type")===O.a.Exchange}))}},Z={generateDialog:function(e,t,n,o){new r.a({title:u.a.getPhrase("shared.utils","cancelProcessingHeading"),text:u.a.getPhrase("shared.utils","cancelProcessingBody",{videoTitle:e}),buttons:[{text:u.a.getPhrase("shared.utils","yes"),className:"btn btn-primary",success:!0},{text:u.a.getPhrase("shared.utils","no"),className:"btn btn-link",close:!0}]}).render().done((function(){return z.Radio.channel(t).trigger(n,o)}))}},X={setSelected:function(e,t){if(t&&e){X.deselectAll(t);var n=t.findWhere({id:e});n&&n.set("selected",!0)}},getSelected:function(e){return e.findWhere({selected:!0})},deselectAll:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.silent,r=void 0===n||n;e.each((function(e){return e.set("selected",!1,{silent:r})}))},findModelByName:function(e,t){return t.find((function(t){return t.get("name").toLowerCase()===e.toLowerCase()}))},getIds:function(e){return e.map((function(e){return e.get("id")}))}},J=n(184),ee={isLazyLoadSupported:function(e){if(!e)return!1;var t=J.a.getBrowser(),n=t.browser&&t.browser.toLowerCase(),r=t.version&&parseInt(t.version);return!(n&&r&&i.isNumber(r)&&i.has(e,n))||r>=e[n]}},te=n(181),ne={isInInstanceRegion:function(e,t){return e.toLowerCase()===t},isInContentRegion:function(e,t){return e.toLowerCase()===t}};n.d(t,"d",(function(){return r.a})),n.d(t,"a",(function(){return a})),n.d(t,"q",(function(){return h})),n.d(t,"o",(function(){return d})),n.d(t,"x",(function(){return b})),n.d(t,"p",(function(){return m})),n.d(t,"f",(function(){return w.a})),n.d(t,"w",(function(){return S.a})),n.d(t,"j",(function(){return P})),n.d(t,"g",(function(){return V})),n.d(t,"l",(function(){return B})),n.d(t,"i",(function(){return M})),n.d(t,"k",(function(){return U})),n.d(t,"e",(function(){return H})),n.d(t,"u",(function(){return q})),n.d(t,"m",(function(){return W.a})),n.d(t,"v",(function(){return K})),n.d(t,"y",(function(){return Q})),n.d(t,"b",(function(){return Z})),n.d(t,"c",(function(){return X})),n.d(t,"h",(function(){return ee})),n.d(t,"s",(function(){return te.b})),n.d(t,"t",(function(){return te.c})),n.d(t,"r",(function(){return te.a})),n.d(t,"n",(function(){return ne}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(1),o=n(6),i=n(68),a=n(11),c=n(20);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(l,e);var t,n,i,u=h(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=u.call(this,e),r.result(d(t),"name")||a.c.throw(new c.a("Must provide a name when extending BaseDataService")),r.result(d(t),"channelName")||a.c.throw(new c.a("Must provide a channelName for ".concat(r.result(d(t),"name"))));var n=[].concat(s(t.defaultProps),s(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=l,(n=[{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}},{key:"getCursors",value:function(e){var t=this.cache.get(e);return t?t.cursors:{}}},{key:"clearCacheAndGet",value:function(e){var t=this,n=e.callback,o=e.errorCallback,i=e.eventPrefix,a=this.getEventNames(i),c=a.syncEvent,u=a.errorEvent,s=this.cache.get(i);if(s&&s.openRequest)return this.listenToOnce(this.getChannel(),c,(function(e){r.isFunction(o)&&t.stopListening(t.getChannel(),u,o),r.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),u,(function(){r.isFunction(n)&&t.stopListening(t.getChannel(),c,n),r.isFunction(o)&&o()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,o=e.errorCallback,i=e.eventPrefix,a=e.resource,c=e.formatData,u=e.expiryTime,s=e.successHandler,l=e.errorHandler,f=e.bootstrapName,p=this.getEventNames(i),h=p.syncEvent,y=p.requestEvent,d=p.successEvent,b=p.errorEvent,v=this.getChannel(),g=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[f]&&(this.cacheData(i,this.bootstrapData[f],c,{openRequest:!1,timestamp:g}),delete this.bootstrapData[f]);var m,w=this.cache.get(i);w&&(m=w.data);var S=w&&w.openRequest,O=this.isExpired(i,u);if(S&&(this.listenToOnce(v,h,(function(e){r.isFunction(o)&&t.stopListening(t.getChannel(),b,o),r.isFunction(n)&&n(e)})),this.listenToOnce(v,b,(function(){r.isFunction(n)&&t.stopListening(t.getChannel(),h,n),r.isFunction(o)&&o()}))),this.cache.has(i)&&!O||(v.trigger(y),this.listenToResponse({eventPrefix:i,formatData:c,cacheOptions:{timestamp:g},callback:n,errorCallback:o,successHandler:s,errorHandler:l}),this.cacheData(i,null,null,{openRequest:!0,timestamp:g}),this.dataProvider.read(a,{channel:this.getTransportChannel(),successEvent:d,errorEvent:b})),m&&r.isFunction(n)&&!O&&n(m),m)return m}},{key:"create",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.data,o=e.formatData,i=e.callback,a=e.errorCallback,c=e.invalidationKeys,u=e.successHandler,s=e.errorHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,h=l.errorEvent,y=this.getChannel(),d=this.getTransportChannel();y.trigger(f),this.listenToResponse({eventPrefix:t,formatData:o,invalidationKeys:c,callback:i,errorCallback:a,successHandler:u,errorHandler:s}),this.dataProvider.create(n,r,{channel:d,successEvent:p,errorEvent:h})}},{key:"update",value:function(e){var t=e.data,n=e.callback,r=e.errorCallback,o=e.resource,i=e.formatData,a=e.eventPrefix,c=e.invalidationKeys,u=e.errorHandler,s=e.successHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,h=l.errorEvent,y=this.getChannel(),d=this.getTransportChannel();y.trigger(f),this.listenToResponse({eventPrefix:a,formatData:i,invalidationKeys:c,callback:n,errorCallback:r,successHandler:s,errorHandler:u}),this.dataProvider.update(o,t,{channel:d,successEvent:p,errorEvent:h})}},{key:"delete",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.callback,o=e.errorCallback,i=e.invalidationKeys,a=e.successHandler,c=e.errorHandler,u=this.getEventNames(t),s=u.successEvent,l=u.errorEvent,f=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:i,callback:r,errorCallback:o,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:a,errorHandler:c}),this.dataProvider.delete(n,{channel:f,successEvent:s,errorEvent:l})}},{key:"listenToResponse",value:function(e){var t=this,n=e.eventPrefix,o=e.formatData,i=e.callback,a=e.errorCallback,c=e.successHandler,u=e.errorHandler,s=e.invalidationKeys,l=e.cacheOptions,f=void 0===l?{}:l,p=this.getEventNames(n),h=p.syncEvent,y=p.successEvent,d=p.errorEvent,b=p.successAlertEvent,v=p.errorAlertEvent,g=this.getChannel(),m=this.getTransportChannel(),w=this.getAlertChannel();r.isFunction(i)&&this.listenToOnce(g,h,i),r.isFunction(a)&&this.listenToOnce(g,d,a),this.stopListening(w,b),this.stopListening(w,v),r.isFunction(c)&&this.listenToOnce(w,b,c),r.isFunction(u)&&this.listenToOnce(w,v,u),!r.isFunction(u)&&!1!==u&&r.isFunction(this.defaultErrorHandler)&&this.listenToOnce(w,v,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(m,y,(function(e){t.stopListening(g,d,a);for(var r=arguments.length,i=new Array(r>1?r-1:0),c=1;c<r;c++)i[c-1]=arguments[c];w.trigger.apply(w,[b,e].concat(i));var u=f.noCache?t.formatData(e,o):t.cacheData(n,e,o);f.clearCacheKey&&t.cache.remove(n),g.trigger(h,u),s&&s.length&&t.cache.invalidate(s,(function(e){return g.trigger("".concat(e,":invalidate"))}))})),this.listenTo(m,d,(function(){var e;t.stopListening(g,h,i);var r=(e=t.dataProvider).parseError.apply(e,arguments);w.trigger(v,r),g.trigger(d,r),f.noCache||t.cacheData(n,null,null)})))}},{key:"cacheData",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.openRequest,i=void 0!==o&&o,a=r.timestamp;a||(a=this.currentTimestamp());var c=this.processPagination(t),u=this.formatData(t,n);return this.cache.set(e,{data:u,timestamp:a,cursors:c,openRequest:i}),u}},{key:"processPagination",value:function(e){if(e){var t=e.pagination;if(t)return t.cursors?t.cursors:r.isUndefined(t.offset)||r.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return r.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){r.isFunction(e)&&e(t)},o=function(r,o){return t.push((function(){var i=r.callback;r.callback=function(e){n(i,e),n(t.shift())},e[o](r)})),i},i={func:function(e){return t.push((function(){e(t.shift()||function(){})})),i},get:function(e){return o(e,"get")},create:function(e){return o(e,"create")},update:function(e){return o(e,"update")},delete:function(e){return o(e,"delete")},run:function(){n(t.shift())}};return i}},{key:"invalidateCache",value:function(e){e&&e.length&&this.cache.invalidate(e)}},{key:"currentTimestamp",value:function(){return(new Date).valueOf()}},{key:"isExpired",value:function(e,t){if(!t)return!1;var n=this.cache.get(e);if(!n||!n.timestamp)return!0;var r=1e3*t;return n.timestamp<this.currentTimestamp()-r}},{key:"getEventNames",value:function(e){return{syncEvent:"".concat(e,":sync"),requestEvent:"".concat(e,":request"),successEvent:"".concat(e,":success"),errorEvent:"".concat(e,":error"),successAlertEvent:"".concat(e,":success:alert"),errorAlertEvent:"".concat(e,":error:alert")}}},{key:"getTransportChannel",value:function(){return o.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return o.Radio.channel("".concat(this.channelName,":alert"))}},{key:"setRequestSignature",value:function(e){this.dataRequestSignatures[e]=e}},{key:"hasRequestSignature",value:function(e){return!!this.dataRequestSignatures[e]}},{key:"convertOffsetPaginationToCursors",value:function(e){var t=e.offset,n=e.pageSize,o=e.totalItems,i=o>0&&t<o&&t+n,a=o>0&&t>0&&Math.max(t-n,0),c={};if(i&&i<o&&(c.next=i.toString()),r.isNumber(a)&&(c.previous=a.toString()),!r.isEmpty(c))return c}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,o=r.isNumber(t)&&t>0&&t<n&&t+1,i=r.isNumber(t)&&t>1&&t-1,a={};if(o&&o<=n&&(a.next=o.toString()),i&&(a.previous=i.toString()),!r.isEmpty(a))return a}}])&&f(t.prototype,n),i&&f(t,i),l}(i.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"}},function(e,t,n){"use strict";var r,o,i=n(155),a=n(1),c=n(353),u=n.n(c),s=n(354),l=n.n(s),f=n(355),p=n.n(f),h=n(356),y=n.n(h),d=(n(357),n(358),n(359)),b=n.n(d),v=n(360),g=n.n(v),m=n(361),w=n.n(m),S=n(362),O=n.n(S),C=n(363),k=n.n(C),E=n(364),_=n.n(E),R=n(365),P=n.n(R),A=n(366),T=n.n(A),x=n(367),L=n.n(x),j=n(368),N=n.n(j),I=n(369),V=n.n(I),B=n(370),D=n.n(B),M=n(371),U=n.n(M),F=n(372),H=n.n(F),z=n(373),q=n.n(z),W=n(374),Y=n.n(W),G=n(375),K=n.n(G),Q=n(376),Z=n.n(Q),$=n(377),X=n.n($),J=n(378),ee=n.n(J),te=n(379),ne=n.n(te),re=n(380),oe=n.n(re),ie=n(381),ae=n.n(ie),ce=n(382),ue=n.n(ce),se=n(383),le=n.n(se),fe=n(384),pe=n.n(fe),he=n(385),ye=n.n(he),de=n(386),be=n.n(de),ve=(n(387),n(388),n(389)),ge=n.n(ve),me=n(390),we=n.n(me),Se=n(391),Oe=n.n(Se),Ce=n(392),ke=n.n(Ce),Ee=n(393),_e=n.n(Ee),Re=n(394),Pe=n.n(Re),Ae=(n(395),n(396)),Te=n.n(Ae),xe=n(397),Le=n.n(xe),je=n(398),Ne=n.n(je),Ie=n(399),Ve=n.n(Ie),Be=n(400),De=n.n(Be),Me=n(401),Ue=n.n(Me),Fe=n(402),He=n.n(Fe),ze=(n(403),n(404)),qe=n.n(ze),We=n(405),Ye=n.n(We),Ge=n(406),Ke=n.n(Ge),Qe=n(407),Ze=n.n(Qe),$e=n(408),Xe=n.n($e),Je=n(409),et=n.n(Je),tt=n(410),nt=n.n(tt),rt=n(411),ot=n.n(rt),it=n(412),at=n.n(it),ct=n(413),ut=n.n(ct),st=n(414),lt=n.n(st),ft=n(415),pt=n.n(ft),ht=n(416),yt=n.n(ht),dt=n(417),bt=n.n(dt),vt=n(418),gt=n.n(vt),mt=n(419),wt=n.n(mt),St=n(420),Ot=n.n(St),Ct=n(421),kt=n.n(Ct),Et=(n(422),n(423),n(424),n(425)),_t=n.n(Et),Rt=(n(426),n(427),n(428),n(429),n(430)),Pt=n.n(Rt),At=n(431),Tt=n.n(At),xt=(n(432),n(433),n(434),n(435)),Lt=n.n(xt),jt=n(436),Nt=n.n(jt),It=n(437),Vt=n.n(It),Bt=n(438),Dt=n.n(Bt),Mt=n(439),Ut=n.n(Mt),Ft=n(440),Ht=n.n(Ft),zt=n(441),qt=n.n(zt),Wt=(n(442),n(443),n(444),n(445)),Yt=n.n(Wt),Gt=n(446),Kt=n.n(Gt),Qt=[u.a,p.a,y.a,b.a,O.a,k.a,_.a,P.a,w.a,l.a,T.a,L.a,N.a,V.a,D.a,g.a,U.a,H.a,q.a,Y.a,K.a,Z.a,X.a,ue.a,le.a,ee.a,ne.a,oe.a,ae.a,pe.a,Oe.a,ut.a,pt.a,lt.a,wt.a,yt.a,bt.a,gt.a,Ve.a,Ue.a,De.a,ye.a,be.a,Le.a,Ne.a,Te.a,ge.a,ke.a,Ye.a,Ke.a,_e.a,Pe.a,Ze.a,we.a,qe.a,Xe.a,et.a,He.a,nt.a,at.a,ot.a,Ot.a,kt.a,Pt.a,Tt.a,_t.a,Vt.a,Nt.a,Lt.a,Dt.a,Ht.a,Ut.a,qt.a,Kt.a,Yt.a];function Zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.AddToPlaylists="add-to-playlist",e.Caret="caret",e.Delete="delete",e.Edit="edit",e.NoEdit="no-edit",e.Close="close",e.Folder="folder",e.Resources="resources",e.More="more",e.Bell="bell",e.Plus="plus",e.Search="search",e.Share="share",e.Share2="share2",e.Upload="upload",e.Preview="preview",e.CircleCheck="circle-check",e.Down="down",e.Right="right",e.UpDown="up-down",e.ChevronUp="chevron-up",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.VisibleOff="visible-off",e.VisibleOn="visible-on",e.PublisherArchive="publisher-archive",e.Play="play",e.PlayCircle="play-circle",e.ArrowLeft="arrow-left",e.ArrowRight="arrow-right",e.CheckCircleOutline="check-circle-o",e.CheckCircle="check-circle",e.Check="check",e.Lock="lock",e.Link="link",e.Info="info",e.Question="question",e.Star="star",e.StarOutline="star-o",e.Archive="archive",e.Warning="warning",e.WarningOutline="warning-o",e.NewWindow="new-window",e.File="file",e.FilePDF="file-pdf",e.FileExcel="file-excel",e.FilePowerpoint="file-ppt",e.FileWord="file-word",e.FileImg="file-img",e.FileZip="file-zip",e.Enter="enter",e.Calendar="calendar",e.CloseCaption="close-caption",e.CloseCaptionBadge="close-caption-badge",e.Playlist="playlist",e.Handle="handle",e.Subject="subject",e.Series="series",e.EditClickView="edit-clickview",e.Heart="heart",e.HeartOutline="heart-outline",e.WhiteWave="white-wave",e.Cog="cog",e.Video="video",e.Compass="compass",e.History="history",e.Tag="tag",e.Email="email",e.YearLevel="year-level",e.Subjects="subjects",e.Download="download",e.Print="print",e.CreateInteractive="create-interactive",e.Twitter="twitter",e.Facebook="facebook"}(r||(r={}));var $t;function Xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}a.extend(i.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),(o=i.library).add.apply(o,function(e){if(Array.isArray(e))return Zt(e)}($t=Qt)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}($t)||function(e,t){if(e){if("string"==typeof e)return Zt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zt(e,t):void 0}}($t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n.d(t,"a",(function(){return Jt})),n.d(t,"b",(function(){return en}));var Jt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"getSvg",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.faIconLookup(e,t),r=this.getIcon(n,t);if(r&&(!r||r.html.length))return r.html.pop()}},{key:"getIcon",value:function(e,t){return i.icon(e,t.iconOptions||{})}},{key:"faIconLookup",value:function(e,t){var n=t.prefix,r=void 0===n?"cv":n;return i.findIconDefinition({prefix:r,iconName:e})}}])&&Xt(t.prototype,n),r&&Xt(t,r),e}().Instance,en=r},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return y})),n.d(t,"b",(function(){return d})),n.d(t,"g",(function(){return b}));var r=n(8),o=n(114),i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},u=function(){function e(){}return e.isRequired=function(e,t){if(null==e)throw new Error("The '"+t+"' argument is required.")},e.isNotEmpty=function(e,t){if(!e||e.match(/^\s*$/))throw new Error("The '"+t+"' argument should not be empty.")},e.isIn=function(e,t,n){if(!(e in t))throw new Error("Unknown "+n+" value: "+e+".")},e}(),s=function(){function e(){}return Object.defineProperty(e,"isBrowser",{get:function(){return"object"==typeof window},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isWebWorker",{get:function(){return"object"==typeof self&&"importScripts"in self},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isNode",{get:function(){return!this.isBrowser&&!this.isWebWorker},enumerable:!0,configurable:!0}),e}();function l(e,t){var n="";return f(e)?(n="Binary data of length "+e.byteLength,t&&(n+=". Content: '"+function(e){var t=new Uint8Array(e),n="";return t.forEach((function(e){n+="0x"+(e<16?"0":"")+e.toString(16)+" "})),n.substr(0,n.length-1)}(e)+"'")):"string"==typeof e&&(n="String data of length "+e.length,t&&(n+=". Content: '"+e+"'")),n}function f(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function p(e,t,n,o,u,s,p,h,y){return a(this,void 0,void 0,(function(){var a,d,v,g,m,w,S,O;return c(this,(function(c){switch(c.label){case 0:return d={},u?[4,u()]:[3,2];case 1:(v=c.sent())&&((a={}).Authorization="Bearer "+v,d=a),c.label=2;case 2:return g=b(),m=g[0],w=g[1],d[m]=w,e.log(r.a.Trace,"("+t+" transport) sending data. "+l(s,p)+"."),S=f(s)?"arraybuffer":"text",[4,n.post(o,{content:s,headers:i({},d,y),responseType:S,withCredentials:h})];case 3:return O=c.sent(),e.log(r.a.Trace,"("+t+" transport) request complete. Response status: "+O.statusCode+"."),[2]}}))}))}function h(e){return void 0===e?new d(r.a.Information):null===e?o.a.instance:e.log?e:new d(e)}var y=function(){function e(e,t){this.subject=e,this.observer=t}return e.prototype.dispose=function(){var e=this.subject.observers.indexOf(this.observer);e>-1&&this.subject.observers.splice(e,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch((function(e){}))},e}(),d=function(){function e(e){this.minimumLogLevel=e,this.outputConsole=console}return e.prototype.log=function(e,t){if(e>=this.minimumLogLevel)switch(e){case r.a.Critical:case r.a.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+r.a[e]+": "+t);break;case r.a.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+r.a[e]+": "+t);break;case r.a.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+r.a[e]+": "+t);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+r.a[e]+": "+t)}},e}();function b(){var e="X-SignalR-User-Agent";return s.isNode&&(e="User-Agent"),[e,v("5.0.2",g(),w(),m())]}function v(e,t,n,r){var o="Microsoft SignalR/",i=e.split(".");return o+=i[0]+"."+i[1],o+=" ("+e+"; ",o+=t&&""!==t?t+"; ":"Unknown OS; ",o+=""+n,o+=r?"; "+r:"; Unknown Runtime Version",o+=")"}function g(){if(!s.isNode)return"";switch(e.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return e.platform}}function m(){if(s.isNode)return e.versions.node}function w(){return s.isNode?"NodeJS":"Browser"}}).call(this,n(762))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(22),o=Object.assign({Notifications:"NotificationService",PartialLoading:"PartialLoadingService",NavLock:"NavLockService",DialogHelper:"DialogHelper",Analytics:"AnalyticsService",VideoDragDrop:"VideoDragDropService",FolderDragDrop:"FolderDragDropService",SelectedVideo:"SelectedVideoService",FolderCache:"FolderCacheService",LocalOptions:"LocalOptionsService",ContextService:"ContextService",VideoMixin:"VideoMixinService",PageVisibility:"PageVisibility",PageTitle:"PageTitle",Language:"LanguageService",ContextualSearch:"ContextualSearchService",Intercom:"IntercomService"},r.b),i=Object.assign({Config:"ConfigDataService",User:"UserDataService",Customer:"CustomerDataService",Library:"LibraryDataService",Search:"SearchDataService",Notifications:"NotificationDataService",NotificationsSocket:"NotificationSocketService",Settings:"SettingsDataService",StaffRequests:"StaffRequestDataService",MigrationVideo:"MigrationVideoDataService",Tags:"TagDataService",Series:"SeriesDataService",ImageUpload:"ImageUploadDataService",Chapter:"ChapterDataService",Export:"ExportDataService",LocalCache:"LocalCacheDataService",RestrictedVideo:"RestrictedVideoDataService",Ratings:"RatingsDataService",Language:"LanguageDataService",ContentUpdates:"ContentUpdatesDataService",DownloadProxy:"DownloadProxyDataService",Resource:"ResourceDataService",Subtitle:"SubtitleDataService",Link:"LinkDataService",Company:"CompanyDataService",Person:"PersonDataService",Fields:"FieldsDataService"},r.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHORT:120,STANDARD:600}},,function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return l}));var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,e);var t,n,r,u=c(s);function s(){return o(this,s),u.apply(this,arguments)}return t=s,(n=[{key:"name",get:function(){return"DevError"}}])&&i(t.prototype,n),r&&i(t,r),s}(n(11).a)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Sources="libraries",e.Folder="folder",e.Tags="tag",e.Ratings="ratings",e.Interactives="interactives",e.Resources="resources",e.Subtitles="subtitles",e.ProductionYear="productionYear",e.ProducedByClickView="producedByClickView",e.HD="hd",e.Duration="duration",e.Series="series"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={Config:"ConfigDataService",User:"UserDataService",Language:"LanguageDataService",Video:"VideoDataService",VideoUpload:"VideoUpload",Library:"LibraryDataService",Search:"SearchDataService",Series:"SeriesDataService",Notification:"NotificationDataService",NotificationSocket:"NotificationSocketService",FlightConfig:"FlightConfigDataService",FlightUser:"FlightUserDataService"},o={ImageUrl:"ImageUrlService",PendingItems:"PendingItemsService",Alerts:"AlertService",VideoUpload:"VideoUploadService",ResourceUpload:"ResourceUploadService",SubtitleUpload:"SubtitleUploadService",VideoMixin:"VideoMixinService",ContextualSearch:"ContextualSearchService",Context:"ContextService",Notification:"NotificationService",AppOptions:"AppOptionsService"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Channel="channels",e.Distributors="companies",e.Producers="people",e.Tags="tags",e.Language="languages",e.TagsRaw="tag",e.ChannelRaw="channel",e.Recent="recent",e.Direct="direct",e.ProductionCompanies="companies",e.Directors="people",e.Season="season",e.Subjects="subjects"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var r={CONFIG:"config:data:service",USER:"user:data:service",LANGUAGE:"language:data:service",LIBRARY:"library:data:service",SEARCH:"search:data:service",SERIES:"series:data:service",NOTIFICATIONS:"notifications:data:service",NOTIFICATIONS_SOCKET:"notifications:socket:service"},o={PENDING_ITEMS:"pending:items:service",VIDEO_UPLOAD:"video:upload:service",SUBTITLE_UPLOAD:"subtitle:upload:service",RESOURCE_UPLOAD:"resource:upload:service",CONTEXTUAL_SEARCH:"contextual:search:service"},i={NOTIFICATIONS:"notifications:application"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Component=1]="Component",e[e.ComponentCollection=2]="ComponentCollection"}(r||(r={}))},,function(e,t,n){"use strict";var r,o;!function(e){e.Libraries="libraries",e.Subjects="subjects",e.ReleaseDate="release-date"}(r||(r={})),function(e){e.ThisMonth="this-month",e.LastMonth="last-month",e.Last3Months="last-3-months",e.Last6Months="last-6-months"}(o||(o={})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))},,function(e,t){e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(1),o=n(88),i=n(20),a=n(68),c=n(81),u=n(177),s=n(11);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(y,e);var t,n,a,l=h(y);function y(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(e=l.call(this)).viewObjects={},e}return t=y,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return"ViewModelService"}},{key:"updateViewModel",value:function(e,t){var n=this.mergeData(t,e.toJSON());return e instanceof u.a&&e.set(n,{silent:!0}),e instanceof c.a&&!(e instanceof u.a)&&e.set(n,{silent:!0}),e}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.update,o=void 0!==r&&r,i=this.viewObjects[e];if(i&&o)return this.updateViewModel(i,t);if(i)return i;var a=this.getLocalData(e,n);return this.set(e,t,a,n)}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=r.ctor,i=r.storage,a=this.mergeData(t,n),u=o?new o(a):new c.a(a);return this.viewObjects[e]=u,i&&!n?(this.setLocalData(e,u,null,r),this.setupChangeListeners(e,u,r)):i&&n&&this.setupChangeListeners(e,u,r),u}},{key:"clear",value:function(e){var t=this.viewObjects[e];return!!t&&(this.stopListening(t),t.trigger("destroy"),delete this.viewObjects[e],!0)}},{key:"getLocalData",value:function(e,t){var n=t.storage;if(n)return this.getStorageHelper(n.type).get(e)}},{key:"setLocalData",value:function(e,t,n,r){var o,i=r.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),t instanceof c.a&&(o=t.pick(i.persistProps)),this.getStorageHelper(i.type).set(e,o))}},{key:"setupChangeListeners",value:function(e,t,n){var o=this,i=n.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),r.each(i.persistProps,(function(i){o.listenTo(t,"change:".concat(i),r.partial(o.setLocalData,e,r,r,n))})))}},{key:"mergeData",value:function(e,t){return t?r.isObject(e)&&r.isObject(t)?r.extend(e,t):void s.c.throw(new i.a("defaultValues and existingData are not of the same datatype and cannot be merged")):e}},{key:"getStorageHelper",value:function(e){switch(e){case o.c.LocalStorage:return o.a;case o.c.SessionStorage:return o.b}}}])&&f(t.prototype,n),a&&f(t,a),y}(a.a).Instance},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={FOLDER:"folder",FOLDER_VIDEOS:"folder:videos",VIDEOS:"videos",SERIES:"series",LIBRARY:"library",MOVE_VIDEOS:"move:videos",VIDEOS_BY_ID:"videos:by:id",VIDEOS_TO_REVIEW:"videos:to:review",RECENT_VIDEOS:"recent:videos",RECENT_VIDEOS_ALL_PAGES:"recent:videos:all:pages",RECENT_SUBJECTS:"recent:subjects",RESTRICTED_VIDEOS:"restricted:videos",RESTRICTED_OBJECTS:"restricted:objects",RATINGS:"ratings",CHANNELS:"channels",PRODUCERS:"producers",NOTIFICATIONS:"notifications",DISTRIBUTORS:"distributors",UPDATE_VIDEO:"update:video",UPDATE_VIDEO_THUMBNAIL:"update:video:thumbnail",DELETE_VIDEO_THUMBNAIL:"delete:video:thumbnail",UPDATE_FOLDER_BANNER:"update:folder:banner",DELETE_FOLDER_BANNER:"delete:folder:banner",DELETE_VIDEO:"delete:video",DISSOC_VIDEO:"dissoc:video",UPDATE_FIELD:"update:field",ADD_FIELD:"add:field",DELETE_FIELD:"delete:field",ASSOC_RATING:"assoc:video",DISSOC_RATING:"dissoc:rating",SEARCH_VIDEOS:"search:videos",SEARCH_FILTERS:"search:filters",SHARED_RESOURCE:"shared:resource",UPDATE_VIDEO_RESTRICTION:"update:video:restriction",SETTINGS:"settings",UPDATE_SETTING:"update:setting",GENERATE_PDF:"generate:pdf",GENERATE_COLLECTION_PDF:"generate:collection:pdf",GENERATE_CUSTOM_PDF:"generate:custom:pdf",STAFF_REQUESTS:"staff:requests",CUSTOMER_VIDEO:"customer:video",CUSTOMER_FOLDERS:"customer:folders",CUSTOMER_VIDEOS:"customer:videos",CUSTOMER_SMART_VIDEOS:"customer:smart:videos",CUSTOMER_METADATA:"customer:metadata",CLOUD_SYNC_STATUS:"cloud:sync:status",STAFF_REQUEST_BY_ID:"staff:requests:by:id",STAFF_REQUEST_MESSAGES:"staff:requests:messages",GET_TAGS:"get:tags",CREATE_TAG:"create:tag",ASSOC_TAG:"assoc:tag",DISSOC_TAG:"dissoc:tag",CREATE_SERIES:"create:series",CURRENT_USER:"currentuser",USER_BY_ID:"user:by:id",CREATE_CHAPTER:"create:chapter",UPDATE_CHAPTER:"update:chapter",DELETE_CHAPTER:"delete:chapter",CONCATENATE_CHAPTERS:"concatenate:chapters",CONCATENATE_STATUS:"concatenate:status",VIDEO_HAS_PHYSICAL_CHAPTERS:"video:has:physical:chapters",UPLOAD_IMAGE:"upload:image",FINALISATION:"finalisation",CUSTOMER:"customer",BACKUP_TOOL:"backup:tool",LOCAL_CACHE_DEVICES:"local:cache:devices",LOCAL_CACHE_DOWNLOADS:"local:cache:downloads",ADD_VIDEO_TO_LOCAL_CACHE:"add:video:to:local:cache",LOCALE:"locale",PHRASES:"phrases",SUGGEST_EDIT:"suggest:edit",UPDATE_FOLDER_THUMBNAIL:"update:folder:thumbnail",DELETE_FOLDER_THUMBNAIL:"delete:folder:thumbnail",LIBRARY_FOLDERS:"library:folders",RESOURCE:"resource",CREATE_RESOURCE:"create:resource",UPDATE_RESOURCE:"update:resource",DELETE_RESOURCE:"delete:resource",CREATE_SUBTITLE:"create:subtitle",DELETE_SUBTITLE:"delete:subtitle",LINK:"link",CREATE_LINK:"create:link",UPDATE_LINK:"update:link",DELETE_LINK:"delete:link",CREATE_COMPANY:"create:company",CREATE_PERSON:"create:person",BULK_DISSOC:"bulk:dissoc",CREATE_SEASON:"create:season"}},,,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.MostRecent=1]="MostRecent",e[e.AtoZ=2]="AtoZ",e[e.ProductionYear=3]="ProductionYear",e[e.Newest=4]="Newest",e[e.SeriesSort=5]="SeriesSort"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(2),o=n(20);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(l,e);var t,n,i,s=u(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this,e)).dialogOptions||r.a.ErrorHelper.throw(new o.a("Please provide DialogOptions for your implementation of DialogError")),t}return t=l,(n=[{key:"name",get:function(){return"DialogError"}},{key:"onDone",value:function(){}},{key:"onFail",value:function(){}}])&&a(t.prototype,n),i&&a(t,i),l}(r.a.SilentError)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHOW_POPUP:"show:popup",ROUTE:"route",LOCK_NAV:"lock:nav",UNLOCK_NAV:"unlock:nav",NAV_IS_LOCKED:"navigation:islocked",NAV_UNLOCKED_BY_USER:"navigation:unlocked:by:user",ROUTING_START:"routing:start",ROUTING_END:"routing:end",HAS_ACTIVE_ROUTE:"has:active:route",ROUTE_LOOKUP:"route:look:up",URL_CHANGE:"url:change",ERROR:"error",CURRENT_ROUTE:"route:current"}},,function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return l}));var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,e);var t,n,r,u=c(s);function s(){return o(this,s),u.apply(this,arguments)}return t=s,(n=[{key:"name",get:function(){return"ErrorPageError"}}])&&i(t.prototype,n),r&&i(t,r),s}(n(2).a.SilentError)},function(e,t,n){e.exports={addLibraryButton:"fXaTF",addLibraryPlus:"_3Ygal",paddedContainer:"_1uVUJ",imageLarge:"_2-GAI",imageSmall:"_36Ljd"}},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(20),a=n(4),c=n(14),u=n(230);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,e);var t,n,r,i=h(a);function a(){var e;return l(this,a),(e=i.apply(this,arguments)).contextHistory=[],e}return t=a,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return u.a.Context}},{key:"initialize",value:function(){this.listenTo(c.a.SHELL,o.a.EventNames.ROUTE,this.setContext)}},{key:"setContext",value:function(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}},{key:"getCurrentContext",value:function(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}},{key:"fromPageLoad",value:function(){return 1===this.contextHistory.length}}])&&f(t.prototype,n),r&&f(t,r),a}(o.a.Service)),v=n(117);function g(){var e=b.getCurrentContext().appLink;return r.isObject(e)||o.a.ErrorHelper.throw(new i.a("Applink does not exist. Check current context.")),e.application.replace(":","-")}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.location,n=e.entity,r=e.workflowPhase,a=void 0===r?null:r,c=e.descriptor,u=void 0===c?null:c;return t||o.a.ErrorHelper.throw(new i.a("location must be set.")),n||o.a.ErrorHelper.throw(new i.a("entity must be set.")),{productArea:g(),location:t,entity:n,descriptor:u,workflowPhase:a}}function w(){return o.a.LocationUtils.GetCurrentPath()+o.a.LocationUtils.GetCurrentQueryString()}n.d(t,"a",(function(){return S}));var S={logUserAction:function(e,t){if(function(e){return!(!r.isArray(e)||!r.every(e,(function(e){return r.isObject(e)})))||!!r.isObject(e)}(e)&&r.isObject(t)){var n=S.buildUserActionEvent(t),o=n.userAction,i=n.action,a=n.eventVersion;v.a.log(o,e,i,a)}},logNavigate:function(e,t){var n=Object.assign({currentLocation:w(),appLink:e},t);v.a.log(a.UserAction.Navigate,n)},mergeOptions:function(e,t){return r.extend({},e,t)},buildActionContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m(e)},buildUserActionEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionType,n=e.eventVersion,r=t,o=m(e);return{userAction:r,action:o,eventVersion:n}},buildCurrentLocation:function(){return w()},buildSearchEvent:function(e,t){return{data:{query:e},action:m({entity:a.EntityType.Video,location:a.LocationContext.SearchBar,descriptor:t})}},buildInstantSearchEvent:function(e,t,n){var r;n===a.SearchQueryType.Series&&(r=a.EntityType.Series),n===a.SearchQueryType.Folder&&(r=a.EntityType.Folder),n===a.SearchQueryType.Tags&&(r=a.EntityType.Tag),n===a.SearchQueryType.Video&&(r=a.EntityType.Video),n===a.SearchQueryType.Subjects&&(r=a.EntityType.Classification);var o={instant:{},query:e};return t.id&&(o.instant.selectedId=t.id),t.name&&(o.instant.selectedName=t.name),{data:o,action:m({entity:r,location:a.LocationContext.SearchBar})}},mapInteractionType:function(e){switch(e){case a.InteractionType.DragDrop:return a.InteractionTypeDescriptor.DragDrop;case a.InteractionType.FileSelect:return a.InteractionTypeDescriptor.FileSelect;default:return}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SEARCH:"search:app:variables",NOTIFICATIONS:"notifications:app:variables",SUBJECTS:"subjects:app:variables",SETTINGS:"settings:app:variables"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={UPLOAD_COMPLETE:"upload:complete",FILES_SELECTED:"files:selected",FILES_ADDED:"files:added",UPLOAD_CANCELLED:"upload:cancelled",PENDING_ITEM_READY_TO_WATCH:"pending:item:ready:to:watch",PENDING_ITEM_STATUS_CHANGE:"pending:item:status:change",PROCESSING_CANCELLED:"processing:cancelled",UNLOCK_NAV:"upload:unlock:nav"}},,,function(e,t,n){"use strict";var r,o,i,a,c,u,s;!function(e){e.Title="title",e.Views="viewsLast3Years"}(r||(r={})),function(e){e[e.None=0]="None",e[e.NoPublisher=5]="NoPublisher",e[e.BackupToolProcessesing=1]="BackupToolProcessesing",e[e.BackupToolCompleteWithError=2]="BackupToolCompleteWithError",e[e.BackupToolComplete=3]="BackupToolComplete",e[e.BackupCompleteWithError=8]="BackupCompleteWithError",e[e.BackupComplete=9]="BackupComplete",e[e.PublishingLibrary=6]="PublishingLibrary",e[e.LibraryPublished=7]="LibraryPublished"}(o||(o={})),function(e){e[e.None=0]="None",e[e.Smart=1]="Smart",e[e.Scratch=2]="Scratch",e[e.Full=3]="Full"}(i||(i={})),function(e){e.MigratedHidden="migratedHidden"}(a||(a={})),function(e){e[e.Valid=1]="Valid",e[e.BinaryRemoved=2]="BinaryRemoved",e[e.CloudFileNotFound=8]="CloudFileNotFound",e[e.CloudEmptyChapter=32]="CloudEmptyChapter",e[e.MediaProbingFailure=128]="MediaProbingFailure",e[e.CloudLocalChecksumNotMatch=16384]="CloudLocalChecksumNotMatch",e[e.CloudLocalDurationNotMatch=32768]="CloudLocalDurationNotMatch",e[e.CloudLocalChapterCountNotMatch=65536]="CloudLocalChapterCountNotMatch",e[e.TrackingCodeNotFound=536870912]="TrackingCodeNotFound",e[e.Exception=134217728]="Exception",e[e.CloudDurationDirty=1073741824]="CloudDurationDirty",e[e.LocalFileNotFound=16]="LocalFileNotFound",e[e.DbEmptyChapter=64]="DbEmptyChapter",e[e.DbChapterChecksumNotFound=256]="DbChapterChecksumNotFound",e[e.DbChapterDurationNotFound=512]="DbChapterDurationNotFound",e[e.DbChapterFileSizeNotFound=1024]="DbChapterFileSizeNotFound",e[e.DbChapterChecksumNotMatch=2048]="DbChapterChecksumNotMatch",e[e.DbChapterDurationNotMatch=4096]="DbChapterDurationNotMatch",e[e.DbChapterFileSizeNotMatch=8192]="DbChapterFileSizeNotMatch",e[e.SubtitleUploadFailure=131072]="SubtitleUploadFailure",e[e.ResourceUploadFailure=262144]="ResourceUploadFailure",e[e.ResourceFileNotFound=524288]="ResourceFileNotFound",e[e.ResourceFileInvalid=1048576]="ResourceFileInvalid",e[e.DbResourceChecksumNotFound=2097152]="DbResourceChecksumNotFound",e[e.DbResourceExtensionNotFound=4194304]="DbResourceExtensionNotFound",e[e.DbResourceFileSizeNotFound=8388608]="DbResourceFileSizeNotFound",e[e.DbResourceChecksumNotMatch=16777216]="DbResourceChecksumNotMatch",e[e.DbResourceFileSizeNotMatch=33554432]="DbResourceFileSizeNotMatch",e[e.CoverImageUploadFailure=67108864]="CoverImageUploadFailure",e[e.BackupIgnored=268435456]="BackupIgnored"}(c||(c={})),function(e){e[e.Valid=1]="Valid",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(u||(u={})),function(e){e.Migrated="migrated",e.Remaining="remaining",e.Errored="errored",e.ContentMatched="content-matched"}(s||(s={})),n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return s}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={CONTENT:"content",TOP_NAV:"topNav",PAGE_HEADER:"pageHeader",LEFT_NAV:"leftNav",POPUP:"popup",ALERT:"alert",PAGE_FOOTER:"pageFooter",HIDDEN:"hidden",TOP_BANNER:"topBanner"};r.ALERT,r.POPUP,r.HIDDEN},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(2),o=n(80),i=n(82),a=n(60),c=n(30),u={isSelected:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=u.getSelectedViewModel(e),r=n.get("selected")||"";return r.toString()===t.toString()},isParent:function(e,t){var n=u.getSelectedViewModel(e).get("parents");return!!n&&!!n[t]},getSelectedViewModel:function(e){return c.a.get("foldertreehelper:".concat(e))},deselectAll:function(e,t){t&&u.getSelectedViewModel(e).clear()},setSelected:function(e,t,n,o){if(n&&(t instanceof r.a.Model||(t=u.getModelFromCollection(t,n)),t)){var i=u.getSelectedViewModel(e);o||(u.deselectAll(e,n),i.set("selected",t.get("id")));var a={};t.collection&&function e(t){if(t){var n=t.get("id");n!==i.get("id")&&(a[n]=!0),t.collection&&e(t.collection.parent)}}(t),i.set("parents",a)}},getSelected:function(e,t){var n=u.getSelectedViewModel(e).get("selected");return n?u.getModelFromCollection(n,t):null},newFolder:function(){return new i.a},getModelFromCollection:function(e,t){if(!t)return null;for(var n=function t(n){if(n.get("id")&&e&&n.get("id").toString()===e.toString())return n;var r=n.children;if(!r||!r.length)return null;for(var o=0;o<r.length;o++){var i=t(r.at(o));if(i)return i}},r=0;r<t.length;r++){var o=n(t.at(r));if(o)return o}return null},getParent:function(e,t){var n=u.getModelFromCollection(e,t);if(!n||!n.collection||!n.collection.parent)return null;var r=n.collection.parent;return r.get("type")===a.a.CategoryTree?r.collection.parent:r},addFolder:function(e,t,n){var r,o=n;t&&(r=u.getModelFromCollection(t,o)),r&&(r.children||r.set("children",[]),o=r.children),o.add(e.toJSON())},addFolderToLibrary:function(e,t,n){var r=n.get(t);r&&u.addFolder(e,r.get("id"),n)},flatten:function(e){var t=new o.a(e.toJSON()),n=new r.a.Collection,i=-1;return t.each((function e(t){var r=t.get("type")===a.a.Folder||t.get("type")===a.a.CustomLibrary;r&&(n.add(t),t.set("depth",++i)),t.children&&t.children.length&&t.children.each(e),r&&i--})),n},getFirstType:function(e,t){var n;return e.find((function e(r){return r.get("type")===t?(n=r,!0):!(!r.children||!r.children.length)&&!!r.children.find(e)})),n},getLibrary:function(e,t){var n,r=u.getModelFromCollection(e,t);if(!r)return null;return function e(t){return t.get("type")===a.a.CustomLibrary?(n=t,!0):!(!t.collection||!t.collection.parent)&&e(t.collection.parent)}(r),n},isSubFolder:function(e){return!!(e&&e.collection&&e.collection.parent)&&e.collection.parent.get("type")===a.a.Folder},getFolderDepth:function(e,t){for(var n=u.getModelFromCollection(e,t),r=-1;n;)n=n.collection&&n.collection.parent,r++;return r},getFolderChord:function(e){var t=e,n=[];do{n.unshift(t.get("name")),t=t.collection?t.collection.parent:null}while(t);return n.join("->")},getDepthOfChildren:function(e){var t=0;if(!e.children||!e.children.length)return t;t++;for(var n=0,r=0;r<e.children.length;r++){var o=e.children.models[r],i=u.getDepthOfChildren(o);i>n&&(n=i)}return t+=n},calculateDestinationFolderDepth:function(e,t,n){var r=e&&u.getDepthOfChildren(e)||0;return(n&&u.getFolderDepth(t,n)||0)+1+r}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(98);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"model",get:function(){return o.a}},{key:"parse",value:function(e){return e.data||e}}])&&c(t.prototype,n),r&&c(t,r),l}(r.a.Collection)},function(e,t){e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return g}));var r,o,i=n(1),a=n(6),c=n(147),u=n(81),s=n(68),l=n(14),f=n(150);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Success="success",e.Warning="warning",e.Fail="danger",e.Info="info"}(r||(r={})),function(e){e.Success="Success! š",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(o||(o={}));var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(s,e);var t,n,r,o=d(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.alertCollection=new c.a,this.listenTo(l.a.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}},{key:"name",get:function(){return f.a.ALERT}},{key:"defaults",get:function(){return{maxAlerts:3}}},{key:"showAlerts",value:function(){var e=a.Radio.channel(l.a.ALERT),t={collection:this.alertCollection};this.options.alertViewCtor&&(t=i.extend({},t,{ctor:this.options.alertViewCtor})),e.trigger("show:alert",t)}},{key:"removeAlert",value:function(e){this.alertCollection.remove(e),this.showAlerts()}},{key:"createAlert",value:function(e){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),e.id||(e=i.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new u.a(e)),this.showAlerts()}},{key:"clearAllAlerts",value:function(){this.alertCollection.reset(null)}},{key:"success",value:function(e){var t=this;return"string"==typeof e?i.bind((function(){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,{message:e}))}),this):e.useXHR?i.bind((function(e,n){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,{message:n}))}),this):i.bind((function(){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,e))}),this)}},{key:"error",value:function(e){var t=this;return"string"==typeof e?i.bind((function(){return t.createAlert(i.extend({},t.options.defaultErrorAlert,{message:e}))}),this):e.useXHR?i.bind((function(e){return t.createAlert(i.extend({},t.options.defaultErrorAlert,{message:e.message}))}),this):i.bind((function(){return t.createAlert(i.extend({},t.options.defaultErrorAlertIL_DEFAULT,e))}),this)}},{key:"generateUniqueAlertId",value:function(){return i.uniqueId("alert_")}}])&&h(t.prototype,n),r&&h(t,r),s}(s.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SUBJECT_PLAYLISTS:"subject:playlists",CURRENT_USER:"current:user",WORKSPACE:"workspace",CONFIG:"config",LOCALE:"locale",PHRASES:"phrases",SEARCH_FILTERS:"search:filters",SERIES:"series",NOTIFICATIONS:"notifications",SUGGEST_EDIT:"suggest:edit"}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(6);function o(e,t,n,o){var i=e;return"string"==typeof e&&(i=r.Radio.channel(e)),o.call(this,i,t,n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return y}));var r=n(1),o=n(6),i=n(87),a=n(14),c=n(38),u=/((\(\?)?:\w+)|(\*\w+)/,s=/[\(\)]/g,l=/\(\/\)/g,f=/\/$/,p={routingStarted:function(){o.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_START)},routingEnded:function(){p.hasActiveRoute()&&o.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_END)},hasActiveRoute:function(){return o.Radio.channel(a.a.SHELL).request(c.a.HAS_ACTIVE_ROUTE)}},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.usedHelper=!0;var n=e.application,r=e.action;o.Radio.channel(n).trigger(r,e,t)},y={getHref:function(e){if(!e)return"";var t=e.application,n=e.action,r=e.args,i=e.params,u=o.Radio.channel(a.a.SHELL).request(c.a.ROUTE_LOOKUP,"".concat(t,":").concat(n),r,i);return!1===u?"":"/".concat(u)},buildRoute:function(e,t){if(!t)return e;var n=t.args,o=t.params;if(r.each(n,(function(t){e=e.replace(u,t||"")})),e=(e=(e=e.replace(l,"")).replace(s,"")).replace(f,""),!o)return e;var a=i.a.SerializeQueryParams(o);return a.length?"".concat(e,"?").concat(a):e},trigger:function(e,t){e&&(p.hasActiveRoute()?o.Radio.channel(a.a.SHELL).once("routing:end",(function(){h(e,t)})):h(e,t))},updateParams:function(e,t){var n=y.getCurrentAppLink(),r=Object.assign(Object.assign({},n),{params:e});y.trigger(r,t)},getCurrentAppLink:function(){return o.Radio.channel(a.a.SHELL).request(c.a.CURRENT_ROUTE)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=/\/$/,i={urlBuilder:function(e,t){var n=r.map(t,(function(e,t){return t&&Array.isArray(e)?e.map((function(e){return"".concat(t,"=").concat(encodeURIComponent(e))})).join("&"):t&&void 0!==e?"".concat(t,"=").concat(encodeURIComponent(e)):""})),o=r.reduce(n,(function(e,t){return t?e?"".concat(e,"&").concat(t):t:e}));return o?"".concat(e,"?").concat(o):e},buildFilter:function(e){var t=[];if(e.limit&&t.push("limit:".concat(e.limit)),e.cursor&&t.push("page:".concat(e.cursor)),e.before&&t.push("dateCreated:...".concat(e.before)),t.length)return t.join(",")},makeHttps:function(e){return r.isString(e)?-1===e.indexOf("http://")?e:e=e.replace("http://","https://"):e},safeUrlConcat:function(e,t){if(e){var n=e;return e.endsWith("/")||(n+="/"),t?n+=t.startsWith("/")?t.slice(1):t:n}},removeTrailingSlash:function(e){if("string"==typeof e)return e.replace(o,"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(47),o=n(462),i={isPublishingLibraries:function(e){return a(r.a.PublishingLibrary,e)},librariesPublished:function(e){return a(r.a.LibraryPublished,e)},isInitialMigration:function(e){return c(r.c.None,e)&&!a(r.a.NoPublisher,e)},migrationInitialized:function(e){return!c(r.c.None,e)},backupProcessing:function(e){return a(r.a.BackupToolProcessesing,e)||a(r.a.BackupToolCompleteWithError,e)||a(r.a.BackupToolComplete,e)},backupCompleteWithoutError:function(e){return a(r.a.BackupComplete,e)},backupComplete:function(e){return a(r.a.BackupComplete,e)||a(r.a.BackupCompleteWithError,e)},backupCompleteWithError:function(e){return a(r.a.BackupCompleteWithError,e)},backupNotStarted:function(e){return a(r.a.None,e)},showPublisherArchive:function(e){return!i.noPublisher(e)},noPublisher:function(e){return a(r.a.NoPublisher,e)},fullMigrationInitialized:function(e){return i.migrationInitialized(e)&&e.get("migrationOption")===r.c.Full},isCurrentlyMigratingAll:function(e){return e&&e.finalisationTask&&e.finalisationTask.get("type")===o.a.MigrateAllPhase1}};function a(e,t){return t&&t.get("cloudSyncStatus")===e}function c(e,t){return t&&t.get("migrationOption")===e}},,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Folder="category",e.CategoryTree="category_tree",e.CustomLibrary="custom_library",e.HostedLibrary="hosted_library",e.Exchange="exchange",e.Workspace="workspace"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.MustCompleteOnboarding="must_complete_onboarding",e.StudentWorkspaceSharing="student_ws_sharing",e.StudentToStudentMessaging="student_to_student_messaging",e.HideResourcesForStudents="hide_resources_for_students",e.LibraryReview="library_review",e.SchoolMessaging="school_messaging",e.LegacyTvNaming="legacy_tv_naming",e.LegacyAlbertCustomer="legacy_albert_customer",e.HideHostedLibraries="hide_hosted_libraries",e.StaffRequest="staff_request",e.MaxCustomLibraries="max_custom_libraries",e.CustomLibrariesBetaAccess="custom_libraries_beta_access",e.AutoCaptioning="auto_captioning",e.Topics="subjects",e.NewDashboards="new_dashboards",e.HasCompletedOnboarding="has_completed_onboarding",e.BulkOnboardingPreferencesState="bulk_onboarding_preferences_state"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.ExchangeVideoAvailable="exchange-video-available",e.WorkspaceVideoAvailable="workspace-video-available",e.Marketing="marketing",e.EditedVideoAvailable="edited-video-available",e.VideoRequestAvailable="pay-tv-video-available",e.VideoRequestDenied="pay-tv-video-denied",e.VideoReviewReminder="term-update-review-reminder",e.VideoReviewAddedToLibrary="term-update-review-videos-added-to-library",e.CustomLibraryVideoAvailable="custom-library-video-available",e.VideoProcessingFailed="video-processing-failed",e.StaffRequest="new-staff-request",e.StaffRequestFulfilled="staff-request-fulfilment",e.ChapterMergeSuccess="media-concatenate-success",e.SuggestEdit="suggest-an-edit"}(r||(r={}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return o}));var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.variables={}}var t,n,o;return t=e,o=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return"EnvironmentVariables"}},{key:"isDevelopment",get:function(){return this.variables.isDevelopment}},{key:"get",value:function(e){return this.variables[e]}},{key:"setUpVariables",value:function(e){this.variables=e}}])&&r(t.prototype,n),o&&r(t,o),e}().Instance},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(51),o=n(55),i=n(11);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,r,a=l(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=a.call(this,e)).name||i.c.throw(new i.b("Your service must be named.")),t}return t=f,(n=[{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Object)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Guest="Guest",e.User="User",e.Admin="Admin",e.SuperAdmin="SuperAdmin",e.System="System"}(r||(r={}))},,,,,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(r||(r={}))},function(e,t,n){"use strict";var r,o;n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),function(e){e.Direct="direct-search",e.Recent="recent-searches"}(r||(r={})),function(e){e[e.Remote=0]="Remote",e[e.Local=1]="Local"}(o||(o={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Other=0]="Other",e[e.Alert=1]="Alert",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Success=4]="Success"}(r||(r={}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(82);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"model",get:function(){return o.a}},{key:"parse",value:function(e){return e.data||e}},{key:"comparator",get:function(){return function(e){var t;return null===(t=e.get("name"))||void 0===t?void 0:t.toLowerCase()}}}])&&c(t.prototype,n),r&&c(t,r),l}(r.a.Collection)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(1),o=n(6),i=n(55);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,o,a=f(p);function p(){return c(this,p),a.apply(this,arguments)}return t=p,(n=[{key:"mixin",value:function(e){for(var t in e){if(this.hasOwnProperty(t)){var n=this[t];return void(this[t]=r.extend({},n,e[t]))}this[t]=e[t]}}},{key:"addValidation",value:function(e){this.mixin({validation:e})}},{key:"validate",value:function(e,t){s(h(p.prototype),"validate",this).call(this,e,t)}},{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(h(p.prototype),"listenTo",this))}}])&&u(t.prototype,n),o&&u(t,o),p}(o.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),o=n(50),i=n(80),a=n(154),c=n(89);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(h,e);var t,n,r,u=p(h);function h(){return s(this,h),u.apply(this,arguments)}return t=h,(n=[{key:"associations",get:function(){return{banner:a.a,thumbnail:c.a,children:i.a,videos:o.a}}},{key:"parse",value:function(e){if(!e.data)return e;var t=e.data;return t.children=e.children,t}}])&&l(t.prototype,n),r&&l(t,r),h}(r.a.NestedModel)},,,,function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=c(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(i,e);var t,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"idAttribute",get:function(){return"videoId"}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Model),m=n(115);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(n,e);var t=C(n);function n(){return S(this,n),t.apply(this,arguments)}return n}(r.a.Model);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return L(this,n)}}function L(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}(i,e);var t,n,r,o=x(i);function i(){return P(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"associations",get:function(){return{keyContact:m.a,finalisationTask:_}}}])&&A(t.prototype,n),r&&A(t,r),i}(r.a.NestedModel),I=n(82),V=n(237),B=n(1);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t,n){return(F="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=W(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=W(e);if(t){var o=W(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(i,e);var t,n,r,o=z(i);function i(){return M(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.id=e.chord,e.children&&!e.children.length&&(e.children=null),e}},{key:"associations",get:function(){return B.extend({},F(W(i.prototype),"associations",this),{children:V.a})}}])&&U(t.prototype,n),r&&U(t,r),i}(I.a);function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=X(e);if(t){var o=X(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Q(e,t)}(n,e);var t=Z(n);function n(){return K(this,n),t.apply(this,arguments)}return n}(r.a.Model);function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t){return(ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ie(e);if(t){var o=ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oe(this,n)}}function oe(e,t){return!t||"object"!==ee(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ae=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ne(e,t)}(n,e);var t=re(n);function n(){return te(this,n),t.apply(this,arguments)}return n}(r.a.Model);function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pe(e);if(t){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fe(this,n)}}function fe(e,t){return!t||"object"!==ce(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var he=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}(n,e);var t=le(n);function n(){return ue(this,n),t.apply(this,arguments)}return n}(r.a.Model);n.d(t,"a",(function(){return l})),n.d(t,"g",(function(){return g})),n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return Y})),n.d(t,"e",(function(){return J})),n.d(t,"f",(function(){return ae})),n.d(t,"h",(function(){return he}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),o=n(6),i=n(56),a=n(38),c=n(14),u={GetQuery:function(){return u.DeserializeQueryParams(window.location.search.substring(1))},UpdateQuery:function(e){if(e){var t=u.GetQuery(),n=u.SerializeQueryParams(r.extend(t,e));n&&(n="?".concat(n)),u.UpdateUrl("".concat(u.GetCurrentPath()).concat(n),null,{replace:!0,trigger:!1})}},UpdateUrl:function(e,t,n){var r=i.a.buildRoute(e,t);o.history.navigate(r,n),o.Radio.channel(c.a.SHELL).trigger(a.a.URL_CHANGE,t,n)},SerializeQueryParams:function(e){if(!e)return"";if("string"==typeof e)return e;var t=[],n=function(e,t){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t))};return Object.keys(e).forEach((function(r){var o=e[r];null!=o&&(Array.isArray(o)?o.forEach((function(e){t.push(n(r,e))})):t.push(n(r,o)))})),t.join("&")},DeserializeQueryParams:function(e){return e?r.reduce(e.split("&"),(function(e,t){var n=t.split("="),r=n[0],o=n.length>0?decodeURIComponent(n[1]):"";return e[r]?e[r]instanceof Array?(e[r].push(o),e):(e[r]=[e[r],o],e):(e[r]=o,e)}),{}):{}},StartHistory:function(){o.History.started&&o.history.stop(),o.history.start({pushState:!0})},PageLoad:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?window.open(e,"_blank"):window.location.href=e},Redirect:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(){return t?window.location.replace(e):window.location.href=e};i.b.hasActiveRoute()?o.Radio.channel(c.a.SHELL).once("routing:end",n):n()},Reload:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];window.location.reload(e)},GetCurrentPath:function(){return window.location.pathname},GetCurrentQueryString:function(){return window.location.search},GetCurrentUrl:function(){return window.location.href},GetCurrentReferrer:function(){return document.referrer},GetCurrentOrigin:function(){return window.location.origin},SetPageTitle:function(e){document.title=e}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var p;n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return v})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage"}(p||(p={}));var h=function(){function e(t){s(this,e),this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=t.type,this.hasSupport&&(this.storage=window[this.type])}return f(e,[{key:"get",value:function(e){if(this.hasSupport){var t=this.storage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}}},{key:"set",value:function(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),"string"!=typeof t?(this.storage.setItem(e,JSON.stringify(t)),!0):(this.storage.setItem(e,t),!0)}catch(e){return!1}}},{key:"remove",value:function(e){if(this.hasSupport)return this.storage.removeItem(e)}},{key:"length",value:function(){if(this.hasSupport)return this.storage.length}},{key:"clear",value:function(){if(this.hasSupport)return this.storage.clear()}},{key:"cacheSet",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.expireTime;this.cacheClean();var r={time:this.getCurrentTime()+1e3*n,data:null!=t&&t};return this.set("".concat(this.cachePrefix).concat(e),r)}},{key:"cacheGet",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}},{key:"cacheExists",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return!!n&&(!this.isExpired(n)||(this.remove(t),!1))}},{key:"cacheRemove",value:function(e){return this.remove("".concat(this.cachePrefix).concat(e))}},{key:"cacheFlush",value:function(){this.cacheClean()}},{key:"cacheClean",value:function(){if(this.hasSupport)for(var e=0;e<this.storage.length;e++){var t=this.storage.key(e);if(0===t.indexOf(this.cachePrefix)){var n=this.get(t);n&&n.time&&this.isExpired(n)&&this.remove(t)}}}},{key:"isExpired",value:function(e){return e.time<this.getCurrentTime()}},{key:"getCurrentTime",value:function(){return(new Date).getTime()}},{key:"hasBrowserSupport",value:function(){try{return this.type in window&&null!==window[this.type]}catch(e){return!1}}}]),e}(),y=function(e){o(n,e);var t=a(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.LocalStorage}))}}]),n}(h),d=function(e){o(n,e);var t=a(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.SessionStorage}))}}]),n}(h),b=y.Instance,v=d.Instance},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={LIBRARY_EDITOR:"library:editor",MIGRATION_WIZARD:"migration:wizard"}},,,function(e,t,n){"use strict";var r=n(1),o=n(6),i=n(129),a=n(75),c=n(120),u=n(2),s=n(3),l=n(15),f=n(717),p=n.n(f),h=n(249),y=n.n(h);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(i,e);var t,n,r,o=g(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"ConfirmSelectionComponent"}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return"suggestion-footer empty-suggestion px-2 ".concat(y.a.selectionContainer," clearfix")}},{key:"viewOptions",value:function(){return{styles:y.a,confirmSelectionText:s.a.getPhrase("shared.utils","confirmSelection",{svg:'<kbd><span class="'.concat(y.a.svgContainer,'">').concat(l.a.getSvg(l.b.Enter),"</span></kbd>")})}}}])&&b(t.prototype,n),r&&b(t,r),i}(u.a.Component);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return k}));var k={handleQuery:function(e,t){return function(n,r,o){if(t||(t={}),n&&t.ignoreOnQuery)return r([]);var u=n&&n.length>=c.a.ActivationLength;return t.fetchType!==a.a.Local||u?u?e instanceof i?e.search.call(e,n,r,o):r([{query:n}]):void 0:r(e.index.all())}},getTemplate:function(e){var t=arguments,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.fallbackTemplate,i=n.templateText;return function(n){var a=n.query;if(!a)return o.apply(void 0,O(t));if(a.length&&a.length<c.a.ActivationLength)return o.apply(void 0,O(t));var u=r.extend(n,{templateText:i});return e(u)}},getSearchSources:function(e){return r.map(e,(function(e,t){var n,r=e.typeaheadConfig,o=e.bloodhoundConfig,i=e.name,a=e.options;return o&&(n=k.buildBloodhound(o(i,a))),r({bloodhound:n,name:i},t,a)}))},buildBloodhound:function(e){return new i(e)},selectFirstResult:function(e,t,n){if(n&&!this.$el.find(".tt-cursor").length){var o=r.first(t);if(o&&!r.isEmpty(o)){var i=this.$el.find(".add-new");!i||o.id?(i&&i.hasClass("tt-cursor")&&i.removeClass("tt-cursor"),this.$el.find(".result:first").addClass("tt-cursor")):i.addClass("tt-cursor")}else this.$el.find(".tt-not-found").removeClass("tt-selectable tt-suggestion")}},emitEventOnInput:function(e,t,n,i){if(e)return function(a,c){o.Radio.channel(e).trigger(t,a,n,r.extend({},i,c))}},resetAssociationOnBlur:function(e){return function(t,n){var i=this.model.get(n),a=r.isNumber(this.model.id);return e[n]||a?"string"==typeof i&&i.length?a?void(e.id===this.model.id&&(this.model.set(e),o.Radio.channel(t).trigger("typeahead:set:input",e[n]))):(o.Radio.channel(t).trigger("typeahead:clear:input"),void this.model.set(e)):void 0:(this.model.clear(),void o.Radio.channel(t).trigger("typeahead:clear:input"))}},getConfirmSelectionTemplate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){return new S(e).render().el}},clearInputOnBlur:function(e){o.Radio.channel(e).trigger("typeahead:clear:input")}}},function(e,t,n){"use strict";n(221),n(223);var r=n(224),o=(n(220),n(40)),i=n(0),a=n(3);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h="shared.customerSetting",y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,e);var t,n,r,o=l(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=o.call(this,a.a.getPhrase(h,"title"))).settingName=e,t}return t=c,(n=[{key:"name",get:function(){return"CustomerSettingError"}},{key:"heading",get:function(){return a.a.getPhrase(h,"heading",{settingName:i.j[this.settingName]})}}])&&u(t.prototype,n),r&&u(t,r),c}(o.a),d=n(36);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,n,r,o=m(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,a.a.getPhrase("shared.localCacheDeviceNotFound","title"))}return t=i,(n=[{key:"name",get:function(){return"LocalCacheDeviceNotFoundError"}},{key:"dialogOptions",get:function(){return{title:a.a.getPhrase("shared.localCacheDeviceNotFound","heading"),text:a.a.getPhrase("shared.localCacheDeviceNotFound","body")}}}])&&v(t.prototype,n),r&&v(t,r),i}(d.a),C=n(57);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var o=A(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(c,e);var t,n,r,o=R(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=o.call(this,a.a.getPhrase("shared.emailNotVerified","title"))).onlineUrl=e,t}return t=c,(n=[{key:"name",get:function(){return"EmailNotVerifiedError"}},{key:"heading",get:function(){return a.a.getPhrase("shared.emailNotVerified","heading")}},{key:"description",get:function(){var e=C.a.safeUrlConcat(this.onlineUrl,i.t.VERIFY_EMAIL);return a.a.getPhrase("shared.emailNotVerified","verify",{url:C.a.urlBuilder(e,{loginPrompt:!1}),linkClasses:"info-link"})}}])&&E(t.prototype,n),r&&E(t,r),c}(o.a);function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=V(e);if(t){var o=V(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(i,e);var t,n,r,o=N(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,a.a.getPhrase("shared.noBetaAccess","title"))).marketingSiteUrl=e,t}return t=i,(n=[{key:"name",get:function(){return"NoBetaAccessError"}},{key:"heading",get:function(){return a.a.getPhrase("shared.noBetaAccess","heading")}},{key:"description",get:function(){return"".concat(a.a.getPhrase("shared.noBetaAccess","body"),'\n <a href="').concat(this.marketingSiteUrl,'library-editor">').concat(a.a.getPhrase("shared.noBetaAccess","findOutMore"),"</a>")}}])&&L(t.prototype,n),r&&L(t,r),i}(o.a);n.d(t,"e",(function(){return r.a})),n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return O})),n.d(t,"b",(function(){return T})),n.d(t,"d",(function(){return B}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(14),i=n(22);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(p,e);var t,n,a,f=l(p);function p(){var e;return c(this,p),(e=f.apply(this,arguments)).routeHistory=[],e.contextHistory=[],e}return t=p,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return i.b.Context}},{key:"initialize",value:function(){this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.setContext),this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.updateRouteHistory)}},{key:"setContext",value:function(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}},{key:"getCurrentContext",value:function(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}},{key:"getPreviousContext",value:function(){if(this.contextHistory.length&&!(this.contextHistory.length-2<0))return this.contextHistory[this.contextHistory.length-2]}},{key:"updateRouteHistory",value:function(e){r.a.AppLinkHelper.getHref(e)&&(this.routeHistory.length>=3&&this.routeHistory.unshift(),this.routeHistory.push({pageLoad:!this.routeHistory.length,appLink:e}))}},{key:"getCurrentRoute",value:function(){if(this.routeHistory.length)return this.routeHistory[this.routeHistory.length-1]}},{key:"getPreviousRoute",value:function(){if(this.routeHistory.length&&!(this.routeHistory.length-2<0))return this.routeHistory[this.routeHistory.length-2]}},{key:"fromPageLoad",value:function(){return 1===this.contextHistory.length}}])&&u(t.prototype,n),a&&u(t,a),p}(r.a.Service))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHORT:120,STANDARD:600}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archive=2]="Archive",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(r||(r={}))},function(e,t,n){"use strict";var r=n(2),o=n(89),i=n(185),a=n(338),c=n(339);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,e);var t=f(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(r.a.Model);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(n,e);var t=g(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(r.a.Model),O=n(153),C=n(80),k=n(145),E=n(642),_=n(643),R=n(644),P=n(645),A=n(176);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=V(e);if(t){var o=V(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(i,e);var t,n,r,o=N(i);function i(){return x(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return A.a}},{key:"parse",value:function(e){return e.data||e}}])&&L(t.prototype,n),r&&L(t,r),i}(r.a.Collection);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return H(this,n)}}function H(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(n,e);var t=F(n);function n(){return M(this,n),t.apply(this,arguments)}return n}(r.a.Model);function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(e,t){return(K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$(e);if(t){var o=$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&K(e,t)}(i,e);var t,n,r,o=Q(i);function i(){return Y(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return q}},{key:"parse",value:function(e){return e.data||e}}])&&G(t.prototype,n),r&&G(t,r),i}(r.a.Collection),J=n(340),ee=n(297),te=n(234);function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ue(e);if(t){var o=ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ce(this,n)}}function ce(e,t){return!t||"object"!==ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var se=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ie(e,t)}(i,e);var t,n,r,o=ae(i);function i(){return re(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return te.a}},{key:"parse",value:function(e){return e.data||e}}])&&oe(t.prototype,n),r&&oe(t,r),i}(r.a.Collection),le=n(341);function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ye(e,t){return(ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var o=ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return be(this,n)}}function be(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ye(e,t)}(i,e);var t,n,r,o=de(i);function i(){return pe(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return le.a}}])&&he(t.prototype,n),r&&he(t,r),i}(r.a.Collection),me=n(242);function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ee(this,n)}}function Ee(e,t){return!t||"object"!==we(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ce(e,t)}(a,e);var t,n,o,i=ke(a);function a(){return Se(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return r.a.Model}}])&&Oe(t.prototype,n),o&&Oe(t,o),a}(r.a.Collection),Pe=n(183);function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Le(e,t){return(Le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function je(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ie(e);if(t){var o=Ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ne(this,n)}}function Ne(e,t){return!t||"object"!==Ae(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ie(e){return(Ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Le(e,t)}(i,e);var t,n,r,o=je(i);function i(){return Te(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return Pe.a}},{key:"parse",value:function(e){return e.data||e}}])&&xe(t.prototype,n),r&&xe(t,r),i}(r.a.Collection);function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ue(e,t){return(Ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ze(e);if(t){var o=ze(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return He(this,n)}}function He(e,t){return!t||"object"!==Be(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return qe}));var qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ue(e,t)}(s,e);var t,n,r,u=Fe(s);function s(){return De(this,s),u.apply(this,arguments)}return t=s,(n=[{key:"associations",get:function(){return{rating:a.a,series:i.a,season:O.a,categories:C.a,libraries:k.a,resources:B,interactives:X,chapters:J.a,thumbnail:o.a,producers:E.a,distributors:_.a,productionCompanies:R.a,directors:P.a,channel:c.a,tags:ee.a,subtitles:se,restrictions:ge,localCacheDownloads:me.a,owner:y,playlist:S,fields:Re,links:Ve}}}])&&Me(t.prototype,n),r&&Me(t,r),s}(r.a.NestedModel)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(29),o=n(3),i=n(122),a="upload.utils",c={getStatus:function(e){if(c.hasError(e))return o.a.getPhrase(a,"videoProcessingError");if(!e.get("foregroundComplete")){var t=c.getProgress(e);return 0===t?o.a.getPhrase(a,"waiting"):o.a.getPhrase(a,"processing",{progress:t})}return c.isDone(e)?o.a.getPhrase(a,"complete"):o.a.getPhrase(a,"readyToWatch")},hasError:function(e){return e.get("pendingProcessStatus")===i.a.Error},isDone:function(e){return 2===e.get("pendingProcessStatus")},getProgress:function(e){return e.get("foregroundProgress")},hasExpired:function(e,t){var n=e.get("timeInitialized");return r().diff(n,"days")>=t}}},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(21),a=n(135);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,o,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return t=p,(n=[{key:"modelId",value:function(e){return e.type}},{key:"model",get:function(){return a.a}},{key:"parse",value:function(e){var t=this;return r.map(r.keys(e),(function(n){var o=e[n],i=t.getType(n);return{id:i,type:i,options:r.map(o,(function(e){return{id:e,name:e,value:e}}))}}))}},{key:"getType",value:function(e){return"categories"===e?i.a.Folder:"tags"===e?i.a.Tags:e}}])&&s(t.prototype,n),o&&s(t,o),p}(o.a.Collection);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,n,r,o=m(i);function i(){return b(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return a.b}}])&&v(t.prototype,n),r&&v(t,r),i}(o.a.Collection);n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return O}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={CURRENT_USER:"currentUser",CONFIG:"config",VERSION:"version",LOCALE:"locale",PHRASES:"phrases",CUSTOMER_META:"customerMeta"}},function(e,t,n){e.exports={alertItem:"_6L-Rn",fadeIn:"_2ISjU",icon:"_3X3sP",alertContent:"_2_sUY",heading:"_2nrzl",message:"_1UIK0",link:"_2xwcl",svgContainer:"_2yj4z",alertList:"_1O_xv",removing:"_3pw7F",fadeOut:"eLPSS",removed:"OqzPi"}},,,,,,,,,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Unknown=0]="Unknown",e[e.BadRequest=1]="BadRequest",e[e.Unauthorized=2]="Unauthorized",e[e.Forbidden=3]="Forbidden",e[e.NotFound=4]="NotFound",e[e.InternalServer=5]="InternalServer"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){}return e.prototype.log=function(e,t){},e.instance=new e,e}()},function(e,t,n){"use strict";var r=n(1),o=n(2);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,e);var t=u(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(o.a.Model);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(n,e);var t=d(n);function n(){return h(this,n),t.apply(this,arguments)}return n}(o.a.Model);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return _}));var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(a,e);var t,n,o,i=C(a);function a(){return w(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"associations",get:function(){return{avatar:f,customerLogo:g}}},{key:"parse",value:function(e){var t=["avatar","customerLogo"],n=r.omit(e,t);return r.each(t,(function(t){r.isObject(e[t])?n[t]=e[t]:e[t]&&(n[t]={url:e[t]})})),n}}])&&S(t.prototype,n),o&&S(t,o),a}(o.a.NestedModel)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=c(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model),f=n(50);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=b(i);function i(){return h(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"associations",get:function(){return{videos:f.a}}}])&&y(t.prototype,n),r&&y(t,r),i}(r.a.NestedModel);n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return m}))},function(e,t,n){"use strict";var r=n(6),o=n(118),i=n(229),a=n(2),c=n(20);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=n(4).EventVersion.V1,l=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.data=n,this.actionContext=r,this.eventVersion=o||s}var t,n,r;return t=e,(n=[{key:"isType",value:function(e){return e===this.type}},{key:"enrich",value:function(e,t){this.validateKey(e),this[e]=t}},{key:"get",value:function(e){if(e&&this[e])return this[e]}},{key:"validateKey",value:function(e){"type"!==e&&"data"!==e||a.a.ErrorHelper.throw(new c.a("".concat(e," is not a valid key"))),this[e]&&a.a.ErrorHelper.throw(new c.a("Event already contains an enrichment named ".concat(e)))}}])&&u(t.prototype,n),r&&u(t,r),e}();n.d(t,"a",(function(){return f}));var f={log:function(e,t,n,a){r.Radio.channel(i.a.ANALYTICS).trigger(o.a.Inlet,new l(e,t,n,a))}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Fifo="FifoMemoryCache"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ActivationLength:1,SuggestionLimit:{Min:1,Default:3,Folder:3,Recent:3}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Received=1]="Received",e[e.Seen=2]="Seen",e[e.Read=3]="Read"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Error=-1]="Error",e[e.Processing=1]="Processing",e[e.Completed=2]="Completed"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){}return e.write=function(t){return""+t+e.RecordSeparator},e.parse=function(t){if(t[t.length-1]!==e.RecordSeparator)throw new Error("Message is incomplete.");var n=t.split(e.RecordSeparator);return n.pop(),n},e.RecordSeparatorCode=30,e.RecordSeparator=String.fromCharCode(e.RecordSeparatorCode),e}()},function(e,t,n){"use strict";var r,o,i,a=n(3),c="search.utils",u=(new Date).getFullYear(),s={DURATION:[{id:"0",value:"0",start:0,end:599999,name:function(){return a.a.getPhrase(c,"short")},description:function(){return a.a.getPhrase(c,"lessThan10Min")}},{id:"600000",value:"600000",start:6e5,end:2399999,name:function(){return a.a.getPhrase(c,"medium")},description:function(){return a.a.getPhrase(c,"11To40Min")}},{id:"2400000",value:"2400000",start:24e5,end:Number.MAX_VALUE,name:function(){return a.a.getPhrase(c,"long")},description:function(){return a.a.getPhrase(c,"greaterThan40Min")}}],PRODUCTION_YEAR:[{id:"...",from:0,to:0,value:"...",name:function(){return a.a.getPhrase(c,"anyYear")},active:!0,isDefault:!0},{id:"".concat(u,"..."),from:u,to:0,value:"".concat(u,"..."),name:function(){return a.a.getPhrase(c,"thisYear")}},{id:"".concat(u-3,"..."),from:u-3,to:0,value:"".concat(u-3,"..."),name:function(){return a.a.getPhrase(c,"last3Years")}},{id:"".concat(u-10,"..."),from:u-10,to:0,value:"".concat(u-10,"..."),name:function(){return a.a.getPhrase(c,"last10Years")}}]};!function(e){e.Video="video",e.Folder="folder",e.Series="series",e.HostedLibrary="hosted_library",e.CustomLibrary="custom_library"}(r||(r={})),function(e){e.Since="since-",e.Before="before-",e.LongerThan="longer-than-",e.ShorterThan="shorter-than-",e.To="-to-",e.Libraries="libraries",e.Ratings="ratings"}(o||(o={})),function(e){e.Inclusive="inclusive",e.Exclusive="exclusive",e.Boolean="boolean",e.Range="range",e.Tag="tag"}(i||(i={}));var l,f=n(1),p=n(29),h=n(21),y=n(100),d=n(0);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v,g=(b(l={},h.a.Ratings,(function(e){var t=e.options.filter((function(e){return e.get("active")})),n=f.map(t,(function(e){return e.get("value")}));if(!n.length)return null;var r=f.min(n);r===e.options.first().get("value")&&(r=0);var o=f.max(n),i="".concat(r,"...").concat(o);return"rating:".concat(i)})),b(l,h.a.ProductionYear,(function(e){var t=e.options.find((function(e){return e.get("active")}));if(!t)return null;var n=t.get("from")||"",r=t.get("to")||"";if(!n&&!r)return null;var o="".concat(n,"...").concat(r);return"productionYear:".concat(o)})),b(l,h.a.Duration,(function(e){var t=e.options.filter((function(e){return e.get("active")}));if(!t.length)return null;var n=t.map((function(e){return e.get("start")})),r=t.map((function(e){return e.get("end")})),o=f.min(n),i=f.max(r);i===Number.MAX_VALUE&&(i="");var a="".concat(o,"...").concat(i);return"duration:".concat(a)})),b(l,"boolean",(function(e){return e.get("active")?"".concat(e.get("type"),":true"):""})),l);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w,S=(m(v={},h.a.Sources,(function(e,t){if(e.options.any((function(e){return e.get("dry")}))){var n=[];return e.options.each((function(e){return n.push(e.get("id"))})),{sources:"".concat(n.join(","))}}var r=f.map(e.options.filter((function(e){return e.get("active")})),(function(e){return e.get("id")}));if(r.length||(r=e.options.models),r.length===t.length)return{};var i=[];f.every(R.getLibraries(t),(function(e){return f.contains(r,e.id)}))?i.push(o.Libraries):f.each(R.getLibraries(t),(function(e){f.contains(r,e.id)&&i.push("library-".concat(e.id))}));var a=R.getExchange(t),c=R.getWorkspace(t);return a&&f.contains(r,a.id)&&i.push("exchange"),c&&f.contains(r,c.id)&&i.push("workspace"),{libraries:"".concat(i.join(","))}})),m(v,h.a.Ratings,(function(e){var t=e.options.filter((function(e){return e.get("active")}));if(!f.map(t,(function(e){return e.get("value")})).length)return{};var n=f.min(t,(function(e){return e.get("value")})),r=f.max(t,(function(e){return e.get("value")})),i="".concat(n.get("name")).concat(o.To).concat(r.get("name"));return n.get("name")===r.get("name")&&(i=n.get("name")),{ratings:i}})),m(v,h.a.ProductionYear,(function(e){var t=e.options.find((function(e){return e.get("active")}));if(!t)return{};var n=t.get("from"),r=t.get("to");if(!n&&!r)return{};return{productionYear:n&&!r?"".concat(o.Since).concat(n):r&&!n?"".concat(o.Before).concat(r):"".concat(n).concat(o.To).concat(r)}})),m(v,h.a.Duration,(function(e){var t=e.options.filter((function(e){return e.get("active")}));if(!t.length||t.length===e.options.length)return{};var n=f.min(t,(function(e){return e.get("start")})),r=f.max(t,(function(e){return e.get("end")})),i=R.toISOString(n.get("start")),a=R.toISOString(r.get("end"));return{duration:i&&!a?"".concat(o.LongerThan).concat(i.toLowerCase()):a&&!i?"".concat(o.ShorterThan).concat(a.toLowerCase()):"".concat(i.toLowerCase()).concat(o.To).concat(a.toLowerCase())}})),m(v,h.a.Tags,(function(e){var t=f.map(e.options.filter((function(e){return e.get("active")})),(function(e){return e.get("name")}));if(t.length)return{tag:f.map(t,(function(e){return e}))}})),m(v,"boolean",(function(e){return e.get("active")?m({},e.get("type"),!0):{}})),m(v,"default",(function(e){var t=e.options.find((function(e){return e.get("active")}));return t?m({},e.get("type"),t.get("value")):{}})),v),O=n(27);function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=(C(w={},h.a.Sources,(function(e){var t=f.map(e.options.filter((function(e){return e.get("active")})),(function(e){return e.get("name")}));return 1===t.length?t[0]:a.a.getPhrase("search.utils","librariesLabel",{count:t.length})})),C(w,h.a.Ratings,(function(e){var t=e.options.filter((function(e){return e.get("active")}));if(!f.map(t,(function(e){return e.get("value")})).length)return"";var n=f.min(t,(function(e){return e.get("value")})),r=f.max(t,(function(e){return e.get("value")})),o="".concat(n.get("name")," to ").concat(r.get("name"));return n.get("name")===r.get("name")&&(o=n.get("name")),a.a.getPhrase("search.utils","ratingLabel",{ratings:o})})),C(w,h.a.ProductionYear,(function(e){var t=e.options.find((function(e){return e.get("active")}));if(!t)return"";var n=t.get("from"),r=t.get("to");return n||r?n&&!r?a.a.getPhrase("search.utils","productionYearLabelFrom",{from:n}):r&&!n?a.a.getPhrase("search.utils","productionYearLabelTo",{to:r}):a.a.getPhrase("search.utils","productionYearLabelFromTo",{from:n,to:r}):""})),C(w,h.a.Duration,(function(e){var t=e.options.filter((function(e){return e.get("active")}));if(!t.length)return"";var n=f.min(t,(function(e){return e.get("start")})),r=f.max(t,(function(e){return e.get("end")})),o=R.toISOString(n.get("start")),i=R.toISOString(r.get("end"));return o&&!i?a.a.getPhrase("search.utils","durationLabelLonger",{start:o.toLowerCase()}):i&&!o?a.a.getPhrase("search.utils","durationLabelShorter",{end:i.toLowerCase()}):a.a.getPhrase("search.utils","durationLabelFromTo",{start:o.toLowerCase(),end:i.toLowerCase()})})),C(w,h.a.Tags,(function(e){var t=f.map(e.options.filter((function(e){return e.get("active")})),(function(e){return e.get("name")}));return 1===t.length?t[0]:a.a.getPhrase("search.utils","tagLabel",{count:t.length})})),C(w,O.a.ReleaseDate,(function(e){var t=e.options.find((function(e){return e.get("active")}));return t?t.get("name"):e.get("title")})),w);function E(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var R={getFilterCollection:function(e,t){return new y.a([{title:a.a.getPhrase("search.utils","library"),type:h.a.Sources,behavior:i.Inclusive,isDynamic:!1,showInMoreFilters:!1,selectAllWhenNoneSelected:!0,minNumOptions:2,prefixWhenActive:!1,options:R.getSourceOptions(e)},{title:a.a.getPhrase("search.utils","folder"),type:h.a.Folder,behavior:i.Exclusive,isDynamic:!0,showInMoreFilters:!1,defaultOptionLabel:"All Folders",showWhenOnlyOneOption:!1,minNumOptions:0,prefixWhenActive:!0,options:[]},{title:a.a.getPhrase("search.utils","series"),type:h.a.Series,behavior:i.Exclusive,isDynamic:!0,showInMoreFilters:!1,defaultOptionLabel:"All Series",showWhenOnlyOneOption:!1,minNumOptions:1,prefixWhenActive:!0,options:[]},{title:a.a.getPhrase("search.utils","tag"),type:h.a.Tags,behavior:i.Tag,isDynamic:!0,showInMoreFilters:!1,showWhenOnlyOneOption:!0,minNumOptions:0,prefixWhenActive:!0,options:[]},{title:a.a.getPhrase("search.utils","rating"),type:h.a.Ratings,behavior:i.Range,isDynamic:!1,showInMoreFilters:!1,showWhenOnlyOneOption:!0,minNumOptions:1,prefixWhenActive:!1,options:R.getRatings(t)},{title:a.a.getPhrase("search.utils","interactives"),description:"Only display videos with interactives",type:h.a.Interactives,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","resources"),description:a.a.getPhrase("search.utils","resourcesDescription"),type:h.a.Resources,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","subtitles"),description:a.a.getPhrase("search.utils","subtitlesDescription"),type:h.a.Subtitles,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","productionYear"),type:h.a.ProductionYear,behavior:i.Exclusive,isDynamic:!1,showInMoreFilters:!0,minNumOptions:1,prefixWhenActive:!1,options:s.PRODUCTION_YEAR},{title:a.a.getPhrase("search.utils","clickViewContent"),description:a.a.getPhrase("search.utils","clickViewContentDescription"),type:h.a.ProducedByClickView,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!0,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","hdVideo"),description:a.a.getPhrase("search.utils","hdVideoDescription"),type:h.a.HD,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!0,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","duration"),type:h.a.Duration,behavior:i.Exclusive,showInMoreFilters:!0,minNumOptions:1,isDynamic:!1,prefixWhenActive:!1,options:s.DURATION}])},getSourceOptions:function(e){return e.map((function(e){return{id:e.get("id"),name:e.get("name"),type:e.get("type"),value:e.get("id")}}))},getRatings:function(e){return e.filter((function(e){return!!e.get("value")})).map((function(e){return{value:e.get("value"),name:e.get("code"),fullName:e.get("name")}}))},getDynamicFiltersQueryString:function(e){var t,n=[],r=e.where({isDynamic:!0});return r?(f.each(r,(function(e){(t=e.options.filter((function(e){return e.get("active")}))).length&&t.forEach((function(t){return n.push("".concat(e.get("type"),':"').concat(t.get("value"),'"'))}))})),n.join(" ")):""},getSourceFilterQueryString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"libraryIds",n=e.get(h.a.Sources),r=n.options.filter((function(e){return e.get("active")}));return r.length||(r=n.options.models),"".concat(t,"=").concat(f.map(r,(function(e){return e.get("id")})).join(","))},getTagFilterQueryString:function(e){var t=e.get(h.a.Tags).options.filter((function(e){return e.get("active")}));return t.length?"".concat(f.map(t,(function(e){return'tags:"'.concat(e.get("name"),'"')})).join(" ")):""},getQueryString:function(e){return e.map((function(e){return R.getFilterQueryString(e)})).filter((function(e){return e})).join(",")},getFilterQueryString:function(e){return R.isBooleanType(e)?g.boolean(e):f.isFunction(g[e.get("type")])?g[e.get("type")](e):""},getRouteQueryParams:function(e,t){var n=S,r={};return e.each((function(e){var o={};o=e.get("type")===h.a.Sources?n[h.a.Sources](e,t):f.isFunction(n[e.get("type")])?n[e.get("type")](e):R.isBooleanType(e)?n.boolean(e):n.default(e),r=f.extend(r,o)})),r},getFilterLabel:function(e){var t=R.createLabel(e);return t=R.truncateLabel(t),t=R.prefixLabel(t,e)},createLabel:function(e){if(e.get("behavior")===i.Boolean)return e.get("title");if(f.isFunction(k[e.get("type")]))return k[e.get("type")](e);var t=e.options.find((function(e){return e.get("active")}));return t?t.get("value"):""},prefixLabel:function(e,t){return t.get("prefixWhenActive")?R.getSelectedOptions(t.get("options")).length>1?e:"".concat(t.get("title"),": ").concat(e):e},truncateLabel:function(e){if(!e||e.length<20)return e;var t=e.slice(0,17);return"".concat(t,"...")},setFilters:function(e,t){f.each(f.keys(e),(function(n){var r=e[n],o=t.findWhere({type:n});o&&(R.isBooleanType(o)&&R.selectBoolean(n,r,t),n===h.a.Sources&&R.selectSources(r,t),n===h.a.Duration&&R.selectDurations(r,t),n===h.a.Folder&&R.selectFolder(r,t),n===h.a.ProductionYear&&R.selectProductionYear(r,t),n===h.a.Ratings&&R.selectRating(r,t),n===h.a.Series&&R.selectSeries(r,t),n===h.a.Tags&&R.selectTags(r,t))})),t.each((function(t){t.get("selectAllWhenNoneSelected")&&(f.contains(f.keys(e),t.get("type"))||R.selectAllOptions(t))}))},selectBoolean:function(e,t,n){n.get(e).set({active:t})},selectSources:function(e,t){var n=e.split(","),i=t.get(h.a.Sources);i.options.length?f.each(n,(function(e){var t=i.options.find((function(t){return t.get("type").toLowerCase()===e.toLowerCase()}));if(t)t.set("active",!0);else if(e!==o.Libraries){var n=e.split("-")[1];if(n){var a=i.options.findWhere({id:+n});a&&a.set("active",!0)}}else{var c=i.options.where({type:r.CustomLibrary});f.each(c,(function(e){return e.set("active",!0)}))}})):f.each(n,(function(e){i.options.add({id:e,name:e,dry:!0,active:!0,type:e})}))},selectDurations:function(e,t){var n,r,i,c=t.get(h.a.Duration),u=0;if(e.indexOf(o.LongerThan)>=0&&(n=e.replace(o.LongerThan,"")),e.indexOf(o.ShorterThan)>=0&&(r=e.replace(o.ShorterThan,"")),e.indexOf(o.To)>=0){var l=e.split(o.To);n=l[0],r=l[1]}i=n?p.duration("PT".concat(n.toString().toUpperCase())).asMilliseconds():0,u=r?p.duration("PT".concat(r.toString().toUpperCase())).asMilliseconds():Number.MAX_VALUE,c.options.each((function(e){var t=e.get("start"),n=e.get("end");i<=t+1001&&i>=t-1001&&u>=n-1001&&u<=n+1001&&e.set("active",!0)})),c.options.any((function(e){return e.get("active")}))||c.options.add([{id:"custom",start:i,end:u,name:a.a.getPhrase("search.utils","custom"),description:"".concat(e.replace(/-/g," ")),active:!0}].concat(E(s.DURATION)))},selectFolder:function(e,t){var n=t.get(h.a.Folder),r=n.options.find((function(t){return t.get("id").toLowerCase()===e.toLowerCase()}));r?r.set("active",!0):n.options.add([].concat(E(n.options.toJSON()),[{id:e,value:e,name:e,active:!0}]))},selectProductionYear:function(e,t){var n,r,i=t.get(h.a.ProductionYear);if(R.clearOptions(i),e.indexOf(o.Since)>=0&&(n=+e.replace(o.Since,"")),e.indexOf(o.Before)>=0&&(r=+e.replace(o.Before,"")),e.indexOf(o.To)>=0){var c=e.split(o.To);n=+c[0],r=+c[1]}i.options.each((function(e){+e.get("from")===n&&e.set("active",!0)})),i.options.any((function(e){return e.get("active")}))||i.options.add([{id:e,from:n,to:r,name:a.a.getPhrase("search.utils","custom"),value:e,active:!0}].concat(E(s.PRODUCTION_YEAR)))},selectRating:function(e,t){var n=t.get(h.a.Ratings),r=e.split(o.To);r[0]&&(r[0]=r[0].trim().toLowerCase()),r[1]&&(r[1]=r[1].trim().toLowerCase());var i=n.options.find((function(e){return e.get("name").toLowerCase()===r[0]})),a=n.options.find((function(e){return e.get("name").toLowerCase()===r[1]})),c=i&&i.get("value"),u=a&&a.get("value")||c,s=n.options.filter((function(e){return e.get("value")>=c&&e.get("value")<=u}));f.each(s,(function(e){return e.set("active",!0)}))},selectSeries:function(e,t){t.get(h.a.Series).options.add({id:e,value:e,name:e,count:0,active:!0})},selectTags:function(e,t){var n=t.get(h.a.Tags);if(!n.options.length){var r=f.isArray(e)?e:[e];f.each(r,(function(e){n.options.add({id:e,name:e,value:e,active:!0})}))}},showFilter:function(e){return e.get("behavior")===i.Boolean||e.options.length>=e.get("minNumOptions")},getExchange:function(e){return R.getSource(e,d.q.Exchange)},getWorkspace:function(e){return R.getSource(e,d.q.Workspace)},getLibraries:function(e){return[].concat(E(R.getSources(e,d.q.CustomLibrary)),E(R.getSources(e,d.q.HostedLibrary)))},getHostedLibraries:function(e){return R.getSources(e,d.q.HostedLibrary)},getCustomLibraries:function(e){return R.getSources(e,d.q.CustomLibrary)},getSource:function(e,t){return e.find((function(e){return e.get("type")===t}))},getSources:function(e,t){return e.filter((function(e){return e.get("type")===t}))},hasFilterChanged:function(e,t){return e.get("behavior")===i.Boolean?e.get("active")!==t.get("active"):R.isInclusiveType(e)||R.isTagType(e)?R.haveOptionsChanged(e,t):R.hasOptionChanged(e,t)},haveOptionsChanged:function(e,t){var n=t.options.where({active:!0}),r=e.options.where({active:!0});return!n||!r||(n.length!==r.length||!n.every((function(e,t){return e.get("value")===r[t].get("value")})))},hasOptionChanged:function(e,t){var n=R.getSelectedOption(t.options,e.get("behavior")),r=R.getSelectedOption(e.options,e.get("behavior"));return!(!n&&!r)&&(!!(!n&&r||n&&!r)||n.get("value")!==r.get("value"))},clearFilters:function(e){e.each((function(e){e.get("selectAllWhenNoneSelected")?R.selectAllOptions(e):e.get("behavior")===i.Boolean?e.set("active",!1):R.clearOptions(e,!0)}))},clearOptions:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.options.each((function(e){t&&e.get("isDefault")?e.set("active",!0):e.set("active",!1)}))},selectAllOptions:function(e){e.options.each((function(e){return e.set("active",!0)}))},getSelectedOption:function(e,t){return t===i.Range?R.getSelectedOptionInRange(e):e.findWhere({active:!0})},getSelectedOptions:function(e){return new y.b(e.filter((function(e){return e.get("active")})))},getSelectedOptionInRange:function(e){var t=e.where({active:!0});return f.last(t)},isInclusiveType:function(e){return e.get("behavior")===i.Inclusive},isBooleanType:function(e){return e.get("behavior")===i.Boolean},isTagType:function(e){return e.get("behavior")===i.Tag},isSelected:function(e){return R.isBooleanType(e)?e.get("active"):R.isInclusiveType(e)?!R.allOptionsSelected(e):R.hasOptionSelected(e)},hasOptionSelected:function(e){return e.options.any((function(e){return!e.get("isDefault")&&e.get("active")}))},allOptionsSelected:function(e){return e.options.every((function(e){return e.get("active")}))},toISOString:function(e){if(!e||e===Number.MAX_VALUE)return"";var t=Math.ceil(e/1e3);return p.duration(1e3*t).toISOString().replace("PT","")},getFilterSelectedOptionsAnalyticsData:function(e){if(R.isBooleanType(e))return e.get("active");if(R.isInclusiveType(e))return R.getInclusiveFilterSelectedOptionsAnalyticsData(e);var t=R.getSelectedOption(e.options,e.get("behavior"));return t&&t.get("name")},getInclusiveFilterSelectedOptionsAnalyticsData:function(e){var t=e.options.where({active:!0});return t.length||(t=e.options.toArray()),e.get("type")===h.a.Sources?t.map((function(e){return e.get("id")})).join(","):t.map((function(e){return e.get("name")})).join(",")}},P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},A={setQueryParams:function(e,t,n){var r=e.query,o=P(e,["query"]);t.set({query:r,initialQuery:r}),R.setFilters(o,n)},getQueryString:function(e,t,n){var r="",o=A.encodeURL(e.get("query"))||"",i=R.getDynamicFiltersQueryString(t),a=R.getSourceFilterQueryString(t);(o||i)&&(r+="q=".concat(o)),i&&(r+=" ".concat(i)),r&&a&&(r+="&".concat(a));var c=[],u=R.getQueryString(t);return u&&c.push(u),n&&c.push("page:".concat(n)),c.length&&(r+="&filter={".concat(c.join(","),"}")),r},getDynamicFilterQueryString:function(e,t){var n="",r=e.get("query")?A.encodeURL(e.get("query")):"",o=R.getTagFilterQueryString(t),i=R.getSourceFilterQueryString(t,"ids");return(r||o)&&(n+="q=".concat(r)),o&&(n+=" ".concat(o)),i&&(n+="&".concat(i)),n},getRouteQueryParams:function(e,t,n){var r=e.get("query")?{query:e.get("query")}:{};return f.extend(r,R.getRouteQueryParams(t,n))},encodeURL:function(e){return e?e.replace("&","%26").replace("#","%23"):""}};n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return A})),n.d(t,"b",(function(){return R}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(80);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(f,e);var t,n,i,l=s(f);function f(){return a(this,f),l.apply(this,arguments)}return t=f,(n=[{key:"defaults",value:function(){return{children:[],categoryTree:{}}}},{key:"associations",get:function(){return{children:o.a,categoryTree:r.a.Model}}},{key:"parse",value:function(e){if(!e.data)return e;var t=e.data;return t.children=e.children,t}}])&&c(t.prototype,n),i&&c(t,i),f}(r.a.NestedModel)},function(e,t){e.exports=i},function(e,t,n){"use strict";var r=n(349),o=n.n(r);n.d(t,"d",(function(){return o.a}));var i=n(350),a=n.n(i);n.d(t,"b",(function(){return a.a}));var c=n(351),u=n.n(c);n.d(t,"c",(function(){return u.a}));var s=n(352),l=n.n(s);n.d(t,"a",(function(){return l.a}))},function(e,t,n){e.exports={svgContainer:"_1ZcbC",searchContextTag:"_1RLqh",tagFocus:"_179a5",searchContextContainer:"_3nPVB"}},function(e,t,n){e.exports={actions:"_1n37b",spinner:"_3Fpix",cancel:"_2ZmdX",hiddenCancel:"_1PypJ",processProgress:"_3dASy",errorMargin:"_3GfnF"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(1);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(l,e);var t,n,o,s=u(l);function l(){return i(this,l),s.apply(this,arguments)}return t=l,(n=[{key:"defaults",get:function(){return{placement:"top"}},set:function(e){}},{key:"ui",get:function(){return this.options.selector?{tooltip:this.options.selector}:{}},set:function(e){var t={};this.view.ui&&(t=r.result(this.view,"ui")),this.view._ui=r.extend({},t,e)}},{key:"getElement",value:function(){return this.options.selector?this.view.getUI("tooltip"):this.view.$el}},{key:"getOptions",value:function(){var e={placement:this.options.placement};return this.options.title&&(e.title=this.options.title),e}},{key:"onRender",value:function(){var e=this.getElement();e.length&&e.tooltip(this.getOptions())}},{key:"onBeforeDetach",value:function(){var e=this.getElement();e instanceof jQuery&&e.tooltip("dispose")}}])&&a(t.prototype,n),o&&a(t,o),l}(n(2).a.Behavior)},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return g}));var r=n(5),o=n(13),i=n(115),a=n(17),c=n(0),u=n(103),s=n(18);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(l,e);var t,n,r,o=y(l);function l(){return f(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"name",get:function(){return a.a.User}},{key:"channelName",get:function(){return c.e.USER}},{key:"getCurrentUser",value:function(e,t){return this.get({resource:"/api/currentuser",formatData:function(e){return new i.a(e,{parse:!0})},eventPrefix:c.f.CURRENT_USER,bootstrapName:u.a.CURRENT_USER,expiryTime:s.a.STANDARD,callback:e,errorCallback:t})}}])&&p(t.prototype,n),r&&p(t,r),l}(o.a),g={currentUser:{dataServiceName:a.a.User,eventName:"".concat(c.f.CURRENT_USER,":sync"),getData:function(e){return e.getCurrentUser()},getInstance:function(e){return r.a.getInstance(a.a.User,e)},beforeOnBeforeRender:!0}}},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=c(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model),f=n(100);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=b(i);function i(){return h(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"idAttribute",get:function(){return"type"}},{key:"associations",get:function(){return{options:f.b}}}])&&y(t.prototype,n),r&&y(t,r),i}(r.a.NestedModel);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(i,e);var t,n,r,o=k(i);function i(){return S(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"idAttribute",get:function(){return"value"}}])&&O(t.prototype,n),r&&O(t,r),i}(r.a.Model);n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return R}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return X})),n.d(t,"b",(function(){return J}));var r=n(1),o=n(6),i=n(5),a=n(13),c=n(236),u=n(97),s=n(0),l=n(82),f=n(128),p=n(154),h=n(89),y=n(80),d=n(145),b=n(49),v=n(17),g=n(9),m=n(18),w=n(90),S=n(12),O=n(3);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var o=A(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(){return"/api/domain/v2/me/libraries?type=customlibrary&type=unpublishedcustomlibrary"},x=function(){return"/api/domain/v2/me/libraries?type=2"},L=function(e){return"/api/domain/v2/me/libraries?type=exchange&maxCategoryDepth=".concat(e)},j=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(s.A.FOLDER)},N=function(e,t){return"/api/domain/v2/collections/".concat(e,"/categories").concat(t?"?parentCategoryId=".concat(t):"")},I=function(e){return"/api/domain/v2/objects/".concat(e)},V=function(e){return"/api/domain/v2/objects/".concat(e)},B=function(){return"/api/domain/v2/objects/move"},D=function(e){return"/api/domain/v2/objects/".concat(e,"/customlibraries")},M=function(e){return"/api/domain/v2/objects/".concat(e)},U=function(e){return"/api/domain/v2/objects/".concat(e,"/banner")},F=function(e,t){return"/api/domain/v2/objects/".concat(e,"/banner/").concat(t)},H=function(e){return"/api/domain/v2/objects/".concat(e,"/thumbnail")},z=function(e,t){return"/api/domain/v2/objects/".concat(e,"/thumbnail/").concat(t)},q=function(e,t,n){var r=["query={".concat(t,"}").concat(s.A.LIBRARY_FOLDERS)];return n&&r.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(e,"/categories?").concat(r.join("&"))},W=function(){return"libraries"},Y=function(){return"hosted:libraries"},G=function(e){return"exchange:".concat(e)},K=function(e){return"".concat(s.f.FOLDER,":").concat(e)},Q=function(e){return"library:".concat(e)},Z=function(e){return"library:status:".concat(e)},$={libraries:function(e){return new d.a(e,{parse:!0})},folders:function(e){return new y.a(e.data)},folder:function(e){return new l.a(e)},library:function(e){return new f.a(e)}},X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(c,e);var t,n,i,a=R(c);function c(){return k(this,c),a.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return v.a.Library}},{key:"channelName",get:function(){return s.e.LIBRARY}},{key:"lang",get:function(){return"libraryEditor.services"}},{key:"clearLibrariesCache",value:function(){this.invalidateCache([W()])}},{key:"getLibraries",value:function(e){return this.get({expiryTime:m.a.STANDARD,callback:e,resource:T(),formatData:$.libraries,eventPrefix:W()})}},{key:"getHostedLibraries",value:function(e){return this.get({expiryTime:m.a.STANDARD,callback:e,resource:x(),formatData:$.libraries,eventPrefix:Y()})}},{key:"getExchange",value:function(e,t){return this.get({expiryTime:m.a.STANDARD,callback:t,resource:L(e),formatData:$.libraries,eventPrefix:G(e)})}},{key:"getFolder",value:function(e,t){return this.get({callback:t,expiryTime:m.a.STANDARD,resource:j(e),formatData:$.folder,eventPrefix:K(e)})}},{key:"getFolderFromLibraries",value:function(e,t){this.getLibraries((function(n){t(b.a.getModelFromCollection(e,n))}))}},{key:"addFolder",value:function(e,t,n,r){var i,a=this,c=e.pick("name");this.chain().create({expiryTime:m.a.STANDARD,data:c,resource:N(t,n),formatData:$.folder,eventPrefix:K(),callback:function(e){return i=e}}).func((function(){a.invalidateCache([s.f.LIBRARY_FOLDERS]),a.getLibraries((function(e){n?b.a.addFolder(i,n,e):b.a.addFolderToLibrary(i,t,e),o.Radio.channel(a.channelName).trigger("folder:created",i),r(i)}))})).run()}},{key:"updateFolder",value:function(e,t){var n=this,o=e.get("id"),i=e.pick(["id","name"]);this.getFolder(o,(function(a){var c,u=a.banner;n.chain().update({resource:I(o),data:i,callback:function(e){(c=e).banner=u},formatData:$.folder,expiryTime:m.a.STANDARD,eventPrefix:K(o)}).func((function(){n.clearLibraryFoldersCache(),n.getLibraries((function(n){b.a.getModelFromCollection(e.get("id"),n).set(i),r.isFunction(t)&&t(c)}))})).run()}))}},{key:"moveFolder",value:function(e,t,n,o){var i,a=this,c="folder:delete:".concat(e);this.chain().create({resource:B(),eventPrefix:c,formatData:$.folder,data:{oldCollectionId:n,newCollectionId:t,assocType:"has",objectIds:[e]},callback:function(e){return i=e},successHandler:this.alertService.success(O.a.getPhrase(this.lang,"folderMoveSuccess"))}).func((function(){a.clearLibraryFoldersCache(),a.getLibraries((function(a){var c=b.a.getModelFromCollection(n,a),u=b.a.getModelFromCollection(t,a),s=b.a.getModelFromCollection(e,a);c&&c.children.remove(s),u?u.children.add(s):a.add(s),r.isFunction(o)&&o(i)}))})).run()}},{key:"deleteFolder",value:function(e,t){var n=this;this.chain().delete({resource:V(e),eventPrefix:"".concat(K(e),":delete")}).func((function(){n.clearLibraryFoldersCache(),n.getLibraries((function(r){var i=b.a.getModelFromCollection(e,r);i&&i.collection&&i.collection.remove(i),o.Radio.channel(n.channelName).trigger("library:deleted"),t()}))})).run()}},{key:"getLibraryFolders",value:function(e,t){var n=S.q.GetFilterFromSort(e.sort),r=q(e.id,n,e.cursor);return this.get({resource:r,formatData:$.folders,expiryTime:m.a.STANDARD,eventPrefix:e.toString(),callback:t})}},{key:"clearLibraryFoldersCache",value:function(){this.invalidateCache([s.f.LIBRARY_FOLDERS]),o.Radio.channel(s.e.LIBRARY).trigger("clear:library:folder:cache")}},{key:"getLibraryFoldersCursors",value:function(e){return this.getCursors(e.toString())}},{key:"createLibrary",value:function(e,t,n){var i=this,a=t.pick(["name"]);a.status=u.a.Draft,this.create({resource:D(e),eventPrefix:Q(),formatData:$.library,data:a,callback:function(e){i.getLibraries((function(t){t.add(e),o.Radio.channel(i.channelName).trigger("library:created"),r.isFunction(n)&&n(e)}))},successHandler:this.alertService.success(O.a.getPhrase(this.lang,"libraryCreateSuccess")),errorHandler:this.alertService.error(O.a.getPhrase(this.lang,"libraryCreateError"))})}},{key:"updateLibrary",value:function(e,t){var n=this,o=e.pick(["id","name"]),i=e.get("id");this.update({resource:M(i),eventPrefix:Q(i),formatData:$.library,data:o,successHandler:this.alertService.success(O.a.getPhrase(this.lang,"libraryUpdateSuccess")),errorHandler:this.alertService.error(O.a.getPhrase(this.lang,"libraryUpdateError")),callback:function(i){n.getLibraries((function(n){b.a.getModelFromCollection(e.get("id"),n).set(o),r.isFunction(t)&&t(i)}))}})}},{key:"deleteLibrary",value:function(e,t){var n=this;this.chain().delete({resource:V(e),eventPrefix:"".concat(Q(e),":delete")}).func((function(){n.getLibraries((function(r){var i=b.a.getModelFromCollection(e,r);i&&i.collection&&i.collection.remove(i),o.Radio.channel(n.channelName).trigger("library:deleted"),t()}))})).run()}},{key:"publishLibrary",value:function(e,t){var n=this,o={status:1};this.update({resource:M(e),eventPrefix:Z(e),data:o,successHandler:this.alertService.success(O.a.getPhrase(this.lang,"libraryAvailableSuccess")),errorHandler:this.alertService.error(O.a.getPhrase(this.lang,"libraryAvailableError")),callback:function(){n.getLibraries((function(n){var i=n.get(e);i&&i.set(o),r.isFunction(t)&&t()}))}})}},{key:"addOrUpdateBanner",value:function(e,t){var n=e.folderId,r=e.imageModel,o=e.currentImageId,i={fileId:r.id.toString(),fileIdType:g.e.ImageAPIv1},a=this.chain();o&&a.delete({resource:F(n,o),eventPrefix:s.f.DELETE_FOLDER_BANNER}),a.create({resource:U(n),eventPrefix:"".concat(s.f.UPDATE_FOLDER_BANNER,":").concat(n),data:i,formatData:function(e){return new p.a(e)},invalidationKeys:[K(n)],successHandler:this.alertService.success(O.a.getPhrase(this.lang,"bannerUpdateSuccess")),callback:t}),a.run()}},{key:"deleteBanner",value:function(e,t){this.delete({resource:F(e.folderId,e.imageId),eventPrefix:s.f.DELETE_FOLDER_BANNER,successHandler:this.alertService.success(O.a.getPhrase(this.lang,"bannerRemoveSuccess")),invalidationKeys:[K(e.folderId)],callback:t})}},{key:"addOrUpdateThumbnail",value:function(e,t){var n=this,r=e.folderId,o=e.imageModel,i=e.currentImageId,a={fileId:o.id.toString(),fileIdType:g.e.ImageAPIv1},c=this.chain();i&&c.delete({resource:z(r,i),eventPrefix:s.f.DELETE_FOLDER_THUMBNAIL}),c.create({resource:H(r),eventPrefix:"".concat(s.f.UPDATE_FOLDER_THUMBNAIL,":").concat(r),data:a,formatData:function(e){return new h.a(e)},invalidationKeys:[K(r)],successHandler:this.alertService.success(O.a.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:t}),c.func((function(){n.clearLibraryFoldersCache()})),c.run()}},{key:"deleteThumbnail",value:function(e,t){var n=this;this.delete({resource:z(e.folderId,e.imageId),eventPrefix:s.f.DELETE_FOLDER_THUMBNAIL,successHandler:this.alertService.success(O.a.getPhrase(this.lang,"thumbnailRemoveSuccess")),invalidationKeys:[K(e.folderId)],callback:function(e){n.clearLibraryFoldersCache(),r.isFunction(t)&&t(e)}})}},{key:"deselectAll",value:function(){this.getLibraries((function(e){b.a.deselectAll(w.a.LIBRARY_EDITOR,e)}))}},{key:"setSelected",value:function(e){this.getLibraries((function(t){b.a.setSelected(w.a.LIBRARY_EDITOR,e,t)}))}},{key:"getSelected",value:function(e,t){this.getLibraries((function(e){var n=b.a.getSelected(w.a.LIBRARY_EDITOR,e);t(n)}))}}])&&E(t.prototype,n),i&&E(t,i),c}(a.a),J=Object.assign(Object.assign({},c.a),{exchanges:{dataServiceName:v.a.Library,eventName:"".concat(G(0),":sync"),getData:function(e){return e.getExchange(0)},getInstance:function(e){return i.a.getInstance(v.a.Library,e)},beforeOnBeforeRender:!0}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),o={debounce:function(e,t,n){return r.debounce(e,t,n)},throttle:function(e,t,n){return r.throttle(e,t,n)},isFunction:function(e){return r.isFunction(e)},useIdentity:function(){return r.identity},memoize:function(e,t){return r.memoize(e,t)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n(24),o={LIBRARY:"library:data:service",VIDEO:"video:data:service",MIGRATION:"migration:data:service",TAG:"tag:data:service",CHAPTER:"chapter:data:service",SERIES:"series:data:service",SEARCH:"search:data:service",STAFF_REQUEST:"staff:request:data:service",CONFIG:"config:data:service",USER:"user:data:service",NOTIFICATIONS:"notifications:data:service",NOTIFICATIONS_SOCKET:"notifications:socket:service",SETTINGS:"settings:data:service",VIDEO_UPLOAD:"video:upload:data:service",IMAGE_UPLOAD:"image:upload:data:service",CUSTOMER:"customer:data:service",EXPORT:"export:data:service",LOCAL_CACHE:"local:cache:data:service",RESTRICTED_VIDEO:"restricted:video:data:service",RATINGS:"ratings:data:service",LANGUAGE:"language:data:service",CONTENT_UPDATES:"content:updates:data:service",DOWNLOAD_PROXY:"download:proxy:data:service",RESOURCE:"resource:data:service",SUBTITLE:"subtitle:data:service",LINK:"link:data:service",COMPANY:"company:data:service",PERSON:"person:data:service",FIELDS:"fields:data:service"},i=Object.assign({PENDING_ITEMS:"pending:items:service",VIDEO_DRAG_DROP:"video:drag:drop:service",FOLDER_DRAG_DROP:"folder:drag:drop:service",SELECTED_VIDEO:"selected:video:service",FOLDER_CACHE:"folder:cache:service",LOCAL_OPTIONS:"local:options:service",VIDEO_MIXIN:"video:mixin:service",PAGE_VISIBILITY:"page:visibility:service",PAGE_TITLE:"page:title:service",CONTEXTUAL_SEARCH:"contextual:search:service"},r.c),a={DEFAULT:"default:application",LIBRARY_EDITOR:"library:editor:application",MIGRATION_WIZARD:"migration:wizard:application",SEARCH:"search:application",NOTIFICATIONS:"notifications:application",VIDEO_ACCESS:"video:access:application",CONTENT_UPDATES:"content:updates:application",STAFF_REQUESTS:"staff:requests:application",DASHBOARD:"dashboard:application",UPLOAD:"upload:application"}},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={Dashboard:{HOME:"index"},LibraryEditor:{HOME:"index",LIBRARY:"library",NEW_SUB_FOLDER:"new:sub:folder",RENAME_FOLDER:"rename:folder",MOVE_FOLDER:"move:folder",DELETE_FOLDER:"delete:folder",FOLDER:"folder",SERIES:"series",EDIT_VIDEO:"edit:video",VIDEO_DETAILS:"video:details",SAVE_VIDEO:"save:video",EDIT_VIDEO_CHAPTERS:"edit:video:chapters",EDIT_VIDEO_RESOURCES:"edit:video:resources",EDIT_RESOURCE:"edit:resource",NEW_LIBRARY:"new:library",DELETE_LIBRARY:"delete:library",RENAME_LIBRARY:"rename:library",UPLOAD_THUMBNAIL:"upload:thumbnail",UPLOAD_BANNER:"upload:banner",GENERATE_PDF:"generate:pdf",SUGGEST_AN_EDIT:"suggest:an:edit",EDIT_FOLDER_IMAGES:"edit:folder:images",SHOW_PUBLISHER_VIDEO:"show:publisher:video",EDIT_LINK:"edit:link",NEW_SEASON:"new:season",ADD_TO_EXCHANGE:"add:to:exchange"},VideoAccess:{HOME:"index"},Search:{HOME:"index"},MigrationWizard:{HOME:"index",SHOW_PUBLISHER_VIDEO:"show:publisher:video",FOLDER:"folder",SEARCH:"search",SELECTED:"selected",SMART:"smart",PROGRESS:"progress",BACKUP_WELCOME:"backup:welcome",BACKUP_DOWNLOAD:"backup:download",BACKUP_PROGRESS:"backup:progress",BACKUP_COMPLETE:"backup:complete",START_MIGRATION:"start:migration",VIDEOS_ADDED:"videos:added",REMIGRATE_VIDEO:"remigrate:video",PUBLISH_LIBRARY_PROGRESS:"publish:library:progress",PUBLISH_LIBRARY_COMPLETE:"publish:library:complete",MIGRATION_ERRORS:"migration:errors",GENERATE_CSV_REPORT:"generate:csv:report"},ContentUpdates:{HOME:"index",AWAITING_REVIEW:"awaiting:review",PAST_RELEASES:"past:releases",DISABLE_REVIEW:"disable:review",GENERATE_PDF:"generate:pdf",ADD_TO_LIBRARY:"add:to:library"},StaffRequests:{HOME:"index",EDIT_REQUEST:"edit:request",APPROVE_REQUEST:"approve:request",REJECT_REQUEST:"reject:request"},Upload:{FILE_SELECTION:"file:selection",UPLOAD_DETAILS:"upload:details",UPLOAD_COMPLETE:"upload:complete"},Default:{HOME:"index",ERROR:"error",NOT_FOUND:"not:found",DEV_ERROR:"dev:error"},Shared:{SHARE_VIDEO:"share:video",MOVE_VIDEOS:"move:videos",DELETE_VIDEOS:"delete:videos",BULK_CHECKBOX_CHANGE:"bulk:checkbox:change",NEW_FOLDER:"new:folder",MANAGE_VIDEO_ACCESS:"manage:video:access",DOWNLOAD_VIDEO:"download:video",DOWNLOAD_TO_LOCAL_CACHE:"download:to:local:cache",MAKE_LIBRARY_AVAILABLE:"make:library:available"},Notifications:{HOME:"index"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(128);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"model",get:function(){return o.a}},{key:"parse",value:function(e){return e.data||e}},{key:"comparator",get:function(){return function(e){var t;return null===(t=e.get("name"))||void 0===t?void 0:t.toLowerCase()}}}])&&c(t.prototype,n),r&&c(t,r),l}(r.a.Collection)},function(e,t,n){e.exports={droppable:"_1OOL3",hover:"sCq0c"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(6),o=n(55);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,r,i=l(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,(n=[{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Collection)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={type:n(113).a.Unknown,message:"",code:0}},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(98),a=n(115),c=n(128),u=n(82),s=n(235);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(d,e);var t,n,o,l=y(d);function d(){return f(this,d),l.apply(this,arguments)}return t=d,(n=[{key:"associations",get:function(){return{video:i.a,sourceLibrary:c.a,sourceFolder:u.a,destinationLibrary:c.a,destinationFolder:u.a,user:a.a,senderCustomer:s.a}}},{key:"parse",value:function(e){var t=r.omit(e,["sourceCategory","destinationCategory"]);return t.sourceFolder=e.sourceCategory,t.destinationFolder=e.destinationCategory,t}}])&&p(t.prototype,n),o&&p(t,o),d}(o.a.NestedModel);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(i,e);var t,n,r,o=O(i);function i(){return m(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"associations",get:function(){return{user:a.a}}}])&&w(t.prototype,n),r&&w(t,r),i}(o.a.NestedModel);n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return E}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ALERT:"AlertService",LANGUAGE:"LanguageService"}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return o}));var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.value=t}var t,n,o;return t=e,(n=[{key:"increment",value:function(){this.value+=1}},{key:"decrement",value:function(){this.value-=1}},{key:"getValue",value:function(){return this.value}}])&&r(t.prototype,n),o&&r(t,o),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={LAZY_LOAD:"lazy:load:behavior",POPUP:"popup:behavior",IMAGE_SELECT:"image:select:behavior"}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t){e.exports=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),o=n(15),i=n(62),a=n(76),c="notifications.utils",u=/^marketing-/,s={getIconColor:function(e){switch(e){case a.a.Success:return"success";case a.a.Alert:return"danger";case a.a.Warning:return"warning";case a.a.Info:case a.a.Other:default:return"dark"}},getIcon:function(e){switch(e){case a.a.Success:return o.b.CheckCircle;case a.a.Alert:case a.a.Warning:return o.b.Warning;case a.a.Info:case a.a.Other:default:return o.b.Info}},getIconColorByNotificationType:function(e){return e===i.a.VideoProcessingFailed||e===i.a.VideoRequestDenied?"danger":e.match(u)?"warning":void 0},getIconByNotificationType:function(e){if(e.match(u))return o.b.Star},getNotificationAction:function(e){switch(e){case i.a.WorkspaceVideoAvailable:case i.a.ExchangeVideoAvailable:case i.a.EditedVideoAvailable:return r.a.getPhrase(c,"viewVideo");case i.a.VideoReviewReminder:return r.a.getPhrase(c,"reviewVideos");case i.a.VideoReviewAddedToLibrary:return r.a.getPhrase(c,"viewNewContent");case i.a.CustomLibraryVideoAvailable:return r.a.getPhrase(c,"viewVideoDetails");case i.a.StaffRequest:return r.a.getPhrase(c,"reviewVideo");default:return r.a.getPhrase(c,"seeNow")}}}},function(e,t,n){e.exports={contentContainerWithBulkActions:"_1OZCN",thumbnailContainer:"_35XrM",metaContainer:"_1-L5x",titleContainer:"_3nfiJ"}},function(e,t,n){e.exports={leftNav:"_2r3wp",topNav:"_2tPrC",contentBox:"gzfZN",leftNavContentBox:"_1yUOQ",sizingBox:"_2Rol1",alertBox:"_1TUsf",alertBoxWithIntercom:"QDngA",lockedWidth:"_1XHqq"}},function(e,t,n){e.exports={dropMask:"_3jGSR",dropContent:"_2SaaO",dropArea:"_2HnPG",dragOver:"_3OJZ2",border:"_1TRjg"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={MAX_FOLDER_DEPTH:7,POPUP_FADE_TIMEOUT:0}},,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return R}));var r=n(1),o=n(6),i=n(51),a=n(55),c=n(20),u=n(14),s=n(63),l=n(11),f=n(56);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}function g(e,t,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?C(e):t}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){m(n,e);var t=S(n);function n(e){var o;d(this,n),o=t.call(this,e);var i=[].concat(h(o.defaultProps),h(o.props||[]));return o.mergeOptions(e,i),r.result(C(o),"name")||l.c.throw(new l.b("Error: View with cid:".concat(o.cid," requires a name."))),o}return v(n,[{key:"defaultProps",get:function(){return["shell","layoutService"]}},{key:"_setOptions",value:function(e){this.options=r.extend({},r.result(this,"defaults"),e)}},{key:"_setAttributes",value:function(e){var t,n,o;s.a.isDevelopment&&r.extend(e,(t={},n="cv-classname",o=this.name,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t)),this.$el.attr(e)}},{key:"ui",get:function(){return this.uiStorage||(this.uiStorage=this.elements),this.uiStorage},set:function(e){this.uiStorage=e}},{key:"elements",get:function(){return null}},{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"resetClassName",value:function(){this.$el.attr("class",r.result(this,"className"))}},{key:"serializeData",value:function(){var e=this,t=g(k(n.prototype),"serializeData",this).call(this),o=r.result(this,"viewOptions"),i=r.extend({},t,{options:o});return n.ViewDataExtensions.length?r.extend.apply(r,[i].concat(h(r.map(n.ViewDataExtensions,(function(t){return t instanceof Function?t(e):t}))))):i}},{key:"viewOptions",value:function(){return this.options}},{key:"undelegateAppLinks",value:function(){this.$el&&this.$el.off(".appLinks".concat(this.cid))}},{key:"renderAppLinks",value:function(){var e=this,t=this.appLinks;t&&(t=this.normalizeUIKeys(t),this.undelegateAppLinks(),r.each(r.keys(t),(function(n){var r=n,o=t[n],i=f.a.getHref(o);"[this]"===r&&(r=null);var a=r?e.$el.find(n):e.$el;(a.is("a")||a.is("button"))&&(i&&"/"!==i&&a.attr("href",i),e.delegate("click.appLinks".concat(e.cid),r,(function(e){e.preventDefault(),f.a.trigger(o)})))})))}},{key:"hasPartialLoadingRegions",value:function(){return void 0!==this._hasPartialLoadingRegions||(this._hasPartialLoadingRegions=r.some(this.regions,(function(e){return r.has(e,"partialLoading")}))),this._hasPartialLoadingRegions}},{key:"renderPartialLoading",value:function(e){o.Radio.channel(u.a.SHELL).trigger("render:partial:loading",this,e)}},{key:"listenTo",value:function(){return a.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],g(k(n.prototype),"listenTo",this))}},{key:"render",value:function(){if(this._isDestroyed)return this;var e=this.processRequriedResources(!0);return e&&(e=this.triggerMethod("before:render",this)),!1!==e&&(e=!0),!1===(e=e&&this.processRequriedResources(!1))?(this._partialLoadingRendered||!this.hasPartialLoadingRegions()||(this._partialLoadingRendered=!0,this._reInitRegions(),this._renderTemplate(),this.renderPartialLoading()),this):((this._isRendered||this._partialLoadingRendered)&&this._reInitRegions(),this.setTitle(),this._renderTemplate(),this.bindUIElements(),this.renderAppLinks(),this._partialLoadingRendered=!1,this._isRendered=!0,this.triggerMethod("render",this),this)}},{key:"processRequriedResources",value:function(e){return!0}},{key:"setTitle",value:function(){}}],[{key:"AddViewDataExtension",value:function(e){n.ViewDataExtensions.push(e)}}]),n}(i.View);E.ViewDataExtensions=[];var _=function(e){m(n,e);var t=S(n);function n(e){var r;return d(this,n),(r=t.call(this,e)).boundListeners={},r.resourceInstances={},r}return v(n,[{key:"processRequriedResources",value:function(e){var t=this,n=r.keys(this.requiredResources);if(!n.length)return!0;var o=this,i=!0;return r.each(n,(function(n){var r=t.requiredResources[n];if(r.beforeOnBeforeRender===e){var a=r.dataServiceName;t.resourceInstances[a]||(t.resourceInstances[a]=r.getInstance(t)),t.boundListeners["".concat(a,":").concat(r.eventName)]||(t.listenTo(t.resourceInstances[a].channelName,r.eventName,t.render),t.boundListeners["".concat(a,":").concat(r.eventName)]=!0),o[n]=r.getData(t.resourceInstances[a]),i=i&&!!o[n]}})),i}},{key:"setTitle",value:function(){r.isString(this.title)||!1===this.title||l.c.throw(new c.a("Must define a title for ".concat(this.name,"."))),o.Radio.channel(u.a.SHELL).trigger("set:page:title",this.title)}}]),n}(E),R=function(e){m(n,e);var t=S(n);function n(){return d(this,n),t.apply(this,arguments)}return n}(E)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(1),o=n(81),i=n(147);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(d,e);var t,n,p,y=f(d);function d(){return c(this,d),y.apply(this,arguments)}return t=d,(n=[{key:"set",value:function(e,t,n){var o,i;if(null===e)return this;for(o in"object"===a(e)?(i=e,n=t):(i={})[e]=t,n||(n={}),i)r.has(this.associations,o)&&(i[o]=this.setAssociation(o,i[o],n));return s(h(d.prototype),"set",this).call(this,i,n)}},{key:"get",value:function(e){var t=e.indexOf(".");if(-1===t)return s(h(d.prototype),"get",this).call(this,e);var n=e.substr(0,t),o=this.attributes[n];if(!o||!r.isFunction(o.get))return s(h(d.prototype),"get",this).call(this,e);var i=e.substr(t+1);return o.get(i)}},{key:"setAssociation",value:function(e,t,n){var a=this.associations[e],c=this.attributes[e];if(!r.isFunction(a))return t;if(n.unset)return c&&delete c.parent,delete this[e],c;if(c)return c instanceof o.a&&c.set(t,n),c instanceof i.a&&c.set(t,n),n.silent||this.trigger("change:".concat(e),this,t,n),c;var u=t instanceof o.a?t:new a(t,{parse:!0});return u.parent=this,this[e]=u,u}},{key:"toJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=s(h(d.prototype),"toJSON",this).apply(this,t);return r.each(this.associations,(function(e,t){r.has(o,t)&&r.isFunction(o[t].toJSON)?o[t]=o[t].toJSON():o[t]=(new e).toJSON()})),o}},{key:"toFlatJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.omit(s(h(d.prototype),"toJSON",this).apply(this,t),r.keys(this.associations))}}])&&u(t.prototype,n),p&&u(t,p),d}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(9),o="categories{libraries.typeid:".concat(r.g.CustomMediaObjectCollection,"}"),i={VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(o,",libraries,interactives{limit:1},")+"subtitles{limit:1},resources{limit:1},links{limit:1}",HOSTED_VIDEO_COLLECTION:"series,season,rating,thumbnail,categories,libraries,channel,interactives{limit:1},subtitles{limit:1},resources{limit:1},links{limit:1}",VIDEO:"series[seasons{orderby:number}],season,rating,thumbnail,".concat(o,",producers,distributors,libraries,")+"channel,chapters{limit:100},interactives{limit:100},resources[customer],subtitles[customer],tags[customer],productionCompanies,directors,links[customer],fields",FOLDER:"banner,thumbnail",SERIES:"seasons{orderby:number}",LIBRARY_FOLDERS:"thumbnail"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(3),o="generic",i="shared.constants",a={generic:function(){return r.a.getPhrase(i,"dataServiceErrorGeneric")},"video_forbidden.rating_access":function(){return r.a.getPhrase(i,"dataServiceErrorForbiddenRatingAccess")}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h}));var r=n(1),o=["pdf"],i=["doc","docx","dotx","dot","rtf","docm","odt"],a=["csv","txt"],c=["xls","xlt","xlsx"],u=["jpg","tif","png","bmp","gif","jpeg"],s=["zip","rar"],l=["ppt","pot","pps","pptx"],f=["srt"],p={IMAGES:".".concat(u.join(",.")),RESOURCES:".".concat([].concat(i,c,l,o,a,u,s).join(",.")),SUBTITLES:".".concat(f.join(",."))},h={getResourceType:function(e){var t=e.toLowerCase();return r.contains(i,t)?"document":r.contains(c,t)?"excel":r.contains(l,t)?"powerpoint":r.contains(o,t)?"pdf":r.contains(a,t)?"text":r.contains(u,t)?"image":r.contains(s,t)?"archive":r.contains(f,t)?"subtitle":""}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return u}));var r,o,i=n(1);function a(e,t){var n="spinner";return e===r.Small&&(n="".concat(n,"-sm")),e===r.Medium&&(n="".concat(n,"-md")),e===r.Large&&(n="".concat(n,"-lg")),t===o.Standard&&(n="".concat(n,"-std")),t===o.Light&&(n="".concat(n,"-light")),t===o.LightBgDark&&(n="".concat(n,"-light-bg-dark")),n}!function(e){e.Small="sm",e.Medium="md",e.Large="lg"}(r||(r={})),function(e){e.Standard="std",e.Light="light",e.LightBgDark="light-bg-dark"}(o||(o={}));var c={size:r.Medium,type:o.Standard,tag:"div"},u={getSpinner:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.extend({},c,e),n=t.tag,r=t.size,o=t.type,u=t.extraClasses,s=a(r,o);return u&&(s="".concat(s," ").concat(u)),"<".concat(n,' class="spinner ').concat(s,'"></').concat(n,">")}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return u}));var i={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i,tablet:/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i,mobile:/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/};function a(e,t,n){var o=r(t.exec(n)||[],1)[0];return o||(o="Unknown"),{browser:e,version:o}}function c(e,t,n){if(!t)return{os:e,version:"Unknown"};var r=t.exec(n);return{os:e,version:r&&r.length?r[0].trim():"Unknown"}}var u={getDeviceType:function(){var e=window.navigator.userAgent;return i.mobileDevice.test(e)?i.iphone.test(e)?"iPhone":i.ipad.test(e)?"iPad":i.android.test(e)?"Android":i.blackberry.test(e)?"Blackberry":i.windowsPhone.test(e)?"Windows Phone":"Unknown":"Desktop"},getOperatingSystem:function(){var e=window.navigator.userAgent;return i.android.test(e)?c("Android",i.androidVersion,e):i.iphone.test(e)||i.ipad.test(e)?c("iOS",i.iosVersion,e):i.linux.test(e)?c("Linux",null,e):i.unix.test(e)?c("Unix",null,e):i.mac.test(e)?c("Macintosh",i.osxVersion,e):i.windows.test(e)?function(e,t){var n={os:e};return i.win2000.test(t)&&(n.version="2000"),i.winXP.test(t)&&(n.version="XP"),i.winVista.test(t)&&(n.version="Vista"),i.win7.test(t)&&(n.version="7"),i.win8.test(t)&&(n.version="8"),i.win81.test(t)&&(n.version="8.1"),i.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):i.blackberry.test(e)?c("BlackBerry",i.blackberryVersion,e):i.windowsPhone.test(e)?c("Windows Phone",i.windowsPhoneVersion,e):{os:"Unknown",version:"Unknown"}},getBrowser:function(){var e=window.navigator.userAgent;return i.chrome.test(e)?a("Chrome",i.generalVersion,e):i.firefox.test(e)?a("Firefox",i.generalVersion,e):i.safari.test(e)?a("Safari",i.generalVersion,e):i.ie.test(e)?a("Internet Explorer",i.ieVersion,e):i.edge.test(e)?a("Edge",i.edgeVersion,e):i.opera.test(e)?a("Opera",i.operaVersion,e):{browser:"Unknown",version:"Unknown"}},isTouchScreen:function(){return!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)},isTabletOrMobile:function(){return!!u.isTouchScreen()&&(i.tablet.test(navigator.userAgent)||i.mobile.test(navigator.userAgent))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(304);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"associations",get:function(){return{seasons:o.a}}}])&&c(t.prototype,n),r&&c(t,r),l}(r.a.NestedModel)},function(e,t,n){e.exports={thumbnailContainer:"_1u9bn",thumbnail:"_1CQyt",svgContainer:"_2L1Hd",playSvgContainer:"_17LPb",durationOverlay:"_15X7K"}},function(e,t,n){"use strict";var r=n(447);n.d(t,"LibraryEditorActions",(function(){return r.a}));n(448);var o=n(449);n.o(o,"CheckboxTypes")&&n.d(t,"CheckboxTypes",(function(){return o.CheckboxTypes})),n.o(o,"EditVideoBackButtonActionsBlacklist")&&n.d(t,"EditVideoBackButtonActionsBlacklist",(function(){return o.EditVideoBackButtonActionsBlacklist})),n.o(o,"EditVideoBackButtonKey")&&n.d(t,"EditVideoBackButtonKey",(function(){return o.EditVideoBackButtonKey})),n.o(o,"MetadataType")&&n.d(t,"MetadataType",(function(){return o.MetadataType})),n.o(o,"MetadataTypes")&&n.d(t,"MetadataTypes",(function(){return o.MetadataTypes}));var i=n(450);n.d(t,"CheckboxTypes",(function(){return i.a}));var a=n(451);n.d(t,"MetadataType",(function(){return a.a})),n.d(t,"MetadataTypes",(function(){return a.b}));var c=n(452);n.d(t,"EditVideoBackButtonKey",(function(){return c.a}));var u=n(453);n.d(t,"EditVideoBackButtonActionsBlacklist",(function(){return u.a}))},function(e,t,n){"use strict";var r=n(13),o=n(5),i=n(0),a=n(9);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(n,e);var t=l(n);function n(){return u(this,n),t.apply(this,arguments)}return n}(n(2).a.Model),y=n(17),d=n(103),b=n(18);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return E}));var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(c,e);var t,n,r,o=S(c);function c(){return g(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return y.a.Config}},{key:"channelName",get:function(){return i.e.CONFIG}},{key:"getConfig",value:function(e){return this.get({resource:"/api/config",formatData:function(e){return new h(e)},eventPrefix:"config",bootstrapName:d.a.CONFIG,callback:e,expiryTime:b.a.STANDARD})}},{key:"getVersion",value:function(e){return this.get({resource:"/api/version",eventPrefix:"version",bootstrapName:d.a.VERSION,callback:e,expiryTime:b.a.STANDARD})}},{key:"getCustomerYearGroups",value:function(e){var t=[a.n.Year1,a.n.Year2,a.n.Year3,a.n.Year4,a.n.Year5,a.n.Year6,a.n.Year7,a.n.Year8,a.n.Year9,a.n.Year10,a.n.Year11,a.n.Year12];switch(e){case a.b.AU:return[a.n.Kindergarten].concat(t);case a.b.UK:case a.b.NZ:return[].concat(t,[a.n.Year13]);default:return t}}}])&&m(t.prototype,n),r&&m(t,r),c}(r.a),E={config:{dataServiceName:i.e.CONFIG,eventName:"config:sync",getData:function(e){return e.getConfig()},getInstance:function(e){return o.a.getInstance(y.a.Config,e)},beforeOnBeforeRender:!0}}},function(e,t,n){"use strict";var r=n(704),o=n(35);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"getSortTypeParam",value:function(){return o.a[this.sort]}}])&&c(t.prototype,n),r&&c(t,r),l}(r.BaseCollectionIdentifier);n.d(t,"a",(function(){return p}))},function(e,t,n){"use strict";var r=n(1),o=n(6),i=n(2),a=n(152),c=n(15),u=n(57);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f,p,h={isEmpty:function(e){return r.isEmpty(e)},values:function(e){return r.values(e)},keys:function(e){return r.keys(e)},deepClone:function(e){return(r.isArray(e)?r.map:r.mapObject)(e,(function(e){return r.isObject(e)||r.isArray(e)?h.deepClone(e):e}))},getEnumKeys:function(e){return Object.keys(e).filter((function(e){return!(parseInt(e)>=0)}))},isObject:function(e){return r.isObject(e)},isEqual:function(e,t){return r.isEqual(e,t)},omit:function(e,t){return r.omit(e,t)},removeEmptyKeys:function(e){return Object.entries(e).filter((function(e){return null!==s(e,2)[1]})).reduce((function(e,t){var n=s(t,2),r=n[0],o=n[1];return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,o))}),{})}},y=n(192);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Banner="banner",e.Thumbnail="thumbnail"}(p||(p={}));var b=(d(f={},y.b.Banners,p.Banner),d(f,y.b.Thumbnails,p.Thumbnail),f),v=function(e){return"/v1/category-map/".concat(e)},g={createUrl:function(e,t){return g._createUrl(e,t)},createBannerUrl:function(e,t,n){return e&&e.url?g._createUrl(e.url,n):g._createCategoryMappedUrl(t,n)},createResourceImage:function(e,t,n){return g._createUrl(e,Object.assign({url:t},n))},Rfc3986EncodeURIComponent:function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl:function(e,t){var n=e.fallbackBaseUrl,r=e.fallbackCategoryName,o=e.type,i=u.a.safeUrlConcat(n,"".concat(v(b[o]))),a=Object.assign({name:g.Rfc3986EncodeURIComponent(r)},t);return g._createUrl(i,a)},_createUrl:function(e,t){if(e){if(h.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&",o=e;return o.endsWith("/")&&(o=o.slice(0,-1)),o+"".concat(r).concat(n)}},legacyCreateThumbnailUrl:function(e,t){if(!e)return"";var n;if(e&&(n=e instanceof i.a.Model?e.get("url"):"string"==typeof e?e:e.url)){var r=Object.assign({size:y.a.Small,bgColor:"000"},t);return g._createUrl(n,r)}}},m=function(e,t,n){var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},w=function(e){if(!r.isNumber(e))return"";var t=new Date(e),n=t.getUTCHours(),o=m(t.getUTCMinutes(),2,"0"),i=m(t.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(o,":").concat(i):"".concat(o,":").concat(i)},S=n(725),O=n.n(S),C=n(186),k=n.n(C);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return L}));var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(s,e);var t,n,i,u=A(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),u.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"show:play:icon",this.showPlayIcon),this.listenTo(this.model,"change:thumbnail",this.render)}},{key:"name",get:function(){return"ThumbnailComponent"}},{key:"template",get:function(){return O.a}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){if(this.options.classNameOverride)return this.options.classNameOverride;var e="".concat(k.a.thumbnailContainer," responsive-img");return this.options.onClickHandler&&(e+=" cursor-pointer"),e}},{key:"elements",get:function(){var e;return _(e={},".".concat(k.a.playSvgContainer),"showPlayIcon"),_(e,"img","img"),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"appLinks",get:function(){return this.options.appLink?{"[this]":this.options.appLink}:{}}},{key:"attributes",get:function(){return this.options.appLink||!this.options.href?{}:{href:this.options.href,target:"_blank"}}},{key:"showPlayIcon",value:function(){this.$el.find(".".concat(k.a.playSvgContainer)).show()}},{key:"onClick",value:function(){var e;if(!this.options.appLink&&r.isFunction(this.options.onClickHandler)){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=this.options.onClickHandler).apply.apply(e,[this].concat(n))}}},{key:"onImageLoad",value:function(){this.options.channelName&&o.Radio.channel(this.options.channelName).trigger("thumbnail:load")}},{key:"viewOptions",value:function(){var e=this.model.get("duration");return{styles:k.a,url:g.legacyCreateThumbnailUrl(this.model.get("thumbnail"),this.options.thumbnailOptions),duration:e&&w(e),playSvg:c.a.getSvg(c.b.Play),playIcon:this.options.playIcon,lazyload:this.options.lazyload}}},{key:"onRender",value:function(){if(o.Radio.channel(a.a.LAZY_LOAD).trigger("update:loader"),this.options.lazyload&&this.options.channelName){var e=this.getUI("img");e.length&&(e[0].onload=r.bind(this.onImageLoad,this))}}}])&&R(t.prototype,n),i&&R(t,i),s}(i.a.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(189),o=n(0);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,e);var t=u(n);function n(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return a(this,n),t.call(this,{collectionPrefix:"".concat(o.f.VIDEOS,":collection"),id:e,sort:r,cursor:i})}return n}(r.a)},function(e,t,n){"use strict";var r,o,i,a;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),function(e){e.Small="small",e.Medium="medium",e.Large="large"}(r||(r={})),function(e){e[e.Thumbnails=0]="Thumbnails",e[e.Banners=1]="Banners",e[e.Avatars=2]="Avatars",e[e.Logos=3]="Logos",e[e.Covers=4]="Covers",e[e.Posters=5]="Posters",e[e.TallPosters=6]="TallPosters",e[e.HeroBanners=7]="HeroBanners",e[e.None=99999]="None"}(o||(o={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(i||(i={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(a||(a={}))},function(e,t,n){"use strict";var r=n(36),o=n(3);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f="libraryEditor.errors.folderEmpty",p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(s,e);var t,n,r,i=u(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=i.call(this,"Folder is empty")).action=e,t}return t=s,(n=[{key:"name",get:function(){return"FolderEmptyError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase(f,"folderNoVideosTitle"),text:o.a.getPhrase(f,"folderNoVideosBody",{action:this.action}),buttons:[{text:o.a.getPhrase(f,"close"),className:"btn btn-link",close:!0}]}}}])&&a(t.prototype,n),r&&a(t,r),s}(r.a);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,e);var t,n,r,i=b(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Folder is not empty")}return t=a,(n=[{key:"name",get:function(){return"FolderNotEmptyError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.folderNotEmpty","title"),text:o.a.getPhrase("libraryEditor.errors.folderNotEmpty","instructions"),buttons:[{text:o.a.getPhrase("libraryEditor.errors.folderNotEmpty","close"),className:"btn btn-link",close:!0}]}}}])&&y(t.prototype,n),r&&y(t,r),a}(r.a),w=n(0);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(a,e);var t,n,r,i=k(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Subfolder cannot be added")}return t=a,(n=[{key:"name",get:function(){return"FolderMaxDepthError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.folderMaxDepth","title"),text:o.a.getPhrase("libraryEditor.errors.folderMaxDepth","instructions",{maxDepth:w.s.MAX_FOLDER_DEPTH}),buttons:[{text:o.a.getPhrase("libraryEditor.errors.folderMaxDepth","close"),className:"btn btn-link",close:!0}]}}}])&&O(t.prototype,n),r&&O(t,r),a}(r.a),P=n(40);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(a,e);var t,n,r,i=L(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Folder not found")}return t=a,(n=[{key:"name",get:function(){return"FolderNotFoundError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.folderNotFound","info")}}])&&T(t.prototype,n),r&&T(t,r),a}(P.a);function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return U(this,n)}}function U(e,t){return!t||"object"!==V(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(a,e);var t,n,r,i=M(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"User does not have access to this folder")}return t=a,(n=[{key:"name",get:function(){return"ForbiddenFolderError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.forbiddenFolder","info")}}])&&B(t.prototype,n),r&&B(t,r),a}(P.a),z=n(299);function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q(e);if(t){var o=Q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return K(this,n)}}function K(e,t){return!t||"object"!==q(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(a,e);var t,n,r,i=G(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,"Image too small")).minWidth=e,n.minHeight=t,n}return t=a,(n=[{key:"name",get:function(){return"ImageDimensionsTooSmallError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","title"),text:o.a.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","body",{minWidth:this.minWidth,minHeight:this.minHeight}),buttons:[{text:o.a.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","close"),className:"btn btn-link",close:!0}]}}}])&&W(t.prototype,n),r&&W(t,r),a}(r.a);function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ne(e);if(t){var o=ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return te(this,n)}}function te(e,t){return!t||"object"!==$(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(a,e);var t,n,r,i=ee(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Series not found")}return t=a,(n=[{key:"name",get:function(){return"SeriesNotFound"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.seriesNotFound","title")}}])&&X(t.prototype,n),r&&X(t,r),a}(P.a),oe=n(300);function ie(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ce(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=le(e);if(t){var o=le(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return se(this,n)}}function se(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function le(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}P.a;function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t){return(he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=be(e);if(t){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return de(this,n)}}function de(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function be(e){return(be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&he(e,t)}(a,e);var t,n,r,i=ye(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Library has subscribers so it cannot be deleted")}return t=a,(n=[{key:"name",get:function(){return"LibraryHasSubscribersError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.libraryHasSubscribers","title"),text:o.a.getPhrase("libraryEditor.errors.libraryHasSubscribers","body"),buttons:[{text:o.a.getPhrase("libraryEditor.errors.libraryHasSubscribers","close"),className:"btn btn-link",close:!0}]}}}])&&pe(t.prototype,n),r&&pe(t,r),a}(r.a);function ge(e){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ce(e);if(t){var o=Ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oe(this,n)}}function Oe(e,t){return!t||"object"!==ge(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&we(e,t)}(a,e);var t,n,r,i=Se(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Library is not empty")}return t=a,(n=[{key:"name",get:function(){return"LibraryNotEmptyError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.libraryNotEmpty","title"),text:o.a.getPhrase("libraryEditor.errors.libraryNotEmpty","body"),buttons:[{text:o.a.getPhrase("libraryEditor.errors.libraryNotEmpty","close"),className:"btn btn-link",close:!0}]}}}])&&me(t.prototype,n),r&&me(t,r),a}(r.a);function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Re(e,t){return(Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ae(this,n)}}function Ae(e,t){return!t||"object"!==Ee(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Re(e,t)}(a,e);var t,n,r,i=Pe(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,"Cannot create any more custom libraries.")).libraryCount=e,n.maxCustomLibraries=t,n}return t=a,(n=[{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.maxCustomLibraries","title")}},{key:"description",get:function(){return o.a.getPhrase("libraryEditor.errors.maxCustomLibraries","info",{libraryCount:this.pluralise(this.libraryCount),maxCustomLibraries:this.pluralise(this.maxCustomLibraries)})}},{key:"pluralise",value:function(e){return o.a.getPhrase("libraryEditor.errors.maxCustomLibraries","library",{smartCount:e})}}])&&_e(t.prototype,n),r&&_e(t,r),a}(P.a);n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return R})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return H})),n.d(t,"f",(function(){return z.a})),n.d(t,"g",(function(){return Z})),n.d(t,"k",(function(){return re})),n.d(t,"l",(function(){return oe.a})),n.d(t,"h",(function(){return ve})),n.d(t,"i",(function(){return ke})),n.d(t,"j",(function(){return xe}))},function(e,t,n){"use strict";var r=n(6),o=n(2),i=n(14),a=n(1),c=n(291),u=n(700),s=n.n(u);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(i,e);var t,n,r,o=h(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"template",get:function(){return s.a}},{key:"name",get:function(){return"DialogView"}},{key:"title",get:function(){return!1}},{key:"events",value:function(){this.createClickHandlers();var e={};return a.each(this.options.buttons,(function(t,n){e["click .dialog-button-".concat(n)]="onClickButton".concat(n)})),e}},{key:"behaviors",get:function(){var e=a.map(this.options.buttons,(function(e,t){var n=a.pick(e,["text","type","className","close"]);return n.className+=" dialog-button-".concat(t),n}));return[{behaviorClass:c.e,title:this.options.title,buttons:e}]}},{key:"createClickHandlers",value:function(){var e=this;this.clickHandlersCreated||(a.each(this.options.buttons,(function(t,n){e["onClickButton".concat(n)]=t.success?function(){return e.onDone(t)}:function(){return e.onFail()}})),this.clickHandlersCreated=!0)}},{key:"reject",value:function(){"pending"===this.options.result.state()&&this.options.result.reject()}},{key:"onDone",value:function(e){this.options.result.resolve(e)}},{key:"onFail",value:function(){this.reject()}},{key:"onDestroy",value:function(){this.reject()}}])&&f(t.prototype,n),r&&f(t,r),i}(o.a.View),v=n(0);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return k}));var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(u,e);var t,n,a,c=S(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=c.call(this)).dialogOptions=e,t.dialogOptions.result||(t.dialogOptions.result=$.Deferred()),t}return t=u,(n=[{key:"name",get:function(){return v.x.DialogHelper}},{key:"render",value:function(){var e=this,t=this.dialogOptions.result,n=new b(this.dialogOptions);return r.Radio.channel(i.a.POPUP).trigger(o.a.EventNames.SHOW_POPUP,n),t.always((function(){n.triggerMethod("hide"),e.destroy()}))}}])&&m(t.prototype,n),a&&m(t,a),u}(o.a.Service)},function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var o in n)r[o]=n[o];return r.constructor=t,t.prototype=r,t}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return o}));var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"use",value:function(e){var t;this.go=(t=this.go,function(n,r){return t(n,(function(){return e(n,r)}))})}},{key:"go",value:function(e,t){t(e)}}])&&r(t.prototype,n),o&&r(t,o),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ManageLayout:"ManageLayout"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(36),i=n(3);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.oldVersion",h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,o,a=s(l);function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase(p,"title",{oldVersion:e,newVersion:t}))}return t=l,(n=[{key:"name",get:function(){return"OldVersionError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&c(t.prototype,n),o&&c(t,o),l}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(36),i=n(3);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.authentication",h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,o,a=s(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"AuthenticationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&c(t.prototype,n),o&&c(t,o),l}(o.a)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Staff="staff",e.Learner="learner",e.Unknown="unknown"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),o=n(40),i=n(3);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.forbiddenAccess",h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,o,a=s(l);function l(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(n=a.call(this,i.a.getPhrase(p,"title"))).acceptedRoles=e,n.redirectUrl=t,n}return t=l,(n=[{key:"name",get:function(){return"ForbiddenAccessError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading",{roles:this.getRolesString()})}},{key:"description",get:function(){return i.a.getPhrase(p,"goToClickView",{redirectUrl:this.redirectUrl,linkClasses:"info-link"})}},{key:"getRolesString",value:function(){if(1===this.acceptedRoles.length)return i.a.getPhrase(p,"acceptedRole",{role:this.acceptedRoles[0]});if(2===this.acceptedRoles.length)return i.a.getPhrase(p,"acceptedRoles",{role1:this.acceptedRoles[0],role2:this.acceptedRoles[1]});var e="";return r.each(this.acceptedRoles.slice(0,this.acceptedRoles.length-1),(function(t){e+=i.a.getPhrase(p,"rolesJoin",{role:t})})),"\n ".concat(e," ").concat(i.a.getPhrase(p,"and")," ").concat(this.acceptedRoles[this.acceptedRoles.length-1]).concat(i.a.getPhrase(p,"s"),"\n ")}}])&&c(t.prototype,n),o&&c(t,o),l}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(2),o=n(3);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(s,e);var t,n,r,i=u(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,o.a.getPhrase("shared.notFound","title"))}return t=s,(n=[{key:"name",get:function(){return"NotFoundError"}}])&&a(t.prototype,n),r&&a(t,r),s}(r.a.SilentError)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.NestedModel)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(116);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(l,e);var t,n,o,s=u(l);function l(){return i(this,l),s.apply(this,arguments)}return t=l,(n=[{key:"model",get:function(){return r.a}}])&&a(t.prototype,n),o&&a(t,o),l}(n(2).a.Collection)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(52),o=n(3),i=n(0),a=n(12),c="shared.alerts",u={updatedVideoAlert:function(e){return{heading:o.a.getPhrase(c,"updateVideoHeading"),message:o.a.getPhrase(c,"updateVideoMessage",{videoName:e}),type:r.a.Success}},updatedChaptersAlert:function(e){return{heading:o.a.getPhrase(c,"updateChaptersHeading"),message:o.a.getPhrase(c,"updateChaptersMessage",{videoName:e}),type:r.a.Success}},moveVideoAlert:function(e,t,n,u,s){return{heading:o.a.getPhrase(c,"moveVideoHeading",{smartCount:u}),message:o.a.getPhrase(c,"moveVideoMessage",{smartCount:u,sourceFolder:a.w.escapeExpression(e),destinationFolder:a.w.escapeExpression(t),videoName:a.w.escapeExpression(s)}),type:r.a.Success,appLinkText:o.a.getPhrase(c,"appLink",{destinationFolder:t}),appLink:{application:i.b.LIBRARY_EDITOR,action:i.a.LibraryEditor.FOLDER,args:[n]}}},addVideoToLibraryAlert:function(e,t){var n=e.get("name"),u=t.get("name");return{heading:o.a.getPhrase(c,"addVideoHeading"),message:o.a.getPhrase(c,"addVideoMessage",{videoName:a.w.escapeExpression(n),folderName:a.w.escapeExpression(u)}),type:r.a.Success,appLinkText:o.a.getPhrase(c,"appLink",{destinationFolder:u}),appLink:{application:i.b.LIBRARY_EDITOR,action:i.a.LibraryEditor.FOLDER,args:[t.get("id")]}}}}},function(e,t,n){"use strict";var r,o=n(2),i=n(3),a=n(294);!function(e){e[e.Notifications=0]="Notifications"}(r||(r={}));var c=n(5),u=n(43),s=n(248),l=n.n(s);var f,p,h,y,d,b=(f={},p=r.Notifications,h=function(e){var t={imageUrl:c.a.getInstance(u.a.NOTIFICATIONS).notificationsEmptyStateUrl,heading:e.options.componentOptions.noNotificationsText,customClass:"".concat(l.a.paddedContainer," ").concat(e.options.componentOptions.customClass),customImageClass:"sm"===e.options.componentOptions.imageSize?l.a.imageSmall:l.a.imageLarge};return c.a.releaseInstance(u.a.NOTIFICATIONS),t},p in f?Object.defineProperty(f,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[p]=h,f),v=n(6),g=n(29),m=n(15),w=n(24),S=n(156),O=n(121),C=n(239),k=n(76),E=n(1),_=n(465);function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(){return c.a.getInstance(u.a.NOTIFICATIONS,this)}function T(e,t){return e===d.Module?function(e,t){var n=A();return t===y.ContentUpdates?n.appLinks.pastReleases:t===y.LibraryReview?n.appLinks.awaitingReview:void 0}(0,t):e===d.Video?function(e,t){return Object.assign(Object.assign({},A().appLinks.videoDetails),{args:[t,""]})}(0,t):e===d.StaffRequest?function(e,t){return Object.assign(Object.assign({},A().appLinks.editStaffRequest),{args:[t],params:{referrer:_.a.Notification}})}(0,t):void 0}!function(e){e.LibraryReview="libraryreview",e.ContentUpdates="newcontent"}(y||(y={})),function(e){e.Video="video",e.Url="url",e.Module="module",e.App="app",e.StaffRequest="staff_request"}(d||(d={}));var x=function(e){return E.contains(A().notificationTypesWithAppLinks,e)},L=function(e,t){if(e&&t){var n=R(e.split(":"),2);return T(n[0],n[1])}},j=n(283),N=n.n(j),I=n(711),V=n.n(I);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H(e);if(t){var o=H(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return F(this,n)}}function F(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z,q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(i,e);var t,n,r,o=U(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:notificationStatus",this.updateReadStatus)}},{key:"name",get:function(){return"NotificationItemComponent"}},{key:"template",get:function(){return V.a}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.getAppLink()?{}:{href:this.model.get("link"),target:"_blank"}}},{key:"className",get:function(){return"notification ".concat(N.a.item," px-1 py-2 ").concat(this.getReadStatus())}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){return v.Radio.channel(w.a.NOTIFICATIONS).trigger(C.a.Read,this.model.get("id")),this.model.set("notificationStatus",O.a.Read),!0}},{key:"appLinks",get:function(){var e=this.getAppLink();return e?{"[this]":e}:{}}},{key:"getAppLink",value:function(){var e=this.model.get("appLink");if(!e)return null;var t=this.model.get("notificationType");return x(t)?L(e,t):null}},{key:"updateReadStatus",value:function(){this.$el.removeClass("unread read").addClass(this.getReadStatus())}},{key:"getReadStatus",value:function(){switch(this.model.get("notificationStatus")){case O.a.Read:return"read";default:case O.a.Received:return"unread"}}},{key:"viewOptions",value:function(){var e=S.a.getIconColorByNotificationType(this.model.get("notificationType"))||S.a.getIconColor(this.model.get("alertType")),t=S.a.getIconByNotificationType(this.model.get("notificationType"))||S.a.getIcon(this.model.get("alertType"));return{content:this.model.get("body")||this.model.get("name"),notificationTime:g(this.model.get("dateCreated")).fromNow(),icon:m.a.getSvg(t),iconClass:"text-".concat(e),styles:N.a,showActionText:this.options.showActionText&&this.model.get("alertType")!==k.a.Warning,actionText:S.a.getNotificationAction(this.model.get("notificationType"))}}}])&&D(t.prototype,n),r&&D(t,r),i}(o.a.Component),W=n(712),Y=n.n(W);function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t,n){return t&&Q(e.prototype,t),n&&Q(e,n),e}function $(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return z})),n.d(t,"b",(function(){return re})),function(e){e[e.Default=0]="Default",e[e.Popover=1]="Popover"}(z||(z={}));var ne=function(e){$(n,e);var t=J(n);function n(e){return K(this,n),t.call(this,e)}return Z(n,[{key:"name",get:function(){return"NotificationComponentCollection"}},{key:"className",get:function(){return this.options.isPopover&&"popover-list-body-sm"}},{key:"childView",get:function(){return q}},{key:"childViewOptions",get:function(){return{showActionText:!this.options.isPopover}}}]),n}(o.a.ComponentCollection),re=function(e){$(n,e);var t=J(n);function n(e){return K(this,n),t.call(this,e)}return Z(n,[{key:"name",get:function(){return"NotificationListComponent"}},{key:"template",get:function(){return Y.a}},{key:"lang",get:function(){return"notifications.notificationList"}},{key:"regions",value:function(){return{notifications:{el:".notifications-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,region:"notifications",type:r.Notifications,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:b}]}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.isPopover?{customClass:"px-0 py-3",imageSize:"sm",noNotificationsText:i.a.getPhrase(this.lang,"noNotifications")}:{noNotificationsText:i.a.getPhrase(this.lang,"noNotifications")}}},{key:"onRender",value:function(){this.showChildView("notifications",new ne(this.options))}}]),n}(o.a.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ANALYTICS:"global:analytics"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(r||(r={}))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(u,e);var t,n,r,c=a(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"shouldLog",value:function(e){return!0}},{key:"log",value:function(e){}},{key:"isType",value:function(e){return e===u.type}}])&&o(t.prototype,n),r&&o(t,r),u}(n(2).a.Service);s.type="BaseAnalyticsClient"},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.FileSelect="file-select",e.DragDrop="drag-drop"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(r||(r={}))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(5),o=n(22),i={libraries:{dataServiceName:o.a.Library,eventName:"libraries:sync",getData:function(e){return e.getLibraries()},getInstance:function(e){return r.a.getInstance(o.a.Library,e)},beforeOnBeforeRender:!0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(80),o=n(86);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"model",get:function(){return o.d}},{key:"parse",value:function(e){return e.data||e}}])&&c(t.prototype,n),r&&c(t,r),l}(r.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),o={isFileDrag:function(e){return e&&e.originalEvent&&e.originalEvent.dataTransfer&&e.originalEvent.dataTransfer.types&&r.any(e.originalEvent.dataTransfer.types,(function(e){return"Files"===e}))}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Read="notification:read"}(r||(r={}))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return l}));var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,e);var t,n,r,u=c(s);function s(){return o(this,s),u.apply(this,arguments)}return t=s,(n=[{key:"name",get:function(){return"AlertError"}}])&&i(t.prototype,n),r&&i(t,r),s}(n(2).a.SilentError)},function(e,t,n){"use strict";var r=n(476);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(502);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(568);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(570);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(584);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(640);n.d(t,"BaseNotificationsAppVariables",(function(){return u.a})),n.d(t,"BaseSearchAppVariables",(function(){return u.b}));n(592),n(593),n(594),n(200),n(595),n(596),n(597)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=c(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return g}));var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(i,e);var t,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return l}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=c(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return g}));var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(i,e);var t,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return l}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){"use strict";var r;!function(e){e[e.Approved=1]="Approved",e[e.Pending=2]="Pending",e[e.Rejected=3]="Rejected"}(r||(r={})),n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="row mx-0">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnailContainer:i,t))+' partial-loading-background pr-0 my-3"></div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.metaContainer:i,t))+' pl-3 my-3">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.titleContainer:i,t))+' partial-loading-background"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={list:"_35CAt",item:"_1r5u9",title:"_1ttnP",requestedBy:"_3Tq3M",date:"_33-LZ"}},function(e,t,n){e.exports={notificationIcon:"_3SkbQ",light:"_2TvQg",dark:"_3taGb",unreadCount:"_1u6ig"}},function(e,t,n){e.exports={paddedContainer:"_1cCVc",imageLarge:"_3Wy1u",imageSmall:"_3t8Qq"}},function(e,t,n){e.exports={selectionContainer:"_3m62c",svgContainer:"_1XxEl"}},function(e,t,n){e.exports={svgContainer:"ecsrN",tip:"IwYkF",termContainer:"_1BqAi",term:"_1NEsr"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return b})),n.d(t,"a",(function(){return v}));var r=n(1),o=n(6),i=n(2),a=n(12),c=n(698),u=n.n(c);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d={ShowSpinner:"show:spinner",HideSpinner:"hide:spinner",ToggleSpinner:"toggle:spinner",Enable:"enable",Disable:"disable",ManageDimensions:"manage:dimensions"},b={ShowSpinner:"showSpinner",Disabled:"disabled"},v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(h,e);var t,n,c,s=p(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),s.call(this,e)}return t=h,(n=[{key:"name",get:function(){return"SpinnerButtonComponent"}},{key:"tagName",get:function(){return"button"}},{key:"attributes",get:function(){return{type:this.options.buttonType}}},{key:"template",get:function(){return u.a}},{key:"className",get:function(){var e="btn",t=this.options.extraButtonClass||"";return this.model&&this.model.get("disabled")&&(e="".concat(e," disabled")),"".concat(e," ").concat(t)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"defaults",get:function(){return{showSpinner:!1,detectWidth:!0,detectHeight:!0,buttonText:"Submit",buttonType:"button",preventMultiClick:!0,spinnerOptions:{size:a.s.Small,extraClasses:"mx-auto"}}}},{key:"initialize",value:function(){this.model||(this.model=new i.a.Model({showSpinner:this.options.showSpinner,disabled:this.options.disabled})),this.bindSpinnerListeners(),this.bindDisableListeners(),this.listenTo(this.model,"change:".concat(b.ShowSpinner),this.render),this.listenTo(this.model,"change:".concat(b.Disabled),this.render)}},{key:"bindSpinnerListeners",value:function(){this.listenTo(this,d.ShowSpinner,this.showSpinner),this.listenTo(this,d.HideSpinner,this.hideSpinner),this.listenTo(this,d.ToggleSpinner,this.toggleSpinner),this.listenTo(this,d.ManageDimensions,this.manageDimensions),this.options.channelName&&(this.listenTo(this.options.channelName,d.ShowSpinner,this.showSpinner),this.listenTo(this.options.channelName,d.HideSpinner,this.hideSpinner),this.listenTo(this.options.channelName,d.ToggleSpinner,this.toggleSpinner))}},{key:"bindDisableListeners",value:function(){this.listenTo(this,d.Enable,this.enableButton),this.listenTo(this,d.Disable,this.disableButton),this.options.channelName&&(this.listenTo(this.options.channelName,d.Enable,this.enableButton),this.listenTo(this.options.channelName,d.Disable,this.disableButton))}},{key:"getButtonText",value:function(){return r.isFunction(this.options.buttonText)?this.options.buttonText():this.options.buttonText}},{key:"getTooltipOptions",value:function(){var e=this.options.tooltip;return r.isFunction(e)?e():e}},{key:"onClick",value:function(e){if(e.preventDefault(),!(this.options.disabled||this.model.get(b.Disabled)||this.model.get(b.ShowSpinner)))return o.Radio.channel(this.options.channelName).trigger(this.options.saveEvent),!1}},{key:"toggleSpinner",value:function(){this.model.get("showSpinner")?this.hideSpinner():this.showSpinner()}},{key:"showSpinner",value:function(){this.model.set("showSpinner",!0)}},{key:"hideSpinner",value:function(){this.model.set("showSpinner",!1)}},{key:"enableButton",value:function(){this.model.set("disabled",!1)}},{key:"disableButton",value:function(){this.model.set("disabled",!0)}},{key:"manageDimensions",value:function(){this.isAttached()&&(this.model.get("showSpinner")?this.applyDimensions():this.storeDimensions())}},{key:"storeDimensions",value:function(){this.options.detectWidth&&this.model.set("buttonWidth",this.$el.outerWidth()),this.options.detectHeight&&this.model.set("buttonHeight",this.$el.outerHeight())}},{key:"applyDimensions",value:function(){this.options.detectWidth&&this.model.get("buttonWidth")&&this.$el.css({width:this.model.get("buttonWidth")+"px"}),this.options.detectHeight&&this.model.get("buttonHeight")&&this.$el.css({height:this.model.get("buttonHeight")+"px"})}},{key:"renderTooltip",value:function(){var e=this.getTooltipOptions();r.isUndefined(e)||r.isEmpty(e)?this.$el.tooltip("dispose"):this.$el.tooltip(e)}},{key:"viewOptions",value:function(){var e={buttonText:this.getButtonText()};if(!this.model.get("showSpinner"))return e;var t=this.options.spinnerOptions||{};return r.extend(e,{spinnerEl:a.r.getSpinner(t)})}},{key:"onAttach",value:function(){this.manageDimensions()}},{key:"onRender",value:function(){this.resetClassName(),this.manageDimensions(),this.renderTooltip()}},{key:"onBeforeDestroy",value:function(){this.getTooltipOptions()&&this.$el.tooltip("dispose")}}])&&l(t.prototype,n),c&&l(t,c),h}(i.a.Component)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Customer=1]="Customer",e[e.ClickView=2]="ClickView"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),o=n(51),i=n(55),a=n(11);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,o,c=f(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),t=c.call(this,e),r.result(h(t),"name")||a.c.throw(new a.b("Error: View with cid:".concat(t.cid," requires a name."))),t}return t=p,(n=[{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(y(p.prototype),"listenTo",this))}}])&&u(t.prototype,n),o&&u(t,o),p}(o.CollectionView)},function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var r=n(348),o=n(195),i=(0,r.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,o.inherits)(i,(0,r.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var c=a(),u=a("@"),s=a(":"),l=a("."),f=a(),p=a(),h=a("\n"),y=a(),d=a("+"),b=a("#"),v=a(),g=a("mailto:"),m=a("?"),w=a("/"),S=a("_"),O=a(),C=a(),k=a(),E=a("{"),_=a("["),R=a("<"),P=a("("),A=a("}"),T=a("]"),x=a(">"),L=a(")"),j=a("&");t.Base=i,t.DOMAIN=c,t.AT=u,t.COLON=s,t.DOT=l,t.PUNCTUATION=f,t.LOCALHOST=p,t.NL=h,t.NUM=y,t.PLUS=d,t.POUND=b,t.QUERY=m,t.PROTOCOL=v,t.MAILTO=g,t.SLASH=w,t.UNDERSCORE=S,t.SYM=O,t.TLD=C,t.WS=k,t.OPENBRACE=E,t.OPENBRACKET=_,t.OPENANGLEBRACKET=R,t.OPENPAREN=P,t.CLOSEBRACE=A,t.CLOSEBRACKET=T,t.CLOSEANGLEBRACKET=x,t.CLOSEPAREN=L,t.AMPERSAND=j},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports={statusBar:"_3qlXe",statusBarMessage:"_1ul9Z",button:"_3HS1V"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+' partial-loading-background"></div><div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={content:"_3KP84",notificationTime:"_1MR01",icon:"_1GUmS",contentContainer:"_34ETn"}},function(e,t,n){e.exports={actions:"_1cCHt",badge:"_2x-so",button:"_2y4ng",selectButton:"_1uCMl"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.filterButton:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={filterButton:"_10tNq"}},function(e,t,n){e.exports={container:"_11___",input:"_3RRYx"}},function(e,t,n){e.exports={item:"_3CmnQ",icon:"YYvWW",contentContainer:"_1w1Jg",notificationTime:"_11n-Y",content:"_3JkbY",actionText:"_3D1fr"}},function(e,t,n){e.exports={coverImage:"_1_Tx-",coverContainer:"_3Qf-6",textContainer:"_34VXV"}},function(e,t,n){e.exports={searchIcons:"_17ill",searchSvgContainer:"_1-crd",searchInput:"_1qca6",searchBar:"_3XQHi"}},function(e,t,n){e.exports={avatar:"_1SfF-",arrow:"_2C5x6",popoverOffset:"_3FIw8"}},function(e,t,n){e.exports={progressDropdown:"_3mx9H",upload:"t6ngq",uploadButtonSvg:"_35apo"}},function(e,t,n){e.exports={progressInfo:"_1fkFK",svgContainer:"_2uMkl",itemCount:"_1oXJj"}},function(e,t,n){e.exports={active:"_3fIrz",icon:"_1RDxv"}},function(e,t,n){"use strict";(function(e){var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){r(this,e)}return t(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t,a=!0,c=0;for(i=a?i:i[Symbol.iterator]();;){var u;if(a){if(c>=i.length)break;u=i[c++]}else{if((c=i.next()).done)break;u=c.value}var s=u;s.apply(this,r)}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var r=0;r<n.length;r++){var o=n[r];if(o===t){n.splice(r,1);break}}return this}}]),e}(),i=function(e){function i(e,t){r(this,i);var o,a=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this)),c=void 0;if(a.element=e,a.version=i.version,a.defaultOptions.previewTemplate=a.defaultOptions.previewTemplate.replace(/\n*/g,""),a.clickableElements=[],a.listeners=[],a.files=[],"string"==typeof a.element&&(a.element=document.querySelector(a.element)),!a.element||null==a.element.nodeType)throw new Error("Invalid dropzone element.");if(a.element.dropzone)throw new Error("Dropzone already attached.");i.instances.push(a),a.element.dropzone=a;var u,s=null!=(o=i.optionsForElement(a.element))?o:{};if(a.options=i.extend({},a.defaultOptions,s,null!=t?t:{}),a.options.forceFallback||!i.isBrowserSupported())return u=a.options.fallback.call(a),n(a,u);if(null==a.options.url&&(a.options.url=a.element.getAttribute("action")),!a.options.url)throw new Error("No URL provided.");if(a.options.acceptedFiles&&a.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(a.options.uploadMultiple&&a.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return a.options.acceptedMimeTypes&&(a.options.acceptedFiles=a.options.acceptedMimeTypes,delete a.options.acceptedMimeTypes),null!=a.options.renameFilename&&(a.options.renameFile=function(e){return a.options.renameFilename.call(a,e.name,e)}),a.options.method=a.options.method.toUpperCase(),(c=a.getExistingFallback())&&c.parentNode&&c.parentNode.removeChild(c),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=i.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=i.getElements(a.options.clickable,"clickable")),a.init(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),t(i,null,[{key:"initClass",value:function(){this.prototype.Emitter=o,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var t=0,n=n=this.element.getElementsByTagName("div");;){if(t>=n.length)break;var r=n[t++];if(/(^| )dz-message($| )/.test(r.className)){e=r,r.className="dz-message";break}}e||(e=i.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var o=e.getElementsByTagName("span")[0];return o&&(null!=o.textContent?o.textContent=this.options.dictFallbackMessage:null!=o.innerText&&(o.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var o={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},i=e.width/e.height;null==t&&null==n?(t=o.srcWidth,n=o.srcHeight):null==t?t=n*i:null==n&&(n=t/i);var a=(t=Math.min(t,o.srcWidth))/(n=Math.min(n,o.srcHeight));if(o.srcWidth>t||o.srcHeight>n)if("crop"===r)i>a?(o.srcHeight=e.height,o.srcWidth=o.srcHeight*a):(o.srcWidth=e.width,o.srcHeight=o.srcWidth/a);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");i>a?n=t/i:t=n*i}return o.srcX=(e.width-o.srcWidth)/2,o.srcY=(e.height-o.srcHeight)/2,o.trgWidth=t,o.trgHeight=n,o},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=i.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-name]");;){if(n>=r.length)break;var o=r[n++];o.textContent=e.name}for(var a=0,c=c=e.previewElement.querySelectorAll("[data-dz-size]");!(a>=c.length);)(o=c[a++]).innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=i.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var u=function(n){return n.preventDefault(),n.stopPropagation(),e.status===i.UPLOADING?i.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?i.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},s=0,l=l=e.previewElement.querySelectorAll("[data-dz-remove]");;){if(s>=l.length)break;l[s++].addEventListener("click",u)}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-thumbnail]");;){if(n>=r.length)break;var o=r[n++];o.alt=e.name,o.src=t}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-errormessage]");;){if(n>=r.length)break;r[n++].textContent=t}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var r=0,o=o=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");;){if(r>=o.length)break;var i=o[r++];"PROGRESS"===i.nodeName?i.value=t:i.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n,i=!0,a=0;for(o=i?o:o[Symbol.iterator]();;){var c;if(i){if(a>=o.length)break;c=o[a++]}else{if((a=o.next()).done)break;c=a.value}var u=c;for(var s in u){var l=u[s];e[s]=l}}return e}}]),t(i,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(e){return e.accepted})).map((function(e){return e}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(e){return!e.accepted})).map((function(e){return e}))}},{key:"getFilesWithStatus",value:function(e){return this.files.filter((function(t){return t.status===e})).map((function(e){return e}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(i.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(i.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(i.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===i.UPLOADING||e.status===i.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(i.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length){!function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",i.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var n=e.hiddenFileInput.files;if(n.length)for(var r=0,o=o=n;;){if(r>=o.length)break;var i=o[r++];e.addFile(i)}return e.emit("addedfiles",n),t()}))}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=0,n=n=this.events;;){if(t>=n.length)break;var r=n[t++];this.on(r,this.options[r])}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var o=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return o(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",o(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return o(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||i.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,i.instances.splice(i.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var r=0,o=o=this.getActiveFiles();;){if(r>=o.length)break;var i=o[r++];t+=i.upload.bytesSent,n+=i.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t=void 0;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var r=i.createElement(n);return"FORM"!==this.element.tagName?(t=i.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(r):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:r}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];if(/(^| )fallback($| )/.test(r.className))return r}},t=["div","form"],n=0;n<t.length;n++){var r,o=t[n];if(r=e(this.element.getElementsByTagName(o)))return r}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.removeEventListener(n,r,!1))}return t}()}))}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach((function(e){return e.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(t){return e.cancelUpload(t)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(e){return e.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var r=["tb","gb","mb","kb","b"],o=0;o<r.length;o++){var i=r[o];if(e>=Math.pow(this.options.filesizeBase,4-o)/10){t=e/Math.pow(this.options.filesizeBase,4-o),n=i;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(this.emit("addedfiles",t),t.length){var r=e.dataTransfer.items;r&&r.length&&null!=r[0].webkitGetAsEntry?this._addFilesFromItems(r):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,n=function(e){return e.items},null!=t?n(t):void 0)){var t,n;this.emit("paste",e);var r=e.clipboardData.items;return r.length?this._addFilesFromItems(r):void 0}}},{key:"handleFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.addFile(r)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],r=0,o=o=e;;){if(r>=o.length)break;var i,a=o[r++];null!=a.webkitGetAsEntry&&(i=a.webkitGetAsEntry())?i.isFile?n.push(t.addFile(a.getAsFile())):i.isDirectory?n.push(t._addFilesFromDirectory(i,i.name)):n.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?n.push(t.addFile(a.getAsFile())):n.push(void 0)}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,r=e.createReader(),o=function(e){return t=console,n="log",r=function(t){return t.log(e)},null!=t&&"function"==typeof t[n]?r(t,n):void 0;var t,n,r};return function e(){return r.readEntries((function(r){if(r.length>0){for(var o=0,i=i=r;;){if(o>=i.length)break;var a=i[o++];a.isFile?a.file((function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)})):a.isDirectory&&n._addFilesFromDirectory(a,t+"/"+a.name)}e()}return null}),o)}()}},{key:"accept",value:function(e,t){return this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):i.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;return e.upload={uuid:i.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=i.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.enqueueFile(r)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==i.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=i.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return t.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((function(){return t._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===i.UPLOADING&&this.cancelUpload(e),this.files=a(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var t=0,n=n=this.files.slice();;){if(t>=n.length)break;var r=n[t++];(r.status!==i.UPLOADING||e)&&this.removeFile(r)}return null}},{key:"resizeImage",value:function(e,t,n,r,o){var a=this;return this.createThumbnail(e,t,n,r,!0,(function(t,n){if(null==n)return o(e);var r=a.options.resizeMimeType;null==r&&(r=e.type);var c=n.toDataURL(r,a.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(c=s.restore(e.dataURL,c)),o(i.dataURItoBlob(c))}))}},{key:"createThumbnail",value:function(e,t,n,r,o,i){var a=this,c=new FileReader;return c.onload=function(){if(e.dataURL=c.result,"image/svg+xml"!==e.type)return a.createThumbnailFromUrl(e,t,n,r,o,i);null!=i&&i(c.result)},c.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,r,o,i,a){var c=this,s=document.createElement("img");return a&&(s.crossOrigin=a),s.onload=function(){var a=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&o&&(a=function(e){return EXIF.getData(s,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),a((function(o){e.width=s.width,e.height=s.height;var a=c.options.resize.call(c,e,t,n,r),l=document.createElement("canvas"),f=l.getContext("2d");switch(l.width=a.trgWidth,l.height=a.trgHeight,o>4&&(l.width=a.trgHeight,l.height=a.trgWidth),o){case 2:f.translate(l.width,0),f.scale(-1,1);break;case 3:f.translate(l.width,l.height),f.rotate(Math.PI);break;case 4:f.translate(0,l.height),f.scale(1,-1);break;case 5:f.rotate(.5*Math.PI),f.scale(1,-1);break;case 6:f.rotate(.5*Math.PI),f.translate(0,-l.width);break;case 7:f.rotate(.5*Math.PI),f.translate(l.height,-l.width),f.scale(-1,1);break;case 8:f.rotate(-.5*Math.PI),f.translate(-l.height,0)}u(f,s,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var p=l.toDataURL("image/png");if(null!=i)return i(p,l)}))},null!=i&&(s.onerror=i),s.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];r.processing=!0,r.status=i.UPLOADING,this.emit("processing",r)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter((function(t){return t.xhr===e})).map((function(e){return e}))}},{key:"cancelUpload",value:function(e){if(e.status===i.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),n=0,r=r=t;;){if(n>=r.length)break;r[n++].status=i.CANCELED}void 0!==e.xhr&&e.xhr.abort();for(var o=0,a=a=t;;){if(o>=a.length)break;var c=a[o++];this.emit("canceled",c)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==i.ADDED&&e.status!==i.QUEUED||(e.status=i.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(n){if(e[0].upload.chunked){var r=e[0],o=n[0];r.upload.chunks=[];var a=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){0;var a=n*t.options.chunkSize,c=Math.min(a+t.options.chunkSize,r.size),u={name:t._getParamName(0),data:o.webkitSlice?o.webkitSlice(a,c):o.slice(a,c),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:u,status:i.UPLOADING,progress:0,retries:0},t._uploadData(e,[u])}};if(r.upload.finishedChunkUpload=function(n){var o=!0;n.status=i.SUCCESS,n.dataBlock=null,n.xhr=null;for(var c=0;c<r.upload.totalChunkCount;c++){if(void 0===r.upload.chunks[c])return a();r.upload.chunks[c].status!==i.SUCCESS&&(o=!1)}o&&t.options.chunksUploaded(r,(function(){t._finished(e,"",null)}))},t.options.parallelChunkUploads)for(var c=0;c<r.upload.totalChunkCount;c++)a();else a()}else{for(var u=[],s=0;s<e.length;s++)u[s]={name:t._getParamName(s),data:n[s],filename:e[s].upload.filename};t._uploadData(e,u)}}))}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){for(var n=this,r=new XMLHttpRequest,o=0,a=a=e;;){if(o>=a.length)break;a[o++].xhr=r}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var c=this.resolveOption(this.options.method,e),u=this.resolveOption(this.options.url,e);r.open(c,u,!0),r.timeout=this.resolveOption(this.options.timeout,e),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){n._finishedUploading(e,r,t)},r.onerror=function(){n._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return n._updateFilesUploadProgress(e,r,t)};var s={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var l in this.options.headers&&i.extend(s,this.options.headers),s){var f=s[l];f&&r.setRequestHeader(l,f)}var p=new FormData;if(this.options.params){var h=this.options.params;for(var y in"function"==typeof h&&(h=h.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null)),h){var d=h[y];p.append(y,d)}}for(var b=0,v=v=e;;){if(b>=v.length)break;var g=v[b++];this.emit("sending",g,r,p)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,p),this._addFormElementData(p);for(var m=0;m<t.length;m++){var w=t[m];p.append(w.name,w.data,w.filename)}this.submitRequest(r,p,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,r=[],o=0,i=function(i){n.options.transformFile.call(n,e[i],(function(n){r[i]=n,++o===e.length&&t(r)}))},a=0;a<e.length;a++)i(a)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=0,n=n=this.element.querySelectorAll("input, textarea, select, button");;){if(t>=n.length)break;var r=n[t++],o=r.getAttribute("name"),i=r.getAttribute("type");if(i&&(i=i.toLowerCase()),null!=o)if("SELECT"===r.tagName&&r.hasAttribute("multiple"))for(var a=0,c=c=r.options;;){if(a>=c.length)break;var u=c[a++];u.selected&&e.append(o,u.value)}else(!i||"checkbox"!==i&&"radio"!==i||r.checked)&&e.append(o,r.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,e[0].upload.chunked){var o=e[0],i=this._getChunk(o,t);i.progress=r,i.total=n.total,i.bytesSent=n.loaded;o.upload.progress=0,o.upload.total=0,o.upload.bytesSent=0;for(var a=0;a<o.upload.totalChunkCount;a++)void 0!==o.upload.chunks[a]&&void 0!==o.upload.chunks[a].progress&&(o.upload.progress+=o.upload.chunks[a].progress,o.upload.total+=o.upload.chunks[a].total,o.upload.bytesSent+=o.upload.chunks[a].bytesSent);o.upload.progress=o.upload.progress/o.upload.totalChunkCount}else for(var c=0,u=u=e;;){if(c>=u.length)break;var s=u[c++];s.upload.progress=r,s.upload.total=n.total,s.upload.bytesSent=n.loaded}for(var l=0,f=f=e;;){if(l>=f.length)break;var p=f[l++];this.emit("uploadprogress",p,p.upload.progress,p.upload.bytesSent)}}else{var h=!0;r=100;for(var y=0,d=d=e;;){if(y>=d.length)break;var b=d[y++];100===b.upload.progress&&b.upload.bytesSent===b.upload.total||(h=!1),b.upload.progress=r,b.upload.bytesSent=b.upload.total}if(h)return;for(var v=0,g=g=e;;){if(v>=g.length)break;var m=g[v++];this.emit("uploadprogress",m,r,m.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,n){var r=void 0;if(e[0].status!==i.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(r=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(e){n=e,r="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,r,n):this._handleUploadError(e,t,r)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==i.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(e[0],t);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var o=0,a=a=e;;){if(o>=a.length)break;a[o++];this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){for(var r=0,o=o=e;;){if(r>=o.length)break;var a=o[r++];a.status=i.SUCCESS,this.emit("success",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){for(var r=0,o=o=e;;){if(r>=o.length)break;var a=o[r++];a.status=i.ERROR,this.emit("error",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value: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)}))}}]),i}(o);i.initClass(),i.version="5.5.1",i.options={},i.optionsForElement=function(e){return e.getAttribute("id")?i.options[c(e.getAttribute("id"))]:void 0},i.instances=[],i.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},i.autoDiscover=!0,i.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],r=0,o=o=t;;){if(r>=o.length)break;var i=o[r++];/(^| )dropzone($| )/.test(i.className)?n.push(e.push(i)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=0,r=r=e;;){if(n>=r.length)break;var o=r[n++];!1!==i.optionsForElement(o)?t.push(new i(o)):t.push(void 0)}return t}()},i.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],i.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=0,n=n=i.blacklistedBrowsers;;){if(t>=n.length)break;n[t++].test(navigator.userAgent)&&(e=!1)}else e=!1;else e=!1;return e},i.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r),i=0,a=t.length,c=0<=a;c?i<=a:i>=a;c?i++:i--)o[i]=t.charCodeAt(i);return new Blob([r],{type:n})};var a=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},c=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};i.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},i.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},i.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},i.getElements=function(e,t){var n=void 0,r=void 0;if(e instanceof Array){r=[];try{for(var o=0,i=i=e;!(o>=i.length);)n=i[o++],r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e){r=[];for(var a=0,c=c=document.querySelectorAll(e);!(a>=c.length);)n=c[a++],r.push(n)}else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},i.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},i.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,r=n.replace(/\/.*$/,""),o=0,i=i=t;;){if(o>=i.length)break;var a=i[o++];if("."===(a=a.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new i(this,e)}))}),null!==e?e.exports=i:window.Dropzone=i,i.ADDED="added",i.QUEUED="queued",i.ACCEPTED=i.QUEUED,i.UPLOADING="uploading",i.PROCESSING=i.UPLOADING,i.CANCELED="canceled",i.ERROR="error",i.SUCCESS="success";var u=function(e,t,n,r,o,i,a,c,u,s){var l=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var r=n.getContext("2d");r.drawImage(e,0,0);for(var o=r.getImageData(1,0,1,t).data,i=0,a=t,c=t;c>i;){0===o[4*(c-1)+3]?a=c:i=c,c=a+i>>1}var u=c/t;return 0===u?1:u}(t);return e.drawImage(t,n,r,o,i,a,c,u,s/l)},s=function(){function e(){r(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,r=void 0,o="",i=void 0,a=void 0,c=void 0,u="",s=0;i=(n=e[s++])>>2,a=(3&n)<<4|(r=e[s++])>>4,c=(15&r)<<2|(o=e[s++])>>6,u=63&o,isNaN(r)?c=u=64:isNaN(o)&&(u=64),t=t+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(c)+this.KEY_STR.charAt(u),n=r=o="",i=a=c=u="",s<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),o=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(o)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),o=r.indexOf(255,3),i=r.slice(0,o),a=r.slice(o),c=i;return c=(c=c.concat(t)).concat(a)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,o=e.slice(t,r);n.push(o),t=r}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,r="",o=void 0,i=void 0,a="",c=0,u=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(c++))<<2|(o=this.KEY_STR.indexOf(e.charAt(c++)))>>4,n=(15&o)<<4|(i=this.KEY_STR.indexOf(e.charAt(c++)))>>2,r=(3&i)<<6|(a=this.KEY_STR.indexOf(e.charAt(c++))),u.push(t),64!==i&&u.push(n),64!==a&&u.push(r),t=n=r="",o=i=a="",c<e.length;);return u}}]),e}();s.initClass();i._autoDiscoverFunction=function(){if(i.autoDiscover)return i.discover()},function(e,t){var n=!1,r=!0,o=e.document,i=o.documentElement,a=o.addEventListener?"addEventListener":"attachEvent",c=o.addEventListener?"removeEventListener":"detachEvent",u=o.addEventListener?"":"on",s=function r(i){if("readystatechange"!==i.type||"complete"===o.readyState)return("load"===i.type?e:o)[c](u+i.type,r,!1),!n&&(n=!0)?t.call(e,i.type||i):void 0};if("complete"!==o.readyState){if(o.createEventObject&&i.doScroll){try{r=!e.frameElement}catch(e){}r&&function e(){try{i.doScroll("left")}catch(t){return void setTimeout(e,50)}return s("poll")}()}o[a](u+"DOMContentLoaded",s,!1),o[a](u+"readystatechange",s,!1),e[a](u+"load",s,!1)}}(window,i._autoDiscoverFunction)}).call(this,n(767)(e))},function(e,t,n){"use strict";var r=n(6),o=n(2),i=n(0),a=n(12),c=n(193),u=n(301),s=n(44),l=n(180);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(v,e);var t,n,f,b=d(v);function v(){return p(this,v),b.apply(this,arguments)}return t=v,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,s.a.FILES_SELECTED,this.onFilesSelected)}},{key:"behaviors",get:function(){return[{behaviorClass:u.a,buttonSelector:this.options.buttonSelector,channelName:this.options.channelName,acceptMultiple:!1,mimeType:l.b.IMAGES}]}},{key:"onFilesSelected",value:function(e){var t=this;!e&&e.length||(this.reader=new FileReader,this.reader.addEventListener("load",(function(){return t.onReaderLoad()})),this.reader.readAsDataURL(e[0]))}},{key:"onReaderLoad",value:function(){var e=this,t=new Image;t.src=this.reader.result;var n=i.k[this.options.imageType].width,r=i.k[this.options.imageType].height;t.addEventListener("load",(function(){e.isImageValid(t)?e.isImageLowQuality(t)?e.onImageLowQuality(t):e.onImageLoad(t):e.onImageTooSmall(n,r)}))}},{key:"onImageLowQuality",value:function(e){var t=this;r.Radio.channel(this.options.channelName).trigger("image:error"),window.setTimeout((function(){var n=i.m[t.options.imageType];new a.d({title:"Low quality image detected",text:'<p>We\'ve detected a low quality image which may appear stretched or distorted within ClickView.</p>\n <p class="text-muted mb-0"><em>We recommend a size of at least\n '.concat(n.width,"px by ").concat(n.height,"px.</em></p>"),buttons:[{text:"Continue anyway",className:"btn btn-primary",success:!0}]}).render().done((function(){t.onImageLoad(e,!0)}))}),300)}},{key:"onImageTooSmall",value:function(e,t){r.Radio.channel(this.options.channelName).trigger("image:error"),window.setTimeout((function(){o.a.ErrorHelper.throw(new c.g(e,t))}),300)}},{key:"isImageValid",value:function(e){var t=i.k[this.options.imageType].width,n=i.k[this.options.imageType].height;return!(t&&e.width<t||n&&e.height<n)}},{key:"isImageLowQuality",value:function(e){var t=i.m[this.options.imageType];return!!t&&(e.width<t.width||e.height<t.height)}},{key:"onImageLoad",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.options.saveImage(e.src,t),r.Radio.channel(this.options.channelName).trigger("image:load"),this.options.appLink&&o.a.AppLinkHelper.trigger(this.options.appLink)}}])&&h(t.prototype,n),f&&h(t,f),v}(o.a.Behavior);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(a,e);var t,n,o,i=C(a);function a(){return w(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"initialize",value:function(){this.lockLayoutFileDrop()}},{key:"lockLayoutFileDrop",value:function(){r.Radio.channel("file:drop:lock").trigger("lock")}},{key:"unlockLayoutFileDrop",value:function(){r.Radio.channel("file:drop:lock").trigger("unlock")}},{key:"onDestroy",value:function(){this.unlockLayoutFileDrop()}}])&&S(t.prototype,n),o&&S(t,o),a}(o.a.Behavior);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return L(this,n)}}function L(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}(a,e);var t,n,o,i=x(a);function a(){return P(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getModel",value:function(){return this.options.bindViewModel?this.view.viewModel:this.view.model}},{key:"bindModelValidation",value:function(){this.getModel().addValidation(this.options.modelValidation)}},{key:"onRender",value:function(){this.options.modelValidation&&this.bindModelValidation(),r.Validation.bind(this.view,{model:this.getModel()})}},{key:"onBeforeDestroy",value:function(){r.Validation.unbind(this.view,{model:this.getModel()})}}])&&A(t.prototype,n),o&&A(t,o),a}(o.a.Behavior),I=n(152),V=n(20);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return H(this,n)}}function H(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(c,e);var t,n,r,i=F(c);function c(){return D(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.validateOptions(),this.listenTo(I.a.LAZY_LOAD,"update:loader",this.updateLoader)}},{key:"defaults",get:function(){return{loadingClass:"lazyload-loading",attribute:"src"}},set:function(e){}},{key:"updateLoader",value:function(){this.loader&&this.loader.update()}},{key:"onAttach",value:function(){a.h.isLazyLoadSupported(this.options.minBrowserSupportVersion)&&(this.loader=new LazyLoad({data_src:this.options.attribute,elements_selector:this.options.selector,class_loading:this.options.loadingClass,callback_load:this.options.callback,class_error:"d-none"}))}},{key:"onRender",value:function(){this.updateLoader()}},{key:"onBeforeDestroy",value:function(){this.loader&&this.loader.destroy()}},{key:"validateOptions",value:function(){this.options.selector||o.a.ErrorHelper.throw(new V.a("Must pass an image selector from ".concat(this.view.name," when using LazyLoadBehaviour.")))}}])&&M(t.prototype,n),r&&M(t,r),c}(o.a.Behavior),W=n(1),Y=n(14),G=n(251),K=n(181),Q=n(699),Z=n.n(Q);function X(e){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ee(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function re(e,t){return(re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ae(e);if(t){var o=ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ie(this,n)}}function ie(e,t){return!t||"object"!==X(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ce={saveEvent:"save",extraButtonClass:"btn-primary",spinnerOptions:{size:K.b.Small,type:K.c.Light,extraClasses:"mx-auto"}},ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&re(e,t)}(c,e);var t,n,i,a=oe(c);function c(){return te(this,c),a.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.validateOptions(),this.setUpTemplateWrapper(),this.handleCloseOnRoute(),this.handleRendersDuringTransition()}},{key:"events",get:function(){return{"hidden.bs.modal":"onModalHidden","shown.bs.modal":"onModalShown"}}},{key:"validateOptions",value:function(){this.options.title||o.a.ErrorHelper.throw(new V.a("Must pass a title from ".concat(this.view.name," when using PopupBehavior.")))}},{key:"handleCloseOnRoute",value:function(){var e=this;!1!==this.options.closeOnRoute&&(this.routeOnHide=!0,this.listenTo(Y.a.SHELL,"route",(function(){e.routeOnHide=!1,e.view.$el.modal("hide");var t=$("body");t.hasClass("modal-open")&&t.removeClass("modal-open"),t.css("padding-right","0px")})))}},{key:"handleRendersDuringTransition",value:function(){var e=this,t=this.view.render;this.view.render=function(){var n=e.view.$el.data("bs.modal");return n&&n._isTransitioning?(e.view.$(".modal-dialog").one("bsTransitionEnd",(function(){return t.call(e.view)})),e):t.call(e.view)}}},{key:"onHide",value:function(){this.hide()}},{key:"setUpTemplateWrapper",value:function(){var e=this,t=this.view.getTemplate;this.view.getTemplate=function(){return function(n){var r=t.call(e.view),o=e.options.hideCloseButton,i=r(n),a=J(e.options.buttons||[]);return W.each(a,(function(e){W.isFunction(e.getClassName)&&(e.className=e.getClassName())})),W.some(a,(function(e){return e.close}))||o||a.unshift({text:"Close",className:"btn btn-link",close:!0}),a=W.sortBy(W.map(a,(function(e){return W.extend({type:"button",className:"btn btn-primary"},e)})),"close"),Z()({content:i,size:e.options.size,title:e.getTitle(),buttons:a,spinnerButton:!!e.options.spinnerButtonOptions})}}}},{key:"getTitle",value:function(){return W.isFunction(this.options.title)?this.options.title.apply(this.view):this.options.title}},{key:"getSpinnerButtonOptions",value:function(){return W.isFunction(this.options.spinnerButtonOptions)?this.options.spinnerButtonOptions.apply(this.view):this.options.spinnerButtonOptions}},{key:"renderSpinnerButton",value:function(){var e=this.getSpinnerButtonOptions();e&&!W.isEmpty(e)&&(e=W.extend({},ce,e),this.view.addRegion("spinnerButton",{el:".spinner-button-region",replaceElement:!0}),this.spinnerButtonListenerBound||(this.spinnerButtonListenerBound=!0,this.view.listenTo(e.channelName,e.saveEvent,e.onClick)),this.spinnerComponent=new G.a(W.omit(e,"onClickSpinnerButton")),this.view.showChildView("spinnerButton",this.spinnerComponent))}},{key:"onRender",value:function(){this.renderSpinnerButton();var e="modal fade";this.options.modalClasses&&(e+=" ".concat(this.options.modalClasses)),this.view.$el.addClass(e),this.view.$el.attr("tabindex","-1"),r.Radio.channel(I.a.POPUP).trigger("popup:render")}},{key:"onAttach",value:function(){this.modalInitialized||(this.view.$el.modal(this.options.modalOptions||{}),this.modalInitialized=!0)}},{key:"hide",value:function(){this.view.$el.modal("hide"),this.routeOnHide||this.view.$el.modal("_removeBackdrop")}},{key:"onBeforeDetach",value:function(){this.hide()}},{key:"onModalHidden",value:function(){this.view.isDestroyed()||this.view.destroy();var e=this.options.appLink;this.routeOnHide&&e&&o.a.AppLinkHelper.trigger(e)}},{key:"onModalShown",value:function(){this.view.$el.find("[autofocus]").focus(),this.spinnerComponent&&this.spinnerComponent.trigger(G.b.ManageDimensions)}}])&&ne(t.prototype,n),i&&ne(t,i),c}(o.a.Behavior);function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pe(e,t){return(pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function he(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=de(e);if(t){var o=de(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ye(this,n)}}function ye(e,t){return!t||"object"!==se(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var be=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pe(e,t)}(i,e);var t,n,r,o=he(i);function i(){return le(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"onRender",value:function(){this.view.stickit(this.options.bindViewModel?this.view.viewModel:this.view.model)}},{key:"onBeforeDestroy",value:function(){this.view.unstickit()}}])&&fe(t.prototype,n),r&&fe(t,r),i}(o.a.Behavior);n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return _})),n.d(t,"a",(function(){return N})),n.d(t,"c",(function(){return q})),n.d(t,"e",(function(){return ue})),n.d(t,"f",(function(){return be}))},function(e,t,n){"use strict";var r,o,i,a;!function(e){e[e.SingleFile=1]="SingleFile",e[e.HasChapters=2]="HasChapters",e[e.Concatenating=3]="Concatenating",e[e.ConcatenationFailed=4]="ConcatenationFailed",e[e.New=5]="New",e[e.MediaNotFound=6]="MediaNotFound"}(r||(r={})),function(e){e[e.Link=1]="Link",e[e.Edit=2]="Edit",e[e.Disabled=3]="Disabled",e[e.Filter=4]="Filter"}(o||(o={})),function(e){e[e.Flex=1]="Flex",e[e.Vertical=2]="Vertical"}(i||(i={})),function(e){e[e.Folder=0]="Folder",e[e.Series=1]="Series"}(a||(a={})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a}))},function(e,t,n){"use strict";var r=n(1),o=n(29),i=n(0),a=n(100),c=n(124),u=n(27),s=(n(226),n(2)),l=n(116);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g,m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(i,e);var t,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return l.b}}])&&h(t.prototype,n),r&&h(t,r),i}(s.a.Collection),w=n(3);function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var k="contentUpdates.utils",E={getFilterCollection:function(e,t,n){var r=new a.a([{title:w.a.getPhrase(k,"libraryFilter"),type:u.a.Libraries,behavior:c.a.Inclusive,selectAllWhenNoneSelected:!0,minNumOptions:2,options:c.b.getSourceOptions(e)},{title:w.a.getPhrase(k,"subjectFilter"),type:u.a.Subjects,behavior:c.a.Exclusive,defaultOptionLabel:function(){return w.a.getPhrase(k,"subjectFilterLabel")},minNumOptions:0,options:t},{title:w.a.getPhrase(k,"releaseDateFilter"),type:u.a.ReleaseDate,behavior:c.a.Exclusive,minNumOptions:1,options:T}]);return n&&E.setFilters(r,n),r},getLibraryIds:function(e,t){var n=t.map((function(e){return e.get("id").toString()}));if(!e)return n;var o=[];return e.split(",").forEach((function(e){var t=e.split("-")[1];t&&r.contains(n,t)&&o.push(t)})),o},getSubjectOptions:function(e){var t={};return e.each((function(e){if(t[e.get("name")]){t[e.get("name")].subjectIds.push(e.get("id").toString());var n=[].concat(O(t[e.get("name")].libraryIds),O(e.get("libraryIds").map((function(e){return e.toString()}))));t[e.get("name")].libraryIds=r.uniq(n)}else t[e.get("name")]={subjectIds:[e.get("id").toString()],libraryIds:e.get("libraryIds").map((function(e){return e.toString()}))}})),r.keys(t).sort().map((function(e){return{name:e,value:e,subjectIds:t[e].subjectIds,libraryIds:t[e].libraryIds}}))},setFilters:function(e,t){r.keys(t).forEach((function(n){var r=t[n];if(r){var o=e.findWhere({type:n});o&&(n===u.a.Libraries&&E.setLibraryFilter(r,o),n===u.a.Subjects&&E.setSubjectFilter(r,o),n===u.a.ReleaseDate&&E.setReleaseDateFilter(r,o))}})),e.each((function(e){e.get("selectAllWhenNoneSelected")&&(r.contains(r.keys(t),e.get("type"))||c.b.selectAllOptions(e))}))},setLibraryFilter:function(e,t){e.split(",").forEach((function(e){var n=e.split("-")[1];if(n){var r=t.options.findWhere({id:+n});r&&r.set("active",!0)}}))},setSubjectFilter:function(e,t){if(-1!==e.indexOf("-")){var n=e.split("-")[1].split(","),o=t.options.find((function(e){return!!r.intersection(e.get("subjectIds"),n).length}));if(o)o.set("active",!0);else{var i=e.split("-")[0];t.options.add({name:i,value:i,subjectIds:n,active:!0})}}},setReleaseDateFilter:function(e,t){c.b.clearOptions(t);var n=t.options.findWhere({queryString:e});if(n)n.set("active",!0);else{var r=t.options.findWhere({isDefault:!0});r&&r.set("active")}},getSelectedSubjects:function(e){return e.findWhere({type:u.a.Subjects}).options.where({active:!0})},groupVideosByReleaseMonth:function(e){var t=[],n=e.groupBy((function(e){return o(e.get("dateReleased")).format("YYYY-MM")}));return r.each(n,(function(e,n){t.push(new l.b({id:n,videos:e,groupTitle:o(n).format("MMMM YYYY")}))})),new m(r.sortBy(t,"id").reverse())},getFirstDayInMonthNumMonthsAgo:function(e){return o().startOf("month").subtract(e,"month").format("YYYY-MM-DD")},getLastDayInMonthNumMonthsAgo:function(e){return o().endOf("month").subtract(e,"month").format("YYYY-MM-DD")},getSelectedReleaseDate:function(e){return e.findWhere({type:u.a.ReleaseDate}).options.findWhere({active:!0})},getRouteQueryParams:function(e){var t=E.RouteQueryParamGenerators,n={};return e.each((function(e){var o={};r.isFunction(t[e.get("type")])&&(o=t[e.get("type")](e)),n=r.extend(n,o)})),n},RouteQueryParamGenerators:(g={},S(g,u.a.Libraries,(function(e){var t=e.options.where({active:!0});return t.length&&t.length!==e.options.length?S({},u.a.Libraries,t.map((function(e){return"library-".concat(e.id)})).join(",")):{}})),S(g,u.a.Subjects,(function(e){var t=e.options.where({active:!0}),n=e.options.length>1&&e.options.length===t.length;return!t.length||n?{}:S({},u.a.Subjects,t.map((function(e){return"".concat(e.get("name"),"-").concat(e.get("subjectIds").join(","))})).join(","))})),S(g,u.a.ReleaseDate,(function(e){var t=e.options.findWhere({active:!0});if(!t)return{};var n=t.get("queryString");return n?S({},u.a.ReleaseDate,n):{}})),g)},_="contentUpdates.utils",R={AwaitingReview:function(){return w.a.getPhrase(_,"awaitingReview")},PastReleases:function(){return w.a.getPhrase(_,"pastReleases")}},P={AwaitingReview:".awaiting-review-applink",PastReleases:".past-releases-applink"},A=[{name:R.AwaitingReview,link:{selector:P.AwaitingReview,appLink:{application:i.b.CONTENT_UPDATES,action:i.a.ContentUpdates.AWAITING_REVIEW}}},{name:R.PastReleases,link:{selector:P.PastReleases,appLink:{application:i.b.CONTENT_UPDATES,action:i.a.ContentUpdates.PAST_RELEASES}}}],T=[{id:u.b.ThisMonth,value:u.b.ThisMonth,from:E.getFirstDayInMonthNumMonthsAgo(0),to:o().format("YYYY-MM-DD"),name:function(){return w.a.getPhrase(_,"thisMonth")},queryString:u.b.ThisMonth},{id:u.b.LastMonth,value:u.b.LastMonth,from:E.getFirstDayInMonthNumMonthsAgo(1),to:E.getLastDayInMonthNumMonthsAgo(1),name:function(){return w.a.getPhrase(_,"lastMonth")},queryString:u.b.LastMonth},{id:u.b.Last3Months,value:u.b.Last3Months,from:E.getFirstDayInMonthNumMonthsAgo(2),to:o().format("YYYY-MM-DD"),queryString:u.b.Last3Months,name:function(){return w.a.getPhrase(_,"last3Months")}},{id:u.b.Last6Months,value:u.b.Last6Months,from:E.getFirstDayInMonthNumMonthsAgo(5),to:o().format("YYYY-MM-DD"),queryString:u.b.Last6Months,name:function(){return w.a.getPhrase(_,"last6Months")}}],x=r.last(T),L=n(60),j={groupVideosByHostedLibrary:function(e){return j.groupVideosByLibrary(e,L.a.HostedLibrary,!0)},groupVideosByLibrary:function(e,t,n){if(!e||!e.length)return new m;var o=[],i=e.groupBy((function(e){var r=e.libraries.findWhere({type:t});return r||n&&(r=e.libraries.first())?r.get("name"):"Unknown Library"}));return r.each(i,(function(e,t){o.push(new l.b({id:t,videos:e,groupTitle:t}))})),new m(r.sortBy(o,"id"))}};n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return A})),n.d(t,"g",(function(){return T})),n.d(t,"e",(function(){return x})),n.d(t,"c",(function(){return j})),n.d(t,"f",(function(){return E}))},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(710),a=n.n(i);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,e);var t,n,o,i=l(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,(n=[{key:"name",get:function(){return"EmptyStateComponent"}},{key:"className",get:function(){var e="d-flex flex-column justify-content-center align-items-center text-center h-100";return this.options.customClass&&(e+=" ".concat(this.options.customClass)),e}},{key:"template",get:function(){return a.a}},{key:"defaults",get:function(){return{imageSize:"lg",paddedContainer:!0}}},{key:"appLinks",get:function(){return this.options.appLink||{}}},{key:"getImageClass",value:function(){return this.options.customImageClass}},{key:"getHeading",value:function(){return r.isFunction(this.options.heading)?this.options.heading():this.options.heading}},{key:"getDescription",value:function(){return r.isFunction(this.options.description)?this.options.description():this.options.description}},{key:"viewOptions",value:function(){return{imageUrl:this.options.imageUrl,imageClass:this.getImageClass(),heading:this.getHeading(),description:this.getDescription()}}}])&&u(t.prototype,n),o&&u(t,o),c}(o.a.Component),y=n(464);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return O}));var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(a,e);var t,n,o,i=m(a);function a(){return b(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"defaults",get:function(){return{type:0,shouldRender:y.a.isCollectionEmpty.bind(null,this.view)}},set:function(e){}},{key:"shouldRender",value:function(){return!!r.isFunction(this.options.shouldRender)&&this.options.shouldRender()}},{key:"getComponent",value:function(){var e=this.options.emptyStateComponents[this.options.type](this);return new h(e)}},{key:"renderEmptyState",value:function(){if(this.shouldRender()){var e=this.getComponent();this.view.showChildView(this.options.region,e)}}},{key:"onRender",value:function(){this.renderEmptyState()}}])&&v(t.prototype,n),o&&v(t,o),a}(o.a.Behavior)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(40),o=n(3);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f="migrationWizard.alreadyMigratedError",p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(s,e);var t,n,r,i=u(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,o.a.getPhrase(f,"title"))}return t=s,(n=[{key:"name",get:function(){return"AlreadyMigratedError"}},{key:"heading",get:function(){return o.a.getPhrase(f,"heading")}}])&&a(t.prototype,n),r&&a(t,r),s}(r.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),a=n(20),c=n(133),u=n(732),s=n.n(u);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(p,e);var t,n,u,l=d(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),l.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"select:option:selected",this.render)}},{key:"template",get:function(){return s.a}},{key:"behaviors",get:function(){var e=[];return this.hasTooltip()&&e.push(Object.assign({behaviorClass:c.a},this.getTooltip())),e}},{key:"name",get:function(){return"DropdownItemComponent"}},{key:"tagName",get:function(){return this.model.get("divider")?"div":this.model.get("appLink")||this.model.get("href")?"a":"span"}},{key:"className",get:function(){if(this.model.get("divider"))return"dropdown-divider";var e=this.model.get("classes")||this.options.extraClasses,t="dropdown-item text-truncate";return this.options.truncateOptionNames?t+=" d-block text-truncate":t+=" d-flex justify-content-between",this.model.get("selected")&&(t+=" active"),this.isDisabled()?this.hasTooltip()?t+=" cursor-default":t+=" disabled cursor-default":t+=" cursor-pointer",e&&(t+=" ".concat(e)),t}},{key:"events",value:function(){return{click:"onClick"}}},{key:"appLinks",get:function(){return this.model.get("appLink")?{"[this]":this.model.get("appLink")}:{}}},{key:"defaults",get:function(){return{titleProperty:"title"}}},{key:"attributes",get:function(){if(this.options.truncateOptionNames)return{title:this.model.get("name")};var e=this.hasTooltip()?this.getTooltip().title:"";return this.model.get("href")?{href:this.model.get("href"),title:this.options.currentSelectedMessage||e,target:this.model.get("external")?"_blank":""}:{title:e}}},{key:"hasTooltip",value:function(){if(!r.isFunction(this.options.getTooltip))return!1;var e=this.getTooltip();return!!r.isObject(e)&&e.title}},{key:"getTooltip",value:function(){var e;if(r.isFunction(this.options.getTooltip)){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=this.options.getTooltip).apply.apply(e,[this].concat(n))}}},{key:"isDisabled",value:function(){var e;if(this.model.get("divider"))return!0;if(!r.isFunction(this.options.isDisabled))return!1;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=this.options.isDisabled).apply.apply(e,[this].concat(n))}},{key:"onClick",value:function(e){var t=this.model.get("eventName")||this.options.eventName;this.model.get("stopPropagation")&&e.stopPropagation(),this.isDisabled()?e.stopPropagation():(this.logAction(),t&&o.Radio.channel(this.options.channelName).trigger(t,this.model))}},{key:"logAction",value:function(){var e=this.model.get("appLink");if(e){var t=f(e.args,1)[0];this.options.analyticsHelper.logUserAction({id:t},this.model.get("analyticsOptions"))}}},{key:"buildPrefix",value:function(){if(r.isFunction(this.options.prefixHandler)){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.options.prefixHandler.apply(this,t)}}},{key:"getTitle",value:function(){if(!this.model.get("divider")){var e=this.model.get(this.options.titleProperty);return e||i.a.ErrorHelper.throw(new a.a("titleProperty has not been correctly set. Or the model does not contain the property.")),e}}},{key:"viewOptions",value:function(){return{title:this.getTitle(),prefix:this.buildPrefix(),iconSvg:this.model.get("icon")}}},{key:"onRender",value:function(){this.resetClassName()}}])&&h(t.prototype,n),u&&h(t,u),p}(i.a.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(225);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"model",get:function(){return o.a}},{key:"parse",value:function(e){return e.data||e}}])&&c(t.prototype,n),r&&c(t,r),l}(r.a.Collection)},function(e,t,n){"use strict";var r=n(1),o=n(129),i=n(2),a=n(20),c=n(75),u=n(23),s=n(130),l=n(15),f=n(3),p=n(702),h=n.n(p),y=n(703),d=n.n(y);n.d(t,"a",(function(){return b}));var b={handleQuery:function(e,t){return function(n,i,a){if(n&&e instanceof o){return e.search.call(e,n,i,(function(e){var o=[];if("empty-suggestion"===t.name)return a.call(this,[{}]);if("add-new"===t.name){var i=r.find(e,(function(e){return e.name.toLowerCase()===n.toLowerCase()}));i||(i={name:n}),i.type=t.newType,o.push(i)}else o=e;a.call(this,o)}))}}},getSuggestionTemplate:function(e){return"add-new"===e?function(e){return function(e){var t=r.extend({},e,{options:{styles:h.a,svg:l.a.getSvg(l.b.Plus),createText:f.a.getPhrase("shared.utils","create")}});return d()(t)}(e)}:"empty-suggestion"===e?s.a:s.d},getPendingTemplate:function(e){return"add-new"===e||"empty-suggestion"===e?s.a:s.b},getNotFoundTemplate:function(e,t){return"add-new"===e||t?s.a:s.c},getFooterTemplate:function(e){return r.isFunction(e)?e:null},prepareQuery:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.libraryIds;return"".concat(t.url,"?q=").concat(e).concat(r?"&ids=".concat(r):"")},prepareUrl:function(e,t){var n=b.mapRawSearchType(e,t);return"/api/domain/v1/search/".concat(n,"/instant/raw")},mapRawSearchType:function(e,t){switch(e){case u.a.TagsRaw:return u.a.TagsRaw;case u.a.Series:return u.a.Series;case u.a.Producers:return u.a.Producers;case u.a.Distributors:return u.a.Distributors;case u.a.ChannelRaw:return u.a.ChannelRaw;case u.a.Directors:return u.a.Directors;case u.a.ProductionCompanies:return u.a.ProductionCompanies;case u.a.Season:return u.a.Season;case"add-new":case"empty-suggestion":return t.newType;default:i.a.ErrorHelper.throw(new a.a("Raw search type ".concat(e," is not supported.")))}},getBloodhoundConfig:function(){return function(e,t){return{datumTokenizer:o.tokenizers.obj.whitespace("name"),queryTokenizer:o.tokenizers.whitespace,remote:{url:b.prepareUrl(e,t),prepare:r.partial(b.prepareQuery,r,r,t),cache:!1}}}},getTypeaheadConfig:function(){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{name:e.name,source:b.handleQuery(e.bloodhound,Object.assign({fetchType:c.a.Remote,name:e.name},n)),async:!0,limit:5,display:function(e){return e.name},templates:{suggestion:b.getSuggestionTemplate(e.name),pending:b.getPendingTemplate(e.name),notFound:b.getNotFoundTemplate(e.name,n.hideEmptyResults),footer:b.getFooterTemplate(n.footerTemplate)}}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(40),o=n(3);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(s,e);var t,n,r,i=u(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,"User does not have access to this video")}return t=s,(n=[{key:"name",get:function(){return"ForbiddenVideoError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.forbiddenVideo","info")}}])&&a(t.prototype,n),r&&a(t,r),s}(r.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(40),o=n(3);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(s,e);var t,n,r,i=u(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,"Video not found")}return t=s,(n=[{key:"name",get:function(){return"VideoNotFoundError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.videoNotFound","heading")}}])&&a(t.prototype,n),r&&a(t,r),s}(r.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(2),o=n(6),i=n(697),a=n.n(i),c=n(232),u=n(44);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(s,e);var t,n,r,i=y(s);function s(){return f(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"events",value:function(){var e;return l(e={},"click ".concat(this.options.buttonSelector),"onClickSelect"),l(e,"change .file-select","onChangeFileSelect"),e}},{key:"onClickSelect",value:function(){this.view.$el.find(".file-select").val(null),this.view.$el.find(".file-select").click()}},{key:"onChangeFileSelect",value:function(e){var t=e.originalEvent.target.files;t&&t.length&&o.Radio.channel(this.options.channelName).trigger(u.a.FILES_SELECTED,t,c.a.FileSelect)}},{key:"onRender",value:function(){this.$el.find(this.options.buttonSelector).after(a()(this.options))}}])&&p(t.prototype,n),r&&p(t,r),s}(r.a.Behavior)},function(e,t,n){"use strict";var r=n(227);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(153);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"model",get:function(){return o.a}},{key:"parse",value:function(e){return e.data||e}}])&&c(t.prototype,n),r&&c(t,r),l}(r.a.Collection)},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r=n(6),o=n(2),i=n(3),a=n(99),c=n(12),u=n(0),s=n(735),l=n.n(s),f=n(132),p=n.n(f);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){g(n,e);var t=w(n);function n(e){return d(this,n),t.call(this,e)}return v(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:video change:pendingProcessStatus",this.render),this.listenTo(this.model,"change:foregroundProgress change:backgroundProgress",this.update)}},{key:"name",get:function(){return"ProcessProgressComponent"}},{key:"template",get:function(){return l.a}},{key:"lang",get:function(){return"upload.processProgress"}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){return"d-block my-2 cursor-pointer ".concat(p.a.processProgress)}},{key:"attributes",get:function(){return{title:this.model.get("statusMessageHeader")}}},{key:"events",value:function(){var e;return y(e={},"click .".concat(p.a.cancel),"onClickCancel"),y(e,"click .retry","onClickRetry"),e}},{key:"elements",get:function(){return{progressBar:".progress-bar",progressText:".progress-text"}}},{key:"appLinks",get:function(){return{"[this]":{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.FOLDER,args:[this.model.get("categoryId")]}}}},{key:"onClickCancel",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.model.get("video").get("name");c.b.generateDialog(t,this.options.channelName,"clear:pending:item",this.model)}},{key:"onClickRetry",value:function(e){e.preventDefault(),e.stopPropagation(),r.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.model)}},{key:"viewOptions",value:function(){var e=this.model.get("video");return{status:a.a.getStatus(this.model),progress:a.a.getProgress(this.model),name:e?e.get("name"):i.a.getPhrase(this.lang,"videoNotFound"),isDone:a.a.isDone(this.model),hasError:a.a.hasError(this.model),styles:p.a,spinnerEl:c.r.getSpinner({size:c.s.Medium,tag:"span",extraClasses:p.a.spinner})}}},{key:"onRender",value:function(){this.$el.find(".".concat(p.a.cancel,",.retry")).tooltip({placement:"left"})}},{key:"onDestroy",value:function(){this.$el.find(".".concat(p.a.cancel,",.retry")).tooltip("dispose")}},{key:"update",value:function(){var e=a.a.getStatus(this.model),t=a.a.getProgress(this.model),n=this.getUI("progressBar");n&&n.get(0)&&$(n.get(0)).css("width","".concat(t,"%")),this.getUI("progressText").html(e)}}]),n}(o.a.Component),k=function(e){g(n,e);var t=w(n);function n(e){return d(this,n),t.call(this,e)}return v(n,[{key:"name",get:function(){return"ProcessProgressComponentCollection"}},{key:"childView",get:function(){return C}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}},{key:"className",get:function(){return"px-2 popover-list-body-md"}},{key:"viewComparator",get:function(){return function(e){return-e.get("pendingProcessStatus")}}}]),n}(o.a.ComponentCollection)},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(2),o=n(30),i=n(15),a=n(44),c=n(0),u=n(12),s=n(288),l=n.n(s),f=n(738),p=n.n(f);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(f,e);var t,n,r,s=v(f);function f(){return y(this,f),s.apply(this,arguments)}return t=f,(n=[{key:"initialize",value:function(){this.model=o.a.get("process:progress"),this.listenTo(this.model,"change:progress change:items change:hasErrors",this.render),this.listenTo(c.w.PENDING_ITEMS,a.a.PENDING_ITEM_STATUS_CHANGE,this.render)}},{key:"name",get:function(){return"ProgressInfoComponent"}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return l.a.progressInfo}},{key:"viewOptions",value:function(){return{warningSvg:i.a.getSvg(i.b.Warning),spinnerEl:u.r.getSpinner({size:u.s.Medium,type:u.t.LightBgDark}),styles:l.a}}},{key:"onBeforeRender",value:function(){return!!this.model.get("items")}}])&&d(t.prototype,n),r&&d(t,r),f}(r.a.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={LIBRARY_STATUS:"library:status"}},function(e,t,n){"use strict";var r,o=n(1),i=n(6),a=n(2),c=n(3),u=n(5),s=n(30),l=n(13),f=n(74),p=n(119),h=n(150);!function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(r||(r={}));var y=n(180),d=n(44),b=n(36);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(i,e);var t,n,r,o=w(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"FileTypeError"}},{key:"lang",get:function(){return"upload.fileType"}},{key:"dialogOptions",get:function(){return{title:c.a.getPhrase(this.lang,"heading"),text:c.a.getPhrase(this.lang,"body"),buttons:[{text:c.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:c.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}])&&g(t.prototype,n),r&&g(t,r),i}(b.a),k=n(290);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x="upload.internetConnectivityError",L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(i,e);var t,n,r,o=P(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,c.a.getPhrase(x,"title"))}return t=i,(n=[{key:"name",get:function(){return"InternetConnectivityError"}},{key:"dialogOptions",get:function(){return{title:c.a.getPhrase(x,"heading"),text:c.a.getPhrase(x,"body"),buttons:[{text:c.a.getPhrase(x,"okay"),className:"btn",success:!0}]}}}])&&_(t.prototype,n),r&&_(t,r),i}(b.a),j=n(240);function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M(e);if(t){var o=M(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(e,t){return!t||"object"!==N(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var U,F,H=[],z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(s,e);var t,n,r,u=B(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),u.call(this,e)}return t=s,r=[{key:"isValidFile",value:function(e,t){return k.isValidFile(e,t)}}],(n=[{key:"name",get:function(){return"DropzoneWrapper"}},{key:"initialize",value:function(e){var t=this.options.loggingEnabled,n=i.Radio.channel(e.channelName),r=this;this.dropzone=new k(document.createElement("div"),{url:function(e){return e[0].cvUpload.ingestUrl},chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",init:function(){var e=this;t&&(o.each(H,(function(t){e.on(t,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0]instanceof File?n[0].name:n[0];console.info(t,o,n)}))})),this.on("uploadprogress",(function(e,t,o){var i=o/e.size*100;n.trigger("progress",r.getId(e),i,o)})),this.on("success",(function(e){var t=e.upload.chunks,r=o.last(t),i=r.xhr;i||(i=r.file.xhr);var a=JSON.parse(i.response);e.cvUpload.fileUrl=a.url,n.trigger("upload:success",e,a)})),this.on("error",(function(e,t,n){n&&0===n.status?a.a.ErrorHelper.throw(new L):"canceled"!==e.status&&a.a.ErrorHelper.throw(new j.a(c.a.getPhrase("upload.services","uploadError",{fileName:e.name,message:t.message})))})))},params:function(e,t,n){if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:function(){},thumbnail:function(){},uploadprogress:function(){}})}},{key:"getId",value:function(e){return e.upload.uuid}},{key:"addFile",value:function(e){this.dropzone.addFile(e)}},{key:"removeFile",value:function(e){this.dropzone.removeFile(e)}},{key:"start",value:function(){this.dropzone.processQueue()}},{key:"destroy",value:function(){this.dropzone.destroy()}}])&&I(t.prototype,n),r&&I(t,r),s}(a.a.Service),q=n(24),W=n(22),Y=n(42),G=n(4);function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t,n){return t&&$(e.prototype,t),n&&$(e,n),e}function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ee(e,t)}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=re(e);if(t){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ne(this,n)}}function ne(e,t){return!t||"object"!==K(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"d",(function(){return oe})),n.d(t,"a",(function(){return se})),n.d(t,"c",(function(){return le})),n.d(t,"b",(function(){return fe}));var oe,ie=function(e){J(n,e);var t=te(n);function n(){return Z(this,n),t.call(this,{dataProvider:u.a.getInstance(f.a.Ajax),cache:u.a.getInstance(p.a.Fifo),alertService:u.a.getInstance(h.a.ALERT)})}return X(n,[{key:"name",get:function(){return"UploadDataService"}},{key:"channelName",get:function(){return"private:upload:data:service"}},{key:"requestUploads",value:function(e,t,n,r){var i=this,a=this.chain();o.each(e,(function(e){a.create({resource:"/api/upload",eventPrefix:"request:upload",data:i.getFileUploadRequest(e,t),callback:function(t){n(e,t)}})})),a.func((function(){r()})).run()}},{key:"cancelUpload",value:function(e,t,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:e,ingestUrl:t},callback:n})}},{key:"getFileUploadRequest",value:function(e,t){var n=e.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:e.size,fileLifestyle:t}}},{key:"onDestroy",value:function(){u.a.releaseInstance(f.a.Ajax).releaseInstance(p.a.Fifo)}}]),n}(l.a);!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(oe||(oe={}));var ae=(Q(U={},oe.Video,"video/*"),Q(U,oe.LearningResource,y.b.RESOURCES),Q(U,oe.Subtitle,y.b.SUBTITLES),U),ce=(Q(F={},oe.Video,q.c.VIDEO_UPLOAD),Q(F,oe.LearningResource,q.c.RESOURCE_UPLOAD),Q(F,oe.Subtitle,q.c.SUBTITLE_UPLOAD),F),ue=function(e){J(n,e);var t=te(n);function n(){return Z(this,n),t.apply(this,arguments)}return X(n,[{key:"initialize",value:function(){this.uploadDataService=new ie,this.progressViewModel=s.a.get("upload:progress:".concat(this.uploadType)),this.bindListeners()}},{key:"channelName",get:function(){return ce[this.uploadType]}},{key:"lang",get:function(){return"upload.services"}},{key:"initUploader",value:function(e,t){if(!this.uploader){var n=4194304;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new z({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:53687091200,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,"upload:success",this.onSuccess)}},{key:"onProgress",value:function(e,t,n){var r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}},{key:"isUploading",value:function(){return!!this.getCollection().length}},{key:"getCollection",value:function(){return this.collection||(this.collection=new a.a.Collection),this.collection}},{key:"setOverallProgress",value:function(){var e=0,t=0,n=this.getCollection();if(n.length){n.each((function(n){e+=n.get("totalUploaded")||0,t+=n.get("file").size||0}));var r=e/t*100,o=r>100;this.progressViewModel.set({progress:o?100:r,done:o})}else this.progressViewModel.set({progress:0})}},{key:"isValidFile",value:function(e){return z.isValidFile(e,this.getAcceptedFiles())}},{key:"addFiles",value:function(e,t){var n=this;o.any(e,(function(e){return!n.isValidFile(e)}))?a.a.ErrorHelper.throw(new C(c.a.getPhrase(this.lang,"invalidFileType"))):this.requestUploads(e,t)}},{key:"requestUploads",value:function(e,t){var n=this,r=this.isUploading(),o=this.getCollection();this.uploadDataService.requestUploads(e,this.fileLifestyle,(function(e,t){n.initUploader(1024*t.minChunkSize,1024*t.maxChunkSize),e.cvUpload={uploadId:t.uploadId,ingestUrl:t.ingestUrl},n.uploader.addFile(e);var r=e.name;n.uploadType===oe.Video&&(r=r.replace(/\.[^/.]+$/,"")),o.add({id:n.uploader.getId(e),file:e,name:r},{at:o.length-1})}),(function(){t&&Y.a.logUserAction({uploadCount:e.length},t),i.Radio.channel(n.channelName).trigger(d.a.FILES_ADDED,e,r)}))}},{key:"addFile",value:function(e,t){this.addFiles([e],t)}},{key:"cancelUpload",value:function(e){var t=this,n=this.getCollection(),r=n.get(e);if(r){var o=r.get("file");this.uploader.removeFile(o),n.remove(r),this.uploadDataService.cancelUpload(o.cvUpload.uploadId,o.cvUpload.ingestUrl,(function(){Y.a.logUserAction({id:o.cvUpload.uploadId},{entity:G.EntityType.Video,actionType:G.UserAction.Upload,workflowPhase:G.WorkflowPhase.Discard,descriptor:G.OperationDescriptor.Single,location:G.LocationContext.MyUploads}),i.Radio.channel(t.channelName).trigger(d.a.UPLOAD_CANCELLED)})),this.setOverallProgress()}}},{key:"onSuccess",value:function(e,t){var n=this.uploader.getId(e),r=this.getCollection().get(n);r.set("fileInfo",t),Y.a.logUserAction({id:e.cvUpload.uploadId},{entity:G.EntityType.Video,actionType:G.UserAction.Upload,workflowPhase:G.WorkflowPhase.Complete,descriptor:G.OperationDescriptor.Single,location:G.LocationContext.VideoUpload}),i.Radio.channel(this.channelName).trigger(d.a.UPLOAD_COMPLETE,r)}},{key:"cancelAllUploads",value:function(){var e=this,t=this.getCollection().map((function(e){return e.get("id")}));o.each(t,(function(t){return e.cancelUpload(t)}))}},{key:"getAcceptedFiles",value:function(){return ae[this.uploadType]}}]),n}(a.a.Service),se=function(e){J(n,e);var t=te(n);function n(){return Z(this,n),t.apply(this,arguments)}return X(n,[{key:"uploadType",get:function(){return oe.Video}},{key:"name",get:function(){return W.b.VideoUpload}},{key:"fileLifestyle",get:function(){return r.Temporary}}]),n}(ue),le=function(e){J(n,e);var t=te(n);function n(){return Z(this,n),t.apply(this,arguments)}return X(n,[{key:"uploadType",get:function(){return oe.Subtitle}},{key:"name",get:function(){return W.b.SubtitleUpload}},{key:"fileLifestyle",get:function(){return r.Permanent}}]),n}(ue),fe=function(e){J(n,e);var t=te(n);function n(){return Z(this,n),t.apply(this,arguments)}return X(n,[{key:"uploadType",get:function(){return oe.LearningResource}},{key:"name",get:function(){return W.b.ResourceUpload}},{key:"fileLifestyle",get:function(){return r.Permanent}}]),n}(ue)},function(e,t,n){"use strict";var r=n(2),o=n(151),i=n(1),a=n(3),c=n(5),u=n(13),s=n(50),l=n(0),f=n(49),p=n(47),h=n(237),y=n(86);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,n,r,o=m(i);function i(){return b(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return y.g}}])&&v(t.prototype,n),r&&v(t,r),i}(r.a.Collection),C=n(18),k=n(90);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return te})),n.d(t,"b",(function(){return ne}));var j=function(e){var t={categoryChord:e};return"/api/homemigrator/v1/customers/categories/videos?".concat($.param(t,!0))},N=function(){return"/api/homemigrator/v1/customers/categories"},I=function(){return"/api/homemigrator/v1/customer-meta"},V=function(e){return"/api/homemigrator/v1/synced-videos/publisher-metadata?trackingCode=".concat(e)},B=function(e){return"/api/homemigrator/v1/synced-videos/publisher-metadata?masterId=".concat(e)},D=function(){return"/api/homemigrator/v1/backup/progress"},M=function(e){return"/api/homemigrator/v1/customer-meta/options/".concat(e)},U=function(){return"/api/homemigrator/v1/finalise/smart"},F=function(){return"/api/homemigrator/v1/finalise/full"},H=function(e){return"/api/homemigrator/v1/finalise/".concat(e)},z=function(e){return"/api/homemigrator/v1/backup-tools/head?channel=".concat(e)},q=function(){return"/api/homemigrator/v1/finalise/phase2"},W=function(e){return"/api/homemigrator/v1/finalise?type=".concat(e)},Y=function(){return"/api/homemigrator/v1/customers/reviewvideos"},G=function(){return"/api/homemigrator/v1/customers/reviewvideos/count"},K=function(){return"/api/homemigrator/v1/synced-videos/migrationstatus"},Q=function(e){return"/api/homemigrator/v1/reports/".concat(e)},Z=function(){return"/api/homemigrator/v1/reports"},X=function(e){return"/api/homemigrator/v2/customers/videos/smart?limit=987".concat(e?"&cursor=".concat(e):"")},J={video:function(e){return new r.a.Model(e[0],{parse:!0})},videos:function(e){return new s.a(e,{parse:!0})},smartSelectVideos:function(e){return new O(e)},videoCount:function(e){return new y.h(e)},folders:function(e){return new h.a(e,{parse:!0})},customerMetadata:function(e){return new y.b(e)},finalisationTask:function(e){return new y.c(e)},backupTool:function(e){return new y.a(e)}},ee=l.f,te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(d,e);var t,n,u,h=T(d);function d(){return R(this,d),h.apply(this,arguments)}return t=d,(n=[{key:"initialize",value:function(){this.folderCacheService=c.a.getInstance(l.x.FolderCache,this)}},{key:"name",get:function(){return"MigrationVideoDataService"}},{key:"channelName",get:function(){return l.e.MIGRATION}},{key:"lang",get:function(){return"migrationWizard.services"}},{key:"clearVideoCache",value:function(){this.invalidateCache([ee.CUSTOMER_VIDEOS])}},{key:"getCustomerFolders",value:function(e){return this.get({callback:e,expiryTime:C.a.STANDARD,formatData:J.folders,resource:N(),eventPrefix:"".concat(ee.CUSTOMER_FOLDERS)})}},{key:"getCustomerVideos",value:function(e,t){return this.get({callback:t,expiryTime:C.a.STANDARD,formatData:function(t){return i.each(t,(function(t){return t.categoryChord=e})),new s.a(t)},resource:j(e),eventPrefix:"".concat(ee.CUSTOMER_VIDEOS,":").concat(escape(e))})}},{key:"clearCacheAndgetCustomerSmartSelect",value:function(e,t){var n=this,r=function(e,t){n.clearCacheAndGet({expiryTime:C.a.STANDARD,resource:X(e),eventPrefix:"".concat(ee.CUSTOMER_SMART_VIDEOS),errorHandler:n.alertService.error({useXHR:!0}),callback:t})},o=[];r("",(function n(i){i.data.length&&o.push.apply(o,i.data),e(o.length),null===i.cursor?t(new O(o)):r(i.cursor,n)}))}},{key:"getCustomerMetadata",value:function(e){return this.get({callback:e,expiryTime:C.a.STANDARD,formatData:J.customerMetadata,resource:I(),eventPrefix:"".concat(ee.CUSTOMER_METADATA),bootstrapName:l.c.CUSTOMER_META})}},{key:"clearCacheAndGetCustomerMetadata",value:function(e){return this.clearCacheAndGet({callback:e,formatData:J.customerMetadata,resource:I(),eventPrefix:"".concat(ee.CUSTOMER_METADATA)})}},{key:"getCustomerVideoByTrackingCode",value:function(e,t){return this.get({callback:t,expiryTime:C.a.STANDARD,formatData:J.video,resource:V(e),eventPrefix:"".concat(ee.CUSTOMER_VIDEO,":").concat(e)})}},{key:"getCustomerVideoByMasterId",value:function(e,t){return this.get({callback:t,expiryTime:C.a.STANDARD,formatData:J.video,resource:B(e),eventPrefix:"".concat(ee.CUSTOMER_VIDEO,":").concat(e),errorHandler:!1})}},{key:"getCustomerVideoCount",value:function(e){this.clearCacheAndGet({callback:e,expiryTime:C.a.STANDARD,formatData:J.videoCount,resource:D(),eventPrefix:"".concat(ee.CUSTOMER_VIDEO,":count")})}},{key:"getCustomerVideoCountCached",value:function(e){return this.get({callback:e,expiryTime:C.a.STANDARD,formatData:J.videoCount,resource:D(),eventPrefix:"".concat(ee.CUSTOMER_VIDEO,":count")})}},{key:"updateCustomerMigrationOption",value:function(e,t){return this.update({data:{},resource:M(e),eventPrefix:"".concat(ee.CUSTOMER_METADATA,":update"),callback:t,invalidationKeys:["".concat(ee.CUSTOMER_METADATA),"libraries"]})}},{key:"finaliseCustomerVideos",value:function(e,t,n){var r=this,o=e.map((function(e){return{category:e.get("folderChord"),videoIds:e.get("videoIds"),forceMigrateWarnings:t}}));this.create({data:o,callback:function(e){r.clearVideoCache(),i.isFunction(n)&&n(e)},resource:U(),eventPrefix:"".concat(ee.CUSTOMER_VIDEOS,":finalise"),invalidationKeys:["manual:review:videos","manual:review:video:count",ee.VIDEOS],formatData:function(e){return new y.c(e)}})}},{key:"finaliseAllVideos",value:function(e){var t=this;this.create({data:{},callback:function(n){t.clearVideoCache(),i.isFunction(e)&&e(n)},resource:F(),eventPrefix:"".concat(ee.CUSTOMER_VIDEOS,":finalise:all"),formatData:function(e){return new y.c(e)}})}},{key:"getFinalisationTask",value:function(e,t){this.clearCacheAndGet({callback:t,expiryTime:C.a.STANDARD,formatData:J.finalisationTask,resource:H(e),eventPrefix:"".concat(ee.FINALISATION,":").concat(e)})}},{key:"deselectAll",value:function(){this.getCustomerFolders((function(e){f.a.deselectAll(k.a.MIGRATION_WIZARD,e)}))}},{key:"setSelected",value:function(e){var t=this;this.getCustomerFolders((function(n){f.a.setSelected(k.a.MIGRATION_WIZARD,t.folderCacheService.getFolderByChord(e,n),n)}))}},{key:"getSelected",value:function(e){this.getCustomerFolders((function(t){var n=f.a.getSelected(k.a.MIGRATION_WIZARD,t);e(n)}))}},{key:"getBackupTool",value:function(e,t){return this.get({resource:z(e),formatData:J.backupTool,eventPrefix:ee.BACKUP_TOOL,callback:t})}},{key:"publishLibraries",value:function(e){return this.create({data:{},resource:q(),eventPrefix:"publish:libraries",callback:e})}},{key:"getPublishLibrariesProgress",value:function(e,t){this.clearCacheAndGet({resource:W(e),eventPrefix:"current:finalisation:task",formatData:J.finalisationTask,callback:t})}},{key:"clearCacheAndGetManualReviewVideoCount",value:function(e){this.clearCacheAndGet({resource:G(),eventPrefix:"manual:review:video:count",formatData:function(e){return new r.a.Model(e)},callback:e})}},{key:"getManualReviewVideoCount",value:function(e){return this.get({resource:G(),eventPrefix:"manual:review:video:count",formatData:function(e){return new r.a.Model(e)},callback:e})}},{key:"getManualReviewVideos",value:function(e){return this.get({resource:Y(),eventPrefix:"manual:review:videos",formatData:function(e){return new r.a.Collection(e)},callback:e})}},{key:"updateMigrationStatus",value:function(e,t,n){this.update({data:{videoIds:e,migrationStatus:t},resource:K(),eventPrefix:"update:migration:status",invalidationKeys:["manual:review:videos","manual:review:video:count"],callback:n})}},{key:"getMigrationReportOptions",value:function(e){return this.get({resource:Z(),eventPrefix:"get:migration:report:options",callback:e})}},{key:"generateMigrationReportCsv",value:function(e,t){var n,r=this,c=(_(n={},p.d.Migrated,"homemigrator.le.migration.migrated.report"),_(n,p.d.Remaining,"homemigrator.le.migration.videos.remaining.report"),_(n,p.d.Errored,"homemigrator.le.migration.error.report"),_(n,p.d.ContentMatched,"homemigrator.le.migration.content.matched.report"),n),u=new o.a(e.length),s=function(){u.decrement(),0===u.getValue()&&(r.alertService.success(a.a.getPhrase(r.lang,"generateCsvSuccess"))(),t())};i.each(e,(function(e){r.create({callback:s,resource:Q(c[e]),data:{},eventPrefix:"generate:migration:report:csv:".concat(e),errorHandler:r.alertService.error(a.a.getPhrase(r.lang,"generateCsvFail"))})}))}}])&&P(t.prototype,n),u&&P(t,u),d}(u.a),ne={customerMetaData:{dataServiceName:l.e.MIGRATION,eventName:"".concat(ee.CUSTOMER_METADATA,":sync"),getData:function(e){return e.getCustomerMetadata()},getInstance:function(e){return c.a.getInstance(l.g.MigrationVideo,e)},beforeOnBeforeRender:!0}}},function(e,t,n){"use strict";var r=n(1),o=n(701),i=n.n(o),a=n(10),c=function(e){return a.escapeExpression(e)};n.d(t,"a",(function(){return p}));var u=/&/g,s=/\W*/g,l=/\s+/g,f={className:"info-link"},p={wordsHighlighter:function(e,t){if(!e||!t||!t.length)return e;var n=p.escapeRegExp(t.join("%&%")).split("%&%");return e.replace(new RegExp("\\b("+n.join("|")+")\\b","gi"),'<span class="highlight">$&</span>')},escapeExpression:function(e){return c(e)},escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},slugify:function(e){if(e)return e.toLowerCase().replace(u,"and").replace(s," ").trim().replace(l,"-").substr(0,80)},linkifyText:function(e,t){if(e){var n=t?r.extend({},f,t):f;return i()(e,n)}},extractKeyPhrases:function(e,t,n,o){if(!e||!t||!t.length)return[];var i,a=e.toLowerCase(),c=[],u=function(t,r){var o=t-Math.floor(n/2-r),i=o;if(i<=0)return 0;for(;" "!==e[i-1]&&i<t;)i++;if(i<t)return i;for(i=o;" "!==e[i-1]&&i>0;)i--;return i},s=function(t,r){var o=e.length,i=t+Math.floor(n/2-r),a=i;if(a>=o)return o;for(;" "!==e[a+1]&&a>t;)a--;if(a>t)return a+1;for(a=i;" "!==e[a+1]&&a<o;)a++;return a+1};r.each(t,(function(e){for(var t=e.toLowerCase(),n=a.indexOf(t);-1!==n;)c.push([u(n,e.length),s(n+e.length,e.length)]),n=a.indexOf(t,n+1)})),c=r.uniq(r.sortBy(c,(function(e){return e[0]})),!0,(function(e){return"".concat(e[0],":").concat(e[1])})),o&&(c=c.slice(0,o));do{i=!1;for(var l=0;l<c.length-1;l++)c[l][1]<c[l+1][0]||(c[l][1]=c[l+1][0]-1,i=!0)}while(i);var f=[];return r.each(c,(function(t){var n=e.slice(t[0],t[1]).trim();t[0]>0&&(n="...".concat(n)),t[1]<e.length&&(n="".concat(n,"...")),f.push(n)})),f.filter((function(e){return r.some(t,(function(t){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}))}}},function(e,t,n){"use strict";n.r(t);var r=n(56);n.d(t,"AppLinkHelper",(function(){return r.a})),n.d(t,"AppLinkUtility",(function(){return r.b}));var o=n(312);n.d(t,"Application",(function(){return o.a}));var i=n(313);n.d(t,"AppRouter",(function(){return i.a}));var a=n(314);n.d(t,"Behavior",(function(){return a.a}));var c=n(147);n.d(t,"Collection",(function(){return c.a}));var u=n(253);n.d(t,"CollectionView",(function(){return u.a})),n.d(t,"ComponentCollection",(function(){return u.a}));var s=n(11);n.d(t,"Error",(function(){return s.a})),n.d(t,"ErrorHelper",(function(){return s.c})),n.d(t,"SilentError",(function(){return s.d}));var l=n(315);n.d(t,"LayoutView",(function(){return l.a}));var f=n(177);n.d(t,"NestedModel",(function(){return f.a}));var p=n(68);n.d(t,"Service",(function(){return p.a}));var h=n(81);n.d(t,"Model",(function(){return h.a}));var y=n(175);n.d(t,"View",(function(){return y.b})),n.d(t,"Component",(function(){return y.a}));var d=n(38);n.d(t,"EventNames",(function(){return d.a}));var b=n(316);n.d(t,"LayoutService",(function(){return b.a}));var v=n(218);n.d(t,"Middleware",(function(){return v.a}));var g=n(87);n.d(t,"LocationUtils",(function(){return g.a}));var m=n(317);n.d(t,"Shell",(function(){return m.a}));var w=n(318);for(var S in w)["AppLinkHelper","AppLinkUtility","Application","AppRouter","Behavior","Collection","CollectionView","ComponentCollection","Error","ErrorHelper","SilentError","LayoutView","NestedModel","Service","Model","View","Component","EventNames","LayoutService","Middleware","LocationUtils","Shell","default"].indexOf(S)<0&&function(e){n.d(t,e,(function(){return w[e]}))}(S)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),o=n(6),i=n(51),a=n(38),c=n(55),u=n(11);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(f,e);var t,n,i,s=d(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=s.call(this,e)).mergeOptions(e,[].concat(l(t.defaultProps),l(t.props||[]))),r.result(v(t),"name")||u.c.throw(new u.b("BaseApplication must define a name")),r.result(v(t),"channelName")||u.c.throw(new u.b("BaseApplication must define a channelName")),t.listenTo(t.getGlobalRadioChannel("popup"),a.a.SHOW_POPUP,t.onShowPopup),t.listenTo(t.getGlobalRadioChannel("alert"),"show:alert",t.onShowAlert),t}return t=f,(n=[{key:"defaultProps",get:function(){return["shell","layoutService"]}},{key:"getGlobalRadioChannel",value:function(e){var t=this.shell.getGlobalRadioChannels()[e.toUpperCase()];return t||u.c.throw(new u.b("Global channel ".concat(t," does not exist"))),o.Radio.channel(t)}},{key:"onLoadLayout",value:function(){if(this.layoutOptions&&this.layoutOptions.name){var e=r.extend({},this.layoutOptions.options||{},{store:this.shell.store});this.layout=this.layoutService.getLayout(r.extend(this.layoutOptions,{options:e})),this.layout||u.c.throw(new u.b("Layout: ".concat(this.layoutOptions.name," does not exist or was not registered"))),this.shell.showView(this.layout),this.triggerMethod("layout:loaded")}}},{key:"onShowPopup",value:function(e){this.layout.getRegion("popup")||u.c.throw(new u.b("Your application layout must define a popup region")),this.layout.showChildView("popup",e)}},{key:"onShowAlert",value:function(e){var t=e.ctor,n=e.collection,r=this.layout.getRegion("alert");r?r.hasView()||this.layout.showChildView("alert",new t({collection:n})):u.c.throw(new u.b("Your application layout must define an alert region"))}},{key:"setDefaultQueryParams",value:function(e){this.defaultQueryParams&&(e=r.extend(this.defaultQueryParams,e)),this.defaultQueryParams=e}},{key:"getAndClearDefaultQueryParams",value:function(){var e=this.defaultQueryParams;return delete this.defaultQueryParams,e||{}}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],h(g(f.prototype),"listenTo",this))}}])&&p(t.prototype,n),i&&p(t,i),f}(i.Application)},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r=n(1),o=n(6),i=n(51),a=n(56),c=n(55),u=n(218),s=n(38),l=n(11),f=n(87),p=n(14);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=S(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=/([A-Z])/g,C=/(^|:)(\w)/gi,k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(d,e);var t,n,i,h=m(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(t=h.call(this,e)).bindDisposal(),t.processInternalRoutes(),t.processExternalRoutes(),t.processAppLinks(),t}return t=d,(n=[{key:"bindDisposal",value:function(){var e=this;this.listenTo(p.a.SHELL,s.a.ROUTE,(function(t){t.application!==e.channelName&&e.destroyApp()}))}},{key:"addRouteLookup",value:function(e,t){var n=this;this.options.shell.addRouteLookup("".concat(this.channelName,":").concat(e),(function(r,o){return a.a.buildRoute(t,{application:n.channelName,action:e,args:r,params:o})}))}},{key:"processInternalRoutes",value:function(){var e=this;r.each(r.keys(this.appRoutes),(function(t){var n=e.appRoutes[t],o=e.toEventName(n);e.addRouteLookup(o,t),e.listenTo(e.channelName,o,(function(n,o){o&&o.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(n,{isAppRoute:!0},(function(){var i=r.extend({},e.controller.getAndClearDefaultQueryParams(),n.params);n.params=i,f.a.UpdateUrl(t,n,o)}))}))}))}},{key:"processExternalRoutes",value:function(){var e=this;this.externalRoutes&&r.each(r.keys(this.externalRoutes),(function(t){var n=e.externalRoutes[t],r=e.toEventName(n);e.addRouteLookup(r,t),e.listenTo(e.channelName,r,(function(e,t){t&&t.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),f.a.PageLoad(a.a.getHref(e))}))}))}},{key:"processAppLinks",value:function(){var e=this;this.appLinks&&r.each(this.appLinks,(function(t){var n=e.toEventName(t);e.listenTo(e.channelName,n,(function(t,n){n&&n.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(t,{isAppRoute:!1})}))}))}},{key:"executeRoute",value:function(e,t,n){var i=this;this.validateAppLink(e);var c=this.toMethodName(e.action);a.b.routingStarted();var f=o.Radio.channel(p.a.SHELL);if(this.options.shell.isNavLocked())return f.trigger(s.a.NAV_IS_LOCKED,e),void a.b.routingEnded();var h=new u.a;r.each(this.filters,(function(e){return h.use(e)})),h.go({appLink:e,shell:this.options.shell},(function(){f.trigger(s.a.ROUTE,e,t),i.createApp();var o=i.controller;if(r.isFunction(o[c])||(a.b.routingEnded(),l.c.throw(new l.b("".concat(c," does not exist on the ").concat(r.result(o,"name"),".")))),!1===o.triggerMethod("before:action"))return o.triggerMethod("action:cancelled"),void a.b.routingEnded();o.triggerMethod("load:layout"),o[c].apply(o,[].concat(y(e.args||[]),[e.params||{}])),r.isFunction(n)&&n(),a.b.routingEnded()}))}},{key:"createApp",value:function(){this.controller||(this.controller=new this.options.appConstructor(this.options.appOptions),this.controller.start())}},{key:"destroyApp",value:function(){this.controller&&(this.controller.destroy(),delete this.controller)}},{key:"_addAppRoute",value:function(e,t,n){var o=this;this.route(t,n,(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var a={application:o.channelName,action:o.toEventName(n),args:t.slice(0,t.length-1),params:f.a.DeserializeQueryParams(t[t.length-1])};o.executeRoute(a,{isAppRoute:!0},(function(){f.a.UpdateQuery(r.extend(o.controller.getAndClearDefaultQueryParams(),a.params))}))}))}},{key:"toEventName",value:function(e){return e.replace(O,":$1").toLowerCase()}},{key:"toMethodName",value:function(e){var t=e.replace(C,(function(e,t,n){return n.toUpperCase()}));return t[0].toLowerCase()+t.slice(1,t.length)}},{key:"validateAppLink",value:function(e){e.application&&e.action||(a.b.routingEnded(),l.c.throw(new l.b("Invalid AppLink")))}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],v(S(d.prototype),"listenTo",this))}}])&&b(t.prototype,n),i&&b(t,i),d}(i.AppRouter)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(51),o=n(55);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,r,i=l(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,(n=[{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Behavior)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(175),o=n(20),i=n(11);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,a=s(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,r=[{key:"getCacheKey",value:function(e){i.c.throw(new o.a("Must define getCacheKey for ".concat(this.name,".")))}}],(n=[{key:"unmountRegion",value:function(e){this.trigger("unmount:".concat(e))}}])&&c(t.prototype,n),r&&c(t,r),l}(r.b)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(1),o=n(51),i=n(55),a=n(11);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,o,c=f(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=c.call(this,e)).layouts={},t.requiredRegions=e.requiredRegions,t}return t=p,(n=[{key:"clearLayout",value:function(){this.currentLayout&&(this.currentLayout.destroy(),delete this.currentLayout,delete this.currentLayoutCacheKey)}},{key:"registerLayout",value:function(e,t){return this.checkRequiredRegions(t),this.layouts[e]=t,this}},{key:"getLayout",value:function(e){var t=e.name,n=e.options,r=void 0===n?{}:n;this.layouts[t]||a.c.throw(new a.b("".concat(t," was not registered as a template.")));var o=this.layouts[t].getCacheKey(r);return this.currentLayoutCacheKey===o&&this.currentLayout?(this.currentLayout.triggerMethod("layout:requested",r),this.currentLayout):(this.clearLayout(),this.currentLayoutCacheKey=o,this.currentLayout=new this.layouts[t](r),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}},{key:"checkRequiredRegions",value:function(e){r.each(this.requiredRegions,(function(t){r.has(r.result(e.prototype,"regions"),t)||a.c.throw(new a.b("Layout: ".concat(e.prototype.name," must define an ").concat(t," region.")))}))}},{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(h(p.prototype),"listenTo",this))}}])&&u(t.prototype,n),o&&u(t,o),p}(o.Object)},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(1),o=n(6),i=n(51),a=n(56),c=n(55),u=n(14),s=n(11),l=n(38),f=n(87);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}var S=function(){function e(t,n){g(this,e),this.application=t,this.options=n||{}}return w(e,[{key:"Application",get:function(){return this.application}},{key:"Options",get:function(){return this.options}}]),e}(),O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return w(n,[{key:"initialize",value:function(e){this.mergeOptions(e,["layoutService"]),this.applications=[],this.routeLookup={},this.shellState={navLock:!1,activeRoute:!1,currentAppLink:null},this.errorHandlers=[]}},{key:"bindListeners",value:function(){this.bindRouteLookup(),this.bindNavLockListeners(),this.bindAppLinkListeners(),this.bindErrorHandlers(),this.bindErrorListener()}},{key:"bindNavLockListeners",value:function(){var e=this;this.listenTo(u.a.SHELL,l.a.LOCK_NAV,(function(){return e.shellState.navLock=!0})),this.listenTo(u.a.SHELL,l.a.UNLOCK_NAV,(function(){return e.shellState.navLock=!1}))}},{key:"bindAppLinkListeners",value:function(){var e=this;this.listenTo(u.a.SHELL,l.a.ROUTING_START,(function(){return e.shellState.activeRoute=!0})),this.listenTo(u.a.SHELL,l.a.ROUTING_END,(function(){return e.shellState.activeRoute=!1})),this.listenTo(u.a.SHELL,l.a.ROUTE,(function(t){return e.shellState.currentAppLink=t}));var t=o.Radio.channel(u.a.SHELL);t.reply(l.a.HAS_ACTIVE_ROUTE,r.bind(this.hasActiveRoute,this)),t.reply(l.a.CURRENT_ROUTE,(function(){return e.shellState.currentAppLink}))}},{key:"bindErrorHandlers",value:function(){window.addEventListener("error",(function(){a.b.routingEnded()}))}},{key:"bindErrorListener",value:function(){var e=o.Radio.channel(u.a.SHELL);this.listenTo(e,l.a.ERROR,this.handleError)}},{key:"bindRouteLookup",value:function(){var e=this;o.Radio.channel(u.a.SHELL).reply(l.a.ROUTE_LOOKUP,(function(t,n,r){return!!e.routeLookup[t]&&e.routeLookup[t](n,r)}),this)}},{key:"addRouteLookup",value:function(e,t){this.routeLookup[e]=t}},{key:"registerApplication",value:function(e,t){return this.applications.push(new S(e,t)),this}},{key:"getGlobalRadioChannels",value:function(){return u.a}},{key:"isNavLocked",value:function(){return this.shellState.navLock}},{key:"start",value:function(e){var t=this;e||(e={}),this.runInitializationSteps(this,(function(){t.runStartUpSteps(t,e,(function(){h(v(n.prototype),"start",t).call(t,e)}))}))}},{key:"hasActiveRoute",value:function(){return this.shellState.activeRoute}},{key:"onStart",value:function(){var e=this;r.each(this.applications,(function(t){var n={appConstructor:t.Application,shell:e,appOptions:Object.assign({region:"",shell:e,layoutService:e.layoutService},t.Options)};new t.Application.router(n)})),this.bindListeners(),f.a.StartHistory()}},{key:"addInitializationStep",value:function(e){var t;return this.runInitializationSteps=(t=this.runInitializationSteps,function(n,r){return t(n,(function(){return e(n,r)}))}),this}},{key:"runInitializationSteps",value:function(e,t){t(e)}},{key:"addStartUpStep",value:function(e){var t;return this.runStartUpSteps=(t=this.runStartUpSteps,function(n,r,o){return t(n,r,(function(){return e(n,r,o)}))}),this}},{key:"runStartUpSteps",value:function(e,t,n){n(e,t)}},{key:"registerLayout",value:function(e,t){return this.layoutService.registerLayout(e,t),this}},{key:"registerErrorHandler",value:function(e,t){return e||s.c.throw(new s.b("An error must have a name in order to register a handler for it.")),r.any(this.errorHandlers,(function(t){return t.errorType===e}))&&s.c.throw(new s.b("An error handler for ".concat(e.prototype.name," has already been defined."))),this.errorHandlers.push({errorType:e,handler:t}),this}},{key:"handleError",value:function(e){var t=r.find(this.errorHandlers,(function(t){return e instanceof t.errorType}));t&&t.handler&&t.handler(e)}},{key:"registerStore",value:function(e){this.store=e}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],h(v(n.prototype),"listenTo",this))}}]),n}(i.Application)},function(e,t){},function(e,t,n){e.exports={banner:"_16p9Y",actions:"KoZV-"}},function(e,t,n){e.exports={containerWithBottomBorder:"_3pMnf",tabContainer:"_3DDqe",publisherArchiveAppLink:"WtJIT",reviewErroredAppLink:"_2P6wN",none:"_36_Ky",publisherArchive:"oHXCU",migrationErrors:"_Ztdf",svgContainer:"edUQE"}},function(e,t,n){e.exports={svgContainer:"O3FnZ",sortingRow:"Rbj8Y",bulkCheckbox:"_2mKzS",sortOption:"_3ajGP"}},function(e,t,n){e.exports={viewLink:"_2s0QU",viewCount:"_1ncwl",faded:"_2G1C1",bulkCheckbox:"_225JZ",videoRow:"fFRMW",videoTitle:"_3YCJO",errorIconContainer:"_37_lU",categoryName:"_3gjN2"}},function(e,t,n){e.exports={currentHeader:"b4Mqw",header:"_2OV3l",subheader:"_6H8te",back:"_3RKrR",backSvgContainer:"_1T015",checkSvgContainer:"_3Q3UJ",checkSvgContainerChecked:"ZsxkB",svg:"uKtsP"}},function(e,t,n){"use strict";var r,o,i,a,c,u,s,l,f,p,h,y,d,b,v,g,m,w,S,O,C,k;n.d(t,"q",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"k",(function(){return i})),n.d(t,"r",(function(){return a})),n.d(t,"m",(function(){return c})),n.d(t,"l",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"n",(function(){return p})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return b})),n.d(t,"j",(function(){return v})),n.d(t,"p",(function(){return g})),n.d(t,"a",(function(){return m})),n.d(t,"f",(function(){return S})),n.d(t,"i",(function(){return O})),n.d(t,"o",(function(){return C})),n.d(t,"g",(function(){return k})),function(e){e.Stream="cv_product_stream",e.StreamRaw="cv_product_stream_raw",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.Print="cv_product_print",e.Copy="cv_product_copy",e.Activate="cv_product_activate",e.VerifyEmail="cv_product_verify_email",e.ChangePassword="cv_product_change_password",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning"}(r||(r={})),function(e){e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Restriction="restriction",e.Interactive="interactive",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.StaffRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Playlists="playlists",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.Upload="upload",e.SearchResults="search_results",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url",e.SocialShare="social_share"}(o||(o={})),function(e){e.TopNav="top_nav",e.LeftNav="left_nav",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.ExpandableVideoThumbnail="expandable_video_thumbnail",e.VideoItemPreview="video_item_preview",e.VideoDetails="video_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.StaffRequestDetails="staff_request_details",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.SeriesListItem="series_list_item",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.FeaturedSeriesSearchResult="featured_series_search_result",e.StaffManager="staff_manager",e.StaffManagerListItem="staff_manager_list_item",e.StudentManager="student_manager",e.StudentManagerListItem="student_manager_list_item",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ClassroomOverview="classroom_overview",e.ClassroomOverviewStudentListItem="classroom_overview_student_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.PreviewInteractive="preview_interactive",e.PreviewInteractiveQuestions="preview_interactive_questions",e.EditInteractive="edit_interactive",e.PlaySharedInteractive="play_shared_interactive",e.InteractiveListItem="interactive_list_item",e.DeleteInteractive="delete_interactive",e.PlayPage="play_page",e.Player="player",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.CreateClipPlayer="create_clip_player",e.PlaySharedClip="play_shared_clip",e.ClipListItem="clip_list_item",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.ClassificationHero="classification_hero",e.Dashboard="dashboard",e.ProductBanner="product_banner",e.Settings="settings"}(i||(i={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(a||(a={})),function(e){e.PageLoad="page_load"}(c||(c={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(u||(u={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(s||(s={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(l||(l={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(f||(f={})),function(e){e.Start="start",e.Finish="finish",e.Terminate="terminate",e.Play="play",e.Pause="pause",e.Playback="playback",e.NextChapter="next_chapter",e.PreviousChapter="previous_chapter",e.FullScreenEnter="full_screen_enter",e.FullScreenExit="full_screen_exit"}(p||(p={})),function(e){e.Embedded="embedded"}(h||(h={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Title="title",e.ToggleHideValidListings="toggle_hide_valid_listings",e.LaunchImmersiveReader="launch_immersive_reader",e.CopyEmbedHtml="copy_embed_html",e.Close="close",e.Open="open",e.Button="button",e.Link="link",e.Tile="tile",e.Thumbnail="thumbnail",e.Cover="cover",e.TallPoster="tall_poster",e.Slide="slide",e.ExternalLink="external_link",e.ViewStudentWorkspace="view_student_workspace"}(y||(y={})),function(e){e.FeatureUserChannelVideo="feature_user_channel_video",e.RemoveFromUserChannelPlaylist="remove_from_user_channel_playlist",e.ShareClip="share_clip",e.ViewOriginalVideo="view_original_video",e.ShareInteractive="share_interactive",e.DeleteInteractiveVideo="delete_interactive_video",e.CopyInteractiveVideo="copy_interactive_video",e.EditInteractiveVideo="edit_interactive_video",e.PrintAsWorksheet="print_as_worksheet",e.PreviewInteractiveVideo="preview_interactive_video",e.ViewResults="view_results",e.MoveToAnotherFolder="move_to_another_folder",e.CreateInteractiveVideo="create_interactive_video",e.ShareVideo="share_video",e.EditVideo="edit_video",e.DownloadVideo="download_video",e.AddToExchange="add_to_exchange",e.AddToUserChannel="add_to_user_channel",e.CreateClip="create_clip",e.FlagVideo="flag_video",e.AddToLibrary="add_to_library",e.AddToWorkspace="add_to_workspace",e.AddToPlaylist="add_to_playlist",e.RemoveFromPlaylist="remove_from_playlist",e.AddCurriculumLink="add_curriculum_link",e.ViewCurriculumLinks="view_curriculum_links",e.OpenInCurator="open_in_curator",e.ManageVideoAccess="manage_video_access",e.Approve="approve",e.AddToLocalCache="add_to_local_cache",e.OpenInLibraryEditor="open_in_library_editor",e.PlayClip="play_clip",e.EditClip="edit_clip",e.DeleteClip="delete_clip",e.EditVideoDetails="edit_video_details",e.DeleteVideo="delete_video"}(d||(d={})),function(e){e.LibraryReview="library_review"}(b||(b={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(v||(v={})),function(e){e.Edit="edit"}(g||(g={})),function(e){e.Image="image",e.User="user",e.Playlist="playlist",e.Link="link",e.Avatar="avatar"}(m||(m={})),function(e){e.On="on",e.Off="off"}(w||(w={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(S||(S={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(O||(O={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags",e.Subjects="subjects"}(C||(C={})),function(e){e[e.V1=1]="V1",e[e.V2=2]="V2"}(k||(k={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(182);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"model",get:function(){return o.a}},{key:"parse",value:function(e){return e.data||e}},{key:"comparator",get:function(){return"startTime"}}])&&c(t.prototype,n),r&&c(t,r),l}(r.a.Collection)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Model)},function(e,t,n){"use strict";t.__esModule=!0;t.default={nbsp:"Ā "}},function(e,t,n){"use strict";function r(e){this.named=e}t.__esModule=!0;var o=/^#[xX]([A-Fa-f0-9]+)$/,i=/^#([0-9]+)$/,a=/^([A-Za-z0-9]+)$/;r.prototype.parse=function(e){if(e){var t=e.match(o);return t?"&#x"+t[1]+";":(t=e.match(i))?"&#"+t[1]+";":(t=e.match(a))?this.named[t[1]]||"&"+t[1]+";":void 0}},t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var r=n(755);function o(e,t){this.delegate=e,this.entityParser=t,this.state=null,this.input=null,this.index=-1,this.line=-1,this.column=-1,this.tagLine=-1,this.tagColumn=-1,this.reset()}o.prototype={reset:function(){this.state="beforeData",this.input="",this.index=0,this.line=1,this.column=0,this.tagLine=-1,this.tagColumn=-1,this.delegate.reset()},tokenize:function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},tokenizePart:function(e){for(this.input+=(0,r.preprocessInput)(e);this.index<this.input.length;)this.states[this.state].call(this)},tokenizeEOF:function(){this.flushData()},flushData:function(){"data"===this.state&&(this.delegate.finishData(),this.state="beforeData")},peek:function(){return this.input.charAt(this.index)},consume:function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},consumeCharRef:function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),n=this.entityParser.parse(t);if(n){for(var r=t.length;r;)this.consume(),r--;return this.consume(),n}}},markTagStart:function(){this.tagLine=this.line,this.tagColumn=this.column,this.delegate.tagOpen&&this.delegate.tagOpen()},states:{beforeData:function(){"<"===this.peek()?(this.state="tagOpen",this.markTagStart(),this.consume()):(this.state="data",this.delegate.beginData())},data:function(){var e=this.peek();"<"===e?(this.delegate.finishData(),this.state="tagOpen",this.markTagStart(),this.consume()):"&"===e?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e))},tagOpen:function(){var e=this.consume();"!"===e?this.state="markupDeclaration":"/"===e?this.state="endTagOpen":(0,r.isAlpha)(e)&&(this.state="tagName",this.delegate.beginStartTag(),this.delegate.appendToTagName(e.toLowerCase()))},markupDeclaration:function(){"-"===this.consume()&&"-"===this.input.charAt(this.index)&&(this.consume(),this.state="commentStart",this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.state="commentStartDash":">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData(e),this.state="comment")},commentStartDash:function(){var e=this.consume();"-"===e?this.state="commentEnd":">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("-"),this.state="comment")},comment:function(){var e=this.consume();"-"===e?this.state="commentEndDash":this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.state="commentEnd":(this.delegate.appendToCommentData("-"+e),this.state="comment")},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("--"+e),this.state="comment")},tagName:function(){var e=this.consume();(0,r.isSpace)(e)?this.state="beforeAttributeName":"/"===e?this.state="selfClosingStartTag":">"===e?(this.delegate.finishTag(),this.state="beforeData"):this.delegate.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();(0,r.isSpace)(e)?this.consume():"/"===e?(this.state="selfClosingStartTag",this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeName",this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},attributeName:function(){var e=this.peek();(0,r.isSpace)(e)?(this.state="afterAttributeName",this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===e?(this.state="beforeAttributeValue",this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();(0,r.isSpace)(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===e?(this.consume(),this.state="beforeAttributeValue"):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="attributeName",this.delegate.beginAttribute(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();(0,r.isSpace)(e)?this.consume():'"'===e?(this.state="attributeValueDoubleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.state="attributeValueSingleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeValueUnquoted",this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef('"')||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef("'")||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();(0,r.isSpace)(e)?(this.delegate.finishAttributeValue(),this.consume(),this.state="beforeAttributeName"):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef(">")||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();(0,r.isSpace)(e)?(this.consume(),this.state="beforeAttributeName"):"/"===e?(this.consume(),this.state="selfClosingStartTag"):">"===e?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},endTagOpen:function(){var e=this.consume();(0,r.isAlpha)(e)&&(this.state="tagName",this.delegate.beginEndTag(),this.delegate.appendToTagName(e.toLowerCase()))}}},t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(344),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){this.token=null,this.startLine=1,this.startColumn=0,this.options=t||{},this.tokenizer=new i.default(this,e)}a.prototype={tokenize:function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},tokenizePart:function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},tokenizeEOF:function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},reset:function(){this.token=null,this.startLine=1,this.startColumn=0},addLocInfo:function(){this.options.loc&&(this.token.loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},beginData:function(){this.token={type:"Chars",chars:""},this.tokens.push(this.token)},appendToData:function(e){this.token.chars+=e},finishData:function(){this.addLocInfo()},beginComment:function(){this.token={type:"Comment",chars:""},this.tokens.push(this.token)},appendToCommentData:function(e){this.token.chars+=e},finishComment:function(){this.addLocInfo()},beginStartTag:function(){this.token={type:"StartTag",tagName:"",attributes:[],selfClosing:!1},this.tokens.push(this.token)},beginEndTag:function(){this.token={type:"EndTag",tagName:""},this.tokens.push(this.token)},finishTag:function(){this.addLocInfo()},markTagAsSelfClosing:function(){this.token.selfClosing=!0},appendToTagName:function(e){this.token.tagName+=e},beginAttribute:function(){this._currentAttribute=["","",null],this.token.attributes.push(this._currentAttribute)},appendToAttributeName:function(e){this._currentAttribute[0]+=e},beginAttributeValue:function(e){this._currentAttribute[2]=e},appendToAttributeValue:function(e){this._currentAttribute[1]=this._currentAttribute[1]||"",this._currentAttribute[1]+=e},finishAttributeValue:function(){}},t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(195),o=c(n(757)),i=c(n(758)),a=c(n(759));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var u=function(e){return a.run(i.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e),r=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||t&&i.type!==t||r.push(i.toObject())}return r},t.inherits=r.inherits,t.options=o,t.parser=a,t.scanner=i,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=u},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(195);var o=function(e){this.j=[],this.T=e||null};o.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],r=n[0],o=n[1];if(this.test(e,r))return o}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var i=(0,r.inherits)(o,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,r.inherits)(o,(function(e){this.j=[],this.T=e||null}),{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=i,t.TokenState=a,t.stateify=function(e,t,n,r){for(var o=0,a=e.length,c=t,u=[],s=void 0;o<a&&(s=c.next(e[o]));)c=s,o++;if(o>=a)return[];for(;o<a-1;)s=new i(r),u.push(s),c.on(e[o],s),c=s,o++;return s=new i(n),u.push(s),c.on(e[a-1],s),u}},function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="result px-2 py-1"><span class="query-text">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):i)+"</span></div>>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="tt-pending p-2"><div class="partial-text">Searching...</div></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="tt-not-found p-2">Could not find any matches</div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="tt-not-found empty"></div>'},useData:!0})},function(e,t){e.exports={prefix:"cv",iconName:"add-to-playlist",icon:["24","24",[],"","M20.1 16.4h1.8a.6.6 0 1 1 0 1.2h-1.8v1.8a.6.6 0 1 1-1.2 0v-1.8h-1.8a.6.6 0 1 1 0-1.2h1.8v-1.8a.6.6 0 0 1 1.2 0v1.8zM10.5 9a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm5.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V12a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16zm-8-2.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0-7a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM8 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close",icon:["24","24",[],"","M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"]}},function(e,t){e.exports={prefix:"cv",iconName:"delete",icon:["24","24",[],"","M14.5 7h4a.5.5 0 1 1 0 1h-1.14a1 1 0 0 1-.005.09l-.909 10a1 1 0 0 1-.996.91h-6.9a1 1 0 0 1-.996-.91l-.91-10A1.013 1.013 0 0 1 6.64 8H5.5a.5.5 0 0 1 0-1h4A1.5 1.5 0 0 1 11 5.5h2A1.5 1.5 0 0 1 14.5 7zm-1 0a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5h3zm-4 3a.463.463 0 0 0-.462.499L9.462 16a.54.54 0 0 0 .574.498.463.463 0 0 0 .426-.498l-.424-5.502A.54.54 0 0 0 9.5 10zm2.5 0a.5.5 0 0 0-.5.5V16a.5.5 0 1 0 1 0v-5.5a.5.5 0 0 0-.5-.5zm2.5 0a.54.54 0 0 0-.538.499L13.538 16a.463.463 0 0 0 .462.5.54.54 0 0 0 .538-.499l.424-5.502A.463.463 0 0 0 14.5 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit",icon:["24","24",[],"","M7.636 17.834l8.746-8.745-1.414-1.414-8.8 8.8 1.468 1.36zm-2.42.973c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zm2.614-1.906l.707.707a1.5 1.5 0 0 1 0 2.121L7.45 19.435c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L16.167 5.06a1.5 1.5 0 0 1 2.122 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"expand",icon:["24","24",[],"","M14.06 21.28l-.353.354-.707-.707.354-.354 7.22-7.22.353-.353.707.707-.354.354-7.22 7.22zm4 .465l-.353.353-.707-.707.354-.353 3.684-3.684.353-.354.707.707-.353.354-3.684 3.684z"]}},function(e,t){e.exports={prefix:"cv",iconName:"minus",icon:["24","24",[],"",""]}},function(e,t){e.exports={prefix:"cv",iconName:"more",icon:["24","24",[],"","M12 13.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 5.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"new-window",icon:["24","24",[],"","M17.395 5.526h-3.244a.763.763 0 0 1 0-1.526h5.086a.76.76 0 0 1 .763.763v5.086a.763.763 0 0 1-1.526 0V6.605l-5.172 5.172a.763.763 0 1 1-1.079-1.08l5.172-5.171zM8.5 5.5a.75.75 0 0 1 0 1.5H6.75a.25.25 0 0 0-.25.25v10c0 .138.112.25.25.25h10a.25.25 0 0 0 .25-.25V15.5a.75.75 0 1 1 1.5 0v1.75A1.75 1.75 0 0 1 16.75 19h-10A1.75 1.75 0 0 1 5 17.25v-10c0-.966.784-1.75 1.75-1.75H8.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"plus",icon:["24","24",[],"","M11 11V7.002a.999.999 0 1 1 2 0V11h3.998a.999.999 0 1 1 0 2H13v3.998a.999.999 0 1 1-2 0V13H7.002a.999.999 0 1 1 0-2H11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"preview",icon:["24","24",[],"","M17.278 17.333a3.056 3.056 0 1 0 0-6.11 3.056 3.056 0 0 0 0 6.11zm3.53-.637c.03.022.06.048.087.076l1.729 1.728a.794.794 0 1 1-1.124 1.124l-1.728-1.729a.801.801 0 0 1-.076-.088 4.278 4.278 0 1 1 1.112-1.112zM7.713 9C7.32 9 7 8.776 7 8.5s.32-.5.714-.5h8.572c.394 0 .714.224.714.5s-.32.5-.714.5H7.714zm-.357 3.5C7.16 12.5 7 12.276 7 12s.16-.5.357-.5h4.286c.197 0 .357.224.357.5s-.16.5-.357.5H7.357zM7.5 16a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm8.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V9a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"search",icon:["24","24",[],"","M15.803 14.306l3.917 3.954a1 1 0 0 1-.007 1.417l-.018.018-.018.018a.997.997 0 0 1-1.41 0l-3.918-3.953-.3.214c-1.14.713-2.323 1.07-3.549 1.07-1.796 0-3.328-.642-4.597-1.925C4.634 13.836 4 12.296 4 10.5c0-1.796.634-3.328 1.903-4.597C7.172 4.634 8.704 4 10.5 4c1.796 0 3.329.634 4.597 1.903 1.27 1.269 1.904 2.801 1.904 4.597a6.447 6.447 0 0 1-1.027 3.507l-.17.3zM10.5 5.368c-1.425 0-2.637.5-3.635 1.497-.998.998-1.497 2.21-1.497 3.635 0 1.426.5 2.637 1.497 3.635.998.998 2.21 1.497 3.635 1.497 1.426 0 2.637-.499 3.635-1.497 1.027-1.026 1.54-2.238 1.54-3.635 0-1.397-.513-2.608-1.54-3.635-.998-.998-2.21-1.497-3.635-1.497z"]}},function(e,t){e.exports={prefix:"cv",iconName:"share",icon:["24","24",[],"","M15.091 15.463a2.187 2.187 0 1 1-.392.782L8.91 13.35a2.187 2.187 0 1 1-.1-2.82l5.88-2.812a2.187 2.187 0 1 1 .378.79l-5.811 2.778a2.184 2.184 0 0 1 .045 1.281l5.79 2.896z"]}},function(e,t){e.exports={prefix:"cv",iconName:"upload",icon:["24","24",[],"","M5.5 18.5h13v-2.75a.75.75 0 1 1 1.5 0V19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3.25a.75.75 0 1 1 1.5 0v2.75zm7.249-11.796v8.57c0 .401-.35.726-.781.726-.432 0-.781-.325-.781-.725V6.704L7.89 9.658a.869.869 0 0 1-1.145 0 .692.692 0 0 1-.009-1.05l4.66-4.174a.869.869 0 0 1 1.144 0l4.66 4.174a.69.69 0 0 1 0 1.042.871.871 0 0 1-1.155.008L12.75 6.704z"]}},function(e,t){e.exports={prefix:"cv",iconName:"down",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"right",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"up-down",icon:["24","24",[],"","M8 14l8 .014L12 18l-4-4zm0-4l4-4 4 3.986L8 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"no-edit",icon:["24","24",[],"","M11.321 14.15l.707.707-4.578 4.578c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L9.2 12.028l.707.707-3.739 3.74 1.468 1.36 3.685-3.685zm2.828-2.829l2.233-2.232-1.414-1.414-2.233 2.232-.707-.707 4.14-4.14a1.5 1.5 0 0 1 2.12 0l.708.708a1.5 1.5 0 0 1 0 2.121l-4.14 4.14-.707-.708zm-8.933 7.486c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zM4.646 5.355a.5.5 0 0 1 .708-.708L19.496 18.79a.5.5 0 1 1-.707.707L4.646 5.354z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit-clickview",icon:["20","20",[],"","M17.6404852,5.71727477 L18.2297408,6.30653042 C18.7178962,6.79468579 18.7178962,7.58614201 18.2297408,8.07429738 L8.60812289,17.6959153 C6.71135346,18.0295451 5.75309028,18.1864816 5.73333333,18.1667246 C5.71357639,18.1469677 5.88616537,17.2043571 6.25110029,15.3388927 L15.8727182,5.71727477 C16.3608736,5.22911941 17.1523298,5.22911941 17.6404852,5.71727477 Z M8.7636789,16.361848 L16.05144,9.07408693 L14.8729287,7.89557563 L7.54002172,15.2284826 L8.7636789,16.361848 Z M6.74626541,17.1725049 C7.12145752,17.1092038 7.58975231,17.0283895 8.15085565,16.9301078 L6.99799308,15.862313 C6.89682248,16.3819093 6.8128974,16.8187273 6.74626541,17.1725049 Z M15.4621843,7.30631998 L16.6406956,8.48483128 L17.6404852,7.48504173 C17.8032036,7.32232327 17.8032036,7.05850453 17.6404852,6.89578608 L17.0512295,6.30653042 C16.8885111,6.14381197 16.6246923,6.14381197 16.4619739,6.30653042 L15.4621843,7.30631998 Z M6.33566019,14.9908489 C6.2812423,14.9851574 6.22594201,14.9756491 6.16991424,14.9622805 C5.78045547,14.8577915 5.5109401,14.5829916 5.41684139,14.197065 L5.16924027,13.2272939 L4.21481414,13.4992408 C3.82064978,13.614606 3.44283804,13.5120571 3.186267,13.236167 C2.88681965,12.9560388 2.78427075,12.578227 2.89864522,12.187493 L3.17158282,11.2296365 L2.20423564,10.9826478 C1.82188543,10.8870603 1.55144636,10.6218219 1.4331146,10.2152085 C1.34005988,9.82437875 1.44481708,9.45772856 1.72601896,9.19546209 L2.43808286,8.49887783 L1.73450689,7.81040417 C1.44481706,7.54002697 1.34005989,7.17337687 1.439649,6.75790801 C1.55144635,6.37593371 1.82188539,6.11069542 2.20181175,6.01572028 L3.17158282,5.76811916 L2.89963593,4.81369299 C2.78427075,4.41952863 2.88681965,4.04171689 3.16270985,3.78514587 C3.442838,3.48569854 3.82064974,3.38314964 4.2113838,3.49752411 L5.16924027,3.77046171 L5.41554008,2.80590417 C5.51183431,2.41109782 5.78619407,2.13673807 6.15902913,2.0463353 C6.55319349,1.93097012 6.93100525,2.03351902 7.20467421,2.32619001 L7.89999894,3.04211696 L8.594506,2.32703389 C8.87243071,2.03952554 9.24209506,1.93918808 9.61899753,2.04044384 C10.0138038,2.13673809 10.2881636,2.41109789 10.3831565,2.80069064 L10.6307576,3.77046171 L11.5851838,3.49851482 C11.9793481,3.38314964 12.3571599,3.48569854 12.6137309,3.76158875 C12.9131782,4.04171689 13.0157271,4.41952857 12.9013527,4.8102627 L12.6284151,5.76811916 L13.5957624,6.01510789 C13.9781125,6.11069542 14.2485515,6.37593369 14.3668833,6.78254721 C14.3761095,6.82129727 14.3833912,6.85980963 14.3887491,6.89800613 L12.4311686,8.86525019 C12.2885501,8.50246788 12.3664513,8.07377489 12.6626209,7.7840438 L13.3831727,7.07934901 C13.4057811,7.05824779 13.4051218,7.06055538 13.4006115,7.03880681 C13.3874896,6.9939735 13.3872742,6.99376225 13.3508029,6.98463799 L12.3810318,6.73703687 L12.3543769,6.72983797 C11.8232342,6.57849086 11.5153491,6.0252236 11.6666962,5.49408097 L11.9406245,4.53279433 C11.9501787,4.50015106 11.9538346,4.51362027 11.9070166,4.46830299 C11.8852565,4.44504217 11.8987257,4.44869811 11.8626522,4.45924293 L10.9047957,4.73218053 L10.8781408,4.73937942 C10.3430223,4.87600541 9.79846586,4.55296343 9.66183987,4.01784495 L9.41293742,3.04286026 C9.40513226,3.0108591 9.4140425,3.01976934 9.37095513,3.00912543 C9.33213613,2.99871057 9.33745796,2.99726608 9.31267674,3.02289983 L8.61735201,3.73882678 L8.59670876,3.75947002 C8.2005256,4.14425223 7.56742808,4.13500994 7.18264587,3.73882678 L6.48086195,3.01612347 C6.45910183,2.99286265 6.4725711,2.9965186 6.4179566,3.01196417 C6.38595535,3.01976935 6.39486559,3.01085911 6.3857591,3.04807388 L6.13815798,4.01784495 L6.13095909,4.04449986 C5.97961199,4.5756425 5.42634475,4.88352762 4.89520211,4.73218053 L3.93391535,4.45825223 C3.90127212,4.44869811 3.91474139,4.44504217 3.86942412,4.49186014 C3.84616328,4.51362028 3.84981922,4.50015102 3.86036404,4.53622453 L4.13330164,5.494081 L4.14050053,5.52073591 C4.27712653,6.05585439 3.95408454,6.60041087 3.41896607,6.73703687 L2.44677117,6.98525039 C2.41272371,6.99376225 2.41250834,6.99397349 2.40592081,7.01416766 C2.3948761,7.06055542 2.39421677,7.05824776 2.42531312,7.08745955 L3.13737702,7.78404381 L3.15291688,7.79958367 C3.53912638,8.1943756 3.53216895,8.82750235 3.13737702,9.21371185 L2.41682511,9.91840678 C2.39421677,9.93950789 2.3948761,9.93720022 2.3993864,9.95894886 C2.41250834,10.0037822 2.41272371,10.0039934 2.44919499,10.0131176 L3.41896606,10.2607188 L3.44562098,10.2679177 C3.97676362,10.4192648 4.28464874,10.972532 4.13330164,11.5036746 L3.85937334,12.4649614 C3.84981922,12.4976046 3.84616328,12.4841354 3.89298124,12.5294526 C3.91474137,12.5527135 3.90127209,12.5490575 3.93734565,12.5385127 L4.89520212,12.2655751 L4.92185702,12.2583762 C5.4569755,12.1217502 6.00153199,12.4447922 6.13815798,12.9799107 L6.38706042,13.9548953 C6.3957598,13.9905628 6.39169395,13.9864172 6.41528883,13.9929559 C6.46167656,14.0040006 6.45936885,14.00466 6.48858067,13.9735636 L7.18516493,13.2614997 L7.20070477,13.2459599 C7.4952939,12.9577749 7.92258715,12.888504 8.28097421,13.0359319 L6.33566019,14.9908489 Z M6.70489207,8.77616163 L9.31429327,6.16676041 C9.44212761,6.03892605 9.65593967,6.03389908 9.78471434,6.16267377 L10.2815938,6.65955323 C10.4116803,6.78963968 10.4085388,6.9989426 10.2775071,7.12997428 L6.95925927,10.4482222 C6.89767261,10.5098088 6.81613041,10.5428917 6.73375541,10.5462414 C6.63512454,10.5601257 6.53103126,10.5287286 6.45266973,10.450367 L4.80169873,8.79939603 C4.67185163,8.66954896 4.66967053,8.4612063 4.79975698,8.33111983 L5.29663643,7.83424043 C5.42541113,7.7054657 5.63211299,7.70338256 5.76491261,7.83618216 L6.70489207,8.77616163 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"share2",icon:["24","24",[],"","M19.4216766,5.00521391 C19.613919,4.98125611 19.7682745,5.03986249 19.8847432,5.18103303 C20.0012119,5.32220356 20.0294106,5.48346256 19.9693393,5.66481001 L19.9693393,5.66481001 L14.1956074,19.738196 C14.0955154,19.912732 13.9481454,20 13.7534974,20 C13.5588494,20 13.4140159,19.912732 13.3189969,19.738196 L13.3189969,19.738196 L9.93477602,13.4796112 L4.20437042,9.12353139 C4.02183531,8.9778479 3.96157474,8.8005141 4.02358872,8.59152998 C4.0856027,8.38254586 4.23262042,8.26120315 4.46464188,8.22750185 L4.46464188,8.22750185 Z M18.2074971,7.35312765 L10.9727276,13.3209485 L13.6956405,18.351754 L18.2074971,7.35312765 Z M17.8703206,6.3505542 L5.65837825,8.98552539 L10.3489793,12.5526101 L17.8703206,6.3505542 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"download",icon:["24","24",[],"","M22.875,21.7188816 C23.4963203,21.7188816 24,22.2225612 24,22.8438816 L24,22.875 C24,23.4963203 23.4963203,24 22.875,24 L1.125,24 C0.503679656,24 7.6089797e-17,23.4963203 0,22.875 L0,22.8438816 C-7.6089797e-17,22.2225612 0.503679656,21.7188816 1.125,21.7188816 L22.875,21.7188816 Z M11.9516789,-2.48689958e-14 C12.5988876,-2.48689958e-14 13.1235539,0.493928188 13.1235539,1.10321949 L13.1235539,1.10321949 L13.1235539,14.1368596 L18.0679725,9.64530994 C18.5490293,9.20831407 19.3049757,9.20831407 19.7989179,9.65701518 C19.8124183,9.66927902 19.8256031,9.68185506 19.8384606,9.69473209 C20.2752366,10.132172 20.2575328,10.8245158 19.7989179,11.2411252 L19.7989179,11.2411252 L12.8107089,17.5892706 C12.3296521,18.0262665 11.5737057,18.0262665 11.0926489,17.5892706 L11.0926489,17.5892706 L4.10443991,11.2411252 L4.10443991,11.2411252 L4.06489726,11.2034083 C3.6281212,10.7659684 3.64582505,10.0736246 4.11732536,9.64530994 C4.59838215,9.20831407 5.35432855,9.20831407 5.83538535,9.64530994 L5.83538535,9.64530994 L10.7798039,14.1368596 L10.7798039,1.10321949 C10.7798039,0.493928188 11.3044702,-2.48689958e-14 11.9516789,-2.48689958e-14 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"print",icon:["24","24",[],"","M16.3125,0 C18.2510156,0 19.828125,1.57710938 19.828125,3.515625 L19.828125,3.515625 L19.828125,6.046875 L20.484375,6.046875 C22.4228906,6.046875 24,7.62398438 24,9.5625 L24,9.5625 L24,15.1875 C24,17.1260156 22.4228906,18.703125 20.484375,18.703125 L20.484375,18.703125 L19.828125,18.703125 L19.828125,21.890625 C19.828125,23.0537344 18.8818594,24 17.71875,24 L17.71875,24 L6.28125,24 C5.11814062,24 4.171875,23.0537344 4.171875,21.890625 L4.171875,21.890625 L4.171875,18.703125 L3.515625,18.703125 C1.57710938,18.703125 0,17.1260156 0,15.1875 L0,15.1875 L0,9.5625 C0,7.62398438 1.57710938,6.046875 3.515625,6.046875 L3.515625,6.046875 L4.171875,6.046875 L4.171875,3.515625 C4.171875,1.57710938 5.74898438,0 7.6875,0 L7.6875,0 Z M18.421875,14.953125 L5.578125,14.953125 L5.578125,21.890625 C5.578125,22.2783281 5.89354688,22.59375 6.28125,22.59375 L6.28125,22.59375 L17.71875,22.59375 C18.1064531,22.59375 18.421875,22.2783281 18.421875,21.890625 L18.421875,21.890625 L18.421875,14.953125 Z M15.3181818,20 C15.6947273,20 16,20.2238667 16,20.5 C16,20.7761333 15.6947273,21 15.3181818,21 L15.3181818,21 L11.6818182,21 C11.3052727,21 11,20.7761333 11,20.5 C11,20.2238667 11.3052727,20 11.6818182,20 L11.6818182,20 Z M15.3181818,17 C15.6947273,17 16,17.2238667 16,17.5 C16,17.7761333 15.6947273,18 15.3181818,18 L15.3181818,18 L11.6818182,18 C11.3052727,18 11,17.7761333 11,17.5 C11,17.2238667 11.3052727,17 11.6818182,17 L11.6818182,17 Z M20.484375,7.453125 L3.515625,7.453125 C2.35251563,7.453125 1.40625,8.39939063 1.40625,9.5625 L1.40625,9.5625 L1.40625,15.1875 C1.40625,16.3506094 2.35251563,17.296875 3.515625,17.296875 L3.515625,17.296875 L4.171875,17.296875 L4.171875,14.953125 L3.75,14.953125 C3.3616875,14.953125 3.046875,14.6383125 3.046875,14.25 C3.046875,13.8616875 3.3616875,13.546875 3.75,13.546875 L3.75,13.546875 L20.25,13.546875 C20.6383125,13.546875 20.953125,13.8616875 20.953125,14.25 C20.953125,14.6383125 20.6383125,14.953125 20.25,14.953125 L20.25,14.953125 L19.828125,14.953125 L19.828125,17.296875 L20.484375,17.296875 C21.6474844,17.296875 22.59375,16.3506094 22.59375,15.1875 L22.59375,15.1875 L22.59375,9.5625 C22.59375,8.39939063 21.6474844,7.453125 20.484375,7.453125 L20.484375,7.453125 Z M5.23076923,9 C5.65558974,9 6,9.22386667 6,9.5 C6,9.77613333 5.65558974,10 5.23076923,10 L5.23076923,10 L2.76923077,10 C2.34441026,10 2,9.77613333 2,9.5 C2,9.22386667 2.34441026,9 2.76923077,9 L2.76923077,9 Z M16.3125,1.40625 L7.6875,1.40625 C6.52439063,1.40625 5.578125,2.35251562 5.578125,3.515625 L5.578125,3.515625 L5.578125,6.046875 L18.421875,6.046875 L18.421875,3.515625 C18.421875,2.35251562 17.4756094,1.40625 16.3125,1.40625 L16.3125,1.40625 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"create-interactive",icon:["24","24",[],"","M10.8704819,4.5 C11.5117861,4.5 12.0335302,5.01509766 12.0335302,5.64823242 L12.0335302,5.64823242 L12.0335302,8.36299805 C12.0335302,8.99613281 11.5117861,9.51123047 10.8704819,9.51123047 L10.8704819,9.51123047 L10.7647502,9.51123047 L10.7647502,9.90240234 C10.8844587,9.86537109 11.0117937,9.84539062 11.143669,9.84539062 C11.5626786,9.84539062 11.9349502,10.0468945 12.1662067,10.3569434 C12.3509626,10.2532031 12.5645032,10.1939062 12.7917832,10.1939062 C13.2318916,10.1939062 13.6203954,10.4161816 13.8481503,10.7530664 C14.0249236,10.6606934 14.2262975,10.6083691 14.4398678,10.6083691 C15.1396909,10.6083691 15.7091225,11.170459 15.7091225,11.8613379 L15.7091225,11.8613379 L15.7086477,14.8306934 C15.70844,16.4241797 15.2396063,17.9703223 14.3528906,19.3019238 C14.2705725,19.4255273 14.1308037,19.4999707 13.9809454,19.4999707 L13.9809454,19.4999707 L8.97443385,19.4999707 C8.86060093,19.4999707 8.75110055,19.4569336 8.66842629,19.3796777 C8.66328703,19.3748752 8.64958838,19.361963 8.62849098,19.3413307 L8.54416314,19.2566633 C8.14471902,18.8463117 6.92028457,17.4665169 6.63605179,15.7099219 L6.63605179,15.7099219 L6.05110018,13.2383789 C5.96952388,12.8937012 6.04142616,12.5482617 6.24843826,12.2906836 C6.44550926,12.0454395 6.74890543,11.8997754 7.08696188,11.8863867 C7.40136744,11.8266211 7.72200473,11.8849805 7.99542925,12.0526758 C8.08029946,12.104707 8.15760257,12.1654395 8.22641866,12.233584 L8.22641866,12.233584 L8.22641866,9.51125977 L8.120687,9.51125977 C7.47938275,9.51125977 6.95763867,8.99616211 6.95763867,8.36302734 L6.95763867,8.36302734 L6.95763867,5.64823242 C6.95763867,5.01509766 7.47938275,4.5 8.120687,4.5 L8.120687,4.5 Z M9.49552508,7.72330078 C9.28658411,7.72330078 9.11657661,7.89114258 9.11657661,8.09742187 L9.11657661,8.09742187 L9.11657661,15.0816504 C9.11657661,15.2077148 9.06176707,15.3277148 8.96603585,15.411123 C8.87030462,15.4945312 8.74293996,15.5333496 8.61619846,15.5177051 L8.61619846,15.5177051 L8.58052923,15.5133105 C8.39565461,15.4904883 8.24475775,15.3563672 8.20235232,15.1772461 L8.20235232,15.1772461 L7.69464447,13.0319238 C7.67161675,12.9346289 7.6116141,12.8520117 7.52561624,12.7992773 C7.43961838,12.746543 7.33608266,12.7399512 7.23509898,12.7459863 C7.19506754,12.7483887 7.17711423,12.753457 7.13381855,12.7575293 C7.04779102,12.7656152 6.98342616,12.7900781 6.94579839,12.8369238 C6.90817061,12.8837695 6.89828887,12.9553125 6.91793366,13.0383984 L6.91793366,13.0383984 L7.50656496,15.5255273 L7.50656496,15.5255273 L7.51291539,15.5576953 C7.74550725,17.0278418 8.8027052,18.2443652 9.16144506,18.6210937 L9.16144506,18.6210937 L13.7363056,18.6210937 C14.4447641,17.4792187 14.818193,16.1737207 14.8183711,14.8306055 L14.8183711,14.8306055 L14.8188459,11.8612793 C14.8188459,11.6550879 14.6488384,11.4872461 14.4398974,11.4872461 C14.2309565,11.4872461 14.060949,11.6550879 14.060949,11.8613672 L14.060949,11.8613672 L14.060949,12.5752441 C14.060949,12.8179395 13.8616523,13.0146973 13.6158255,13.0146973 C13.3699986,13.0146973 13.170702,12.8179395 13.170702,12.5752441 L13.170702,12.5752441 L13.170702,11.4469336 C13.170702,11.2406543 13.0007242,11.0728125 12.7917832,11.0728125 C12.5828422,11.0728125 12.4128347,11.2406543 12.4128347,11.4469336 L12.4128347,11.4469336 L12.4128347,12.2683594 C12.4128347,12.5110547 12.2135381,12.7078125 11.9677113,12.7078125 C11.7218844,12.7078125 11.5225878,12.5110547 11.5225878,12.2683594 L11.5225878,12.2683594 L11.5225878,11.098418 C11.5225878,10.8921387 11.3525803,10.7243262 11.1436393,10.7243262 C10.9346983,10.7243262 10.7647205,10.8921387 10.7647205,11.098418 L10.7647205,11.098418 L10.7647205,12.2183203 C10.7647205,12.4610156 10.5654239,12.6577734 10.319597,12.6577734 C10.0737702,12.6577734 9.87447354,12.4610156 9.87447354,12.2183203 L9.87447354,12.2183203 L9.87447354,8.09742187 C9.87447354,7.89114258 9.70446604,7.72330078 9.49552508,7.72330078 Z M16.5699617,4.5 C17.2113253,4.5 17.7330397,5.01509766 17.7330397,5.64823242 L17.7330397,5.64823242 L17.7330397,8.36302734 C17.7330397,8.99616211 17.2112956,9.51125977 16.5699617,9.51125977 L16.5699617,9.51125977 L13.8201668,9.51125977 C13.1788626,9.51125977 12.6571185,8.99616211 12.6571185,8.36302734 L12.6571185,8.36302734 L12.6571185,5.64823242 C12.6571185,5.01509766 13.1788626,4.5 13.8201668,4.5 L13.8201668,4.5 Z M16.5699914,5.37890625 L13.8201965,5.37890625 C13.6697744,5.37890625 13.5473952,5.49972656 13.5473952,5.64823242 L13.5473952,5.64823242 L13.5473952,8.36302734 C13.5473952,8.5115332 13.6697744,8.63235352 13.8201965,8.63235352 L13.8201965,8.63235352 L16.5699914,8.63235352 C16.7204134,8.63235352 16.8428224,8.5115332 16.8428224,8.36302734 L16.8428224,8.36302734 L16.8428224,5.64823242 C16.8428224,5.49972656 16.7204134,5.37890625 16.5699914,5.37890625 L16.5699914,5.37890625 Z M10.8704819,5.37890625 L8.120687,5.37890625 C7.97026493,5.37890625 7.84788565,5.49972656 7.84788565,5.64823242 L7.84788565,5.64823242 L7.84788565,8.36302734 C7.84788565,8.5115332 7.97026493,8.63235352 8.12062765,8.63235352 L8.12062765,8.63235352 L8.22635931,8.63235352 L8.22635931,8.09739258 C8.22635931,7.40648437 8.7957316,6.84436523 9.49555475,6.84436523 C10.1953779,6.84436523 10.7647502,7.40648437 10.7647502,8.09739258 L10.7647502,8.09739258 L10.7647502,8.63235352 L10.8704819,8.63235352 C11.0209039,8.63235352 11.1432832,8.5115332 11.1432832,8.36302734 L11.1432832,8.36302734 L11.1432832,5.64823242 C11.1432832,5.49972656 11.0209039,5.37890625 10.8704819,5.37890625 L10.8704819,5.37890625 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"caret",icon:["24","24",[],"","M8 10 16 10.0136253 12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-up",icon:["24","24",[],"","M12.733 8.305l5.963 5.906a1.046 1.046 0 0 1 0 1.473l-.01.011a1.034 1.034 0 0 1-1.467 0L12 10.526l-5.22 5.17a1.034 1.034 0 0 1-1.465 0l-.011-.012a1.046 1.046 0 0 1 0-1.473l5.963-5.906a1.034 1.034 0 0 1 1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-down",icon:["24","24",[],"","M11.267 15.695L5.304 9.79a1.046 1.046 0 0 1 0-1.473l.01-.011a1.034 1.034 0 0 1 1.467 0L12 13.474l5.22-5.17a1.034 1.034 0 0 1 1.465 0l.011.012a1.046 1.046 0 0 1 0 1.473l-5.963 5.906a1.034 1.034 0 0 1-1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-left",icon:["24","24",[],"","M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-right",icon:["24","24",[],"","M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-left",icon:["24","24",[],"","M7.182 11h11.89c.512 0 .928.448.928 1s-.416 1-.929 1H7.181l3.781 4.22a1.11 1.11 0 0 1 0 1.465c-.36.403-.943.418-1.311.045a.952.952 0 0 1-.032-.034l-5.343-5.963a1.112 1.112 0 0 1 0-1.466l5.343-5.963a.883.883 0 0 1 1.333 0c.378.421.378 1.066.01 1.477L7.182 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-right",icon:["24","24",[],"","M16.818 11H4.928C4.417 11 4 11.448 4 12s.416 1 .929 1h11.89l-3.781 4.22a1.112 1.112 0 0 0 0 1.465c.36.403.943.418 1.311.045a.952.952 0 0 0 .032-.034l5.343-5.963a1.112 1.112 0 0 0 0-1.466l-5.343-5.963a.883.883 0 0 0-1.333 0 1.115 1.115 0 0 0-.01 1.477L16.818 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"enter",icon:["24","24",[],"","M5.613 13.959a.599.599 0 0 1-.213-.46c0-.155.058-.309.176-.426l3.75-3.75a.6.6 0 0 1 .848.848L7.446 12.9H13.5A3.9 3.9 0 0 0 17.4 9V6.747a.6.6 0 0 1 1.2 0V9a5.1 5.1 0 0 1-5.1 5.1H7.452l2.722 2.723a.6.6 0 0 1-.848.848L5.613 13.96z"]}},function(e,t){e.exports={prefix:"cv",iconName:"archive",icon:["24","24",[],"","M19.64 10.28a.55.55 0 1 1 1.1 0v6.878c0 1.582-1.386 2.842-3.07 2.842H6.33c-1.684 0-3.07-1.26-3.07-2.842V10.28a.55.55 0 1 1 1.1 0v6.877c0 .95.87 1.742 1.97 1.742h11.34c1.1 0 1.97-.793 1.97-1.742V10.28zM20.19 4c.99 0 1.81.747 1.81 1.696V7.99a.55.55 0 0 1-.55.55H2.55A.55.55 0 0 1 2 7.99V5.696C2 4.747 2.821 4 3.81 4h16.38zm.71 1.696c0-.317-.307-.596-.71-.596H3.81c-.403 0-.71.28-.71.596v1.742h17.8V5.696zm-5.83 5.73c0 .95-.821 1.697-1.81 1.697h-2.52c-.989 0-1.81-.747-1.81-1.696 0-.95.821-1.696 1.81-1.696h2.52c.989 0 1.81.747 1.81 1.696zm-1.1 0c0-.316-.307-.595-.71-.595h-2.52c-.403 0-.71.28-.71.596 0 .317.307.596.71.596h2.52c.403 0 .71-.28.71-.596z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bell",icon:["24","24",[],"","M9.588 17.995H6.152c-.636 0-1.152-.53-1.152-1.182 0-.221.06-.438.175-.626l2.128-2.92V9.722c0-2.187 1.447-4.027 3.411-4.567v-.012A1.143 1.143 0 0 1 13 5.128c2.017.502 3.515 2.369 3.515 4.594v3.545l2.303 2.92a1.2 1.2 0 0 1-.366 1.628 1.13 1.13 0 0 1-.61.18h-3.716a2.286 2.286 0 0 1-4.538 0zm1.161 0a1.143 1.143 0 0 0 2.216 0H10.75zm4.615-4.31V9.723c0-1.958-1.547-3.546-3.455-3.546-1.908 0-3.454 1.588-3.454 3.546v3.939l-.23.314-2.073 2.838H17.83l-2.467-3.127z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bookmark",icon:["24","24",[],"","M8.5 5h7A1.5 1.5 0 0 1 17 6.5v12.131a.2.2 0 0 1-.309.168L12 15.75 7.309 18.8A.2.2 0 0 1 7 18.63V6.5A1.5 1.5 0 0 1 8.5 5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"broadcast",icon:["24","24",[],"","M4.571 19C4.256 19 4 18.776 4 18.5s.256-.5.571-.5H19.43c.315 0 .571.224.571.5s-.256.5-.571.5H4.57zM4.125 5h15.75C20.496 5 21 5.537 21 6.2v9.6c0 .663-.504 1.2-1.125 1.2H4.125C3.504 17 3 16.463 3 15.8V6.2C3 5.537 3.504 5 4.125 5zM4 6v10h16V6H4zm6 2.35a.192.192 0 0 1 .295-.162l4.164 2.65a.192.192 0 0 1 0 .324l-4.164 2.65A.192.192 0 0 1 10 13.65v-5.3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"calendar",icon:["24","24",[],"","M6.2 10.2V17a.8.8 0 0 0 .8.8h10a.8.8 0 0 0 .8-.8v-6.8H6.2zM16 5.5h2a1 1 0 0 1 1 1V17a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6.5a1 1 0 0 1 1-1h2v-.875a.625.625 0 1 1 1.25 0V5.5h5.5v-.875a.625.625 0 1 1 1.25 0V5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"cog",icon:["24","24",[],"","M18.458 12c0 .944.514 1.722 1.542 2.333a10.98 10.98 0 0 1-.667 1.584c-.944-.223-1.805.055-2.583.833-.694.694-.917 1.556-.667 2.583A10.98 10.98 0 0 1 14.5 20c-.611-1.028-1.444-1.542-2.5-1.542s-1.889.514-2.5 1.542c-.5-.167-1.042-.389-1.625-.667.25-1.055.042-1.916-.625-2.583-.667-.667-1.528-.875-2.583-.625C4.389 15.542 4.167 15 4 14.5c1.028-.611 1.542-1.444 1.542-2.5 0-.944-.514-1.722-1.542-2.333a8.484 8.484 0 0 1 .667-1.584c.944.223 1.805-.055 2.583-.833.667-.667.875-1.528.625-2.583C8.458 4.389 9 4.167 9.5 4c.611 1.028 1.444 1.542 2.5 1.542S13.889 5.028 14.5 4c.5.167 1.042.389 1.625.667-.25 1.055-.042 1.916.625 2.583.778.778 1.639 1.056 2.583.833.306.611.528 1.14.667 1.584-1.028.61-1.542 1.389-1.542 2.333zM12 16.083c1.111 0 2.07-.402 2.875-1.208.806-.806 1.208-1.764 1.208-2.875s-.402-2.07-1.208-2.875c-.806-.806-1.764-1.208-2.875-1.208s-2.07.402-2.875 1.208c-.806.806-1.208 1.764-1.208 2.875s.402 2.07 1.208 2.875c.806.806 1.764 1.208 2.875 1.208z"]}},function(e,t){e.exports={prefix:"cv",iconName:"folder",icon:["24","24",[],"","M12.685 6H18.5A1.5 1.5 0 0 1 20 7.5v11a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18.5v-13A1.5 1.5 0 0 1 5.5 4h4.66a1.5 1.5 0 0 1 1.095.474L12.685 6zM5.5 5a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-6.248l-1.727-1.842A.5.5 0 0 0 10.161 5H5.5zM5 10V9h14v1H5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"handle",icon:["16","16",[],"","M1 0h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7.4a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1V15a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-1.2a1 1 0 0 1 1-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart",icon:["24","24",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c4.001-4.053 1.158-11.055-4.532-11.055-3.417 0-4.985 2.511-5.596 2.98-.614-.471-2.172-2.98-5.596-2.98-5.672 0-8.55 6.984-4.531 11.055z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart-outline",icon:["24","24",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c2.491-2.523 2.491-6.63 0-9.154-1.21-1.226-2.819-1.901-4.532-1.901s-3.321.675-4.531 1.9l-1.065 1.08-1.065-1.079c-1.21-1.226-2.819-1.901-4.531-1.901-1.713 0-3.322.675-4.532 1.901-2.491 2.524-2.491 6.631 0 9.153zm-8.527-17.822c.926-.937 2.157-1.454 3.464-1.454 1.308 0 2.538.517 3.463 1.455l1.599 1.62c.281.285.786.285 1.067 0l1.599-1.621c.928-.937 2.158-1.454 3.465-1.454 1.308 0 2.538.517 3.464 1.454 1.917 1.943 1.917 5.104 0 7.048l-9.06 9.181-9.061-9.182c-1.917-1.942-1.917-5.104 0-7.047z"]}},function(e,t){e.exports={prefix:"cv",iconName:"interactive",icon:["24","24",[],"","M5.978 13.65l7.525-9.99a.2.2 0 0 1 .357.154l-1.289 7.5 5.194-1.04a.2.2 0 0 1 .198.318l-7.447 9.733a.2.2 0 0 1-.355-.16l1.268-6.566-5.277.37a.2.2 0 0 1-.174-.32z"]}},function(e,t){e.exports={prefix:"cv",iconName:"link",icon:["24","24",[],"","M17 10c2.2 0 4 1.8 4 4s-1.8 4-4 4h-5a3.99 3.99 0 0 1-3-1.367v-.028a4.447 4.447 0 0 1-.889-2.679c0-.698.162-1.356.443-1.94A4 4 0 0 1 12 10h1.872v.098c0 .573-.322 1.081-.818 1.402H12c-.722 0-1.368.316-1.824.811-.453.418-.732.976-.732 1.591v.196c0 .575.244 1.1.645 1.508.46.545 1.146.894 1.911.894h5c1.375 0 2.5-1.125 2.5-2.5s-1.125-2.5-2.5-2.5h-.686a5.22 5.22 0 0 0 .24-1.5H17zm-9.556 3.926l.002.074H7c-2.2 0-4-1.8-4-4s1.8-4 4-4h5c1.462 0 2.743.797 3.441 1.975a4.48 4.48 0 0 1-.44 4.63v.024a3.982 3.982 0 0 1-3 1.37h-1.873v-.096c0-.574.322-1.082.817-1.403H12c.722 0 1.368-.316 1.824-.811.452-.418.731-.976.731-1.591v-.195c0-.576-.244-1.101-.645-1.51A2.496 2.496 0 0 0 12 7.5H7A2.507 2.507 0 0 0 4.5 10c0 1.375 1.125 2.5 2.5 2.5h.642c-.128.452-.198.93-.198 1.426z"]}},function(e,t){e.exports={prefix:"cv",iconName:"playlist",icon:["24","24",[],"","M4,19.0049107 C4,19.5548349 4.44525903,20 4.99508929,20 L19.0049107,20 C19.5548349,20 20,19.554741 20,19.0049107 L20,4.99508929 C20,4.44516513 19.554741,4 19.0049107,4 L4.99508929,4 C4.44516513,4 4,4.44525903 4,4.99508929 L4,19.0049107 Z M4.99508929,3 L19.0049107,3 C20.1067681,3 21,3.8926228 21,4.99508929 L21,19.0049107 C21,20.1067681 20.1073772,21 19.0049107,21 L4.99508929,21 C3.8932319,21 3,20.1073772 3,19.0049107 L3,4.99508929 C3,3.8932319 3.8926228,3 4.99508929,3 Z M17.5,17.3 C17.7761424,17.3 18,17.0761424 18,16.8 C18,16.5238576 17.7761424,16.3 17.5,16.3 L9.5,16.3 C9.22385763,16.3 9,16.5238576 9,16.8 C9,17.0761424 9.22385763,17.3 9.5,17.3 L17.5,17.3 Z M17.5,12.7 C17.7761424,12.7 18,12.4761424 18,12.2 C18,11.9238576 17.7761424,11.7 17.5,11.7 L9.5,11.7 C9.22385763,11.7 9,11.9238576 9,12.2 C9,12.4761424 9.22385763,12.7 9.5,12.7 L17.5,12.7 Z M8.07195299,7.22930174 L6.86542219,6.50538326 C6.38401051,6.21653625 6,6.43413716 6,6.98678206 L6,8.51032805 C6,9.06455544 6.38746271,9.27850253 6.86542219,8.99172685 L8.07195299,8.26780837 C8.55336467,7.97896136 8.54991246,7.51607743 8.07195299,7.22930174 Z M8.07195299,11.7293017 L6.86542219,11.0053833 C6.38401051,10.7165363 6,10.9341372 6,11.4867821 L6,13.010328 C6,13.5645554 6.38746271,13.7785025 6.86542219,13.4917268 L8.07195299,12.7678084 C8.55336467,12.4789614 8.54991246,12.0160774 8.07195299,11.7293017 Z M8.07195299,16.2293017 L6.86542219,15.5053833 C6.38401051,15.2165363 6,15.4341372 6,15.9867821 L6,17.510328 C6,18.0645554 6.38746271,18.2785025 6.86542219,17.9917268 L8.07195299,17.2678084 C8.55336467,16.9789614 8.54991246,16.5160774 8.07195299,16.2293017 Z M17.5,8.3 C17.7761424,8.3 18,8.07614237 18,7.8 C18,7.52385763 17.7761424,7.3 17.5,7.3 L9.5,7.3 C9.22385763,7.3 9,7.52385763 9,7.8 C9,8.07614237 9.22385763,8.3 9.5,8.3 L17.5,8.3 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"publisher-archive",icon:["24","24",[],"","M19.6403207,10.2808023 C19.6403207,9.97696656 19.8864872,9.73065903 20.1901489,9.73065903 C20.4938106,9.73065903 20.7399771,9.97696656 20.7399771,10.2808023 L20.7399771,17.1575931 C20.7399771,18.7397289 19.3544729,20 17.6701031,20 L6.32989691,20 C4.64552709,20 3.26002291,18.7397289 3.26002291,17.1575931 L3.26002291,10.2808023 C3.26002291,9.97696656 3.50618937,9.73065903 3.80985109,9.73065903 C4.11351281,9.73065903 4.35967927,9.97696656 4.35967927,10.2808023 L4.35967927,17.1575931 C4.35967927,18.1074218 5.23070097,18.8997135 6.32989691,18.8997135 L17.6701031,18.8997135 C18.769299,18.8997135 19.6403207,18.1074218 19.6403207,17.1575931 L19.6403207,10.2808023 Z M20.1901489,4 C21.1786273,4 22,4.74713037 22,5.69627507 L22,7.98853868 C22,8.29237442 21.7538335,8.53868195 21.4501718,8.53868195 L2.54982818,8.53868195 C2.24616646,8.53868195 2,8.29237442 2,7.98853868 L2,5.69627507 C2,4.74713037 2.82137271,4 3.80985109,4 L20.1901489,4 Z M20.9003436,5.69627507 C20.9003436,5.37943754 20.5934534,5.10028653 20.1901489,5.10028653 L3.80985109,5.10028653 C3.40654659,5.10028653 3.09965636,5.37943754 3.09965636,5.69627507 L3.09965636,7.43839542 L20.9003436,7.43839542 L20.9003436,5.69627507 Z M15.069874,11.4269341 C15.069874,12.3760788 14.2485013,13.1232092 13.2600229,13.1232092 L10.7399771,13.1232092 C9.75149871,13.1232092 8.930126,12.3760788 8.930126,11.4269341 C8.930126,10.4777894 9.75149871,9.73065903 10.7399771,9.73065903 L13.2600229,9.73065903 C14.2485013,9.73065903 15.069874,10.4777894 15.069874,11.4269341 Z M13.9702176,11.4269341 C13.9702176,11.1100966 13.6633274,10.8309456 13.2600229,10.8309456 L10.7399771,10.8309456 C10.3366726,10.8309456 10.0297824,11.1100966 10.0297824,11.4269341 C10.0297824,11.7437716 10.3366726,12.0229226 10.7399771,12.0229226 L13.2600229,12.0229226 C13.6633274,12.0229226 13.9702176,11.7437716 13.9702176,11.4269341 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"resources",icon:["24","24",[],"","M4 6.83c0-.523.423-.948.948-.948H17.17c.524 0 .949.423.949.949v12.22a.947.947 0 0 1-.949.949H4.95a.947.947 0 0 1-.95-.948V6.83zm.941 12.222c0 .005 12.228.007 12.228.007.005 0 .007-12.228.007-12.228 0-.005-12.228-.007-12.228-.007-.005 0-.007 12.228-.007 12.228zm2.353-9.405a.47.47 0 1 1 0-.941h7.588a.47.47 0 1 1 0 .941H7.294zm0 2.824a.47.47 0 1 1 0-.942h7.588a.47.47 0 1 1 0 .942H7.294zm0 2.823a.47.47 0 1 1 0-.941h2.88a.47.47 0 1 1 0 .941h-2.88zM6.353 4.941a.47.47 0 1 1 0-.941h11.766C19.155 4 20 4.848 20 5.88v12.232a.47.47 0 1 1-.941 0V5.88a.945.945 0 0 0-.94-.938H6.353z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star-o",icon:["24","24",[],"","M11.64 16.055a.768.768 0 0 1 .72 0l3.767 1.998-.806-4.602 3.357-3.249-4.626-.654L12 5.35 9.948 9.548l-4.626.654 3.357 3.25-.807 4.601 3.768-1.998zm-3.75 3.148a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star",icon:["24","24",[],"","M7.89 19.203a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},function(e,t){e.exports={prefix:"cv",iconName:"tag",icon:["24","24",[],"","M9.85651379,4 C10.5597673,4 11.2342681,4.27911643 11.7318501,4.77635695 L11.7318501,4.77635695 L19.5192508,12.5634018 C20.1602555,13.2045708 20.1602555,14.2439177 19.5192159,14.8851217 L19.5192159,14.8851217 L14.8855145,19.5192848 C14.2443321,20.1602442 13.2049876,20.1602442 12.5637184,19.519198 L12.5637184,19.519198 L4.7762613,11.7314233 C4.27913559,11.2340016 4,10.5595161 4,9.85635067 L4,9.85635067 L4,5.64191268 C4,4.7351029 4.73513649,4 5.64195885,4 L5.64195885,4 L9.85651379,4 Z M9.85658948,5.26315824 L5.64195885,5.26315824 C5.4327466,5.26315824 5.26315823,5.43273884 5.26315823,5.64191268 L5.26315823,5.64191268 L5.26315823,9.85642637 C5.26315823,10.2247328 5.40935021,10.5779817 5.66959105,10.8383776 L5.66959105,10.8383776 L13.4568376,18.6259418 C13.6047616,18.7738142 13.8445582,18.7738142 13.9923822,18.6260417 L13.9923822,18.6260417 L18.6259486,13.9920135 C18.7738119,13.8441123 18.7738119,13.6043763 18.6260161,13.4565426 L18.6260161,13.4565426 L10.8388259,5.6697082 C10.5782887,5.40934993 10.2250082,5.26315824 9.85658948,5.26315824 L9.85658948,5.26315824 Z M7.78947471,6.10526373 C8.71963876,6.10526373 9.4736857,6.85931068 9.4736857,7.78947472 C9.4736857,8.71963876 8.71963876,9.4736857 7.78947471,9.4736857 C6.85931067,9.4736857 6.10526373,8.71963876 6.10526373,7.78947472 C6.10526373,6.85931068 6.85931067,6.10526373 7.78947471,6.10526373 Z M7.78947471,7.36842197 C7.5569337,7.36842197 7.36842197,7.55693371 7.36842197,7.78947472 C7.36842197,8.02201573 7.5569337,8.21052747 7.78947471,8.21052747 C8.02201572,8.21052747 8.21052746,8.02201573 8.21052746,7.78947472 C8.21052746,7.55693371 8.02201572,7.36842197 7.78947471,7.36842197 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"time",icon:["24","24",[],"","M12 4c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 1.077a6.88 6.88 0 0 0-4.896 2.027A6.877 6.877 0 0 0 5.077 12c0 1.85.72 3.588 2.027 4.896A6.877 6.877 0 0 0 12 18.923a6.88 6.88 0 0 0 4.896-2.027A6.877 6.877 0 0 0 18.923 12a6.88 6.88 0 0 0-2.027-4.896A6.877 6.877 0 0 0 12 5.077zm2.524 9.599a.6.6 0 0 1-.848.848l-2.5-2.5A.6.6 0 0 1 11 12.6V8.624a.6.6 0 0 1 1.2 0v3.727l2.324 2.325z"]}},function(e,t){e.exports={prefix:"cv",iconName:"video",icon:["24","24",[],"","M4.5 6a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h15a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-15zm0-1h15A1.5 1.5 0 0 1 21 6.5v11a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 17.5v-11A1.5 1.5 0 0 1 4.5 5zM10 9.26v5.48a.256.256 0 0 0 .39.218l4.482-2.74a.256.256 0 0 0 0-.436l-4.483-2.74a.256.256 0 0 0-.389.219z"]}},function(e,t){e.exports={prefix:"cv",iconName:"subject",icon:["24","24",[],"","M19.15,21.08H5.1c-1.09,0-1.98-0.89-1.98-1.98V5.06c0-1.09,0.89-1.98,1.98-1.98h14.04c1.09,0,1.98,0.89,1.98,1.98V19.1 C21.12,20.19,20.24,21.08,19.15,21.08z M20.12,19.16V5c0-0.51-0.41-0.92-0.92-0.92H7.04C6.54,4.08,6.12,4.49,6.12,5v14.16 c0,0.51,0.41,0.92,0.92,0.92h12.16C19.71,20.08,20.12,19.67,20.12,19.16z M19.12,6.95V6.81c0-0.36-0.29-0.65-0.65-0.65H8.78 c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69C18.83,7.6,19.12,7.31,19.12,6.95z M19.12,9.95V9.81 c0-0.36-0.29-0.65-0.65-0.65H8.78c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69 C18.83,10.6,19.12,10.31,19.12,9.95z"]}},function(e,t){e.exports={prefix:"cv",iconName:"series",icon:["24","24",[],"","M20.49,3.51c0.97,0,1.76,0.79,1.76,1.76v9.27c0,0.77-0.49,1.42-1.18,1.66l0.09-10.84c0-0.39-0.3-0.7-0.68-0.7l-14.27,0 C6.46,3.99,7.1,3.51,7.85,3.51H20.49z M18.38,5.56c0.97,0,1.76,0.79,1.76,1.75v9.27c0.01,0.77-0.49,1.42-1.17,1.66l0.09-10.86 c0-0.38-0.3-0.68-0.68-0.68l-14.28,0c0.25-0.67,0.89-1.14,1.64-1.14H18.38z M16.15,7.7c0.97,0,1.75,0.79,1.75,1.76v9.27 c0,0.97-0.79,1.75-1.75,1.75H3.5c-0.97,0-1.75-0.79-1.75-1.75V9.46c0-0.97,0.79-1.76,1.75-1.76H16.15z M16.14,8.85H3.51 c-0.38,0-0.68,0.3-0.68,0.68l0,0v9.13c0,0.38,0.3,0.68,0.68,0.68l0,0h12.62c0.38,0,0.68-0.3,0.68-0.68l0,0V9.53 C16.82,9.15,16.52,8.85,16.14,8.85L16.14,8.85z M8.46,12.41v3.37c0,0.18,0.21,0.28,0.35,0.18l2.31-1.69c0.12-0.09,0.12-0.27,0-0.35 L8.8,12.23C8.66,12.13,8.46,12.23,8.46,12.41"]}},function(e,t){e.exports={prefix:"cv",iconName:"white-wave",icon:["1200","244",[],"","M1104.19651,33.5198863 C1084.14716,45.4511816 1067.10689,82.9623447 1047.23647,124.40502 C1023.86518,173.149287 924.725009,160.996474 830.060105,199.668011 C735.395201,238.339548 706.121292,249.351671 618.615175,241.737466 C531.109058,234.12326 495.404437,207.34459 432.2827,199.668011 C370.933901,192.207048 283.214734,200.240922 234.995453,186.264588 C153.311618,162.588569 167.948341,80.4093241 122.421855,59.9864363 C102.62311,51.1048469 61.8158253,37.3273576 0,18.6539685 L0,0 L1200,0 C1161.79495,7.07406031 1129.86046,18.2473557 1104.19651,33.5198863 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"compass",icon:["24","24",[],"","M12,-1.71862524e-13 C13.3893905,-1.71862524e-13 14.5197317,1.12166968 14.5197317,2.50040137 C14.5197317,2.8215332 14.4594938,3.13263028 14.3442115,3.42156921 C16.2349366,3.84633285 17.9748233,4.78862459 19.3866372,6.17539419 L19.4316433,6.22680193 C21.3267651,8.11265804 22.5,10.713205 22.5,13.5805516 C22.5,19.3258216 17.7897333,24 12,24 L12,24 C6.21026669,24 1.5,19.3258216 1.5,13.5805516 L1.50006052,13.5243182 C1.50002021,13.5212739 1.5,13.5182249 1.5,13.5151711 L1.501,13.503 L1.50378159,13.2988768 C1.57785421,10.543134 2.73548466,8.05071265 4.56835673,6.22680193 L4.61336276,6.17539419 C6.02517671,4.78862459 7.76506343,3.84633285 9.65748913,3.42018903 C9.54056383,3.13263028 9.48031555,2.8215332 9.48031555,2.50040137 C9.48031555,1.12166968 10.6106095,-1.71862524e-13 12,-1.71862524e-13 Z M12,4.52624116 L11.6809164,4.53170146 C11.6454989,4.53291535 11.610132,4.53433052 11.5748169,4.53594584 L11.6816694,4.53162088 C11.5883913,4.53477816 11.4953516,4.53932139 11.4025747,4.54524062 L11.5748169,4.53594584 C11.4679256,4.54083509 11.3615084,4.54755809 11.2555967,4.55608379 L11.4025747,4.54524062 C11.3068176,4.55134999 11.2113405,4.55892518 11.1161702,4.56795525 L11.2555967,4.55608379 C11.095392,4.56897997 10.9363438,4.5860008 10.7785603,4.60703883 C10.7467123,4.6104578 10.7154515,4.61475211 10.6842289,4.61920452 L10.7785603,4.60703883 C10.6768565,4.62059949 10.5756781,4.63582921 10.4750543,4.65269924 L10.6842289,4.61920452 C10.600263,4.63117821 10.5165735,4.64429522 10.4331795,4.65854779 L10.4750543,4.65269924 C9.11485909,4.88074187 7.85598275,5.40850943 6.77005357,6.16492738 L8.00490498,7.39068924 C8.27354347,7.65726684 8.27354347,8.0894535 8.00490498,8.35612485 C7.87046765,8.48939021 7.69450873,8.55604633 7.5184081,8.55604633 C7.34230747,8.55604633 7.16634856,8.48943709 7.03200569,8.35612485 L5.70204148,7.03485023 C4.13204115,8.52299364 3.09475895,10.5601022 2.90659433,12.8322227 L4.30759576,12.8325787 C4.68743083,12.8325787 4.99546522,13.1382031 4.99546522,13.5151711 C4.99546522,13.892186 4.68747807,14.1977635 4.30764299,14.1977635 L2.89670934,14.1976473 C3.02371908,16.0609257 3.72135566,17.7714185 4.81716961,19.1579915 L4.97167812,19.3482139 C5.26113447,19.6949337 5.57609243,20.0199666 5.91367078,20.3204536 L7.03200569,19.2111609 C7.30069142,18.9445833 7.73612479,18.9445833 8.00490498,19.2111609 C8.27354347,19.4777385 8.27354347,19.9099252 8.00490498,20.1765497 L7.01386949,21.160078 C8.44796715,22.0922041 10.1613427,22.6346745 12,22.6346745 L12,22.6346745 C13.8583409,22.6346745 15.5887033,22.0805272 17.0320921,21.1300078 L16.0701299,20.1765497 C15.8014914,19.909972 15.8014914,19.4777854 16.0701299,19.2111609 C16.3388156,18.9445833 16.774249,18.9445833 17.042982,19.2111609 L18.1252566,20.2856043 C18.4481451,19.9948825 18.7500205,19.681572 19.0283219,19.3482139 L19.1828304,19.1579915 C20.2466397,17.8119151 20.9351906,16.1605635 21.0907063,14.3605101 L21.1032907,14.1976527 L21.1032907,14.1976527 L19.4302507,14.1977635 C19.0504157,14.1977635 18.7423813,13.8921391 18.7423813,13.5151711 C18.7423813,13.1381562 19.0504157,12.8325787 19.4302507,12.8325787 L21.0934057,12.8322227 C20.9067892,10.5787961 19.8849698,8.55653016 18.3366017,7.07169263 L17.0430292,8.35607798 C16.9085919,8.48943709 16.732633,8.55604633 16.5565323,8.55604633 C16.3804317,8.55604633 16.2044728,8.48943709 16.0701299,8.35612485 C15.8014914,8.08954725 15.8014914,7.65736059 16.0701299,7.39068924 L17.2742569,6.19598696 C16.1894526,5.4308071 14.9295636,4.89482891 13.5669368,4.65983993 C13.5528409,4.65615858 13.538853,4.65380129 13.5248569,4.65147595 L13.5669368,4.65983993 C13.4834378,4.64544029 13.3995531,4.63217086 13.3152992,4.62004816 L13.5248569,4.65147595 C13.4243139,4.63477151 13.3233471,4.61971567 13.2219896,4.60632197 L13.3152992,4.62004816 C13.1723723,4.59948341 13.0283832,4.58221861 12.8834131,4.56833442 C12.8374466,4.56355426 12.7909906,4.55949885 12.7444647,4.55579028 L12.8834131,4.56833442 C12.7886701,4.55926062 12.6935082,4.5516307 12.5979499,4.54546716 L12.7444647,4.55579028 C12.6381278,4.54731418 12.5314263,4.5406499 12.4243976,4.53581255 L12.5979499,4.54546716 C12.5053597,4.53949506 12.4123973,4.53489967 12.3190836,4.53170146 L12.4243976,4.53581255 C12.2834709,4.52944313 12.1419768,4.52624116 12,4.52624116 Z M12.2098775,18.4456908 C12.3524617,18.4551964 12.4902931,18.464702 12.6328773,18.4884661 C12.6851582,18.4932189 12.7421919,18.5074773 12.7944727,18.5169829 C12.8039783,18.5169829 12.813484,18.5169829 12.8229896,18.5217357 C12.8990345,18.5692638 12.984585,18.5740166 13.0701355,18.5930278 C13.0938996,18.5977806 13.1224164,18.6025334 13.1509332,18.612039 C13.1746973,18.6215447 13.1984613,18.6310503 13.2174725,18.6500615 C13.2364838,18.6690727 13.255495,18.6833311 13.2887647,18.688084 C13.3172815,18.6928368 13.3362927,18.7213536 13.3362927,18.7546232 C13.3362927,18.7831401 13.3315399,18.8116569 13.3267871,18.835421 C13.3077759,18.9304771 13.2887647,19.030286 13.2650006,19.1253422 C13.2602478,19.153859 13.2507422,19.1823759 13.2412366,19.2108927 C13.2174725,19.277432 13.2127197,19.3487241 13.1937085,19.4152634 C13.1794501,19.4532859 13.1746973,19.4960611 13.1556861,19.5340836 C13.1414276,19.5673532 13.131922,19.6006229 13.1034052,19.6386453 C13.0891468,19.6529038 13.084394,19.6766678 13.0796411,19.7004318 C13.0606299,19.7527127 13.0321131,19.7717239 12.9750794,19.7622183 L12.9750794,19.7622183 L12.960821,19.7622183 C12.8562592,19.7384543 12.7564503,19.7194431 12.6566413,19.6909262 C12.5473268,19.6624094 12.4380122,19.6529038 12.3286977,19.6576566 C12.3001808,19.6576566 12.271664,19.6671622 12.2431471,19.6766678 C12.2051247,19.6909262 12.1956191,19.7194431 12.1956191,19.7574655 C12.1956191,19.7764767 12.2003719,19.7907352 12.2193831,19.795488 C12.2811696,19.8287576 12.3382033,19.8620273 12.419001,19.8762857 C12.442765,19.8810385 12.4617762,19.8952969 12.4807875,19.9048025 C12.5045515,19.9190609 12.5235627,19.9285666 12.542574,19.9380722 C12.689911,20.0093643 12.8467536,20.0711508 12.9798322,20.1709597 C13.084394,20.2422518 13.1604389,20.3325551 13.2032141,20.4513753 L13.2032141,20.4513753 L13.3077759,20.7745662 C13.3410455,20.8933864 13.3362927,21.0217122 13.3315399,21.1452851 C13.3267871,21.2403413 13.3125287,21.3401502 13.279259,21.4304535 C13.2745062,21.4352064 13.2745062,21.4399592 13.2745062,21.4494648 C13.2840118,21.5587793 13.2507422,21.6585883 13.1889557,21.7441388 C13.084394,21.8962286 12.9513154,22.0293072 12.7897199,22.1291162 C12.6851582,22.1956555 12.5710908,22.2336779 12.4475178,22.257442 C12.3239448,22.281206 12.1956191,22.3144756 12.0672933,22.3287341 C11.9579787,22.3429925 11.8486642,22.3429925 11.7441024,22.3382397 C11.6157766,22.3239812 11.4922036,22.3002172 11.3638778,22.2764532 C11.3448666,22.2764532 11.3258554,22.2669476 11.3068442,22.2621948 C11.2165408,22.2194195 11.1262375,22.2051611 11.0311814,22.1956555 C10.9076084,22.1766442 10.7887882,22.1481274 10.6652152,22.1243634 C10.6366984,22.1196106 10.6081815,22.0958465 10.6081815,22.0625769 C10.6081815,21.9675207 10.5844175,21.8677118 10.5986759,21.7726556 C10.6129344,21.6015546 10.62244,21.4257007 10.6414512,21.2545997 C10.6509568,21.1642964 10.6747208,21.073993 10.6984849,20.9789369 C10.7127433,20.9219032 10.7507658,20.8981392 10.8125522,20.902892 C10.9028556,20.9123976 10.9931589,20.9171504 11.0787094,20.9314088 C11.188024,20.9456672 11.2925857,20.9599257 11.3971475,20.9931953 C11.4541812,21.0074537 11.5112149,21.0169593 11.5682485,21.0217122 C11.6633047,21.026465 11.753608,21.026465 11.8439113,21.026465 C11.8866866,21.026465 11.9294619,20.9836897 11.9342147,20.9456672 C11.9389675,20.9123976 11.9152034,20.8696223 11.8724282,20.8553639 C11.8391585,20.8458583 11.7963833,20.8363527 11.7583608,20.8315999 C11.7345968,20.8268471 11.7108328,20.8220943 11.6870687,20.8220943 C11.6015182,20.8173415 11.5254733,20.7935774 11.4446756,20.7650606 C11.3638778,20.7317909 11.2783273,20.7127797 11.1975296,20.6795101 C11.088215,20.6414876 10.9884061,20.5797011 10.8981028,20.508409 C10.817305,20.4466225 10.7792826,20.361072 10.7507658,20.2707687 C10.7079905,20.1234316 10.6937321,19.9713418 10.7127433,19.819252 C10.7270017,19.7051846 10.7317545,19.5911173 10.7507658,19.4818027 C10.793541,19.2441624 10.8885972,19.030286 11.0596982,18.859185 C11.2070352,18.711848 11.3876419,18.612039 11.5920126,18.5550054 C11.7060799,18.5217357 11.8249001,18.4932189 11.9437203,18.4694548 C12.0340236,18.4551964 12.124327,18.4551964 12.2098775,18.4456908 Z M14.7328664,9.61765309 C15.1590885,9.61765309 15.5675493,9.84298078 15.7988231,10.2056519 C16.0296718,10.5678544 16.0563136,11.0171504 15.8699625,11.4074308 L14.1147664,15.0838768 C13.9903906,15.3443138 13.7774449,15.5556727 13.5149472,15.6790944 L9.80998461,17.4209191 C9.63676546,17.5022939 9.45419332,17.5435907 9.2670864,17.5435907 C8.84086431,17.5435907 8.43240343,17.3182631 8.20112965,16.9555919 C7.97028099,16.5933895 7.94363916,16.1440935 8.12999028,15.753813 L9.88518638,12.077367 C10.0095622,11.81693 10.2225079,11.6055242 10.4850055,11.4821494 L14.1899681,9.74032473 C14.3631873,9.65894988 14.5457594,9.61765309 14.7328664,9.61765309 Z M14.4894526,11.1101033 L11.1110414,12.6984127 L9.51045294,16.050953 L12.8888641,14.4626436 L14.4894526,11.1101033 Z M13.0226075,6.1644377 C13.0938996,6.1691905 13.1651917,6.1691905 13.2364838,6.1691905 L13.2364838,6.1691905 L13.5121466,6.18344892 C13.5596746,6.18344892 13.5929443,6.21196577 13.5976971,6.26424664 C13.6309667,6.56842629 13.6547308,6.87260593 13.6357196,7.17678557 C13.5976971,7.72335837 13.6262139,8.27468397 13.6167083,8.82125677 C13.6167083,9.03513308 13.6214611,9.24900939 13.6452252,9.46763851 L13.6452252,9.46763851 L13.6452252,9.59121149 C13.6404724,9.6625036 13.6024499,9.69102044 13.5359106,9.68626763 C13.526405,9.68626763 13.5121466,9.69102044 13.502641,9.69102044 C13.4836297,9.69577324 13.4598657,9.70527886 13.4408545,9.70052605 C13.3695624,9.68626763 13.2935175,9.69102044 13.2222254,9.69102044 C13.1414276,9.68626763 13.0606299,9.69577324 12.9798322,9.70052605 C12.837248,9.71003166 12.689911,9.71953728 12.542574,9.72429009 C12.4997987,9.72904289 12.4760347,9.70527886 12.4570234,9.6672564 L12.4570234,9.6672564 L12.271664,9.34881834 C12.1195741,9.07315554 11.9532259,8.81175116 11.8201473,8.52658274 L11.8201473,8.52658274 L11.8011361,8.49331309 L11.8011361,8.53608835 C11.7916305,8.81650396 11.777372,9.09216676 11.7821249,9.37258237 C11.7821249,9.4628857 11.777372,9.55318904 11.7726192,9.64349237 C11.7678664,9.71478447 11.729844,9.75280693 11.6585519,9.76231254 L11.6585519,9.76231254 L11.5112149,9.77657096 C11.4066531,9.78607658 11.3068442,9.76231254 11.2070352,9.75280693 L11.2070352,9.75280693 L10.8077994,9.75280693 C10.7555186,9.75280693 10.6747208,9.78132377 10.6557096,9.72429009 C10.646204,9.70527886 10.6414512,9.69102044 10.646204,9.61972833 C10.646204,9.58170588 10.6509568,9.56269465 10.6509568,9.51991939 L10.6509568,9.51991939 L10.6604624,9.31079588 L10.6794736,8.66441414 C10.6889793,8.33171766 10.7032377,7.99902117 10.6937321,7.66632469 C10.6889793,7.45720118 10.6794736,7.24807768 10.669968,7.04370698 C10.669968,7.03420136 10.669968,7.01994294 10.6652152,7.01043733 C10.6319456,6.81081944 10.6366984,6.60644874 10.6557096,6.40207804 C10.6604624,6.39257243 10.6557096,6.37831401 10.6604624,6.36405559 C10.6604624,6.32603313 10.6984849,6.28801068 10.7365073,6.28325787 C10.769777,6.28325787 10.8077994,6.28801068 10.8410691,6.28801068 L10.8410691,6.28801068 L10.8838443,6.28801068 C11.0216757,6.26424664 11.1595071,6.24048261 11.3020914,6.24523541 L11.3020914,6.24523541 L11.458934,6.2357298 C11.5444845,6.23097699 11.630035,6.22622419 11.7155856,6.22622419 C11.729844,6.22622419 11.7488552,6.23097699 11.7631136,6.24048261 C11.7821249,6.25474103 11.8011361,6.25949384 11.8249001,6.25474103 C11.877181,6.24523541 11.9056978,6.25949384 11.9247091,6.30702191 C11.9864956,6.47812295 12.0767989,6.63971839 12.171855,6.79180821 C12.2478999,6.91538119 12.3001808,7.04370698 12.3477089,7.17678557 C12.3952369,7.29085294 12.4475178,7.4001675 12.5093043,7.50948206 L12.5093043,7.50948206 L12.5235627,7.52849329 C12.5235627,7.52849329 12.5283155,7.52849329 12.5330683,7.52374048 L12.5330683,7.52374048 L12.5330683,7.50472925 C12.5330683,7.28134733 12.5330683,7.0579654 12.5283155,6.83458347 C12.5283155,6.69199927 12.5188099,6.55416787 12.5188099,6.41633646 L12.5188099,6.41633646 L12.5188099,6.38781962 C12.5093043,6.30702191 12.5473268,6.24998822 12.6091133,6.20721296 C12.6328773,6.18344892 12.6613941,6.17394331 12.689911,6.17869612 C12.8039783,6.18344892 12.9132929,6.1644377 13.0226075,6.1644377 Z M12,1.36518483 C11.3691932,1.36518483 10.8560545,1.87443384 10.8560545,2.50035449 C10.8560545,2.7121822 10.9139202,2.91435368 11.0223297,3.09018146 C11.3472278,3.06046277 11.6746768,3.04536905 12,3.04536905 C12.3250871,3.04536905 12.6524415,3.06046277 12.977623,3.09027521 C13.0860798,2.91444743 13.1439455,2.7121822 13.1439455,2.50035449 C13.1439455,1.87438696 12.6308068,1.36518483 12,1.36518483 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"history",icon:["24","24",[],"","M12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 C0,5.372583 5.372583,0 12,0 Z M12,2.05714286 C6.50871163,2.05714286 2.05714286,6.50871163 2.05714286,12 C2.05714286,17.4912884 6.50871163,21.9428571 12,21.9428571 C17.4912884,21.9428571 21.9428571,17.4912884 21.9428571,12 C21.9428571,6.50871163 17.4912884,2.05714286 12,2.05714286 Z M12,5.82857143 C12.5680643,5.82857143 13.0285714,6.28907854 13.0285714,6.85714286 L13.0285714,11.5739518 L17.0130241,15.5584045 C17.4147062,15.9600866 17.4147062,16.611342 17.0130241,17.0130241 C16.611342,17.4147062 15.9600866,17.4147062 15.5584045,17.0130241 L11.2726902,12.7273098 C11.0797956,12.5344153 10.9714286,12.2727941 10.9714286,12 L10.9714286,6.85714286 C10.9714286,6.28907854 11.4319357,5.82857143 12,5.82857143 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"email",icon:["24","24",[],"","M5.09090909,16.5044548 C5.09090909,16.7087643 5.2517754,16.875 5.44811273,16.875 L18.5518873,16.875 C18.7495118,16.875 18.9090909,16.7100912 18.9090909,16.5044548 L18.9090909,7.49554521 C18.9090909,7.29123572 18.7482246,7.125 18.5518873,7.125 L5.44811273,7.125 C5.25048819,7.125 5.09090909,7.28990884 5.09090909,7.49554521 L5.09090909,16.5044548 Z M18.5518873,6 C19.3516578,6 20,6.67088532 20,7.49554521 L20,16.5044548 C20,17.3304216 19.3529644,18 18.5518873,18 L5.44811273,18 C4.64834215,18 4,17.3291147 4,16.5044548 L4,7.49554521 C4,6.6695784 4.6470356,6 5.44811273,6 L18.5518873,6 Z M5.28875242,8.40614655 C5.12000436,8.66349123 5.18550432,9.01318255 5.43505067,9.18720399 L11.4273828,13.3659638 L11.7273691,13.5751595 L12.0307568,13.3712472 L18.2317117,9.20347374 C18.4840876,9.03384736 18.5553362,8.68535347 18.3908501,8.42509084 C18.2446401,8.19374628 17.9613854,8.10998685 17.7229933,8.21336378 L17.6360272,8.26099773 L17.6360272,8.26099773 L17.634306,8.26215307 L17.6301531,8.26494056 L17.622066,8.27036883 C17.597586,8.28680036 17.530266,8.33198706 17.3451362,8.4562505 L17.2583634,8.51449439 C17.2426263,8.52505752 17.2262335,8.53606078 17.2091576,8.5475225 L17.0982873,8.62194118 C16.4410163,9.06311671 14.980414,10.0435068 11.7346312,12.2221514 C11.170907,11.8290376 10.4395891,11.3190523 9.69015295,10.7964321 L9.28047118,10.5107401 C7.64174412,9.36797184 6.04614146,8.25527648 6.04614146,8.25527648 C5.7965951,8.08125504 5.45750048,8.14880187 5.28875242,8.40614655 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"year-level",icon:["24","24",[],"","M14.5628141,2 C15.3668342,2 15.7688442,2.10471204 16.0703518,2.31413613 C16.3718593,2.52356021 16.6733668,2.73298429 16.8743719,3.15183246 C16.9748744,3.46596859 17.0753769,3.88481675 17.0753769,4.72251309 L17.0753769,9.85340314 C17.0753769,10.6212914 16.9909269,11.0372309 16.8220268,11.3431864 L16.7738693,11.4240838 L16.7738693,11.4240838 L19.3869347,11.4240838 C20.1909548,11.4240838 20.5929648,11.5287958 20.8944724,11.7382199 C21.1959799,11.947644 21.4974874,12.1570681 21.6984925,12.5759162 C21.8994975,12.9947644 22,13.4136126 22,14.1465969 L22,19.2774869 C22,20.1151832 21.8994975,20.5340314 21.6984925,20.8481675 C21.4974874,21.1623037 21.2964824,21.4764398 20.8944724,21.6858639 C20.4924623,21.895288 20.0904523,22 19.3869347,22 L14.4623116,22 C13.6582915,22 13.2562814,21.895288 12.9547739,21.6858639 C12.6532663,21.4764398 12.3517588,21.2670157 12.1507538,20.8481675 C12.1034481,20.774237 12.0617091,20.6945067 12.0255366,20.6076117 C12.002845,20.6555797 11.9772366,20.7004967 11.9497487,20.7434555 C11.7487437,21.0575916 11.5477387,21.3717277 11.1457286,21.5811518 C10.7437186,21.7905759 10.3417085,21.895288 9.63819095,21.895288 L4.61306533,21.895288 C3.80904523,21.895288 3.40703518,21.7905759 3.10552764,21.5811518 C2.8040201,21.3717277 2.50251256,21.1623037 2.30150754,20.7434555 C2.10050251,20.4293194 2,20.0104712 2,19.1727749 L2,14.0418848 C2,13.2041885 2.10050251,12.7853403 2.30150754,12.4712042 C2.50251256,12.1570681 2.70351759,11.8429319 3.10552764,11.6335079 C3.40703518,11.5287958 3.80904523,11.4240838 4.61306533,11.4240838 L7.32663317,11.4240838 L7.32663317,11.4240838 C7.12562814,11.0052356 7.02512563,10.5863874 7.02512563,9.7486911 L7.02512563,4.72251309 C7.02512563,3.88481675 7.12562814,3.46596859 7.32663317,3.04712042 C7.42713568,2.73298429 7.72864322,2.41884817 8.03015075,2.31413613 C8.4321608,2.10471204 8.83417085,2 9.63819095,2 L14.5628141,2 Z M12.0749659,12.71176 L12.0874744,12.6846501 L12.0874744,12.6846501 L12.1507538,12.5759162 L12.1507538,12.5759162 L14.361809,12.5759162 C13.758794,12.5759162 13.5577889,12.6806283 13.4572864,12.6806283 C13.3567839,12.6806283 13.2562814,12.8900524 13.1557789,12.9947644 C13.0696339,13.1742708 13.0573275,13.2768458 13.0555694,13.8300185 L13.0552764,19.2774869 C13.0552764,20.0104712 13.1557789,20.2198953 13.1557789,20.4293194 C13.2562814,20.5340314 13.3567839,20.7434555 13.5577889,20.7434555 C13.7444365,20.8406881 13.8444262,20.8476333 14.5015017,20.8481294 L19.5879397,20.8481675 C20.2914573,20.8481675 20.4924623,20.7434555 20.6934673,20.7434555 C20.7939698,20.6387435 20.9949749,20.5340314 20.9949749,20.3246073 C21.0811199,20.145101 21.0934263,20.0425259 21.0951844,19.4893533 L21.0954774,14.0418848 C21.0954774,13.3089005 20.9949749,13.0994764 20.9949749,12.8900524 C20.8944724,12.7853403 20.7939698,12.5759162 20.5929648,12.5759162 C20.4206748,12.4861631 20.3222234,12.4733412 19.7912888,12.4715095 L11.9497487,12.4712042 L11.9497487,12.4712042 C11.9970544,12.5451347 12.0387934,12.624865 12.0749659,12.71176 Z M8.03015075,12.1570681 C8.4321608,12.3664921 8.73366834,12.4712042 9.43718593,12.4712042 L4.61306533,12.4712042 C3.90954774,12.4712042 3.70854271,12.5759162 3.50753769,12.5759162 C3.40703518,12.6806283 3.20603015,12.7853403 3.20603015,12.8900524 C3.10552764,13.2041885 3.00502513,13.3089005 3.00502513,14.1465969 L3.00502513,19.2774869 C3.00502513,20.0104712 3.10552764,20.2198953 3.20603015,20.4293194 C3.30653266,20.5340314 3.40703518,20.7434555 3.50753769,20.7434555 C3.70854271,20.7434555 3.80904523,20.8481675 4.61306533,20.8481675 L9.53768844,20.8481675 C10.241206,20.8481675 10.4422111,20.7434555 10.6432161,20.7434555 C10.7437186,20.6387435 10.9447236,20.5340314 10.9447236,20.3246073 C11.0380474,20.1301421 11.0447134,20.0259643 11.0451895,19.3413674 L11.0452261,14.0418848 C11.0452261,13.3089005 10.9447236,13.0994764 10.9447236,12.8900524 C10.8442211,12.7853403 10.7437186,12.5759162 10.6432161,12.5759162 C10.4787574,12.4902427 10.3815773,12.4746657 10.0213993,12.4718336 L9.53768844,12.4712042 L9.53768844,12.4712042 C8.83417085,12.4712042 8.4321608,12.3664921 8.13065327,12.1570681 C7.82914573,11.947644 7.52763819,11.7382199 7.42713568,11.4240838 L7.32663317,11.4240838 C7.52763819,11.7382199 7.72864322,12.052356 8.03015075,12.1570681 Z M17.5778894,16.4502618 C17.9798995,16.4502618 18.281407,16.6596859 18.4824121,16.8691099 L18.427,16.923 L18.4619013,16.9649688 C18.6095785,17.1682872 18.6834171,17.4375467 18.6834171,17.7068063 L18.6834171,18.1256545 C18.6834171,18.8586387 18.080402,19.382199 17.4773869,19.382199 L15.7688442,19.382199 C15.5678392,19.486911 15.3668342,19.2774869 15.3668342,18.9633508 C15.3668342,18.7539267 15.5678392,18.5445026 15.7688442,18.5445026 L17.4773869,18.5445026 C17.678392,18.5445026 17.879397,18.3350785 17.879397,18.1256545 L17.879397,17.7068063 C17.879397,17.4973822 17.678392,17.2879581 17.4773869,17.2879581 L15.8693467,17.2879581 C15.6683417,17.2879581 15.4673367,17.078534 15.4673367,16.8691099 C15.4673367,16.6596859 15.6683417,16.4502618 15.8693467,16.4502618 L17.5778894,16.4502618 Z M7.52763819,14.2513089 C8.23115578,14.2513089 8.73366834,14.8795812 8.73366834,15.5078534 L8.73366834,15.9267016 C8.73366834,16.6596859 8.13065327,17.1832461 7.52763819,17.1832461 L6.62311558,17.1832461 C6.42211055,17.1832461 6.22110553,17.3926702 6.22110553,17.6020942 L6.22110553,18.4397906 L8.33165829,18.4397906 C8.53266332,18.4397906 8.73366834,18.6492147 8.73366834,18.8586387 C8.73366834,19.0680628 8.53266332,19.2774869 8.33165829,19.2774869 L5.81909548,19.2774869 C5.61809045,19.2774869 5.41708543,19.0680628 5.41708543,18.8586387 L5.41708543,17.7068063 C5.41708543,16.973822 6.0201005,16.4502618 6.62311558,16.4502618 L7.42713568,16.4502618 C7.72864322,16.4502618 7.82914573,16.2408377 7.82914573,15.9267016 L7.82914573,15.5078534 C7.82914573,15.2984293 7.6281407,15.0890052 7.42713568,15.0890052 L5.81909548,15.0890052 C5.61809045,15.0890052 5.41708543,14.8795812 5.41708543,14.6701571 C5.41708543,14.460733 5.61809045,14.2513089 5.81909548,14.2513089 L7.52763819,14.2513089 Z M17.4773869,14.2513089 C18.1809045,14.2513089 18.6834171,14.8795812 18.6834171,15.5078534 L18.6834171,15.9267016 C18.6834171,16.2408377 18.5829146,16.5549738 18.3819095,16.7643979 C18.1809045,16.4502618 17.879397,16.3455497 17.4773869,16.3455497 C17.678392,16.3455497 17.879397,16.1361257 17.879397,15.9267016 L17.879397,15.5078534 C17.879397,15.2984293 17.678392,15.0890052 17.4773869,15.0890052 L15.7688442,15.0890052 C15.5678392,15.0890052 15.3668342,14.8795812 15.3668342,14.6701571 C15.3668342,14.460733 15.5678392,14.2513089 15.7688442,14.2513089 L17.4773869,14.2513089 Z M14.4623116,3.04712042 L9.63819095,3.04712042 C8.83417085,3.04712042 8.73366834,3.15183246 8.53266332,3.2565445 C8.4321608,3.2565445 8.23115578,3.36125654 8.13065327,3.57068063 C8.13065327,3.78010471 8.03015075,3.88481675 8.03015075,4.72251309 L8.03015075,9.85340314 C8.03015075,10.5863874 8.13065327,10.7958115 8.13065327,11.0052356 C8.23115578,11.1099476 8.33165829,11.3193717 8.4321608,11.3193717 C8.63316583,11.3193717 8.83417085,11.4240838 9.43718593,11.4240838 L14.5628141,11.4240838 C15.1658291,11.4240838 15.3668342,11.3193717 15.4673367,11.3193717 C15.5678392,11.2146597 15.7688442,11.1099476 15.7688442,11.0052356 C15.8549892,10.8257292 15.8672957,10.7231542 15.8690537,10.1699815 L15.8693467,4.72251309 C15.8693467,3.9895288 15.7688442,3.78010471 15.7688442,3.57068063 C15.6683417,3.46596859 15.5678392,3.2565445 15.3668342,3.2565445 C15.3668342,3.15183246 15.2663317,3.04712042 14.4623116,3.04712042 Z M12.0502513,4.61780105 C12.2512563,4.61780105 12.4522613,4.82722513 12.4522613,5.03664921 L12.4522613,9.43455497 C12.4522613,9.64397906 12.2512563,9.85340314 12.0502513,9.85340314 C11.8492462,9.85340314 11.6482412,9.64397906 11.6482412,9.43455497 L11.6482412,5.03664921 C11.6482412,4.82722513 11.8492462,4.61780105 12.0502513,4.61780105 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"subjects",icon:["24","24",[],"","M11.9999608,6.48873431 C12.828049,6.08104273 13.7442836,5.92395943 14.6596155,6.03432052 L14.6596155,6.03432052 L18.7411881,6.52627319 C18.8894198,6.54415652 19.0011921,6.67308566 19.0011921,6.8263023 L19.0011921,6.8263023 L19.0011921,7.51037994 L19.7056558,7.51037994 C19.8682123,7.51037994 20,7.64563269 20,7.81246321 L20,7.81246321 L20,17.6979167 C20,17.8647473 19.8682515,18 19.7056558,18 L19.7056558,18 L4.29434418,18 C4.13174845,18 4,17.8647473 4,17.6979167 L4,17.6979167 L4,7.81246321 C4,7.64563269 4.13174845,7.51037994 4.29434418,7.51037994 L4.29434418,7.51037994 L4.99872941,7.51037994 L4.99872941,6.8263023 C4.99872941,6.67308566 5.11050171,6.54415652 5.25873344,6.52627319 L5.25873344,6.52627319 L9.34030602,6.03432052 C10.2557557,5.92391915 11.1718332,6.08104273 11.9999608,6.48873431 Z M4.99876866,8.11454648 L4.58868835,8.11454648 L4.58868835,17.3958335 L19.4113116,17.3958335 L19.4113116,8.11454648 L19.0011136,8.11454648 L19.0011136,16.4188559 C19.0011136,16.5051309 18.9652036,16.5872572 18.9023709,16.6445725 C18.8482116,16.6940336 18.7784717,16.7209392 18.7067694,16.7209392 C18.6953489,16.7209392 18.6838891,16.7202544 18.6724293,16.718885 L18.6724293,16.718885 L14.5908959,16.2269323 C13.7425175,16.1246671 12.8935504,16.2838045 12.1353983,16.6870655 C12.0504702,16.7322572 11.9494513,16.7322572 11.8645232,16.6870655 C11.1063318,16.2838045 10.2570508,16.1246671 9.40902557,16.2269323 L9.40902557,16.2269323 L5.32745299,16.718885 C5.24401623,16.7289544 5.16030474,16.7018878 5.09751132,16.6445725 C5.03467865,16.5872572 4.99876866,16.5051309 4.99876866,16.4188559 L4.99876866,16.4188559 L4.99876866,8.11454648 Z M14.5909352,6.63437873 C13.8015826,6.53924264 13.0113666,6.67074955 12.2943049,7.01452032 L12.2943049,7.01452032 L12.2943049,15.9488546 C13.0426063,15.6408908 13.8514249,15.5294825 14.6596155,15.6269144 L14.6596155,15.6269144 L18.4124645,16.0792337 L18.4124645,7.0949953 Z M11.7056558,7.01452032 C10.9886334,6.67074955 10.1983389,6.53920236 9.40902557,6.63437873 L9.40902557,6.63437873 L5.58745701,7.0949953 L5.58745701,16.0791935 L9.34034527,15.6268741 C9.53041311,15.6039963 9.72055945,15.5925977 9.90984238,15.5925977 C10.5256104,15.5925977 11.1332938,15.7133907 11.7056558,15.9489351 L11.7056558,15.9489351 Z M12.8179628,13.2954357 C13.418268,13.1280413 14.0360375,13.080876 14.6541996,13.1553093 L14.6541996,13.1553093 L17.7187541,13.5245759 C17.8801725,13.5440301 17.9956731,13.6941453 17.9767566,13.8598481 C17.9591745,14.0135883 17.8320178,14.1267286 17.6848064,14.1267286 C17.6733466,14.1267286 17.6617691,14.1260439 17.6500738,14.1246341 L17.6500738,14.1246341 L14.5855585,13.7553675 C14.0427486,13.690037 13.4998209,13.7314023 12.9722777,13.8784564 C12.8155688,13.9222383 12.6537188,13.8271828 12.6110978,13.6661523 C12.5684767,13.505162 12.6610578,13.3391773 12.8179628,13.2954357 Z M9.3348116,13.1553496 C9.95195322,13.0815205 10.5768655,13.1297732 11.1712838,13.295919 C11.3281496,13.3397412 11.4206914,13.5057662 11.3779526,13.6667564 C11.3352531,13.827787 11.1734031,13.9226814 11.0166157,13.8788592 C10.4945669,13.7329328 9.9450067,13.6906412 9.40325643,13.7554078 L9.40325643,13.7554078 L6.33901581,14.1246341 C6.32735978,14.1260439 6.315743,14.1267286 6.3042832,14.1267286 C6.15707186,14.1267286 6.02991518,14.0135883 6.01229378,13.8598481 C5.99333801,13.6941453 6.10887791,13.5440704 6.27029626,13.5246162 L6.27029626,13.5246162 Z M12.8179236,11.9098804 C13.4183465,11.7424457 14.036116,11.695361 14.6541603,11.7697541 L14.6541603,11.7697541 L17.7187149,12.1390207 C17.8801332,12.1584748 17.9956339,12.3085498 17.9767174,12.4742525 C17.9591352,12.6279928 17.8319785,12.741133 17.6847672,12.741133 L17.6847672,12.741133 L17.6500346,12.7390386 L14.5855192,12.369772 C14.0425524,12.3043609 13.4997032,12.3457664 12.9722384,12.4928609 C12.8155296,12.5366428 12.6536795,12.4415873 12.6110585,12.280597 C12.5684375,12.1196068 12.6610185,11.9536221 12.8179236,11.9098804 Z M9.3348116,11.7697541 C9.95183548,11.6959249 10.5769048,11.7441777 11.1712838,11.9103235 C11.3281496,11.9541457 11.4206914,12.1201707 11.3779526,12.2811609 C11.3352531,12.4421914 11.1734031,12.5370456 11.0166157,12.4932636 C10.4944884,12.347297 9.94484971,12.3050053 9.40325643,12.3698123 L9.40325643,12.3698123 L6.33901581,12.7390386 C6.32735978,12.7404483 6.315743,12.741133 6.3042832,12.741133 C6.15707186,12.741133 6.02991518,12.6279928 6.01229378,12.4742525 C5.99333801,12.3085498 6.10887791,12.1584748 6.27029626,12.1390207 L6.27029626,12.1390207 Z M12.8179236,10.5243251 C13.4183072,10.3569307 14.036116,10.3097655 14.6541603,10.3841988 L14.6541603,10.3841988 L17.7187149,10.7534654 C17.8801332,10.7729195 17.9956339,10.9229945 17.9767174,11.0886973 C17.9591352,11.2424375 17.8319785,11.3555778 17.6847672,11.3555778 C17.6733074,11.3555778 17.6617299,11.354893 17.6500346,11.3534833 L17.6500346,11.3534833 L14.5855192,10.9842167 C14.0426308,10.9188459 13.4997817,10.9602112 12.9722384,11.1073056 C12.8155296,11.1510472 12.6536795,11.056032 12.6110585,10.8950417 C12.5684375,10.7340515 12.6610185,10.5680668 12.8179236,10.5243251 Z M9.3348116,10.3841585 C9.95199246,10.3103696 10.5769048,10.3586224 11.1712838,10.5247682 C11.3281496,10.5685904 11.4206914,10.7346154 11.3779526,10.8956056 C11.3352531,11.0566362 11.1734031,11.1515306 11.0166157,11.1077084 C10.4945669,10.961782 9.94496745,10.9194903 9.40325643,10.984257 L9.40325643,10.984257 L6.33901581,11.3534833 C6.32735978,11.354893 6.315743,11.3555778 6.3042832,11.3555778 C6.15707186,11.3555778 6.02991518,11.2424375 6.01229378,11.088657 C5.99333801,10.9229542 6.10887791,10.7728793 6.27029626,10.7534251 L6.27029626,10.7534251 Z M12.8179236,9.13876988 C13.4183072,8.97133519 14.036116,8.9242102 14.6541603,8.99864352 L14.6541603,8.99864352 L17.7187149,9.36791011 C17.8801332,9.38736427 17.9956339,9.53743924 17.9767174,9.70314198 C17.9591352,9.85688223 17.8319785,9.97002249 17.6847672,9.97002249 C17.6733074,9.97002249 17.6617299,9.96933776 17.6500346,9.96792804 L17.6500346,9.96792804 L14.5855192,9.59866145 C14.0426308,9.53329063 13.4997817,9.5746559 12.9722384,9.72175031 C12.8155296,9.76549197 12.6536795,9.67043644 12.6110585,9.50948647 C12.5684375,9.34849622 12.6610185,9.18251154 12.8179236,9.13876988 Z M9.3348116,8.99860324 C9.95195322,8.92477409 10.5768655,8.97302686 11.1712838,9.13917266 C11.3281496,9.18299487 11.4206914,9.34901984 11.3779526,9.51001008 C11.3352531,9.6710406 11.1734031,9.76589475 11.0166157,9.72211281 C10.4945669,9.57618646 9.9450067,9.5338948 9.40325643,9.59866145 L9.40325643,9.59866145 L6.33901581,9.96788776 C6.32735978,9.96929749 6.315743,9.96998221 6.3042832,9.96998221 C6.15707186,9.96998221 6.02991518,9.85684195 6.01229378,9.70310171 C5.99333801,9.53739896 6.10887791,9.38732399 6.27029626,9.36786983 L6.27029626,9.36786983 Z M12.8179236,7.75317433 C13.418268,7.58573964 14.0360375,7.53857437 14.6541603,7.61304797 L14.6541603,7.61304797 L17.7187149,7.98231456 C17.8801332,8.00176872 17.9956339,8.15184369 17.9767174,8.31754644 C17.9591352,8.47128668 17.8319785,8.58442694 17.6847672,8.58442694 L17.6847672,8.58442694 L17.6500346,8.58233249 L14.5855192,8.2130659 C14.0427093,8.14769508 13.4997817,8.18906035 12.9722384,8.33615477 C12.8155296,8.37985615 12.6536795,8.28488117 12.6110585,8.12389092 C12.5684375,7.96290068 12.6610185,7.79691599 12.8179236,7.75317433 Z M9.3348116,7.61304797 C9.95222794,7.53921882 10.576944,7.58747159 11.1712838,7.75361739 C11.3281496,7.7974396 11.4206914,7.96346456 11.3779526,8.12445481 C11.3352531,8.28548533 11.1734031,8.38033948 11.0166157,8.33655754 C10.4946061,8.19063118 9.94535991,8.14829925 9.40325643,8.21310618 L9.40325643,8.21310618 L6.33901581,8.58233249 C6.32735978,8.58374222 6.315743,8.58442694 6.3042832,8.58442694 C6.15707186,8.58442694 6.02991518,8.47128668 6.01229378,8.31754644 C5.99333801,8.15184369 6.10887791,8.00176872 6.27029626,7.98231456 L6.27029626,7.98231456 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file",icon:["24","24",[],"","M6 4h7l6 5v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm6.586 1H6v14h12V9.414L12.586 5zM13 10h3.5a.5.5 0 1 1 0 1h-4a.5.5 0 0 1-.5-.5v-4a.5.5 0 1 1 1 0V10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-pdf",icon:["24","24",[],"","M9.833 15.006c-.328.765-.657 1.316-.997 1.619-.35.312-.762.394-1.138.15a1.345 1.345 0 0 1-.358-.322c-.298-.402-.194-.843.165-1.2.228-.227.563-.433.983-.63.226-.106.466-.204.706-.292.142-.358.286-.762.43-1.205a41.787 41.787 0 0 0 .866-3.123c-.435-.563-.75-1.057-.924-1.473-.28-.67-.211-1.242.372-1.494.56-.24 1.047-.086 1.307.391.17.312.234.736.231 1.26a7.96 7.96 0 0 1-.086 1.088c.158.195.33.398.513.606a30.903 30.903 0 0 0 1.73 1.81 14.011 14.011 0 0 0 .863.761c.464-.07.87-.106 1.213-.105.947.002 1.554.319 1.415 1.079-.107.585-.514.888-1.06.834-.365-.036-.781-.224-1.259-.532a8.753 8.753 0 0 1-.538-.38 21.15 21.15 0 0 0-.944.191c-.39.087-.798.188-1.22.3a45.345 45.345 0 0 0-2.27.667zM6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm4.43 8.39c-.07.21-.138.412-.207.606l.055-.016a46.181 46.181 0 0 1 1.608-.459 33.869 33.869 0 0 1 1.538-.37 15.994 15.994 0 0 1-.378-.35 31.732 31.732 0 0 1-1.882-1.98l-.083.32a38.471 38.471 0 0 1-.652 2.248zm-2.157 2.603c.12-.107.248-.279.382-.51a2.35 2.35 0 0 0-.553.37c-.092.092-.09.086-.083.096a.54.54 0 0 0 .138.116c.017.01.025.01.116-.072zm7.434-2.3c-.047 0-.095 0-.146.002.242.132.443.209.585.223.11.011.118.005.146-.145.005-.027-.095-.079-.585-.08zm-5.36-5.49c.065.156.16.334.283.53v-.05c.003-.393-.044-.696-.128-.85-.046-.086-.063-.091-.23-.02-.04.018-.05.092.075.39z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-img",icon:["24","24",[],"","M5 6v12h14V6H5zm0-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm2.4 10.3a.5.5 0 0 1-.8-.6l3-4a.5.5 0 0 1 .754-.054l.579.58 1.765-2.513a.5.5 0 0 1 .83.015l3.891 6a.5.5 0 0 1-.838.544l-3.49-5.379-1.682 2.394a.5.5 0 0 1-.763.067l-.592-.593L7.4 15.3zm.6-4.8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-ppt",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.07 6.96h1.22c.18 0 .353-.013.52-.04a1.21 1.21 0 0 0 .44-.155.844.844 0 0 0 .305-.325c.077-.14.115-.323.115-.55 0-.227-.038-.41-.115-.55a.844.844 0 0 0-.305-.325 1.21 1.21 0 0 0-.44-.155 3.288 3.288 0 0 0-.52-.04h-1.22v2.14zM9.5 8.6h3.22c.447 0 .827.065 1.14.195.313.13.568.302.765.515.197.213.34.457.43.73a2.715 2.715 0 0 1 0 1.695c-.09.277-.233.522-.43.735a2.133 2.133 0 0 1-.765.515c-.313.13-.693.195-1.14.195h-1.65v2.56H9.5V8.6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-word",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm8.77 10.74h-1.56L12 10.88h-.02l-1.19 4.86H9.2L7.31 8.6h1.57l1.13 4.86h.02l1.24-4.86h1.47l1.22 4.92h.02l1.17-4.92h1.54l-1.92 7.14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-zip",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5 0h1v1h-1V5zm1 1h1v1h-1V6zm-1 1h1v1h-1V7zm1 1h1v1h-1V8zm-1 1h1v1h-1V9zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-excel",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.09 7l-2.3-3.4h1.82l1.4 2.28 1.45-2.28h1.72l-2.29 3.41 2.49 3.73h-1.87l-1.56-2.47-1.59 2.47H8.6L11.09 12z"]}},function(e,t){e.exports={prefix:"cv",iconName:"twitter",icon:["24","24",[],"","M20.594 7.117c-.422.656-.985 1.242-1.688 1.758v.422c0 2.46-.885 4.693-2.654 6.697C14.482 17.998 12.132 19 9.203 19c-1.875 0-3.61-.516-5.203-1.547.375.047.645.07.809.07 1.57 0 2.976-.492 4.218-1.476a3.422 3.422 0 0 1-1.968-.686 3.22 3.22 0 0 1-1.196-1.67c.282.047.492.07.633.07.234 0 .54-.046.914-.14a3.436 3.436 0 0 1-1.951-1.178 3.24 3.24 0 0 1-.791-2.162v-.035c.516.281 1.031.422 1.547.422-1.008-.656-1.512-1.605-1.512-2.848 0-.586.152-1.148.457-1.687 1.805 2.226 4.137 3.41 6.996 3.55-.047-.163-.07-.421-.07-.773 0-.96.328-1.77.984-2.426.657-.656 1.465-.984 2.426-.984.961 0 1.781.363 2.461 1.09.703-.117 1.43-.399 2.18-.844-.235.82-.739 1.453-1.512 1.899a5.806 5.806 0 0 0 1.969-.528z"]}},function(e,t){e.exports={prefix:"cv",iconName:"facebook",icon:["24","24",[],"","M13.667 9.667H16L15.708 12h-2.041v7H10.64v-7H9V9.667h1.64V8.099c0-1.02.256-1.793.766-2.315.51-.523 1.361-.784 2.552-.784H16v2.333h-1.24c-.461 0-.76.073-.893.22-.133.145-.2.388-.2.728v1.386z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-240",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm1 4.818C4 9.644 4.94 8.8 6.261 8.8c1.272 0 2.182.777 2.182 1.81 0 .76-.45 1.334-1.285 2.178L5.58 14.347v.022h2.96v.932H4.062v-.769L6.407 12.2c.724-.737.923-1.064.923-1.54 0-.526-.473-.946-1.104-.946-.663 0-1.157.468-1.157 1.1v.017H4v-.013zm8.426 4.483v-1.206h-3.18v-.98c.553-1.043 1.264-2.178 2.646-4.187h1.62v4.235h.857v.932h-.856v1.206h-1.087zm-2.146-2.142v.03h2.164V9.773h-.018c-1.029 1.492-1.638 2.433-2.146 3.387zm7.234 2.27c-1.564 0-2.496-1.277-2.496-3.321 0-2.036.941-3.308 2.496-3.308 1.55 0 2.486 1.263 2.486 3.303s-.927 3.326-2.486 3.326zm0-.932c.843 0 1.333-.888 1.333-2.39 0-1.488-.499-2.375-1.333-2.375-.84 0-1.347.896-1.347 2.371 0 1.502.499 2.394 1.347 2.394z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-480",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm3.964 9.269v-1.2H3.8v-.976c.55-1.037 1.257-2.166 2.632-4.166h1.613v4.215h.853v.927h-.853v1.2h-1.08zm-2.136-2.132v.031h2.154V9.767h-.018c-1.024 1.485-1.63 2.421-2.136 3.37zm7.185 2.26c-1.467 0-2.47-.761-2.47-1.842 0-.822.58-1.468 1.442-1.63v-.022c-.72-.185-1.19-.743-1.19-1.433 0-.962.926-1.67 2.218-1.67 1.297 0 2.215.703 2.215 1.674 0 .681-.466 1.235-1.186 1.429v.022c.861.167 1.446.813 1.446 1.63 0 1.085-1.016 1.841-2.475 1.841zm0-.867c.76 0 1.297-.448 1.297-1.059 0-.62-.536-1.063-1.297-1.063-.76 0-1.296.448-1.296 1.063 0 .611.536 1.06 1.296 1.06zm0-2.988c.638 0 1.095-.395 1.095-.94 0-.55-.453-.945-1.095-.945-.646 0-1.098.395-1.098.945 0 .545.452.94 1.098.94zm5.709 3.854c-1.556 0-2.483-1.27-2.483-3.304 0-2.026.936-3.292 2.483-3.292 1.542 0 2.474 1.257 2.474 3.287 0 2.03-.923 3.31-2.474 3.31zm0-.927c.84 0 1.327-.883 1.327-2.377 0-1.481-.497-2.365-1.327-2.365-.835 0-1.34.892-1.34 2.36 0 1.494.496 2.382 1.34 2.382z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-hd",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm2 2.25h1.31v2.976h3.406V8.25h1.31v7.482h-1.31v-3.374H6.31v3.374H5V8.25zm7.597 0H15.7c.573 0 1.069.098 1.488.293.42.196.762.463 1.027.802.266.339.463.735.592 1.19.13.454.194.939.194 1.456a5.3 5.3 0 0 1-.194 1.457 3.43 3.43 0 0 1-.592 1.189 2.765 2.765 0 0 1-1.027.802c-.419.195-.915.293-1.488.293h-3.102V8.25zm1.31 6.413h1.29c.51 0 .927-.068 1.251-.204.325-.136.58-.325.765-.566.185-.241.311-.524.378-.849.066-.325.1-.676.1-1.053 0-.377-.034-.728-.1-1.053a2.043 2.043 0 0 0-.378-.849 1.832 1.832 0 0 0-.765-.566c-.324-.136-.742-.204-1.252-.204h-1.289v5.344z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm5.486 9.759c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C6.635 8.337 7.548 8 8.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397zm7 0c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C13.635 8.337 14.548 8 15.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397z"]}},function(e,t){e.exports={prefix:"cv",iconName:"contract",icon:["24","24",[],"","M8.5 8.5V5H10v5H5V8.5h3.5zm0 7H5V14h5v5H8.5v-3.5zm7-7H19V10h-5V5h1.5v3.5zm0 7V19H14v-5h5v1.5h-3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"full-screen",icon:["24","24",[],"","M6.5 6.5V10H5V5h5v1.5H6.5zm0 11H10V19H5v-5h1.5v3.5zm11-11H14V5h5v5h-1.5V6.5zm0 11V14H19v5h-5v-1.5h3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"mute",icon:["24","24",[],"","M16.733 12.018l-1.57-1.57a.555.555 0 1 1 .785-.785l1.57 1.57 1.57-1.57a.555.555 0 1 1 .785.785l-1.57 1.57 1.57 1.57a.555.555 0 1 1-.785.785l-1.57-1.57-1.57 1.57a.555.555 0 1 1-.785-.785l1.57-1.57zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},function(e,t){e.exports={prefix:"cv",iconName:"next",icon:["24","24",[],"","M16 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11zm-10.86.005a.5.5 0 0 1 .761-.427l9.003 5.5a.5.5 0 0 1 0 .853l-9.003 5.5a.5.5 0 0 1-.76-.426v-11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play",icon:["24","24",[],"","M7.5 6.505v11l9.002-5.5-9.002-5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play-circle",icon:["24","24",[],"","M0,12 C0,5.372583 5.372583,0 12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 Z M23,12 C23,5.92486775 18.0751322,1 12,1 C5.92486775,1 1,5.92486775 1,12 C1,18.0751322 5.92486775,23 12,23 C18.0751322,23 23,18.0751322 23,12 Z M9,7.49836245 C9,6.94698209 9.38671875,6.74169922 9.84669815,7.02918634 L17.1533018,11.5958137 C17.6209203,11.8880752 17.6132812,12.3666992 17.1533018,12.6541863 L9.84669815,17.2208137 C9.37907967,17.5130752 9,17.2950531 9,16.7516375 L9,7.49836245 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"pause",icon:["24","24",[],"","M8 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 8 17.5v-11zm6 0c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"previous",icon:["24","24",[],"","M5 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 5 17.5v-11zm13.602.005v11a.5.5 0 0 1-.76.426l-9.003-5.5a.5.5 0 0 1 0-.853l9.002-5.5a.5.5 0 0 1 .761.427z"]}},function(e,t){e.exports={prefix:"cv",iconName:"volume",icon:["24","24",[],"","M15.8 11.25c-.137-.815-.44-1.549-.727-2.009a.48.48 0 0 1 .167-.67.507.507 0 0 1 .687.163c.35.56.7 1.41.86 2.359.24 1.439.001 2.866-.866 4.183a.508.508 0 0 1-.691.147.48.48 0 0 1-.15-.674c.724-1.1.922-2.285.72-3.5zm1.86 5.959c1.856-3.7 1.676-7.108 0-10.416a.558.558 0 0 1 .201-.728.483.483 0 0 1 .678.215c1.828 3.61 2.028 7.398.001 11.438a.483.483 0 0 1-.677.218.557.557 0 0 1-.203-.727zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm3.186 5.646l-4.723 5.18-1.683-1.615a.772.772 0 0 0-1.06 0 .7.7 0 0 0 0 1.018l2.25 2.16a.771.771 0 0 0 1.094-.035l5.25-5.76a.7.7 0 0 0-.07-1.016.772.772 0 0 0-1.058.068z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle-o",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm0 1.212a7.737 7.737 0 0 0-5.508 2.28A7.737 7.737 0 0 0 4.212 12c0 2.081.809 4.037 2.28 5.508A7.737 7.737 0 0 0 12 19.788a7.737 7.737 0 0 0 5.508-2.28A7.737 7.737 0 0 0 19.788 12a7.737 7.737 0 0 0-2.28-5.508A7.737 7.737 0 0 0 12 4.212zm3.186 4.434a.772.772 0 0 1 1.058-.068.7.7 0 0 1 .07 1.016l-5.25 5.76a.771.771 0 0 1-1.094.035l-2.25-2.16a.7.7 0 0 1 0-1.018.772.772 0 0 1 1.06 0l1.683 1.616 4.723-5.181z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check",icon:["24","24",[],"","M16.247 7.341a1 1 0 0 1 1.506 1.318l-7 8a1 1 0 0 1-1.46.048l-3-3a1 1 0 0 1 1.414-1.414l2.244 2.244 6.296-7.196z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption-badge",icon:["24","24",[],"","M7.5 5A2.5 2.5 0 0 0 5 7.5v9A2.5 2.5 0 0 0 7.5 19h9a2.5 2.5 0 0 0 2.5-2.5v-9A2.5 2.5 0 0 0 16.5 5h-9zm0-1h9A3.5 3.5 0 0 1 20 7.5v9a3.5 3.5 0 0 1-3.5 3.5h-9A3.5 3.5 0 0 1 4 16.5v-9A3.5 3.5 0 0 1 7.5 4zM11 9a.5.5 0 1 1 0 1H9.5A1.5 1.5 0 0 0 8 11.5v1A1.5 1.5 0 0 0 9.5 14H11a.5.5 0 1 1 0 1H9.5A2.5 2.5 0 0 1 7 12.5v-1A2.5 2.5 0 0 1 9.5 9H11zm5 0a.5.5 0 1 1 0 1h-1.5a1.5 1.5 0 0 0-1.5 1.5v1a1.5 1.5 0 0 0 1.5 1.5H16a.5.5 0 1 1 0 1h-1.5a2.5 2.5 0 0 1-2.5-2.5v-1A2.5 2.5 0 0 1 14.5 9H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"question",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zM8.142 9.17c0 .247.103.476.309.687.206.212.46.318.76.318.508 0 .854-.303 1.036-.908.193-.579.428-1.017.707-1.314.278-.297.712-.446 1.302-.446.503 0 .914.147 1.233.442.319.294.478.656.478 1.085 0 .22-.052.423-.157.61a2.305 2.305 0 0 1-.385.51c-.153.153-.4.38-.744.68-.39.342-.701.638-.932.887-.23.25-.415.539-.554.868-.14.33-.209.72-.209 1.17 0 .358.095.629.285.81.19.183.425.274.703.274.536 0 .855-.279.956-.836a12.2 12.2 0 0 1 .133-.55c.03-.104.071-.209.125-.313.053-.105.135-.22.245-.346.11-.126.255-.272.438-.438a48.078 48.078 0 0 0 1.37-1.257c.254-.25.474-.545.658-.888.185-.343.278-.742.278-1.197a2.87 2.87 0 0 0-.486-1.608c-.325-.492-.784-.882-1.378-1.169-.595-.286-1.28-.43-2.057-.43-.836 0-1.567.172-2.194.515s-1.104.775-1.43 1.297c-.327.523-.49 1.038-.49 1.547zm3.868 9.579c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797a1.073 1.073 0 0 0-.793-.324c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"info",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zm-10-.38V15a2.5 2.5 0 0 0 2.5 2.5h.75a1 1 0 0 0 0-2h-.75a.5.5 0 0 1-.5-.5v-3.75a1.75 1.75 0 0 0-1.75-1.75h-.75a1 1 0 1 0 0 2h.5zm.636-3.25c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797A1.073 1.073 0 0 0 11.636 6c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"lock",icon:["24","24",[],"","M7.01 9.5C7.156 5.97 8.87 4 12 4s4.844 1.97 4.99 5.5h1.51a.5.5 0 0 1 .5.5v9.5a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .5-.5h1.51zm2 0h5.98C14.88 7.037 13.932 6 12 6c-1.933 0-2.88 1.037-2.99 3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"verified",icon:["24","24",[],"","M10.407 12.368l-1.22-1.22a.49.49 0 0 0-.698.004l-.583.583a.494.494 0 0 0-.004.697l2.135 2.135c.107.108.25.154.388.142a.488.488 0 0 0 .352-.143l4.362-4.362a.494.494 0 0 0-.004-.698l-.582-.582a.495.495 0 0 0-.698-.004l-3.448 3.448zm7.922-.37l1.437 1.406c.208.194.277.437.208.728a.716.716 0 0 1-.541.531l-1.957.5.551 1.936a.671.671 0 0 1-.197.729.671.671 0 0 1-.73.198l-1.935-.552-.5 1.957a.716.716 0 0 1-.53.541 1.28 1.28 0 0 1-.199.021.686.686 0 0 1-.53-.229L12 18.328l-1.405 1.436c-.195.208-.437.278-.729.208a.696.696 0 0 1-.53-.541l-.5-1.957-1.937.552a.671.671 0 0 1-.728-.198.671.671 0 0 1-.198-.729l.551-1.936-1.957-.5a.716.716 0 0 1-.54-.53c-.07-.292 0-.535.207-.73l1.437-1.405-1.437-1.405c-.208-.194-.277-.437-.208-.729a.716.716 0 0 1 .541-.53l1.957-.5-.551-1.936a.671.671 0 0 1 .198-.73.671.671 0 0 1 .728-.197l1.936.552.5-1.957a.675.675 0 0 1 .531-.531.671.671 0 0 1 .729.198L12 5.68l1.405-1.447a.697.697 0 0 1 .73-.198c.284.07.46.246.53.53l.5 1.958L17.1 5.97a.671.671 0 0 1 .729.198.671.671 0 0 1 .197.729l-.551 1.936 1.957.5a.715.715 0 0 1 .541.53c.07.292 0 .535-.208.73l-1.437 1.404z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning-o",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 5L3.5 19h17L12 5zm0 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm.75-3.677a.689.689 0 0 1-.7.677.689.689 0 0 1-.7-.677V8.677c0-.374.313-.677.7-.677.387 0 .7.303.7.677v5.646z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm.75-3.677V8.677a.689.689 0 0 0-.7-.677c-.387 0-.7.303-.7.677v5.646c0 .374.313.677.7.677.387 0 .7-.303.7-.677z"]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={CreateChapter:"create:chapter",UpdateChapter:"update:chapter",DeleteChapter:"delete:chapter",CancelChapterEdit:"cancel:chapter:edit",UpdateChapterTime:"update:chapter:time",SortChapters:"sort:chapters",ToggleEdit:"toggle:edit",MergeChapters:"merge:chapters",SeekToChapter:"seek:to:chapter",Save:"save:changes",Undo:"undo:changes",CancelSave:"save:cancel",DisableSave:"disable:save",EnableSave:"enable:save",DetectInput:"detect:input",DetectAssocChange:"detect:assoc:change"}},function(e,t,n){"use strict"},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={VIDEO_LIST:"video:list",MIGRATION_VIDEO_LIST:"migration:video:list"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),function(e){e.VideoTitle="Video Title",e.Description="Description",e.Rating="Rating",e.SeriesTitle="Series Title",e.Season="Season Number",e.EpisodeNumber="Episode Number",e.BroadcastDate="Broadcast Date",e.Channel="Channel",e.ProductionYear="Production Year",e.Distributors="Distributors",e.ProductionCompanies="Production Companies",e.Directors="Directors",e.Producers="Producers",e.Other="Other"}(r||(r={}));var o={VideoTitle:{id:"0",name:r.VideoTitle,property:"name"},Description:{id:"1",name:r.Description,property:"description"},Rating:{id:"2",name:r.Rating,property:"rating.name"},SeriesTitle:{id:"3",name:r.SeriesTitle,property:"series.name"},Season:{id:"4",name:r.Season,property:"season.number"},EpisodeNumber:{id:"5",name:r.EpisodeNumber,property:"episodeNumber"},BroadcastDate:{id:"6",name:r.BroadcastDate,property:"dateBroadcast"},Channel:{id:"7",name:r.Channel,property:"channel.name"},ProductionYear:{id:"8",name:r.ProductionYear,property:"productionYear"},Distributors:{id:"9",name:r.Distributors,property:"distributors",collection:!0},ProductionCompanies:{id:"10",name:r.ProductionCompanies,property:"productionCompanies",collection:!0},Directors:{id:"11",name:r.Directors,property:"directors",collection:!0},Producers:{id:"12",name:r.Producers,property:"producers",collection:!0},Other:{id:"13",name:r.Other}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="edit:video:back:button"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=[r.a.LibraryEditor.EDIT_VIDEO,r.a.LibraryEditor.EDIT_VIDEO_CHAPTERS,r.a.LibraryEditor.EDIT_VIDEO_RESOURCES]},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(11),o=n(20);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setData(t)}var t,n,a;return t=e,(n=[{key:"setData",value:function(e){var t=e.collectionPrefix,n=e.id,r=e.sort,o=e.cursor;n&&(this.id=n),r&&(this.sort=r),o&&(this.cursor=o),t&&(this.collectionPrefix=t)}},{key:"toString",value:function(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}},{key:"getSortTypeParam",value:function(){return r.c.throw(new o.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&i(t.prototype,n),a&&i(t,a),e}()},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.SmartPhase1=1]="SmartPhase1",e[e.MigrateAllPhase1=2]="MigrateAllPhase1",e[e.Phase2=3]="Phase2",e[e.PostFinalisation=4]="PostFinalisation"}(r||(r={}))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return s}));var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=a(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(n(2).a.Collection)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={isCollectionEmpty:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"collection";return e[t]&&!e[t].length}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Notification="notification"}(r||(r={}))},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+' partial-loading-background"></div><div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={icon:"_1FlbK",contentContainer:"_1RJPc",content:"_4fHKQ",notificationTime:"_3hBwJ"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="p-2"><a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+" - "+u("function"==typeof(i=null!=(i=n.libraryName||(null!=t?t.libraryName:t))?i:c)?i.call(a,{name:"libraryName",hash:{},data:o}):i)+"</a></div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="direct-search-suggestion p-2"><span class="ignore-highlighting">'+u("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:c)?i.call(a,{name:"templateText",hash:{},data:o}):i)+'</span>\r\n <span class="query-text">'+u("function"==typeof(i=null!=(i=n.query||(null!=t?t.query:t))?i:c)?i.call(a,{name:"query",hash:{},data:o}):i)+"</span>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="tt-pending p-2">\r\n <div class="partial-text">'+e.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="tt-not-found"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="suggestion-seperator border-bottom"></div>\r\n'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold px-2 pt-2 pb-1">'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataset||(null!=t?t.dataset:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataset",hash:{},data:o}):i)+"</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold p-2">'+e.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="no-libraries-suggestion p-2">\r\n <div class="ignore-highlighting">'+e.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=t?t.templateText:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>\r\n</div>"},useData:!0})},function(e,t,n){"use strict";var r=n(477);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(479);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(480);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(481);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(482);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(483);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(196);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var l=n(484);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables}));var f=n(485);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables}));var p=n(486);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables}));var h=n(487);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables}));var y=n(488);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables}));var d=n(489);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables})),n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var b=n(490);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables}));var v=n(491);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables}));var g=n(492);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables}));var m=n(493);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables}));var w=n(494);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var S=n(495);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables}));var O=n(496);n.o(O,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables}));var C=n(497);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables}));var k=n(498);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables}));var E=n(499);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables}));var _=n(500);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables}));var R=n(501);n.o(R,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables}))},function(e,t,n){"use strict";var r=n(478);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(503);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(506);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(512);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(518);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(519);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(520);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(521);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var l=n(522);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables}));var f=n(523);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables}));n(524);var p=n(525);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables}));var h=n(526);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables}));var y=n(527);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables}));var d=n(197);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables}));var b=n(528);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables}));var v=n(529);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables}));var g=n(530);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables}));var m=n(531);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables}));var w=n(532);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var S=n(533);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables}));var O=n(198);n.o(O,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables}));var C=n(534);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables})),n.o(O,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables}));var k=n(535);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables}));var E=n(536);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables}));var _=n(537);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables}));var R=n(538);n.o(R,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables}));var P=n(539);n.o(P,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables}));var A=n(199);n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables}));n(540);var T=n(541);n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables}));var x=n(542);n.o(x,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return x.BaseNotificationsAppVariables})),n.o(x,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return x.BaseSearchAppVariables}));var L=n(543);n.o(L,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return L.BaseNotificationsAppVariables})),n.o(L,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return L.BaseSearchAppVariables}));var j=n(544);n.o(j,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return j.BaseNotificationsAppVariables})),n.o(j,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return j.BaseSearchAppVariables}));var N=n(545);n.o(N,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return N.BaseNotificationsAppVariables})),n.o(N,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return N.BaseSearchAppVariables}));var I=n(546);n.o(I,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables}));var V=n(547);n.o(V,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return V.BaseNotificationsAppVariables})),n.o(V,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return V.BaseSearchAppVariables}));var B=n(548);n.o(B,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return B.BaseNotificationsAppVariables})),n.o(B,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return B.BaseSearchAppVariables}));var D=n(549);n.o(D,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return D.BaseNotificationsAppVariables})),n.o(D,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return D.BaseSearchAppVariables}));var M=n(550);n.o(M,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return M.BaseNotificationsAppVariables})),n.o(M,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return M.BaseSearchAppVariables}));var U=n(551);n.o(U,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return U.BaseNotificationsAppVariables})),n.o(U,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return U.BaseSearchAppVariables}));var F=n(552);n.o(F,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return F.BaseNotificationsAppVariables})),n.o(F,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return F.BaseSearchAppVariables}));var H=n(553);n.o(H,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return H.BaseNotificationsAppVariables})),n.o(H,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return H.BaseSearchAppVariables}));var z=n(554);n.o(z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return z.BaseNotificationsAppVariables})),n.o(z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return z.BaseSearchAppVariables}));var q=n(555);n.o(q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return q.BaseNotificationsAppVariables})),n.o(q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return q.BaseSearchAppVariables}));var W=n(556);n.o(W,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return W.BaseNotificationsAppVariables})),n.o(W,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return W.BaseSearchAppVariables}));var Y=n(557);n.o(Y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Y.BaseNotificationsAppVariables})),n.o(Y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Y.BaseSearchAppVariables})),n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables}));var G=n(558);n.o(G,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return G.BaseNotificationsAppVariables})),n.o(G,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return G.BaseSearchAppVariables}));var K=n(559);n.o(K,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return K.BaseNotificationsAppVariables})),n.o(K,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return K.BaseSearchAppVariables}));var Q=n(560);n.o(Q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Q.BaseNotificationsAppVariables})),n.o(Q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Q.BaseSearchAppVariables}));var Z=n(561);n.o(Z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Z.BaseNotificationsAppVariables})),n.o(Z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Z.BaseSearchAppVariables})),n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables}));var $=n(562);n.o($,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return $.BaseNotificationsAppVariables})),n.o($,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return $.BaseSearchAppVariables}));var X=n(563);n.o(X,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return X.BaseNotificationsAppVariables})),n.o(X,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return X.BaseSearchAppVariables}));var J=n(564);n.o(J,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return J.BaseNotificationsAppVariables})),n.o(J,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return J.BaseSearchAppVariables}));var ee=n(565);n.o(ee,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ee.BaseNotificationsAppVariables})),n.o(ee,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ee.BaseSearchAppVariables}));var te=n(566);n.o(te,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return te.BaseNotificationsAppVariables})),n.o(te,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return te.BaseSearchAppVariables}));var ne=n(567);n.o(ne,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ne.BaseNotificationsAppVariables})),n.o(ne,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ne.BaseSearchAppVariables}))},function(e,t,n){"use strict";var r=n(504);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(505);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(507);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(508);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));n(509);var i=n(510);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(511);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;!function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(513);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(514);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(515);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(516);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(517);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;!function(e){e.Pink="colour:0",e.Orange="colour:1",e.Green="colour:2",e.Blue="colour:3",e.Purple="colour:4",e.Indigo="colour:5"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(569);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}))},function(e,t){},function(e,t,n){"use strict";var r=n(571);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(572);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(573);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(574);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(575);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(576);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(577);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var l=n(578);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables}));var f=n(579);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables}));var p=n(580);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables}));var h=n(581);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables}));var y=n(582);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables}));n(583)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r=n(585);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(586);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(587);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(588);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(589);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(590);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(591);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(43);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"name",get:function(){return r.a.SEARCH}}])&&o(t.prototype,n),i&&o(t,i),e}();function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"name",get:function(){return r.a.NOTIFICATIONS}}])&&a(t.prototype,n),o&&a(t,o),e}();n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}))},function(e,t,n){"use strict";var r=n(2),o=n(6),i=n(36),a=n(3);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h="shared.tooManyFiles",y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(i,e);var t,n,r,o=l(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,a.a.getPhrase(h,"title"))}return t=i,(n=[{key:"name",get:function(){return"TooManyFilesError"}},{key:"dialogOptions",get:function(){return{title:a.a.getPhrase(h,"heading"),text:a.a.getPhrase(h,"body"),buttons:[{text:a.a.getPhrase(h,"okay"),className:"btn btn-primary",success:!0}]}}}])&&u(t.prototype,n),r&&u(t,r),i}(i.a),d=n(238),b=n(232),v=n(44);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return E}));var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(c,e);var t,n,i,a=O(c);function c(){return m(this,c),a.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock),!1!==this.options.acceptMultiple&&(this.options.acceptMultiple=!0)}},{key:"events",get:function(){return{drop:"onDrop",drag:"onDrag"}}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(e){if(!this.locked){e.preventDefault();var t=e.originalEvent;if(d.a.isFileDrag(e)){var n=[];if(t.dataTransfer.items)for(var i=0;i<t.dataTransfer.items.length;i++)"file"===t.dataTransfer.items[i].kind&&n.push(t.dataTransfer.items[i].getAsFile());else for(var a=0;a<t.dataTransfer.files.length;a++){var c=t.dataTransfer.files[a];n.push(c)}n.length>1&&!this.options.acceptMultiple?r.a.ErrorHelper.throw(new y):(o.Radio.channel(this.options.channelName).trigger(v.a.FILES_SELECTED,n,b.a.DragDrop),t.dataTransfer.items?t.dataTransfer.items.clear():t.dataTransfer.clearData())}}}}])&&w(t.prototype,n),i&&w(t,i),c}(r.a.Behavior)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=c(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return g}));var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(i,e);var t,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return l}},{key:"parse",value:function(e){return e.data||e}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=c(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return g}));var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(i,e);var t,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return l}},{key:"parse",value:function(e){return e.data||e}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=c(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return g}));var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(i,e);var t,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return l}},{key:"parse",value:function(e){return e.data||e}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){"use strict";var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=c(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(r.a.Model);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return g}));var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(i,e);var t,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return l}},{key:"parse",value:function(e){return e.data||e}}])&&h(t.prototype,n),r&&h(t,r),i}(r.a.Collection)},function(e,t,n){e.exports={videoGroupList:"_38Usa"}},function(e,t,n){e.exports={partialSubFolder:"_1ltue"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<h6 class="mb-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.title:i,t))+'"></h6>\r\n<p class="my-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestedBy:i,t))+'"></p>\r\n<p class="my-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.date:i,t))+'"></p>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5"><span class="badge d-inline-block p-1 mr-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.badge:i,t))+'"></span></div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-light btn-sm partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button"> </button>\r\n <button class="btn btn-light btn-sm partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button"> </button>\r\n </div>\r\n</div>\r\n<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5">\r\n <button class="dropdown-toggle form-control btn-block partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+'" type="button" disabled></button>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+'"></div>\r\n<button class="btn btn-light partial-loading-background w-100 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button"> </button>'},useData:!0})},function(e,t,n){e.exports={content:"_3_8yg"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<button class="btn partial-loading-background float-right '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button"> </button>'},useData:!0})},function(e,t,n){e.exports={button:"_3owCz"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.video:i,t))+' partial-loading-background responsive-img mb-3"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+' partial-loading-background"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+' partial-loading-background mt-1"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subSubText:i,t))+' partial-loading-background mt-1"></div>'},useData:!0})},function(e,t,n){e.exports={video:"oGPHd",text:"_1tn1v",subText:"_1OlIS",subSubText:"_3xERx"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="partial-loading-background align-middle d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoTitle:i,t))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoAction:i,t))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoAction:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={videoTitle:"rJRCI",videoAction:"_3O5I3"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="row">\r\n\r\n <div class="d-block w-100">\r\n <div class="m-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n </div>\r\n\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n</div>\r\n'},useData:!0})},function(e,t,n){e.exports={text:"z4_PP",subText:"_1CvDv"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="mb-2">\r\n <div class="partial-loading-background d-inline-block p-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.back:i,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right p-2"></div>\r\n</div>\r\n<div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.detailsTab:i,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.chaptersTab:i,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.learningTab:i,t))+'"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={tab:"_1K9wl",detailsTab:"_31qrm",chaptersTab:"_1VUMk",learningTab:"_35o6Z",back:"_2SZ3v"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="row mt-3">\r\n <div class="col-4">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 w-100 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnailContainer:i,t))+'"></div>\r\n <button class="btn my-3 w-100 partial-loading-background"> </button>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textbox:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={header:"_1JGs8",subHeader:"_11o1N",thumbnailContainer:"ebrIQ",input:"_2xpxP",textbox:"_3OIzb"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="partial-loading-background mb-3 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.line:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.line:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_1Yt1j",input:"tJ4KG",line:"_2BFZB"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="row">\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n</div>\r\n<div class="row">\r\n <div class="col-3">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={header:"_2KAd_",input:"_2ai1L",button:"crdSU"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background d-block '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.player:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={player:"H6oUk"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.upload:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_15fBJ",text:"_2OP4S",upload:"_17wos"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<label class="mb-0 h6">Share link</label>\r\n<div class="partial-loading-background border rounded '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u=e.lambda,s=e.escapeExpression;return' <div class="col-12 pr-3 py-1 '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.videoRow:c,t))+'">\r\n <div class="custom-control custom-checkbox">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label"> </label>\r\n <div class="partial-loading-background d-inline-block '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.text:c,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.views:c,t))+'"></div>\r\n </div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u=e.lambda,s=e.escapeExpression;return'<div class="row no-gutters px-2 py-1 '+s(u(null!=(c=null!=(c=null!=t?t.options:t)?c.styles:c)?c.sortingRow:c,t))+'">\r\n <div class="col-8">\r\n <div class="custom-control custom-checkbox d-inline-block '+s(u(null!=(c=null!=(c=null!=t?t.options:t)?c.styles:c)?c.bulkCheckbox:c,t))+'">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label"> </label>\r\n </div>\r\n <div class="align-middle position-relative d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+s(u(null!=(c=null!=(c=null!=t?t.options:t)?c.styles:c)?c.sortOption:c,t))+'">\r\n <span>Title</span>\r\n </span>\r\n </div>\r\n </div>\r\n <div class="col-4 text-right">\r\n <span class="cursor-pointer sort mr-3 sort-views '+s(u(null!=(c=null!=(c=null!=t?t.options:t)?c.styles:c)?c.sortOption:c,t))+'">\r\n <span class="mr-2">Views</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="'+s(u(null!=(c=null!=(c=null!=t?t.options:t)?c.styles:c)?c.videoList:c,t))+'">\r\n'+(null!=(c=n.each.call(null!=t?t:e.nullContext||{},null!=(c=null!=t?t.options:t)?c.videoItems:c,{name:"each",hash:{},fn:e.program(1,o,0,i,a),inverse:e.noop,data:o}))?c:"")+"</div>"},useData:!0,useDepths:!0})},function(e,t,n){e.exports={videoList:"_2YEbA",text:"_1-Tvp",views:"_3BDvT",bulkCheckbox:"_2ew2h"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="partial-loading-background d-inline-block ml-2 mt-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background d-inline-block mr-2 mt-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.toggle:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_1S3_p",toggle:"_1pAWe"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background m-2 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={row:"rShIv"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n <button class="btn btn-light partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" disabled> </button>\r\n </div>\r\n <div class="col-6">\r\n </div>\r\n <div class="col-2 text-right">\r\n <button class="btn btn-light partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" disabled> </button>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<button class="btn partial-loading-background '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button"> </button>'},useData:!0})},function(e,t,n){e.exports={button:"_1CETN"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={logo:"_3QS4m",row:"_1odt6",text:"JJCF1"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folder:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={text:"_3hPOj",folder:"_2zGvZ"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="row w-100 mt-0">\r\n <div class="col-8 border-right p-3">\r\n <div class="mb-3 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n <div class="my-2 w-80 h-20 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.multilineSubText:i,t))+'"></div>\r\n <div class="my-2 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnail:i,t))+'"></div>\r\n </div>\r\n\r\n <div class="col-4">\r\n <div class="partial-loading-background ml-2 my-3 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n\r\n <div class="row ml-2">\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n </div>\r\n <div class="my-3 ml-2 partial-loading-background '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n </div>\r\n</div>\r\n'},useData:!0})},function(e,t,n){e.exports={text:"_3b-w5",subText:"k49US",multilineSubText:"_1QGdP",thumbnail:"_2V8gJ"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_2x-al",item:"hFvEo"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="tags d-flex flex-wrap">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth1:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth2:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth3:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth2:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={tagWidth1:"cy-sv",tagWidth2:"_35_iB",tagWidth3:"_2sYuD"}},function(e,t){e.exports=c},function(e,t){e.exports=u},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e,t,n,r){var o,i,a,c=t||[0],u=(n=n||0)>>>3,s=-1===r?3:0;for(o=0;o<e.length;o+=1)i=(a=o+u)>>>2,c.length<=i&&c.push(0),c[i]|=e[o]<<8*(s+r*(a%4));return{value:c,binLen:8*e.length+n}}function r(e,r,o){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,n,r){var o,i,a,c;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var u=t||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<e.length;o+=2){if(i=parseInt(e.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(c=(o>>>1)+s)>>>2;u.length<=a;)u.push(0);u[a]|=i<<8*(l+r*(c%4))}return{value:u,binLen:4*e.length+n}}(e,t,n,o)};case"TEXT":return function(e,t,n){return function(e,t,n,r,o){var i,a,c,u,s,l,f,p,h=0,y=n||[0],d=(r=r||0)>>>3;if("UTF8"===t)for(f=-1===o?3:0,c=0;c<e.length;c+=1)for(a=[],128>(i=e.charCodeAt(c))?a.push(i):2048>i?(a.push(192|i>>>6),a.push(128|63&i)):55296>i||57344<=i?a.push(224|i>>>12,128|i>>>6&63,128|63&i):(c+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(c)),a.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),u=0;u<a.length;u+=1){for(s=(l=h+d)>>>2;y.length<=s;)y.push(0);y[s]|=a[u]<<8*(f+o*(l%4)),h+=1}else for(f=-1===o?2:0,p="UTF16LE"===t&&1!==o||"UTF16LE"!==t&&1===o,c=0;c<e.length;c+=1){for(i=e.charCodeAt(c),!0===p&&(i=(u=255&i)<<8|i>>>8),s=(l=h+d)>>>2;y.length<=s;)y.push(0);y[s]|=i<<8*(f+o*(l%4)),h+=2}return{value:y,binLen:8*h+r}}(e,r,t,n,o)};case"B64":return function(e,n,r){return function(e,n,r,o){var i,a,c,u,s,l,f=0,p=n||[0],h=(r=r||0)>>>3,y=-1===o?3:0,d=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==d&&d<e.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<e.length;i+=4){for(u=e.substr(i,4),c=0,a=0;a<u.length;a+=1)c|=t.indexOf(u.charAt(a))<<18-6*a;for(a=0;a<u.length-1;a+=1){for(s=(l=f+h)>>>2;p.length<=s;)p.push(0);p[s]|=(c>>>16-8*a&255)<<8*(y+o*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(e,n,r,o)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var o,i,a,c,u=t||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=1)o=e.charCodeAt(i),a=(c=i+s)>>>2,u.length<=a&&u.push(0),u[a]|=o<<8*(l+r*(c%4));return{value:u,binLen:8*e.length+n}}(e,t,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e,t,r){return function(e,t,r,o){return n(new Uint8Array(e),t,r,o)}(e,t,r,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e,t,r){return n(e,t,r,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(e,n,r,o){switch(e){case"HEX":return function(e){return function(e,t,n,r){var o,i,a="",c=t/8,u=-1===n?3:0;for(o=0;o<c;o+=1)i=e[o>>>2]>>>8*(u+n*(o%4)),a+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return r.outputUpper?a.toUpperCase():a}(e,n,r,o)};case"B64":return function(e){return function(e,n,r,o){var i,a,c,u,s,l="",f=n/8,p=-1===r?3:0;for(i=0;i<f;i+=3)for(u=i+1<f?e[i+1>>>2]:0,s=i+2<f?e[i+2>>>2]:0,c=(e[i>>>2]>>>8*(p+r*(i%4))&255)<<16|(u>>>8*(p+r*((i+1)%4))&255)<<8|s>>>8*(p+r*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=n?t.charAt(c>>>6*(3-a)&63):o.b64Pad;return l}(e,n,r,o)};case"BYTES":return function(e){return function(e,t,n){var r,o,i="",a=t/8,c=-1===n?3:0;for(r=0;r<a;r+=1)o=e[r>>>2]>>>8*(c+n*(r%4))&255,i+=String.fromCharCode(o);return i}(e,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=new ArrayBuffer(o),a=new Uint8Array(i),c=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(c+n*(r%4))&255;return i}(e,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(i+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function a(e,t){return e<<t|e>>>32-t}function c(e,t,n){return e^t^n}function u(e,t,n){return e&t^e&n^t&n}function s(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function l(e,t,n,r,o){var i=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&o);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function f(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(e,t){var n,r,o,i,f,p,h,y,d=[];for(n=t[0],r=t[1],o=t[2],i=t[3],f=t[4],h=0;h<80;h+=1)d[h]=h<16?e[h]:a(d[h-3]^d[h-8]^d[h-14]^d[h-16],1),p=h<20?l(a(n,5),(y=r)&o^~y&i,f,1518500249,d[h]):h<40?l(a(n,5),c(r,o,i),f,1859775393,d[h]):h<60?l(a(n,5),u(r,o,i),f,2400959708,d[h]):l(a(n,5),c(r,o,i),f,3395469782,d[h]),f=i,i=o,o=a(r,30),r=n,n=p;return t[0]=s(n,t[0]),t[1]=s(r,t[1]),t[2]=s(o,t[2]),t[3]=s(i,t[3]),t[4]=s(f,t[4]),t}function h(e,t,n,r){for(var o,i=15+(t+65>>>9<<4),a=t+n;e.length<=i;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[i]=4294967295&a,e[i-1]=a/4294967296|0,o=0;o<e.length;o+=16)r=p(e.slice(o,o+16),r);return r}return function(t){function n(e,n,o){var i=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=o||{};return(i=t.call(this,e,n,o)||this).t=!0,i.i=i.o,i.u=-1,i.s=r(i.h,i.v,i.u),i.A=p,i.p=function(e){return e.slice()},i.l=f,i.R=h,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,a.hmacKey&&i.B(function(e,t,n,o){var i="hmacKey must include a value and format";if(!t)throw new Error(i);if(void 0===t.value||!t.format)throw new Error(i);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,i.u)),i}return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n}(function(){function e(e,t,n){var r=n||{};if(this.h=t,this.v=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=e,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return e.prototype.update=function(e){var t,n=0,r=this.T>>>5,o=this.s(e,this.Y,this.I),i=o.binLen,a=o.value,c=i>>>5;for(t=0;t<c;t+=r)n+this.T<=i&&(this.U=this.A(a.slice(t,t+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=i%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,c=i(t);if(!0===this.F){if(-1===c.outputLen)throw new Error("Output length must be specified in options");a=c.outputLen}var u=o(e,a,this.u,c);if(!0===this.L&&this.i)return u(this.i(c));for(r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),a),n=1;n<this.numRounds;n+=1)!0===this.F&&a%32!=0&&(r[r.length-1]&=16777215>>>24-a%32),r=this.R(r,a,0,this.l(this.g),a);return u(r)},e.prototype.setHMACKey=function(e,t,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var o=r(t,(n||{}).encoding||"UTF8",this.u);this.B(o(e))},e.prototype.B=function(e){var t,n=this.T>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.R(e.value,e.binLen,0,this.l(this.g),this.m));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.N[t]=909522486^e.value[t],this.S[t]=1549556828^e.value[t];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},e.prototype.getHMAC=function(e,t){var n=i(t);return o(e,this.m,this.u,n)(this.o())},e.prototype.o=function(){var e;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return e=this.A(this.S,this.l(this.g)),this.R(t,this.m,this.T,e,this.m)},e}())}()},function(e){e.exports=JSON.parse('{"a":"1.0.21-dev-us.2"}')},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var r=n(1),o=n(4),i=n(231);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=["query","libraries","ratings","interactives","resources","subtitles","productionYear","producedByClickView","hd","duration"],h=["sort"],y=["release-date","subjects"],d=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(f,t);var n,i,a,l=s(f);function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),l.call(this,e)}return n=f,a=[{key:"queryParamWhitelist",get:function(){return[].concat(p,y,h)}},{key:"eventWhitelist",get:function(){return e={},t=o.UserAction.Navigate,n=function(e){return!r.isArray(e.data)&&e.data.currentLocation},t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}],(i=[{key:"initialize",value:function(){this.bootstrap(this.options.trackingId,this.options.userId)}},{key:"name",get:function(){return"GoogleAnalyticsClient"}},{key:"shouldLog",value:function(e){var t=f.eventWhitelist[e.type];return r.isBoolean(t)?t:!!r.isFunction(t)&&t(e)}},{key:"log",value:function(e){this.logPageView(e)}},{key:"logPageView",value:function(e){if(e&&!r.isArray(e.data)){var t=e.data.currentLocation;t&&this.ga("set","page",t),this.ga("send","pageview")}}},{key:"bootstrap",value:function(t,n){this.ga||(e.GoogleAnalytics(),this.ga=window.ga,this.ga("create",{trackingId:t,userId:n.toString(),cookieDomain:"auto"}),this.ga("require","cleanUrlTracker",{stripQuery:!0,queryParamsWhitelist:f.queryParamWhitelist,trailingSlash:"remove"}),this.logPageView(null))}}])&&c(n.prototype,i),a&&c(n,a),f}(i.a)}).call(this,n(752))},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"multiple"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'accept="'+e.escapeExpression("function"==typeof(i=null!=(i=n.mimeType||(null!=t?t.mimeType:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"mimeType",hash:{},data:o}):i)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<input type="file" autocomplete="off" class="file-select d-none" '+(null!=(i=n.if.call(a,null!=t?t.acceptMultiple:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" "+(null!=(i=n.if.call(a,null!=t?t.mimeType:t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+" />"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.spinnerEl:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.each.call(a,null!=t?t.buttons:t,{name:"each",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.spinnerButton:t,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing,s=e.escapeExpression;return' <button type="'+s("function"==typeof(a=null!=(a=n.type||(null!=t?t.type:t))?a:u)?a.call(c,{name:"type",hash:{},data:o}):a)+'" class="'+s("function"==typeof(a=null!=(a=n.className||(null!=t?t.className:t))?a:u)?a.call(c,{name:"className",hash:{},data:o}):a)+'" '+(null!=(i=n.if.call(c,null!=t?t.close:t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+">"+s("function"==typeof(a=null!=(a=n.text||(null!=t?t.text:t))?a:u)?a.call(c,{name:"text",hash:{},data:o}):a)+"</button>\r\n"},3:function(e,t,n,r,o){return'data-dismiss="modal"'},5:function(e,t,n,r,o){return' <div class="spinner-button-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="modal-dialog '+s("function"==typeof(a=null!=(a=n.size||(null!=t?t.size:t))?a:u)?a.call(c,{name:"size",hash:{},data:o}):a)+'" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <h5 class="modal-title">'+s("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:u)?a.call(c,{name:"title",hash:{},data:o}):a)+'</h5>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\r\n <span aria-hidden="true">×</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n '+(null!=(i="function"==typeof(a=null!=(a=n.content||(null!=t?t.content:t))?a:u)?a.call(c,{name:"content",hash:{},data:o}):a)?i:"")+'\r\n </div>\r\n\r\n <div class="modal-footer">\r\n'+(null!=(i=n.if.call(c,null!=t?t.buttons:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.text:i,t))?i:""},useData:!0})},function(e,t,n){e.exports=n(753).default},function(e,t,n){e.exports={svgContainer:"_1nWzn"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<div class="add-new px-2 py-1 border-top">\r\n <span class="add-tag ignore-highlighting">\r\n <span class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"</span> "+u(c(null!=(i=null!=t?t.options:t)?i.createText:i,t))+" "+u("function"==typeof(a=null!=(a=n.type||(null!=t?t.type:t))?a:l)?a.call(s,{name:"type",hash:{},data:o}):a)+': \r\n </span>\r\n <span class="query-text">'+u("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:l)?a.call(s,{name:"name",hash:{},data:o}):a)+"</span>\r\n</div>>"},useData:!0})},function(e,t,n){"use strict";var r=n(454);n.d(t,"BaseCollectionIdentifier",(function(){return r.a}));n(455),n(456),n(457),n(148),n(458),n(459),n(460),n(461)},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression;return' <a class="info-link d-inline-block pt-1 '+c(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.link:i,t))+'">'+c("function"==typeof(a=null!=(a=n.appLinkText||(null!=t?t.appLinkText:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"appLinkText",hash:{},data:o}):a)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<div class="d-inline-block '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">\r\n <span class=" d-inline-block '+u(c(null!=(i=null!=t?t.options:t)?i.svgClass:i,t))+" "+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.typeSvg:i,t))?i:"")+'</span>\r\n</div>\r\n<div class="pl-2 d-inline-block '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertContent:i,t))+'">\r\n <p class="p-0 m-0 pb-1 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.heading:i,t))+'">'+u("function"==typeof(a=null!=(a=n.heading||(null!=t?t.heading:t))?a:l)?a.call(s,{name:"heading",hash:{},data:o}):a)+'</p>\r\n <p class="p-0 m-0 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.message:i,t))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.message||(null!=t?t.message:t))?a:l)?a.call(s,{name:"message",hash:{},data:o}):a)?i:"")+"</p>\r\n"+(null!=(i=n.if.call(s,null!=t?t.appLink:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="close d-inline-block" aria-hidden="true">×</div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="left-nav-region '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.leftNav:i,t))+'"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="top-banner-region"></div>\r\n<div class="page-header-region"></div>\r\n<div class="top-nav-region bg-white '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.topNav:i,t))+'"></div>\r\n<div class="container-fluid clearfix px-0 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sizingBox:i,t))+'">\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showLeftNav:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=t?t.options:t)?i.contentBoxClassName:i,t))+'">\r\n <div class="content-region container px-0 '+c(a(null!=(i=null!=t?t.options:t)?i.contentContainerClassName:i,t))+'"></div>\r\n <div class="container page-footer-region"></div>\r\n </div>\r\n</div>\r\n\r\n<div class="popup-region"></div>\r\n<div class="alert-region '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertBox:i,t))+" "+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertBoxWithIntercom:i,t))+'"></div>\r\n<div class="hidden-region d-none"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return"ClickView "+a(e.lambda(null!=(i=null!=t?t.options:t)?i.currentYear:i,t))+" | "+a((n.lang||t&&t.lang||u).call(c,"footer",{name:"lang",hash:{},data:o}))+" | "+a((n.lang||t&&t.lang||u).call(c,"version",{name:"lang",hash:{version:null!=(i=null!=t?t.options:t)?i.version:i},data:o}))},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression;return'<div class="drop-area-container">\r\n <div class="'+u(c(null!=(i=null!=t?t.styles:t)?i.dropMask:i,t))+'"></div>\r\n <div class="'+u(c(null!=(i=null!=t?t.styles:t)?i.dropContent:i,t))+'">\r\n <div class="'+u(c(null!=(i=null!=t?t.styles:t)?i.border:i,t))+'">\r\n <h1>'+u("function"==typeof(a=null!=(a=n.fileDropText||(null!=t?t.fileDropText:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"fileDropText",hash:{},data:o}):a)+'</h1>\r\n </div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=t?t.styles:t)?i.dropArea:i,t))+'"></div>\r\n</div>\r\n'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.unreadCount:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.unreadCount:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.unreadCount:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.heading:i,t))+"</h4>\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"<p>"+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<img src="'+c(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+c(a(null!=(i=null!=t?t.options:t)?i.imageClass:i,t))+'"/>\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.heading:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.description:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return' <span class="text-right pl-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionText:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.actionText:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+" "+c(a(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.icon:i,t))?i:"")+'</div><div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' pl-1">'+c(a(null!=(i=null!=t?t.options:t)?i.content:i,t))+"</div>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showActionText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' pl-1">'+c(a(null!=(i=null!=t?t.options:t)?i.notificationTime:i,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:o}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasNotifications:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div id="notificationsDropdown" class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div aria-labelledby="notificationsDropdown" class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.notificationsContainer:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={notificationsContainer:"_3BMCf"}},function(e,t,n){e.exports=n(761).default},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.confirmSelectionText:i,t))?i:"")+"\r\n</span> "},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="cursor-pointer svg-container '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" data-toggle="popover">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.searchInfoSvg:i,t))?i:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u=e.lambda,s=e.escapeExpression;return' <span class="border rounded align-middle '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.term:c,t))+'">'+s(u(t,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<span class="d-inline-block '+s(e.lambda(null!=(c=null!=(c=null!=t?t.options:t)?c.styles:c)?c.termContainer:c,t))+'">\r\n'+(null!=(c=n.each.call(l,null!=t?t.term:t,{name:"each",hash:{},fn:e.program(1,o,0,i,a),inverse:e.noop,data:o}))?c:"")+"</span>\r\n<span>"+s("function"==typeof(u=null!=(u=n.description||(null!=t?t.description:t))?u:e.hooks.helperMissing)?u.call(l,{name:"description",hash:{},data:o}):u)+"</span>"},useData:!0,useDepths:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchContextTag:i,t))+'" title="'+u("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:l)?a.call(s,{name:"title",hash:{},data:o}):a)+'">\r\n <span>'+u("function"==typeof(a=null!=(a=n.searchTag||(null!=t?t.searchTag:t))?a:l)?a.call(s,{name:"searchTag",hash:{},data:o}):a)+'</span>\r\n <span class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n</span>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression,u=e.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeRecent:i,t))+'">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={removeRecent:"d1QVW"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">\r\n <span class="text-capitalize badge-pill tag py-1 px-2 my-1 mr-1">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</span>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda,u=e.escapeExpression;return"<img "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+'src="'+u(c(null!=(i=null!=t?t.options:t)?i.url:i,t))+'" class="img-fluid lazy-img w-100 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnail:i,t))+'" />\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.playIcon:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){return"data-"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.playSvgContainer:i,t))+'" '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">"+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"},5:function(e,t,n,r,o){return'style="display: none;"'},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<span class="badge float-right '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.durationOverlay:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda;return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.url:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+e.escapeExpression(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.duration:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"aligned"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return' <div class="result-title collection"> '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.type:i,t))+": "+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,t))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<a class="row" href="'+c(e.lambda(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.collection:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(u,{name:"name",hash:{},data:o}):a)+"</div>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression;return'<a class="row" href="'+u(c(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.coverContainer:i,t))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textContainer:i,t))+' px-2">\r\n <div class="result-title text-capitalize">'+u("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="w-100 h-100 d-flex align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchInput:i,t))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+c(a(null!=(i=null!=t?t.options:t)?i.libraryText:i,t))+'" aria-label="Search">\r\n</div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchIcons:i,t))+'">\r\n <span class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchSvgContainer:i,t))+' search-btn">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n <button type="submit" tabindex="-1" style="display:none"></button>\r\n <span class="search-tips-region"></span>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showCloseButton:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+"</div>\r\n"},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchSvgContainer:i,t))+' close-btn">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n"},4:function(e,t,n,r,o){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showPartial:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(4,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){e.exports={searchBar:"_2oChq"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBar:i,t))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div\r\n class="cursor-pointer mx-2"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.avatar:i,t))+'" style="background-image: url(\''+c(a(null!=(i=null!=t?t.options:t)?i.avatar:i,t))+'\')">\r\n  \r\n </div>\r\n <div class="d-inline-block svg-container '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.arrow:i,t))+'">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.arrowSvg:i,t))?i:"")+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="svg-container d-inline-block text-muted ml-2">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.iconSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return(null!=(i=a(null!=(i=null!=t?t.options:t)?i.prefix:i,t))?i:"")+e.escapeExpression(a(null!=(i=null!=t?t.options:t)?i.title:i,t))+"\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.iconSvg:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){e.exports={heading:"_2xsqU",displayName:"_3tg2v"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<div class="dropdown-item '+u(c(null!=(i=null!=t?t.options:t)?i.heading:i,t))+'">\r\n <div class="m-0 '+u(c(null!=(i=null!=t?t.options:t)?i.displayName:i,t))+'"><strong>'+u("function"==typeof(a=null!=(a=n.displayName||(null!=t?t.displayName:t))?a:l)?a.call(s,{name:"displayName",hash:{},data:o}):a)+'</strong></div>\r\n <div class="m-0 text-muted">'+u("function"==typeof(a=null!=(a=n.customerName||(null!=t?t.customerName:t))?a:l)?a.call(s,{name:"customerName",hash:{},data:o}):a)+'</div>\r\n</div>\r\n<div class="dropdown-divider"></div>\r\n<div class="items-region"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"text-danger "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.errorMargin:i,t))},3:function(e,t,n,r,o){return"mr-3"},5:function(e,t,n,r,o){return"text-danger"},7:function(e,t,n,r,o){return"text-muted"},9:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="progress mt-1" style="height: 5px;">\r\n <div class="progress-bar bg-info" style="width: '+c(a(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'%" aria-valuenow="'+c(a(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n</div>\r\n'},11:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda,u=e.escapeExpression;return(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.isDone:i,{name:"unless",hash:{},fn:e.program(12,o,0),inverse:e.noop,data:o}))?i:"")+' <span class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.cancel:i,t))+" "+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hiddenCancel:i,t))+'" title="'+u((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">×</span>\r\n'},12:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return" "+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},14:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return' <span class="align-middle text-underline cursor-pointer retry" title="'+u((n.lang||t&&t.lang||c).call(a,"retryProcessing",{name:"lang",hash:{},data:o}))+'">'+u((n.lang||t&&t.lang||c).call(a,"retry",{name:"lang",hash:{},data:o}))+'</span>\r\n <span class="'+u(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.cancel:i,t))+' align-middle" title="'+u((n.lang||t&&t.lang||c).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">×</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda,u=e.escapeExpression;return'<div class="h6 mb-0 '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:"")+'">\r\n '+u(c(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\r\n</div>\r\n<div class="'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.program(7,o,0),data:o}))?i:"")+' progress-text">'+u(c(null!=(i=null!=t?t.options:t)?i.status:i,t))+"</div>\r\n"+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"unless",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actions:i,t))+'">\r\n'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"unless",hash:{},fn:e.program(11,o,0),inverse:e.program(14,o,0),data:o}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"uploadProgress",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="upload-progress-region"></div>\r\n<div class="processing-progress-region"></div>'},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<span class="d-inline-block h-100 position-relative pb-1">\r\n <div class="progress-info-region" data-toggle="dropdown"></div>\r\n <div class="progress-summary-region dropdown-menu dropdown-menu-right dropdown-arrow '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressDropdown:i,t))+'"></div>\r\n</span>\r\n<a class="btn btn-primary mx-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.upload:i,t))+'"><span class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.uploadButtonSvg:i,t))+' d-inline-block text-white">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.uploadSvg:i,t))?i:"")+"</span>"+c((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"upload",{name:"lang",hash:{},data:o}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.hasLibraries:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:""},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="mr-2 pr-1">\r\n '+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n</div>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.items:t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.itemCount:i,t))+'">'+c("function"==typeof(a=null!=(a=n.items||(null!=t?t.items:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"items",hash:{},data:o}):a)+"</span>\r\n"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' mx-2 text-danger">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.warningSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=t?t.hasErrors:t,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(4,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<a class="navbar-brand text-hide align-top '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.logoContainer:i,t))+' d-inline-block" href="/">\r\n <svg viewBox="0 0 434 71">\r\n <g>\r\n <path fill="#FFFFFF" d="M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"/>\r\n <path fill="#F8981D" d="M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"/>\r\n </g>\r\n </svg>\r\n</a>\r\n<div class="w-100 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBarContainer:i,t))+'">\r\n <div class="search-bar-region container '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBar:i,t))+'"></div>\r\n</div>\r\n<div class="d-flex align-items-center pr-1 position-absolute '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionButtons:i,t))+'">\r\n <div class="upload-region"></div>\r\n <div class="notifications-region"></div>\r\n <div class="user-options-region"></div>\r\n</div>\r\n\r\n'},useData:!0})},function(e,t,n){e.exports={logoContainer:"_1T4m8",upload:"_2CcDj",uploadButtonSvg:"_2N6Io",searchBar:"Ds2gb",actionButtons:"_3OcPu"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="items-region"></div>\r\n<div class="migration-error-region"></div>'},useData:!0})},function(e,t,n){e.exports={topNav:"_3xqNh"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i,a;e.propertyIsEnumerable;return'<span class="d-inline-block align-middle '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.icon||(null!=t?t.icon:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:o}):a)?i:"")+"</span>"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="badge badge-danger badge-pill">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.count:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(c,null!=t?t.icon:t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" "+e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:o}):a)+" \r\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.count:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n <title>'+e.escapeExpression(e.lambda(t,t))+'</title>\r\n <g id="archive-error" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="Group" transform="translate(3.000000, 5.000000)">\r\n <path d="M20.7658476,-7.68274333e-14 C21.8942931,-7.68274333e-14 22.831971,0.85292295 22.831971,1.93646516 L22.831971,4.55330997 C22.831971,4.90016841 22.5509477,5.18135273 22.2042879,5.18135273 L0.627683051,5.18135273 C0.281023274,5.18135273 -8.22453217e-13,4.90016841 -8.22453217e-13,4.55330997 L-8.22453217e-13,1.93646516 C-8.22104783e-13,0.85292295 0.937677893,-7.68274333e-14 2.06612338,-7.68274333e-14 L20.7658476,-7.68274333e-14 Z M21.5766049,1.93646516 C21.5766049,1.57476389 21.2262594,1.25608551 20.7658476,1.25608551 L2.06612338,1.25608551 C1.60571155,1.25608551 1.2553661,1.57476389 1.2553661,1.93646516 L1.2553661,3.92526722 L21.5766049,3.92526722 L21.5766049,1.93646516 Z M1.36991826,7.19207086 C1.36991826,6.81377838 1.67658491,6.50711173 2.05487739,6.50711173 C2.43316987,6.50711173 2.73983652,6.81377838 2.73983652,7.19207086 L2.73983652,14.6126666 C2.73983652,15.8105928 3.71094757,16.7817038 4.90887376,16.7817038 L10.037037,16.7817038 C10.4153295,16.7817038 10.7219961,17.0883705 10.7219961,17.466663 C10.7219961,17.8449555 10.4153295,18.1516221 10.037037,18.1516221 L4.90887376,18.1516221 C2.95436261,18.1516221 1.36991826,16.5671778 1.36991826,14.6126666 L1.36991826,7.19207086 Z M13.2081514,6.50711173 C13.5864439,6.50711173 13.8931105,6.81377838 13.8931105,7.19207086 C13.8931105,7.57036334 13.5864439,7.87702999 13.2081514,7.87702999 L9.87482745,7.87702999 C9.52805934,7.87702999 9.24694825,8.15814108 9.24694825,8.50490919 C9.24694825,8.8516773 9.52805934,9.13278839 9.87482745,9.13278839 L12.0665528,9.13278839 C12.4448453,9.13278839 12.751512,9.43945504 12.751512,9.81774752 C12.751512,10.19604 12.4448453,10.5027067 12.0665528,10.5027067 L9.87482745,10.5027067 C8.77147438,10.5027067 7.87702999,9.60826226 7.87702999,8.50490919 C7.87702999,7.40155612 8.77147438,6.50711173 9.87482745,6.50711173 L13.2081514,6.50711173 Z M20.2062943,7.077911 C20.2062943,6.76266727 20.4618499,6.50711173 20.7770936,6.50711173 C21.0923373,6.50711173 21.3478929,6.76266727 21.3478929,7.077911 L21.3478929,7.99118984 C21.3478929,8.30643358 21.0923373,8.56198912 20.7770936,8.56198912 C20.4618499,8.56198912 20.2062943,8.30643358 20.2062943,7.99118984 L20.2062943,7.077911 Z" id="Combined-Shape" fill="currentColor"></path>\r\n <path d="M24.6713093,17.6624402 C25.0188138,18.3578403 24.9815158,19.1834207 24.5728024,19.8445217 C24.164089,20.5056227 23.4422327,20.9079876 22.6650348,20.9079404 L15.2429296,20.9079404 C14.4656901,20.9079876 13.7438338,20.5056227 13.3351204,19.8445217 C12.926407,19.1834207 12.8891089,18.3578403 13.2366135,17.6624402 L16.9475765,10.2405144 C17.3273453,9.48029103 18.1041591,9 18.9539614,9 C19.8037637,9 20.5805775,9.48029103 20.9602358,10.2402933 L24.6713093,17.6624402 Z M19.9682278,17.9178304 C19.9682278,17.3576665 19.5141253,16.903564 18.9534845,16.9035641 C18.3935398,16.9038217 17.939695,17.3578255 17.939695,17.9178304 C17.939695,18.4779942 18.3937975,18.9320968 18.9539614,18.9320968 C19.5141253,18.9320968 19.9682278,18.4779942 19.9682278,17.9178304 Z M19.6389205,15.6126794 L19.6389205,12.9782213 C19.6389205,12.5999288 19.3322539,12.2932621 18.9539614,12.2932621 C18.5756689,12.2932621 18.2690023,12.5999288 18.2690023,12.9782213 L18.2690023,15.6126794 C18.2690023,15.9909719 18.5756689,16.2976386 18.9539614,16.2976386 C19.3322539,16.2976386 19.6389205,15.9909719 19.6389205,15.6126794 Z" id="Path" fill="#FFCD52"></path>\r\n </g>\r\n </g>\r\n</svg>'},useData:!0})},function(e,t,n){e.exports={banner:"_1kvBB"}},function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"disabled"},3:function(e,t,n,r,o){e.propertyIsEnumerable;return'title="'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"cannotMakeAvailable",{name:"lang",hash:{},data:o}))+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="py-2 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.banner:i,t))+'">\r\n '+a((n.lang||t&&t.lang||u).call(c,"previewingNew",{name:"lang",hash:{},data:o}))+' <button class="btn btn-primary ml-2 make-available '+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" '+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+">"+a((n.lang||t&&t.lang||u).call(c,"makeAvailable",{name:"lang",hash:{},data:o}))+"</button>\r\n</div>"},useData:!0})},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(123),o=n(16),i=function(){function t(){}return t.prototype.writeHandshakeRequest=function(e){return r.a.write(JSON.stringify(e))},t.prototype.parseHandshakeResponse=function(t){var n,i;if(Object(o.h)(t)||void 0!==e&&t instanceof e){var a=new Uint8Array(t);if(-1===(u=a.indexOf(r.a.RecordSeparatorCode)))throw new Error("Message is incomplete.");var c=u+1;n=String.fromCharCode.apply(null,a.slice(0,c)),i=a.byteLength>c?a.slice(c).buffer:null}else{var u,s=t;if(-1===(u=s.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");c=u+1;n=s.substring(0,c),i=s.length>c?s.substring(c):null}var l=r.a.parse(n),f=JSON.parse(l[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[i,f]},t}()}).call(this,n(763).Buffer)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(30),i=n(5),a=n(22),c=n(43),u=n(15),s=n(709),l=n.n(s),f=n(247),p=n.n(f);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,r,o=b(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"NotificationStatusComponent"}},{key:"className",get:function(){return"notification-status mx-2 ".concat(p.a.notificationIcon," ").concat(p.a[this.options.color])}},{key:"template",get:function(){return l.a}},{key:"initialize",value:function(){this.listenTo(this.model,"change:unreadCount",this.render)}},{key:"viewOptions",value:function(){return{styles:p.a,svg:u.a.getSvg(u.b.Bell),unreadCount:this.model.get("unreadCount")}}}])&&y(t.prototype,n),r&&y(t,r),i}(r.a.Component),w=n(228),S=n(53),O=n(25),C=n(189),k=n(713),E=n.n(k),_=n(466),R=n.n(_),P=n(467),A=n.n(P);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=I(e);if(t){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L(e,t)}(u,e);var t,n,r,o=j(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"NotificationPopoverView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"notifications.notificationsPopover"}},{key:"className",get:function(){return"notifications-container"}},{key:"template",get:function(){return E.a}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:O.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:R.a,className:"px-1 py-2",viewOptions:{styles:A.a}}}}}}}},{key:"elements",get:function(){return{anchor:".see-all"}}},{key:"appLinks",get:function(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}},{key:"initialize",value:function(){this.notificationService=i.a.getInstance(a.b.Notification,this),this.appVariables=i.a.getInstance(c.a.NOTIFICATIONS,this)}},{key:"onData",value:function(e){this.collection=e,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new C.a({collectionPrefix:S.a.NOTIFICATIONS})}},{key:"renderNotificationList",value:function(){var e=new w.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}},{key:"triggerSeen",value:function(){this.notificationService.markNotificationsSeen()}},{key:"onBeforeRender",value:function(){var e=this;return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),(function(t){return e.onData(t)})),!!this.collection}},{key:"viewOptions",value:function(){return{hasNotifications:this.collection&&this.collection.length}}},{key:"onRender",value:function(){this.renderNotificationList(),this.triggerSeen()}}])&&x(t.prototype,n),r&&x(t,r),u}(r.a.View),B=n(714),D=n.n(B),M=n(715),U=n.n(M);function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=G(e);if(t){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Y(this,n)}}function Y(e,t){return!t||"object"!==F(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(u,e);var t,n,r,o=W(u);function u(){return H(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.NOTIFICATIONS)}},{key:"name",get:function(){return"NotificationHeaderView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative"}},{key:"template",get:function(){return D.a}},{key:"regions",value:function(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .notifications-status-region":"renderNotificationList"}}},{key:"renderNotificationList",value:function(){var e=new V({childType:w.a.Popover});this.showChildView("notifications",e)}},{key:"renderNotificationStatus",value:function(){var e=i.a.getInstance(a.b.Notification),t=new m({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}},{key:"viewOptions",value:function(){return U.a}},{key:"onRender",value:function(){this.renderNotificationStatus()}}])&&z(t.prototype,n),r&&z(t,r),u}(r.a.View),Q=n(1),Z=n(6),X=n(4),J=n(42),ee=n(117),te=n(88),ne=n(3),re=(n(716),/&/g),oe=/[\W]+/g,ie=/\s+/g,ae=function(e){if(e)return e.toLowerCase().replace(re,"and").replace(oe," ").trim().replace(ie,"-").substr(0,80)},ce=n(24),ue=n(13),se=n(96);function le(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=be(e);if(t){var o=be(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return de(this,n)}}function de(e,t){return!t||"object"!==le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function be(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ue.a;var ve={dataServiceName:a.a.User,dataChannelName:ce.b.USER},ge={getCurrentUserFetchOptions:function(e,t){return Object.assign(Object.assign({},ve),{eventPrefix:S.a.CURRENT_USER,fetchData:function(e){return e.getCurrentUser()},setData:e,onError:t})},currentUser:{dataServiceName:a.a.User,eventName:"".concat(S.a.CURRENT_USER,":sync"),getData:function(e){return e.getCurrentUser()},getInstance:function(e){return i.a.getInstance(a.a.User,e)},beforeOnBeforeRender:!0}},me={showMask:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetSelector,n=e.additionalClasses,r=e.fade,o=void 0===r||r,i=$(".".concat("mask"));if(!i.length){var a=$("<div>",{class:"".concat("mask"," ").concat(n||"")});return o&&a.addClass("fade show"),$(a).appendTo(me.getTarget(t)),$(me.getTarget(t)).addClass("mask-lock"),a}},hideMask:function(e){var t=e||$(".".concat("mask"));t.length&&($(".".concat("mask-lock")).removeClass("mask-lock"),t.remove())},getTarget:function(e){var t=$(e||"#app");if(t.length)return t}},we=n(236),Se=n(75),Oe=n(23);var Ce,ke=function(e){return e&&e.get("filterParam")?function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e.get("filterParam"),e.get("filterValue")):{}};!function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(Ce||(Ce={}));var Ee,_e=n(120),Re=_e.a.SuggestionLimit,Pe={prepareQuery:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.model,o=n.libraryIds,i=n.presentationId;r&&r.get("filterValue")&&(e+=" ".concat(r.get("filterParam"),':"').concat(r.get("filterValue"),'"'));var a="".concat(t.url,"?q=").concat(e);return o&&(a+="&ids=".concat(o)),i&&(a+="&presentationId=".concat(i)),a},bloodhoundConfig:function(e,t){return{datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:Q.partial(Pe.prepareQuery,Q,Q,t),transform:Q.partial(Pe.handleResult,Q,e)}}},handleResult:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t===Oe.a.Subjects?Pe.processSubjectResult(e[t]):t===Oe.a.Video?Pe.processVideoResult(e[t]):n.showFolder&&t===Oe.a.Folder?Pe.processFolderResult(e[t]):t===Oe.a.Series?Pe.processSeriesResult(e[t]):t===Oe.a.Tags?Pe.processTagsResult(e[t]):[]},processSubjectResult:function(e){return e?(e=Pe.processCollection(e),Q.map(e,(function(e){return e.cached||(e.thumbnail={url:e.coverUrl},e.cached=!0),e}))):[]},processVideoResult:function(e){return e?(e=Pe.processCollection(e),Q.map(e,(function(e){return e.cached||(e.topics=Q.map(e.topics,(function(e){return{name:e}})),e.series={id:e.seriesId,name:e.seriesName},e.thumbnail={url:e.thumbnailUrl},e.cached=!0),e}))):[]},processTagsResult:function(e){if(!e)return[];var t=i.a.getInstance(c.a.SEARCH,this);return e=Pe.processCollection(e),Q.map(e,(function(e){return e.cached||(e.url=r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},t.appLinks.searchResults),{params:{tag:e.name}})),e.cached=!0),e}))},processSeriesResult:function(e){return e?(e=Pe.processCollection(e),Q.map(e,(function(e){var t;return e.series?t=e.series:e.folder&&e.folder.length&&(t=Q.first(e.folder)),Q.extend({},e,{collectionType:void 0,collection:t})}))):[]},processFolderResult:function(e){return e?(e=Pe.processCollection(e,{limit:Re.Folder}),Q.map(e,(function(e){var t=e.library,n=void 0===t?{}:t;return n.type===Ce.Exchange&&(n.name="Exchange"),Q.extend({},e,{libraryId:n.id,libraryName:n.name,libraryType:n.type})}))):[]},processCollection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?Re.Default:n;return e.slice(0,r)}},Ae={getRecentSearches:function(e,t){var n=t.cacheGet(e);return Q.isArray(n)||(n=[]),n},setRecentSearches:function(e,t,n){Q.isArray(t)&&n.cacheSet(e,t)},updateRecentSearches:function(e,t,n){var r=n.add,o=n.remove,i=n.query,a=n.limit,c=void 0===a?5:a,u=Ae.getRecentSearches(e,t),s=Q.indexOf(u,i);return r&&-1===s&&u.unshift(i),o&&s>-1&&u.splice(s,1),u.length>c&&(u=u.slice(0,c)),Ae.setRecentSearches(e,u,t),u}},Te=n(93);function xe(e){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Be(e);if(t){var o=Be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){return!t||"object"!==xe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(Ee||(Ee={}));var De=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ne(e,t)}(i,e);var t,n,r,o=Ie(i);function i(){return Le(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"defaults",get:function(){return{title:"",placement:Ee.bottom,size:"popover-md"}},set:function(e){}},{key:"ui",get:function(){return{popoverContainer:this.options.containerSelector}},set:function(e){var t={};this.view.ui&&(t=Q.result(this.view,"ui")),this.view._ui=Q.extend({},t,e)}},{key:"events",value:function(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}},{key:"bindListeners",value:function(){this.options.toggleEventName&&this.listenTo(this.view.channelName,"".concat(this.options.toggleEventName),this.toggle)}},{key:"bindBodyClickListener",value:function(){$("body").one("click.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"bindDropdownListener",value:function(){$("body").one("show.bs.dropdown.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"onPopoverInserted",value:function(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}},{key:"onPopoverHidden",value:function(){$("body").off("click.popover".concat(this.view.cid)),$("body").off("show.bs.dropdown.popover".concat(this.view.cid))}},{key:"toggle",value:function(){this.view.$el.popover("toggle")}},{key:"hide",value:function(){this.view.$el.popover("hide")}},{key:"onClickPopover",value:function(e){e.stopPropagation()}},{key:"onClickOutside",value:function(){this.hide()}},{key:"getTrigger",value:function(){return this.options.toggleEventName?"manual":"click"}},{key:"onAttach",value:function(){this.popoverInitialized||(this.bindListeners(),this.view.$el.popover({title:this.options.title,content:'<div class="popover-content"></div>',placement:this.options.placement,trigger:this.getTrigger(),html:!0,container:this.view.getUI("popoverContainer"),boundary:this.options.boundary||"scrollParent",delay:1}),this.options.size&&this.view.getUI("popoverContainer").addClass(this.options.size),this.options.customClasses&&this.view.getUI("popoverContainer").addClass(this.options.customClasses),this.popoverInitialized=!0)}}])&&je(t.prototype,n),r&&je(t,r),i}(r.a.Behavior),Me=n(718),Ue=n.n(Me),Fe=n(719),He=n.n(Fe),ze=n(250),qe=n.n(ze);function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ke(e,t,n){return t&&Ge(e.prototype,t),n&&Ge(e,n),e}function Qe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ze(e,t)}function Ze(e,t){return(Ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Je(e);if(t){var o=Je(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xe(this,n)}}function Xe(e,t){return!t||"object"!==We(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var et=function(e){Qe(n,e);var t=$e(n);function n(){return Ye(this,n),t.apply(this,arguments)}return Ke(n,[{key:"name",get:function(){return"SearchTipComponentItem"}},{key:"template",get:function(){return He.a}},{key:"className",get:function(){return"py-2 ".concat(qe.a.tip)}},{key:"viewOptions",value:function(){return{styles:qe.a}}}]),n}(r.a.Component),tt=function(e){Qe(n,e);var t=$e(n);function n(){return Ye(this,n),t.apply(this,arguments)}return Ke(n,[{key:"name",get:function(){return"SearchTipComponentCollection"}},{key:"childView",get:function(){return et}}]),n}(r.a.ComponentCollection),nt=function(e){Qe(n,e);var t=$e(n);function n(){return Ye(this,n),t.apply(this,arguments)}return Ke(n,[{key:"initialize",value:function(){this.collection=new r.a.Collection([{term:["".concat(ne.a.getPhrase(this.lang,"firstTerm"))],description:"".concat(ne.a.getPhrase(this.lang,"firstDescription"))},{term:["".concat(ne.a.getPhrase(this.lang,"secondTerm"))],description:"".concat(ne.a.getPhrase(this.lang,"secondDescription"))},{term:["".concat(ne.a.getPhrase(this.lang,"thirdTerm"))],description:"".concat(ne.a.getPhrase(this.lang,"thirdDescription"))},{term:["".concat(ne.a.getPhrase(this.lang,"fourthTerm1")),"".concat(ne.a.getPhrase(this.lang,"fourthTerm2"))],description:"".concat(ne.a.getPhrase(this.lang,"fourthDescription"))},{term:["".concat(ne.a.getPhrase(this.lang,"fifthTerm"))],description:"".concat(ne.a.getPhrase(this.lang,"fifthDescription"))}])}},{key:"name",get:function(){return"SearchTipsComponent"}},{key:"template",get:function(){return Ue.a}},{key:"lang",get:function(){return"search.searchTips"}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:De,containerSelector:".popover-container",title:ne.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:function(t){return e.renderTips(t)}}]}},{key:"renderTips",value:function(e){this.showChildView(e,new tt({collection:this.collection}))}},{key:"viewOptions",value:function(){return{styles:qe.a,searchInfoSvg:u.a.getSvg(u.b.Info)}}}]),n}(r.a.Component),rt=n(133),ot=n(720),it=n.n(ot),at=n(131),ct=n.n(at);function ut(e){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ft(e,t){return(ft=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yt(e);if(t){var o=yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ht(this,n)}}function ht(e,t){return!t||"object"!==ut(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ft(e,t)}(i,e);var t,n,r,o=pt(i);function i(){return st(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(ce.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}},{key:"name",get:function(){return"SearchContextComponent"}},{key:"template",get:function(){return it.a}},{key:"tagName",get:function(){return"span"}},{key:"className",get:function(){return ct.a.searchContextContainer}},{key:"behaviors",get:function(){return[{behaviorClass:rt.a,selector:".tool-tip",placement:"left"}]}},{key:"elements",get:function(){return{contextTag:".".concat(ct.a.searchContextTag),clearSvg:".".concat(ct.a.svgContainer)}}},{key:"events",value:function(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}},{key:"onClick",value:function(){Z.Radio.channel(ce.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}},{key:"onMouseEnter",value:function(){this.model.set("preventTypeaheadClose",!0)}},{key:"onMouseLeave",value:function(){this.model.set("preventTypeaheadClose",!1)}},{key:"toggleFocus",value:function(e){var t=this.getUI("contextTag");t&&t.get&&(e.open?t.addClass(ct.a.tagFocus):t.removeClass(ct.a.tagFocus))}},{key:"viewOptions",value:function(){return{styles:ct.a,closeSvg:u.a.getSvg(u.b.Close)}}},{key:"onBeforeRender",value:function(){return!!this.model.get("searchTag")}}])&<(t.prototype,n),r&<(t,r),i}(r.a.Component),bt=n(721),vt=n.n(bt),gt=n(722),mt=n.n(gt);function wt(e){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ot(e,t){return(Ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Et(e);if(t){var o=Et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kt(this,n)}}function kt(e,t){return!t||"object"!==wt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Et(e){return(Et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ot(e,t)}(i,e);var t,n,r,o=Ct(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"RecentSearchResultComponent"}},{key:"template",get:function(){return vt.a}},{key:"className",get:function(){return"text-capitalize p-2 container-fluid"}},{key:"events",value:function(){return{"click .remove-recent":"onClick"}}},{key:"viewOptions",value:function(){return{styles:mt.a,closeSvg:u.a.getSvg(u.b.Close)}}},{key:"onClick",value:function(e){var t=this;return e.stopPropagation(),setTimeout((function(){Z.Radio.channel(t.options.channelName).trigger("remove:recent",t.model.get("name"))}),0),this.destroy(),!1}}])&&St(t.prototype,n),r&&St(t,r),i}(r.a.Component),Rt=n(723),Pt=n.n(Rt);function At(e){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t){return(Lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=It(e);if(t){var o=It(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nt(this,n)}}function Nt(e,t){return!t||"object"!==At(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function It(e){return(It=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lt(e,t)}(u,e);var t,n,o,a=jt(u);function u(){return Tt(this,u),a.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.SEARCH,this)}},{key:"name",get:function(){return"SeriesSearchResultComponent"}},{key:"template",get:function(){return Pt.a}},{key:"className",get:function(){return"text-capitalize p-2"}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"getUrl",value:function(){var e=[this.model.get("id")];return this.appVariables.addSlugs&&e.push(ae(this.model.get("name"))),r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:e}))}},{key:"viewOptions",value:function(){return{url:this.getUrl(),name:this.model.get("name")}}}])&&xt(t.prototype,n),o&&xt(t,o),u}(r.a.Component),Bt=n(724),Dt=n.n(Bt);function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ht(e,t){return(Ht=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wt(e);if(t){var o=Wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qt(this,n)}}function qt(e,t){return!t||"object"!==Mt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wt(e){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ht(e,t)}(i,e);var t,n,r,o=zt(i);function i(){return Ut(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"TagSearchResultComponent"}},{key:"template",get:function(){return Dt.a}},{key:"className",get:function(){return"text-capitalize p-2"}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}}])&&Ft(t.prototype,n),r&&Ft(t,r),i}(r.a.Component),Gt=n(190),Kt=n(726),Qt=n.n(Kt);function Zt(e){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jt(e,t){return(Jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function en(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nn(e);if(t){var o=nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tn(this,n)}}function tn(e,t){return!t||"object"!==Zt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nn(e){return(nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jt(e,t)}(u,e);var t,n,o,a=en(u);function u(){return $t(this,u),a.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.SEARCH,this)}},{key:"name",get:function(){return"VideoSearchResultComponent"}},{key:"template",get:function(){return Qt.a}},{key:"className",get:function(){return"video-result p-2 container-fluid"}},{key:"regions",value:function(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"getCollection",value:function(){var e=this.model,t=e.categories,n=e.series;return t&&t.length?{name:t.first().get("name"),type:"Folder"}:n&&n.get("name")?{name:n.get("name"),type:"Series"}:void 0}},{key:"getUrl",value:function(){var e=[this.model.get("id")];return this.appVariables.addSlugs&&e.push(ae(this.model.get("name"))),r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:e}))}},{key:"renderThumbnail",value:function(){var e=new Gt.a({model:this.model});this.showChildView("thumbnail",e)}},{key:"viewOptions",value:function(){return{collection:this.getCollection(),url:this.getUrl()}}},{key:"onRender",value:function(){this.renderThumbnail()}}])&&Xt(t.prototype,n),o&&Xt(t,o),u}(r.a.Component),on=n(284),an=n(727),cn=n.n(an);function un(e){return(un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fn(e,t){return(fn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yn(e);if(t){var o=yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hn(this,n)}}function hn(e,t){return!t||"object"!==un(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yn(e){return(yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fn(e,t)}(u,e);var t,n,o,a=pn(u);function u(){return sn(this,u),a.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.SEARCH,this)}},{key:"name",get:function(){return"ClassificationSearchResultComponent"}},{key:"template",get:function(){return cn.a}},{key:"className",get:function(){return"p-2 container-fluid"}},{key:"regions",value:function(){return{cover:{replaceElement:!0,el:".cover-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"getUrl",value:function(){return r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id"),ae(this.model.get("name"))]}))}},{key:"renderThumbnail",value:function(){var e=new Gt.a({model:this.model,classNameOverride:"".concat(on.coverImage," responsive-img")});this.showChildView("cover",e)}},{key:"viewOptions",value:function(){return{url:this.getUrl(),styles:on}}},{key:"onRender",value:function(){this.renderThumbnail()}}])&&ln(t.prototype,n),o&&ln(t,o),u}(r.a.Component),bn=n(468),vn=n.n(bn),gn=n(469),mn=n.n(gn),wn=n(470),Sn=n.n(wn),On=n(471),Cn=n.n(On),kn=n(472),En=n.n(kn),_n=n(473),Rn=n.n(_n),Pn=n(474),An=n.n(Pn),Tn=n(475),xn=n.n(Tn),Ln=n(728),jn=n.n(Ln),Nn=n(285),In=n.n(Nn),Vn=n(729),Bn=n.n(Vn),Dn=n(730),Mn=n.n(Dn),Un=n(137);function Fn(e){return function(e){if(Array.isArray(e))return Hn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zn(e){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wn(e,t){return(Wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kn(e);if(t){var o=Kn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gn(this,n)}}function Gn(e,t){return!t||"object"!==zn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Kn(e){return(Kn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qn=_e.a.SuggestionLimit,Zn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wn(e,t)}(l,e);var t,n,o,s=Yn(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this,e)).viewCache={},t}return t=l,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.SEARCH,this),this.appVariables.useContextualSearch&&(this.contextualSearchService=i.a.getInstance(a.b.ContextualSearch,this),this.searchContext=this.contextualSearchService.getSearchContext()),this.storageHelper=te.a,this.bindListeners()}},{key:"name",get:function(){return"SearchBarView"}},{key:"title",get:function(){return!1}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return jn.a}},{key:"lang",get:function(){return"search.searchBar"}},{key:"channelName",get:function(){return"searchbar:".concat(this.cid)}},{key:"className",get:function(){return"search-query-container position-relative m-0 w-100 form-control p-0 ".concat(In.a.searchBar)}},{key:"defaults",get:function(){return{showRecentSearch:!0}}},{key:"elements",get:function(){return{input:"#search",searchBarContainer:".search-bar-container"}}},{key:"events",value:function(){return{submit:"onSubmit","click .search-btn":"onClickSearch","click .close-btn":"onClickClose","click a":"onTypeaheadSelect",keydown:"onKeydown"}}},{key:"bindings",get:function(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}},{key:"regions",value:function(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:O.a.Component,options:{template:Mn.a,className:"w-100",viewOptions:{styles:Bn.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}},{key:"recentSearchKey",get:function(){return"recent:search:".concat(this.currentUser.id)}},{key:"bindListeners",value:function(){this.listenTo(ce.b.LIBRARY,"library:created library:deleted",this.render),this.options.showRecentSearch&&(this.listenTo(this.channelName,"remove:recent",this.onDeleteRecentSearch),this.appVariables.useContextualSearch&&(this.listenTo(this.searchContext,"change:filterValue",this.renderSearchContext),this.listenTo(ce.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext)))}},{key:"getOrCacheView",value:function(e,t){var n=t.ctor,r=t.viewOptions;return this.viewCache[e]?this.viewCache[e]:this.viewCache[e]=new n(r)}},{key:"clearViewCache",value:function(){Q.each(this.viewCache,(function(e){return e.destroy()})),this.viewCache={}}},{key:"getDynamicTemplate",value:function(e){var t=this;return e===Se.b.Recent?function(e){return t.getOrCacheView("recent:".concat(e),{ctor:_t,viewOptions:{model:new r.a.Model({name:e}),channelName:t.channelName}}).render().el}:e===Oe.a.Subjects?function(e){return t.getOrCacheView(e.id,{ctor:dn,viewOptions:{model:new r.a.Model(e)}}).render().el}:e===Oe.a.Video?function(e){return t.getOrCacheView(e.id,{ctor:rn,viewOptions:{model:new r.a.Model(e)}}).render().el}:e===Oe.a.Folder?vn.a:e===Oe.a.Series?function(e){return t.getOrCacheView(e.id,{ctor:Vt,viewOptions:{model:new r.a.Model(e)}}).render().el}:e===Oe.a.Tags?function(e){return t.getOrCacheView(e.id,{ctor:Yt,viewOptions:{model:new r.a.Model(e)}}).render().el}:void 0}},{key:"getLimits",value:function(e){return Oe.a.Folder,Qn.Folder}},{key:"updateSearchHistory",value:function(e){var t=e.add,n=e.remove,r=e.query;r=r.trim();var o=Ae.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:t,remove:n,query:r,limit:Qn.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(o),o}},{key:"handleRecentSearch",value:function(){if(this.options.showRecentSearch)if(this.getUI("input").typeahead("val"))this.$el.find(".tt-menu").removeClass("hide-results");else{if(Ae.getRecentSearches(this.recentSearchKey,this.storageHelper).length)return;this.$el.find(".tt-menu").addClass("hide-results")}}},{key:"onDeleteRecentSearch",value:function(e){return this.updateSearchHistory({remove:!0,query:e}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}},{key:"getInstantSearchAppLink",value:function(e,t){if(t===Oe.a.Series){var n=[e.id];return this.appVariables.addSlugs&&n.push(ae(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:n})}if(t===Oe.a.Video){var r=[e.id];return this.appVariables.addSlugs&&r.push(ae(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:r})}return t===Oe.a.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:e.name}}):t===Oe.a.Subjects?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[e.id,ae(e.name)]}):void 0}},{key:"onTypeaheadSelect",value:function(e,t,n){if(e.preventDefault(),e.stopImmediatePropagation(),this.clearViewCache(),n="topics"===n?Oe.a.Subjects:n,"object"===zn(t)&&t.id){var o=this.getInstantSearchAppLink(t,n);if(!o)return!1;var i=J.a.buildInstantSearchEvent(this.model.get("query"),t,n),a=i.data,c=i.action;return ee.a.log(X.UserAction.InstantSearch,a,c),this.model.clear(),this.getUI("input").typeahead("close"),Z.Radio.channel(ce.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(o),!1}var u="string"==typeof t?t:t.query;this.model.set({query:u});var s=n===Se.b.Recent?X.DirectSearchDescriptor.Recent:X.DirectSearchDescriptor.ShowAll;return this.submitQuery(s),!1}},{key:"onClickSearch",value:function(e){return e.stopPropagation(),this.submitQuery(X.DirectSearchDescriptor.SearchIcon),!1}},{key:"onClickClose",value:function(){Un.a.isFunction(this.options.onClickClose)&&this.options.onClickClose()}},{key:"onSubmit",value:function(e){return e.preventDefault(),this.submitQuery(X.DirectSearchDescriptor.Submit),!1}},{key:"submitQuery",value:function(e){this.updateInitialQuery();var t=this.model.get("query");if(t){this.logSearch(t,e),this.updateSearchHistory({add:!0,query:t}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");var n=ke(this.searchContext);Z.Radio.channel(ce.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:t},n)}))}}},{key:"resetQuery",value:function(){this.model.set({query:this.model.get("initialQuery")})}},{key:"updateInitialQuery",value:function(){this.model.set({initialQuery:this.model.get("query")})}},{key:"logSearch",value:function(e,t){var n=J.a.buildSearchEvent(e,t),r=n.data,o=n.action;ee.a.log(X.UserAction.Search,r,o)}},{key:"onTypeaheadOpen",value:function(){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),Z.Radio.channel(ce.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});var e=this.model.get("query");e&&e.length>=_e.a.ActivationLength&&this.getUI("input").typeahead("val",e),this.alignTypeahead()}},{key:"onBeforeTypeaheadClose",value:function(e){this.appVariables.useContextualSearch&&!this.searchContext.get("preventTypeaheadClose")||(e.preventDefault(),this.getUI("input").focus())}},{key:"onTypeaheadClose",value:function(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||Z.Radio.channel(ce.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}},{key:"showMask",value:function(){this.options.disableMask||(this.$el.addClass("active"),me.showMask())}},{key:"hideMask",value:function(){this.options.disableMask||me.hideMask()}},{key:"alignTypeahead",value:function(){var e=$(".tt-menu");!this.appVariables.useContextualSearch||this.searchContext.get("title")?e.addClass("typeahead-shift"):e.hasClass("typeahead-shift")&&e.removeClass("typeahead-shift")}},{key:"onTypeaheadRender",value:function(e,t,n,r){r===Se.b.Recent&&this.handleRecentSearch()}},{key:"initTypeaheadListeners",value:function(){var e=this.getUI("input");e.on("typeahead:select",Q.bind(this.onTypeaheadSelect,this)),e.on("typeahead:render",Q.bind(this.onTypeaheadRender,this)),e.on("typeahead:beforeclose",Q.bind(this.onBeforeTypeaheadClose,this)),e.on("typeahead:close",Q.bind(this.onTypeaheadClose,this)),e.on("typeahead:open",Q.bind(this.onTypeaheadOpen,this))}},{key:"initNoLibrariesTypeaheadListeners",value:function(){var e=this,t=this.getUI("input");t.on("typeahead:open",Q.bind(this.showMask,this)),t.on("typeahead:close",Q.bind(this.hideMask,this)),t.on("typeahead:select",Q.bind((function(){r.a.AppLinkHelper.trigger(e.appVariables.appLinks.newLibrary)}),this))}},{key:"onKeydown",value:function(e){8!==e.keyCode||this.model.get("query")||Z.Radio.channel(ce.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"onResetSearchContext",value:function(e){this.appVariables.useContextualSearch&&(e&&e.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext())}},{key:"getRecentSearchBloodhound",value:function(){var e=Ae.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e})}},{key:"getDynamicBloodhoundConfig",value:function(){return Pe.bloodhoundConfig}},{key:"getDynamicTypeaheadConfig",value:function(){var e=this,t=Te.a.getTemplate(Rn.a,{fallbackTemplate:Cn.a}),n=Te.a.getTemplate(Sn.a,{fallbackTemplate:Cn.a,templateText:ne.a.getPhrase(this.lang,"findingResults")});return function(r,o){return{name:e.getConfigName(r.name),source:Te.a.handleQuery(r.bloodhound,{fetchType:Se.a.Remote}),limit:e.getLimits(r.name),display:function(e){return e.name},async:!0,templates:{header:t,pending:0===o?n:Cn.a,notFound:Cn.a,suggestion:e.getDynamicTemplate(r.name),footer:En.a}}}}},{key:"getConfigName",value:function(e){switch(e){case Oe.a.Subjects:return ne.a.getPhrase(this.lang,"classifications");case Oe.a.Video:return ne.a.getPhrase(this.lang,"videos");case Oe.a.Tags:return ne.a.getPhrase(this.lang,"tags");case Oe.a.Series:return ne.a.getPhrase(this.lang,"series")}return e}},{key:"getDynamicOptions",value:function(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}},{key:"getRecentSearchSources",value:function(){var e=this;return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:Se.b.Recent,source:Te.a.handleQuery(this.recentSearchEngine,{fetchType:Se.a.Local,ignoreOnQuery:!0}),limit:Qn.Default,templates:{header:function(){return An.a({templateText:ne.a.getPhrase(e.lang,"recentSearches")})},suggestion:this.getDynamicTemplate(Se.b.Recent)}}]}},{key:"getDirectSearchSources",value:function(){return[{name:Se.b.Direct,source:Te.a.handleQuery(),display:function(e){return e.query},templates:{suggestion:Te.a.getTemplate(mn.a,{fallbackTemplate:Cn.a,templateText:ne.a.getPhrase(this.lang,"allResults")}),footer:En.a}}]}},{key:"getDynamicSearchSources",value:function(){var e=this.getDynamicBloodhoundConfig(),t=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return Te.a.getSearchSources([{name:Oe.a.Subjects,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Oe.a.Series,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Oe.a.Folder,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Oe.a.Video,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:Oe.a.Tags,bloodhoundConfig:e,typeaheadConfig:t,options:n}])}},{key:"getSources",value:function(){var e=[].concat(Fn(this.getDirectSearchSources()),Fn(this.getDynamicSearchSources()));return this.options.showRecentSearch&&e.push.apply(e,Fn(this.getRecentSearchSources())),e}},{key:"getNoLibrariesSource",value:function(){return[{name:"NoLibrary",source:Te.a.handleQuery(),display:function(e){return e.query},templates:{suggestion:Te.a.getTemplate(xn.a,{fallbackTemplate:Cn.a,templateText:ne.a.getPhrase(this.lang,"noLibraries")})}}]}},{key:"initializeTypeahead",value:function(e){this.searchInput&&(this.searchInput.typeahead("destroy"),this.searchInput.unbind(),this.searchInput=null),this.searchInput=this.getUI("input").typeahead({minLength:0,highlight:!0,hint:!1,classNames:{menu:"tt-menu rounded border"}},e)}},{key:"hasLibraries",value:function(){return!!this.libraryCollection.length}},{key:"getLibraryIds",value:function(){return this.libraryCollection.map((function(e){return e.id}))}},{key:"viewOptions",value:function(){return{styles:In.a,svg:u.a.getSvg(u.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,showCloseButton:this.options.showCloseButton,closeSvg:u.a.getSvg(u.b.Close),libraryText:this.appVariables.searchBarPlaceholder||ne.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}},{key:"requiredResources",get:function(){return{currentUser:ge.currentUser,libraryCollection:we.a.libraries}}},{key:"renderSearchTips",value:function(){this.appVariables.showSearchTips&&this.showChildView("searchTips",new nt)}},{key:"renderSearch",value:function(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),Z.Validation.bind(this)}},{key:"renderPartialSearch",value:function(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}},{key:"renderSearchContext",value:function(){this.appVariables.useContextualSearch&&this.isRendered()&&this.showChildView("searchContext",new dt({model:this.searchContext}))}},{key:"onRender",value:function(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),Z.Validation.unbind(this)}}])&&qn(t.prototype,n),o&&qn(t,o),l}(r.a.View),$n=n(135),Xn=n(57),Jn=n(0),er=n(731),tr=n.n(er),nr=n(286),rr=n.n(nr),or=n(188),ir=n(134),ar=n(12),cr=n(296),ur=n(733),sr=n.n(ur),lr=n(734),fr=n.n(lr);function pr(e){return(pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dr(e,t,n){return t&&yr(e.prototype,t),n&&yr(e,n),e}function br(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vr(e,t)}function vr(e,t){return(vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wr(e);if(t){var o=wr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mr(this,n)}}function mr(e,t){return!t||"object"!==pr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wr(e){return(wr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sr=function(e){br(n,e);var t=gr(n);function n(e){return hr(this,n),t.call(this,e)}return dr(n,[{key:"name",get:function(){return"UserOptionsDropdownComponent"}},{key:"className",get:function(){return"dropdown-menu dropdown-arrow ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"template",get:function(){return fr.a}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"viewOptions",value:function(){return sr.a}},{key:"onRender",value:function(){this.showChildView("items",new Or({collection:this.collection,childOptions:this.options.childOptions}))}}]),n}(r.a.Component),Or=function(e){br(n,e);var t=gr(n);function n(e){return hr(this,n),t.call(this,e)}return dr(n,[{key:"name",get:function(){return"UserOptionsDropdownComponentCollection"}},{key:"childView",get:function(){return cr.a}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection);function Cr(e){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _r(e,t){return(_r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ar(e);if(t){var o=Ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pr(this,n)}}function Pr(e,t){return!t||"object"!==Cr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ar(e){return(Ar=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Tr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_r(e,t)}(a,e);var t,n,o,i=Rr(a);function a(){return kr(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"name",get:function(){return"UserOptionsView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return tr.a}},{key:"lang",get:function(){return"shared.userOptions"}},{key:"className",get:function(){return"d-inline-flex align-items-center position-relative position-relative ".concat(rr.a.popoverOffset)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"getOnlineUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Xn.a.safeUrlConcat(this.config.get("onlineUrl"),e);return Xn.a.urlBuilder(t,{loginPrompt:!1})}},{key:"renderOptions",value:function(){this.showChildView("options",new Sr({model:this.currentUser,collection:new r.a.Collection([{title:ne.a.getPhrase(this.lang,"staffView"),href:this.getOnlineUrl(),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{title:ne.a.getPhrase(this.lang,"settings"),href:this.getOnlineUrl("/settings"),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{title:ne.a.getPhrase(this.lang,"helpCentre"),href:Xn.a.safeUrlConcat(this.config.get("supportSiteUrl"),Jn.y.LIBRARY_EDITOR),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{divider:!0},{title:ne.a.getPhrase(this.lang,"signOut"),href:"/logout"}]),displayOptions:{alignment:"right"},childOptions:{channelName:this.channelName}}))}},{key:"viewOptions",value:function(){return this.currentUser?(this.currentUser.avatar&&(e=ar.g.createUrl(this.currentUser.avatar.get("url"),{size:"small"})),{styles:rr.a,avatar:e,arrowSvg:u.a.getSvg(u.b.ChevronDown)}):{};var e}},{key:"requiredResources",get:function(){return{config:or.b.config,currentUser:ir.b.currentUser}}},{key:"onRender",value:function(){this.renderOptions()}}])&&Er(t.prototype,n),o&&Er(t,o),a}(r.a.View),xr=n(44),Lr=n(9),jr=n(305),Nr=n(736),Ir=n.n(Nr);function Vr(e){return(Vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mr(e,t){return(Mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hr(e);if(t){var o=Hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fr(this,n)}}function Fr(e,t){return!t||"object"!==Vr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Hr(e){return(Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mr(e,t)}(a,e);var t,n,r,o=Ur(a);function a(){return Br(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"initialize",value:function(){this.pendingItemsService=i.a.getInstance(Jn.x.PendingItems,this),this.listenTo(ce.c.PENDING_ITEMS,xr.a.PENDING_ITEM_STATUS_CHANGE,this.render),this.listenTo(this.channelName,"clear:pending:item",this.onClearPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.onRetryPendingItem)}},{key:"name",get:function(){return"ProgressSummaryView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Ir.a}},{key:"lang",get:function(){return"upload.progressSummary"}},{key:"className",get:function(){return"progress-summary"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{processingProgress:{el:".processing-progress-region",replaceElement:!0,partialLoading:Lr.h.NotificationPopover},uploading:{el:".upload-progress-region",replaceElement:!0}}}},{key:"onClearPendingItem",value:function(e){var t=this;this.pendingItemsService.clearPendingItem(e,(function(){t.render()}))}},{key:"onRetryPendingItem",value:function(e){var t=this;this.pendingItemsService.retryPendingItem(e,(function(){t.render()}))}},{key:"onBeforeRender",value:function(){return this.pendingItems=this.pendingItemsService.getPendingItems(),!!this.pendingItems}},{key:"onRender",value:function(){this.showChildView("processingProgress",new jr.a({collection:this.pendingItems,channelName:this.channelName}))}}])&&Dr(t.prototype,n),r&&Dr(t,r),a}(r.a.View),qr=n(287),Wr=n.n(qr),Yr=n(737),Gr=n.n(Yr),Kr=n(306),Qr=n(136);function Zr(e){return(Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xr(e,t){return(Xr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=to(e);if(t){var o=to(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eo(this,n)}}function eo(e,t){return!t||"object"!==Zr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var no=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xr(e,t)}(c,e);var t,n,r,a=Jr(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){var e=this;this.pendingItemsService=i.a.getInstance(Jn.x.PendingItems,this),this.listenTo(Jn.e.LIBRARY,"library:created library:deleted",this.render),this.model=o.a.get("process:progress"),this.listenTo(this.model,"change:items",(function(){e.model.get("items")||e.render()}))}},{key:"lang",get:function(){return"upload.uploadButton"}},{key:"appLinks",get:function(){return e={},t=".".concat(Wr.a.upload),n={application:Jn.b.UPLOAD,action:Jn.a.Upload.FILE_SELECTION},t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"channelName",get:function(){return Jn.w.VIDEO_UPLOAD}},{key:"name",get:function(){return"UploadButtonView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative h-100"}},{key:"template",get:function(){return Gr.a}},{key:"regions",value:function(){return{progressInfo:{el:".progress-info-region",replaceElement:!1},progressSummary:{el:".progress-summary-region",replaceElement:!1}}}},{key:"hasLibraries",value:function(){return!!this.libraries.length}},{key:"renderProgressInfo",value:function(){this.hasLibraries()&&this.showChildView("progressInfo",new Kr.a)}},{key:"renderProgressSummary",value:function(){this.hasLibraries()&&this.showChildView("progressSummary",new zr)}},{key:"requiredResources",get:function(){return{libraries:Qr.b.libraries}}},{key:"viewOptions",value:function(){return{styles:Wr.a,uploadSvg:u.a.getSvg(u.b.Upload),hasLibraries:this.hasLibraries()}}},{key:"onRender",value:function(){this.pendingItemsService.getPendingItems(),this.renderProgressInfo(),this.renderProgressSummary()}}])&&$r(t.prototype,n),r&&$r(t,r),c}(r.a.View),ro=n(739),oo=n.n(ro),io=n(740),ao=n.n(io);function co(e){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function so(e,t){return(so=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=po(e);if(t){var o=po(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fo(this,n)}}function fo(e,t){return!t||"object"!==co(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function po(e){return(po=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"PageHeaderComponent",(function(){return ho}));var ho=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&so(e,t)}(a,e);var t,n,r,i=lo(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"PageHeaderComponent"}},{key:"template",get:function(){return oo.a}},{key:"tagName",get:function(){return"nav"}},{key:"className",get:function(){return"navbar navbar-expand navbar-dark bg-dark"}},{key:"regions",value:function(){return{search:{el:".search-bar-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!0},upload:{el:".upload-region",replaceElement:!1},userOptions:{el:".user-options-region",replaceElement:!0},migrationError:{el:".migration-error-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .navbar-brand":"onClick"}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var e={actionType:X.UserAction.Click,descriptor:X.ClickDescriptor.NavigateHome,location:X.LocationContext.TopNav,entity:X.EntityType.Logo},t={currentLocation:J.a.buildCurrentLocation()};J.a.logUserAction(t,e)}},{key:"getSearchModel",value:function(){return o.a.get("search",{ctor:$n.c})}},{key:"renderSearchBar",value:function(){var e=new Zn({model:this.getSearchModel()});this.showChildView("search",e)}},{key:"renderUpload",value:function(){if(!this.options.onlyShowProfile){var e=new no;this.showChildView("upload",e)}}},{key:"renderNotificationsStatus",value:function(){var e=new K;this.showChildView("notifications",e)}},{key:"renderUserDropdown",value:function(){this.showChildView("userOptions",new Tr)}},{key:"viewOptions",value:function(){return{styles:ao.a}}},{key:"onRender",value:function(){this.renderUserDropdown(),this.options.onlyShowProfile||(this.renderSearchBar(),this.renderUpload(),this.renderNotificationsStatus())}}])&&uo(t.prototype,n),r&&uo(t,r),a}(r.a.Component)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(2),i=n(3),a=n(15),c=n(61),u=n(741),s=n.n(u),l=n(742),f=n.n(l),p=n(9),h=n(743),y=n.n(h),d=n(289),b=n.n(d);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){S(n,e);var t=C(n);function n(e){return g(this,n),t.call(this,e)}return w(n,[{key:"name",get:function(){return"TopNavigationItemComponent"}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){return this.isSelected()?"border-bottom border-primary text-primary nav-link ".concat(b.a.active):"nav-link"}},{key:"isSelected",value:function(){return!!this.options.selected&&(this.options.selected.application===this.model.get("application")&&this.options.selected.action===this.model.get("action"))}},{key:"appLinks",get:function(){return{"[this]":{application:this.model.get("application"),action:this.model.get("action")}}}},{key:"template",get:function(){return y.a}},{key:"getCount",value:function(){var e=this.model.get("getCount");if(r.isFunction(e))return e()}},{key:"viewOptions",value:function(){return{styles:b.a,count:this.getCount()}}}]),n}(o.a.Component),R=function(e){S(n,e);var t=C(n);function n(e){return g(this,n),t.call(this,e)}return w(n,[{key:"name",get:function(){return"TopNavigationComponentCollection"}},{key:"className",get:function(){return"nav"}},{key:"childView",get:function(){return _}},{key:"childViewOptions",get:function(){return{selected:this.options.selected}}}]),n}(o.a.ComponentCollection),P=n(58),A=n(0),T=n(134),x=n(5),L={warningPublisherArchive:n(744)};function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=D(e);if(t){var o=D(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B(this,n)}}function B(e,t){return!t||"object"!==j(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"TopNavigationView",(function(){return M}));var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(h,e);var t,n,u,l=V(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),l.call(this,e)}return t=h,(n=[{key:"initialize",value:function(){this.initializeDataServices(),this.bindListeners()}},{key:"name",get:function(){return"TopNavigationView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white ".concat(f.a.topNav," container")}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"shared.topNavigation"}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0},migrationErrors:{el:".migration-error-region",replaceElement:!0}}}},{key:"initializeDataServices",value:function(){this.contentUpdatesDataService=x.a.getInstance(A.g.ContentUpdates,this),this.settingsDataService=x.a.getInstance(A.g.Settings,this),this.migrationVideoDataService=x.a.getInstance(A.g.MigrationVideo,this),this.staffRequestDataService=x.a.getInstance(A.g.StaffRequests,this)}},{key:"bindListeners",value:function(){this.listenTo(A.e.SETTINGS,"".concat(A.f.SETTINGS,":sync"),this.render),this.listenTo(A.e.VIDEO,"".concat(A.f.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(A.e.STAFF_REQUEST,"".concat(A.f.STAFF_REQUESTS,":sync"),this.render),this.listenTo(A.e.MIGRATION,"".concat(A.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(A.e.MIGRATION,"manual:review:video:count:sync",this.render)}},{key:"initNavCollection",value:function(){var e=this,t=[{name:i.a.getPhrase(this.lang,"libraryEditor"),application:A.b.LIBRARY_EDITOR,action:A.a.LibraryEditor.HOME},{name:i.a.getPhrase(this.lang,"staffRequests"),application:A.b.STAFF_REQUESTS,action:A.a.StaffRequests.HOME,getCount:function(){return e.staffRequestCollection&&e.staffRequestCollection.length},requiredSetting:{name:c.a.StaffRequest,value:p.k.StaffRequest}},{name:i.a.getPhrase(this.lang,"contentUpdates"),application:A.b.CONTENT_UPDATES,action:A.a.ContentUpdates.AWAITING_REVIEW,getCount:function(){return e.contentUpdatesCollection&&e.contentUpdatesCollection.length}},{name:i.a.getPhrase(this.lang,"videoAccess"),application:A.b.VIDEO_ACCESS,action:A.a.VideoAccess.HOME}];this.collection=new o.a.Collection(this.filterNavItems(t)),P.a.showPublisherArchive(this.migrationMetadata)&&this.collection.add({name:i.a.getPhrase(this.lang,"publisherArchive"),icon:this.getPublisherArchiveIcon(),application:A.b.MIGRATION_WIZARD,action:A.a.MigrationWizard.HOME})}},{key:"getPublisherArchiveIcon",value:function(){return this.errorCount&&this.errorCount.get("count")?L.warningPublisherArchive(i.a.getPhrase("migrationWizard.utils","errorsTitle")):a.a.getSvg(a.b.PublisherArchive)}},{key:"filterNavItems",value:function(e){var t=this;return e.filter((function(e){if(!r.has(e,"requiredSetting"))return!0;var n=t.settings.findWhere({name:e.requiredSetting.name});return!!n&&n.get("value")===e.requiredSetting.value}))}},{key:"requiredResources",get:function(){return{currentUser:T.b.currentUser}}},{key:"onBeforeRender",value:function(){return this.contentUpdatesCollection=this.contentUpdatesDataService.getVideosToReview(),this.staffRequestCollection=this.staffRequestDataService.getStaffRequests(),this.settings=this.settingsDataService.getSettings(this.currentUser.get("customerId")),this.migrationMetadata=this.migrationVideoDataService.getCustomerMetadata(),this.errorCount=this.migrationVideoDataService.getManualReviewVideoCount(),!!this.settings&&!!this.migrationMetadata}},{key:"onRender",value:function(){this.initNavCollection(),this.showChildView("items",new R({collection:this.collection,selected:this.options.selected}))}}])&&N(t.prototype,n),u&&N(t,u),h}(o.a.View)},function(e,t,n){},function(e,t,n){},function(e,t){e.exports={GoogleAnalytics:function(){window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.default.tokenize(e),o=[],a=[];for(n=new u(n),t=0;t<r.length;t++){var p=r[t];if("StartTag"!==p.type)if("Chars"===p.type){var h=s(p.chars,n);o.push.apply(o,h)}else o.push(p);else{o.push(p);var y=p.tagName.toUpperCase(),d="A"===y||c.contains(n.ignoreTags,y);if(!d)continue;var b=o.length;l(y,r,++t,o),t+=o.length-b-1}}for(t=0;t<o.length;t++){var v=o[t];switch(v.type){case"StartTag":var g="<"+v.tagName;if(v.attributes.length>0){var m=f(v.attributes);g+=" "+m.join(" ")}g+=">",a.push(g);break;case"EndTag":a.push("</"+v.tagName+">");break;case"Chars":a.push(v.chars);break;case"Comment":a.push("\x3c!--"+v.chars+"--\x3e")}}return a.join("")};var r,o=n(754),i=(r=o)&&r.__esModule?r:{default:r},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(346));var c=a.options,u=c.Options;function s(e,t){for(var n=a.tokenize(e),r=[],o=0;o<n.length;o++){var i=n[o];if("nl"===i.type&&t.nl2br)r.push({type:"StartTag",tagName:"br",attributes:[],selfClosing:!0});else if(i.isLink&&t.check(i)){var c=t.resolve(i),u=c.formatted,s=c.formattedHref,l=c.tagName,f=c.className,p=c.target,h=c.attributes,y=[["href",s]];for(var d in f&&y.push(["class",f]),p&&y.push(["target",p]),h)y.push([d,h[d]]);r.push({type:"StartTag",tagName:l,attributes:y,selfClosing:!1}),r.push({type:"Chars",chars:u}),r.push({type:"EndTag",tagName:l})}else r.push({type:"Chars",chars:i.toString()})}return r}function l(e,t,n,r){for(var o=1;n<t.length&&o>0;){var i=t[n];"StartTag"===i.type&&i.tagName.toUpperCase()===e?o++:"EndTag"===i.type&&i.tagName.toUpperCase()===e&&o--,r.push(i),n++}return r}function f(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=r[0],i=r[1];t.push(o+'="'+(i.replace(/"/g,""")+'"'))}return t}},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(342)),o=u(n(343)),i=u(n(344)),a=u(n(345)),c=u(n(756));function u(e){return e&&e.__esModule?e:{default:e}}var s={HTML5NamedCharRefs:r.default,EntityParser:o.default,EventedTokenizer:i.default,Tokenizer:a.default,tokenize:c.default};t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.isSpace=function(e){return r.test(e)},t.isAlpha=function(e){return o.test(e)},t.preprocessInput=function(e){return e.replace(i,"\n")};var r=/[\t\n\f ]/,o=/[A-Za-z]/,i=/\r\n?/g},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return new r.default(new o.default(i.default),t).tokenize(e)};var r=a(n(345)),o=a(n(343)),i=a(n(342));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:o.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:o.events,this.format=e.hasOwnProperty("format")?e.format:o.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:o.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:o.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:o.tagName,this.target=e.hasOwnProperty("target")?e.target:o.target,this.validate=e.hasOwnProperty("validate")?e.validate:o.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||o.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||o.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:o.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=o,t.Options=i,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},i.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var i=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[e])?i(t,n.type):i}return a},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(347),o=n(254),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),c="0123456789".split(""),u="0123456789abcdefghijklmnopqrstuvwxyz".split(""),s=[" ","\f","\r","\t","\v","Ā ","į","į "],l=[],f=function(e){return new r.CharacterState(e)},p=f(),h=f(o.NUM),y=f(o.DOMAIN),d=f(),b=f(o.WS);p.on("@",f(o.AT)).on(".",f(o.DOT)).on("+",f(o.PLUS)).on("#",f(o.POUND)).on("?",f(o.QUERY)).on("/",f(o.SLASH)).on("_",f(o.UNDERSCORE)).on(":",f(o.COLON)).on("{",f(o.OPENBRACE)).on("[",f(o.OPENBRACKET)).on("<",f(o.OPENANGLEBRACKET)).on("(",f(o.OPENPAREN)).on("}",f(o.CLOSEBRACE)).on("]",f(o.CLOSEBRACKET)).on(">",f(o.CLOSEANGLEBRACKET)).on(")",f(o.CLOSEPAREN)).on("&",f(o.AMPERSAND)).on([",",";","!",'"',"'"],f(o.PUNCTUATION)),p.on("\n",f(o.NL)).on(s,b),b.on(s,b);for(var v=0;v<a.length;v++){var g=(0,r.stateify)(a[v],p,o.TLD,o.DOMAIN);l.push.apply(l,g)}var m=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),O=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,m),l.push.apply(l,w),l.push.apply(l,S),l.push.apply(l,O);var C=m.pop(),k=w.pop(),E=S.pop(),_=O.pop(),R=f(o.DOMAIN),P=f(o.PROTOCOL),A=f(o.MAILTO);k.on("s",R).on(":",P),E.on("s",R).on(":",P),l.push(R),C.on(":",P),R.on(":",P),_.on(":",A);var T=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,T),p.on(c,h),h.on("-",d).on(c,h).on(u,y),y.on("-",d).on(u,y);for(var x=0;x<l.length;x++)l[x].on("-",d).on(u,y);d.on("-",d).on(c,y).on(u,y),p.defaultTransition=f(o.SYM);var L=p;t.State=r.CharacterState,t.TOKENS=i,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],o=0;o<n;){for(var i=p,a=null,c=0,u=null,s=-1;o<n&&(a=i.next(t[o]));)(i=a).accepts()?(s=0,u=i):s>=0&&s++,c++,o++;if(!(s<0)){o-=s,c-=s;var l=u.emit();r.push(new l(e.substr(o-c,c)))}}return r},t.start=L},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(347),o=n(760),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o),a=n(254);var c=function(e){return new r.TokenState(e)},u=c(),s=c(),l=c(),f=c(),p=c(),h=c(),y=c(),d=c(o.URL),b=c(),v=c(o.URL),g=c(o.URL),m=c(),w=c(),S=c(),O=c(),C=c(),k=c(o.URL),E=c(o.URL),_=c(o.URL),R=c(o.URL),P=c(),A=c(),T=c(),x=c(),L=c(),j=c(),N=c(o.EMAIL),I=c(),V=c(o.EMAIL),B=c(o.MAILTOEMAIL),D=c(),M=c(),U=c(),F=c(),H=c(o.NL);u.on(a.NL,H).on(a.PROTOCOL,s).on(a.MAILTO,l).on(a.SLASH,f),s.on(a.SLASH,f),f.on(a.SLASH,p),u.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,d).on(a.NUM,h),p.on(a.TLD,g).on(a.DOMAIN,g).on(a.NUM,g).on(a.LOCALHOST,g),h.on(a.DOT,y),L.on(a.DOT,j),y.on(a.TLD,d).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),j.on(a.TLD,N).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),d.on(a.DOT,y),N.on(a.DOT,j),d.on(a.COLON,b).on(a.SLASH,g),b.on(a.NUM,v),v.on(a.SLASH,g),N.on(a.COLON,I),I.on(a.NUM,V);var z=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],q=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];g.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),m.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),w.on(a.CLOSEBRACE,g),S.on(a.CLOSEBRACKET,g),O.on(a.CLOSEANGLEBRACKET,g),C.on(a.CLOSEPAREN,g),k.on(a.CLOSEBRACE,g),E.on(a.CLOSEBRACKET,g),_.on(a.CLOSEANGLEBRACKET,g),R.on(a.CLOSEPAREN,g),P.on(a.CLOSEBRACE,g),A.on(a.CLOSEBRACKET,g),T.on(a.CLOSEANGLEBRACKET,g),x.on(a.CLOSEPAREN,g),w.on(z,k),S.on(z,E),O.on(z,_),C.on(z,R),w.on(q,P),S.on(q,A),O.on(q,T),C.on(q,x),k.on(z,k),E.on(z,E),_.on(z,_),R.on(z,R),k.on(q,k),E.on(q,E),_.on(q,_),R.on(q,R),P.on(z,k),A.on(z,E),T.on(z,_),x.on(z,R),P.on(q,P),A.on(q,A),T.on(q,T),x.on(q,x),g.on(z,g),m.on(z,g),g.on(q,m),m.on(q,m),l.on(a.TLD,B).on(a.DOMAIN,B).on(a.NUM,B).on(a.LOCALHOST,B),B.on(z,B).on(q,D),D.on(z,B).on(q,D);var W=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(W,M).on(a.AT,U),d.on(W,M).on(a.AT,U),y.on(W,M),M.on(W,M).on(a.AT,U).on(a.DOT,F),F.on(W,M),U.on(a.TLD,L).on(a.DOMAIN,L).on(a.LOCALHOST,N);t.State=r.TokenState,t.TOKENS=i,t.run=function(e){for(var t=e.length,n=0,r=[],i=[];n<t;){for(var a=u,c=null,s=null,l=0,f=null,p=-1;n<t&&!(c=a.next(e[n]));)i.push(e[n++]);for(;n<t&&(s=c||a.next(e[n]));)c=null,(a=s).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)i.push(e[h]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var y=f.emit();r.push(new y(e.slice(n-l,n)))}}return i.length>0&&r.push(new o.TEXT(i)),r},t.start=u},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(348),o=n(195),i=n(254);function a(e){return e instanceof i.DOMAIN||e instanceof i.TLD}var c=(0,r.createTokenClass)();c.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var u=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0}),s=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"nl"}),p=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,o=[],c=0;r[c]instanceof i.PROTOCOL;)t=!0,o.push(r[c].toString().toLowerCase()),c++;for(;r[c]instanceof i.SLASH;)n=!0,o.push(r[c].toString()),c++;for(;a(r[c]);)o.push(r[c].toString().toLowerCase()),c++;for(;c<r.length;c++)o.push(r[c].toString());return o=o.join(""),t||n||(o=e+"://"+o),o},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});t.Base=c,t.MAILTOEMAIL=u,t.EMAIL=s,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(346));var o=r.tokenize,i=r.options.Options;function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function c(e){return e.replace(/"/g,""")}function u(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+c(r)+'"')}return t.join(" ")}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new i(t);for(var n=o(e),r=[],s=0;s<n.length;s++){var l=n[s];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,h=f.formattedHref,y=f.tagName,d=f.className,b=f.target,v=f.attributes,g="<"+y+' href="'+c(h)+'"';d&&(g+=' class="'+c(d)+'"'),b&&(g+=' target="'+c(b)+'"'),v&&(g+=" "+u(v)),g+=">"+a(p)+"</"+y+">",r.push(g)}else r.push(a(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return s(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return s(this,e)})}t.default=s},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&h())}function h(){if(!l){var e=c(p);l=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function d(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new y(e,t)),1!==s.length||l||c(h)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";(function(e){
|
|
2
|
+
/*!
|
|
3
|
+
* The buffer module from node.js, for the browser.
|
|
4
|
+
*
|
|
5
|
+
* @author Feross Aboukhadijeh <http://feross.org>
|
|
6
|
+
* @license MIT
|
|
7
|
+
*/
|
|
8
|
+
var r=n(764),o=n(765),i=n(766);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return s(this,e,t,n)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(t,n),o=(e=c(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|h(t.length);return 0===(e=c(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?c(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=c(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=c(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function y(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function d(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,c=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,c/=2,u/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<c;i++)if(s(e,i)===s(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>c&&(n=c-u),i=n;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(s(e,i+p)!==s(t,p)){f=!1;break}if(f)return i}return-1}function m(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(t.substr(2*a,2),16);if(isNaN(c))return a;e[n+a]=c}return a}function w(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function S(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function O(e,t,n,r){return S(e,t,n,r)}function C(e,t,n,r){return H(F(t),e,n,r)}function k(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,c,u,s=e[o],l=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(l=s);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&s)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&s)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(u=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return s(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?c(e,t):void 0!==n?"string"==typeof r?c(e,t).fill(n,r):c(e,t).fill(n):c(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):d.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),s=this.slice(r,o),l=e.slice(t,n),f=0;f<c;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return m(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function A(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=M(e[i]);return o}function T(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function x(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||x(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||x(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||x(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||x(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||x(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||x(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||x(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,c=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===c&&0!==this[t+i-1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=u.isBuffer(e)?e:U(new u(e,r).toString()),c=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%c]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(255))},function(e,t,n){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=s(e),a=r[0],c=r[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===c&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===c&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,c=n-o;a<c;a+=16383)i.push(l(e,a,a+16383>c?c:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=a.length;c<u;++c)r[c]=a[c],o[a.charCodeAt(c)]=c;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],c=t;c<n;c+=3)o=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(255&e[c+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){
|
|
9
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10
|
+
t.read=function(e,t,n,r,o){var i,a,c=8*o-r-1,u=(1<<c)-1,s=u>>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=c;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=s}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,c,u,s=8*i-o-1,l=(1<<s)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,y=r?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(t*u-1)*Math.pow(2,o),a+=f):(c=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&c,h+=y,c/=256,o-=8);for(a=a<<o|c,s+=o;s>0;e[n+h]=255&a,h+=y,a/=256,s-=8);e[n+h-y]|=128*d}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(750),n(751);var r=n(2),o=n(6),i=n(1),a=n(0);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,r,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return t=p,(n=[{key:"initialize",value:function(){this.detectVisibilityApi(),this.bindEventListeners()}},{key:"detectVisibilityApi",value:function(){var e=document;void 0!==document.hidden?(this.hiddenPropertyName="hidden",this.visibilityChangeEventName="visibilitychange"):void 0!==e.msHidden?(this.hiddenPropertyName="msHidden",this.visibilityChangeEventName="msvisibilitychange"):void 0!==e.webkitHidden&&(this.hiddenPropertyName="webkitHidden",this.visibilityChangeEventName="webkitvisibilitychange")}},{key:"name",get:function(){return a.x.PageVisibility}},{key:"channelName",get:function(){return a.w.PAGE_VISIBILITY}},{key:"bindEventListeners",value:function(){void 0!==document.addEventListener&&void 0!==this.hiddenPropertyName&&(this.onVisibilityChange=i.bind(this.onVisibilityChange,this),document.addEventListener(this.visibilityChangeEventName,this.onVisibilityChange,!1))}},{key:"onVisibilityChange",value:function(){o.Radio.channel(this.channelName).trigger("visbility:change",document[this.hiddenPropertyName])}},{key:"addVisibilityChangeListener",value:function(e){this.listenTo(this.channelName,"visbility:change",e)}},{key:"removeVisibilityChangeListener",value:function(e){this.stopListening(o.Radio.channel(this.channelName),"visbility:change",e)}},{key:"onDestroy",value:function(){document.removeEventListener(this.visibilityChangeEventName,this.onVisibilityChange)}}])&&s(t.prototype,n),r&&s(t,r),p}(r.a.Service),d=n(48),b=n(5),v=n(74),g=n(17),m=n(220),w=n(221);var S=n(151),O=n(20),C=n(14),k=n(30),E=n(137),_=n(118),R=n(229),P=n(230),A=n(42);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=I(e);if(t){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L(e,t)}(c,e);var t,n,o,a=j(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this)).clients={},t.enrichers={},k.a.get("application:options").set(e),t.bindNavigationListener(),t}return t=c,(n=[{key:"name",get:function(){return P.a.Analytics}},{key:"registerTransport",value:function(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}},{key:"bindTransportListeners",value:function(){this.listenTo(R.a.ANALYTICS,_.a.Inlet,this.onEvent)}},{key:"registerClient",value:function(e,t){return this.validateConstructor(e),this.clients[e.prototype.name]=e.prototype.name,this.transport.subscribe(new e(t)),this}},{key:"registerEnricher",value:function(e,t){this.validateConstructor(e);var n=new e(t);return this.enrichers[e.name]=n,this.registerMiddleware(i.bind(n.enrich,n)),this}},{key:"onEvent",value:function(e){var t=this;this.executeMiddleware(e,(function(e){t.transport.publish(e)}))}},{key:"validateConstructor",value:function(e){var t=e.prototype.name;t||r.a.ErrorHelper.throw(new O.a("Classes registered with ".concat(this.name," must have a unique name property.")));var n=function(t){return E.a.isFunction(e.prototype.isType)&&e.prototype.isType(t)};(n("BaseAnalyticsClient")||"CollectionApiClient"===t)&&this.clients[t]&&r.a.ErrorHelper.throw(new O.a("A client class with the name: ".concat(t," has already been registered with ").concat(this.name))),n("BaseAnalyticsEnricher")&&this.enrichers[t]&&r.a.ErrorHelper.throw(new O.a("An enricher class named: ".concat(t," has already been registered with ").concat(this.name)))}},{key:"registerMiddleware",value:function(e){var t;this.executeMiddleware=(t=this.executeMiddleware,function(n,r){return t(n,(function(){return e(n,r)}))})}},{key:"executeMiddleware",value:function(e,t){t(e)}},{key:"bindNavigationListener",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.URL_CHANGE,this.logNavigate)}},{key:"logNavigate",value:function(e,t){A.a.logNavigate(e,t)}}])&&x(t.prototype,n),o&&x(t,o),c}(r.a.Service),B=n(51);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=W(e);if(t){var o=W(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Y=function(e){F(a,e);var t,n,r,o=z(a);function a(){return U(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"name",get:function(){return"EventTransport"}},{key:"channelName",get:function(){return"event:transport"}},{key:"publish",value:function(e){this.getChannel().trigger(_.a.Outlet,e)}},{key:"subscribe",value:function(e){var t=e,n=function(n){E.a.isFunction(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};i.isFunction(t.listenTo)?t.listenTo(this.getChannel(),_.a.Outlet,n):this.listenTo(this.getChannel(),_.a.Outlet,n)}}])&&M(t.prototype,n),r&&M(t,r),a}(function(e){F(n,e);var t=z(n);function n(){return U(this,n),t.apply(this,arguments)}return n}(B.Object));function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ee(e);if(t){var o=ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return J(this,n)}}function J(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Z(e,t)}(i,e);var t,n,r,o=X(i);function i(){return K(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"enrich",value:function(e,t){}},{key:"isType",value:function(e){return e===i.type}}])&&Q(t.prototype,n),r&&Q(t,r),i}(r.a.Service);function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ue(e);if(t){var o=ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ce(this,n)}}function ce(e,t){return!t||"object"!==ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}te.type="BaseAnalyticsEnricher";var se=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ie(e,t)}(i,e);var t,n,r,o=ae(i);function i(){return re(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"UserDataEnricher"}},{key:"initialize",value:function(){this.user=k.a.get("application:options").get("user")}},{key:"shouldEnrich",value:function(e){return!0}},{key:"enrich",value:function(e,t){this.shouldEnrich(e)||t(e),e.enrich("user",this.getUser(this.user)),t(e)}},{key:"getUser",value:function(e){return{country:e.countryCode,customerId:e.customerId,id:e.id,role:e.role}}}])&&oe(t.prototype,n),r&&oe(t,r),i}(te),le="URLSearchParams"in self,fe="Symbol"in self&&"iterator"in Symbol,pe="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),he="FormData"in self,ye="ArrayBuffer"in self;if(ye)var de=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],be=ArrayBuffer.isView||function(e){return e&&de.indexOf(Object.prototype.toString.call(e))>-1};function ve(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function ge(e){return"string"!=typeof e&&(e=String(e)),e}function me(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return fe&&(t[Symbol.iterator]=function(){return t}),t}function we(e){this.map={},e instanceof we?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Se(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Oe(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Ce(e){var t=new FileReader,n=Oe(t);return t.readAsArrayBuffer(e),n}function ke(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ee(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:pe&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:he&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:le&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ye&&pe&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=ke(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ye&&(ArrayBuffer.prototype.isPrototypeOf(e)||be(e))?this._bodyArrayBuffer=ke(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):le&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},pe&&(this.blob=function(){var e=Se(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Se(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Ce)}),this.text=function(){var e,t,n,r=Se(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Oe(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},he&&(this.formData=function(){return this.text().then(Pe)}),this.json=function(){return this.text().then(JSON.parse)},this}we.prototype.append=function(e,t){e=ve(e),t=ge(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},we.prototype.delete=function(e){delete this.map[ve(e)]},we.prototype.get=function(e){return e=ve(e),this.has(e)?this.map[e]:null},we.prototype.has=function(e){return this.map.hasOwnProperty(ve(e))},we.prototype.set=function(e,t){this.map[ve(e)]=ge(t)},we.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},we.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),me(e)},we.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),me(e)},we.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),me(e)},fe&&(we.prototype[Symbol.iterator]=we.prototype.entries);var _e=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Re(e,t){var n,r,o=(t=t||{}).body;if(e instanceof Re){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new we(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new we(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),_e.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function Pe(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function Ae(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new we(t.headers),this.url=t.url||"",this._initBody(e)}Re.prototype.clone=function(){return new Re(this,{body:this._bodyInit})},Ee.call(Re.prototype),Ee.call(Ae.prototype),Ae.prototype.clone=function(){return new Ae(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new we(this.headers),url:this.url})},Ae.error=function(){var e=new Ae(null,{status:0,statusText:""});return e.type="error",e};var Te=[301,302,303,307,308];Ae.redirect=function(e,t){if(-1===Te.indexOf(t))throw new RangeError("Invalid status code");return new Ae(null,{status:t,headers:{location:e}})};var xe=self.DOMException;try{new xe}catch(e){(xe=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),xe.prototype.constructor=xe}function Le(e,t){return new Promise((function(n,r){var o=new Re(e,t);if(o.signal&&o.signal.aborted)return r(new xe("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,r={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new we,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new Ae(o,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){r(new xe("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&self.location.href?self.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(pe?i.responseType="blob":ye&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Le.polyfill=!0,self.fetch||(self.fetch=Le,self.Headers=we,self.Request=Re,self.Response=Ae);var je=n(694),Ne=n.n(je),Ie=n(695);function Ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Be(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var De={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i};function Me(e,t,n){var r=Ve(t.exec(n)||[],1)[0];return r||(r="Unknown"),{name:e,version:r}}function Ue(e,t,n){if(!t)return{name:e,version:"Unknown"};var r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():"Unknown"}}var Fe=function(){var e=window.navigator.userAgent;return De.android.test(e)?Ue("Android",De.androidVersion,e):De.iphone.test(e)||De.ipad.test(e)?Ue("iOS",De.iosVersion,e):De.linux.test(e)?Ue("Linux",null,e):De.unix.test(e)?Ue("Unix",null,e):De.mac.test(e)?Ue("Macintosh",De.osxVersion,e):De.windows.test(e)?function(e,t){var n={name:e,version:null};return De.win2000.test(t)&&(n.version="2000"),De.winXP.test(t)&&(n.version="XP"),De.winVista.test(t)&&(n.version="Vista"),De.win7.test(t)&&(n.version="7"),De.win8.test(t)&&(n.version="8"),De.win81.test(t)&&(n.version="8.1"),De.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):De.blackberry.test(e)?Ue("BlackBerry",De.blackberryVersion,e):De.windowsPhone.test(e)?Ue("Windows Phone",De.windowsPhoneVersion,e):{name:"Unknown",version:"Unknown"}},He=function(){var e=window.navigator.userAgent;return De.chrome.test(e)?Me("Chrome",De.generalVersion,e):De.firefox.test(e)?Me("Firefox",De.generalVersion,e):De.safari.test(e)?Me("Safari",De.generalVersion,e):De.ie.test(e)?Me("Internet Explorer",De.ieVersion,e):De.edge.test(e)?Me("Edge",De.edgeVersion,e):De.opera.test(e)?Me("Opera",De.operaVersion,e):{name:"Unknown",version:"Unknown"}};function ze(e){return(ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var qe,We=function(e){var t=ze(e);return"function"===t||"object"===t&&!!e},Ye=function(e){return"function"==typeof e},Ge=function(e,t){if(e){var n=e;return e.endsWith("/")||(n+="/"),t?n+=t.startsWith("/")?t.slice(1):t:n}},Ke=n(222);!function(e){e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1",e.CvNaWest1="cv-na-west-1"}(qe||(qe={}));var Qe,Ze,$e={CvApSoutheast1:{systemName:qe.CvApSoutheast1},CvApSoutheast2:{systemName:qe.CvApSoutheast2},CvEuWest1:{systemName:qe.CvEuWest1},CvNaWest1:{systemName:qe.CvNaWest1}};function Xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.AU="au",e.NZ="nz",e.UK="uk",e.US="us"}(Qe||(Qe={}));var Je=(Xe(Ze={},Qe.AU,qe.CvApSoutheast1),Xe(Ze,Qe.NZ,qe.CvApSoutheast2),Xe(Ze,Qe.UK,qe.CvEuWest1),Xe(Ze,Qe.US,qe.CvNaWest1),Ze);function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var tt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},nt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.initialize()}var t,n,r;return t=e,(n=[{key:"initialize",value:function(){this.validateOptions()}},{key:"name",get:function(){return"CollectionApiClient"}},{key:"log",value:function(e){return tt(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Array.isArray(e)){t.next=2;break}return t.abrupt("return",this.logBulk(e));case 2:if(this.shouldLog(e)){t.next=4;break}return t.abrupt("return");case 4:return this.validateEvent(e),t.t0=this,t.next=8,this.formatData(e);case 8:return t.t1=t.sent,t.next=11,t.t0.postData.call(t.t0,t.t1);case 11:case"end":return t.stop()}}),t,this)})))}},{key:"logBulk",value:function(e){return tt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e.filter((function(e){return o.shouldLog(e)}))).length){t.next=3;break}return t.abrupt("return");case 3:return n.forEach((function(e){return o.validateEvent(e)})),t.next=6,Promise.all(n.map((function(e){return o.formatData(e)})));case 6:return r=t.sent,t.next=9,this.postData(r);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"validateOptions",value:function(){if(!Ye(this.options.getUser))throw new Error("getUser option is required.")}},{key:"shouldLog",value:function(e){return!Ye(this.options.shouldLog)||this.options.shouldLog(e)}},{key:"postData",value:function(e){return tt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n,r,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRegionalUrl(this.options.collectionApiUrls);case 2:return n=t.sent,r=JSON.stringify(e),o=Object.assign({"Content-Type":"application/json"},this.getSignatureHeader(r)),i=Ge(n,"/v1/ingest"),Array.isArray(e)&&(i=Ge(i,"/bulk")),t.next=9,fetch(i,{method:"POST",mode:"cors",headers:o,body:r});case 9:case"end":return t.stop()}}),t,this)})))}},{key:"getSignatureHeader",value:function(e){var t=new Ne.a("SHA-1","TEXT",{hmacKey:{value:"zXJL9nOHxzDlMUDjiP41",format:"TEXT",encoding:"UTF8"}});return t.update(e),{"cv-analytics-signature":"".concat(this.options.collectionApiClientId,".").concat(t.getHash("B64"))}}},{key:"getRegionalUrl",value:function(e){return tt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRegion();case 2:n=t.sent,t.t0=n.systemName,t.next=t.t0===qe.CvEuWest1?6:t.t0===qe.CvApSoutheast2?7:(t.t0,qe.CvApSoutheast1,8);break;case 6:return t.abrupt("return",e.cvEuWest1);case 7:return t.abrupt("return",e.cvApSoutheast2);case 8:return t.abrupt("return",e.cvApSoutheast1);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"validateEvent",value:function(e){if("string"!=typeof e.type)throw new Error("Event type is required.");if(!We(e.actionContext))throw new Error("Event actionContext is required.");if(!e.actionContext.entity)throw new Error("Event actionContext entity is required.")}},{key:"formatData",value:function(e){return tt(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e.type,t.next=3,this.getEventData(e);case 3:return t.t1=t.sent,t.t2=this.getEventMetadata(e),t.abrupt("return",{type:t.t0,data:t.t1,metadata:t.t2});case 6:case"end":return t.stop()}}),t,this)})))}},{key:"getEventData",value:function(e){return tt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n,r,o,i,a,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.actionContext,t.next=3,this.getUserData();case 3:return r=t.sent,o={user:r,action:n,platform:this.getPlatformMetadata(),product:{name:this.options.productName,version:this.options.productVersion}},i=this.extractData(e),a=Object.keys(o).map((function(e){return e.toLowerCase()})),c=Object.keys(i).map((function(e){return e.toLowerCase()})),a.forEach((function(e){if(c.includes(e))throw Error("".concat(e," is a reserved key."))})),t.abrupt("return",Object.assign(Object.assign({},o),i));case 10:case"end":return t.stop()}}),t,this)})))}},{key:"extractData",value:function(e){return Ye(this.options.formatData)?this.options.formatData(e):(t={},n=e.actionContext.entity,r=e.data,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t);var t,n,r}},{key:"getUserData",value:function(){var e,t;return tt(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.options.getUser();case 2:if(null==(r=n.sent)?void 0:r.id){n.next=5;break}return n.abrupt("return");case 5:return n.t0=r.id,n.t1=(null===(e=r.role)||void 0===e?void 0:e.toLowerCase())||"unknown",n.t2=(null===(t=r.userGroup)||void 0===t?void 0:t.toLowerCase())||Ke.a.Unknown,n.t3=this.normalizeYearGroup(r.yearGroup),n.t4=r.customerId,n.t5=r.customerName,n.t6=r.customerGuid,n.t7=r.crmId,n.t8=r.countryCode,n.next=16,this.getRegion();case 16:return n.t9=n.sent,n.t10=r.isOpenCustomer,n.t11={id:n.t4,name:n.t5,customerGuid:n.t6,crmId:n.t7,country:n.t8,region:n.t9,openCustomer:n.t10},n.abrupt("return",{id:n.t0,role:n.t1,userGroup:n.t2,yearGroup:n.t3,customer:n.t11});case 20:case"end":return n.stop()}}),n,this)})))}},{key:"getRegion",value:function(){var e;return tt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.options.getUser();case 2:return n=t.sent,r=null===(e=null==n?void 0:n.countryCode)||void 0===e?void 0:e.toLowerCase(),o=r?Je[r]:this.options.regionName,t.abrupt("return",this.getRegionByName(o));case 6:case"end":return t.stop()}}),t,this)})))}},{key:"getPlatformMetadata",value:function(){return{browser:He(),os:Fe(),request:{url:window.location.href,referrer:document.referrer},screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}},{key:"getEventMetadata",value:function(e){return{client:{name:"".concat(this.name,".ts"),version:Ie.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:e.eventVersion}}},{key:"getRegionByName",value:function(e){var t;return Object.values($e).forEach((function(n){n.systemName===e&&(t=n)})),t}},{key:"normalizeYearGroup",value:function(e){return e?e.toLowerCase().split(" ").join("_"):"unknown"}}])&&et(t.prototype,n),r&&et(t,r),e}(),rt=n(696),ot=n(63);function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t){return(ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function st(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ft(e);if(t){var o=ft(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lt(this,n)}}function lt(e,t){return!t||"object"!==it(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ft(e){return(ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ut(e,t)}(c,e);var t,n,o,a=st(c);function c(){return at(this,c),a.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return"DebuggerClient"}},{key:"shouldLog",value:function(){return ot.a.isDevelopment}},{key:"log",value:function(e){var t=i.clone(e);for(var n in e){var o=t[n];(o instanceof r.a.Model||o instanceof r.a.Collection)&&(t[n]=o.toJSON())}console.log("Event Debugger: ",t)}}])&&ct(t.prototype,n),o&&ct(t,o),c}(n(231).a),ht=n(29),yt=n(184);function dt(e){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return(vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wt(e);if(t){var o=wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mt(this,n)}}function mt(e,t){return!t||"object"!==dt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wt(e){return(wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var St=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vt(e,t)}(a,e);var t,n,o,i=gt(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).productName=e.productName,t.productVersion=e.productVersion,t}return t=a,(n=[{key:"name",get:function(){return"CoreContextEnricher"}},{key:"shouldEnrich",value:function(e){return!0}},{key:"enrich",value:function(e,t){this.shouldEnrich(e)||t(e),e.enrich("coreContext",this.getCoreContext()),t(e)}},{key:"getCoreContext",value:function(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}},{key:"getTimestamp",value:function(){return ht.utc().toISOString()}},{key:"getProductInfo",value:function(){return{name:this.productName,version:this.productVersion}}},{key:"getRequestInfo",value:function(){return{referrer:r.a.LocationUtils.GetCurrentReferrer(),requestUrl:r.a.LocationUtils.GetCurrentUrl()}}},{key:"getClientInfo",value:function(){var e=yt.a.getOperatingSystem(),t=yt.a.getBrowser();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}}])&&bt(t.prototype,n),o&&bt(t,o),a}(te),Ot=n(4),Ct=function(){return!0},kt=function(){return!1};var Et=function(e){return e};function _t(e){if(e&&e.code)return e.code}function Rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.id){var n={id:e.id};return e.name&&!t.ignoreTitle&&(n.title=e.name),n}}function Pt(e){if(e&&e.length){var t=e[0];return{id:t.id,title:t.name}}}var At,Tt,xt,Lt,jt=function(e){var t=e.model,n={id:t.id.toString(),year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=_t(t.rating),o=Rt(t.series),i=Pt(t.categories),a=Rt(t.owner,{ignoreTitle:!0}),c=Rt(t.playlist);return r&&(n.rating=r),a&&(n.ownerId=a.id),o&&(n.seriesId=o.id,n.series=o.title),i&&(n.category=i.title),c&&(n.playlist=c),n},Nt={getUploadData:function(e,t){var n=t.actionContext.entity;if(n===Ot.EntityType.Video)return Nt.formatVideoUpload(e,t);if(n===Ot.EntityType.Resource||n===Ot.EntityType.Subtitle)return Nt.formatResourceUpload(e);if(n===Ot.EntityType.Banner||n===Ot.EntityType.Thumbnail)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(e,t){var n=t.actionContext.workflowPhase;return n===Ot.WorkflowPhase.Start?Nt.getStartVideoUploadData(e):n===Ot.WorkflowPhase.Discard?Nt.getDiscardVideoUploadData(e):n===Ot.WorkflowPhase.Complete?Nt.getCompleteUploadData(e):void 0},getStartVideoUploadData:function(e){return e&&e.length?(e instanceof FileList&&(e=Array.from(e)),e.map((function(t){return{fileName:t.name,size:t.size,type:t.type,count:e.length}}))):[]},getDiscardVideoUploadData:function(e){var t=function(t){var n=t.file,r=n.type,o=n.name,i=n.status,a=n.cvUpload,c={fileName:o,count:Array.isArray(e)?e.length:1,type:r,status:i};return t.progress&&(c.progress=t.progress.toFixed(2)),a&&(c.uploadId=a.uploadId),c};return Array.isArray(e)?e.map((function(e){return t(e)})):[t(e)]},getCompleteUploadData:function(e){return e&&e.length?e.map((function(t){return{fileName:t.fileName,libraryId:t.libraryId,folderId:t.folderId,autoCaption:t.autoCaption,count:e.length}})):[]},formatResourceUpload:function(e){var t={id:e.id,name:e.name};return We(e.metadata)&&(t.type=e.metadata.type),t}};function It(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vt=(It(At={},Ot.UserAction.Navigate,kt),It(At,Ot.UserAction.Click,Ct),It(At,Ot.UserAction.Search,Ct),It(At,Ot.UserAction.InstantSearch,Ct),It(At,Ot.UserAction.Play,Ct),It(At,Ot.UserAction.Stream,Ct),It(At,Ot.UserAction.WebPlayerStream,Ct),It(At,Ot.UserAction.StreamRaw,Ct),It(At,Ot.UserAction.StreamProgress,Ct),It(At,Ot.UserAction.Rename,Ct),It(At,Ot.UserAction.Move,Ct),It(At,Ot.UserAction.Create,Ct),It(At,Ot.UserAction.Delete,Ct),It(At,Ot.UserAction.Associate,Ct),It(At,Ot.UserAction.Dissociate,Ct),It(At,Ot.UserAction.Filter,Ct),It(At,Ot.UserAction.Sort,Ct),It(At,Ot.UserAction.Approve,Ct),It(At,Ot.UserAction.Reject,Ct),It(At,Ot.UserAction.Disable,Ct),It(At,Ot.UserAction.Upload,Ct),It(At,Ot.UserAction.Download,kt),It(At,Ot.UserAction.SetAccess,Ct),It(At,Ot.UserAction.AddToLocalCache,kt),It(At,Ot.UserAction.Share,Ct),It(At,Ot.UserAction.Edit,Ct),It(At,Ot.UserAction.Suggest,Ct),It(At,Ot.UserAction.Favourite,Ct),It(At,Ot.UserAction.ResolveWarning,Ct),It(At,Ot.UserAction.DismissWarning,Ct),It(At,Ot.UserAction.EditAssoc,Ct),It(At,Ot.UserAction.Follow,Ct),It(At,Ot.UserAction.Print,Ct),It(At,Ot.UserAction.Copy,Ct),It(At,Ot.UserAction.Activate,Ct),It(At,Ot.UserAction.VerifyEmail,Ct),It(At,Ot.UserAction.ChangePassword,Ct),At),Bt=(It(Tt={},Ot.UserAction.Search,Et),It(Tt,Ot.UserAction.InstantSearch,Et),It(Tt,Ot.UserAction.Play,Et),It(Tt,Ot.UserAction.Stream,jt),It(Tt,Ot.UserAction.StreamRaw,Et),It(Tt,Ot.UserAction.StreamProgress,Et),It(Tt,Ot.UserAction.Click,Et),It(Tt,Ot.UserAction.Filter,Et),It(Tt,Ot.UserAction.Sort,Et),It(Tt,Ot.UserAction.SetAccess,Et),It(Tt,Ot.UserAction.Approve,Et),It(Tt,Ot.UserAction.Reject,Et),It(Tt,Ot.UserAction.Create,Et),It(Tt,Ot.UserAction.Delete,Et),It(Tt,Ot.UserAction.Rename,Et),It(Tt,Ot.UserAction.Move,Et),It(Tt,Ot.UserAction.Edit,Et),It(Tt,Ot.UserAction.Share,Et),It(Tt,Ot.UserAction.Disable,Et),It(Tt,Ot.UserAction.Suggest,Et),It(Tt,Ot.UserAction.Upload,Nt.getUploadData),It(Tt,Ot.UserAction.ResolveWarning,Et),It(Tt,Ot.UserAction.DismissWarning,Et),It(Tt,Ot.UserAction.Follow,Et),It(Tt,Ot.UserAction.Print,Et),It(Tt,Ot.UserAction.Copy,Et),Tt),Dt=(It(xt={},Ot.UserAction.Search,(function(){return"search"})),It(xt,Ot.UserAction.InstantSearch,(function(){return"search"})),It(xt,Ot.UserAction.Filter,(function(){return"filter"})),It(xt,Ot.UserAction.StreamRaw,(function(){return Ot.EntityType.Video})),xt),Mt={user:"target_user"},Ut=(It(Lt={},Ot.UserAction.StreamProgress,!0),It(Lt,Ot.UserAction.WebPlayerStream,!0),Lt),Ft={shouldLog:function(e){return!!Vt[e.type](e)},formatData:function(e){var t=Bt[e.type],n=Ye(t)?t(e.data,e):e.data;if(Ut[e.type])return n;var r=e.actionContext.entity;return Ye(Dt[e.type])&&(r=Dt[e.type](e)),Mt[r]&&(r=Mt[r]),It({},r,n)}};var Ht=n(94);function zt(e){return(zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yt(e,t,n){return t&&Wt(e.prototype,t),n&&Wt(e,n),e}function Gt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kt(e,t)}function Kt(e,t){return(Kt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$t(e);if(t){var o=$t(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zt(this,n)}}function Zt(e,t){return!t||"object"!==zt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $t(e){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xt=function(e){Gt(n,e);var t=Qt(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"channelName",get:function(){return a.b.DEFAULT}},{key:"appRoutes",get:function(){return{"":"index","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","error","notFound"]}},{key:"externalRoutes",get:function(){return{logout:"logOut"}}}]),n}(r.a.AppRouter),Jt=function(e){Gt(o,e);var t=Qt(o);function o(){return qt(this,o),t.apply(this,arguments)}return Yt(o,[{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.DEFAULT,showFullHeader:!1,showTopNav:!1,allowBanner:!1}}}},{key:"channelName",get:function(){return a.b.DEFAULT}},{key:"index",value:function(){r.a.AppLinkHelper.trigger({application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME},{replace:!0})}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new Ht.e)}},{key:"notFound",value:function(){var e=this;n.e(51).then(n.bind(null,1365)).then((function(t){var n=t.NotFoundView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"error",value:function(){var e=this;n.e(50).then(n.bind(null,1366)).then((function(t){var n=t.ErrorView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"devError",value:function(){var e=this;n.e(70).then(n.bind(null,1367)).then((function(t){var n=t.DevErrorView;e.layout.showChildView(a.n.CONTENT,new n)}))}}],[{key:"router",get:function(){return Xt}}]),o}(r.a.Application),en=n(95),tn=n(12),nn=n(191),rn=n(69);var on=n(223),an=n(57);function cn(e){return function(t,n){var o=b.a.getInstance(a.g.User),c=b.a.getInstance(a.g.Config);o.getCurrentUser((function(o){b.a.releaseInstance(a.g.User),i.contains(e,o.get("role"))?n(t):c.getConfig((function(t){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new on.a(e,an.a.urlBuilder(t.get("onlineUrl"),{loginPrompt:!1})))}))}))}}function un(e,t){var n=b.a.getInstance(a.g.User),o=b.a.getInstance(a.g.Config);n.getCurrentUser((function(n){b.a.releaseInstance(a.g.User),n.get("emailVerified")?t(e):o.getConfig((function(e){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new Ht.b(an.a.urlBuilder(e.get("onlineUrl"),{loginPrompt:!1})))}))}))}var sn=n(61);function ln(e,t){if(ot.a.isDevelopment)t(e);else{var n=b.a.getInstance(a.g.Settings);b.a.getInstance(a.g.User).getCurrentUser((function(o){b.a.releaseInstance(a.g.User),n.getSetting(o.get("customerId"),sn.a.CustomLibrariesBetaAccess,(function(n){(b.a.releaseInstance(a.g.Settings),n.get("value"))?t(e):b.a.getInstance(a.g.Config).getConfig((function(e){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new Ht.d(e.get("marketingSiteUrl")))}))}))}))}}var fn=n(49),pn=n(58),hn=n(295);function yn(e,t){var n=b.a.getInstance(a.g.MigrationVideo),o=e.appLink;n.getCustomerMetadata((function(n){if(b.a.releaseInstance(a.g.MigrationVideo),pn.a.noPublisher(n))return r.a.ErrorHelper.throw(new Ht.e),void r.a.AppLinkUtility.routingEnded();var c=pn.a.isInitialMigration(n),u=[a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE,a.a.MigrationWizard.BACKUP_DOWNLOAD,a.a.MigrationWizard.START_MIGRATION];if(!c&&i.contains(u,o.action))return r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new hn.a);var s=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_DOWNLOAD];if(pn.a.backupNotStarted(n)&&!i.contains(s,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME}),void r.a.AppLinkUtility.routingEnded();var l=[a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE];if(c&&pn.a.backupProcessing(n)&&!i.contains(l,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_PROGRESS}),void r.a.AppLinkUtility.routingEnded();var f=[a.a.MigrationWizard.BACKUP_COMPLETE,a.a.MigrationWizard.START_MIGRATION,a.a.MigrationWizard.SMART,a.a.MigrationWizard.SEARCH,a.a.MigrationWizard.SELECTED,a.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,a.a.MigrationWizard.VIDEOS_ADDED,a.a.MigrationWizard.PROGRESS,a.a.MigrationWizard.HOME];if(c&&pn.a.backupComplete(n)&&!i.contains(f,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.START_MIGRATION}),void r.a.AppLinkUtility.routingEnded();t(e)}))}function dn(e,t){if(ot.a.isDevelopment)t(e);else{var n=e.appLink;b.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(o){if(b.a.releaseInstance(a.g.MigrationVideo),pn.a.isCurrentlyMigratingAll(o)&&n.application!==a.b.MIGRATION_WIZARD&&n.action!==a.a.MigrationWizard.PROGRESS)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PROGRESS,args:[o.finalisationTask.get("id")],params:{initialMigration:!0}},{replace:!0}),void r.a.AppLinkUtility.routingEnded();if(pn.a.isInitialMigration(o)&&n.application!==a.b.MIGRATION_WIZARD)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME},{replace:!0}),void r.a.AppLinkUtility.routingEnded();var c=[a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS,a.a.MigrationWizard.PUBLISH_LIBRARY_COMPLETE];if(pn.a.isPublishingLibraries(o)&&!i.contains(c,n.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS},{replace:!0}),void r.a.AppLinkUtility.routingEnded();t(e)}))}}var bn=function(){var e=docCookies.getItem("clear-video-cache");e&&(b.a.getInstance(a.g.Video).clearVideoCache(),b.a.releaseInstance(a.g.Video),docCookies.removeItem("clear-video-cache","/",e))};function vn(e){return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wn(e,t,n){return t&&mn(e.prototype,t),n&&mn(e,n),e}function Sn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&On(e,t)}function On(e,t){return(On=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=En(e);if(t){var o=En(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kn(this,n)}}function kn(e,t){return!t||"object"!==vn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function En(e){return(En=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _n=function(e){Sn(n,e);var t=Cn(n);function n(){return gn(this,n),t.apply(this,arguments)}return wn(n,[{key:"channelName",get:function(){return a.b.LIBRARY_EDITOR}},{key:"appRoutes",get:function(){return{"manage/libraries(/)":"index","manage/libraries/:id(/)":"library","manage/libraries/folders/:id(/)":"folder","manage/libraries/series/:id(/)":"series","manage/libraries/videos/:id(/)":"videoDetails","manage/libraries/videos/:id/edit(/)":"editVideo","manage/libraries/videos/:id/edit/chapters(/)":"editVideoChapters","manage/libraries/videos/:id/edit/resources(/)":"editVideoResources"}}},{key:"appLinks",get:function(){return["newFolder","newSubFolder","renameFolder","moveFolder","deleteFolder","shareVideo","deleteVideos","moveVideos","manageVideoAccess","newLibrary","renameLibrary","deleteLibrary","editResource","uploadThumbnail","uploadBanner","downloadVideo","generatePdf","makeLibraryAvailable","downloadToLocalCache","suggestAnEdit","showPublisherVideo","editFolderImages","editLink","addToExchange"]}},{key:"filters",get:function(){return[ln,cn([rn.a.Admin]),un,dn]}}]),n}(r.a.AppRouter),Rn=function(e){Sn(o,e);var t=Cn(o);function o(){return gn(this,o),t.apply(this,arguments)}return wn(o,[{key:"initialize",value:function(){this.libraryDataService=b.a.getInstance(g.a.Library,this),b.a.getInstance(g.b.VideoDragDrop,this),b.a.getInstance(g.b.FolderDragDrop,this),this.pageVisibilityService=b.a.getInstance(g.b.PageVisibility,this),this.pageVisibilityService.addVisibilityChangeListener((function(e){e||bn()})),bn()}},{key:"name",get:function(){return"Library Editor Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.LIBRARY_EDITOR,showLeftNav:!0,selectedNavItem:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME}}}}},{key:"channelName",get:function(){return a.b.LIBRARY_EDITOR}},{key:"index",value:function(){var e=this;this.libraryDataService.deselectAll(),this.libraryDataService.getLibraries((function(t){var o=t.first();o?(e.renderLeftNav(o.id),r.a.AppLinkHelper.trigger({application:e.channelName,action:a.a.LibraryEditor.LIBRARY,args:[o.id]},{replace:!0})):(e.renderLeftNav(),n.e(72).then(n.bind(null,1368)).then((function(t){var n=new(0,t.NoLibraryView);e.layout.showChildView(a.n.CONTENT,n)})))}))}},{key:"library",value:function(e){var t=this;this.libraryDataService.deselectAll(),this.renderLeftNav(e),n.e(26).then(n.bind(null,1419)).then((function(n){var r=new(0,n.LibraryView)({libraryId:e});t.layout.showChildView(a.n.CONTENT,r)}))}},{key:"folder",value:function(e,t){var r=this,o=t.sort||tn.q.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o}),this.libraryDataService.setSelected(e),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1412)).then((function(n){var i=new(0,n.FolderView)({collectionIdentifier:new nn.a(e,tn.q.GetSortTypeFromName(o),t.cursor),analyticsOptions:{entity:Ot.EntityType.Folder}});r.layout.showChildView(a.n.CONTENT,i)})),this.libraryDataService.getLibraries((function(t){var n=fn.a.getLibrary(e,t);r.renderLeftNav(n.id)}))}},{key:"renameFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(40)]).then(n.bind(null,1369)).then((function(n){var r=new(0,n.RenameFolderView)({folderId:e,analyticsOptions:{location:Ot.LocationContext.Popup,actionType:Ot.UserAction.Rename,entity:Ot.EntityType.Folder,workflowPhase:Ot.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"moveFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(39)]).then(n.bind(null,1370)).then((function(n){var r=new(0,n.MoveFolderView)({folderId:e,analyticsOptions:{location:Ot.LocationContext.Popup,actionType:Ot.UserAction.Move,entity:Ot.EntityType.Folder,workflowPhase:Ot.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"newFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1371)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:e,routeToFolderOnCreate:!0,analyticsOptions:{location:Ot.LocationContext.Popup,actionType:Ot.UserAction.Create,entity:Ot.EntityType.Folder,workflowPhase:Ot.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"newSubFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1371)).then((function(n){var r=new(0,n.NewFolderView)({parentId:e,routeToFolderOnCreate:!0,analyticsOptions:{location:Ot.LocationContext.Popup,actionType:Ot.UserAction.Create,entity:Ot.EntityType.Folder,workflowPhase:Ot.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteFolder",value:function(e){var t=this;n.e(65).then(n.bind(null,1372)).then((function(n){var r=new(0,n.DeleteFolderView)({folderId:e,analyticsOptions:{location:Ot.LocationContext.Popup,actionType:Ot.UserAction.Delete,entity:Ot.EntityType.Folder,workflowPhase:Ot.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"series",value:function(e,t){var r=this,o=t.sort||tn.q.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o});var i=new nn.a(e,tn.q.GetSortTypeFromName(o),t.cursor);Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1412)).then((function(e){var t=new(0,e.SeriesView)({collectionIdentifier:i,analyticsOptions:{entity:Ot.EntityType.Series}});r.layout.showChildView(a.n.CONTENT,t)})),this.renderLeftNav()}},{key:"moveVideos",value:function(e,t){var r=this,o=e.split(",");Promise.all([n.e(0),n.e(33)]).then(n.bind(null,1373)).then((function(e){var n=new(0,e.MoveVideoView)({videoIds:o,folderId:t,analyticsOptions:{descriptor:o.length>1?Ot.OperationDescriptor.Bulk:Ot.OperationDescriptor.Single,location:Ot.LocationContext.Popup,actionType:Ot.UserAction.Move,entity:Ot.EntityType.Video,workflowPhase:Ot.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"deleteVideos",value:function(e,t,r){var o=this;n.e(66).then(n.bind(null,1374)).then((function(n){var i=new(0,n.DeleteVideosView)({folderId:e,videoIds:t.split(","),routeToFolderOnDelete:r&&r.routeToFolderOnDelete,analyticsOptions:{descriptor:t.length>1?Ot.OperationDescriptor.Bulk:Ot.OperationDescriptor.Single,location:Ot.LocationContext.Popup,actionType:Ot.UserAction.Delete,entity:Ot.EntityType.Video,workflowPhase:Ot.WorkflowPhase.Complete}});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"videoDetails",value:function(e){var t=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(25)]).then(n.bind(null,1414)).then((function(n){var r=new(0,n.VideoDetailsView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"shareVideo",value:function(e){var t=this;n.e(10).then(n.bind(null,1424)).then((function(n){var r=new(0,n.ShareView)({videoId:e.toString()});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1416)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"editVideo",value:function(e){var t=this;en.a.fromPageLoad()&&this.logEditPageLoad({id:+e},Ot.LocationContext.EditVideoDetails),Promise.all([n.e(9),n.e(13),n.e(27)]).then(n.bind(null,1413)).then((function(n){var r=new(0,n.EditVideoView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoChapters",value:function(e){var t=this;en.a.fromPageLoad()&&this.logEditPageLoad({id:+e},Ot.LocationContext.EditVideoChapters),Promise.all([n.e(2),n.e(1),n.e(30)]).then(n.bind(null,1375)).then((function(n){var r=new(0,n.EditChaptersView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoResources",value:function(e){var t=this;en.a.fromPageLoad()&&this.logEditPageLoad({id:+e},Ot.LocationContext.EditVideoResources),n.e(23).then(n.bind(null,1409)).then((function(n){var r=new(0,n.EditResourcesView)({videoId:e});t.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editResource",value:function(e,t){var r=this;n.e(35).then(n.bind(null,1376)).then((function(n){var o=new(0,n.EditResourceView)({videoId:e,resourceId:t,analyticsOptions:{location:Ot.LocationContext.Popup,actionType:Ot.UserAction.Edit,entity:Ot.EntityType.Resource,workflowPhase:Ot.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"newLibrary",value:function(){var e=this;n.e(36).then(n.bind(null,1377)).then((function(t){var n=new(0,t.NewLibraryView)({});e.layout.showChildView(a.n.POPUP,n)}))}},{key:"renameLibrary",value:function(e){var t=this;n.e(64).then(n.bind(null,1378)).then((function(n){var r=new(0,n.RenameLibraryView)({libraryId:e,analyticsOptions:{location:Ot.LocationContext.Popup,actionType:Ot.UserAction.Rename,entity:Ot.EntityType.Library,workflowPhase:Ot.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteLibrary",value:function(e){var t=this;n.e(71).then(n.bind(null,1379)).then((function(n){var r=new(0,n.DeleteLibraryView)({libraryId:e,analyticsOptions:{location:Ot.LocationContext.Popup,actionType:Ot.UserAction.Delete,entity:Ot.EntityType.Library,workflowPhase:Ot.WorkflowPhase.Complete}});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"generatePdf",value:function(e,t){var r=this,o=t.sort||tn.q.GetSortViewModel().get("sortName");n.e(48).then(n.bind(null,1380)).then((function(t){var n=new(0,t.GeneratePdfView)({collectionIdentifier:new nn.a(e,tn.q.GetSortTypeFromName(o))});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"uploadThumbnail",value:function(e){var t=this;Promise.all([n.e(11),n.e(53)]).then(n.bind(null,1381)).then((function(n){var r=new(0,n.ThumbnailUploadView)({videoId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"uploadBanner",value:function(e){var t=this;Promise.all([n.e(11),n.e(52)]).then(n.bind(null,1382)).then((function(n){var r=new(0,n.BannerUploadView)({folderId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"downloadVideo",value:function(e){var t=this;n.e(17).then(n.bind(null,1425)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:e});t.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1383)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(a.n.POPUP,n)}))}},{key:"downloadToLocalCache",value:function(e){var t=this;n.e(69).then(n.bind(null,1384)).then((function(n){var r=new(0,n.DownloadToLocalCacheView)({videoId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"showPublisherVideo",value:function(e){var t=this;n.e(16).then(n.bind(null,1385)).then((function(n){var r=n.ShowPublisherVideoPopupView;t.layout.showChildView(a.n.POPUP,new r({masterId:e}))}))}},{key:"editFolderImages",value:function(e){var t=this;Promise.all([n.e(11),n.e(37)]).then(n.bind(null,1420)).then((function(n){var r=new(0,n.EditFolderImagesView)({folderId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderLeftNav",value:function(e){var t=this;Promise.all([n.e(0),n.e(31)]).then(n.bind(null,1421)).then((function(n){var r=new(0,n.LeftNavigationView)({libraryId:e});t.layout.showChildView(a.n.LEFT_NAV,r)}))}},{key:"suggestAnEdit",value:function(e,t){var r=this;Promise.all([n.e(9),n.e(38)]).then(n.bind(null,1415)).then((function(n){var o=new(0,n.SuggestAnEditView)({videoId:e,metadata:t.metadata});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"editLink",value:function(e,t){var r=this;n.e(34).then(n.bind(null,1386)).then((function(n){var o=new(0,n.EditLinkView)({videoId:e,linkId:t,analyticsOptions:{location:Ot.LocationContext.Popup,actionType:Ot.UserAction.Edit,entity:Ot.EntityType.Link,workflowPhase:Ot.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"addToExchange",value:function(e){var t=this;Promise.all([n.e(0),n.e(15)]).then(n.bind(null,1387)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:e});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"logEditPageLoad",value:function(e,t){A.a.logUserAction(e,{actionType:Ot.UserAction.Edit,location:t,entity:Ot.EntityType.Video,descriptor:Ot.PageDescriptor.PageLoad,workflowPhase:Ot.WorkflowPhase.Start})}}],[{key:"router",get:function(){return _n}}]),o}(r.a.Application),Pn=n(117);function An(e){return(An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ln(e,t,n){return t&&xn(e.prototype,t),n&&xn(e,n),e}function jn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nn(e,t)}function Nn(e,t){return(Nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function In(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bn(e);if(t){var o=Bn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vn(this,n)}}function Vn(e,t){return!t||"object"!==An(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bn(e){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dn=function(e){jn(n,e);var t=In(n);function n(){return Tn(this,n),t.apply(this,arguments)}return Ln(n,[{key:"channelName",get:function(){return a.b.SEARCH}},{key:"appRoutes",get:function(){return{"manage/search(/)":"index"}}},{key:"appLinks",get:function(){return["shareVideo","manageVideoAccess","downloadVideo","makeLibraryAvailable","addToExchange"]}},{key:"filters",get:function(){return[ln,cn([rn.a.Admin]),un,dn]}}]),n}(r.a.AppRouter),Mn=function(e){jn(r,e);var t=In(r);function r(){return Tn(this,r),t.apply(this,arguments)}return Ln(r,[{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.SEARCH}}}},{key:"channelName",get:function(){return a.b.SEARCH}},{key:"index",value:function(e){var t=this;if(en.a.fromPageLoad()){var r=e&&e.query;this.logSearch(r)}Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(21)]).then(n.bind(null,1422)).then((function(n){var r=new(0,n.SearchView)({queryParams:e});t.layout.showChildView(a.n.CONTENT,r)}))}},{key:"shareVideo",value:function(e){var t=this;n.e(10).then(n.bind(null,1424)).then((function(n){var r=new(0,n.ShareView)({videoId:e.toString()});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1416)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"downloadVideo",value:function(e){var t=this;n.e(17).then(n.bind(null,1425)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:e});t.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"logSearch",value:function(e){if(e){var t=A.a.buildSearchEvent(e,Ot.PageDescriptor.PageLoad),n=t.data,r=t.action;Pn.a.log(Ot.UserAction.Search,n,r)}}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1383)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(a.n.POPUP,n)}))}},{key:"addToExchange",value:function(e){var t=this;Promise.all([n.e(0),n.e(15)]).then(n.bind(null,1387)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:e});t.layout.showChildView(a.n.POPUP,r)}))}}],[{key:"router",get:function(){return Dn}}]),r}(r.a.Application);function Un(e){return(Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zn(e,t,n){return t&&Hn(e.prototype,t),n&&Hn(e,n),e}function qn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wn(e,t)}function Wn(e,t){return(Wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kn(e);if(t){var o=Kn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gn(this,n)}}function Gn(e,t){return!t||"object"!==Un(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Kn(e){return(Kn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qn=function(e){qn(n,e);var t=Yn(n);function n(){return Fn(this,n),t.apply(this,arguments)}return zn(n,[{key:"channelName",get:function(){return a.b.VIDEO_ACCESS}},{key:"appRoutes",get:function(){return{"manage/video-access(/)":"index"}}},{key:"appLinks",get:function(){return["manageVideoAccess","makeLibraryAvailable"]}},{key:"filters",get:function(){return[ln,cn([rn.a.Admin]),un,dn]}}]),n}(r.a.AppRouter),Zn=function(e){qn(r,e);var t=Yn(r);function r(){return Fn(this,r),t.apply(this,arguments)}return zn(r,[{key:"name",get:function(){return"VideoAccessApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.VIDEO_ACCESS,selectedNavItem:{application:a.b.VIDEO_ACCESS,action:a.a.VideoAccess.HOME}}}}},{key:"channelName",get:function(){return a.b.VIDEO_ACCESS}},{key:"index",value:function(e){var t=this,r=i.isNaN(+e.page)?"1":e.page;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(24)]).then(n.bind(null,1388)).then((function(e){var n=e.RestrictedVideoListView;t.layout.showChildView(d.a.CONTENT,new n({page:r}))}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1416)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(d.a.POPUP,new r({videoId:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1383)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(d.a.POPUP,n)}))}}],[{key:"router",get:function(){return Qn}}]),r}(r.a.Application),$n=n(9);function Xn(e){return(Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tr(e,t,n){return t&&er(e.prototype,t),n&&er(e,n),e}function nr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rr(e,t)}function rr(e,t){return(rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ar(e);if(t){var o=ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ir(this,n)}}function ir(e,t){return!t||"object"!==Xn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ar(e){return(ar=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cr=function(e){nr(n,e);var t=or(n);function n(){return Jn(this,n),t.apply(this,arguments)}return tr(n,[{key:"channelName",get:function(){return a.b.STAFF_REQUESTS}},{key:"appRoutes",get:function(){return{"manage/staff-requests(/)":"index","manage/staff-requests/:id(/)":"editRequest"}}},{key:"appLinks",get:function(){return["approveRequest","rejectRequest","newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[ln,cn([rn.a.Admin]),un,(e=[{name:sn.a.StaffRequest,value:$n.k.StaffRequest}],function(t,n){var o=b.a.getInstance(a.g.User),i=b.a.getInstance(a.g.Settings);o.getCurrentUser((function(o){b.a.releaseInstance(a.g.User),i.getSettings(o.get("customerId"),null,(function(o){b.a.releaseInstance(a.g.Settings);var i=!1;e.forEach((function(e){var t=o.findWhere({name:e.name});if(!t||t.get("value")!==e.value)return i=!0,r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new Ht.a(e.name))})),i||n(t)}))}))}),dn];var e}}]),n}(r.a.AppRouter),ur=function(e){nr(r,e);var t=or(r);function r(){return Jn(this,r),t.apply(this,arguments)}return tr(r,[{key:"name",get:function(){return"StaffRequestsApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.STAFF_REQUESTS,selectedNavItem:{application:a.b.STAFF_REQUESTS,action:a.a.StaffRequests.HOME}}}}},{key:"channelName",get:function(){return a.b.STAFF_REQUESTS}},{key:"index",value:function(){var e=this;Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1417)).then((function(t){var n=t.StaffRequestsView;e.layout.showChildView(d.a.CONTENT,new n({}))}))}},{key:"editRequest",value:function(e,t){var r=this;t=t||{},Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1417)).then((function(n){var o=n.StaffRequestsView;r.layout.showChildView(d.a.CONTENT,new o({requestId:e,referrer:t.referrer}))}))}},{key:"approveRequest",value:function(e,t,r){var o=this;this.editRequest(e),e&&t&&r&&n.e(68).then(n.bind(null,1389)).then((function(n){var i=n.ApproveStaffRequestView;o.layout.showChildView(d.a.POPUP,new i({requestId:e,libraryId:t,folderId:r}))}))}},{key:"rejectRequest",value:function(e){var t=this;this.editRequest(e),n.e(60).then(n.bind(null,1390)).then((function(n){var r=n.RejectStaffRequestView;t.layout.showChildView(d.a.POPUP,new r({requestId:e}))}))}},{key:"newFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1371)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:e,routeToFolderOnCreate:!1});t.layout.showChildView(d.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1383)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(d.a.POPUP,n)}))}}],[{key:"router",get:function(){return cr}}]),r}(r.a.Application),sr=n(293),lr=n(27);function fr(e){return(fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yr(e,t,n){return t&&hr(e.prototype,t),n&&hr(e,n),e}function dr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&br(e,t)}function br(e,t){return(br=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mr(e);if(t){var o=mr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}function gr(e,t){return!t||"object"!==fr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mr(e){return(mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wr=function(e){dr(n,e);var t=vr(n);function n(){return pr(this,n),t.apply(this,arguments)}return yr(n,[{key:"channelName",get:function(){return a.b.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"manage/content-updates(/)":"index","manage/content-updates/awaiting-review(/)":"awaitingReview","manage/content-updates/past-releases(/)":"pastReleases"}}},{key:"appLinks",get:function(){return["shareVideo","disableReview","generatePdf","manageVideoAccess","addToLibrary","makeLibraryAvailable"]}},{key:"filters",get:function(){return[ln,cn([$n.m.Admin]),un,dn]}}]),n}(r.a.AppRouter),Sr=function(e){dr(o,e);var t=vr(o);function o(){return pr(this,o),t.apply(this,arguments)}return yr(o,[{key:"name",get:function(){return"ContentUpdatesApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.CONTENT_UPDATES,selectedNavItem:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.AWAITING_REVIEW}}}}},{key:"channelName",get:function(){return a.b.CONTENT_UPDATES}},{key:"index",value:function(){r.a.AppLinkHelper.trigger({application:this.channelName,action:a.a.ContentUpdates.AWAITING_REVIEW},{replace:!0})}},{key:"awaitingReview",value:function(){var e=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(22)]).then(n.bind(null,1391)).then((function(t){var n=t.AwaitingReviewView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"pastReleases",value:function(e){var t,r,o,c=this,u=e[lr.a.ReleaseDate]||sr.e.queryString,s=(t={},r=lr.a.ReleaseDate,o=u,r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t);this.setDefaultQueryParams(s),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(20)]).then(n.bind(null,1418)).then((function(t){var n=t.PastReleasesView;c.layout.showChildView(a.n.CONTENT,new n({queryParams:i.extend({},e,s)}))}))}},{key:"generatePdf",value:function(e){var t=this;n.e(43).then(n.bind(null,1392)).then((function(n){var r=n.GeneratePastReleasesPdfView;t.layout.showChildView(a.n.POPUP,new r({librariesQueryString:e[lr.a.Libraries],dateQueryString:e[lr.a.ReleaseDate],subjectQueryString:e[lr.a.Subjects]}))}))}},{key:"shareVideo",value:function(e){var t=this;n.e(10).then(n.bind(null,1424)).then((function(n){var r=n.ShareView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"disableReview",value:function(){var e=this;n.e(63).then(n.bind(null,1393)).then((function(t){var n=t.DisableReviewView;e.layout.showChildView(a.n.POPUP,new n)}))}},{key:"manageVideoAccess",value:function(e){var t=this;n.e(8).then(n.bind(null,1416)).then((function(n){var r=n.RestrictAccessView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"addToLibrary",value:function(e){var t=this;Promise.all([n.e(0),n.e(32)]).then(n.bind(null,1394)).then((function(n){var r=n.AddToLibraryView;t.layout.showChildView(a.n.POPUP,new r({videoId:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1383)).then((function(t){var n=t.PublishLibraryView;e.layout.showChildView(a.n.POPUP,new n)}))}}],[{key:"router",get:function(){return wr}}]),o}(r.a.Application);function Or(e){return(Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Er(e,t,n){return t&&kr(e.prototype,t),n&&kr(e,n),e}function _r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rr(e,t)}function Rr(e,t){return(Rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tr(e);if(t){var o=Tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ar(this,n)}}function Ar(e,t){return!t||"object"!==Or(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Tr(e){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xr=function(e){_r(n,e);var t=Pr(n);function n(){return Cr(this,n),t.apply(this,arguments)}return Er(n,[{key:"channelName",get:function(){return a.b.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"manage/notifications(/)":"index"}}},{key:"appLinks",get:function(){return["makeLibraryAvailable"]}},{key:"filters",get:function(){return[ln,cn([rn.a.Admin]),un,dn]}}]),n}(r.a.AppRouter),Lr=function(e){_r(r,e);var t=Pr(r);function r(){return Cr(this,r),t.apply(this,arguments)}return Er(r,[{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.NOTIFICATIONS}}}},{key:"channelName",get:function(){return a.b.NOTIFICATIONS}},{key:"index",value:function(e){var t=this;n.e(49).then(n.bind(null,1395)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(a.n.CONTENT,new r({params:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1383)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(a.n.POPUP,n)}))}}],[{key:"router",get:function(){return xr}}]),r}(r.a.Application);function jr(e){return(jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vr(e,t,n){return t&&Ir(e.prototype,t),n&&Ir(e,n),e}function Br(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dr(e,t)}function Dr(e,t){return(Dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fr(e);if(t){var o=Fr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ur(this,n)}}function Ur(e,t){return!t||"object"!==jr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fr(e){return(Fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Hr=function(e){Br(n,e);var t=Mr(n);function n(){return Nr(this,n),t.apply(this,arguments)}return Vr(n,[{key:"channelName",get:function(){return a.b.UPLOAD}},{key:"appRoutes",get:function(){return{"manage/upload(/)":"fileSelection","manage/upload/details(/)":"uploadDetails","manage/upload/complete(/)":"uploadComplete"}}},{key:"appLinks",get:function(){return["newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[ln,cn([rn.a.Admin]),un,dn]}}]),n}(r.a.AppRouter),zr=function(e){Br(r,e);var t=Mr(r);function r(){return Nr(this,r),t.apply(this,arguments)}return Vr(r,[{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.UPLOAD}}}},{key:"initialize",value:function(){this.videoUploadService=b.a.getInstance(a.x.VideoUpload,this)}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return a.b.UPLOAD}},{key:"fileSelection",value:function(){var e=this;n.e(61).then(n.bind(null,1396)).then((function(t){var n=new(0,t.FileSelectView);e.layout.showChildView(d.a.CONTENT,n)}))}},{key:"uploadDetails",value:function(e){var t=this;this.videoUploadService.isUploading()?Promise.all([n.e(0),n.e(9),n.e(13),n.e(29)]).then(n.bind(null,1411)).then((function(n){var r=new(0,n.UploadVideosView)({folderId:e.folderId,analyticsOptions:{actionType:Ot.UserAction.Upload,entity:Ot.EntityType.Video,location:Ot.LocationContext.VideoUpload}});t.layout.showChildView(d.a.CONTENT,r)})):this.fileSelection()}},{key:"uploadComplete",value:function(){var e=this;this.videoUploadService.isUploading()?n.e(62).then(n.bind(null,1397)).then((function(t){var n=new(0,t.UploadCompleteView);e.layout.showChildView(d.a.CONTENT,n)})):this.fileSelection()}},{key:"newFolder",value:function(e){var t=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1371)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:e,routeToFolderOnCreate:!1});t.layout.showChildView(d.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1383)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(d.a.POPUP,n)}))}}],[{key:"router",get:function(){return Hr}}]),r}(r.a.Application),qr=n(3),Wr=/^clickviewactasuser.*/i,Yr={handleMismatch:function(){b.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(e){(b.a.releaseInstance(a.g.MigrationVideo),pn.a.isInitialMigration(e))&&(e.keyContact&&e.keyContact.get("fullName")&&(Wr.test(e.keyContact.get("username"))||b.a.getInstance(a.g.User).getCurrentUser((function(t){b.a.releaseInstance(a.g.User),e.keyContact.get("userId")!==t.get("id")&&Yr.showDialog(e)}))))}))},showDialog:function(e){new tn.d({title:qr.a.getPhrase("migrationWizard.utils","keyContactHeading"),text:qr.a.getPhrase("migrationWizard.utils","keyContactBody",{fullName:e.keyContact.get("fullName")}),buttons:[{text:qr.a.getPhrase("migrationWizard.utils","continue"),className:"btn btn-primary",success:!0},{text:qr.a.getPhrase("migrationWizard.utils","cancel"),className:"btn btn-link",close:!0}]}).render().fail((function(){b.a.getInstance(a.g.Config).getConfig((function(e){b.a.releaseInstance(a.g.Config),window.location=an.a.urlBuilder(e.get("onlineUrl"),{loginPrompt:!1})}))}))}};function Gr(e){return(Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zr(e,t,n){return t&&Qr(e.prototype,t),n&&Qr(e,n),e}function $r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xr(e,t)}function Xr(e,t){return(Xr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=to(e);if(t){var o=to(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eo(this,n)}}function eo(e,t){return!t||"object"!==Gr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var no=function(e){$r(n,e);var t=Jr(n);function n(){return Kr(this,n),t.apply(this,arguments)}return Zr(n,[{key:"channelName",get:function(){return a.b.MIGRATION_WIZARD}},{key:"appRoutes",get:function(){return{"manage/publisher-archive(/)":"index","manage/publisher-backup(/)":"backupWelcome","manage/publisher-backup/download(/)":"backupDownload","manage/publisher-archive/migrate(/)":"startMigration","manage/publisher-archive/search(/)":"search","manage/publisher-archive/folders/:id(/)":"folder","manage/publisher-archive/progress/:id(/)":"progress","manage/publish-library/progress":"publishLibraryProgress","manage/manual-review":"migrationErrors"}}},{key:"appLinks",get:function(){return["backupProgress","backupComplete","publishLibraryComplete","smart","selected","videosAdded","showPublisherVideo","makeLibraryAvailable","remigrateVideo","generateCsvReport"]}},{key:"filters",get:function(){return ot.a.isDevelopment?[un]:[ln,un,yn]}}]),n}(r.a.AppRouter),ro=function(e){$r(o,e);var t=Jr(o);function o(){return Kr(this,o),t.apply(this,arguments)}return Zr(o,[{key:"initialize",value:function(){this.migrationVideoDataService=b.a.getInstance(a.g.MigrationVideo,this)}},{key:"name",get:function(){return"MigrationWizardApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.MIGRATION_WIZARD,showFullHeader:!1,centredContent:!0,showTopNav:!1,allowFileDrop:!1}}}},{key:"channelName",get:function(){return a.b.MIGRATION_WIZARD}},{key:"index",value:function(e){e.folder?this.folder(e.folder):r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.SMART},{replace:!0})}},{key:"backupWelcome",value:function(){var e=this;n.e(57).then(n.bind(null,1398)).then((function(t){var n=t.PublisherBackupWelcomeView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupDownload",value:function(){var e=this;n.e(58).then(n.bind(null,1399)).then((function(t){var n=t.PublisherBackupView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupProgress",value:function(){var e=this;n.e(41).then(n.bind(null,1400)).then((function(t){var n=t.PublisherBackupProgressView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupComplete",value:function(){var e=this;n.e(56).then(n.bind(null,1401)).then((function(t){var n=t.PublisherBackupCompleteView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"startMigration",value:function(){var e=this;n.e(46).then(n.bind(null,1402)).then((function(t){var n=t.StartView;e.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"smart",value:function(){this.migrationVideoDataService.deselectAll(),this.renderSmartMigration()}},{key:"folder",value:function(e){this.migrationVideoDataService.setSelected(e),this.renderSmartMigration(e)}},{key:"search",value:function(e){this.renderSmartMigration(void 0,e.term)}},{key:"progress",value:function(e,t){var r=this;Promise.all([n.e(6),n.e(44)]).then(n.bind(null,1403)).then((function(n){var o=n.MigrationProgressView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:e,firstTime:!!t.initialMigration}))}))}},{key:"videosAdded",value:function(e,t){var r=this;n.e(59).then(n.bind(null,1404)).then((function(n){var o=n.VideosAddedView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:e,firstTime:!!t.initialMigration}))}))}},{key:"selected",value:function(e){var t=this;Promise.all([n.e(6),n.e(45)]).then(n.bind(null,1405)).then((function(n){var r=n.SelectedVideosView;t.layout.showChildView(a.n.CONTENT,new r({previousFolderChord:e}))}))}},{key:"showPublisherVideo",value:function(e){var t=this;n.e(16).then(n.bind(null,1385)).then((function(n){var r=n.ShowPublisherVideoPopupView;t.layout.showChildView(a.n.POPUP,new r({trackingCode:e}))}))}},{key:"makeLibraryAvailable",value:function(){var e=this;n.e(4).then(n.bind(null,1383)).then((function(t){var n=new(0,t.PublishLibraryView);e.layout.showChildView(a.n.POPUP,n)}))}},{key:"remigrateVideo",value:function(e,t,r){var o=this;n.e(67).then(n.bind(null,1406)).then((function(n){var i=new(0,n.RemigrateVideoView)({videoId:e,masterId:t,folderChord:r});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"publishLibraryProgress",value:function(){var e=this;Promise.all([n.e(6),n.e(55)]).then(n.bind(null,1426)).then((function(t){var n=new(0,t.PublishLibraryProgressView);e.layout.showChildView(a.n.CONTENT,n)}))}},{key:"publishLibraryComplete",value:function(){var e=this;n.e(54).then(n.bind(null,1407)).then((function(t){var n=new(0,t.PublishLibraryCompleteView);e.layout.showChildView(a.n.CONTENT,n)}))}},{key:"migrationErrors",value:function(){var e=this;Promise.all([n.e(2),n.e(1),n.e(6),n.e(28)]).then(n.bind(null,1410)).then((function(t){var n=new(0,t.MigrationErrorView);e.layout.showChildView(a.n.CONTENT,n)}))}},{key:"generateCsvReport",value:function(e){var t=this;n.e(47).then(n.bind(null,1408)).then((function(n){var r=new(0,n.GenerateCsvReportView)({options:e.options});t.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderSmartMigration",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(6),n.e(42)]).then(n.bind(null,1423)).then((function(n){var o=new(0,n.SmartMigrationView)({folderChord:e,searchTerm:t});r.layout.showChildView(a.n.CONTENT,o)}))}},{key:"onLayoutLoaded",value:function(){var e=this;this.layoutLoaded||Yr.handleMismatch(),this.layoutLoaded=!0,this.migrationVideoDataService.getCustomerMetadata((function(t){pn.a.isInitialMigration(t)||(pn.a.isCurrentlyMigratingAll(t)?Promise.resolve().then(n.bind(null,748)).then((function(t){var n=t.PageHeaderComponent;e.layout.showChildView(a.n.PAGE_HEADER,new n({onlyShowProfile:!0}))})):Promise.resolve().then(n.bind(null,748)).then((function(t){var r=t.PageHeaderComponent;e.layout.showChildView(a.n.PAGE_HEADER,new r({onlyShowProfile:!0})),Promise.resolve().then(n.bind(null,749)).then((function(t){var n=t.TopNavigationView;e.layout.showChildView(a.n.TOP_NAV,new n({selected:{application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.HOME}}))}))})))}))}}],[{key:"router",get:function(){return no}}]),o}(r.a.Application);var oo=n(119),io=n(68),ao=n(11);function co(e){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uo(e){return function(e){if(Array.isArray(e))return so(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return so(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return so(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function so(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fo(e,t){return(fo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function po(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yo(e);if(t){var o=yo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ho(this,n)}}function ho(e,t){return!t||"object"!==co(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yo(e){return(yo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fo(e,t)}(a,e);var t,n,r,o=po(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=a,(n=[{key:"name",get:function(){return oo.a.Fifo}},{key:"removeCacheKey",value:function(e){this.cachedkeys=i.without(this.cachedkeys,e)}},{key:"has",value:function(e){return!!this.cache[e]}},{key:"get",value:function(e){return this.cache[e]}},{key:"set",value:function(e,t){e&&t||ao.c.throw(new O.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}},{key:"getOrSet",value:function(e,t){if(this.has(e))return this.get(e);var n=t();return this.set(e,n),n}},{key:"remove",value:function(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}},{key:"invalidate",value:function(e,t){var n=this,r=i.object(this.cachedkeys,this.cachedkeys),o=[];i.each(e,(function(e){var t;r[e]&&o.push(e);var n=new RegExp(e,"i"),a=i.filter(r,(function(e){return n.test(e)}));(t=o).push.apply(t,uo(a))})),o.length&&(o=i.uniq(o),i.each(o,(function(e){delete n.cache[e],i.isFunction(t)&&t(e)})),this.cachedkeys=i.without.apply(i,[this.cachedkeys].concat(uo(o))))}}])&&lo(t.prototype,n),r&&lo(t,r),a}(io.a);var vo,go=n(148);!function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(vo||(vo={}));var mo=n(113),wo=function(e,t,n){if(!n||!n.errorCode)return e[t];var r="".concat(n.errorCode);return n.errorSubCode&&(r+=".".concat(n.errorSubCode)),e[r]||e[t]};function So(e){return(So="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Co(e,t){return(Co=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_o(e);if(t){var o=_o(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Eo(this,n)}}function Eo(e,t){return!t||"object"!==So(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _o(e){return(_o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ro=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Co(e,t)}(a,e);var t,n,r,o=ko(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=o.call(this,e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),t.successMiddleware={},t.errorMiddleware={},t.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,t.defaultErrorMessageKey=e.defaultErrorMessageKey,t}return t=a,(n=[{key:"name",get:function(){return v.a.Ajax}},{key:"parseUrl",value:function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}},{key:"makeHttps",value:function(e){var t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}},{key:"base",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||(n=vo.GET);var o=i.defaults(r,{forceHttps:!1}),a={url:e,method:n,type:n};t&&(a.data=n===vo.POST||n===vo.PUT?JSON.stringify(t):t),o.forceHttps&&(a.url=this.makeHttps(a.url)),o.traditional&&(a.traditional=o.traditional);var c=$.ajax(a);return i.keys(this.successMiddleware).length&&c.done(i.values(this.successMiddleware)),i.keys(this.errorMiddleware).length&&c.fail(i.values(this.errorMiddleware)),c}},{key:"create",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,vo.POST).done((function(e,t,n){return r.trigger(o,e,t,n)})).fail((function(e,t,n){return r.trigger(i,e,t,n)}))}},{key:"read",value:function(e,t){var n=t.channel,r=t.successEvent,o=t.errorEvent;this.base(e,null,vo.GET).done((function(e,t,o){n.trigger(r,e,t,o)})).fail((function(e,t,r){n.trigger(o,e,t,r)}))}},{key:"update",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,vo.PUT).done((function(e,t,n){return r.trigger(o,e,t,n)})).fail((function(e,t,n){return r.trigger(i,e,t,n)}))}},{key:"delete",value:function(e,t){var n=t.channel,r=t.successEvent,o=t.errorEvent;this.base(e,null,vo.DELETE).done((function(e,t,o){return n.trigger(r,e,t,o)})).fail((function(e,t,r){return n.trigger(o,e,t,r)}))}},{key:"useMiddleware",value:function(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}},{key:"useErrorMiddleware",value:function(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}},{key:"parseError",value:function(e){var t=e.responseJSON,n=go.a;switch(n.code=e.status,n.message=wo(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=mo.a.BadRequest;break;case 401:n.type=mo.a.Unauthorized;break;case 403:n.type=mo.a.Forbidden;break;case 404:n.type=mo.a.NotFound;break;case 500:n.type=mo.a.InternalServer}return n}}])&&Oo(t.prototype,n),r&&Oo(t,r),a}(B.Object),Po=n(179);var Ao=n(52),To=n(13),xo=n(53),Lo=n(24),jo=n(22);function No(e){return(No="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Io(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vo(e,t){return(Vo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mo(e);if(t){var o=Mo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Do(this,n)}}function Do(e,t){return!t||"object"!==No(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mo(e){return(Mo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Uo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vo(e,t)}(n,e);var t=Bo(n);function n(){return Io(this,n),t.apply(this,arguments)}return n}(r.a.Model);function Fo(e){return(Fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ho(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qo(e,t){return(qo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Go(e);if(t){var o=Go(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yo(this,n)}}function Yo(e,t){return!t||"object"!==Fo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Go(e){return(Go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ko=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qo(e,t)}(i,e);var t,n,r,o=Wo(i);function i(){return Ho(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return jo.a.NotificationSocket}},{key:"channelName",get:function(){return Lo.b.NOTIFICATIONS_SOCKET}},{key:"receiveLatestNotifications",value:function(e){return this.get({callback:e,formatData:function(e){return new Uo(e)},resource:"notify",eventPrefix:"".concat(xo.a.NOTIFICATIONS,":new")})}},{key:"receiveUnreadNotificationCount",value:function(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:"".concat(xo.a.NOTIFICATIONS,":count")})}}])&&zo(t.prototype,n),r&&zo(t,r),i}(To.a),Qo=n(121);function Zo(e){return(Zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jo(e,t){return(Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ei(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ni(e);if(t){var o=ni(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ti(this,n)}}function ti(e,t){return!t||"object"!==Zo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ni(e){return(ni=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ri=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jo(e,t)}(i,e);var t,n,r,o=ei(i);function i(){return $o(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return Uo}},{key:"parse",value:function(e){return e.data||e}}])&&Xo(t.prototype,n),r&&Xo(t,r),i}(r.a.Collection),oi=n(96);function ii(e){return(ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ci(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ui(e,t){return(ui=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function si(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fi(e);if(t){var o=fi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return li(this,n)}}function li(e,t){return!t||"object"!==ii(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fi(e){return(fi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pi=function(e,t){var n="/api/domain/v2/objects/".concat(e,"/notifications?query={orderbydesc:datecreated}");if(!t)return n;var r=t.limit,o=t.cursor,i=t.before,a=[],c=an.a.buildFilter({limit:r,before:i});return c&&a.push("filter=".concat(c)),o&&a.push("cursor=".concat(o)),a.length?"".concat(n,"&").concat(a.join("&")):n},hi=function(e){return"/api/notifications/v1/notifications/".concat(e)},yi="/api/notifications/v1/notifications",di="/api/domain/v1/notifications",bi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ui(e,t)}(i,e);var t,n,r,o=si(i);function i(){return ai(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return jo.a.Notification}},{key:"channelName",get:function(){return Lo.b.NOTIFICATIONS}},{key:"lang",get:function(){return"notifications.services"}},{key:"getNotifications",value:function(e,t,n,r){return this.get({resource:pi(e,t),expiryTime:oi.a.STANDARD,eventPrefix:n,formatData:function(e){return new ri(e,{parse:!0})},callback:r})}},{key:"markRead",value:function(e,t){return this.update({callback:t,data:{notificationStatus:Qo.a.Read},resource:hi(e),eventPrefix:"".concat(xo.a.NOTIFICATIONS,":read")})}},{key:"markSeen",value:function(e){var t=ht().utc().toISOString();return this.update({callback:e,data:{notificationStatus:Qo.a.Seen},resource:"".concat(yi,"?to=").concat(t,"¬ificationStatus=").concat(Qo.a.Received),eventPrefix:"".concat(xo.a.NOTIFICATIONS,":seen")})}},{key:"getNotificationsCursors",value:function(e){return this.getCursors(e)}},{key:"suggestEdit",value:function(e,t){return this.create({resource:"".concat(di),eventPrefix:"".concat(xo.a.SUGGEST_EDIT),callback:t,data:e,successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}}])&&ci(t.prototype,n),r&&ci(t,r),i}(To.a),vi="locale",gi="phrases";function mi(e){return(mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oi(e,t){return(Oi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ci(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ei(e);if(t){var o=Ei(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ki(this,n)}}function ki(e,t){return!t||"object"!==mi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ei(e){return(Ei=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oi(e,t)}(a,e);var t,n,r,o=Ci(a);function a(){return wi(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"name",get:function(){return jo.a.Language}},{key:"channelName",get:function(){return Lo.b.LANGUAGE}},{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:xo.a.LOCALE,expiryTime:oi.a.STANDARD,bootstrapName:vi,callback:function(n){t.locale=n,t.phrases&&i.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:xo.a.PHRASES,expiryTime:oi.a.STANDARD,bootstrapName:gi,callback:function(n){t.phrases=n,t.locale&&i.isFunction(e)&&e(t)}})}}])&&Si(t.prototype,n),r&&Si(t,r),a}(To.a),Ri=n(15),Pi=n(104),Ai=n.n(Pi),Ti=n(705),xi=n.n(Ti);function Li(e){return(Li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ji(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ni(e,t){return(Ni=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ii(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bi(e);if(t){var o=Bi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vi(this,n)}}function Vi(e,t){return!t||"object"!==Li(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bi(e){return(Bi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Di=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ni(e,t)}(a,e);var t,n,r,i=Ii(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"AlertItemComponent"}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){return"bg-white mt-2 p-2 ".concat(Ai.a.alertItem," show clearfix")}},{key:"template",get:function(){return xi.a}},{key:"events",value:function(){return{"click .close":"onClickClose","click a":"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave"}}},{key:"defaults",get:function(){return{timeout:5e3}}},{key:"appLinks",get:function(){if(this.model.get("appLink"))return{a:this.model.get("appLink")}}},{key:"onClick",value:function(){return this.forceFade=!0,this.triggerRemoval(),!0}},{key:"onClickClose",value:function(e){return e.stopPropagation(),this.forceFade=!0,this.triggerRemoval(),!1}},{key:"onMouseEnter",value:function(){this.forceFade||this.clearTimeout()}},{key:"onMouseLeave",value:function(){this.forceFade||this.startTimeout()}},{key:"removeAlert",value:function(){this.clearingTimeout&&o.Radio.channel(this.options.channelName).trigger("remove:alert",this.model.get("id"))}},{key:"triggerRemoval",value:function(){var e=this;return this.$el.addClass(Ai.a.removing),this.$el.addClass(Ai.a.removed),this.clearingTimeout=!0,window.setTimeout((function(){return e.removeAlert()}),1e3),!1}},{key:"startTimeout",value:function(){var e=this,t=this.model.get("timeout")||this.options.timeout;t&&(this.currentTimeoutIndex&&this.clearTimeout(),this.currentTimeoutIndex=window.setTimeout((function(){return e.triggerRemoval()}),t))}},{key:"clearTimeout",value:function(){window.clearTimeout(this.currentTimeoutIndex),this.removeAlertFadeClasses()}},{key:"removeAlertFadeClasses",value:function(){this.$el.removeClass(Ai.a.removing),this.$el.removeClass(Ai.a.removed),this.clearingTimeout=!1}},{key:"getTypeSvg",value:function(){switch(this.model.get("type")){case Ao.a.Success:return Ri.a.getSvg(Ri.b.CheckCircleOutline);case Ao.a.Fail:case Ao.a.Warning:return Ri.a.getSvg(Ri.b.Warning);case Ao.a.Info:default:return Ri.a.getSvg(Ri.b.Info)}}},{key:"getTypeClass",value:function(){var e=this.model.get("type").toLowerCase();return"text-".concat(e)}},{key:"viewOptions",value:function(){return{styles:Ai.a,typeSvg:this.getTypeSvg(),svgClass:this.getTypeClass()}}},{key:"onRender",value:function(){this.resetClassName(),this.startTimeout()}},{key:"onBeforeDestroy",value:function(){this.removeAlertFadeClasses()}}])&&ji(t.prototype,n),r&&ji(t,r),a}(r.a.Component);function Mi(e){return(Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ui(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hi(e,t){return(Hi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wi(e);if(t){var o=Wi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qi(this,n)}}function qi(e,t){return!t||"object"!==Mi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wi(e){return(Wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yi,Gi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hi(e,t)}(i,e);var t,n,r,o=zi(i);function i(){return Ui(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"AlertComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"".concat(Ai.a.alertList," alert-list")}},{key:"channelName",get:function(){return C.a.ALERT}},{key:"childView",get:function(){return Di}},{key:"childViewOptions",get:function(){return{channelName:this.channelName}}}])&&Fi(t.prototype,n),r&&Fi(t,r),i}(r.a.ComponentCollection);function Ki(e){return(Ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $i(e,t,n){return($i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ta(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Xi(e,t){return(Xi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ta(e);if(t){var o=ta(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ea(this,n)}}function ea(e,t){return!t||"object"!==Ki(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ta(e){return(ta=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Success="Success! š",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(Yi||(Yi={}));var na=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xi(e,t)}(i,e);var t,n,r,o=Ji(i);function i(){return Qi(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return a.x.Alerts}},{key:"success",value:function(e){return $i(ta(i.prototype),"success",this).call(this,e)}},{key:"error",value:function(e){return $i(ta(i.prototype),"error",this).call(this,e)}}])&&Zi(t.prototype,n),r&&Zi(t,r),i}(Ao.b),ra=n(188),oa=n(134),ia=n(235),aa=n(18);function ca(e){return(ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function la(e,t){return(la=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ha(e);if(t){var o=ha(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pa(this,n)}}function pa(e,t){return!t||"object"!==ca(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ha(e){return(ha=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ya=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&la(e,t)}(i,e);var t,n,r,o=fa(i);function i(){return ua(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return a.g.Customer}},{key:"channelName",get:function(){return a.e.CUSTOMER}},{key:"getCustomer",value:function(e,t){return this.get({resource:"/api/domain/v2/objects/".concat(e),formatData:function(e){return new ia.a(e)},eventPrefix:a.f.CUSTOMER,expiryTime:aa.a.STANDARD,callback:t})}}])&&sa(t.prototype,n),r&&sa(t,r),i}(To.a),da=n(233);function ba(e){return(ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function va(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ga(e,t){return(ga=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ma(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sa(e);if(t){var o=Sa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wa(this,n)}}function wa(e,t){return!t||"object"!==ba(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sa(e){return(Sa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ga(e,t)}(n,e);var t=ma(n);function n(){return va(this,n),t.apply(this,arguments)}return n}(r.a.Model);function Ca(e){return(Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ka(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _a(e,t){return(_a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ra(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Aa(e);if(t){var o=Aa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pa(this,n)}}function Pa(e,t){return!t||"object"!==Ca(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Aa(e){return(Aa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ta=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_a(e,t)}(i,e);var t,n,r,o=Ra(i);function i(){return ka(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return Oa}}])&&Ea(t.prototype,n),r&&Ea(t,r),i}(r.a.Collection);function xa(e){return(xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function La(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ja(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Na(e,t){return(Na=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ia(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ba(e);if(t){var o=Ba(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Va(this,n)}}function Va(e,t){return!t||"object"!==xa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ba(e){return(Ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Da=function(e,t){var n="/api/domain/v3/settings/".concat(e);return da.a[t]&&(n+="?kind=".concat(t)),n},Ma=function(e){return"/api/domain/v3/settings/".concat(e)},Ua=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Na(e,t)}(c,e);var t,n,r,o=Ia(c);function c(){return La(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return g.a.Settings}},{key:"channelName",get:function(){return a.e.SETTINGS}},{key:"getSetting",value:function(e,t,n){var r=i.isFunction(n)?function(e){var r=e.findWhere({name:t});i.isFunction(n)&&n(r)}:null,o=this.getSettings(e,null,r);return o?o.findWhere({name:t}):null}},{key:"getSettings",value:function(e,t,n){return this.get({callback:n,resource:Da(e,t),formatData:function(e){return new Ta(e)},eventPrefix:a.f.SETTINGS,expiryTime:oi.a.SHORT,bootstrapName:"settings"})}},{key:"updateSetting",value:function(e,t,n,r){return this.update({callback:r,resource:Ma(e),eventPrefix:"".concat(a.f.UPDATE_SETTING,":").concat(sn.a.LibraryReview),invalidationKeys:[a.f.SETTINGS],data:t,successHandler:n?this.alertService.success(n):null})}}])&&ja(t.prototype,n),r&&ja(t,r),c}(To.a),Fa=n(136),Ha=n(98),za=n(89);function qa(e){return(qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ya(e,t){return(Ya=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ga(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qa(e);if(t){var o=Qa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ka(this,n)}}function Ka(e,t){return!t||"object"!==qa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qa(e){return(Qa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Za=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ya(e,t)}(n,e);var t=Ga(n);function n(){return Wa(this,n),t.apply(this,arguments)}return n}(r.a.Model),$a=n(178),Xa=n(50),Ja=n(145),ec=n(32),tc=n(302);function nc(e){return(nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ic(e,t){return(ic=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ac(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uc(e);if(t){var o=uc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cc(this,n)}}function cc(e,t){return!t||"object"!==nc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uc(e){return(uc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sc=function(e,t,n){var r=["query={status:[1,5],".concat(t,"}").concat($a.a.VIDEO_COLLECTION)];return n&&r.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(e,"/videos?").concat(r.join("&"))},lc=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat($a.a.VIDEO)},fc=function(e){return"/api/domain/v2/objects/".concat(e)},pc=function(){return"/api/domain/v2/objects/move"},hc=function(){return"/api/domain/v1/share"},yc=function(e){return"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=categories")},dc=function(e,t,n){var r=n.map((function(e){return"videoIds=".concat(e)}));return"/api/domain/v1/libraries/".concat(e,"/videos?categoryId=").concat(t,"&").concat(r.join("&"))},bc=function(e){return"/api/domain/v2/objects/".concat(e,"/thumbnail")},vc=function(e,t){return"/api/domain/v2/objects/".concat(e,"/thumbnail/").concat(t)},gc=function(e,t,n){return"/api/domain/v2/objects/".concat(e,"/").concat(t,"?").concat(Cc.getDissocIds(n))},mc=function(e){return"/api/domain/v2/videos/".concat(e,"/copy")},wc=function(e){return"/api/domain/v2/objects/".concat(e,"/libraries")},Sc=function(){return"/api/domain/v1/staffrequests"},Oc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ic(e,t)}(s,e);var t,n,c,u=ac(s);function s(){return rc(this,s),u.apply(this,arguments)}return t=s,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(g.b.VideoMixin,this)}},{key:"name",get:function(){return g.a.Video}},{key:"channelName",get:function(){return a.e.VIDEO}},{key:"lang",get:function(){return"libraryEditor.services"}},{key:"getVideoCollectionCursors",value:function(e){return this.getCursors(e.toString())}},{key:"clearVideoCache",value:function(){this.invalidateCache(["video"]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"clearPhysicialChaptersCache",value:function(){this.invalidateCache([ec.a.VIDEO_HAS_PHYSICAL_CHAPTERS])}},{key:"getCollectionVideos",value:function(e,t){var n=this,r=tn.q.GetFilterFromSort(e.sort),o=sc(e.id,r,e.cursor);return this.get({resource:o,formatData:function(e){return new Xa.a(e,{parse:!0})},callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,e,t)},expiryTime:aa.a.STANDARD,eventPrefix:e.toString()})}},{key:"getSeriesVideos",value:function(e,t,n){var r=this,o=tn.q.GetFilterFromSort(e.sort),i="libraries.id:[".concat(t.join(","),"]"),a="".concat(o,",").concat(i),c=sc(e.id,a,e.cursor);return this.get({resource:c,formatData:function(e){return new Xa.a(e,{parse:!0})},callback:function(t){return r.videoMixinService.mixinVideoCollectionData(t,e,n)},expiryTime:aa.a.STANDARD,eventPrefix:e.toString()})}},{key:"getVideo",value:function(e,t){var n=this;return this.get({resource:lc(e),formatData:function(e){return new Ha.a(e,{parse:!0})},callback:function(e){return n.videoMixinService.mixinVideoData(e,t)},expiryTime:aa.a.STANDARD,eventPrefix:"".concat(ec.a.VIDEOS,":").concat(e)})}},{key:"clearCacheAndGetVideo",value:function(e,t,n){var r=this;return this.clearCacheAndGet({resource:lc(e),formatData:function(e){return new Ha.a(e,{parse:!0})},callback:function(e){return r.videoMixinService.mixinVideoData(e,t)},expiryTime:aa.a.STANDARD,eventPrefix:"".concat(ec.a.VIDEOS,":").concat(e),errorHandler:n})}},{key:"getVideos",value:function(e,t){var n=this;return this.get({resource:yc(e),formatData:function(e){return new Xa.a(e,{parse:!0})},callback:function(e){return n.videoMixinService.mixinVideoCollectionData(e,null,t)},expiryTime:aa.a.STANDARD,eventPrefix:"".concat(ec.a.VIDEOS_BY_ID,":").concat(e.join(","))})}},{key:"hasPhysicalChapters",value:function(e,t){return this.get({resource:"/legacy/videos/".concat(e,"/hasphysicalchapters"),formatData:function(e){return new r.a.Model(e)},callback:t,expiryTime:aa.a.STANDARD,eventPrefix:"".concat(ec.a.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(e)})}},{key:"updateVideo",value:function(e,t,n,r){var o=["".concat(e)];return t&&o.push("".concat(t)),this.update({resource:fc(e),eventPrefix:"".concat(ec.a.UPDATE_VIDEO,":").concat(e),data:n,invalidationKeys:o,callback:r})}},{key:"addOrUpdateThumbnail",value:function(e,t,n,r){var o={fileId:t.id.toString(),fileIdType:$n.e.ImageAPIv1},i=this.chain();n&&i.delete({resource:vc(e,n),eventPrefix:ec.a.DELETE_VIDEO_THUMBNAIL}),i.create({resource:bc(e),eventPrefix:"".concat(ec.a.UPDATE_VIDEO_THUMBNAIL,":").concat(e),data:o,formatData:function(e){return new za.a(e)},invalidationKeys:[ec.a.VIDEOS],successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:r}),i.run()}},{key:"moveVideos",value:function(e,t,n,r,o){var a=this;this.create({resource:pc(),eventPrefix:"".concat(ec.a.MOVE_VIDEOS,":").concat(e.join(",")),formatData:function(e){return new Xa.a(e,{parse:!0})},callback:function(){a.clearVideoCache(),i.isFunction(r)&&r()},data:{oldCollectionId:n,newCollectionId:t,assocType:"has",objectIds:e},invalidationKeys:["".concat(ec.a.VIDEOS,":collection:").concat(n),"".concat(ec.a.VIDEOS,":collection:").concat(t)],successHandler:this.alertService.success(o)})}},{key:"deleteVideosFromLibrary",value:function(e,t,n,r){var o=this;this.delete({resource:dc(e,t,n),eventPrefix:ec.a.DELETE_VIDEO,invalidationKeys:[ec.a.VIDEOS],successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"videoRemoveSuccess",{smartCount:n.length})),callback:function(){o.clearVideoCache(),i.isFunction(r)&&r()}})}},{key:"getSharedResource",value:function(e,t,n){var r={id:e,privacy:t};return this.create({data:r,resource:hc(),formatData:function(e){return new Za(e)},expiryTime:aa.a.STANDARD,eventPrefix:"".concat(ec.a.SHARED_RESOURCE),callback:n})}},{key:"addVideoToCustomLibrary",value:function(e,t,n,r){var o=tc.a.addVideoToLibraryAlert(t,n);this.create({resource:Sc(),eventPrefix:"add:to:library",callback:r,data:e,invalidationKeys:["".concat(ec.a.VIDEOS)],successHandler:this.alertService.success(o)})}},{key:"bulkDissoc",value:function(e,t,n){if(e&&t){var r=new S.a(i.keys(t).length),o=function(){r.decrement(),0===r.getValue()&&n()},a=this.chain();i.each(i.keys(t),(function(n){a.delete({resource:gc(e,n.toLowerCase(),t[n]),eventPrefix:"".concat(ec.a.BULK_DISSOC,":").concat(n.toLowerCase()),callback:o})})),a.run()}}},{key:"copyVideo",value:function(e,t,n,r){this.create({resource:mc(e),data:{libraryId:t,categoryId:n},eventPrefix:"copy:video",callback:r})}},{key:"getLibraries",value:function(e,t){this.get({resource:wc(e),eventPrefix:"video:libraries:".concat(e),formatData:function(e){return new Ja.a(e.data)},callback:t})}},{key:"invalidateCollectionVideos",value:function(e){this.invalidateCache([e.toString()])}}])&&oc(t.prototype,n),c&&oc(t,c),s}(To.a),Cc={videoCollection:function(e){return{dataServiceName:g.a.Video,eventName:"".concat(e.toString,":sync"),getData:function(t){return t.getCollectionVideos(e)},getInstance:function(e){return b.a.getInstance(g.a.Video,e)},beforeOnBeforeRender:!0}},getDissocIds:function(e){return"string"==typeof e?"id=".concat(e):e.map((function(e){return"id=".concat(e)})).join("&")}},kc=n(100);function Ec(e){return(Ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pc(e,t){return(Pc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ac(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xc(e);if(t){var o=xc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tc(this,n)}}function Tc(e,t){return!t||"object"!==Ec(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xc(e){return(xc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lc,jc,Nc=function(e){return"/api/domain/v2/search/videos?".concat(e,"&with=").concat(a.A.VIDEO_COLLECTION)},Ic=function(e){return"/api/domain/v1/search/nav?".concat(e)},Vc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pc(e,t)}(i,e);var t,n,r,o=Ac(i);function i(){return _c(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(a.x.VideoMixin,this)}},{key:"name",get:function(){return jo.a.Search}},{key:"channelName",get:function(){return Lo.b.SEARCH}},{key:"searchVideos",value:function(e,t,n){var r=this;return this.clearCacheAndGet({callback:function(e){return r.videoMixinService.mixinVideoCollectionData(e,null,n)},resource:Nc(e),formatData:function(e){return new Xa.a(e.data)},eventPrefix:t.toString()})}},{key:"getDynamicFilters",value:function(e,t){return this.clearCacheAndGet({callback:t,resource:Ic(e),formatData:function(e){return new kc.a(e,{parse:!0})},eventPrefix:a.f.SEARCH_FILTERS})}}])&&Rc(t.prototype,n),r&&Rc(t,r),i}(To.a);function Bc(e){return(Bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uc(e,t){return(Uc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zc(e);if(t){var o=zc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hc(this,n)}}function Hc(e,t){return!t||"object"!==Bc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zc(e){return(zc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.IosApp=1]="IosApp",e[e.AndroidApp=2]="AndroidApp",e[e.WinApp=3]="WinApp",e[e.LibraryPublisher=4]="LibraryPublisher",e[e.ExchangeClient=5]="ExchangeClient",e[e.Online=6]="Online",e[e.Tinder=7]="Tinder",e[e.Cloud247=8]="Cloud247",e[e.Livestream=9]="Livestream",e[e.Curator=10]="Curator",e[e.LibraryEditor=11]="LibraryEditor",e[e.Lite=12]="Lite"}(Lc||(Lc={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(jc||(jc={}));var qc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Uc(e,t)}(u,e);var t,n,o,c=Fc(u);function u(){return Dc(this,u),c.apply(this,arguments)}return t=u,(n=[{key:"name",get:function(){return a.g.VideoUpload}},{key:"channelName",get:function(){return a.e.VIDEO_UPLOAD}},{key:"lang",get:function(){return"upload.services"}},{key:"getPendingItem",value:function(e,t){this.clearCacheAndGet({resource:"/api/domain/v2/process/".concat(e),eventPrefix:"pending:item:".concat(e),formatData:function(e){return new r.a.Model(e)},callback:t})}},{key:"getPendingItems",value:function(e){this.clearCacheAndGet({resource:"/api/domain/v2/process?destination=1&status=1&status=-1",eventPrefix:"pending",callback:e})}},{key:"clearPendingItems",value:function(e,t){this.delete({resource:"/api/domain/v2/process?".concat(i.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"clear:pending:".concat(e.join(",")),callback:t})}},{key:"cancelPendingItems",value:function(e,t){this.delete({resource:"/api/domain/v2/process/cancel?".concat(i.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"cancel:pending:".concat(e.join(",")),callback:t})}},{key:"retryPendingItems",value:function(e,t){this.create({resource:"/api/domain/v2/process/retry?".concat(i.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"retry:pending:".concat(e.join(",")),callback:t,data:null})}},{key:"completeVideoUploads",value:function(e,t,n,r){var o=this,a=this.chain();i.each(n,(function(n){a.create({resource:"/api/domain/v2/process",eventPrefix:"upload",data:{userId:e,customerId:t,libraryId:n.get("libraryId"),categoryId:n.get("folderId"),origin:Lc.Curator,fileUrl:n.get("fileUrl"),video:o.toVideoUploadMetadata(n),subtitleOptions:{subtitleExtractOptions:jc.EmbeddedOnly},autoCaption:n.get("autoCaption")},errorHandler:o.alertService.error(qr.a.getPhrase(o.lang,"processingError",{videoName:tn.w.escapeExpression(n.get("name"))}))})})),i.isFunction(r)&&a.func(r),a.run()}},{key:"toVideoUploadMetadata",value:function(e){var t=this,n=e.pick(["name","description","dateBroadcast","productionYear","episodeNumber"]);return i.extend(n,{origin:Lc.Curator}),i.each(["rating","series","channel","producers","distributors","productionCompanies","directors","season"],(function(r){return t.setAssoc(r,n,e)})),n}},{key:"setAssoc",value:function(e,t,n){var o=n[e];if(o instanceof r.a.Collection){if(!o.length||1===o.length&&!o.first().id)return;t[e]=o.map((function(e){return e.id}))}else{if(!o||!o.get("id")&&!o.get("name"))return;t[e]=o.get("id")?{id:o.get("id")}:o.pick(["name"])}}}])&&Mc(t.prototype,n),o&&Mc(t,o),u}(To.a),Wc=n(303);function Yc(e){return(Yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qc(e,t){return(Qc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xc(e);if(t){var o=Xc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $c(this,n)}}function $c(e,t){return!t||"object"!==Yc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xc(e){return(Xc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qc(e,t)}(i,e);var t,n,r,o=Zc(i);function i(){return Gc(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return a.g.ImageUpload}},{key:"channelName",get:function(){return a.e.IMAGE_UPLOAD}},{key:"uploadBase64Image",value:function(e,t,n){return this.create({resource:"/api/image/upload?type=".concat(t),eventPrefix:a.f.UPLOAD_IMAGE,data:e,formatData:function(e){return new Wc.a(e)},callback:n})}}])&&Kc(t.prototype,n),r&&Kc(t,r),i}(To.a),eu=n(149);function tu(e){return(tu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ou(e,t){return(ou=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function iu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cu(e);if(t){var o=cu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return au(this,n)}}function au(e,t){return!t||"object"!==tu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cu(e){return(cu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ou(e,t)}(i,e);var t,n,r,o=iu(i);function i(){return nu(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return eu.a}}])&&ru(t.prototype,n),r&&ru(t,r),i}(r.a.Collection);function su(e){return(su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pu(e,t){return(pu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=du(e);if(t){var o=du(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yu(this,n)}}function yu(e,t){return!t||"object"!==su(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function du(e){return(du=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pu(e,t)}(i,e);var t,n,r,o=hu(i);function i(){return lu(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return eu.b}}])&&fu(t.prototype,n),r&&fu(t,r),i}(r.a.Collection),vu=n(244);function gu(e){return(gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Su(e,t){return(Su=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ou(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ku(e);if(t){var o=ku(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cu(this,n)}}function Cu(e,t){return!t||"object"!==gu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ku(e){return(ku=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Eu=function(){return"/api/domain/v1/staffrequests?masterObjectType=".concat($n.g.Video,"&status=").concat(vu.a.Pending)},_u=function(e){return"/api/domain/v1/staffrequests/".concat(e)},Ru=function(){return"/api/domain/v1/staffrequests"},Pu=function(e){return"/api/domain/v1/staffrequests/".concat(e,"/messages")},Au=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Su(e,t)}(c,e);var t,n,r,i=Ou(c);function c(){return mu(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return"StaffRequestDataService"}},{key:"channelName",get:function(){return a.e.STAFF_REQUEST}},{key:"lang",get:function(){return"staffRequests.services"}},{key:"clearRequestCache",value:function(){this.invalidateCache([ec.a.STAFF_REQUESTS]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"getStaffRequests",value:function(e){return this.get({resource:Eu(),formatData:function(e){return new uu(e,{parse:!0})},expiryTime:aa.a.STANDARD,eventPrefix:ec.a.STAFF_REQUESTS,callback:e})}},{key:"getStaffRequest",value:function(e,t){return this.get({resource:_u(e),formatData:function(e){return new eu.a(e,{parse:!0})},expiryTime:aa.a.STANDARD,eventPrefix:"".concat(ec.a.STAFF_REQUEST_BY_ID,":").concat(e),callback:t})}},{key:"approveStaffRequest",value:function(e,t,n,r){var o={id:e,status:vu.a.Approved,metadata:{destinationLibraryId:t,destinationCategoryId:n}};return this.update({data:o,resource:Ru(),eventPrefix:"".concat(ec.a.STAFF_REQUESTS,":").concat(e,":update"),invalidationKeys:[ec.a.VIDEOS,ec.a.STAFF_REQUESTS,ec.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"approveRequestSuccess")),callback:r})}},{key:"rejectStaffRequest",value:function(e,t,n){var r={id:e,status:vu.a.Rejected,message:t};return this.update({data:r,resource:Ru(),eventPrefix:"".concat(ec.a.STAFF_REQUESTS,":").concat(e,":update"),invalidationKeys:[ec.a.STAFF_REQUESTS,ec.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"rejectRequestSuccess")),callback:n})}},{key:"getMessages",value:function(e,t){return this.get({resource:Pu(e),formatData:function(e){return new bu(e)},expiryTime:aa.a.STANDARD,eventPrefix:"".concat(ec.a.STAFF_REQUEST_MESSAGES,":").concat(e),callback:t})}}])&&wu(t.prototype,n),r&&wu(t,r),c}(To.a),Tu=n(225);function xu(e){return(xu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nu(e,t){return(Nu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Iu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bu(e);if(t){var o=Bu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vu(this,n)}}function Vu(e,t){return!t||"object"!==xu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bu(e){return(Bu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Du=function(e){return"/api/domain/v2/objects/".concat(e,"/tags")},Mu=function(e,t){return"/api/domain/v2/objects/".concat(t,"/videos/").concat(e)},Uu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nu(e,t)}(i,e);var t,n,r,o=Iu(i);function i(){return Lu(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return a.g.Tags}},{key:"channelName",get:function(){return a.e.TAG}},{key:"createTag",value:function(e,t,n){if(e&&t)return this.create({resource:Du(t),eventPrefix:"".concat(a.f.CREATE_TAG,":").concat(tn.w.slugify(e)),formatData:function(e){return new Tu.a(e)},invalidationKeys:["".concat(t)],data:{name:e},callback:n})}},{key:"dissociateTag",value:function(e,t,n){if(e&&t)return this.delete({resource:Mu(t,e),eventPrefix:"".concat(a.f.DISSOC_TAG,":").concat(e),invalidationKeys:["".concat(t)],callback:n})}}])&&ju(t.prototype,n),r&&ju(t,r),i}(To.a),Fu=n(185),Hu=n(153);function zu(e){return(zu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yu(e,t){return(Yu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qu(e);if(t){var o=Qu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ku(this,n)}}function Ku(e,t){return!t||"object"!==zu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qu(e){return(Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zu=function(){return"/api/domain/v1/series"},$u=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(a.A.SERIES)},Xu=function(e){return"/api/domain/v2/objects/".concat(e,"/seasons")},Ju=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yu(e,t)}(i,e);var t,n,r,o=Gu(i);function i(){return qu(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return a.g.Series}},{key:"channelName",get:function(){return a.e.SERIES}},{key:"createSeries",value:function(e,t){if(e){var n=tn.w.slugify(e);return this.create({resource:Zu(),eventPrefix:"".concat(a.f.CREATE_SERIES,":").concat(n),formatData:function(e){return new Fu.a(e)},invalidationKeys:["".concat(n)],data:{name:e},callback:t})}}},{key:"getSeries",value:function(e,t){return this.get({callback:t,expiryTime:a.d.STANDARD,resource:$u(e),formatData:function(e){return new Fu.a(e)},eventPrefix:"".concat(a.f.SERIES,":").concat(e)})}},{key:"createSeason",value:function(e,t,n){if(e.number&&t)return this.create({data:e,resource:Xu(t),eventPrefix:"".concat(a.f.CREATE_SEASON,":").concat(t),formatData:function(e){return new Hu.a(e)},callback:n})}}])&&Wu(t.prototype,n),r&&Wu(t,r),i}(To.a),es=n(463);function ts(e){return(ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ns(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function os(e,t){return(os=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function is(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cs(e);if(t){var o=cs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return as(this,n)}}function as(e,t){return!t||"object"!==ts(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cs(e){return(cs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var us=function(){return"/api/domain/v2/me/ratings"},ss=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&os(e,t)}(i,e);var t,n,r,o=is(i);function i(){return ns(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return g.a.Ratings}},{key:"channelName",get:function(){return a.e.RATINGS}},{key:"getAllRatings",value:function(e){return this.get({resource:us(),formatData:function(e){return new es.a(e)},expiryTime:aa.a.STANDARD,eventPrefix:"".concat(a.f.RATINGS),callback:e})}}])&&rs(t.prototype,n),r&&rs(t,r),i}(To.a),ls=n(309),fs=n(182);function ps(e){return(ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ys(e,t){return(ys=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ds(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vs(e);if(t){var o=vs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bs(this,n)}}function bs(e,t){return!t||"object"!==ps(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vs(e){return(vs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ys(e,t)}(n,e);var t=ds(n);function n(){return hs(this,n),t.apply(this,arguments)}return n}(r.a.Model),ms=n(292);function ws(e){return(ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ss(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cs(e,t){return(Cs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ks(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_s(e);if(t){var o=_s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Es(this,n)}}function Es(e,t){return!t||"object"!==ws(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _s(e){return(_s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rs,Ps=function(e){return"/api/domain/v2/objects/".concat(e,"/chapters")},As=function(e){return"/api/domain/v2/objects/".concat(e)},Ts=function(e){return"/api/domain/v2/objects/".concat(e)},xs=function(e){return"/api/domain/v1/concatenate?masterId=".concat(e)},Ls=function(e){return"/api/domain/v1/concatenate?masterId=".concat(e)},js=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Cs(e,t)}(c,e);var t,n,r,o=ks(c);function c(){return Ss(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return a.g.Chapter}},{key:"channelName",get:function(){return a.e.CHAPTER}},{key:"lang",get:function(){return"libraryEditor.services"}},{key:"clearVideoCache",value:function(e){this.invalidateCache(["".concat(e)])}},{key:"createChapter",value:function(e,t,n,r){if(e&&t&&i.isNumber(n))return this.create({resource:Ps(e),eventPrefix:"".concat(a.f.CREATE_CHAPTER,":").concat(tn.w.slugify(t)),formatData:function(e){return new fs.a(e)},invalidationKeys:["".concat(e)],data:{name:t,startTime:n},callback:r})}},{key:"updateChapter",value:function(e,t,n,r,o){if(e&&t&&i.isNumber(n))return this.update({resource:As(e),eventPrefix:"".concat(a.f.UPDATE_CHAPTER,":").concat(e),formatData:function(e){return new fs.a(e)},invalidationKeys:["".concat(e),"".concat(tn.w.slugify(t))],data:{name:t,startTime:n},successHandler:this.alertService.success(o||qr.a.getPhrase(this.lang,"chapterUpdated")),callback:r})}},{key:"deleteChapter",value:function(e,t){if(e)return this.delete({resource:Ts(e),eventPrefix:"".concat(a.f.DELETE_CHAPTER),invalidationKeys:["".concat(e)],callback:t})}},{key:"getConcatenateRequest",value:function(e,t){var n=this;return this.clearCacheAndGet({resource:xs(e),eventPrefix:"".concat(a.f.CONCATENATE_STATUS,":").concat(e),formatData:function(e){return new gs(e,{parse:!0})},callback:function(r){r.get("status")===ms.a.SingleFile&&n.clearVideoCache(e),i.isFunction(t)&&t(r)},errorHandler:!1})}},{key:"addConcatenateRequest",value:function(e,t){return this.create({resource:Ls(e),formatData:function(e){return new gs(e)},eventPrefix:"".concat(a.f.CONCATENATE_CHAPTERS,":").concat(e),invalidationKeys:["".concat(a.f.CONCATENATE_STATUS,":").concat(e)],data:null,callback:t})}}])&&Os(t.prototype,n),r&&Os(t,r),c}(To.a);function Ns(e){return(Ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Is(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bs(e,t){return(Bs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ds(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Us(e);if(t){var o=Us(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ms(this,n)}}function Ms(e,t){return!t||"object"!==Ns(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Us(e){return(Us=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.CollectionPdf="collection_pdf",e.CustomListPdf="custom_list_pdf"}(Rs||(Rs={}));var Fs=function(e){return"/api/domain/v2/export/formats/pdf/types/".concat(e)},Hs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bs(e,t)}(c,e);var t,n,r,o=Ds(c);function c(){return Is(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return a.g.Export}},{key:"channelName",get:function(){return a.e.EXPORT}},{key:"lang",get:function(){return"libraryEditor.services"}},{key:"generateCollectionPdf",value:function(e,t,n,r,o){var c=i.extend({},this.getBaseExportData(n),{libraryId:e,collectionId:t});return r&&(c=i.extend({},c,{sortType:tn.q.MapSortTypeToExportServiceSortType(r)})),this.create({callback:o,resource:Fs(Rs.CollectionPdf),data:c,eventPrefix:"".concat(a.f.GENERATE_COLLECTION_PDF,":").concat(t),successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(qr.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"generateCustomListPdf",value:function(e,t,n,r,o){var c=i.extend({},this.getBaseExportData(r),{title:e,header:t,videoIds:n});return this.create({callback:o,resource:Fs(Rs.CustomListPdf),data:c,eventPrefix:a.f.GENERATE_CUSTOM_PDF,successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(qr.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"getBaseExportData",value:function(e){return{firstName:e.get("givenName"),lastName:e.get("familyName"),instanceRegion:e.get("instanceRegion"),userId:e.id,customerId:e.get("customerId"),userEmail:e.get("email")}}}])&&Vs(t.prototype,n),r&&Vs(t,r),c}(To.a),zs=n(243),qs=n(242);function Ws(e){return(Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ys(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ks(e,t){return(Ks=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$s(e);if(t){var o=$s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zs(this,n)}}function Zs(e,t){return!t||"object"!==Ws(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $s(e){return($s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xs,Js=function(e){return"".concat("/api/domain","/v1/localcaches/videos?videoId=").concat(e.join("&videoId="))},el=function(e){return"".concat("/api/localcache","/v1/customers/").concat(e,"/devices")},tl=function(){return"".concat("/api/localcache","/v1/downloads/videos")};!function(e){e[e.MasterObject=0]="MasterObject",e[e.TrackingCode=1]="TrackingCode"}(Xs||(Xs={}));var nl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ks(e,t)}(i,e);var t,n,r,o=Qs(i);function i(){return Ys(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return a.g.LocalCache}},{key:"channelName",get:function(){return a.e.LOCAL_CACHE}},{key:"lang",get:function(){return"shared.services"}},{key:"getDownloadsForVideos",value:function(e,t){return this.get({resource:Js(e),formatData:function(e){return new qs.a(e)},eventPrefix:"".concat(a.f.LOCAL_CACHE_DOWNLOADS,":").concat(e.join(",")),expiryTime:aa.a.STANDARD,callback:t})}},{key:"getDevices",value:function(e,t){return this.get({resource:el(e),formatData:function(e){return new zs.a(e)},eventPrefix:a.f.LOCAL_CACHE_DEVICES,expiryTime:aa.a.STANDARD,callback:t})}},{key:"downloadVideoToLocalCache",value:function(e,t,n){this.create({resource:tl(),data:this.getDownloadVideoData(e,t),eventPrefix:a.f.ADD_VIDEO_TO_LOCAL_CACHE,invalidationKeys:[a.f.LOCAL_CACHE_DOWNLOADS],callback:n,successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"localCacheAddSuccess")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"getDownloadVideoData",value:function(e,t){return{deviceId:e,videoId:t,videoIdType:Xs.MasterObject,expiresOn:ht().add(14,"days")}}}])&&Gs(t.prototype,n),r&&Gs(t,r),i}(To.a);function rl(e){return(rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ol(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function il(e,t){return(il=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function al(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ul(e);if(t){var o=ul(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cl(this,n)}}function cl(e,t){return!t||"object"!==rl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ul(e){return(ul=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&il(e,t)}(n,e);var t=al(n);function n(){return ol(this,n),t.apply(this,arguments)}return n}(r.a.Model);function ll(e){return(ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hl(e,t){return(hl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bl(e);if(t){var o=bl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dl(this,n)}}function dl(e,t){return!t||"object"!==ll(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bl(e){return(bl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hl(e,t)}(i,e);var t,n,r,o=yl(i);function i(){return fl(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"model",get:function(){return sl}}])&&pl(t.prototype,n),r&&pl(t,r),i}(r.a.Collection);function gl(e){return(gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ml(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sl(e,t){return(Sl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ol(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kl(e);if(t){var o=kl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cl(this,n)}}function Cl(e,t){return!t||"object"!==gl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kl(e){return(kl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var El=function(e){var t=["type=".concat($n.i.RestrictedByAdmin),"objectTypeId=".concat($n.g.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return e&&t.push("page=".concat(e)),"/api/domain/v1/restrictedobjects?".concat(t.join("&"))},_l=function(e){var t=["type=".concat($n.i.RestrictedByAdmin),"objectTypeId=".concat($n.g.Video)],n="";return e&&e.forEach((function(e){return n+="&objectId=".concat(e)})),"/api/domain/v1/restrictedobjects?".concat(t.join("&")).concat(n)},Rl=function(){return"/api/domain/v1/restrictedobjects"},Pl=function(e){return"/api/domain/v1/restrictedobjects?objectId=".concat(e,"&objectTypeId=").concat($n.g.Video)},Al=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sl(e,t)}(i,e);var t,n,r,o=Ol(i);function i(){return ml(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return a.g.RestrictedVideo}},{key:"channelName",get:function(){return a.e.RESTRICTED_VIDEO}},{key:"lang",get:function(){return"shared.services"}},{key:"getPaginationCursors",value:function(e){return this.getCursors("".concat(a.f.RESTRICTED_VIDEOS,":").concat(e))}},{key:"getRestrictedVideos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1",t=arguments.length>1?arguments[1]:void 0;return this.get({callback:t,resource:El(e),formatData:function(e){return new Xa.a(e,{parse:!0})},expiryTime:aa.a.STANDARD,eventPrefix:"".concat(a.f.RESTRICTED_VIDEOS,":").concat(e)})}},{key:"getVideoRestrictions",value:function(e,t,n){var r=t?"".concat(a.f.RESTRICTED_OBJECTS,":").concat(t.toString()):"".concat(a.f.RESTRICTED_OBJECTS,":").concat(e.join(","));return this.get({callback:n,resource:_l(e),formatData:function(e){return new vl(e)},expiryTime:aa.a.STANDARD,eventPrefix:r})}},{key:"updateVideoRestriction",value:function(e,t,n,r,o){var i={groupId:t,objectId:e,objectTypeId:11,type:2,metadata:null,customerId:n,restrictedBy:r,restrictedByCustomerId:n};this.create({callback:o,resource:Rl(),eventPrefix:a.f.UPDATE_VIDEO_RESTRICTION,data:i,invalidationKeys:[a.f.RESTRICTED_VIDEOS,a.f.VIDEOS_TO_REVIEW,a.f.RESTRICTED_OBJECTS],successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"restrictionUpdated")),errorHandler:this.alertService.error(qr.a.getPhrase(this.lang,"restrictionUpdateError"))})}},{key:"deleteVideoRestriction",value:function(e,t){this.delete({callback:t,resource:Pl(e),eventPrefix:a.f.UPDATE_VIDEO_RESTRICTION,invalidationKeys:["".concat(a.f.VIDEOS,":restricted"),a.f.RESTRICTED_VIDEOS,a.f.RESTRICTED_OBJECTS,a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"restrictionRemoved"))})}}])&&wl(t.prototype,n),r&&wl(t,r),i}(To.a),Tl=n(226);function xl(e){return(xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ll(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nl(e,t){return(Nl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Il(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bl(e);if(t){var o=Bl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vl(this,n)}}function Vl(e,t){return!t||"object"!==xl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bl(e){return(Bl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dl(e){return function(e){if(Array.isArray(e))return Ml(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ml(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ml(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ml(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ul=function(e,t,n,r,o){var i=e.map((function(e){return"libraryId=".concat(e)})),c=[].concat(Dl(i),["from=".concat(t),"to=".concat(n)]);o&&c.push("offset=".concat(o));var u=a.A.HOSTED_VIDEO_COLLECTION;return r&&c.push.apply(c,Dl(r.map((function(e){return"categoryId=".concat(e)})))),"/api/domain/v2/videos/recent?query=".concat(u,"&").concat(c.join("&"))},Fl=function(e,t,n){var r=e.map((function(e){return"libraryId=".concat(e)})),o=[].concat(Dl(r),["from=".concat(t),"to=".concat(n)]);return"/api/domain/v2/categories/recent?".concat(o.join("&"))},Hl=function(){var e=["type=".concat($n.i.TermUpdate),"objectTypeId=".concat($n.g.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return"/api/domain/v1/restrictedobjects/all?".concat(e.join("&"))},zl=function(){var e=["type=".concat($n.i.TermUpdate),"objectTypeId=".concat($n.g.Video)];return"/api/domain/v1/restrictedobjects?".concat(e.join("&"))},ql=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nl(e,t)}(c,e);var t,n,r,o=Il(c);function c(){return Ll(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(a.x.VideoMixin,this)}},{key:"name",get:function(){return a.g.ContentUpdates}},{key:"channelName",get:function(){return a.e.CONTENT_UPDATES}},{key:"lang",get:function(){return"contentUpdates.services"}},{key:"getVideoCollectionCursors",value:function(e){return this.getCursors(e.toString())}},{key:"getRecentVideos",value:function(e,t){var n=this,r=e.toParams();return this.get({resource:Ul(r.libraryIds,r.from,r.to,r.subjectIds,r.cursor),formatData:function(e){return new Xa.a(e,{parse:!0})},expiryTime:aa.a.STANDARD,eventPrefix:e.toString(),callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,e,t)}})}},{key:"getRecentVideosAllPages",value:function(e,t){var n,r=this,o=e.toParams(),c=new Xa.a;this.get({resource:Ul(o.libraryIds,o.from,o.to,o.subjectIds),formatData:function(e){return new Xa.a(e,{parse:!0})},expiryTime:aa.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString()),callback:function u(s){c.add(s.models);var l="".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString());n&&n.next&&(l+=":".concat(n.next)),(n=r.getCursors(l))&&n.next?r.get({resource:Ul(o.libraryIds,o.from,o.to,o.subjectIds,n.next),formatData:function(e){return new Xa.a(e,{parse:!0})},expiryTime:aa.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString(),":").concat(n.next),callback:u}):i.isFunction(t)&&t(c)}})}},{key:"getRecentVideoSubjects",value:function(e,t){var n=e.toParams();return this.get({resource:Fl(n.libraryIds,n.from,n.to),formatData:function(e){return new Tl.a(e)},expiryTime:aa.a.STANDARD,eventPrefix:e.toString(),callback:t})}},{key:"getVideosToReview",value:function(e){return this.get({callback:e,resource:Hl(),formatData:function(e){return new Xa.a(e)},expiryTime:aa.a.STANDARD,eventPrefix:a.f.VIDEOS_TO_REVIEW})}},{key:"approveAllVideos",value:function(e){return this.delete({callback:e,resource:zl(),eventPrefix:"".concat(a.f.VIDEOS_TO_REVIEW,":approve:all"),invalidationKeys:[a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"approveAllVideosSuccess"))})}}])&&jl(t.prototype,n),r&&jl(t,r),c}(To.a);function Wl(e){return(Wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kl(e,t){return(Kl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ql(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$l(e);if(t){var o=$l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zl(this,n)}}function Zl(e,t){return!t||"object"!==Wl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $l(e){return($l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kl(e,t)}(c,e);var t,n,o,i=Ql(c);function c(){return Yl(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return a.g.DownloadProxy}},{key:"channelName",get:function(){return a.e.DOWNLOAD_PROXY}},{key:"lang",get:function(){return"shared.services"}},{key:"createDownloadToken",value:function(e,t){this.create({data:{objectId:e},resource:"/api/downloadproxy/api/tokens",formatData:function(e){return new r.a.Model(e)},eventPrefix:"token:".concat(e),expiryTime:a.d.STANDARD,errorHandler:this.alertService.error(qr.a.getPhrase(this.lang,"linkRetrievalError")),callback:t})}}])&&Gl(t.prototype,n),o&&Gl(t,o),c}(To.a),Jl=n(176);function ef(e){return(ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rf(e,t){return(rf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function of(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cf(e);if(t){var o=cf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return af(this,n)}}function af(e,t){return!t||"object"!==ef(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cf(e){return(cf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uf=function(e){return"/api/domain/v2/objects/".concat(e,"/resources")},sf=function(e){return"/api/domain/v2/objects/".concat(e)},lf=function(e){return"/api/domain/v2/objects/".concat(e)},ff=function(e){return"/api/domain/v2/objects/".concat(e)},pf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rf(e,t)}(c,e);var t,n,r,o=of(c);function c(){return tf(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return a.g.Resource}},{key:"channelName",get:function(){return a.e.RESOURCE}},{key:"lang",get:function(){return"libraryEditor.services"}},{key:"addResource",value:function(e,t,n){var r=this,o=this.chain();i.each(t,(function(i,c){o.create({resource:uf(e),eventPrefix:"".concat(a.f.CREATE_RESOURCE),formatData:function(e){return new Jl.a(e)},callback:n,data:i,successHandler:c+1===t.length&&r.alertService.success(qr.a.getPhrase(r.lang,"resourceUploadSuccess"))})})),o.run()}},{key:"getResource",value:function(e,t){return this.get({resource:sf(e),formatData:function(e){return new Jl.a(e)},eventPrefix:"".concat(a.f.RESOURCE,":").concat(e),callback:t})}},{key:"updateResource",value:function(e,t,n){var r=this,o=t.pick(["id","name"]);this.update({resource:lf(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_RESOURCE,":").concat(o.id),callback:function(t){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n(t)},successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"resourceUpdateSuccess"))})}},{key:"deleteResource",value:function(e,t,n){var r=this;this.delete({resource:ff(t),eventPrefix:"".concat(a.f.DELETE_RESOURCE,":").concat(t),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"resourceRemoveSuccess"))})}}])&&nf(t.prototype,n),r&&nf(t,r),c}(To.a),hf=n(234);function yf(e){return(yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vf(e,t){return(vf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wf(e);if(t){var o=wf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mf(this,n)}}function mf(e,t){return!t||"object"!==yf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wf(e){return(wf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sf=function(e){return"/api/domain/v2/objects/".concat(e,"/subtitles")},Of=function(e){return"/api/domain/v2/objects/".concat(e)},Cf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vf(e,t)}(i,e);var t,n,r,o=gf(i);function i(){return df(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return a.g.Subtitle}},{key:"channelName",get:function(){return a.e.SUBTITLE}},{key:"lang",get:function(){return"libraryEditor.services"}},{key:"addSubtitle",value:function(e,t,n){this.create({resource:Sf(e),eventPrefix:"".concat(a.f.CREATE_SUBTITLE),formatData:function(e){return new hf.a(e)},callback:n,data:t,successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"subtitleUploadSuccess"))})}},{key:"deleteSubtitle",value:function(e,t,n){var r=this;this.delete({resource:Of(t),eventPrefix:"".concat(a.f.DELETE_SUBTITLE,":").concat(t),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"subtitleRemoveSuccess"))})}}])&&bf(t.prototype,n),r&&bf(t,r),i}(To.a),kf=n(183);function Ef(e){return(Ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pf(e,t){return(Pf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Af(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xf(e);if(t){var o=xf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tf(this,n)}}function Tf(e,t){return!t||"object"!==Ef(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xf(e){return(xf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lf=function(e){return"/api/domain/v2/objects/".concat(e,"/links")},jf=function(e){return"/api/domain/v2/objects/".concat(e)},Nf=function(e){return"/api/domain/v2/objects/".concat(e)},If=function(e){return"/api/domain/v2/objects/".concat(e)},Vf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pf(e,t)}(i,e);var t,n,r,o=Af(i);function i(){return _f(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return a.g.Link}},{key:"channelName",get:function(){return a.e.LINK}},{key:"lang",get:function(){return"libraryEditor.services"}},{key:"addLink",value:function(e,t,n){this.create({resource:Lf(e),eventPrefix:a.f.CREATE_LINK,formatData:function(e){return new kf.a(e)},callback:n,data:t,successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"linkUploadSuccess")),errorHandler:this.alertService.error(qr.a.getPhrase(this.lang,"linkUploadError"))})}},{key:"getLink",value:function(e,t){return this.get({resource:jf(e),formatData:function(e){return new kf.a(e)},eventPrefix:"".concat(a.f.LINK,":").concat(e),callback:t})}},{key:"updateLink",value:function(e,t,n){var r=this,o=t.pick(["id","name"]);this.update({resource:Nf(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_LINK,":").concat(o.id),callback:function(t){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n(t)},successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"linkUpdateSuccess")),errorHandler:this.alertService.error(qr.a.getPhrase(this.lang,"linkUpdateError"))})}},{key:"deleteLink",value:function(e,t,n){var r=this;this.delete({resource:If(t),eventPrefix:"".concat(a.f.DELETE_LINK,":").concat(t),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(qr.a.getPhrase(this.lang,"linkRemoveSuccess")),errorHandler:this.alertService.error(qr.a.getPhrase(this.lang,"linkRemoveError"))})}}])&&Rf(t.prototype,n),r&&Rf(t,r),i}(To.a);function Bf(e){return(Bf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mf(e,t){return(Mf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Uf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hf(e);if(t){var o=Hf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ff(this,n)}}function Ff(e,t){return!t||"object"!==Bf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Hf(e){return(Hf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mf(e,t)}(n,e);var t=Uf(n);function n(){return Df(this,n),t.apply(this,arguments)}return n}(r.a.Model);function qf(e){return(qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gf(e,t){return(Gf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zf(e);if(t){var o=Zf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qf(this,n)}}function Qf(e,t){return!t||"object"!==qf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zf(e){return(Zf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $f=function(){return"/api/domain/v2/people"},Xf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gf(e,t)}(i,e);var t,n,r,o=Kf(i);function i(){return Wf(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return a.g.Person}},{key:"channelName",get:function(){return a.e.PERSON}},{key:"createPerson",value:function(e,t){if(e)return this.create({resource:$f(),eventPrefix:a.f.CREATE_PERSON,formatData:function(e){return new zf(e)},data:{name:e},callback:t})}}])&&Yf(t.prototype,n),r&&Yf(t,r),i}(To.a);function Jf(e){return(Jf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ep(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tp(e,t){return(tp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function np(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=op(e);if(t){var o=op(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rp(this,n)}}function rp(e,t){return!t||"object"!==Jf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function op(e){return(op=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ip=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tp(e,t)}(n,e);var t=np(n);function n(){return ep(this,n),t.apply(this,arguments)}return n}(r.a.Model);function ap(e){return(ap="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function up(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sp(e,t){return(sp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pp(e);if(t){var o=pp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fp(this,n)}}function fp(e,t){return!t||"object"!==ap(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pp(e){return(pp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hp=function(){return"/api/domain/v2/companies"},yp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sp(e,t)}(i,e);var t,n,r,o=lp(i);function i(){return cp(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return a.g.Company}},{key:"channelName",get:function(){return a.e.COMPANY}},{key:"createCompany",value:function(e,t){if(e)return this.create({resource:hp(),eventPrefix:a.f.CREATE_COMPANY,formatData:function(e){return new ip(e)},data:{name:e},callback:t})}}])&&up(t.prototype,n),r&&up(t,r),i}(To.a);function dp(e){return(dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gp(e,t){return(gp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sp(e);if(t){var o=Sp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wp(this,n)}}function wp(e,t){return!t||"object"!==dp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sp(e){return(Sp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Op=function(e){return"/api/domain/v2/objects/".concat(e)},Cp=function(e){return"/api/domain/v2/objects/".concat(e,"/fields")},kp=function(e){return"/api/domain/v2/objects/".concat(e)},Ep=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gp(e,t)}(c,e);var t,n,r,o=mp(c);function c(){return bp(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return a.g.Fields}},{key:"channelName",get:function(){return a.e.FIELDS}},{key:"updateField",value:function(e,t){this.update({resource:Op(e.id),eventPrefix:"".concat(a.f.UPDATE_FIELD,":").concat(e.id),data:e,callback:t})}},{key:"addField",value:function(e,t,n){var r=i.omit(t,"id");this.create({resource:Cp(e),eventPrefix:a.f.ADD_FIELD,data:r,callback:n})}},{key:"deleteField",value:function(e,t){this.delete({resource:kp(e),eventPrefix:a.f.DELETE_FIELD,callback:t})}}])&&vp(t.prototype,n),r&&vp(t,r),c}(To.a);var _p=n(219),Rp=n(706),Pp=n.n(Rp),Ap=n(158),Tp=n(707),xp=n.n(Tp);function Lp(e){return(Lp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Np(e,t){return(Np=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ip(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bp(e);if(t){var o=Bp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vp(this,n)}}function Vp(e,t){return!t||"object"!==Lp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bp(e){return(Bp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Np(e,t)}(i,e);var t,n,r,o=Ip(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"PageFooterComponent"}},{key:"template",get:function(){return xp.a}},{key:"lang",get:function(){return"shared.pageFooter"}},{key:"className",get:function(){return"text-center py-3 text-muted"}},{key:"viewOptions",value:function(){return{currentYear:(new Date).getFullYear(),version:this.options.version}}}])&&jp(t.prototype,n),r&&jp(t,r),i}(r.a.Component),Mp=n(641),Up=n(238),Fp=n(44),Hp=n(159),zp=n.n(Hp),qp=n(708),Wp=n.n(qp);function Yp(e){return(Yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qp(e,t){return(Qp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xp(e);if(t){var o=Xp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $p(this,n)}}function $p(e,t){return!t||"object"!==Yp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xp(e){return(Xp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qp(e,t)}(i,e);var t,n,r,o=Zp(i);function i(){return Gp(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,Fp.a.FILES_SELECTED,this.onDragLeave),this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock)}},{key:"events",get:function(){var e,t,n,r="dragleave .".concat(zp.a.dropArea);return n="onDragLeave",(t=r)in(e={drop:"onDrop",dragover:"onDragOver"})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},{key:"lang",get:function(){return"shared.behaviors.fileDrop"}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(){this.locked||this.$el.removeClass(zp.a.dragOver)}},{key:"onDragOver",value:function(e){this.locked||Up.a.isFileDrag(e)&&(this.$el.addClass(zp.a.dragOver),e.preventDefault())}},{key:"onDragLeave",value:function(){this.locked||this.$el.removeClass(zp.a.dragOver)}},{key:"onRender",value:function(){this.$el.append(Wp()({styles:zp.a,fileDropText:qr.a.getPhrase(this.lang,"fileDrop")}))}}])&&Kp(t.prototype,n),r&&Kp(t,r),i}(r.a.Behavior),eh=n(748),th=n(749),nh=n(133),rh=n(97),oh=n(307),ih=n(745),ah=n.n(ih),ch=n(746),uh=n.n(ch);function sh(e){return(sh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fh(e,t){return(fh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ph(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yh(e);if(t){var o=yh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hh(this,n)}}function hh(e,t){return!t||"object"!==sh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yh(e){return(yh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fh(e,t)}(u,e);var t,n,o,c=ph(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.initializeInstances(),this.bindListeners()}},{key:"name",get:function(){return"PublishLibraryBannerView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return uh.a}},{key:"behaviors",get:function(){return[{behaviorClass:nh.a,selector:".make-available"}]}},{key:"lang",get:function(){return"migrationWizard.publishLibraryBanner"}},{key:"elements",get:function(){return{makeAvailable:".make-available"}}},{key:"appLinks",get:function(){return this.isDisabled()?{}:{".make-available":{application:this.options.application,action:a.a.Shared.MAKE_LIBRARY_AVAILABLE}}}},{key:"initializeInstances",value:function(){this.migrationVideoDataService=b.a.getInstance(a.g.MigrationVideo,this)}},{key:"bindListeners",value:function(){this.listenTo(a.e.LIBRARY,"library:created",this.render),this.listenTo(a.e.LIBRARY,"library:deleted",this.onLibraryDeted),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(oh.a.LIBRARY_STATUS,"status:changed",this.destroy),this.listenTo(C.a.SHELL,r.a.EventNames.ROUTE,this.onRoute)}},{key:"onLibraryDeted",value:function(){this.libraries.length||this.$el.empty()}},{key:"requiredResources",get:function(){return{libraries:Fa.b.libraries}}},{key:"onRoute",value:function(){r.a.AppLinkHelper.getCurrentAppLink().application===a.b.MIGRATION_WIZARD&&this.render()}},{key:"isDisabled",value:function(){var e=r.a.AppLinkHelper.getCurrentAppLink();if(e.application!==a.b.MIGRATION_WIZARD)return!1;var t=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.SELECTED,a.a.MigrationWizard.REMIGRATE_VIDEO,a.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,a.a.MigrationWizard.MIGRATION_ERRORS];return!i.contains(t,e.action)}},{key:"clearTooltip",value:function(){if(this.isAttached()){var e=this.getUI("makeAvailable");e instanceof jQuery&&e.tooltip("dispose")}}},{key:"onBeforeRender",value:function(){return this.clearTooltip(),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),!(!this.customerMetadata||!this.libraries.length||this.libraries.any((function(e){return e.get("status")!==rh.a.Draft}))||pn.a.isPublishingLibraries(this.customerMetadata)||pn.a.librariesPublished(this.customerMetadata))}},{key:"viewOptions",value:function(){var e=this.isDisabled();return{styles:ah.a,disabled:e}}}])&&lh(t.prototype,n),o&&lh(t,o),u}(r.a.View),bh=n(47);function vh(e){return(vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wh(e,t,n){return(wh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=kh(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Sh(e,t){return(Sh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kh(e);if(t){var o=kh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ch(this,n)}}function Ch(e,t){return!t||"object"!==vh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kh(e){return(kh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Eh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sh(e,t)}(u,e);var t,n,o,c=Oh(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,o=[{key:"getCacheKey",value:function(e){var t="".concat(this.name),n=i.omit(e,["application","selectedNavItem"]),r=[];return i.each(i.keys(n),(function(e){r.push("".concat(e,":").concat(n[e]))})),r.length&&(r.sort(),t+=":".concat(r.join(":"))),t}}],(n=[{key:"initialize",value:function(){this.listenTo(a.e.CONFIG,"version:sync",this.renderFooter),this.listenTo(this.channelName,Fp.a.FILES_SELECTED,this.onFilesSelected),this.listenTo(a.w.VIDEO_UPLOAD,Fp.a.FILES_ADDED,this.onFilesAdded),this.configDataService=b.a.getInstance(g.a.Config,this),this.videoUploadService=b.a.getInstance(g.b.VideoUpload,this),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.handleNoIntercom),this.migrationVideoDataService=b.a.getInstance(g.a.MigrationVideo,this)}},{key:"name",get:function(){return"ManageLayoutView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Pp.a}},{key:"className",get:function(){return Ap.lockedWidth}},{key:"channelName",get:function(){return this.name}},{key:"defaults",get:function(){return{showFullHeader:!0,showTopNav:!0,allowBanner:!0,allowFileDrop:!0}}},{key:"elements",get:function(){return{alertRegion:".alert-region"}}},{key:"regions",value:function(){var e;return gh(e={},a.n.TOP_BANNER,".top-banner-region"),gh(e,a.n.POPUP,".popup-region"),gh(e,a.n.TOP_NAV,".top-nav-region"),gh(e,a.n.CONTENT,".content-region"),gh(e,a.n.LEFT_NAV,".left-nav-region"),gh(e,a.n.PAGE_HEADER,".page-header-region"),gh(e,a.n.ALERT,".alert-region"),gh(e,a.n.PAGE_FOOTER,".page-footer-region"),gh(e,a.n.HIDDEN,".hidden-region"),e}},{key:"onFilesSelected",value:function(e,t){this.videoUploadService.addFiles(e),this.logAction(e,t)}},{key:"logAction",value:function(e,t){var n={actionType:Ot.UserAction.Upload,entity:Ot.EntityType.Video,location:Ot.LocationContext.VideoUpload,workflowPhase:Ot.WorkflowPhase.Start,descriptor:A.a.mapInteractionType(t)};A.a.logUserAction(e,n)}},{key:"onFilesAdded",value:function(){var e=r.a.AppLinkHelper.getCurrentAppLink(),t=e.application===a.b.LIBRARY_EDITOR&&e.action===a.a.LibraryEditor.FOLDER,n={application:a.b.UPLOAD,action:a.a.Upload.UPLOAD_DETAILS};t&&(n.params={folderId:e.args[0]}),r.a.AppLinkHelper.trigger(n)}},{key:"behaviors",get:function(){if(this.options.allowFileDrop)return[{behaviorClass:Mp.a,channelName:this.channelName},{behaviorClass:Jp,channelName:this.channelName}]}},{key:"getContentBoxClassName",value:function(){var e=Ap.contentBox;return this.options.showLeftNav&&(e+=" ".concat(Ap.leftNavContentBox)),e}},{key:"getContentContainerClassName",value:function(){return this.options.centredContent?"d-flex justify-content-center":""}},{key:"onLayoutRequested",value:function(e){this.options=i.extend({},this.defaults,e),this.renderTopNav()}},{key:"onPopupRegionEmpty",value:function(){var e=this.getRegion(a.n.CONTENT).currentView;e?e.setTitle():this.setTitle()}},{key:"renderTopBanner",value:function(){this.options.allowBanner&&this.showChildView(a.n.TOP_BANNER,new dh({application:this.options.application}))}},{key:"renderHeader",value:function(){this.showChildView(a.n.PAGE_HEADER,new eh.PageHeaderComponent({onlyShowProfile:!this.options.showFullHeader}))}},{key:"renderTopNav",value:function(){this.options.showTopNav&&this.showChildView(a.n.TOP_NAV,new th.TopNavigationView({selected:this.options.selectedNavItem}))}},{key:"renderFooter",value:function(){var e=this.configDataService.getVersion();e&&this.showChildView(a.n.PAGE_FOOTER,new Dp({version:e}))}},{key:"showChildView",value:function(e,t,n){e===a.n.CONTENT&&$(window).scrollTop(0),wh(kh(u.prototype),"showChildView",this).call(this,e,t,n)}},{key:"handleNoIntercom",value:function(){var e=this.migrationVideoDataService.getCustomerMetadata();e&&e.get("customerMeta")!==bh.a.LibraryPublished&&this.getUI("alertRegion").removeClass(Ap.alertBoxWithIntercom)}},{key:"viewOptions",value:function(){return{styles:Ap,showLeftNav:this.options.showLeftNav,contentBoxClassName:this.getContentBoxClassName(),contentContainerClassName:this.getContentContainerClassName()}}},{key:"onRender",value:function(){this.renderTopBanner(),this.renderHeader(),this.renderTopNav(),this.renderFooter(),this.listenTo(this.getRegion(a.n.POPUP),"empty",this.onPopupRegionEmpty)}}])&&mh(t.prototype,n),o&&mh(t,o),u}(r.a.LayoutView);var _h=n(43);function Rh(e){return(Rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ph(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ah(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Th(e,t){return(Th=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jh(e);if(t){var o=jh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lh(this,n)}}function Lh(e,t){return!t||"object"!==Rh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jh(e){return(jh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Th(e,t)}(u,e);var t,n,a,c=xh(u);function u(){return Ph(this,u),c.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(Lo.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(Lo.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}},{key:"name",get:function(){return jo.b.ContextualSearch}},{key:"lang",get:function(){return"search.services"}},{key:"getSearchContext",value:function(){return this.searchContext}},{key:"onRouteChange",value:function(e,t){t.isAppRoute&&this.setSearchContext(e)}},{key:"onTypeaheadToggle",value:function(e){if(!e.open&&!this.searchContext.get("filterValue")){var t=en.a.getCurrentContext().appLink;this.setSearchContext(t)}}},{key:"setSearchContext",value:function(e){var t=this.isValidSearchContext(e);t?this.updateSearchContext(t,e.args):this.inSearchView(e)||o.Radio.channel(Lo.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"updateSearchContext",value:function(e,t){e.appLink.args=t,this.searchContext.set(e),e.setFilterValue(e,this)}},{key:"setFilterValue",value:function(e){var t={filterValue:e,title:e};this.searchContext.set(t)}},{key:"resetSearchContext",value:function(){this.searchContext.clear({silent:!0})}},{key:"isValidSearchContext",value:function(e){return this.appVariables||(this.appVariables=b.a.getInstance(_h.a.SEARCH,this)),i.find((t=this.lang,n=this.appVariables.appLinks,o=[],n.folder&&o.push({appLink:n.folder,searchTag:qr.a.getPhrase(t,"folderTag"),filterParam:"folder",setFilterValue:function(e,t){b.a.getInstance(jo.a.Library,t).getFolder(i.first(e.appLink.args).toString(),(function(e){t.setFilterValue(e.get("name")),b.a.releaseInstance(jo.a.Library)}))}}),n.series&&o.push({appLink:n.series,searchTag:qr.a.getPhrase(t,"seriesTag"),filterParam:"series",setFilterValue:function(e,t){b.a.getInstance(jo.a.Series,t).getSeries(i.first(e.appLink.args).toString(),(function(e){var n=e instanceof r.a.Model?e.get("name"):e.name;t.setFilterValue(n),b.a.releaseInstance(jo.a.Series)}))}}),o),(function(t){return e.application===t.appLink.application&&e.action===t.appLink.action}));var t,n,o}},{key:"inSearchView",value:function(e){var t=this.appVariables.appLinks.searchResults;return e.application===t.application&&e.action===t.action}}])&&Ah(t.prototype,n),a&&Ah(t,a),u}(r.a.Service),Ih=n(239);function Vh(e){return(Vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dh(e,t){return(Dh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fh(e);if(t){var o=Fh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uh(this,n)}}function Uh(e,t){return!t||"object"!==Vh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fh(e){return(Fh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Hh,zh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dh(e,t)}(i,e);var t,n,r,o=Mh(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this)}return t=i,(n=[{key:"name",get:function(){return jo.b.Notification}},{key:"initDataServices",value:function(){this.notificationDataService=b.a.getInstance(jo.a.Notification,this),this.notificationSocketService=b.a.getInstance(jo.a.NotificationSocket,this),this.userDataService=b.a.getInstance(jo.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}},{key:"bindSocketListeners",value:function(){var e=xo.a.NOTIFICATIONS;this.listenTo(Lo.b.NOTIFICATIONS_SOCKET,"".concat(e,":new:sync"),this.addNewNotification),this.listenTo(Lo.b.NOTIFICATIONS_SOCKET,"".concat(e,":count:sync"),this.updateUnreadCount),this.listenTo(Lo.b.NOTIFICATIONS,"".concat(e,":seen"),this.updateUnreadCount)}},{key:"bindAppListeners",value:function(){this.listenTo(Lo.a.NOTIFICATIONS,Ih.a.Read,this.markNotificationRead)}},{key:"getDataServices",value:function(){this.dataServicesExist()||this.initDataServices()}},{key:"dataServicesExist",value:function(){return!!this.notificationSocketService&&!!this.notificationDataService}},{key:"addNewNotification",value:function(e){var t=this;this.userDataService.getCurrentUser((function(n){t.notificationDataService.getNotifications(n.id,null,xo.a.NOTIFICATIONS,(function(t){t.add(e,{at:0})}))}))}},{key:"updateUnreadCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=k.a.get(xo.a.NOTIFICATIONS);t.set("unreadCount",e)}},{key:"getNotifications",value:function(e,t,n){var r=this;this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser((function(o){r.notificationDataService.getNotifications(o.id,e,t.toString(),n)}))}},{key:"getNotificationsMetadata",value:function(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),k.a.get(xo.a.NOTIFICATIONS)}},{key:"markNotificationsSeen",value:function(){this.notificationDataService.markSeen()}},{key:"markNotificationRead",value:function(e){this.notificationDataService.markRead(e)}},{key:"getNotificationsCursors",value:function(e){return this.notificationDataService.getNotificationsCursors(e.toString())}}])&&Bh(t.prototype,n),r&&Bh(t,r),i}(r.a.Service),qh=(Hh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}Hh(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Wh=function(e){function t(t,n){var r=this,o=this.constructor.prototype;return(r=e.call(this,t)||this).statusCode=n,r.__proto__=o,r}return qh(t,e),t}(Error),Yh=function(e){function t(t){void 0===t&&(t="A timeout occurred.");var n=this,r=this.constructor.prototype;return(n=e.call(this,t)||this).__proto__=r,n}return qh(t,e),t}(Error),Gh=function(e){function t(t){void 0===t&&(t="An abort occurred.");var n=this,r=this.constructor.prototype;return(n=e.call(this,t)||this).__proto__=r,n}return qh(t,e),t}(Error),Kh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qh=function(e,t,n){this.statusCode=e,this.statusText=t,this.content=n},Zh=function(){function e(){}return e.prototype.get=function(e,t){return this.send(Kh({},t,{method:"GET",url:e}))},e.prototype.post=function(e,t){return this.send(Kh({},t,{method:"POST",url:e}))},e.prototype.delete=function(e,t){return this.send(Kh({},t,{method:"DELETE",url:e}))},e.prototype.getCookieString=function(e){return""},e}(),$h=n(8),Xh=n(16),Jh=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ey=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ty=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},ny=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},ry=function(e){function t(t){var n=e.call(this)||this;if(n.logger=t,"undefined"==typeof fetch){var r=require;n.jar=new(r("tough-cookie").CookieJar),n.fetchType=r("node-fetch"),n.fetchType=r("fetch-cookie")(n.fetchType,n.jar),n.abortControllerType=r("abort-controller")}else n.fetchType=fetch.bind(self),n.abortControllerType=AbortController;return n}return Jh(t,e),t.prototype.send=function(e){return ty(this,void 0,void 0,(function(){var t,n,r,o,i,a,c,u=this;return ny(this,(function(s){switch(s.label){case 0:if(e.abortSignal&&e.abortSignal.aborted)throw new Gh;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");t=new this.abortControllerType,e.abortSignal&&(e.abortSignal.onabort=function(){t.abort(),n=new Gh}),r=null,e.timeout&&(o=e.timeout,r=setTimeout((function(){t.abort(),u.logger.log($h.a.Warning,"Timeout from HTTP request."),n=new Yh}),o)),s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,this.fetchType(e.url,{body:e.content,cache:"no-cache",credentials:!0===e.withCredentials?"include":"same-origin",headers:ey({"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest"},e.headers),method:e.method,mode:"cors",redirect:"manual",signal:t.signal})];case 2:return i=s.sent(),[3,5];case 3:if(a=s.sent(),n)throw n;throw this.logger.log($h.a.Warning,"Error from HTTP request. "+a+"."),a;case 4:return r&&clearTimeout(r),e.abortSignal&&(e.abortSignal.onabort=null),[7];case 5:if(!i.ok)throw new Wh(i.statusText,i.status);return[4,function(e,t){var n;switch(t){case"arraybuffer":n=e.arrayBuffer();break;case"text":n=e.text();break;case"blob":case"document":case"json":throw new Error(t+" is not supported.");default:n=e.text()}return n}(i,e.responseType)];case 6:return c=s.sent(),[2,new Qh(i.status,i.statusText,c)]}}))}))},t.prototype.getCookieString=function(e){var t="";return Xh.c.isNode&&this.jar&&this.jar.getCookies(e,(function(e,n){return t=n.join("; ")})),t},t}(Zh);var oy,iy=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ay=function(e){function t(t){var n=e.call(this)||this;return n.logger=t,n}return iy(t,e),t.prototype.send=function(e){var t=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Gh):e.method?e.url?new Promise((function(n,r){var o=new XMLHttpRequest;o.open(e.method,e.url,!0),o.withCredentials=void 0===e.withCredentials||e.withCredentials,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var i=e.headers;i&&Object.keys(i).forEach((function(e){o.setRequestHeader(e,i[e])})),e.responseType&&(o.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=function(){o.abort(),r(new Gh)}),e.timeout&&(o.timeout=e.timeout),o.onload=function(){e.abortSignal&&(e.abortSignal.onabort=null),o.status>=200&&o.status<300?n(new Qh(o.status,o.statusText,o.response||o.responseText)):r(new Wh(o.statusText,o.status))},o.onerror=function(){t.logger.log($h.a.Warning,"Error from HTTP request. "+o.status+": "+o.statusText+"."),r(new Wh(o.statusText,o.status))},o.ontimeout=function(){t.logger.log($h.a.Warning,"Timeout from HTTP request."),r(new Yh)},o.send(e.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t}(Zh),cy=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uy=function(e){function t(t){var n=e.call(this)||this;if("undefined"!=typeof fetch||Xh.c.isNode)n.httpClient=new ry(t);else{if("undefined"==typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");n.httpClient=new ay(t)}return n}return cy(t,e),t.prototype.send=function(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Gh):e.method?e.url?this.httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t.prototype.getCookieString=function(e){return this.httpClient.getCookieString(e)},t}(Zh),sy=n(747);!function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close"}(oy||(oy={}));var ly,fy=function(){function e(){this.observers=[]}return e.prototype.next=function(e){for(var t=0,n=this.observers;t<n.length;t++){n[t].next(e)}},e.prototype.error=function(e){for(var t=0,n=this.observers;t<n.length;t++){var r=n[t];r.error&&r.error(e)}},e.prototype.complete=function(){for(var e=0,t=this.observers;e<t.length;e++){var n=t[e];n.complete&&n.complete()}},e.prototype.subscribe=function(e){return this.observers.push(e),new Xh.d(this,e)},e}(),py=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},hy=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};!function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"}(ly||(ly={}));var yy,dy,by=function(){function e(e,t,n,r){var o=this;Xh.a.isRequired(e,"connection"),Xh.a.isRequired(t,"logger"),Xh.a.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=t,this.protocol=n,this.connection=e,this.reconnectPolicy=r,this.handshakeProtocol=new sy.a,this.connection.onreceive=function(e){return o.processIncomingData(e)},this.connection.onclose=function(e){return o.connectionClosed(e)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=ly.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:oy.Ping})}return e.create=function(t,n,r,o){return new e(t,n,r,o)},Object.defineProperty(e.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(e){if(this.connectionState!==ly.Disconnected&&this.connectionState!==ly.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e},enumerable:!0,configurable:!0}),e.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},e.prototype.startWithStateTransitions=function(){return py(this,void 0,void 0,(function(){var e;return hy(this,(function(t){switch(t.label){case 0:if(this.connectionState!==ly.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=ly.Connecting,this.logger.log($h.a.Debug,"Starting HubConnection."),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return t.sent(),this.connectionState=ly.Connected,this.connectionStarted=!0,this.logger.log($h.a.Debug,"HubConnection connected successfully."),[3,4];case 3:return e=t.sent(),this.connectionState=ly.Disconnected,this.logger.log($h.a.Debug,"HubConnection failed to start successfully because of error '"+e+"'."),[2,Promise.reject(e)];case 4:return[2]}}))}))},e.prototype.startInternal=function(){return py(this,void 0,void 0,(function(){var e,t,n,r=this;return hy(this,(function(o){switch(o.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,e=new Promise((function(e,t){r.handshakeResolver=e,r.handshakeRejecter=t})),[4,this.connection.start(this.protocol.transferFormat)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,5,,7]),t={protocol:this.protocol.name,version:this.protocol.version},this.logger.log($h.a.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(t))];case 3:return o.sent(),this.logger.log($h.a.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,e];case 4:if(o.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return n=o.sent(),this.logger.log($h.a.Debug,"Hub handshake failed with error '"+n+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(n)];case 6:throw o.sent(),n;case 7:return[2]}}))}))},e.prototype.stop=function(){return py(this,void 0,void 0,(function(){var e;return hy(this,(function(t){switch(t.label){case 0:return e=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:t.sent(),t.label=2;case 2:return t.trys.push([2,4,,5]),[4,e];case 3:return t.sent(),[3,5];case 4:return t.sent(),[3,5];case 5:return[2]}}))}))},e.prototype.stopInternal=function(e){return this.connectionState===ly.Disconnected?(this.logger.log($h.a.Debug,"Call to HubConnection.stop("+e+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===ly.Disconnecting?(this.logger.log($h.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=ly.Disconnecting,this.logger.log($h.a.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log($h.a.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))},e.prototype.stream=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o,i=this.replaceStreamingParams(n),a=i[0],c=i[1],u=this.createStreamInvocation(e,n,c),s=new fy;return s.cancelCallback=function(){var e=t.createCancelInvocation(u.invocationId);return delete t.callbacks[u.invocationId],o.then((function(){return t.sendWithProtocol(e)}))},this.callbacks[u.invocationId]=function(e,t){t?s.error(t):e&&(e.type===oy.Completion?e.error?s.error(new Error(e.error)):s.complete():s.next(e.item))},o=this.sendWithProtocol(u).catch((function(e){s.error(e),delete t.callbacks[u.invocationId]})),this.launchStreams(a,o),s},e.prototype.sendMessage=function(e){return this.resetKeepAliveInterval(),this.connection.send(e)},e.prototype.sendWithProtocol=function(e){return this.sendMessage(this.protocol.writeMessage(e))},e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.replaceStreamingParams(t),o=r[0],i=r[1],a=this.sendWithProtocol(this.createInvocation(e,t,!0,i));return this.launchStreams(o,a),a},e.prototype.invoke=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.replaceStreamingParams(n),i=o[0],a=o[1],c=this.createInvocation(e,n,!1,a),u=new Promise((function(e,n){t.callbacks[c.invocationId]=function(t,r){r?n(r):t&&(t.type===oy.Completion?t.error?n(new Error(t.error)):e(t.result):n(new Error("Unexpected message type: "+t.type)))};var r=t.sendWithProtocol(c).catch((function(e){n(e),delete t.callbacks[c.invocationId]}));t.launchStreams(i,r)}));return u},e.prototype.on=function(e,t){e&&t&&(e=e.toLowerCase(),this.methods[e]||(this.methods[e]=[]),-1===this.methods[e].indexOf(t)&&this.methods[e].push(t))},e.prototype.off=function(e,t){if(e){e=e.toLowerCase();var n=this.methods[e];if(n)if(t){var r=n.indexOf(t);-1!==r&&(n.splice(r,1),0===n.length&&delete this.methods[e])}else delete this.methods[e]}},e.prototype.onclose=function(e){e&&this.closedCallbacks.push(e)},e.prototype.onreconnecting=function(e){e&&this.reconnectingCallbacks.push(e)},e.prototype.onreconnected=function(e){e&&this.reconnectedCallbacks.push(e)},e.prototype.processIncomingData=function(e){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(e=this.processHandshakeResponse(e),this.receivedHandshakeResponse=!0),e)for(var t=0,n=this.protocol.parseMessages(e,this.logger);t<n.length;t++){var r=n[t];switch(r.type){case oy.Invocation:this.invokeClientMethod(r);break;case oy.StreamItem:case oy.Completion:var o=this.callbacks[r.invocationId];o&&(r.type===oy.Completion&&delete this.callbacks[r.invocationId],o(r));break;case oy.Ping:break;case oy.Close:this.logger.log($h.a.Information,"Close message received from server.");var i=r.error?new Error("Server returned an error on close: "+r.error):void 0;!0===r.allowReconnect?this.connection.stop(i):this.stopPromise=this.stopInternal(i);break;default:this.logger.log($h.a.Warning,"Invalid message type: "+r.type+".")}}this.resetTimeoutPeriod()},e.prototype.processHandshakeResponse=function(e){var t,n,r;try{r=(t=this.handshakeProtocol.parseHandshakeResponse(e))[0],n=t[1]}catch(e){var o="Error parsing handshake response: "+e;this.logger.log($h.a.Error,o);var i=new Error(o);throw this.handshakeRejecter(i),i}if(n.error){o="Server returned handshake error: "+n.error;this.logger.log($h.a.Error,o);i=new Error(o);throw this.handshakeRejecter(i),i}return this.logger.log($h.a.Debug,"Server handshake complete."),this.handshakeResolver(),r},e.prototype.resetKeepAliveInterval=function(){var e=this;this.connection.features.inherentKeepAlive||(this.cleanupPingTimer(),this.pingServerHandle=setTimeout((function(){return py(e,void 0,void 0,(function(){return hy(this,(function(e){switch(e.label){case 0:if(this.connectionState!==ly.Connected)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return e.sent(),[3,4];case 3:return e.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}}))}))}),this.keepAliveIntervalInMilliseconds))},e.prototype.resetTimeoutPeriod=function(){var e=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout((function(){return e.serverTimeout()}),this.serverTimeoutInMilliseconds))},e.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},e.prototype.invokeClientMethod=function(e){var t=this,n=this.methods[e.target.toLowerCase()];if(n){try{n.forEach((function(n){return n.apply(t,e.arguments)}))}catch(t){this.logger.log($h.a.Error,"A callback for the method "+e.target.toLowerCase()+" threw error '"+t+"'.")}if(e.invocationId){var r="Server requested a response, which is not supported in this version of the client.";this.logger.log($h.a.Error,r),this.stopPromise=this.stopInternal(new Error(r))}}else this.logger.log($h.a.Warning,"No client method with the name '"+e.target+"' found.")},e.prototype.connectionClosed=function(e){this.logger.log($h.a.Debug,"HubConnection.connectionClosed("+e+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===ly.Disconnecting?this.completeClose(e):this.connectionState===ly.Connected&&this.reconnectPolicy?this.reconnect(e):this.connectionState===ly.Connected&&this.completeClose(e)},e.prototype.completeClose=function(e){var t=this;if(this.connectionStarted){this.connectionState=ly.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach((function(n){return n.apply(t,[e])}))}catch(t){this.logger.log($h.a.Error,"An onclose callback called with error '"+e+"' threw error '"+t+"'.")}}},e.prototype.reconnect=function(e){return py(this,void 0,void 0,(function(){var t,n,r,o,i,a=this;return hy(this,(function(c){switch(c.label){case 0:if(t=Date.now(),n=0,r=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),null===(o=this.getNextRetryDelay(n++,0,r)))return this.logger.log($h.a.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(e),[2];if(this.connectionState=ly.Reconnecting,e?this.logger.log($h.a.Information,"Connection reconnecting because of error '"+e+"'."):this.logger.log($h.a.Information,"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach((function(t){return t.apply(a,[e])}))}catch(t){this.logger.log($h.a.Error,"An onreconnecting callback called with error '"+e+"' threw error '"+t+"'.")}if(this.connectionState!==ly.Reconnecting)return this.logger.log($h.a.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}c.label=1;case 1:return null===o?[3,7]:(this.logger.log($h.a.Information,"Reconnect attempt number "+n+" will start in "+o+" ms."),[4,new Promise((function(e){a.reconnectDelayHandle=setTimeout(e,o)}))]);case 2:if(c.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==ly.Reconnecting)return this.logger.log($h.a.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(c.sent(),this.connectionState=ly.Connected,this.logger.log($h.a.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach((function(e){return e.apply(a,[a.connection.connectionId])}))}catch(e){this.logger.log($h.a.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+e+"'.")}return[2];case 5:return i=c.sent(),this.logger.log($h.a.Information,"Reconnect attempt failed because of error '"+i+"'."),this.connectionState!==ly.Reconnecting?(this.logger.log($h.a.Debug,"Connection left the reconnecting state during reconnect attempt. Done reconnecting."),[2]):(r=i instanceof Error?i:new Error(i.toString()),o=this.getNextRetryDelay(n++,Date.now()-t,r),[3,6]);case 6:return[3,1];case 7:return this.logger.log($h.a.Information,"Reconnect retries have been exhausted after "+(Date.now()-t)+" ms and "+n+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}}))}))},e.prototype.getNextRetryDelay=function(e,t,n){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(n){return this.logger.log($h.a.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+e+", "+t+") threw error '"+n+"'."),null}},e.prototype.cancelCallbacksWithError=function(e){var t=this.callbacks;this.callbacks={},Object.keys(t).forEach((function(n){(0,t[n])(null,e)}))},e.prototype.cleanupPingTimer=function(){this.pingServerHandle&&clearTimeout(this.pingServerHandle)},e.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},e.prototype.createInvocation=function(e,t,n,r){if(n)return 0!==r.length?{arguments:t,streamIds:r,target:e,type:oy.Invocation}:{arguments:t,target:e,type:oy.Invocation};var o=this.invocationId;return this.invocationId++,0!==r.length?{arguments:t,invocationId:o.toString(),streamIds:r,target:e,type:oy.Invocation}:{arguments:t,invocationId:o.toString(),target:e,type:oy.Invocation}},e.prototype.launchStreams=function(e,t){var n=this;if(0!==e.length){t||(t=Promise.resolve());var r=function(r){e[r].subscribe({complete:function(){t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r))}))},error:function(e){var o;o=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r,o))}))},next:function(e){t=t.then((function(){return n.sendWithProtocol(n.createStreamItemMessage(r,e))}))}})};for(var o in e)r(o)}},e.prototype.replaceStreamingParams=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var o=e[r];if(this.isObservable(o)){var i=this.invocationId;this.invocationId++,t[i]=o,n.push(i.toString()),e.splice(r,1)}}return[t,n]},e.prototype.isObservable=function(e){return e&&e.subscribe&&"function"==typeof e.subscribe},e.prototype.createStreamInvocation=function(e,t,n){var r=this.invocationId;return this.invocationId++,0!==n.length?{arguments:t,invocationId:r.toString(),streamIds:n,target:e,type:oy.StreamInvocation}:{arguments:t,invocationId:r.toString(),target:e,type:oy.StreamInvocation}},e.prototype.createCancelInvocation=function(e){return{invocationId:e,type:oy.CancelInvocation}},e.prototype.createStreamItemMessage=function(e,t){return{invocationId:e,item:t,type:oy.StreamItem}},e.prototype.createCompletionMessage=function(e,t,n){return t?{error:t,invocationId:e,type:oy.Completion}:{invocationId:e,result:n,type:oy.Completion}},e}(),vy=[0,2e3,1e4,3e4,null],gy=function(){function e(e){this.retryDelays=void 0!==e?e.concat([null]):vy}return e.prototype.nextRetryDelayInMilliseconds=function(e){return this.retryDelays[e.previousRetryCount]},e}();!function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"}(yy||(yy={})),function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"}(dy||(dy={}));var my=function(){function e(){this.isAborted=!1,this.onabort=null}return e.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(e.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),e}(),wy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sy=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Oy=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Cy=function(){function e(e,t,n,r,o,i){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.pollAbort=new my,this.logMessageContent=r,this.withCredentials=o,this.headers=i,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(e.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),e.prototype.connect=function(e,t){return Sy(this,void 0,void 0,(function(){var n,r,o,i,a,c,u,s,l;return Oy(this,(function(f){switch(f.label){case 0:if(Xh.a.isRequired(e,"url"),Xh.a.isRequired(t,"transferFormat"),Xh.a.isIn(t,dy,"transferFormat"),this.url=e,this.logger.log($h.a.Trace,"(LongPolling transport) Connecting."),t===dy.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return r=Object(Xh.g)(),o=r[0],i=r[1],a=wy(((n={})[o]=i,n),this.headers),c={abortSignal:this.pollAbort.signal,headers:a,timeout:1e5,withCredentials:this.withCredentials},t===dy.Binary&&(c.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return u=f.sent(),this.updateHeaderToken(c,u),s=e+"&_="+Date.now(),this.logger.log($h.a.Trace,"(LongPolling transport) polling: "+s+"."),[4,this.httpClient.get(s,c)];case 2:return 200!==(l=f.sent()).statusCode?(this.logger.log($h.a.Error,"(LongPolling transport) Unexpected response code: "+l.statusCode+"."),this.closeError=new Wh(l.statusText||"",l.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,c),[2]}}))}))},e.prototype.getAccessToken=function(){return Sy(this,void 0,void 0,(function(){return Oy(this,(function(e){switch(e.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,e.sent()];case 2:return[2,null]}}))}))},e.prototype.updateHeaderToken=function(e,t){e.headers||(e.headers={}),t?e.headers.Authorization="Bearer "+t:e.headers.Authorization&&delete e.headers.Authorization},e.prototype.poll=function(e,t){return Sy(this,void 0,void 0,(function(){var n,r,o,i;return Oy(this,(function(a){switch(a.label){case 0:a.trys.push([0,,8,9]),a.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:n=a.sent(),this.updateHeaderToken(t,n),a.label=3;case 3:return a.trys.push([3,5,,6]),r=e+"&_="+Date.now(),this.logger.log($h.a.Trace,"(LongPolling transport) polling: "+r+"."),[4,this.httpClient.get(r,t)];case 4:return 204===(o=a.sent()).statusCode?(this.logger.log($h.a.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==o.statusCode?(this.logger.log($h.a.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode+"."),this.closeError=new Wh(o.statusText||"",o.statusCode),this.running=!1):o.content?(this.logger.log($h.a.Trace,"(LongPolling transport) data received. "+Object(Xh.f)(o.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(o.content)):this.logger.log($h.a.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return i=a.sent(),this.running?i instanceof Yh?this.logger.log($h.a.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=i,this.running=!1):this.logger.log($h.a.Trace,"(LongPolling transport) Poll errored after shutdown: "+i.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log($h.a.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}}))}))},e.prototype.send=function(e){return Sy(this,void 0,void 0,(function(){return Oy(this,(function(t){return this.running?[2,Object(Xh.i)(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent,this.withCredentials,this.headers)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return Sy(this,void 0,void 0,(function(){var e,t,n,r,o,i;return Oy(this,(function(a){switch(a.label){case 0:this.logger.log($h.a.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),a.label=1;case 1:return a.trys.push([1,,5,6]),[4,this.receiving];case 2:return a.sent(),this.logger.log($h.a.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),e={},t=Object(Xh.g)(),n=t[0],r=t[1],e[n]=r,o={headers:wy({},e,this.headers),withCredentials:this.withCredentials},[4,this.getAccessToken()];case 3:return i=a.sent(),this.updateHeaderToken(o,i),[4,this.httpClient.delete(this.url,o)];case 4:return a.sent(),this.logger.log($h.a.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log($h.a.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}}))}))},e.prototype.raiseOnClose=function(){if(this.onclose){var e="(LongPolling transport) Firing onclose event.";this.closeError&&(e+=" Error: "+this.closeError),this.logger.log($h.a.Trace,e),this.onclose(this.closeError)}},e}(),ky=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ey=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},_y=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Ry=function(){function e(e,t,n,r,o,i,a){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.logMessageContent=r,this.withCredentials=i,this.eventSourceConstructor=o,this.headers=a,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return Ey(this,void 0,void 0,(function(){var n,r=this;return _y(this,(function(o){switch(o.label){case 0:return Xh.a.isRequired(e,"url"),Xh.a.isRequired(t,"transferFormat"),Xh.a.isIn(t,dy,"transferFormat"),this.logger.log($h.a.Trace,"(SSE transport) Connecting."),this.url=e,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i=!1;if(t===dy.Text){var a;if(Xh.c.isBrowser||Xh.c.isWebWorker)a=new r.eventSourceConstructor(e,{withCredentials:r.withCredentials});else{var c=r.httpClient.getCookieString(e),u={};u.Cookie=c;var s=Object(Xh.g)(),l=s[0],f=s[1];u[l]=f,a=new r.eventSourceConstructor(e,{withCredentials:r.withCredentials,headers:ky({},u,r.headers)})}try{a.onmessage=function(e){if(r.onreceive)try{r.logger.log($h.a.Trace,"(SSE transport) data received. "+Object(Xh.f)(e.data,r.logMessageContent)+"."),r.onreceive(e.data)}catch(e){return void r.close(e)}},a.onerror=function(e){var t=new Error(e.data||"Error occurred");i?r.close(t):o(t)},a.onopen=function(){r.logger.log($h.a.Information,"SSE connected to "+r.url),r.eventSource=a,i=!0,n()}}catch(e){return void o(e)}}else o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))]}}))}))},e.prototype.send=function(e){return Ey(this,void 0,void 0,(function(){return _y(this,(function(t){return this.eventSource?[2,Object(Xh.i)(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent,this.withCredentials,this.headers)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return this.close(),Promise.resolve()},e.prototype.close=function(e){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(e))},e}(),Py=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ay=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Ty=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},xy=function(){function e(e,t,n,r,o,i){this.logger=n,this.accessTokenFactory=t,this.logMessageContent=r,this.webSocketConstructor=o,this.httpClient=e,this.onreceive=null,this.onclose=null,this.headers=i}return e.prototype.connect=function(e,t){return Ay(this,void 0,void 0,(function(){var n,r=this;return Ty(this,(function(o){switch(o.label){case 0:return Xh.a.isRequired(e,"url"),Xh.a.isRequired(t,"transferFormat"),Xh.a.isIn(t,dy,"transferFormat"),this.logger.log($h.a.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i;e=e.replace(/^http/,"ws");var a=r.httpClient.getCookieString(e),c=!1;if(Xh.c.isNode){var u={},s=Object(Xh.g)(),l=s[0],f=s[1];u[l]=f,a&&(u.Cookie=""+a),i=new r.webSocketConstructor(e,void 0,{headers:Py({},u,r.headers)})}i||(i=new r.webSocketConstructor(e)),t===dy.Binary&&(i.binaryType="arraybuffer"),i.onopen=function(t){r.logger.log($h.a.Information,"WebSocket connected to "+e+"."),r.webSocket=i,c=!0,n()},i.onerror=function(e){var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),o(t)},i.onmessage=function(e){if(r.logger.log($h.a.Trace,"(WebSockets transport) data received. "+Object(Xh.f)(e.data,r.logMessageContent)+"."),r.onreceive)try{r.onreceive(e.data)}catch(e){return void r.close(e)}},i.onclose=function(e){if(c)r.close(e);else{var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),o(t)}}}))]}}))}))},e.prototype.send=function(e){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log($h.a.Trace,"(WebSockets transport) sending data. "+Object(Xh.f)(e,this.logMessageContent)+"."),this.webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},e.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},e.prototype.close=function(e){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log($h.a.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this.isCloseEvent(e)||!1!==e.wasClean&&1e3===e.code?e instanceof Error?this.onclose(e):this.onclose():this.onclose(new Error("WebSocket closed with status code: "+e.code+" ("+e.reason+").")))},e.prototype.isCloseEvent=function(e){return e&&"boolean"==typeof e.wasClean&&"number"==typeof e.code},e}(),Ly=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jy=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Ny=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Iy=function(){function e(e,t){if(void 0===t&&(t={}),this.features={},this.negotiateVersion=1,Xh.a.isRequired(e,"url"),this.logger=Object(Xh.e)(t.logger),this.baseUrl=this.resolveUrl(e),(t=t||{}).logMessageContent=void 0!==t.logMessageContent&&t.logMessageContent,"boolean"!=typeof t.withCredentials&&void 0!==t.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");t.withCredentials=void 0===t.withCredentials||t.withCredentials;var n=null,r=null;if(Xh.c.isNode){var o=require;n=o("ws"),r=o("eventsource")}Xh.c.isNode||"undefined"==typeof WebSocket||t.WebSocket?Xh.c.isNode&&!t.WebSocket&&n&&(t.WebSocket=n):t.WebSocket=WebSocket,Xh.c.isNode||"undefined"==typeof EventSource||t.EventSource?Xh.c.isNode&&!t.EventSource&&void 0!==r&&(t.EventSource=r):t.EventSource=EventSource,this.httpClient=t.httpClient||new uy(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=t,this.onreceive=null,this.onclose=null}return e.prototype.start=function(e){return jy(this,void 0,void 0,(function(){var t;return Ny(this,(function(n){switch(n.label){case 0:return e=e||dy.Binary,Xh.a.isIn(e,dy,"transferFormat"),this.logger.log($h.a.Debug,"Starting connection with transfer format '"+dy[e]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting",this.startInternalPromise=this.startInternal(e),[4,this.startInternalPromise]);case 1:return n.sent(),"Disconnecting"!==this.connectionState?[3,3]:(t="Failed to start the HttpConnection before stop() was called.",this.logger.log($h.a.Error,t),[4,this.stopPromise]);case 2:return n.sent(),[2,Promise.reject(new Error(t))];case 3:if("Connected"!==this.connectionState)return t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!",this.logger.log($h.a.Error,t),[2,Promise.reject(new Error(t))];n.label=4;case 4:return this.connectionStarted=!0,[2]}}))}))},e.prototype.send=function(e){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new Vy(this.transport)),this.sendQueue.send(e))},e.prototype.stop=function(e){return jy(this,void 0,void 0,(function(){var t=this;return Ny(this,(function(n){switch(n.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log($h.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log($h.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise((function(e){t.stopPromiseResolver=e})),[4,this.stopInternal(e)]);case 1:return n.sent(),[4,this.stopPromise];case 2:return n.sent(),[2]}}))}))},e.prototype.stopInternal=function(e){return jy(this,void 0,void 0,(function(){var t;return Ny(this,(function(n){switch(n.label){case 0:this.stopError=e,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:return n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:if(!this.transport)return[3,9];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return n.sent(),[3,8];case 7:return t=n.sent(),this.logger.log($h.a.Error,"HttpConnection.transport.stop() threw error '"+t+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log($h.a.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),this.stopConnection(),n.label=10;case 10:return[2]}}))}))},e.prototype.startInternal=function(e){return jy(this,void 0,void 0,(function(){var t,n,r,o,i,a;return Ny(this,(function(c){switch(c.label){case 0:t=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,c.label=1;case 1:return c.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==yy.WebSockets?[3,3]:(this.transport=this.constructTransport(yy.WebSockets),[4,this.startTransport(t,e)]):[3,5];case 2:return c.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,r=0,o=function(){var e;return Ny(this,(function(o){switch(o.label){case 0:return[4,i.getNegotiationResponse(t)];case 1:if(n=o.sent(),"Disconnecting"===i.connectionState||"Disconnected"===i.connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return n.url&&(t=n.url),n.accessToken&&(e=n.accessToken,i.accessTokenFactory=function(){return e}),r++,[2]}}))},i=this,c.label=6;case 6:return[5,o()];case 7:c.sent(),c.label=8;case 8:if(n.url&&r<100)return[3,6];c.label=9;case 9:if(100===r&&n.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(t,this.options.transport,n,e)];case 10:c.sent(),c.label=11;case 11:return this.transport instanceof Cy&&(this.features.inherentKeepAlive=!0),"Connecting"===this.connectionState&&(this.logger.log($h.a.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return a=c.sent(),this.logger.log($h.a.Error,"Failed to start the connection: "+a),this.connectionState="Disconnected",this.transport=void 0,[2,Promise.reject(a)];case 13:return[2]}}))}))},e.prototype.getNegotiationResponse=function(e){return jy(this,void 0,void 0,(function(){var t,n,r,o,i,a,c,u,s;return Ny(this,(function(l){switch(l.label){case 0:return t={},this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=l.sent())&&(t.Authorization="Bearer "+n),l.label=2;case 2:r=Object(Xh.g)(),o=r[0],i=r[1],t[o]=i,a=this.resolveNegotiateUrl(e),this.logger.log($h.a.Debug,"Sending negotiation request: "+a+"."),l.label=3;case 3:return l.trys.push([3,5,,6]),[4,this.httpClient.post(a,{content:"",headers:Ly({},t,this.options.headers),withCredentials:this.options.withCredentials})];case 4:return 200!==(c=l.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate '"+c.statusCode+"'"))]:((!(u=JSON.parse(c.content)).negotiateVersion||u.negotiateVersion<1)&&(u.connectionToken=u.connectionId),[2,u]);case 5:return s=l.sent(),this.logger.log($h.a.Error,"Failed to complete negotiation with the server: "+s),[2,Promise.reject(s)];case 6:return[2]}}))}))},e.prototype.createConnectUrl=function(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+"id="+t:e},e.prototype.createTransport=function(e,t,n,r){return jy(this,void 0,void 0,(function(){var o,i,a,c,u,s,l,f,p,h,y;return Ny(this,(function(d){switch(d.label){case 0:return o=this.createConnectUrl(e,n.connectionToken),this.isITransport(t)?(this.logger.log($h.a.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,[4,this.startTransport(o,r)]):[3,2];case 1:return d.sent(),this.connectionId=n.connectionId,[2];case 2:i=[],a=n.availableTransports||[],c=n,u=0,s=a,d.label=3;case 3:return u<s.length?(l=s[u],(f=this.resolveTransportOrError(l,t,r))instanceof Error?(i.push(l.transport+" failed: "+f),[3,12]):[3,4]):[3,13];case 4:if(!this.isITransport(f))return[3,12];if(this.transport=f,c)return[3,9];d.label=5;case 5:return d.trys.push([5,7,,8]),[4,this.getNegotiationResponse(e)];case 6:return c=d.sent(),[3,8];case 7:return p=d.sent(),[2,Promise.reject(p)];case 8:o=this.createConnectUrl(e,c.connectionToken),d.label=9;case 9:return d.trys.push([9,11,,12]),[4,this.startTransport(o,r)];case 10:return d.sent(),this.connectionId=c.connectionId,[2];case 11:return h=d.sent(),this.logger.log($h.a.Error,"Failed to start the transport '"+l.transport+"': "+h),c=void 0,i.push(l.transport+" failed: "+h),"Connecting"!==this.connectionState?(y="Failed to select transport before stop() was called.",this.logger.log($h.a.Debug,y),[2,Promise.reject(new Error(y))]):[3,12];case 12:return u++,[3,3];case 13:return i.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+i.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}}))}))},e.prototype.constructTransport=function(e){switch(e){case yy.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new xy(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket,this.options.headers||{});case yy.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Ry(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource,this.options.withCredentials,this.options.headers||{});case yy.LongPolling:return new Cy(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.withCredentials,this.options.headers||{});default:throw new Error("Unknown transport: "+e+".")}},e.prototype.startTransport=function(e,t){var n=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(e){return n.stopConnection(e)},this.transport.connect(e,t)},e.prototype.resolveTransportOrError=function(e,t,n){var r=yy[e.transport];if(null==r)return this.logger.log($h.a.Debug,"Skipping transport '"+e.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+e.transport+"' because it is not supported by this client.");if(!function(e,t){return!e||0!=(t&e)}(t,r))return this.logger.log($h.a.Debug,"Skipping transport '"+yy[r]+"' because it was disabled by the client."),new Error("'"+yy[r]+"' is disabled by the client.");if(!(e.transferFormats.map((function(e){return dy[e]})).indexOf(n)>=0))return this.logger.log($h.a.Debug,"Skipping transport '"+yy[r]+"' because it does not support the requested transfer format '"+dy[n]+"'."),new Error("'"+yy[r]+"' does not support "+dy[n]+".");if(r===yy.WebSockets&&!this.options.WebSocket||r===yy.ServerSentEvents&&!this.options.EventSource)return this.logger.log($h.a.Debug,"Skipping transport '"+yy[r]+"' because it is not supported in your environment.'"),new Error("'"+yy[r]+"' is not supported in your environment.");this.logger.log($h.a.Debug,"Selecting transport '"+yy[r]+"'.");try{return this.constructTransport(r)}catch(e){return e}},e.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},e.prototype.stopConnection=function(e){var t=this;if(this.logger.log($h.a.Debug,"HttpConnection.stopConnection("+e+") called while in state "+this.connectionState+"."),this.transport=void 0,e=this.stopError||e,this.stopError=void 0,"Disconnected"!==this.connectionState){if("Connecting"===this.connectionState)throw this.logger.log($h.a.Warning,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection is still in the connecting state."),new Error("HttpConnection.stopConnection("+e+") was called while the connection is still in the connecting state.");if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),e?this.logger.log($h.a.Error,"Connection disconnected with error '"+e+"'."):this.logger.log($h.a.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch((function(e){t.logger.log($h.a.Error,"TransportSendQueue.stop() threw error '"+e+"'.")})),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this.logger.log($h.a.Error,"HttpConnection.onclose("+e+") threw error '"+t+"'.")}}}else this.logger.log($h.a.Debug,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection is already in the disconnected state.")},e.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!Xh.c.isBrowser||!window.document)throw new Error("Cannot resolve '"+e+"'.");var t=window.document.createElement("a");return t.href=e,this.logger.log($h.a.Information,"Normalizing '"+e+"' to '"+t.href+"'."),t.href},e.prototype.resolveNegotiateUrl=function(e){var t=e.indexOf("?"),n=e.substring(0,-1===t?e.length:t);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",-1===(n+=-1===t?"":e.substring(t)).indexOf("negotiateVersion")&&(n+=-1===t?"?":"&",n+="negotiateVersion="+this.negotiateVersion),n},e}();var Vy=function(){function e(e){this.transport=e,this.buffer=[],this.executing=!0,this.sendBufferedData=new By,this.transportResult=new By,this.sendLoopPromise=this.sendLoop()}return e.prototype.send=function(e){return this.bufferData(e),this.transportResult||(this.transportResult=new By),this.transportResult.promise},e.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},e.prototype.bufferData=function(e){if(this.buffer.length&&typeof this.buffer[0]!=typeof e)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof e);this.buffer.push(e),this.sendBufferedData.resolve()},e.prototype.sendLoop=function(){return jy(this,void 0,void 0,(function(){var t,n,r;return Ny(this,(function(o){switch(o.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(o.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new By,t=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):e.concatBuffers(this.buffer),this.buffer.length=0,o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return o.sent(),t.resolve(),[3,5];case 4:return r=o.sent(),t.reject(r),[3,5];case 5:return[3,0];case 6:return[2]}}))}))},e.concatBuffers=function(e){for(var t=e.map((function(e){return e.byteLength})).reduce((function(e,t){return e+t})),n=new Uint8Array(t),r=0,o=0,i=e;o<i.length;o++){var a=i[o];n.set(new Uint8Array(a),r),r+=a.byteLength}return n.buffer},e}(),By=function(){function e(){var e=this;this.promise=new Promise((function(t,n){var r;return r=[t,n],e.resolver=r[0],e.rejecter=r[1],r}))}return e.prototype.resolve=function(){this.resolver()},e.prototype.reject=function(e){this.rejecter(e)},e}(),Dy=n(114),My=n(123),Uy=function(){function e(){this.name="json",this.version=1,this.transferFormat=dy.Text}return e.prototype.parseMessages=function(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=Dy.a.instance);for(var n=[],r=0,o=My.a.parse(e);r<o.length;r++){var i=o[r],a=JSON.parse(i);if("number"!=typeof a.type)throw new Error("Invalid payload.");switch(a.type){case oy.Invocation:this.isInvocationMessage(a);break;case oy.StreamItem:this.isStreamItemMessage(a);break;case oy.Completion:this.isCompletionMessage(a);break;case oy.Ping:case oy.Close:break;default:t.log($h.a.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n},e.prototype.writeMessage=function(e){return My.a.write(JSON.stringify(e))},e.prototype.isInvocationMessage=function(e){this.assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this.assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")},e.prototype.isStreamItemMessage=function(e){if(this.assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")},e.prototype.isCompletionMessage=function(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this.assertNotEmptyString(e.error,"Invalid payload for Completion message."),this.assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")},e.prototype.assertNotEmptyString=function(e,t){if("string"!=typeof e||""===e)throw new Error(t)},e}(),Fy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hy={trace:$h.a.Trace,debug:$h.a.Debug,info:$h.a.Information,information:$h.a.Information,warn:$h.a.Warning,warning:$h.a.Warning,error:$h.a.Error,critical:$h.a.Critical,none:$h.a.None};var zy=function(){function e(){}return e.prototype.configureLogging=function(e){if(Xh.a.isRequired(e,"logging"),void 0!==e.log)this.logger=e;else if("string"==typeof e){var t=function(e){var t=Hy[e.toLowerCase()];if(void 0!==t)return t;throw new Error("Unknown log level: "+e)}(e);this.logger=new Xh.b(t)}else this.logger=new Xh.b(e);return this},e.prototype.withUrl=function(e,t){return Xh.a.isRequired(e,"url"),Xh.a.isNotEmpty(e,"url"),this.url=e,this.httpConnectionOptions=Fy({},this.httpConnectionOptions,"object"==typeof t?t:{transport:t}),this},e.prototype.withHubProtocol=function(e){return Xh.a.isRequired(e,"protocol"),this.protocol=e,this},e.prototype.withAutomaticReconnect=function(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new gy(e):this.reconnectPolicy=e:this.reconnectPolicy=new gy,this},e.prototype.build=function(){var e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var t=new Iy(this.url,e);return by.create(t,this.logger||Dy.a.instance,this.protocol||new Uy,this.reconnectPolicy)},e}();function qy(e){return(qy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wy(e){return function(e){if(Array.isArray(e))return Yy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Yy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yy(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ky(e,t){return(Ky=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$y(e);if(t){var o=$y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zy(this,n)}}function Zy(e,t){return!t||"object"!==qy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $y(e){return($y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xy(e){return(Xy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ed(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function td(e,t){return(td=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=od(e);if(t){var o=od(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rd(this,n)}}function rd(e,t){return!t||"object"!==Xy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function od(e){return(od=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var id=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&td(e,t)}(i,e);var t,n,r,o=nd(i);function i(){return Jy(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return v.a.Notifications}}])&&ed(t.prototype,n),r&&ed(t,r),i}(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ky(e,t)}(i,e);var t,n,r,o=Qy(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).subscribeEvent="subscribe",t.reconnectTimeout=5e3,t.reconnectAttempts=100,t.reconnectTries=0,t.connection=t.createConnection(e),t.authEndpoint=e.authEndpoint,t.setProviderOptions(e),t.attachSocketEvents(),!1===e.lazy&&t.openConnection(),t}return t=i,(n=[{key:"setProviderOptions",value:function(e){e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}},{key:"openConnection",value:function(){if(!this.isConnectedOrConnecting())return this.setConnectionState(ly.Connecting),this.connect()}},{key:"connect",value:function(){var e=this;return $.when(this.getConnectionToken(),this.connection.start()).then((function(t){return e.start.apply(e,t)}),(function(t){return e.onConnectionError.apply(e,t)}))}},{key:"start",value:function(e){var t=this;return this.connection.invoke(this.subscribeEvent,e.token).then((function(){return t.setConnectionState(ly.Connected)})).catch((function(e){return t.onConnectionError(e)}))}},{key:"stop",value:function(){if(this.isConnectedOrConnecting())return this.connection.stop()}},{key:"attachSocketEvents",value:function(){var e=this;this.connection.onclose((function(){return e.onConnectionError})),this.connection.onreconnected((function(){return e.onReconnect}))}},{key:"onReconnect",value:function(){this.reconnectTries=0}},{key:"onConnectionError",value:function(e){var t=this;e?console.log("Connection Error. Reason: ".concat(e)):console.log("Connection Error."),this.setConnectionState(ly.Disconnected),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout((function(){return t.reconnectTries++,t.openConnection()}),this.reconnectTimeout||5e3)}},{key:"createConnection",value:function(e){var t=new zy,n=an.a.removeTrailingSlash(e.endpoint),r="".concat(n,"/hubs/").concat(e.hubName),o={logger:$h.a.Error};return e.logging&&(o.logger=$h.a.Debug),t.withUrl(r,o).build()}},{key:"getConnectionToken",value:function(){var e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}},{key:"setConnectionState",value:function(e){e===ly.Connected&&console.log("Connected!"),e===ly.Disconnected&&console.log("Disconnected!"),this.connectionState=e}},{key:"isConnectedOrConnecting",value:function(){return this.connectionState===ly.Connecting||this.connectionState===ly.Connected||this.connectionState===ly.Reconnecting}},{key:"create",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"read",value:function(e,t){this.openConnection(),this.subscribe(e,t)}},{key:"update",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"delete",value:function(e,t){this.openConnection(),this.rpc(e,null,t)}},{key:"parseError",value:function(){return go.a}},{key:"rpc",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.connection.invoke(e,t).then((function(e){return r.trigger.apply(r,[o].concat(Wy(e)))})).catch((function(e){return r.trigger.apply(r,[i].concat(Wy(e)))}))}},{key:"subscribe",value:function(e,t){var n=t.channel,r=t.successEvent;this.connection.on(e,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];n.trigger.apply(n,[r].concat(t))}))}}])&&Gy(t.prototype,n),r&&Gy(t,r),i}(B.Object)),ad=n(308),cd=n(36);function ud(e){return(ud="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ld(e,t){return(ld=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hd(e);if(t){var o=hd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pd(this,n)}}function pd(e,t){return!t||"object"!==ud(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hd(e){return(hd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ld(e,t)}(i,e);var t,n,r,o=fd(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,qr.a.getPhrase("upload.errors.noLibrariesUpload","title"))}return t=i,(n=[{key:"name",get:function(){return"NoLibrariesUploadError"}},{key:"dialogOptions",get:function(){return{title:qr.a.getPhrase("upload.errors.noLibrariesUpload","heading"),text:qr.a.getPhrase("upload.errors.noLibrariesUpload","body"),buttons:[{text:qr.a.getPhrase("upload.errors.noLibrariesUpload","okay"),className:"btn btn-primary",close:!0}]}}}])&&sd(t.prototype,n),r&&sd(t,r),i}(cd.a);function dd(e){return(dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gd(e,t,n){return(gd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Od(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function md(e,t){return(md=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Od(e);if(t){var o=Od(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sd(this,n)}}function Sd(e,t){return!t||"object"!==dd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Od(e){return(Od=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Cd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&md(e,t)}(c,e);var t,n,o,i=wd(c);function c(){return bd(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"addFiles",value:function(e){var t=this;b.a.getInstance(a.g.Library).getLibraries((function(n){b.a.releaseInstance(a.g.Library),n&&n.length?gd(Od(c.prototype),"addFiles",t).call(t,e):r.a.ErrorHelper.throw(new yd)}))}}])&&vd(t.prototype,n),o&&vd(t,o),c}(ad.a);function kd(e){return(kd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ed(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rd(e,t,n){return t&&_d(e.prototype,t),n&&_d(e,n),e}function Pd(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ad(e,t)}function Ad(e,t){return(Ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Td(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ld(e);if(t){var o=Ld(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xd(this,n)}}function xd(e,t){return!t||"object"!==kd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ld(e){return(Ld=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var jd=function(e){Pd(n,e);var t=Td(n);function n(){return Ed(this,n),t.apply(this,arguments)}return Rd(n,[{key:"idAttribute",get:function(){return"masterVideoId"}}]),n}(r.a.Model),Nd=function(e){Pd(n,e);var t=Td(n);function n(){return Ed(this,n),t.apply(this,arguments)}return Rd(n,[{key:"model",get:function(){return jd}}]),n}(r.a.Collection),Id=n(122);function Vd(e){return(Vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Md(e,t){return(Md=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ud(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hd(e);if(t){var o=Hd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fd(this,n)}}function Fd(e,t){return!t||"object"!==Vd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Hd(e){return(Hd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Md(e,t)}(u,e);var t,n,a,c=Ud(u);function u(){return Bd(this,u),c.apply(this,arguments)}return t=u,(n=[{key:"name",get:function(){return jo.b.PendingItems}},{key:"channelName",get:function(){return Lo.c.PENDING_ITEMS}},{key:"initialize",value:function(){this.videoDataService=b.a.getInstance(jo.a.Video,this),this.videoUploadDataService=b.a.getInstance(jo.a.VideoUpload,this)}},{key:"clearPendingItem",value:function(e,t){var n=this;switch(e.get("pendingProcessStatus")){case Id.a.Completed:case Id.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.updateViewModel(),n.videoDataService.clearVideoCache(),i.isFunction(t)&&t()}));break;case Id.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.videoDataService.clearVideoCache(),n.updateViewModel(),i.isFunction(t)&&t()}))}}},{key:"forceFetchPendingItems",value:function(e){this.fetchPendingItems(e)}},{key:"retryPendingItem",value:function(e,t){var n=this;this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],(function(){n.fetchPendingItems({resetTimeout:!1,callback:t})}))}},{key:"itemStatusChanged",value:function(){o.Radio.channel(this.channelName).trigger(Fp.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}},{key:"getPendingItems",value:function(){var e=this;return this.pendingItems||(this.pendingItems=new Nd,this.listenTo(this.pendingItems,"change:foregroundComplete",(function(t){t.get("foregroundComplete")&&(e.itemStatusChanged(),t.get("video")&&o.Radio.channel(e.channelName).trigger(Fp.a.PENDING_ITEM_READY_TO_WATCH,t))})),this.listenTo(this.pendingItems,"remove",(function(t){t.get("clearing")||e.videoUploadDataService.getPendingItem(t.get("pendingProcessId"),(function(t){t.get("status")===Id.a.Completed&&e.itemStatusChanged()}))})),this.fetchPendingItems()),this.pendingItems}},{key:"fetchPendingItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resetTimeout:!0};this.isDestroyed()||this.videoUploadDataService.getPendingItems((function(n){var o=i.map(n,(function(e){return e.masterVideoId.toString()})),a=function(r){i.each(n,(function(e){var t=r.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===rh.a.Processing&&t.set("status",rh.a.Published))})),e.pendingItems.set(n),e.updateViewModel(),t.resetTimeout&&window.setTimeout(i.bind(e.fetchPendingItems,e),e.getTimeoutLength()),i.isFunction(t.callback)&&t.callback()};o.length?e.videoDataService.getVideos(o,a):a(new r.a.Collection)}))}},{key:"updateViewModel",value:function(){var e=k.a.get("process:progress");if(this.pendingItems&&this.pendingItems.length){var t=this.pendingItems.where((function(e){return e.get("pendingProcessStatus")>=0})),n=0;i.each(t,(function(e){return n+=e.get("foregroundProgress")}));var r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}else e.set({progress:0,items:0})}},{key:"getTimeoutLength",value:function(){return this.pendingItems.any((function(e){return e.get("pendingProcessStatus")===Id.a.Processing}))?5e3:3e4}}])&&Dd(t.prototype,n),a&&Dd(t,a),u}(r.a.Service),qd=n(99);function Wd(e){return(Wd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kd(e,t,n){return(Kd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Xd(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Qd(e,t){return(Qd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xd(e);if(t){var o=Xd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $d(this,n)}}function $d(e,t){return!t||"object"!==Wd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xd(e){return(Xd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qd(e,t)}(i,e);var t,n,r,o=Zd(i);function i(){return Yd(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){Kd(Xd(i.prototype),"initialize",this).call(this),this.alertService=b.a.getInstance(a.x.Alerts,this),this.listenTo(this.channelName,Fp.a.PENDING_ITEM_READY_TO_WATCH,this.onReadyToWatch)}},{key:"lang",get:function(){return"upload.services"}},{key:"onReadyToWatch",value:function(e){var t=e.get("video");if(t){var n=qr.a.getPhrase(this.lang,"readyToWatch",{videoName:tn.w.escapeExpression(t.get("name"))});qd.a.isDone(e)||(n+=qr.a.getPhrase(this.lang,"processingResolutions"));var r={heading:qr.a.getPhrase(this.lang,"readyToWatchHeading",{videoName:t.get("name")}),message:n,type:Ao.a.Success,appLinkText:qr.a.getPhrase(this.lang,"goToVideo",{videoName:t.get("name")}),appLink:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS,args:[t.get("id")]}};this.alertService.createAlert(r)}}}])&&Gd(t.prototype,n),r&&Gd(t,r),i}(zd),eb=n(146),tb=n.n(eb),nb=n(227);function rb(e){return(rb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ob(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ib(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ab(e,t){return(ab=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sb(e);if(t){var o=sb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ub(this,n)}}function ub(e,t){return!t||"object"!==rb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sb(e){return(sb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ab(e,t)}(u,e);var t,n,r,c=cb(u);function u(){var e;return ob(this,u),(e=c.apply(this,arguments)).disabledLibraryIds=[],e}return t=u,(n=[{key:"initialize",value:function(){var e=this;this.videoDataService=b.a.getInstance(a.g.Video,this),this.libraryDataService=b.a.getInstance(a.g.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.libraryDataService.getLibraries((function(t){return e.customLibraries=t}))}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return a.x.VideoDragDrop}},{key:"channelName",get:function(){return a.w.VIDEO_DRAG_DROP}},{key:"onDragStart",value:function(e,t){var n;this.videos=e,this.collectionIdentifier=t,$("body").addClass(tb.a.dragging),(null===(n=this.customLibraries)||void 0===n?void 0:n.length)>1&&this.setDisabledLibraries()}},{key:"accept",value:function(e){return!!this.videos&&!i.any(this.videos,(function(t){return t.categories.any((function(t){return t.id===e.id}))}))}},{key:"onDragDrop",value:function(e,t){var n=this;if(this.videos&&this.collectionIdentifier){var r,o;i.each(this.videos,(function(e){r||(r=e.categories.find((function(e){return e.get("id")===+n.collectionIdentifier.id})),o=e)}));var a=this.videos,c=this.videos.map((function(e){return e.get("id")})),u=1===c.length?o.get("name"):"",s=nb.a.moveVideoAlert(r.get("name"),e.get("name"),e.get("id"),c.length,u);this.videoDataService.moveVideos(c,e.get("id"),this.collectionIdentifier.id,(function(){i.each(a,(function(e){return e.collection.remove(e)})),n.logAction(i.map(c,(function(t){return{id:t,newParentId:e.get("id"),oldParentId:r.get("id"),count:c.length}})),t)}),s),this.triggerNavRender()}}},{key:"onDragStop",value:function(){$("body").removeClass(tb.a.dragging),delete this.videos,delete this.collectionIdentifier,this.triggerNavRender()}},{key:"setDisabledLibraries",value:function(){var e=this,t=this.customLibraries.find((function(t){return!!tn.f.getModelFromCollection(e.collectionIdentifier.id,t.get("children"))})),n=[];this.videos.forEach((function(e){e.get("libraries").forEach((function(e){e.get("id").toString()!==t.get("id").toString()&&n.push(e.get("id"))}))})),this.disabledLibraryIds=i.uniq(n)}},{key:"getDisabledLibraryIds",value:function(){return this.disabledLibraryIds}},{key:"triggerNavRender",value:function(){o.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("re:render:left:nav")}},{key:"logAction",value:function(e,t){var n=A.a.mergeOptions({actionType:Ot.UserAction.Move,entity:Ot.EntityType.Video,descriptor:Ot.InteractionTypeDescriptor.DragDrop},t);A.a.logUserAction(e,n)}}])&&ib(t.prototype,n),r&&ib(t,r),u}(r.a.Service),fb=n(160),pb=n(90),hb=n(193);function yb(e){return(yb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function db(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vb(e,t){return(vb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wb(e);if(t){var o=wb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mb(this,n)}}function mb(e,t){return!t||"object"!==yb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wb(e){return(wb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vb(e,t)}(u,e);var t,n,i,c=gb(u);function u(){return db(this,u),c.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.libraryDataService=b.a.getInstance(a.g.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.listenTo(this.libraryDataService.channelName,"libraries:sync",this.onLibrarySync),this.libraries=this.libraryDataService.getLibraries()}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return a.x.FolderDragDrop}},{key:"channelName",get:function(){return a.w.FOLDER_DRAG_DROP}},{key:"onLibrarySync",value:function(e){this.libraries=e}},{key:"accept",value:function(e){return!(!this.folder||this.isSameFolder(e)||!this.isSameLibrary(e)||this.isParentFolder(e)||this.isChildFolder(e))}},{key:"isSameFolder",value:function(e){return this.folder.id===e.id}},{key:"isSameLibrary",value:function(e){var t=tn.f.getLibrary(this.folder.id,this.libraries),n=tn.f.getLibrary(e.id,this.libraries);return!(!t||!n)&&t.id===n.id}},{key:"isParentFolder",value:function(e){var t=tn.f.getParent(this.folder.id,this.libraries);return!!t&&t.id===e.id}},{key:"isChildFolder",value:function(e){for(var t=tn.f.getModelFromCollection(e.id,this.libraries);t&&t.collection&&t.collection.parent;)if((t=t.collection.parent).id===this.folder.id)return!0;return!1}},{key:"exceedsMaximumDepth",value:function(e){return tn.f.calculateDestinationFolderDepth(this.folder,e.id,this.libraries)>fb.a.MAX_FOLDER_DEPTH}},{key:"onDragStart",value:function(e){this.folder=e,$("body").addClass(tb.a.dragging)}},{key:"onDragDrop",value:function(e,t){var n=this;if(this.folder){var o=this.folder;this.libraryDataService.getLibraries((function(i){if(n.exceedsMaximumDepth(e))window.setTimeout((function(){r.a.ErrorHelper.throw(new hb.b)}),fb.a.POPUP_FADE_TIMEOUT);else{var a=tn.f.getSelected(pb.a.LIBRARY_EDITOR,i),c=tn.f.getParent(o.id,i);n.libraryDataService.moveFolder(o.id,e.id,c.id,(function(){a&&tn.f.setSelected(pb.a.LIBRARY_EDITOR,a.id,i),n.triggerNavRender(),n.logAction({id:o.id,newParentId:e.id,oldParentId:c.id},t)}))}}))}}},{key:"onDragStop",value:function(){$("body").removeClass(tb.a.dragging),delete this.folder,this.triggerNavRender()}},{key:"triggerNavRender",value:function(){o.Radio.channel(this.channelName).trigger("re:render:left:nav")}},{key:"logAction",value:function(e,t){var n=A.a.mergeOptions({actionType:Ot.UserAction.Move,entity:Ot.EntityType.Folder,descriptor:Ot.InteractionTypeDescriptor.DragDrop},t);A.a.logUserAction(e,n)}}])&&bb(t.prototype,n),i&&bb(t,i),u}(r.a.Service),Ob=n(88);function Cb(e){return(Cb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _b(e,t){return(_b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ab(e);if(t){var o=Ab(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pb(this,n)}}function Pb(e,t){return!t||"object"!==Cb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ab(e){return(Ab=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Tb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_b(e,t)}(u,e);var t,n,r,c=Rb(u);function u(){return kb(this,u),c.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.selectedVideosViewModel=k.a.get(this.viewModelName,{videos:{}},{ctor:Ha.a,storage:{type:Ob.c.LocalStorage,persistProps:["videos"]}})}},{key:"name",get:function(){return"SelectedVideoService"}},{key:"viewModelName",get:function(){return"".concat(this.name,":viewmodel")}},{key:"channelName",get:function(){return a.w.SELECTED_VIDEO}},{key:"addSelectedVideos",value:function(e,t){i.isArray(e)||(e=[e]);var n={};e.forEach((function(e){return n["".concat(e.id,":").concat(t)]={id:e.id.toString(),folderChord:t}}));var r=this.selectedVideosViewModel.get("videos"),o=Object.assign(Object.assign({},r),n);this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"addSmartSelectedVideos",value:function(e){var t={};e.each((function(e){return t["".concat(e.id,":").concat(e.get("chord"))]={id:e.id.toString(),folderChord:e.get("chord")}}));var n=this.selectedVideosViewModel.get("videos"),r=Object.assign(Object.assign({},n),t);this.selectedVideosViewModel.set("videos",r),this.selectedVideosChanged()}},{key:"removeSelectedVideos",value:function(e,t){i.isArray(e)||(e=[e]);var n=e.map((function(e){return"".concat(e.id,":").concat(t)})),r=this.selectedVideosViewModel.get("videos"),o=i.omit(r,(function(e,t){return i.contains(n,t)}));this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"removeAllSelectedVideos",value:function(){this.selectedVideosViewModel.set("videos",{}),this.selectedVideosChanged()}},{key:"getSelectedVideoIds",value:function(){var e=this.getSelectedVideos();return i.map(i.keys(e),(function(t){return e[t]&&e[t].id}))}},{key:"getSelectedVideos",value:function(){return this.selectedVideosViewModel.get("videos")}},{key:"getNumberSelected",value:function(){return this.getSelectedVideoIds().length}},{key:"selectedVideosChanged",value:function(){o.Radio.channel(a.e.MIGRATION).trigger(a.i.MigrationWizard.SELECTED_CHANGED)}}])&&Eb(t.prototype,n),r&&Eb(t,r),u}(r.a.Service);function xb(e){return(xb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nb(e,t){return(Nb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ib(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bb(e);if(t){var o=Bb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vb(this,n)}}function Vb(e,t){return!t||"object"!==xb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bb(e){return(Bb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Db=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nb(e,t)}(i,e);var t,n,r,o=Ib(i);function i(){return Lb(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.options={}}},{key:"name",get:function(){return"LocalOptionsService"}},{key:"channelName",get:function(){return a.w.LOCAL_OPTIONS}},{key:"setOption",value:function(e,t){this.options[e]=t}},{key:"getOption",value:function(e){return this.options[e]}}])&&jb(t.prototype,n),r&&jb(t,r),i}(r.a.Service);function Mb(e){return(Mb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ub(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hb(e,t){return(Hb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wb(e);if(t){var o=Wb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qb(this,n)}}function qb(e,t){return!t||"object"!==Mb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wb(e){return(Wb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hb(e,t)}(c,e);var t,n,r,o=zb(c);function c(){return Ub(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.folderCache={}}},{key:"name",get:function(){return"FolderCacheService"}},{key:"channelName",get:function(){return a.w.FOLDER_CACHE}},{key:"getFolderCache",value:function(){return this.folderCache}},{key:"getFolderByChord",value:function(e,t){return this.folderChordMap&&!this.collectionUpdated(t)||this.buildFolderChordMap(t),this.folderChordMap[e]}},{key:"buildFolderChordMap",value:function(e){var t=this;this.folderChordMap={},e.each((function e(n){t.folderChordMap[n.get("chord")]=n;var r=n.children;r&&r.length&&r.each(e)}))}},{key:"collectionUpdated",value:function(e){return!(this.cachedFolderCollectionCid&&e.customCid&&this.cachedFolderCollectionCid===e.customCid||(e.customCid=this.cachedFolderCollectionCid=i.uniqueId("custom"),0))}}])&&Fb(t.prototype,n),r&&Fb(t,r),c}(r.a.Service);function Gb(e){return(Gb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zb(e,t){return(Zb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jb(e);if(t){var o=Jb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xb(this,n)}}function Xb(e,t){return!t||"object"!==Gb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jb(e){return(Jb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ev=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zb(e,t)}(c,e);var t,n,r,o=$b(c);function c(){return Kb(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.restrictedVideoDataService=b.a.getInstance(a.g.RestrictedVideo,this)}},{key:"name",get:function(){return a.x.VideoMixin}},{key:"channelName",get:function(){return a.w.VIDEO_MIXIN}},{key:"mixinVideoCollectionData",value:function(e,t,n){this.getAndMixinVideoCollectionRestrictions(e,t,n)}},{key:"mixinVideoData",value:function(e,t){this.getAndMixinVideoRestriction(e,t)}},{key:"getAndMixinVideoCollectionRestrictions",value:function(e,t,n){var r=this;if(e&&e.length){var o=e.map((function(e){return e.id.toString()}));this.restrictedVideoDataService.getVideoRestrictions(o,t,(function(t){e.forEach((function(e){return r.mixinVideoRestriction(e,t)})),i.isFunction(n)&&n(e)}))}else i.isFunction(n)&&n(e)}},{key:"getAndMixinVideoRestriction",value:function(e,t){var n=this;this.restrictedVideoDataService.getVideoRestrictions([e.id],null,(function(r){n.mixinVideoRestriction(e,r),i.isFunction(t)&&t(e)}))}},{key:"mixinLocalCacheDownloads",value:function(e,t){e.unset("localCacheDownloads"),t&&t.findWhere({objectId:e.get("id").toString()})&&e.set("localCacheDownloads",t)}},{key:"mixinVideoRestriction",value:function(e,t){if(e.unset("restrictions"),t){var n=t.findWhere({objectId:e.get("id")});n&&e.set("restrictions",n.get("restrictedObjects"))}}}])&&Qb(t.prototype,n),r&&Qb(t,r),c}(r.a.Service),tv=n(25);function nv(e){return(nv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ov(e,t){return(ov=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function iv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cv(e);if(t){var o=cv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return av(this,n)}}function av(e,t){return!t||"object"!==nv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cv(e){return(cv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ov(e,t)}(i,e);var t,n,r,o=iv(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"PartialLoadingComponent"}},{key:"tagName",get:function(){return this.options.tagName||"div"}},{key:"className",get:function(){return this.options.className}},{key:"viewOptions",value:function(){return this.options.viewOptions}}])&&rv(t.prototype,n),r&&rv(t,r),i}(r.a.Component);function sv(e){return(sv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fv(e,t){return(fv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yv(e);if(t){var o=yv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hv(this,n)}}function hv(e,t){return!t||"object"!==sv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yv(e){return(yv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fv(e,t)}(i,e);var t,n,r,o=pv(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){var e=b.a.getInstance(a.x.PartialLoading,this);this.collection=e.getCollection(this.options.collectionLength)}},{key:"name",get:function(){return"PartialLoadingComponentCollection"}},{key:"tagName",get:function(){return this.options.tagName||"ul"}},{key:"className",get:function(){var e=this.options.noExtraClass?"":"m-0 p-0 ";return this.options.className&&(e+=this.options.className),e}},{key:"childView",get:function(){return uv}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])&&lv(t.prototype,n),r&&lv(t,r),i}(r.a.ComponentCollection);function bv(e){return(bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mv(e,t){return(mv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ov(e);if(t){var o=Ov(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sv(this,n)}}function Sv(e,t){return!t||"object"!==bv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ov(e){return(Ov=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Cv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mv(e,t)}(u,e);var t,n,o,c=wv(u);function u(){return vv(this,u),c.apply(this,arguments)}return t=u,(n=[{key:"name",get:function(){return a.x.PartialLoading}},{key:"initialize",value:function(){this.listenTo(C.a.SHELL,"render:partial:loading",this.renderPartialLoading)}},{key:"renderPartialLoading",value:function(e,t){var n=this,r=this.getPartialLoadingRegions(e);i.each(i.keys(r),(function(o){if(!t||o===t){var i=r[o],a=n.getComponent(i.partialLoading);e.showChildView(o,a)}}))}},{key:"getComponent",value:function(e){var t="number"==typeof e?a.u[e]:e;return"number"!=typeof e&&(e=$n.h.Unselected),t||r.a.ErrorHelper.throw(new O.a("Must define PartialLoading type: ".concat($n.h[e],"."))),t.component||r.a.ErrorHelper.throw(new O.a("Must select a component for PartialLoading type: ".concat($n.h[e],"."))),t.options||r.a.ErrorHelper.throw(new O.a("Must provide options for PartialLoading type: ".concat($n.h[e],"."))),new(this.getCtor(t.component))(t.options)}},{key:"getCtor",value:function(e){switch(e){case tv.a.ComponentCollection:return dv;case tv.a.Component:default:return uv}}},{key:"getPartialLoadingRegions",value:function(e){return i.pick(e.regions,(function(e){return i.has(e,"partialLoading")}))}},{key:"getCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,t=new Array(e);return new r.a.Collection(t)}}])&&gv(t.prototype,n),o&&gv(t,o),u}(r.a.Service);function kv(e){return(kv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ev(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rv(e,t){return(Rv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tv(e);if(t){var o=Tv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Av(this,n)}}function Av(e,t){return!t||"object"!==kv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Tv(e){return(Tv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rv(e,t)}(c,e);var t,n,o,i=Pv(c);function c(){return Ev(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.ROUTING_END,this.updateIntercom)}},{key:"name",get:function(){return a.x.Intercom}},{key:"updateIntercom",value:function(){window.Intercom("update")}}])&&_v(t.prototype,n),o&&_v(t,o),c}(r.a.Service);function Lv(e){return(Lv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Iv(e,t){return(Iv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dv(e);if(t){var o=Dv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bv(this,n)}}function Bv(e,t){return!t||"object"!==Lv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Dv(e){return(Dv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Iv(e,t)}(u,e);var t,n,i,c=Vv(u);function u(){return jv(this,u),c.apply(this,arguments)}return t=u,(n=[{key:"name",get:function(){return a.x.NavLock}},{key:"lang",get:function(){return"shared.services"}},{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.NAV_IS_LOCKED,this.renderDialog)}},{key:"lock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;this.lockOptions=e,o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.LOCK_NAV),$(window).on("beforeunload",(function(e){return e.returnValue=t,t}))}},{key:"unlock",value:function(){this.lockOptions=null,o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.UNLOCK_NAV),$(window).off("beforeunload")}},{key:"isLocked",value:function(){return!!this.lockOptions}},{key:"renderDialog",value:function(e){var t=this;new tn.d(this.getNavLockOptions()).render().done((function(){o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.NAV_UNLOCKED_BY_USER),t.unlock(),r.a.AppLinkHelper.trigger(e)}))}},{key:"getNavLockOptions",value:function(){var e=this.lockOptions,t=e.title,n=e.text;return{title:t||qr.a.getPhrase(this.lang,"discardChanges"),text:n||qr.a.getPhrase(this.lang,"discardCheck"),buttons:[{text:qr.a.getPhrase(this.lang,"discard"),className:"btn btn-danger",success:!0},{text:qr.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}}}])&&Nv(t.prototype,n),i&&Nv(t,i),u}(r.a.Service);function Uv(e){return(Uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zv(e,t){return(zv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yv(e);if(t){var o=Yv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wv(this,n)}}function Wv(e,t){return!t||"object"!==Uv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yv(e){return(Yv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gv=" - ClickView",Kv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zv(e,t)}(c,e);var t,n,o,i=qv(c);function c(){return Fv(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,"set:page:title",this.setPageTitle)}},{key:"name",get:function(){return a.x.PageTitle}},{key:"channelName",get:function(){return a.w.PAGE_TITLE}},{key:"setPageTitle",value:function(e){e&&r.a.LocationUtils.SetPageTitle(this.trimTitle(e))}},{key:"trimTitle",value:function(e){return e?e.length+Gv.length<=60?e+Gv:e.substring(0,57)+"..."+Gv:""}}])&&Hv(t.prototype,n),o&&Hv(t,o),c}(r.a.Service);function Qv(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $v(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eg(e);if(t){var o=eg(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return Jv(this,n)}}function Jv(e,t){return!t||"object"!==Qv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function eg(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ao.a;var tg=n(240),ng=n(40),rg=n(194),og=n(138),ig=n(144),ag=n(224);function cg(e){var t=k.a.get("informational:error:handler");t.get("rendered")||(t.set("rendered",!0),new rg.a(Object.assign(Object.assign({},e.dialogOptions),{channelName:"informational:error"})).render().done((function(){return e.onDone()})).fail((function(){return e.onFail()})).always((function(){return t.clear()})))}function ug(e){b.a.getInstance(g.b.Alerts).createAlert({heading:Ao.c.Fail,type:Ao.a.Fail,message:e.message})}function sg(){r.a.AppLinkHelper.trigger({application:og.a.DEFAULT,action:ig.a.Default.NOT_FOUND})}function lg(e){o.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:og.a.DEFAULT,action:ig.a.Default.ERROR})}var fg=n(10);function pg(e){return(pg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var hg={register:function(){var e=this;fg.registerHelper("lang",(function(t,n){if(e.isValid(t,n)){var r=n.data.root.languageNamespace;return qr.a.getPhrase(r,t,n.hash)}}))},isValid:function(e,t){return"string"!=typeof e?(r.a.ErrorHelper.throw(new O.a("No language key provided.")),!1):"object"!==pg(t)?(r.a.ErrorHelper.throw(new O.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!i.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new O.a("No `lang` property provided.")),!1)}};var yg=n(241);function dg(e){return(dg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gg(e,t){return(gg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sg(e);if(t){var o=Sg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wg(this,n)}}function wg(e,t){return!t||"object"!==dg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sg(e){return(Sg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Og=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gg(e,t)}(i,e);var t,n,r,o=mg(i);function i(){return bg(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"appLinks",get:function(){return{searchResults:{application:a.b.SEARCH,action:a.a.Search.HOME},videoDetails:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS},series:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.SERIES},tagSearch:{application:a.b.SEARCH,action:a.a.Search.HOME},newLibrary:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.NEW_LIBRARY},folder:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.FOLDER}}}},{key:"addSlugs",get:function(){return!1}},{key:"searchBarPlaceholder",get:function(){return null}},{key:"showSearchTips",get:function(){return!0}},{key:"useContextualSearch",get:function(){return!0}}])&&vg(t.prototype,n),r&&vg(t,r),i}(yg.BaseSearchAppVariables),Cg=n(62);function kg(e){return(kg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rg(e,t){return(Rg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tg(e);if(t){var o=Tg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ag(this,n)}}function Ag(e,t){return!t||"object"!==kg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Tg(e){return(Tg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rg(e,t)}(i,e);var t,n,r,o=Pg(i);function i(){return Eg(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS},notifications:{application:a.b.NOTIFICATIONS,action:a.a.Notifications.HOME},pastReleases:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.PAST_RELEASES},awaitingReview:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.AWAITING_REVIEW},editStaffRequest:{application:a.b.STAFF_REQUESTS,action:a.a.StaffRequests.EDIT_REQUEST}}}},{key:"notificationTypesWithAppLinks",get:function(){return[Cg.a.VideoReviewReminder,Cg.a.VideoReviewAddedToLibrary,Cg.a.CustomLibraryVideoAvailable,Cg.a.StaffRequest,Cg.a.StaffRequestFulfilled,Cg.a.ChapterMergeSuccess]}},{key:"notificationsEmptyStateUrl",get:function(){return"/images/empty-states/illo-no-notifications@2x.png"}},{key:"bellIconColor",get:function(){return"light"}}])&&_g(t.prototype,n),r&&_g(t,r),i}(yg.BaseNotificationsAppVariables);new y,o.Validation.configure({forceUpdate:!0}),i.extend(o.Validation.callbacks,{valid:function(e,t){var n=e.$("[name="+t+"]"),r=n.closest(".form-group");n.removeClass("is-invalid"),r.find(".form-feedback").removeClass("invalid-feedback").html("")},invalid:function(e,t,n){var r=e.$("[name="+t+"]"),o=r.closest(".form-group");r.addClass("is-invalid"),o.find(".form-feedback").addClass("invalid-feedback").html(n)}});var Lg=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({requiredRegions:[d.a.ALERT,d.a.POPUP,d.a.HIDDEN]})});Lg.addInitializationStep((function(e,t){e.registerLayout(_p.a.ManageLayout,Eh),t(e)})).addInitializationStep((function(e,t){b.a.registerInstance(bo,{size:100}),t(e)})).addInitializationStep((function(e,t){b.a.registerInstance(Og).registerInstance(xg),t(e)})).addInitializationStep((function(e,t){b.a.registerInstance(Ro,{dataServiceErrorMessageMappings:Po.a,defaultErrorMessageKey:Po.b}),t(e)})).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:Ao.c.Success,type:Ao.a.Success},defaultErrorAlert:{heading:Ao.c.Fail,type:Ao.a.Fail},alertViewCtor:Gi};b.a.registerSingleton(new na(n));var r=b.a.getInstance(g.b.Alerts),o={cache:oo.a.Fifo,dataProvider:v.a.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};delete window.bootstrapData,b.a.registerDataService(ra.a,o).registerDataService(oa.a,o).registerDataService(ya,o).registerDataService(Ua,o).registerDataService(Fa.a,o).registerDataService(Oc,o).registerDataService(Vc,o).registerDataService(qc,o).registerDataService(Jc,o).registerDataService(bi,o).registerDataService(Au,o).registerDataService(Uu,o).registerDataService(Ju,o).registerDataService(ss,o).registerDataService(ls.a,o).registerDataService(js,o).registerDataService(Hs,o).registerDataService(nl,o).registerDataService(Al,o).registerDataService(_i,o).registerDataService(ql,o).registerDataService(Xl,o).registerDataService(pf,o).registerDataService(Cf,o).registerDataService(Vf,o).registerDataService(Xf,o).registerDataService(yp,o).registerDataService(Ep,o);var i={cache:oo.a.Fifo,dataProvider:v.a.Notifications,alertService:r};b.a.registerDataService(Ko,i),t(e)})).addInitializationStep((function(e,t){b.a.registerInstance(Cd).registerInstance(Jd).registerInstance(lb).registerInstance(Sb).registerInstance(zh).registerInstance(Tb).registerInstance(Db).registerInstance(Yb).registerInstance(ev).registerInstance(y),b.a.registerSingleton(new Nh).registerSingleton(new Cv).registerSingleton(new xv).registerSingleton(new Mv).registerSingleton(new Kv),b.a.getInstance(g.a.Config).getConfig((function(n){b.a.registerInstance(id,{endpoint:n.get("notificationServiceUrl"),authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),b.a.getInstance(g.a.Language).getLanguageConfig((function(e){qr.a.setConfig(e),b.a.releaseInstance(g.a.Language)})),t(e),b.a.releaseInstance(g.a.Config)}))})).addInitializationStep((function(e,t){var n,r,o,i=b.a.getInstance(g.a.Config),a=b.a.getInstance(g.a.User);function c(){return new Promise((function(e,t){a.getCurrentUser((function(t){e(t.toJSON())}),(function(){t()}))}))}var u=new S.a(3),s=function(){if(u.decrement(),!(u.getValue()>0)){var i=new V({user:r.toJSON(),config:n.toJSON()});b.a.registerSingleton(i),i.registerTransport(Y),i.registerClient(pt),i.registerClient(nt,{productName:"cloud.web",productVersion:o,regionName:r.get("instanceRegion"),collectionApiUrls:n.get("collectionApiUrls"),collectionApiClientId:n.get("collectionApiClientId"),getUser:c,shouldLog:Ft.shouldLog,formatData:Ft.formatData}),i.registerEnricher(St,{productName:"ClickView Library Editor",productVersion:o}),i.registerEnricher(se),i.registerClient(rt.a,{trackingId:n.get("googleAnalyticsProjectId"),userId:r.get("id")}),b.a.releaseInstance(g.a.Config),b.a.releaseInstance(g.a.User),t(e)}};i.getVersion((function(e){o=e,s()})),i.getConfig((function(e){n=e,s()})),a.getCurrentUser((function(e){r=e,s()}))})).addInitializationStep((function(e,t){e.registerApplication(Jt).registerApplication(Rn).registerApplication(Mn).registerApplication(Zn).registerApplication(ur).registerApplication(Sr).registerApplication(Lr).registerApplication(zr).registerApplication(ro),t(e)})).addInitializationStep((function(e,t){b.a.getInstance(g.a.Config).getVersion((function(n){var o=b.a.getInstance(v.a.Ajax);o.useMiddleware("versionInvalidation",(function(e,t,o){var i=o.getResponseHeader("X-App-Version");i!==n&&r.a.ErrorHelper.throw(new m.a(n,i))})),o.useErrorMiddleware("authenticatonCheck",(function(e){401===e.status&&r.a.ErrorHelper.throw(new w.a)})),t(e),b.a.releaseInstance(v.a.Ajax),b.a.releaseInstance(g.a.Config)}))})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:i.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){hg.register(),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(ng.a,lg).registerErrorHandler(cd.a,cg).registerErrorHandler(tg.a,ug).registerErrorHandler(ag.a,sg),t()})),Lg.addStartUpStep((function(e,t,n){var r=b.a.getInstance(g.a.Config);r.getConfig((function(){r.getVersion((function(r){t.environment="DEVELOPMENT",t.version=r,ot.a.setUpVariables({isDevelopment:!1}),n(e,t),b.a.releaseInstance(g.a.Config)}))}))})).addStartUpStep((function(e,t,n){b.a.getInstance(g.a.Config).getConfig((function(r){console.log("%cWelcome to the new %cā¶%cClick%cView%c! š„šš","color: grey; font-size:24px","color:#f8981d; font-size:24px","color:#f8981d; font-size:24px","color:black; font-size:24px","color: grey; font-size:24px"),console.log("%cIf you have any issues or need any help with anything, please contact our friendly product support team. ".concat(r.get("supportSiteUrl")),"color: black; font-size:14px"),n(e,t),b.a.releaseInstance(g.a.Config)}))})),Lg.start()},function(e,t){e.exports=s},function(e,t){e.exports=l}])}));
|