@clickview/online 0.0.2 → 0.0.3-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libs/common/src/react/constants/ViewModelActions.d.ts +3 -0
- package/dist/libs/common/src/react/interfaces/ViewModelAction.d.ts +5 -0
- package/dist/libs/common/src/react/interfaces/ViewModelPayload.d.ts +5 -0
- package/dist/libs/common/src/react/reducers/ViewModelReducer.d.ts +3 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItem.d.ts +15 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItemStatus.d.ts +10 -0
- package/dist/libs/shared/src/apps/subjects/interfaces/Curriculum.d.ts +4 -0
- package/dist/libs/shared/src/apps/subjects/interfaces/SchoolLevel.d.ts +4 -0
- package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +2 -0
- package/dist/libs/shared/src/components/svgs/clickview-logo/ClickViewLogo.d.ts +3 -0
- package/dist/{projects/online/src/shared → libs/shared/src}/services/LanguageDataService.d.ts +2 -6
- package/dist/online-app.css.map +1 -0
- package/dist/online-app.js +2 -2
- package/dist/online-app.js.map +1 -0
- package/dist/projects/online/src/apps/libraries/LibrariesApplication.d.ts +11 -0
- package/dist/projects/online/src/apps/libraries/components/libraries-list/LibrariesList.d.ts +7 -0
- package/dist/projects/online/src/apps/libraries/components/libraries-list/partial-loading/PartialLibrariesList.d.ts +2 -0
- package/dist/projects/online/src/apps/libraries/components/library-item/LibraryItem.d.ts +7 -0
- package/dist/projects/online/src/apps/libraries/flight-requests/LibrariesRequests.d.ts +7 -0
- package/dist/projects/online/src/apps/libraries/utils/LibraryHelper.d.ts +9 -0
- package/dist/projects/online/src/apps/libraries/views/libraries/LibrariesView.d.ts +2 -0
- package/dist/projects/online/src/apps/movies-and-tv/MoviesAndTvApplication.d.ts +12 -0
- package/dist/projects/online/src/apps/movies-and-tv/views/movies-and-tv/MoviesAndTvView.d.ts +2 -0
- package/dist/projects/online/src/apps/subjects/views/preferences/curriculum/CurriculumSelectorView.d.ts +5 -0
- package/dist/projects/online/src/apps/subjects/views/preferences/school-level-selector/SchoolLevelSelectorView.d.ts +2 -0
- package/dist/projects/online/src/apps/subjects/views/preferences/welcome/PreferencesWelcomeView.d.ts +2 -0
- package/dist/projects/online/src/index.d.ts +2 -2
- package/dist/projects/online/src/shared/components/info-banner/InfoBanner.d.ts +2 -0
- package/dist/projects/online/src/shared/services/index.d.ts +0 -1
- package/package.json +1 -1
package/dist/online-app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Backbone"),require("ReactBootstrap"),require("ReactRedux"),require("Marionette"),require("$"),require("moment"),require("ReactDOM"),require("ReactIntersectionObserver"),require("FontAwesome"),require("SortableHOC"),require("ReactTransitionGroup"),require("Polyglot"),require("DOMPurify"),require("Autosuggest"),require("Handlebars")):"function"==typeof define&&define.amd?define(["React","_","Backbone","ReactBootstrap","ReactRedux","Marionette","$","moment","ReactDOM","ReactIntersectionObserver","FontAwesome","SortableHOC","ReactTransitionGroup","Polyglot","DOMPurify","Autosuggest","Handlebars"],t):"object"==typeof exports?exports["@clickview/online"]=t(require("React"),require("_"),require("Backbone"),require("ReactBootstrap"),require("ReactRedux"),require("Marionette"),require("$"),require("moment"),require("ReactDOM"),require("ReactIntersectionObserver"),require("FontAwesome"),require("SortableHOC"),require("ReactTransitionGroup"),require("Polyglot"),require("DOMPurify"),require("Autosuggest"),require("Handlebars")):e["@clickview/online"]=t(e.React,e._,e.Backbone,e.ReactBootstrap,e.ReactRedux,e.Marionette,e.$,e.moment,e.ReactDOM,e.ReactIntersectionObserver,e.FontAwesome,e.SortableHOC,e.ReactTransitionGroup,e.Polyglot,e.DOMPurify,e.Autosuggest,e.Handlebars)}(window,(function(e,t,n,r,o,i,a,c,u,s,l,f,p,d,h,y,m){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=447)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=i},function(e,t,n){"use strict";var r=n(63),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t){e.exports=a},function(e,t,n){e.exports={widgetItem:"_1oyw1",imagePanel:"_1UOVG",large:"_1EtWs",comingSoonPanel:"_3js2e",name:"_3csgE",clamped:"_1y2oG",editSubjectsItem:"_1yBMf"}},function(e,t,n){e.exports={subjectPreferenceItem:"_2qd2_",expandCaret:"_1SmX9",down:"dE3mQ",up:"_2vvzg",disabled:"_3xx8o",selected:"_12fy7",textBox:"_3ic5e",itemStatus:"_2d1iD",unchecked:"L-HyS",green:"_1pWm4"}},function(e,t){e.exports=c},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(185),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){e.exports={bannerImage:"_1_J-g",metadataContainer:"_2lGAa",series:"l9z_z",indicatorContainer:"_1WkeY",indicator:"ERQVF",partial:"_2kV9l"}},function(e,t,n){"use strict";(function(e){var r=n(63),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.a.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();t.a=c}).call(this,n(72)(e))},function(e,t,n){e.exports={baseFallbackContainer:"_1wRjB",svgFallbackContainer:"_2t1jq",subjectFallbackContainer:"_12D74",videoFallback:"_6BPy-",playlistFallback:"_1slQX",posterFallback:"i0o8n",subjectFallback:"_2Srdd",fallbackThumbnailImage:"_2L_tV"}},function(e,t,n){e.exports={left:"_789pr",right:"_1P8qt",button:"_24q_F",gradientLeft:"_3fkiw",gradientRight:"_2RDDy",extendedClickableAreaRight:"_13dgy",extendedClickableAreaLeft:"_37LtK",videoTopPos:"_1XTRO",topPos:"_3_p_J"}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=u},function(e,t,n){e.exports={partialLoadingHeading:"_1RLPq",partialLoading:"oArG4",labelContainer:"QLCgm",hoverActive:"_3Aleb",mask:"_2M2Zz",width:"TQg2K"}},function(e,t,n){e.exports={leftOverflowGradient:"u_MPi",rightOverflowGradient:"_38ooL",partialHeading:"OVsdA",partialDescription:"_1HtA2",partialItem:"_3G2hG",largePartialItem:"NnK8O"}},function(e,t,n){e.exports={overlayContainer:"_1MQy4",favouriteContainer:"_2obuZ",favouriteButton:"_1UfdO",title:"Q1km-",downScale:"_2_7sb",gradient:"Of_Cn",playIcon:"B9cJG"}},function(e,t,n){e.exports={titleOverlay:"_1JIh4",titleBelow:"_1OKu_",overlayContainer:"_1BBKk",favouriteContainer:"_23tXc",favouriteButton:"_2lJ57",badgeContainer:"_28ZUf",gradient:"_1o4aT"}},function(e,t,n){e.exports={partialHeroThumbnail:"mBd7D",partialSeriesText:"_2MXtV",partialVideoTitleText:"_3AoSO",partialBadge:"_33OjS",partialDescription:"_2uRQA",partialSubject:"_3YJIE"}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=b;var o=r(n(31)),i=r(n(32)),a=r(n(348)),c=r(n(387)),u=n(27),s=r(n(394)),l=r(n(88)),f=r(n(395)),p=r(n(28)),d=r(n(396)),h=r(n(60)),y=r(n(45)),m=n(218),v=function(){function e(){this.list=new Set,this.refs=new Map}var t=e.prototype;return t.toArray=function(){return(0,c.default)(this.list).concat((0,c.default)(this.refs.values()))},t.add=function(e){y.default.isRef(e)?this.refs.set(e.key,e):this.list.add(e)},t.delete=function(e){y.default.isRef(e)?this.refs.delete(e.key,e):this.list.delete(e)},t.has=function(e,t){if(this.list.has(e))return!0;for(var n,r=this.refs.values();!(n=r.next()).done;)if(t(n.value)===e)return!0;return!1},e}();function b(e){var t=this;if(void 0===e&&(e={}),!(this instanceof b))return new b;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new v,this._blacklist=new v,this.tests=[],this.transforms=[],this.withMutation((function(){t.typeError(u.mixed.notType)})),(0,i.default)(e,"default")&&(this._defaultDefault=e.default),this._type=e.type||"mixed"}for(var g=b.prototype={__isYupSchema__:!0,constructor:b,clone:function(){var e=this;return this._mutate?this:(0,a.default)(this,(function(t){if((0,p.default)(t)&&t!==e)return t}))},label:function(e){var t=this.clone();return t._label=e,t},meta:function(e){if(0===arguments.length)return this._meta;var t=this.clone();return t._meta=(0,o.default)(t._meta||{},e),t},withMutation:function(e){var t=this._mutate;this._mutate=!0;var n=e(this);return this._mutate=t,n},concat:function(e){if(!e||e===this)return this;if(e._type!==this._type&&"mixed"!==this._type)throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+e._type);var t=(0,f.default)(e.clone(),this);return(0,i.default)(e,"_default")&&(t._default=e._default),t.tests=this.tests,t._exclusive=this._exclusive,t.withMutation((function(t){e.tests.forEach((function(e){t.test(e.OPTIONS)}))})),t},isType:function(e){return!(!this._nullable||null!==e)||(!this._typeCheck||this._typeCheck(e))},resolve:function(e){var t=this;if(t._conditions.length){var n=t._conditions;(t=t.clone())._conditions=[],t=(t=n.reduce((function(t,n){return n.resolve(t,e)}),t)).resolve(e)}return t},cast:function(e,t){void 0===t&&(t={});var n=this.resolve((0,o.default)({},t,{value:e})),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){var i=(0,h.default)(e),a=(0,h.default)(r);throw new TypeError("The value of "+(t.path||"field")+' could not be cast to a value that satisfies the schema type: "'+n._type+'". \n\nattempted value: '+i+" \n"+(a!==i?"result of cast: "+a:""))}return r},_cast:function(e){var t=this,n=void 0===e?e:this.transforms.reduce((function(n,r){return r.call(t,n,e)}),e);return void 0===n&&(0,i.default)(this,"_default")&&(n=this.default()),n},_validate:function(e,t){var n=this;void 0===t&&(t={});var r=e,i=null!=t.originalValue?t.originalValue:e,a=this._option("strict",t),c=this._option("abortEarly",t),u=t.sync,s=t.path,f=this._label;a||(r=this._cast(r,(0,o.default)({assert:!1},t)));var p={value:r,path:s,schema:this,options:t,label:f,originalValue:i,sync:u},d=[];return this._typeError&&d.push(this._typeError(p)),this._whitelistError&&d.push(this._whitelistError(p)),this._blacklistError&&d.push(this._blacklistError(p)),(0,l.default)({validations:d,endEarly:c,value:r,path:s,sync:u}).then((function(e){return(0,l.default)({path:s,sync:u,value:e,endEarly:c,validations:n.tests.map((function(e){return e(p)}))})}))},validate:function(e,t){return void 0===t&&(t={}),this.resolve((0,o.default)({},t,{value:e}))._validate(e,t)},validateSync:function(e,t){var n,r;if(void 0===t&&(t={}),this.resolve((0,o.default)({},t,{value:e}))._validate(e,(0,o.default)({},t,{sync:!0})).then((function(e){return n=e})).catch((function(e){return r=e})),r)throw r;return n},isValid:function(e,t){return this.validate(e,t).then((function(){return!0})).catch((function(e){if("ValidationError"===e.name)return!1;throw e}))},isValidSync:function(e,t){try{return this.validateSync(e,t),!0}catch(e){if("ValidationError"===e.name)return!1;throw e}},getDefault:function(e){return void 0===e&&(e={}),this.resolve(e).default()},default:function(e){if(0===arguments.length){var t=(0,i.default)(this,"_default")?this._default:this._defaultDefault;return"function"==typeof t?t.call(this):(0,a.default)(t)}var n=this.clone();return n._default=e,n},strict:function(e){void 0===e&&(e=!0);var t=this.clone();return t._options.strict=e,t},_isPresent:function(e){return null!=e},required:function(e){return void 0===e&&(e=u.mixed.required),this.test({message:e,name:"required",exclusive:!0,test:function(e){return this.schema._isPresent(e)}})},notRequired:function(){var e=this.clone();return e.tests=e.tests.filter((function(e){return"required"!==e.OPTIONS.name})),e},nullable:function(e){void 0===e&&(e=!0);var t=this.clone();return t._nullable=e,t},transform:function(e){var t=this.clone();return t.transforms.push(e),t},test:function(){var e;if(void 0===(e=1===arguments.length?"function"==typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(e.message=u.mixed.default),"function"!=typeof e.test)throw new TypeError("`test` is a required parameters");var t=this.clone(),n=(0,d.default)(e),r=e.exclusive||e.name&&!0===t._exclusive[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t._exclusive[e.name]=!!e.exclusive,t.tests=t.tests.filter((function(t){if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t},when:function(e,t){1===arguments.length&&(t=e,e=".");var n=this.clone(),r=[].concat(e).map((function(e){return new y.default(e)}));return r.forEach((function(e){e.isSibling&&n._deps.push(e.key)})),n._conditions.push(new s.default(r,t)),n},typeError:function(e){var t=this.clone();return t._typeError=(0,d.default)({message:e,name:"typeError",test:function(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t},oneOf:function(e,t){void 0===t&&(t=u.mixed.oneOf);var n=this.clone();return e.forEach((function(e){n._whitelist.add(e),n._blacklist.delete(e)})),n._whitelistError=(0,d.default)({message:t,name:"oneOf",test:function(e){if(void 0===e)return!0;var t=this.schema._whitelist;return!!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},notOneOf:function(e,t){void 0===t&&(t=u.mixed.notOneOf);var n=this.clone();return e.forEach((function(e){n._blacklist.add(e),n._whitelist.delete(e)})),n._blacklistError=(0,d.default)({message:t,name:"notOneOf",test:function(e){var t=this.schema._blacklist;return!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},strip:function(e){void 0===e&&(e=!0);var t=this.clone();return t._strip=e,t},_option:function(e,t){return(0,i.default)(t,e)?t[e]:this._options[e]},describe:function(){var e=this.clone();return{type:e._type,meta:e._meta,label:e._label,tests:e.tests.map((function(e){return{name:e.OPTIONS.name,params:e.OPTIONS.params}})).filter((function(e,t,n){return n.findIndex((function(t){return t.name===e.name}))===t}))}}},w=["validate","validateSync"],E=function(){var e=w[S];g[e+"At"]=function(t,n,r){void 0===r&&(r={});var i=(0,m.getIn)(this,t,n,r.context),a=i.parent,c=i.parentPath;return i.schema[e](a&&a[c],(0,o.default)({},r,{parent:a,path:t}))}},S=0;S<w.length;S++)E();for(var O=["equals","is"],x=0;x<O.length;x++){g[O[x]]=g.oneOf}for(var k=["not","nope"],C=0;C<k.length;C++){g[k[C]]=g.notOneOf}g.optional=g.notRequired,e.exports=t.default},function(e,t,n){var r=n(328),o=n(331);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=t.array=t.object=t.boolean=t.date=t.number=t.string=t.mixed=void 0;var o=r(n(60)),i={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:function(e){var t=e.path,n=e.type,r=e.value,i=e.originalValue,a=null!=i&&i!==r,c=t+" must be a `"+n+"` type, but the final value was: `"+(0,o.default)(r,!0)+"`"+(a?" (cast from the value `"+(0,o.default)(i,!0)+"`).":".");return null===r&&(c+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),c}};t.mixed=i;var a={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"};t.string=a;var c={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",notEqual:"${path} must be not equal to ${notEqual}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"};t.number=c;var u={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"};t.date=u;var s={};t.boolean=s;var l={noUnknown:"${path} field cannot have keys not specified in the object shape"};t.object=l;var f={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items"};t.array=f;var p={mixed:i,string:a,number:c,date:u,object:l,array:f,boolean:s};t.default=p},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e){return e&&e.__isYupSchema__},e.exports=t.default},function(e,t,n){e.exports={duration:"_3XH_S",interactive:"INxgX",productionYear:"Bt6Bx",rating:"_3bOtF",badgeList:"_1BsVS"}},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var c,u,s,l=r(t),f=r(n);if(l&&f){if((u=t.length)!=n.length)return!1;for(c=u;0!=c--;)if(!e(t[c],n[c]))return!1;return!0}if(l!=f)return!1;var p=t instanceof Date,d=n instanceof Date;if(p!=d)return!1;if(p&&d)return t.getTime()==n.getTime();var h=t instanceof RegExp,y=n instanceof RegExp;if(h!=y)return!1;if(h&&y)return t.toString()==n.toString();var m=o(t);if((u=m.length)!==o(n).length)return!1;for(c=u;0!=c--;)if(!i.call(n,m[c]))return!1;if(a&&t instanceof Element&&n instanceof Element)return t===n;for(c=u;0!=c--;)if(!("_owner"===(s=m[c])&&t.$$typeof||e(t[s],n[s])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(319),o=n(183);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(34),o=n(320),i=n(321),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(13).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(192),o=n(361),i=n(85);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=function(e,t,n){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),(0,o.default)(e.prototype,n)};var o=r(n(31));e.exports=t.default},function(e,t){e.exports=s},function(e,t){e.exports=l},function(e,t,n){e.exports={input:"_3MysI",suggestionsContainerOpen:"ahMdW",sectionContainer:"xstWL",suggestionHighlighted:"_3YTCa"}},function(e,t,n){e.exports={basePlaylistItem:"_2nvrp",playlistItem:"_6o0Z2",playlistMetadata:"_3MCKL",partialHeading:"_13tO6"}},function(e,t,n){e.exports={thumbnail:"_3lfBf",sixteenByNine:"_2LqZ8",nineBySixteen:"_136ry",oneByOne:"_2wYLa",twoByThree:"_1eC6Q"}},function(e,t,n){var r=n(346);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(371),o=n(77),i=n(372),a=n(373),c=n(374),u=n(33),s=n(187),l=s(r),f=s(o),p=s(i),d=s(a),h=s(c),y=u;(r&&"[object DataView]"!=y(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=y(new o)||i&&"[object Promise]"!=y(i.resolve())||a&&"[object Set]"!=y(new a)||c&&"[object WeakMap]"!=y(new c))&&(y=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=y},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=void 0;var o=r(n(31)),i=n(61),a="$",c=".",u=function(){function e(e,t){if(void 0===t&&(t={}),"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===a,this.isValue=this.key[0]===c,this.isSibling=!this.isContext&&!this.isValue;var n=this.isContext?a:this.isValue?c:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,i.getter)(this.path,!0),this.map=t.map}var t=e.prototype;return t.getValue=function(e){var t=this.isContext?e.context:this.isValue?e.value:e.parent;return this.getter&&(t=this.getter(t||{})),this.map&&(t=this.map(t)),t},t.cast=function(e,t){return this.getValue((0,o.default)({},t,{value:e}))},t.resolve=function(){return this},t.describe=function(){return{type:"ref",key:this.key}},t.toString=function(){return"Ref("+this.key+")"},e.isRef=function(e){return e&&e.__isYupRef},e}();t.default=u,u.prototype.__isYupRef=!0,e.exports=t.default},function(e,t){e.exports=f},function(e,t,n){e.exports={grid:"G_RXX",subgrid:"_38ohZ"}},function(e,t,n){e.exports={svg:"_3OUhC",iconButton:"_3t3VL",iconWithText:"_2KLHo",iconOnly:"_2rQWb"}},function(e,t,n){e.exports={mask:"_3nE2p",video:"KdGwU",playlist:"_1cBmC",maskContainer:"_3si6K"}},function(e,t,n){e.exports={partialDashboardBreadcrumb:"_3X1Cy",partialWhatsNewBreadcrumb:"_2ptUi",partialOldLookBreadcrumb:"_xR5L",partialBanner:"_1Aoj8"}},function(e,t,n){e.exports={textBoxContainer:"yq9UD",textBox:"_2qv3A",itemContainer:"hVZjz",image:"TKEXX"}},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,n){var r=n(26)(Object,"create");e.exports=r},function(e,t,n){var r=n(336),o=n(337),i=n(338),a=n(339),c=n(340);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(76);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(342);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(74);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(356);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(191),o=n(58);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var c=-1,u=t.length;++c<u;){var s=t[c],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?o(n,s,l):r(n,s,l)}return n}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=u(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){var r=u(this[e],t);return null!==r?r:n}),2)};var r=Object.prototype.toString,o=Error.prototype.toString,i=RegExp.prototype.toString,a="undefined"!=typeof Symbol?Symbol.prototype.toString:function(){return""},c=/^Symbol\((.*)\)(.*)$/;function u(e,t){if(void 0===t&&(t=!1),null==e||!0===e||!1===e)return""+e;var n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?'"'+e+'"':e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return a.call(e).replace(c,"Symbol($1)");var u=r.call(e).slice(8,-1);return"Date"===u?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===u||e instanceof Error?"["+o.call(e)+"]":"RegExp"===u?i.call(e):null}e.exports=t.default},function(e,t,n){"use strict";function r(e){this._maxSize=e,this.clear()}r.prototype.clear=function(){this._size=0,this._values={}},r.prototype.get=function(e){return this._values[e]},r.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),this._values.hasOwnProperty(e)||this._size++,this._values[e]=t};var o=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i=/^\d+$/,a=/^\d/,c=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,u=/^\s*(['"]?)(.*?)(\1)\s*$/,s=!1,l=new r(512),f=new r(512),p=new r(512);try{new Function("")}catch(e){s=!0}function d(e){return l.get(e)||l.set(e,h(e).map((function(e){return e.replace(u,"$2")})))}function h(e){return e.match(o)}function y(e,t,n){return"string"==typeof t&&(n=t,t=!1),n=n||"data",(e=e||"")&&"["!==e.charAt(0)&&(e="."+e),t?function(e,t){var n,r=t,o=h(e);return m(o,(function(e,t,o,i,a){n=i===a.length-1,r+=(e=t||o?"["+e+"]":"."+e)+(n?")":" || {})")})),new Array(o.length+1).join("(")+r}(e,n):n+e}function m(e,t,n){var r,o,i,a,c=e.length;for(o=0;o<c;o++)(r=e[o])&&(b(r)&&(r='"'+r+'"'),i=!(a=v(r))&&/^\d+$/.test(r),t.call(n,r,a,i,o,e))}function v(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function b(e){return!v(e)&&(function(e){return e.match(a)&&!e.match(i)}(e)||function(e){return c.test(e)}(e))}e.exports={Cache:r,expr:y,split:h,normalizePath:d,setter:s?function(e){var t=d(e);return function(e,n){return function(e,t,n){var r=0,o=e.length;for(;r<o-1;)t=t[e[r++]];t[e[r]]=n}(t,e,n)}}:function(e){return f.get(e)||f.set(e,new Function("data, value",y(e,"data")+" = value"))},getter:s?function(e,t){var n=d(e);return function(e){return function(e,t,n){var r=0,o=e.length;for(;r<o;){if(null==n&&t)return;n=n[e[r++]]}return n}(n,t,e)}}:function(e,t){var n=e+"_"+t;return p.get(n)||p.set(n,new Function("data","return "+y(e,t,"data")))},join:function(e){return e.reduce((function(e,t){return e+(v(t)||i.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){m(h(e),t,n)}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e){return null==e},e.exports=t.default},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(97))},function(e,t,n){"use strict";(function(e){var r=n(7),o=n(227),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.a.Buffer:void 0,u=(c?c.isBuffer:void 0)||o.a;t.a=u}).call(this,n(72)(e))},function(e,t,n){e.exports={buttonList:"_2v9CT",dropdownToggle:"AYBvQ"}},function(e,t,n){e.exports={tagList:"yvetE",tagItem:"_1InnN"}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.addMethod=function(e,t,n){if(!e||!(0,y.default)(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if("string"!=typeof t)throw new TypeError("A Method name must be provided");if("function"!=typeof n)throw new TypeError("Method function must be provided");e.prototype[t]=n},t.lazy=t.ref=t.boolean=void 0;var o=r(n(25));t.mixed=o.default;var i=r(n(418));t.bool=i.default;var a=r(n(419));t.string=a.default;var c=r(n(420));t.number=c.default;var u=r(n(421));t.date=u.default;var s=r(n(423));t.object=s.default;var l=r(n(444));t.array=l.default;var f=r(n(45)),p=r(n(445)),d=r(n(89));t.ValidationError=d.default;var h=r(n(218));t.reach=h.default;var y=r(n(28));t.isSchema=y.default;var m=r(n(446));t.setLocale=m.default;var v=i.default;t.boolean=v;t.ref=function(e,t){return new f.default(e,t)};t.lazy=function(e){return new p.default(e)}},function(e,t,n){e.exports={footerImageContainer:"_2lUo1",footerImage:"Q_m9i",wave:"_2WUUq"}},function(e,t,n){e.exports={appLink:"_1SFgo",seasonEpisodeContainer:"_1YAi8"}},function(e,t,n){e.exports={rowWidth:"_8IgrO",largeRowWidth:"q46rm",hovering:"IeeJA"}},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(96),o=n(52),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(),d=a("\n"),h=a(),y=a("+"),m=a("#"),v=a(),b=a("mailto:"),g=a("?"),w=a("/"),E=a("_"),S=a(),O=a(),x=a(),k=a("{"),C=a("["),j=a("<"),A=a("("),_=a("}"),L=a("]"),P=a(">"),N=a(")"),R=a("&");t.Base=i,t.DOMAIN=c,t.AT=u,t.COLON=s,t.DOT=l,t.PUNCTUATION=f,t.LOCALHOST=p,t.NL=d,t.NUM=h,t.PLUS=y,t.POUND=m,t.QUERY=g,t.PROTOCOL=v,t.MAILTO=b,t.SLASH=w,t.UNDERSCORE=E,t.SYM=S,t.TLD=O,t.WS=x,t.OPENBRACE=k,t.OPENBRACKET=C,t.OPENANGLEBRACKET=j,t.OPENPAREN=A,t.CLOSEBRACE=_,t.CLOSEBRACKET=L,t.CLOSEANGLEBRACKET=P,t.CLOSEPAREN=N,t.AMPERSAND=R},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(12),o=n(74),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(33),o=n(18);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(325),o=n(341),i=n(343),a=n(344),c=n(345);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(26)(n(13),"Map");e.exports=r},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(54),o=n(350),i=n(351),a=n(352),c=n(353),u=n(354);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,e.exports=s},function(e,t,n){(function(e){var r=n(13),o=n(359),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u}).call(this,n(81)(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){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(185),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c}).call(this,n(81)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(186),o=n(78);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(368),o=n(197),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=c},function(e,t,n){var r=n(203);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.propagateErrors=function(e,t){return e?null:function(e){return t.push(e),e.value}},t.settled=u,t.collectErrors=s,t.default=function(e){var t=e.endEarly,n=(0,o.default)(e,["endEarly"]);return t?function(e,t,n){return c(n).all(e).catch((function(e){throw"ValidationError"===e.name&&(e.value=t),e})).then((function(){return t}))}(n.validations,n.value,n.sync):s(n)};var o=r(n(208)),i=n(209),a=r(n(89)),c=function(e){return e?i.SynchronousPromise:Promise};function u(e,t){var n=c(t);return n.all(e.map((function(e){return n.resolve(e).then((function(e){return{fulfilled:!0,value:e}}),(function(e){return{fulfilled:!1,value:e}}))})))}function s(e){var t=e.validations,n=e.value,r=e.path,o=e.sync,i=e.errors,c=e.sort;return i=function(e){return void 0===e&&(e=[]),e.inner&&e.inner.length?e.inner:[].concat(e)}(i),u(t,o).then((function(e){var t=e.filter((function(e){return!e.fulfilled})).reduce((function(e,t){var n=t.value;if(!a.default.isError(n))throw n;return e.concat(n)}),[]);if(c&&t.sort(c),(i=t.concat(i)).length)throw new a.default(i,n,r);return n}))}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=c;var o=r(n(60)),i=/\$\{\s*(\w+)\s*\}/g,a=function(e){return function(t){return e.replace(i,(function(e,n){return(0,o.default)(t[n])}))}};function c(e,t,n,r){var o=this;this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],e&&[].concat(e).forEach((function(e){o.errors=o.errors.concat(e.errors||e),e.inner&&(o.inner=o.inner.concat(e.inner.length?e.inner:e))})),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,c)}c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.isError=function(e){return e&&"ValidationError"===e.name},c.formatError=function(e,t){"string"==typeof e&&(e=a(e));var n=function(t){return t.path=t.label||t.path||"this","function"==typeof e?e(t):e};return 1===arguments.length?n:n(t)},e.exports=t.default},function(e,t){e.exports=p},function(e,t,n){"use strict";e.exports=n(316)},function(e,t,n){"use strict";var r=n(317),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var c=u(t),y=u(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||y&&y[v]||c&&c[v])){var b=p(n,v);try{s(t,v,b)}catch(e){}}}}return t}},function(e,t,n){e.exports={itemSpacing:"_10Pgb"}},function(e,t,n){e.exports={partialSubject:"_1rrH2",partialSubjectList:"_15Qdz"}},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(52);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){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){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:"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:"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:"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){var r=n(184),o=n(189),i=n(12),a=n(190),c=n(78),u=n(57);e.exports=function(e,t,n){for(var s=-1,l=(t=r(t,e)).length,f=!1;++s<l;){var p=u(t[s]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++s!=l?f:!!(l=null==e?0:e.length)&&c(l)&&a(p,l)&&(i(e)||o(e))}},function(e,t,n){var r=n(12),o=n(73),i=n(322),a=n(43);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(97))},function(e,t,n){var r=n(33),o=n(35);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(347),o=n(18),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(58),o=n(76),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(358),o=n(189),i=n(12),a=n(80),c=n(190),u=n(193),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],y=h.length;for(var m in e)!t&&!s.call(e,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||c(m,y))||h.push(m);return h}},function(e,t,n){var r=n(360),o=n(82),i=n(83),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(192),o=n(364),i=n(85);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(199),o=n(200),i=n(86),a=n(197),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(194)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(202),o=n(86),i=n(36);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(199),o=n(12);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(13).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(390),o=n(207),i=n(391);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";function r(e){return Array.prototype.slice.apply(e)}function o(e){this.status="pending",this._continuations=[],this._parent=null,this._paused=!1,e&&e.call(this,this._continueWith.bind(this),this._failWith.bind(this))}function i(e){return e&&"function"==typeof e.then}function a(e){return e}if(o.prototype={then:function(e,t){var n=o.unresolved()._setParent(this);if(this._isRejected()){if(this._paused)return this._continuations.push({promise:n,nextFn:e,catchFn:t}),n;if(t)try{var r=t(this._error);return i(r)?(this._chainPromiseData(r,n),n):o.resolve(r)._setParent(this)}catch(e){return o.reject(e)._setParent(this)}return o.reject(this._error)._setParent(this)}return this._continuations.push({promise:n,nextFn:e,catchFn:t}),this._runResolutions(),n},catch:function(e){if(this._isResolved())return o.resolve(this._data)._setParent(this);var t=o.unresolved()._setParent(this);return this._continuations.push({promise:t,catchFn:e}),this._runRejections(),t},finally:function(e){var t=!1;function n(n,r){if(!t){t=!0,e||(e=a);var o=e(n);return i(o)?o.then((function(){if(r)throw r;return n})):n}}return this.then((function(e){return n(e)})).catch((function(e){return n(null,e)}))},pause:function(){return this._paused=!0,this},resume:function(){var e=this._findFirstPaused();return e&&(e._paused=!1,e._runResolutions(),e._runRejections()),this},_findAncestry:function(){return this._continuations.reduce((function(e,t){if(t.promise){var n={promise:t.promise,children:t.promise._findAncestry()};e.push(n)}return e}),[])},_setParent:function(e){if(this._parent)throw new Error("parent already set");return this._parent=e,this},_continueWith:function(e){var t=this._findFirstPending();t&&(t._data=e,t._setResolved())},_findFirstPending:function(){return this._findFirstAncestor((function(e){return e._isPending&&e._isPending()}))},_findFirstPaused:function(){return this._findFirstAncestor((function(e){return e._paused}))},_findFirstAncestor:function(e){for(var t,n=this;n;)e(n)&&(t=n),n=n._parent;return t},_failWith:function(e){var t=this._findFirstPending();t&&(t._error=e,t._setRejected())},_takeContinuations:function(){return this._continuations.splice(0,this._continuations.length)},_runRejections:function(){if(!this._paused&&this._isRejected()){var e=this._error,t=this._takeContinuations(),n=this;t.forEach((function(t){if(t.catchFn)try{var r=t.catchFn(e);n._handleUserFunctionResult(r,t.promise)}catch(e){t.promise.reject(e)}else t.promise.reject(e)}))}},_runResolutions:function(){if(!this._paused&&this._isResolved()&&!this._isPending()){var e=this._takeContinuations();if(i(this._data))return this._handleWhenResolvedDataIsPromise(this._data);var t=this._data,n=this;e.forEach((function(e){if(e.nextFn)try{var r=e.nextFn(t);n._handleUserFunctionResult(r,e.promise)}catch(t){n._handleResolutionError(t,e)}else e.promise&&e.promise.resolve(t)}))}},_handleResolutionError:function(e,t){if(this._setRejected(),t.catchFn)try{return void t.catchFn(e)}catch(t){e=t}t.promise&&t.promise.reject(e)},_handleWhenResolvedDataIsPromise:function(e){var t=this;return e.then((function(e){t._data=e,t._runResolutions()})).catch((function(e){t._error=e,t._setRejected(),t._runRejections()}))},_handleUserFunctionResult:function(e,t){i(e)?this._chainPromiseData(e,t):t.resolve(e)},_chainPromiseData:function(e,t){e.then((function(e){t.resolve(e)})).catch((function(e){t.reject(e)}))},_setResolved:function(){this.status="resolved",this._paused||this._runResolutions()},_setRejected:function(){this.status="rejected",this._paused||this._runRejections()},_isPending:function(){return"pending"===this.status},_isResolved:function(){return"resolved"===this.status},_isRejected:function(){return"rejected"===this.status}},o.resolve=function(e){return new o((function(t,n){i(e)?e.then((function(e){t(e)})).catch((function(e){n(e)})):t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.unresolved=function(){return new o((function(e,t){this.resolve=e,this.reject=t}))},o.all=function(){var e=r(arguments);return Array.isArray(e[0])&&(e=e[0]),e.length?new o((function(t,n){var r=[],i=0,a=!1;e.forEach((function(c,u){o.resolve(c).then((function(n){r[u]=n,(i+=1)===e.length&&t(r)})).catch((function(e){!function(e){a||(a=!0,n(e))}(e)}))}))})):o.resolve([])},Promise===o)throw new Error("Please use SynchronousPromise.installGlobally() to install globally");var c=Promise;o.installGlobally=function(e){if(Promise===o)return e;var t=function(e){if(void 0===e||e.__patched)return e;var t=e;return(e=function(){t.apply(this,r(arguments))}).__patched=!0,e}(e);return Promise=o,t},o.uninstallGlobally=function(){Promise===o&&(Promise=c)},e.exports={SynchronousPromise:o}},function(e,t,n){var r=n(58),o=n(211),i=n(212);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},function(e,t,n){var r=n(397),o=n(36);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(399),o=n(410),i=n(414),a=n(12),c=n(415);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):c(e)}},function(e,t,n){var r=n(401),o=n(18);e.exports=function e(t,n,i,a,c){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,c))}},function(e,t,n){var r=n(402),o=n(405),i=n(406);e.exports=function(e,t,n,a,c,u){var s=1&n,l=e.length,f=t.length;if(l!=f&&!(s&&f>l))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var d=-1,h=!0,y=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++d<l;){var m=e[d],v=t[d];if(a)var b=s?a(v,m,d,t,e,u):a(m,v,d,e,t,u);if(void 0!==b){if(b)continue;h=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(m===e||c(m,e,n,a,u)))return y.push(t)}))){h=!1;break}}else if(m!==v&&!c(m,v,n,a,u)){h=!1;break}}return u.delete(e),u.delete(t),h}},function(e,t,n){var r=n(35);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(184),o=n(57);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.getIn=a,t.default=void 0;var o=n(61),i=r(n(32));function a(e,t,n,r){var a,c,u;return r=r||n,t?((0,o.forEach)(t,(function(o,s,l){var f=s?function(e){return e.substr(0,e.length-1).substr(1)}(o):o;if(l||(0,i.default)(e,"_subType")){var p=l?parseInt(f,10):0;if(e=e.resolve({context:r,parent:a,value:n})._subType,n){if(l&&p>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: "+o+", in the path: "+t+". because there is no value at that index. ");n=n[p]}}if(!l){if(e=e.resolve({context:r,parent:a,value:n}),!(0,i.default)(e,"fields")||!(0,i.default)(e.fields,f))throw new Error("The schema does not contain the path: "+t+". (failed at: "+u+' which is a type: "'+e._type+'") ');e=e.fields[f],a=n,n=n&&n[f],c=f,u=s?"["+o+"]":"."+o}})),{schema:e,parent:a,parentPath:c}):{parent:a,parentPath:t,schema:e}}var c=function(e,t,n,r){return a(e,t,n,r).schema};t.default=c},function(e,t,n){var r=n(424);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),e.raw=t,e}},function(e,t,n){var r=n(426),o=n(427),i=n(430),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=e.reduce((function(e,t){var r=n.shift();return e+(null==r?"":r)+t}));return o.replace(/^\./,"")},e.exports=t.default},function(e,t){e.exports=d},function(e,t){e.exports=h},function(e,t,n){var r=n(309);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){e.exports=n(310).default},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";(function(e){var r=n(7),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.a.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(72)(e))},function(e,t){e.exports=y},function(e,t,n){e.exports={suggestionContainer:"_1Gjzn"}},function(e,t,n){e.exports={actionsContainer:"_286KF"}},function(e,t,n){e.exports={disabled:"_1KxF9"}},function(e,t,n){e.exports={image:"_1YW-E"}},function(e,t,n){e.exports={audienceLabelListItem:"_2YGVO"}},function(e,t,n){e.exports={seriesItem:"_1tgrv"}},function(e,t,n){e.exports={classificationItem:"_2XXp2"}},function(e,t,n){e.exports={progressItem:"_1Znll"}},function(e,t,n){e.exports={preferencesContainer:"_1sGnn"}},function(e,t,n){e.exports={preferenceFooter:"P29kw"}},function(e,t,n){e.exports={levelList:"_3ClyO"}},function(e,t,n){e.exports={container:"VG65e"}},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,d=0,h=n||[0],y=(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=d+y)>>>2;h.length<=s;)h.push(0);h[s]|=a[u]<<8*(f+o*(l%4)),d+=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=d+y)>>>2;h.length<=s;)h.push(0);h[s]|=i<<8*(f+o*(l%4)),d+=2}return{value:h,binLen:8*d+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],d=(r=r||0)>>>3,h=-1===o?3:0,y=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!==y&&y<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+d)>>>2;p.length<=s;)p.push(0);p[s]|=(c>>>16-8*a&255)<<8*(h+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,d,h,y=[];for(n=t[0],r=t[1],o=t[2],i=t[3],f=t[4],d=0;d<80;d+=1)y[d]=d<16?e[d]:a(y[d-3]^y[d-8]^y[d-14]^y[d-16],1),p=d<20?l(a(n,5),(h=r)&o^~h&i,f,1518500249,y[d]):d<40?l(a(n,5),c(r,o,i),f,1859775393,y[d]):d<60?l(a(n,5),u(r,o,i),f,2400959708,y[d]):l(a(n,5),c(r,o,i),f,3395469782,y[d]),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 d(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=d,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.13-rc.0"}')},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e,t){e.exports=m},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(311));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,d=f.formattedHref,h=f.tagName,y=f.className,m=f.target,v=f.attributes,b="<"+h+' href="'+c(d)+'"';y&&(b+=' class="'+c(y)+'"'),m&&(b+=' target="'+c(m)+'"'),v&&(b+=" "+u(v)),b+=">"+a(p)+"</"+h+">",r.push(b)}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,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(52),o=c(n(312)),i=c(n(313)),a=c(n(314));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;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(95),o=n(71),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(),d=f(o.NUM),h=f(o.DOMAIN),y=f(),m=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,m),m.on(s,m);for(var v=0;v<a.length;v++){var b=(0,r.stateify)(a[v],p,o.TLD,o.DOMAIN);l.push.apply(l,b)}var g=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),E=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,g),l.push.apply(l,w),l.push.apply(l,E),l.push.apply(l,S);var O=g.pop(),x=w.pop(),k=E.pop(),C=S.pop(),j=f(o.DOMAIN),A=f(o.PROTOCOL),_=f(o.MAILTO);x.on("s",j).on(":",A),k.on("s",j).on(":",A),l.push(j),O.on(":",A),j.on(":",A),C.on(":",_);var L=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,L),p.on(c,d),d.on("-",y).on(c,d).on(u,h),h.on("-",y).on(u,h);for(var P=0;P<l.length;P++)l[P].on("-",y).on(u,h);y.on("-",y).on(c,h).on(u,h),p.defaultTransition=f(o.SYM);var N=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=N},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(95),o=n(315),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(71);var c=function(e){return new r.TokenState(e)},u=c(),s=c(),l=c(),f=c(),p=c(),d=c(),h=c(),y=c(o.URL),m=c(),v=c(o.URL),b=c(o.URL),g=c(),w=c(),E=c(),S=c(),O=c(),x=c(o.URL),k=c(o.URL),C=c(o.URL),j=c(o.URL),A=c(),_=c(),L=c(),P=c(),N=c(),R=c(),T=c(o.EMAIL),I=c(),F=c(o.EMAIL),D=c(o.MAILTOEMAIL),M=c(),U=c(),V=c(),z=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,d).on(a.DOMAIN,d).on(a.LOCALHOST,y).on(a.NUM,d),p.on(a.TLD,b).on(a.DOMAIN,b).on(a.NUM,b).on(a.LOCALHOST,b),d.on(a.DOT,h),N.on(a.DOT,R),h.on(a.TLD,y).on(a.DOMAIN,d).on(a.NUM,d).on(a.LOCALHOST,d),R.on(a.TLD,T).on(a.DOMAIN,N).on(a.NUM,N).on(a.LOCALHOST,N),y.on(a.DOT,h),T.on(a.DOT,R),y.on(a.COLON,m).on(a.SLASH,b),m.on(a.NUM,v),v.on(a.SLASH,b),T.on(a.COLON,I),I.on(a.NUM,F);var B=[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];b.on(a.OPENBRACE,w).on(a.OPENBRACKET,E).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,O),g.on(a.OPENBRACE,w).on(a.OPENBRACKET,E).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,O),w.on(a.CLOSEBRACE,b),E.on(a.CLOSEBRACKET,b),S.on(a.CLOSEANGLEBRACKET,b),O.on(a.CLOSEPAREN,b),x.on(a.CLOSEBRACE,b),k.on(a.CLOSEBRACKET,b),C.on(a.CLOSEANGLEBRACKET,b),j.on(a.CLOSEPAREN,b),A.on(a.CLOSEBRACE,b),_.on(a.CLOSEBRACKET,b),L.on(a.CLOSEANGLEBRACKET,b),P.on(a.CLOSEPAREN,b),w.on(B,x),E.on(B,k),S.on(B,C),O.on(B,j),w.on(q,A),E.on(q,_),S.on(q,L),O.on(q,P),x.on(B,x),k.on(B,k),C.on(B,C),j.on(B,j),x.on(q,x),k.on(q,k),C.on(q,C),j.on(q,j),A.on(B,x),_.on(B,k),L.on(B,C),P.on(B,j),A.on(q,A),_.on(q,_),L.on(q,L),P.on(q,P),b.on(B,b),g.on(B,b),b.on(q,g),g.on(q,g),l.on(a.TLD,D).on(a.DOMAIN,D).on(a.NUM,D).on(a.LOCALHOST,D),D.on(B,D).on(q,M),M.on(B,D).on(q,M);var $=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];d.on($,U).on(a.AT,V),y.on($,U).on(a.AT,V),h.on($,U),U.on($,U).on(a.AT,V).on(a.DOT,z),z.on($,U),V.on(a.TLD,N).on(a.DOMAIN,N).on(a.LOCALHOST,T);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 d=n-l;d<n;d++)i.push(e[d]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var h=f.emit();r.push(new h(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(96),o=n(52),i=n(71);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";
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Backbone"),require("ReactBootstrap"),require("ReactRedux"),require("Marionette"),require("$"),require("moment"),require("ReactDOM"),require("ReactIntersectionObserver"),require("FontAwesome"),require("SortableHOC"),require("ReactTransitionGroup"),require("Polyglot"),require("DOMPurify"),require("Autosuggest"),require("Handlebars")):"function"==typeof define&&define.amd?define(["React","_","Backbone","ReactBootstrap","ReactRedux","Marionette","$","moment","ReactDOM","ReactIntersectionObserver","FontAwesome","SortableHOC","ReactTransitionGroup","Polyglot","DOMPurify","Autosuggest","Handlebars"],t):"object"==typeof exports?exports["@clickview/online"]=t(require("React"),require("_"),require("Backbone"),require("ReactBootstrap"),require("ReactRedux"),require("Marionette"),require("$"),require("moment"),require("ReactDOM"),require("ReactIntersectionObserver"),require("FontAwesome"),require("SortableHOC"),require("ReactTransitionGroup"),require("Polyglot"),require("DOMPurify"),require("Autosuggest"),require("Handlebars")):e["@clickview/online"]=t(e.React,e._,e.Backbone,e.ReactBootstrap,e.ReactRedux,e.Marionette,e.$,e.moment,e.ReactDOM,e.ReactIntersectionObserver,e.FontAwesome,e.SortableHOC,e.ReactTransitionGroup,e.Polyglot,e.DOMPurify,e.Autosuggest,e.Handlebars)}(window,(function(e,t,n,r,o,i,a,c,u,s,l,f,p,d,h,y,m){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=447)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=i},function(e,t,n){"use strict";var r=n(63),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t){e.exports=a},function(e,t,n){e.exports={widgetItem:"_1oyw1",imagePanel:"_1UOVG",large:"_1EtWs",comingSoonPanel:"_3js2e",name:"_3csgE",clamped:"_1y2oG",editSubjectsItem:"_1yBMf"}},function(e,t,n){e.exports={subjectPreferenceItem:"_2qd2_",expandCaret:"_1SmX9",down:"dE3mQ",up:"_2vvzg",disabled:"_3xx8o",selected:"_12fy7",textBox:"_3ic5e",itemStatus:"_2d1iD",unchecked:"L-HyS",green:"_1pWm4"}},function(e,t){e.exports=c},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(185),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){e.exports={bannerImage:"_1_J-g",metadataContainer:"_2lGAa",series:"l9z_z",indicatorContainer:"_1WkeY",indicator:"ERQVF",partial:"_2kV9l"}},function(e,t,n){"use strict";(function(e){var r=n(63),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.a.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();t.a=c}).call(this,n(72)(e))},function(e,t,n){e.exports={baseFallbackContainer:"_1wRjB",svgFallbackContainer:"_2t1jq",subjectFallbackContainer:"_12D74",videoFallback:"_6BPy-",playlistFallback:"_1slQX",posterFallback:"i0o8n",subjectFallback:"_2Srdd",fallbackThumbnailImage:"_2L_tV"}},function(e,t,n){e.exports={left:"_789pr",right:"_1P8qt",button:"_24q_F",gradientLeft:"_3fkiw",gradientRight:"_2RDDy",extendedClickableAreaRight:"_13dgy",extendedClickableAreaLeft:"_37LtK",videoTopPos:"_1XTRO",topPos:"_3_p_J"}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=u},function(e,t,n){e.exports={partialLoadingHeading:"_1RLPq",partialLoading:"oArG4",labelContainer:"QLCgm",hoverActive:"_3Aleb",mask:"_2M2Zz",width:"TQg2K"}},function(e,t,n){e.exports={leftOverflowGradient:"u_MPi",rightOverflowGradient:"_38ooL",partialHeading:"OVsdA",partialDescription:"_1HtA2",partialItem:"_3G2hG",largePartialItem:"NnK8O"}},function(e,t,n){e.exports={overlayContainer:"_1MQy4",favouriteContainer:"_2obuZ",favouriteButton:"_1UfdO",title:"Q1km-",downScale:"_2_7sb",gradient:"Of_Cn",playIcon:"B9cJG"}},function(e,t,n){e.exports={titleOverlay:"_1JIh4",titleBelow:"_1OKu_",overlayContainer:"_1BBKk",favouriteContainer:"_23tXc",favouriteButton:"_2lJ57",badgeContainer:"_28ZUf",gradient:"_1o4aT"}},function(e,t,n){e.exports={partialHeroThumbnail:"mBd7D",partialSeriesText:"_2MXtV",partialVideoTitleText:"_3AoSO",partialBadge:"_33OjS",partialDescription:"_2uRQA",partialSubject:"_3YJIE"}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=b;var o=r(n(31)),i=r(n(32)),a=r(n(348)),c=r(n(387)),u=n(27),s=r(n(394)),l=r(n(88)),f=r(n(395)),p=r(n(28)),d=r(n(396)),h=r(n(60)),y=r(n(45)),m=n(218),v=function(){function e(){this.list=new Set,this.refs=new Map}var t=e.prototype;return t.toArray=function(){return(0,c.default)(this.list).concat((0,c.default)(this.refs.values()))},t.add=function(e){y.default.isRef(e)?this.refs.set(e.key,e):this.list.add(e)},t.delete=function(e){y.default.isRef(e)?this.refs.delete(e.key,e):this.list.delete(e)},t.has=function(e,t){if(this.list.has(e))return!0;for(var n,r=this.refs.values();!(n=r.next()).done;)if(t(n.value)===e)return!0;return!1},e}();function b(e){var t=this;if(void 0===e&&(e={}),!(this instanceof b))return new b;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new v,this._blacklist=new v,this.tests=[],this.transforms=[],this.withMutation((function(){t.typeError(u.mixed.notType)})),(0,i.default)(e,"default")&&(this._defaultDefault=e.default),this._type=e.type||"mixed"}for(var g=b.prototype={__isYupSchema__:!0,constructor:b,clone:function(){var e=this;return this._mutate?this:(0,a.default)(this,(function(t){if((0,p.default)(t)&&t!==e)return t}))},label:function(e){var t=this.clone();return t._label=e,t},meta:function(e){if(0===arguments.length)return this._meta;var t=this.clone();return t._meta=(0,o.default)(t._meta||{},e),t},withMutation:function(e){var t=this._mutate;this._mutate=!0;var n=e(this);return this._mutate=t,n},concat:function(e){if(!e||e===this)return this;if(e._type!==this._type&&"mixed"!==this._type)throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+e._type);var t=(0,f.default)(e.clone(),this);return(0,i.default)(e,"_default")&&(t._default=e._default),t.tests=this.tests,t._exclusive=this._exclusive,t.withMutation((function(t){e.tests.forEach((function(e){t.test(e.OPTIONS)}))})),t},isType:function(e){return!(!this._nullable||null!==e)||(!this._typeCheck||this._typeCheck(e))},resolve:function(e){var t=this;if(t._conditions.length){var n=t._conditions;(t=t.clone())._conditions=[],t=(t=n.reduce((function(t,n){return n.resolve(t,e)}),t)).resolve(e)}return t},cast:function(e,t){void 0===t&&(t={});var n=this.resolve((0,o.default)({},t,{value:e})),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){var i=(0,h.default)(e),a=(0,h.default)(r);throw new TypeError("The value of "+(t.path||"field")+' could not be cast to a value that satisfies the schema type: "'+n._type+'". \n\nattempted value: '+i+" \n"+(a!==i?"result of cast: "+a:""))}return r},_cast:function(e){var t=this,n=void 0===e?e:this.transforms.reduce((function(n,r){return r.call(t,n,e)}),e);return void 0===n&&(0,i.default)(this,"_default")&&(n=this.default()),n},_validate:function(e,t){var n=this;void 0===t&&(t={});var r=e,i=null!=t.originalValue?t.originalValue:e,a=this._option("strict",t),c=this._option("abortEarly",t),u=t.sync,s=t.path,f=this._label;a||(r=this._cast(r,(0,o.default)({assert:!1},t)));var p={value:r,path:s,schema:this,options:t,label:f,originalValue:i,sync:u},d=[];return this._typeError&&d.push(this._typeError(p)),this._whitelistError&&d.push(this._whitelistError(p)),this._blacklistError&&d.push(this._blacklistError(p)),(0,l.default)({validations:d,endEarly:c,value:r,path:s,sync:u}).then((function(e){return(0,l.default)({path:s,sync:u,value:e,endEarly:c,validations:n.tests.map((function(e){return e(p)}))})}))},validate:function(e,t){return void 0===t&&(t={}),this.resolve((0,o.default)({},t,{value:e}))._validate(e,t)},validateSync:function(e,t){var n,r;if(void 0===t&&(t={}),this.resolve((0,o.default)({},t,{value:e}))._validate(e,(0,o.default)({},t,{sync:!0})).then((function(e){return n=e})).catch((function(e){return r=e})),r)throw r;return n},isValid:function(e,t){return this.validate(e,t).then((function(){return!0})).catch((function(e){if("ValidationError"===e.name)return!1;throw e}))},isValidSync:function(e,t){try{return this.validateSync(e,t),!0}catch(e){if("ValidationError"===e.name)return!1;throw e}},getDefault:function(e){return void 0===e&&(e={}),this.resolve(e).default()},default:function(e){if(0===arguments.length){var t=(0,i.default)(this,"_default")?this._default:this._defaultDefault;return"function"==typeof t?t.call(this):(0,a.default)(t)}var n=this.clone();return n._default=e,n},strict:function(e){void 0===e&&(e=!0);var t=this.clone();return t._options.strict=e,t},_isPresent:function(e){return null!=e},required:function(e){return void 0===e&&(e=u.mixed.required),this.test({message:e,name:"required",exclusive:!0,test:function(e){return this.schema._isPresent(e)}})},notRequired:function(){var e=this.clone();return e.tests=e.tests.filter((function(e){return"required"!==e.OPTIONS.name})),e},nullable:function(e){void 0===e&&(e=!0);var t=this.clone();return t._nullable=e,t},transform:function(e){var t=this.clone();return t.transforms.push(e),t},test:function(){var e;if(void 0===(e=1===arguments.length?"function"==typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(e.message=u.mixed.default),"function"!=typeof e.test)throw new TypeError("`test` is a required parameters");var t=this.clone(),n=(0,d.default)(e),r=e.exclusive||e.name&&!0===t._exclusive[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t._exclusive[e.name]=!!e.exclusive,t.tests=t.tests.filter((function(t){if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t},when:function(e,t){1===arguments.length&&(t=e,e=".");var n=this.clone(),r=[].concat(e).map((function(e){return new y.default(e)}));return r.forEach((function(e){e.isSibling&&n._deps.push(e.key)})),n._conditions.push(new s.default(r,t)),n},typeError:function(e){var t=this.clone();return t._typeError=(0,d.default)({message:e,name:"typeError",test:function(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t},oneOf:function(e,t){void 0===t&&(t=u.mixed.oneOf);var n=this.clone();return e.forEach((function(e){n._whitelist.add(e),n._blacklist.delete(e)})),n._whitelistError=(0,d.default)({message:t,name:"oneOf",test:function(e){if(void 0===e)return!0;var t=this.schema._whitelist;return!!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},notOneOf:function(e,t){void 0===t&&(t=u.mixed.notOneOf);var n=this.clone();return e.forEach((function(e){n._blacklist.add(e),n._whitelist.delete(e)})),n._blacklistError=(0,d.default)({message:t,name:"notOneOf",test:function(e){var t=this.schema._blacklist;return!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},strip:function(e){void 0===e&&(e=!0);var t=this.clone();return t._strip=e,t},_option:function(e,t){return(0,i.default)(t,e)?t[e]:this._options[e]},describe:function(){var e=this.clone();return{type:e._type,meta:e._meta,label:e._label,tests:e.tests.map((function(e){return{name:e.OPTIONS.name,params:e.OPTIONS.params}})).filter((function(e,t,n){return n.findIndex((function(t){return t.name===e.name}))===t}))}}},w=["validate","validateSync"],E=function(){var e=w[S];g[e+"At"]=function(t,n,r){void 0===r&&(r={});var i=(0,m.getIn)(this,t,n,r.context),a=i.parent,c=i.parentPath;return i.schema[e](a&&a[c],(0,o.default)({},r,{parent:a,path:t}))}},S=0;S<w.length;S++)E();for(var O=["equals","is"],x=0;x<O.length;x++){g[O[x]]=g.oneOf}for(var k=["not","nope"],C=0;C<k.length;C++){g[k[C]]=g.notOneOf}g.optional=g.notRequired,e.exports=t.default},function(e,t,n){var r=n(328),o=n(331);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=t.array=t.object=t.boolean=t.date=t.number=t.string=t.mixed=void 0;var o=r(n(60)),i={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:function(e){var t=e.path,n=e.type,r=e.value,i=e.originalValue,a=null!=i&&i!==r,c=t+" must be a `"+n+"` type, but the final value was: `"+(0,o.default)(r,!0)+"`"+(a?" (cast from the value `"+(0,o.default)(i,!0)+"`).":".");return null===r&&(c+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),c}};t.mixed=i;var a={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"};t.string=a;var c={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",notEqual:"${path} must be not equal to ${notEqual}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"};t.number=c;var u={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"};t.date=u;var s={};t.boolean=s;var l={noUnknown:"${path} field cannot have keys not specified in the object shape"};t.object=l;var f={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items"};t.array=f;var p={mixed:i,string:a,number:c,date:u,object:l,array:f,boolean:s};t.default=p},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e){return e&&e.__isYupSchema__},e.exports=t.default},function(e,t,n){e.exports={duration:"_3XH_S",interactive:"INxgX",productionYear:"Bt6Bx",rating:"_3bOtF",badgeList:"_1BsVS"}},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var c,u,s,l=r(t),f=r(n);if(l&&f){if((u=t.length)!=n.length)return!1;for(c=u;0!=c--;)if(!e(t[c],n[c]))return!1;return!0}if(l!=f)return!1;var p=t instanceof Date,d=n instanceof Date;if(p!=d)return!1;if(p&&d)return t.getTime()==n.getTime();var h=t instanceof RegExp,y=n instanceof RegExp;if(h!=y)return!1;if(h&&y)return t.toString()==n.toString();var m=o(t);if((u=m.length)!==o(n).length)return!1;for(c=u;0!=c--;)if(!i.call(n,m[c]))return!1;if(a&&t instanceof Element&&n instanceof Element)return t===n;for(c=u;0!=c--;)if(!("_owner"===(s=m[c])&&t.$$typeof||e(t[s],n[s])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(319),o=n(183);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(34),o=n(320),i=n(321),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(13).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(192),o=n(361),i=n(85);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=function(e,t,n){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),(0,o.default)(e.prototype,n)};var o=r(n(31));e.exports=t.default},function(e,t){e.exports=s},function(e,t){e.exports=l},function(e,t,n){e.exports={input:"_3MysI",suggestionsContainerOpen:"ahMdW",sectionContainer:"xstWL",suggestionHighlighted:"_3YTCa"}},function(e,t,n){e.exports={basePlaylistItem:"_2nvrp",playlistItem:"_6o0Z2",playlistMetadata:"_3MCKL",partialHeading:"_13tO6"}},function(e,t,n){e.exports={thumbnail:"_3lfBf",sixteenByNine:"_2LqZ8",nineBySixteen:"_136ry",oneByOne:"_2wYLa",twoByThree:"_1eC6Q"}},function(e,t,n){var r=n(346);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(371),o=n(77),i=n(372),a=n(373),c=n(374),u=n(33),s=n(187),l=s(r),f=s(o),p=s(i),d=s(a),h=s(c),y=u;(r&&"[object DataView]"!=y(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=y(new o)||i&&"[object Promise]"!=y(i.resolve())||a&&"[object Set]"!=y(new a)||c&&"[object WeakMap]"!=y(new c))&&(y=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=y},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=void 0;var o=r(n(31)),i=n(61),a="$",c=".",u=function(){function e(e,t){if(void 0===t&&(t={}),"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===a,this.isValue=this.key[0]===c,this.isSibling=!this.isContext&&!this.isValue;var n=this.isContext?a:this.isValue?c:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,i.getter)(this.path,!0),this.map=t.map}var t=e.prototype;return t.getValue=function(e){var t=this.isContext?e.context:this.isValue?e.value:e.parent;return this.getter&&(t=this.getter(t||{})),this.map&&(t=this.map(t)),t},t.cast=function(e,t){return this.getValue((0,o.default)({},t,{value:e}))},t.resolve=function(){return this},t.describe=function(){return{type:"ref",key:this.key}},t.toString=function(){return"Ref("+this.key+")"},e.isRef=function(e){return e&&e.__isYupRef},e}();t.default=u,u.prototype.__isYupRef=!0,e.exports=t.default},function(e,t){e.exports=f},function(e,t,n){e.exports={grid:"G_RXX",subgrid:"_38ohZ"}},function(e,t,n){e.exports={svg:"_3OUhC",iconButton:"_3t3VL",iconWithText:"_2KLHo",iconOnly:"_2rQWb"}},function(e,t,n){e.exports={mask:"_3nE2p",video:"KdGwU",playlist:"_1cBmC",maskContainer:"_3si6K"}},function(e,t,n){e.exports={partialDashboardBreadcrumb:"_3X1Cy",partialWhatsNewBreadcrumb:"_2ptUi",partialOldLookBreadcrumb:"_xR5L",partialBanner:"_1Aoj8"}},function(e,t,n){e.exports={textBoxContainer:"yq9UD",textBox:"_2qv3A",itemContainer:"hVZjz",image:"TKEXX"}},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,n){var r=n(26)(Object,"create");e.exports=r},function(e,t,n){var r=n(336),o=n(337),i=n(338),a=n(339),c=n(340);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(76);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(342);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(74);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(356);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(191),o=n(58);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var c=-1,u=t.length;++c<u;){var s=t[c],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?o(n,s,l):r(n,s,l)}return n}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=u(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){var r=u(this[e],t);return null!==r?r:n}),2)};var r=Object.prototype.toString,o=Error.prototype.toString,i=RegExp.prototype.toString,a="undefined"!=typeof Symbol?Symbol.prototype.toString:function(){return""},c=/^Symbol\((.*)\)(.*)$/;function u(e,t){if(void 0===t&&(t=!1),null==e||!0===e||!1===e)return""+e;var n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?'"'+e+'"':e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return a.call(e).replace(c,"Symbol($1)");var u=r.call(e).slice(8,-1);return"Date"===u?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===u||e instanceof Error?"["+o.call(e)+"]":"RegExp"===u?i.call(e):null}e.exports=t.default},function(e,t,n){"use strict";function r(e){this._maxSize=e,this.clear()}r.prototype.clear=function(){this._size=0,this._values={}},r.prototype.get=function(e){return this._values[e]},r.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),this._values.hasOwnProperty(e)||this._size++,this._values[e]=t};var o=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i=/^\d+$/,a=/^\d/,c=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,u=/^\s*(['"]?)(.*?)(\1)\s*$/,s=!1,l=new r(512),f=new r(512),p=new r(512);try{new Function("")}catch(e){s=!0}function d(e){return l.get(e)||l.set(e,h(e).map((function(e){return e.replace(u,"$2")})))}function h(e){return e.match(o)}function y(e,t,n){return"string"==typeof t&&(n=t,t=!1),n=n||"data",(e=e||"")&&"["!==e.charAt(0)&&(e="."+e),t?function(e,t){var n,r=t,o=h(e);return m(o,(function(e,t,o,i,a){n=i===a.length-1,r+=(e=t||o?"["+e+"]":"."+e)+(n?")":" || {})")})),new Array(o.length+1).join("(")+r}(e,n):n+e}function m(e,t,n){var r,o,i,a,c=e.length;for(o=0;o<c;o++)(r=e[o])&&(b(r)&&(r='"'+r+'"'),i=!(a=v(r))&&/^\d+$/.test(r),t.call(n,r,a,i,o,e))}function v(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function b(e){return!v(e)&&(function(e){return e.match(a)&&!e.match(i)}(e)||function(e){return c.test(e)}(e))}e.exports={Cache:r,expr:y,split:h,normalizePath:d,setter:s?function(e){var t=d(e);return function(e,n){return function(e,t,n){var r=0,o=e.length;for(;r<o-1;)t=t[e[r++]];t[e[r]]=n}(t,e,n)}}:function(e){return f.get(e)||f.set(e,new Function("data, value",y(e,"data")+" = value"))},getter:s?function(e,t){var n=d(e);return function(e){return function(e,t,n){var r=0,o=e.length;for(;r<o;){if(null==n&&t)return;n=n[e[r++]]}return n}(n,t,e)}}:function(e,t){var n=e+"_"+t;return p.get(n)||p.set(n,new Function("data","return "+y(e,t,"data")))},join:function(e){return e.reduce((function(e,t){return e+(v(t)||i.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){m(h(e),t,n)}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e){return null==e},e.exports=t.default},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(97))},function(e,t,n){"use strict";(function(e){var r=n(7),o=n(227),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.a.Buffer:void 0,u=(c?c.isBuffer:void 0)||o.a;t.a=u}).call(this,n(72)(e))},function(e,t,n){e.exports={buttonList:"_2v9CT",dropdownToggle:"AYBvQ"}},function(e,t,n){e.exports={tagList:"yvetE",tagItem:"_1InnN"}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.addMethod=function(e,t,n){if(!e||!(0,y.default)(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if("string"!=typeof t)throw new TypeError("A Method name must be provided");if("function"!=typeof n)throw new TypeError("Method function must be provided");e.prototype[t]=n},t.lazy=t.ref=t.boolean=void 0;var o=r(n(25));t.mixed=o.default;var i=r(n(418));t.bool=i.default;var a=r(n(419));t.string=a.default;var c=r(n(420));t.number=c.default;var u=r(n(421));t.date=u.default;var s=r(n(423));t.object=s.default;var l=r(n(444));t.array=l.default;var f=r(n(45)),p=r(n(445)),d=r(n(89));t.ValidationError=d.default;var h=r(n(218));t.reach=h.default;var y=r(n(28));t.isSchema=y.default;var m=r(n(446));t.setLocale=m.default;var v=i.default;t.boolean=v;t.ref=function(e,t){return new f.default(e,t)};t.lazy=function(e){return new p.default(e)}},function(e,t,n){e.exports={footerImageContainer:"_2lUo1",footerImage:"Q_m9i",wave:"_2WUUq"}},function(e,t,n){e.exports={appLink:"_1SFgo",seasonEpisodeContainer:"_1YAi8"}},function(e,t,n){e.exports={rowWidth:"_8IgrO",largeRowWidth:"q46rm",hovering:"IeeJA"}},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(96),o=n(52),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(),d=a("\n"),h=a(),y=a("+"),m=a("#"),v=a(),b=a("mailto:"),g=a("?"),w=a("/"),E=a("_"),S=a(),O=a(),x=a(),k=a("{"),C=a("["),j=a("<"),A=a("("),_=a("}"),L=a("]"),P=a(">"),N=a(")"),R=a("&");t.Base=i,t.DOMAIN=c,t.AT=u,t.COLON=s,t.DOT=l,t.PUNCTUATION=f,t.LOCALHOST=p,t.NL=d,t.NUM=h,t.PLUS=y,t.POUND=m,t.QUERY=g,t.PROTOCOL=v,t.MAILTO=b,t.SLASH=w,t.UNDERSCORE=E,t.SYM=S,t.TLD=O,t.WS=x,t.OPENBRACE=k,t.OPENBRACKET=C,t.OPENANGLEBRACKET=j,t.OPENPAREN=A,t.CLOSEBRACE=_,t.CLOSEBRACKET=L,t.CLOSEANGLEBRACKET=P,t.CLOSEPAREN=N,t.AMPERSAND=R},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(12),o=n(74),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(33),o=n(18);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(325),o=n(341),i=n(343),a=n(344),c=n(345);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(26)(n(13),"Map");e.exports=r},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(54),o=n(350),i=n(351),a=n(352),c=n(353),u=n(354);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,e.exports=s},function(e,t,n){(function(e){var r=n(13),o=n(359),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u}).call(this,n(81)(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){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(185),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c}).call(this,n(81)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(186),o=n(78);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(368),o=n(197),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=c},function(e,t,n){var r=n(203);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.propagateErrors=function(e,t){return e?null:function(e){return t.push(e),e.value}},t.settled=u,t.collectErrors=s,t.default=function(e){var t=e.endEarly,n=(0,o.default)(e,["endEarly"]);return t?function(e,t,n){return c(n).all(e).catch((function(e){throw"ValidationError"===e.name&&(e.value=t),e})).then((function(){return t}))}(n.validations,n.value,n.sync):s(n)};var o=r(n(208)),i=n(209),a=r(n(89)),c=function(e){return e?i.SynchronousPromise:Promise};function u(e,t){var n=c(t);return n.all(e.map((function(e){return n.resolve(e).then((function(e){return{fulfilled:!0,value:e}}),(function(e){return{fulfilled:!1,value:e}}))})))}function s(e){var t=e.validations,n=e.value,r=e.path,o=e.sync,i=e.errors,c=e.sort;return i=function(e){return void 0===e&&(e=[]),e.inner&&e.inner.length?e.inner:[].concat(e)}(i),u(t,o).then((function(e){var t=e.filter((function(e){return!e.fulfilled})).reduce((function(e,t){var n=t.value;if(!a.default.isError(n))throw n;return e.concat(n)}),[]);if(c&&t.sort(c),(i=t.concat(i)).length)throw new a.default(i,n,r);return n}))}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=c;var o=r(n(60)),i=/\$\{\s*(\w+)\s*\}/g,a=function(e){return function(t){return e.replace(i,(function(e,n){return(0,o.default)(t[n])}))}};function c(e,t,n,r){var o=this;this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],e&&[].concat(e).forEach((function(e){o.errors=o.errors.concat(e.errors||e),e.inner&&(o.inner=o.inner.concat(e.inner.length?e.inner:e))})),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,c)}c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.isError=function(e){return e&&"ValidationError"===e.name},c.formatError=function(e,t){"string"==typeof e&&(e=a(e));var n=function(t){return t.path=t.label||t.path||"this","function"==typeof e?e(t):e};return 1===arguments.length?n:n(t)},e.exports=t.default},function(e,t){e.exports=p},function(e,t,n){"use strict";e.exports=n(316)},function(e,t,n){"use strict";var r=n(317),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var c=u(t),y=u(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||y&&y[v]||c&&c[v])){var b=p(n,v);try{s(t,v,b)}catch(e){}}}}return t}},function(e,t,n){e.exports={itemSpacing:"_10Pgb"}},function(e,t,n){e.exports={partialSubject:"_1rrH2",partialSubjectList:"_15Qdz"}},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(52);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){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){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:"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:"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:"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){var r=n(184),o=n(189),i=n(12),a=n(190),c=n(78),u=n(57);e.exports=function(e,t,n){for(var s=-1,l=(t=r(t,e)).length,f=!1;++s<l;){var p=u(t[s]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++s!=l?f:!!(l=null==e?0:e.length)&&c(l)&&a(p,l)&&(i(e)||o(e))}},function(e,t,n){var r=n(12),o=n(73),i=n(322),a=n(43);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(97))},function(e,t,n){var r=n(33),o=n(35);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(347),o=n(18),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(58),o=n(76),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(358),o=n(189),i=n(12),a=n(80),c=n(190),u=n(193),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],y=h.length;for(var m in e)!t&&!s.call(e,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||c(m,y))||h.push(m);return h}},function(e,t,n){var r=n(360),o=n(82),i=n(83),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(192),o=n(364),i=n(85);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(199),o=n(200),i=n(86),a=n(197),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(194)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(202),o=n(86),i=n(36);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(199),o=n(12);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(13).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(390),o=n(207),i=n(391);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";function r(e){return Array.prototype.slice.apply(e)}function o(e){this.status="pending",this._continuations=[],this._parent=null,this._paused=!1,e&&e.call(this,this._continueWith.bind(this),this._failWith.bind(this))}function i(e){return e&&"function"==typeof e.then}function a(e){return e}if(o.prototype={then:function(e,t){var n=o.unresolved()._setParent(this);if(this._isRejected()){if(this._paused)return this._continuations.push({promise:n,nextFn:e,catchFn:t}),n;if(t)try{var r=t(this._error);return i(r)?(this._chainPromiseData(r,n),n):o.resolve(r)._setParent(this)}catch(e){return o.reject(e)._setParent(this)}return o.reject(this._error)._setParent(this)}return this._continuations.push({promise:n,nextFn:e,catchFn:t}),this._runResolutions(),n},catch:function(e){if(this._isResolved())return o.resolve(this._data)._setParent(this);var t=o.unresolved()._setParent(this);return this._continuations.push({promise:t,catchFn:e}),this._runRejections(),t},finally:function(e){var t=!1;function n(n,r){if(!t){t=!0,e||(e=a);var o=e(n);return i(o)?o.then((function(){if(r)throw r;return n})):n}}return this.then((function(e){return n(e)})).catch((function(e){return n(null,e)}))},pause:function(){return this._paused=!0,this},resume:function(){var e=this._findFirstPaused();return e&&(e._paused=!1,e._runResolutions(),e._runRejections()),this},_findAncestry:function(){return this._continuations.reduce((function(e,t){if(t.promise){var n={promise:t.promise,children:t.promise._findAncestry()};e.push(n)}return e}),[])},_setParent:function(e){if(this._parent)throw new Error("parent already set");return this._parent=e,this},_continueWith:function(e){var t=this._findFirstPending();t&&(t._data=e,t._setResolved())},_findFirstPending:function(){return this._findFirstAncestor((function(e){return e._isPending&&e._isPending()}))},_findFirstPaused:function(){return this._findFirstAncestor((function(e){return e._paused}))},_findFirstAncestor:function(e){for(var t,n=this;n;)e(n)&&(t=n),n=n._parent;return t},_failWith:function(e){var t=this._findFirstPending();t&&(t._error=e,t._setRejected())},_takeContinuations:function(){return this._continuations.splice(0,this._continuations.length)},_runRejections:function(){if(!this._paused&&this._isRejected()){var e=this._error,t=this._takeContinuations(),n=this;t.forEach((function(t){if(t.catchFn)try{var r=t.catchFn(e);n._handleUserFunctionResult(r,t.promise)}catch(e){t.promise.reject(e)}else t.promise.reject(e)}))}},_runResolutions:function(){if(!this._paused&&this._isResolved()&&!this._isPending()){var e=this._takeContinuations();if(i(this._data))return this._handleWhenResolvedDataIsPromise(this._data);var t=this._data,n=this;e.forEach((function(e){if(e.nextFn)try{var r=e.nextFn(t);n._handleUserFunctionResult(r,e.promise)}catch(t){n._handleResolutionError(t,e)}else e.promise&&e.promise.resolve(t)}))}},_handleResolutionError:function(e,t){if(this._setRejected(),t.catchFn)try{return void t.catchFn(e)}catch(t){e=t}t.promise&&t.promise.reject(e)},_handleWhenResolvedDataIsPromise:function(e){var t=this;return e.then((function(e){t._data=e,t._runResolutions()})).catch((function(e){t._error=e,t._setRejected(),t._runRejections()}))},_handleUserFunctionResult:function(e,t){i(e)?this._chainPromiseData(e,t):t.resolve(e)},_chainPromiseData:function(e,t){e.then((function(e){t.resolve(e)})).catch((function(e){t.reject(e)}))},_setResolved:function(){this.status="resolved",this._paused||this._runResolutions()},_setRejected:function(){this.status="rejected",this._paused||this._runRejections()},_isPending:function(){return"pending"===this.status},_isResolved:function(){return"resolved"===this.status},_isRejected:function(){return"rejected"===this.status}},o.resolve=function(e){return new o((function(t,n){i(e)?e.then((function(e){t(e)})).catch((function(e){n(e)})):t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.unresolved=function(){return new o((function(e,t){this.resolve=e,this.reject=t}))},o.all=function(){var e=r(arguments);return Array.isArray(e[0])&&(e=e[0]),e.length?new o((function(t,n){var r=[],i=0,a=!1;e.forEach((function(c,u){o.resolve(c).then((function(n){r[u]=n,(i+=1)===e.length&&t(r)})).catch((function(e){!function(e){a||(a=!0,n(e))}(e)}))}))})):o.resolve([])},Promise===o)throw new Error("Please use SynchronousPromise.installGlobally() to install globally");var c=Promise;o.installGlobally=function(e){if(Promise===o)return e;var t=function(e){if(void 0===e||e.__patched)return e;var t=e;return(e=function(){t.apply(this,r(arguments))}).__patched=!0,e}(e);return Promise=o,t},o.uninstallGlobally=function(){Promise===o&&(Promise=c)},e.exports={SynchronousPromise:o}},function(e,t,n){var r=n(58),o=n(211),i=n(212);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},function(e,t,n){var r=n(397),o=n(36);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(399),o=n(410),i=n(414),a=n(12),c=n(415);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):c(e)}},function(e,t,n){var r=n(401),o=n(18);e.exports=function e(t,n,i,a,c){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,c))}},function(e,t,n){var r=n(402),o=n(405),i=n(406);e.exports=function(e,t,n,a,c,u){var s=1&n,l=e.length,f=t.length;if(l!=f&&!(s&&f>l))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var d=-1,h=!0,y=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++d<l;){var m=e[d],v=t[d];if(a)var b=s?a(v,m,d,t,e,u):a(m,v,d,e,t,u);if(void 0!==b){if(b)continue;h=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(m===e||c(m,e,n,a,u)))return y.push(t)}))){h=!1;break}}else if(m!==v&&!c(m,v,n,a,u)){h=!1;break}}return u.delete(e),u.delete(t),h}},function(e,t,n){var r=n(35);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(184),o=n(57);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.getIn=a,t.default=void 0;var o=n(61),i=r(n(32));function a(e,t,n,r){var a,c,u;return r=r||n,t?((0,o.forEach)(t,(function(o,s,l){var f=s?function(e){return e.substr(0,e.length-1).substr(1)}(o):o;if(l||(0,i.default)(e,"_subType")){var p=l?parseInt(f,10):0;if(e=e.resolve({context:r,parent:a,value:n})._subType,n){if(l&&p>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: "+o+", in the path: "+t+". because there is no value at that index. ");n=n[p]}}if(!l){if(e=e.resolve({context:r,parent:a,value:n}),!(0,i.default)(e,"fields")||!(0,i.default)(e.fields,f))throw new Error("The schema does not contain the path: "+t+". (failed at: "+u+' which is a type: "'+e._type+'") ');e=e.fields[f],a=n,n=n&&n[f],c=f,u=s?"["+o+"]":"."+o}})),{schema:e,parent:a,parentPath:c}):{parent:a,parentPath:t,schema:e}}var c=function(e,t,n,r){return a(e,t,n,r).schema};t.default=c},function(e,t,n){var r=n(424);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(n,a,c):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),e.raw=t,e}},function(e,t,n){var r=n(426),o=n(427),i=n(430),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=e.reduce((function(e,t){var r=n.shift();return e+(null==r?"":r)+t}));return o.replace(/^\./,"")},e.exports=t.default},function(e,t){e.exports=d},function(e,t){e.exports=h},function(e,t,n){var r=n(309);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){e.exports=n(310).default},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";(function(e){var r=n(7),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.a.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(72)(e))},function(e,t){e.exports=y},function(e,t,n){e.exports={suggestionContainer:"_1Gjzn"}},function(e,t,n){e.exports={actionsContainer:"_286KF"}},function(e,t,n){e.exports={disabled:"_1KxF9"}},function(e,t,n){e.exports={image:"_1YW-E"}},function(e,t,n){e.exports={audienceLabelListItem:"_2YGVO"}},function(e,t,n){e.exports={seriesItem:"_1tgrv"}},function(e,t,n){e.exports={classificationItem:"_2XXp2"}},function(e,t,n){e.exports={progressItem:"_1Znll"}},function(e,t,n){e.exports={preferencesContainer:"_1sGnn"}},function(e,t,n){e.exports={preferenceFooter:"P29kw"}},function(e,t,n){e.exports={levelList:"_3ClyO"}},function(e,t,n){e.exports={container:"VG65e"}},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,d=0,h=n||[0],y=(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=d+y)>>>2;h.length<=s;)h.push(0);h[s]|=a[u]<<8*(f+o*(l%4)),d+=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=d+y)>>>2;h.length<=s;)h.push(0);h[s]|=i<<8*(f+o*(l%4)),d+=2}return{value:h,binLen:8*d+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],d=(r=r||0)>>>3,h=-1===o?3:0,y=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!==y&&y<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+d)>>>2;p.length<=s;)p.push(0);p[s]|=(c>>>16-8*a&255)<<8*(h+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,d,h,y=[];for(n=t[0],r=t[1],o=t[2],i=t[3],f=t[4],d=0;d<80;d+=1)y[d]=d<16?e[d]:a(y[d-3]^y[d-8]^y[d-14]^y[d-16],1),p=d<20?l(a(n,5),(h=r)&o^~h&i,f,1518500249,y[d]):d<40?l(a(n,5),c(r,o,i),f,1859775393,y[d]):d<60?l(a(n,5),u(r,o,i),f,2400959708,y[d]):l(a(n,5),c(r,o,i),f,3395469782,y[d]),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 d(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=d,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.14-rc.0"}')},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e,t){e.exports=m},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(311));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,d=f.formattedHref,h=f.tagName,y=f.className,m=f.target,v=f.attributes,b="<"+h+' href="'+c(d)+'"';y&&(b+=' class="'+c(y)+'"'),m&&(b+=' target="'+c(m)+'"'),v&&(b+=" "+u(v)),b+=">"+a(p)+"</"+h+">",r.push(b)}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,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(52),o=c(n(312)),i=c(n(313)),a=c(n(314));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;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(95),o=n(71),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(),d=f(o.NUM),h=f(o.DOMAIN),y=f(),m=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,m),m.on(s,m);for(var v=0;v<a.length;v++){var b=(0,r.stateify)(a[v],p,o.TLD,o.DOMAIN);l.push.apply(l,b)}var g=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),E=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,g),l.push.apply(l,w),l.push.apply(l,E),l.push.apply(l,S);var O=g.pop(),x=w.pop(),k=E.pop(),C=S.pop(),j=f(o.DOMAIN),A=f(o.PROTOCOL),_=f(o.MAILTO);x.on("s",j).on(":",A),k.on("s",j).on(":",A),l.push(j),O.on(":",A),j.on(":",A),C.on(":",_);var L=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,L),p.on(c,d),d.on("-",y).on(c,d).on(u,h),h.on("-",y).on(u,h);for(var P=0;P<l.length;P++)l[P].on("-",y).on(u,h);y.on("-",y).on(c,h).on(u,h),p.defaultTransition=f(o.SYM);var N=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=N},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(95),o=n(315),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(71);var c=function(e){return new r.TokenState(e)},u=c(),s=c(),l=c(),f=c(),p=c(),d=c(),h=c(),y=c(o.URL),m=c(),v=c(o.URL),b=c(o.URL),g=c(),w=c(),E=c(),S=c(),O=c(),x=c(o.URL),k=c(o.URL),C=c(o.URL),j=c(o.URL),A=c(),_=c(),L=c(),P=c(),N=c(),R=c(),T=c(o.EMAIL),I=c(),F=c(o.EMAIL),D=c(o.MAILTOEMAIL),M=c(),U=c(),V=c(),z=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,d).on(a.DOMAIN,d).on(a.LOCALHOST,y).on(a.NUM,d),p.on(a.TLD,b).on(a.DOMAIN,b).on(a.NUM,b).on(a.LOCALHOST,b),d.on(a.DOT,h),N.on(a.DOT,R),h.on(a.TLD,y).on(a.DOMAIN,d).on(a.NUM,d).on(a.LOCALHOST,d),R.on(a.TLD,T).on(a.DOMAIN,N).on(a.NUM,N).on(a.LOCALHOST,N),y.on(a.DOT,h),T.on(a.DOT,R),y.on(a.COLON,m).on(a.SLASH,b),m.on(a.NUM,v),v.on(a.SLASH,b),T.on(a.COLON,I),I.on(a.NUM,F);var B=[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];b.on(a.OPENBRACE,w).on(a.OPENBRACKET,E).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,O),g.on(a.OPENBRACE,w).on(a.OPENBRACKET,E).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,O),w.on(a.CLOSEBRACE,b),E.on(a.CLOSEBRACKET,b),S.on(a.CLOSEANGLEBRACKET,b),O.on(a.CLOSEPAREN,b),x.on(a.CLOSEBRACE,b),k.on(a.CLOSEBRACKET,b),C.on(a.CLOSEANGLEBRACKET,b),j.on(a.CLOSEPAREN,b),A.on(a.CLOSEBRACE,b),_.on(a.CLOSEBRACKET,b),L.on(a.CLOSEANGLEBRACKET,b),P.on(a.CLOSEPAREN,b),w.on(B,x),E.on(B,k),S.on(B,C),O.on(B,j),w.on(q,A),E.on(q,_),S.on(q,L),O.on(q,P),x.on(B,x),k.on(B,k),C.on(B,C),j.on(B,j),x.on(q,x),k.on(q,k),C.on(q,C),j.on(q,j),A.on(B,x),_.on(B,k),L.on(B,C),P.on(B,j),A.on(q,A),_.on(q,_),L.on(q,L),P.on(q,P),b.on(B,b),g.on(B,b),b.on(q,g),g.on(q,g),l.on(a.TLD,D).on(a.DOMAIN,D).on(a.NUM,D).on(a.LOCALHOST,D),D.on(B,D).on(q,M),M.on(B,D).on(q,M);var $=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];d.on($,U).on(a.AT,V),y.on($,U).on(a.AT,V),h.on($,U),U.on($,U).on(a.AT,V).on(a.DOT,z),z.on($,U),V.on(a.TLD,N).on(a.DOMAIN,N).on(a.LOCALHOST,T);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 d=n-l;d<n;d++)i.push(e[d]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var h=f.emit();r.push(new h(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(96),o=n(52),i=n(71);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";
|
|
2
2
|
/** @license React v0.17.0
|
|
3
3
|
* scheduler.production.min.js
|
|
4
4
|
*
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case u:case c:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case v:case m:case s:return e;default:return t}}case i:return t}}}function O(e){return S(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return O(e)||S(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return S(e)===d},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===v},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===u},t.isStrictMode=function(e){return S(e)===c},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===c||e===h||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===E||e.$$typeof===b)},t.typeOf=S},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(34),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(323),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(324);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(75);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(326),o=n(54),i=n(77);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(327),o=n(332),i=n(333),a=n(334),c=n(335);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(53);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(186),o=n(329),i=n(35),a=n(187),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:c).test(a(e))}},function(e,t,n){var r,o=n(330),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(13)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(53),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(53),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(53);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(55),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(55);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(55);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(55);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(56);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(56);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(56);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(56);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(34),o=n(188),i=n(12),a=n(74),c=r?r.prototype:void 0,u=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(33),o=n(18);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(349);e.exports=function(e,t){return r(e,5,t="function"==typeof t?t:void 0)}},function(e,t,n){var r=n(79),o=n(355),i=n(191),a=n(357),c=n(363),u=n(366),s=n(196),l=n(367),f=n(369),p=n(201),d=n(370),h=n(44),y=n(375),m=n(376),v=n(381),b=n(12),g=n(80),w=n(383),E=n(35),S=n(385),O=n(36),x={};x["[object Arguments]"]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object DataView]"]=x["[object Boolean]"]=x["[object Date]"]=x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Map]"]=x["[object Number]"]=x["[object Object]"]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object Symbol]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Error]"]=x["[object Function]"]=x["[object WeakMap]"]=!1,e.exports=function e(t,n,k,C,j,A){var _,L=1&n,P=2&n,N=4&n;if(k&&(_=j?k(t,C,j,A):k(t)),void 0!==_)return _;if(!E(t))return t;var R=b(t);if(R){if(_=y(t),!L)return s(t,_)}else{var T=h(t),I="[object Function]"==T||"[object GeneratorFunction]"==T;if(g(t))return u(t,L);if("[object Object]"==T||"[object Arguments]"==T||I&&!j){if(_=P||I?{}:v(t),!L)return P?f(t,c(_,t)):l(t,a(_,t))}else{if(!x[T])return j?t:{};_=m(t,T,L)}}A||(A=new r);var F=A.get(t);if(F)return F;A.set(t,_),S(t)?t.forEach((function(r){_.add(e(r,n,k,r,t,A))})):w(t)&&t.forEach((function(r,o){_.set(o,e(r,n,k,o,t,A))}));var D=N?P?d:p:P?keysIn:O,M=R?void 0:D(t);return o(M||t,(function(r,o){M&&(r=t[o=r]),i(_,o,e(r,n,k,o,t,A))})),_}},function(e,t,n){var r=n(54);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(54),o=n(77),i=n(75);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(26),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(59),o=n(36);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(33),o=n(78),i=n(18),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(84),o=n(362),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(194)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(59),o=n(195);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(35),o=n(84),i=n(365),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var c in e)("constructor"!=c||!t&&a.call(e,c))&&n.push(c);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(13),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(81)(e))},function(e,t,n){var r=n(59),o=n(86);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t,n){var r=n(59),o=n(198);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(202),o=n(198),i=n(195);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(26)(n(13),"DataView");e.exports=r},function(e,t,n){var r=n(26)(n(13),"Promise");e.exports=r},function(e,t,n){var r=n(26)(n(13),"Set");e.exports=r},function(e,t,n){var r=n(26)(n(13),"WeakMap");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(87),o=n(377),i=n(378),a=n(379),c=n(380);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(e,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Set]":return new u;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(87);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(34),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(87);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(382),o=n(200),i=n(84);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(35),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(384),o=n(82),i=n(83),a=i&&i.isMap,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(44),o=n(18);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(386),o=n(82),i=n(83),a=i&&i.isSet,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(44),o=n(18);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(34),o=n(196),i=n(44),a=n(85),c=n(388),u=n(389),s=n(204),l=n(205),f=n(206),p=n(392),d=r?r.iterator:void 0;e.exports=function(e){if(!e)return[];if(a(e))return c(e)?f(e):o(e);if(d&&e[d])return u(e[d]());var t=i(e);return("[object Map]"==t?s:"[object Set]"==t?l:p)(e)}},function(e,t,n){var r=n(33),o=n(12),i=n(18);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t){e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")"+"?",s="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[i,a,c].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),l="(?:"+[i+r+"?",r,a,c,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+l+s,"g");e.exports=function(e){return e.match(f)||[]}},function(e,t,n){var r=n(393),o=n(36);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(188);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=void 0;var o=r(n(32)),i=r(n(28)),a=function(){function e(e,t){if(this.refs=e,"function"!=typeof t){if(!(0,o.default)(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");var n=t.is,r=t.then,i=t.otherwise,a="function"==typeof n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every((function(e){return e===n}))};this.fn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.pop(),c=t.pop(),u=a.apply(void 0,t)?r:i;if(u)return"function"==typeof u?u(c):c.concat(u.resolve(o))}}else this.fn=t}return e.prototype.resolve=function(e,t){var n=this.refs.map((function(e){return e.getValue(t)})),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!(0,i.default)(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)},e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=function e(t,n){for(var r in n)if((0,o.default)(n,r)){var c=n[r],u=t[r];if(void 0===u)t[r]=c;else{if(u===c)continue;(0,i.default)(u)?(0,i.default)(c)&&(t[r]=c.concat(u)):a(u)?a(c)&&(t[r]=e(u,c)):Array.isArray(u)&&Array.isArray(c)&&(t[r]=c.concat(u))}}return t};var o=r(n(32)),i=r(n(28)),a=function(e){return"[object Object]"===Object.prototype.toString.call(e)};e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.createErrorFactory=f,t.default=function(e){var t=e.name,n=e.message,r=e.test,a=e.params;function l(e){var l=e.value,p=e.path,d=e.label,h=e.options,y=e.originalValue,m=e.sync,v=(0,o.default)(e,["value","path","label","options","originalValue","sync"]),b=h.parent,g=function(e){return u.default.isRef(e)?e.getValue({value:l,parent:b,context:h.context}):e},w=f({message:n,path:p,value:l,originalValue:y,params:a,label:d,resolve:g,name:t}),E=(0,i.default)({path:p,parent:b,type:t,createError:w,resolve:g,options:h},v);return function(e,t,n,r){var o=e.call(t,n);if(!r)return Promise.resolve(o);if(i=o,i&&"function"==typeof i.then&&"function"==typeof i.catch)throw new Error('Validation test of type: "'+t.type+'" returned a Promise during a synchronous validate. This test will finish after the validate call has returned');var i;return s.SynchronousPromise.resolve(o)}(r,E,l,m).then((function(e){if(c.default.isError(e))throw e;if(!e)throw w()}))}return l.OPTIONS=e,l};var o=r(n(208)),i=r(n(31)),a=r(n(210)),c=r(n(89)),u=r(n(45)),s=n(209),l=c.default.formatError;function f(e){var t=e.value,n=e.label,r=e.resolve,u=e.originalValue,s=(0,o.default)(e,["value","label","resolve","originalValue"]);return function(e){var o=void 0===e?{}:e,f=o.path,p=void 0===f?s.path:f,d=o.message,h=void 0===d?s.message:d,y=o.type,m=void 0===y?s.name:y,v=o.params;return v=(0,i.default)({path:p,value:t,originalValue:u,label:n},function(e,t,n){return(0,a.default)((0,i.default)({},e,t),n)}(s.params,v,r)),(0,i.default)(new c.default(l(h,v),t,p,m),{params:v})}}},function(e,t,n){var r=n(398)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(!1===n(i[u],u,i))break}return t}}},function(e,t,n){var r=n(400),o=n(409),i=n(216);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(79),o=n(213);e.exports=function(e,t,n,i){var a=n.length,c=a,u=!i;if(null==e)return!c;for(e=Object(e);a--;){var s=n[a];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<c;){var l=(s=n[a])[0],f=e[l],p=s[1];if(u&&s[2]){if(void 0===f&&!(l in e))return!1}else{var d=new r;if(i)var h=i(f,p,l,e,t,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},function(e,t,n){var r=n(79),o=n(214),i=n(407),a=n(408),c=n(44),u=n(12),s=n(80),l=n(193),f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,h,y){var m=u(e),v=u(t),b=m?"[object Array]":c(e),g=v?"[object Array]":c(t),w=(b="[object Arguments]"==b?f:b)==f,E=(g="[object Arguments]"==g?f:g)==f,S=b==g;if(S&&s(e)){if(!s(t))return!1;m=!0,w=!1}if(S&&!w)return y||(y=new r),m||l(e)?o(e,t,n,d,h,y):i(e,t,b,n,d,h,y);if(!(1&n)){var O=w&&p.call(e,"__wrapped__"),x=E&&p.call(t,"__wrapped__");if(O||x){var k=O?e.value():e,C=x?t.value():t;return y||(y=new r),h(k,C,n,d,y)}}return!!S&&(y||(y=new r),a(e,t,n,d,h,y))}},function(e,t,n){var r=n(75),o=n(403),i=n(404);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(34),o=n(203),i=n(76),a=n(214),c=n(204),u=n(205),s=r?r.prototype:void 0,l=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=c;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var y=p.get(e);if(y)return y==t;r|=2,p.set(e,t);var m=a(d(e),d(t),r,s,f,p);return p.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t,n){var r=n(201),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,c){var u=1&n,s=r(e),l=s.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var p=s[f];if(!(u?p in t:o.call(t,p)))return!1}var d=c.get(e);if(d&&c.get(t))return d==t;var h=!0;c.set(e,t),c.set(t,e);for(var y=u;++f<l;){var m=e[p=s[f]],v=t[p];if(i)var b=u?i(v,m,p,t,e,c):i(m,v,p,e,t,c);if(!(void 0===b?m===v||a(m,v,n,i,c):b)){h=!1;break}y||(y="constructor"==p)}if(h&&!y){var g=e.constructor,w=t.constructor;g==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(h=!1)}return c.delete(e),c.delete(t),h}},function(e,t,n){var r=n(215),o=n(36);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(213),o=n(411),i=n(412),a=n(73),c=n(215),u=n(216),s=n(57);e.exports=function(e,t){return a(e)&&c(t)?u(s(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},function(e,t,n){var r=n(217);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(413),o=n(183);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(416),o=n(417),i=n(73),a=n(57);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(217);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=void 0;var o=r(n(37)),i=r(n(25)),a=c;function c(){var e=this;if(!(this instanceof c))return new c;i.default.call(this,{type:"boolean"}),this.withMutation((function(){e.transform((function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(e))return!0;if(/^(false|0)$/i.test(e))return!1}return e}))}))}t.default=a,(0,o.default)(c,i.default,{_typeCheck:function(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e}}),e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=f;var o=r(n(37)),i=r(n(25)),a=n(27),c=r(n(62)),u=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,s=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,l=function(e){return(0,c.default)(e)||e===e.trim()};function f(){var e=this;if(!(this instanceof f))return new f;i.default.call(this,{type:"string"}),this.withMutation((function(){e.transform((function(e){return this.isType(e)?e:null!=e&&e.toString?e.toString():e}))}))}(0,o.default)(f,i.default,{_typeCheck:function(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e},_isPresent:function(e){return i.default.prototype._cast.call(this,e)&&e.length>0},length:function(e,t){return void 0===t&&(t=a.string.length),this.test({message:t,name:"length",exclusive:!0,params:{length:e},test:function(t){return(0,c.default)(t)||t.length===this.resolve(e)}})},min:function(e,t){return void 0===t&&(t=a.string.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return(0,c.default)(t)||t.length>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=a.string.max),this.test({name:"max",exclusive:!0,message:t,params:{max:e},test:function(t){return(0,c.default)(t)||t.length<=this.resolve(e)}})},matches:function(e,t){var n,r=!1;return t&&(t.message||t.hasOwnProperty("excludeEmptyString")?(r=t.excludeEmptyString,n=t.message):n=t),this.test({message:n||a.string.matches,params:{regex:e},test:function(t){return(0,c.default)(t)||""===t&&r||e.test(t)}})},email:function(e){return void 0===e&&(e=a.string.email),this.matches(u,{message:e,excludeEmptyString:!0})},url:function(e){return void 0===e&&(e=a.string.url),this.matches(s,{message:e,excludeEmptyString:!0})},ensure:function(){return this.default("").transform((function(e){return null===e?"":e}))},trim:function(e){return void 0===e&&(e=a.string.trim),this.transform((function(e){return null!=e?e.trim():e})).test({message:e,name:"trim",test:l})},lowercase:function(e){return void 0===e&&(e=a.string.lowercase),this.transform((function(e){return(0,c.default)(e)?e:e.toLowerCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return(0,c.default)(e)||e===e.toLowerCase()}})},uppercase:function(e){return void 0===e&&(e=a.string.uppercase),this.transform((function(e){return(0,c.default)(e)?e:e.toUpperCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return(0,c.default)(e)||e===e.toUpperCase()}})}}),e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=s;var o=r(n(37)),i=r(n(25)),a=n(27),c=r(n(62)),u=function(e){return(0,c.default)(e)||e===(0|e)};function s(){var e=this;if(!(this instanceof s))return new s;i.default.call(this,{type:"number"}),this.withMutation((function(){e.transform((function(e){var t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)}))}))}(0,o.default)(s,i.default,{_typeCheck:function(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!function(e){return e!=+e}(e)},min:function(e,t){return void 0===t&&(t=a.number.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return(0,c.default)(t)||t>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=a.number.max),this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return(0,c.default)(t)||t<=this.resolve(e)}})},lessThan:function(e,t){return void 0===t&&(t=a.number.lessThan),this.test({message:t,name:"max",exclusive:!0,params:{less:e},test:function(t){return(0,c.default)(t)||t<this.resolve(e)}})},moreThan:function(e,t){return void 0===t&&(t=a.number.moreThan),this.test({message:t,name:"min",exclusive:!0,params:{more:e},test:function(t){return(0,c.default)(t)||t>this.resolve(e)}})},positive:function(e){return void 0===e&&(e=a.number.positive),this.moreThan(0,e)},negative:function(e){return void 0===e&&(e=a.number.negative),this.lessThan(0,e)},integer:function(e){return void 0===e&&(e=a.number.integer),this.test({name:"integer",message:e,test:u})},truncate:function(){return this.transform((function(e){return(0,c.default)(e)?e:0|e}))},round:function(e){var t=["ceil","floor","round","trunc"];if("trunc"===(e=e&&e.toLowerCase()||"round"))return this.truncate();if(-1===t.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+t.join(", "));return this.transform((function(t){return(0,c.default)(t)?t:Math[e](t)}))}}),e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=void 0;var o=r(n(25)),i=r(n(37)),a=r(n(422)),c=n(27),u=r(n(62)),s=r(n(45)),l=new Date(""),f=p;function p(){var e=this;if(!(this instanceof p))return new p;o.default.call(this,{type:"date"}),this.withMutation((function(){e.transform((function(e){return this.isType(e)?e:(e=(0,a.default)(e))?new Date(e):l}))}))}t.default=f,(0,i.default)(p,o.default,{_typeCheck:function(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t},min:function(e,t){void 0===t&&(t=c.date.min);var n=e;if(!s.default.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`min` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(e){return(0,u.default)(e)||e>=this.resolve(n)}})},max:function(e,t){void 0===t&&(t=c.date.max);var n=e;if(!s.default.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`max` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(e){return(0,u.default)(e)||e<=this.resolve(n)}})}}),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n,o=[1,4,5,6,7,10,11],i=0;if(n=r.exec(e)){for(var a,c=0;a=o[c];++c)n[a]=+n[a]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t};var r=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;e.exports=t.default},function(e,t,n){"use strict";var r=n(219),o=n(5);t.__esModule=!0,t.default=O;var i=o(n(220)),a=o(n(31)),c=o(n(32)),u=o(n(425)),s=o(n(434)),l=o(n(440)),f=o(n(210)),p=n(61),d=o(n(25)),h=n(27),y=o(n(441)),m=o(n(443)),v=o(n(37)),b=o(n(222)),g=r(n(88));function w(){var e=(0,i.default)(["",".",""]);return w=function(){return e},e}function E(){var e=(0,i.default)(["",".",""]);return E=function(){return e},e}var S=function(e){return"[object Object]"===Object.prototype.toString.call(e)};function O(e){var t=this;if(!(this instanceof O))return new O(e);d.default.call(this,{type:"object",default:function(){var e=this;if(this._nodes.length){var t={};return this._nodes.forEach((function(n){t[n]=e.fields[n].default?e.fields[n].default():void 0})),t}}}),this.fields=Object.create(null),this._nodes=[],this._excludedEdges=[],this.withMutation((function(){t.transform((function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&t.shape(e)}))}(0,v.default)(O,d.default,{_typeCheck:function(e){return S(e)||"function"==typeof e},_cast:function(e,t){var n=this;void 0===t&&(t={});var r=d.default.prototype._cast.call(this,e,t);if(void 0===r)return this.default();if(!this._typeCheck(r))return r;var o=this.fields,i=!0===this._option("stripUnknown",t),u=this._nodes.concat(Object.keys(r).filter((function(e){return-1===n._nodes.indexOf(e)}))),s={},l=(0,a.default)({},t,{parent:s,__validating:!1}),f=!1;return u.forEach((function(e){var n=o[e],a=(0,c.default)(r,e);if(n){var u,p=n._options&&n._options.strict;if(l.path=(0,b.default)(E(),t.path,e),l.value=r[e],!0===(n=n.resolve(l))._strip)return void(f=f||e in r);void 0!==(u=t.__validating&&p?r[e]:n.cast(r[e],l))&&(s[e]=u)}else a&&!i&&(s[e]=r[e]);s[e]!==r[e]&&(f=!0)})),f?s:r},_validate:function(e,t){var n,r,o=this;void 0===t&&(t={});var i=t.sync,c=[],u=null!=t.originalValue?t.originalValue:e;return n=this._option("abortEarly",t),r=this._option("recursive",t),t=(0,a.default)({},t,{__validating:!0,originalValue:u}),d.default.prototype._validate.call(this,e,t).catch((0,g.propagateErrors)(n,c)).then((function(e){if(!r||!S(e)){if(c.length)throw c[0];return e}u=u||e;var s=o._nodes.map((function(n){var r=(0,b.default)(w(),t.path,n),i=o.fields[n],c=(0,a.default)({},t,{path:r,parent:e,originalValue:u[n]});return i&&i.validate?(c.strict=!0,i.validate(e[n],c)):Promise.resolve(!0)}));return(0,g.default)({sync:i,validations:s,value:e,errors:c,endEarly:n,path:t.path,sort:(0,m.default)(o.fields)})}))},concat:function(e){var t=d.default.prototype.concat.call(this,e);return t._nodes=(0,y.default)(t.fields,t._excludedEdges),t},shape:function(e,t){void 0===t&&(t=[]);var n=this.clone(),r=(0,a.default)(n.fields,e);if(n.fields=r,t.length){Array.isArray(t[0])||(t=[t]);var o=t.map((function(e){return e[0]+"-"+e[1]}));n._excludedEdges=n._excludedEdges.concat(o)}return n._nodes=(0,y.default)(r,n._excludedEdges),n},from:function(e,t,n){var r=(0,p.getter)(e,!0);return this.transform((function(o){if(null==o)return o;var i=o;return(0,c.default)(o,e)&&(i=(0,a.default)({},o),n||delete i[e],i[t]=r(o)),i}))},noUnknown:function(e,t){void 0===e&&(e=!0),void 0===t&&(t=h.object.noUnknown),"string"==typeof e&&(t=e,e=!0);var n=this.test({name:"noUnknown",exclusive:!0,message:t,test:function(t){return null==t||!e||0===function(e,t){var n=Object.keys(e.fields);return Object.keys(t).filter((function(e){return-1===n.indexOf(e)}))}(this.schema,t).length}});return n._options.stripUnknown=e,n},unknown:function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=h.object.noUnknown),this.noUnknown(!e,t)},transformKeys:function(e){return this.transform((function(t){return t&&(0,l.default)(t,(function(t,n){return e(n)}))}))},camelCase:function(){return this.transformKeys(s.default)},snakeCase:function(){return this.transformKeys(u.default)},constantCase:function(){return this.transformKeys((function(e){return(0,u.default)(e).toUpperCase()}))},describe:function(){var e=d.default.prototype.describe.call(this);return e.fields=(0,f.default)(this.fields,(function(e){return e.describe()})),e}}),e.exports=t.default},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){var r=n(221)((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));e.exports=r},function(e,t){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},function(e,t,n){var r=n(428),o=n(43),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},function(e,t,n){var r=n(429)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(431),o=n(432),i=n(43),a=n(433);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",o="\\d+",i="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",c="[^\\ud800-\\udfff"+n+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="[A-Z\\xc0-\\xd6\\xd8-\\xde]",f="(?:"+a+"|"+c+")",p="(?:"+l+"|"+c+")",d="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",h="[\\ufe0e\\ufe0f]?"+d+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",u,s].join("|")+")[\\ufe0e\\ufe0f]?"+d+")*"),y="(?:"+[i,u,s].join("|")+")"+h,m=RegExp([l+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,l,"$"].join("|")+")",p+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[r,l+f,"$"].join("|")+")",l+"?"+f+"+(?:['’](?:d|ll|m|re|s|t|ve))?",l+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,y].join("|"),"g");e.exports=function(e){return e.match(m)||[]}},function(e,t,n){var r=n(435),o=n(221)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=o},function(e,t,n){var r=n(43),o=n(436);e.exports=function(e){return o(r(e).toLowerCase())}},function(e,t,n){var r=n(437)("toUpperCase");e.exports=r},function(e,t,n){var r=n(438),o=n(207),i=n(206),a=n(43);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,c=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return c[e]()+u}}},function(e,t,n){var r=n(439);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(58),o=n(211),i=n(212);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,t(e,o,i),e)})),n}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=function(e,t){void 0===t&&(t=[]);var n=[],r=[];function s(e,o){var i=(0,a.split)(e)[0];~r.indexOf(i)||r.push(i),~t.indexOf(o+"-"+i)||n.push([o,i])}for(var l in e)if((0,o.default)(e,l)){var f=e[l];~r.indexOf(l)||r.push(l),c.default.isRef(f)&&f.isSibling?s(f.path,l):(0,u.default)(f)&&f._deps&&f._deps.forEach((function(e){return s(e,l)}))}return i.default.array(r,n).reverse()};var o=r(n(32)),i=r(n(442)),a=n(61),c=r(n(45)),u=r(n(28));e.exports=t.default},function(e,t){function n(e,t){var n=e.length,r=new Array(n),o={},i=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),c=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!c.has(e[0])||!c.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));i--;)o[i]||u(e[i],i,new Set);return r;function u(e,t,i){if(i.has(e)){var s;try{s=", node was:"+JSON.stringify(e)}catch(e){s=""}throw new Error("Cyclic dependency"+s)}if(!c.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var l=a.get(e)||new Set;if(t=(l=Array.from(l)).length){i.add(e);do{var f=l[--t];u(f,c.get(f),i)}while(t);i.delete(e)}r[--n]=e}}}e.exports=function(e){return n(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(e),e)},e.exports.array=n},function(e,t,n){"use strict";function r(e,t){var n=1/0;return e.some((function(e,r){if(-1!==t.path.indexOf(e))return n=r,!0})),n}t.__esModule=!0,t.default=function(e){var t=Object.keys(e);return function(e,n){return r(t,e)-r(t,n)}},e.exports=t.default},function(e,t,n){"use strict";var r=n(219),o=n(5);t.__esModule=!0,t.default=void 0;var i=o(n(31)),a=o(n(220)),c=o(n(37)),u=o(n(62)),s=o(n(28)),l=o(n(222)),f=o(n(60)),p=o(n(25)),d=n(27),h=r(n(88));function y(){var e=(0,a.default)(["","[","]"]);return y=function(){return e},e}var m=v;function v(e){var t=this;if(!(this instanceof v))return new v(e);p.default.call(this,{type:"array"}),this._subType=void 0,this.withMutation((function(){t.transform((function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&t.of(e)}))}t.default=m,(0,c.default)(v,p.default,{_typeCheck:function(e){return Array.isArray(e)},_cast:function(e,t){var n=this,r=p.default.prototype._cast.call(this,e,t);if(!this._typeCheck(r)||!this._subType)return r;var o=!1,i=r.map((function(e){var r=n._subType.cast(e,t);return r!==e&&(o=!0),r}));return o?i:r},_validate:function(e,t){var n=this;void 0===t&&(t={});var r=[],o=t.sync,a=t.path,c=this._subType,u=this._option("abortEarly",t),s=this._option("recursive",t),f=null!=t.originalValue?t.originalValue:e;return p.default.prototype._validate.call(this,e,t).catch((0,h.propagateErrors)(u,r)).then((function(e){if(!s||!c||!n._typeCheck(e)){if(r.length)throw r[0];return e}f=f||e;var p=e.map((function(n,r){var o=(0,l.default)(y(),t.path,r),a=(0,i.default)({},t,{path:o,strict:!0,parent:e,originalValue:f[r]});return!c.validate||c.validate(n,a)}));return(0,h.default)({sync:o,path:a,value:e,errors:r,endEarly:u,validations:p})}))},_isPresent:function(e){return p.default.prototype._cast.call(this,e)&&e.length>0},of:function(e){var t=this.clone();if(!1!==e&&!(0,s.default)(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+(0,f.default)(e));return t._subType=e,t},min:function(e,t){return t=t||d.array.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return(0,u.default)(t)||t.length>=this.resolve(e)}})},max:function(e,t){return t=t||d.array.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return(0,u.default)(t)||t.length<=this.resolve(e)}})},ensure:function(){var e=this;return this.default((function(){return[]})).transform((function(t){return e.isType(t)?t:null===t?[]:[].concat(t)}))},compact:function(e){var t=e?function(t,n,r){return!e(t,n,r)}:function(e){return!!e};return this.transform((function(e){return null!=e?e.filter(t):e}))},describe:function(){var e=p.default.prototype.describe.call(this);return this._subType&&(e.innerType=this._subType.describe()),e}}),e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=void 0;var o=r(n(28)),i=function(){function e(e){this._resolve=function(t,n){var r=e(t,n);if(!(0,o.default)(r))throw new TypeError("lazy() functions must return a valid schema");return r.resolve(n)}}var t=e.prototype;return t.resolve=function(e){return this._resolve(e.value,e)},t.cast=function(e,t){return this._resolve(e,t).cast(e,t)},t.validate=function(e,t){return this._resolve(e,t).validate(e,t)},t.validateSync=function(e,t){return this._resolve(e,t).validateSync(e,t)},t.validateAt=function(e,t,n){return this._resolve(t,n).validateAt(e,t,n)},t.validateSyncAt=function(e,t,n){return this._resolve(t,n).validateSyncAt(e,t,n)},e}();i.prototype.__isYupSchema__=!0;var a=i;t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=function(e){Object.keys(e).forEach((function(t){Object.keys(e[t]).forEach((function(n){o.default[t][n]=e[t][n]}))}))};var o=r(n(27));e.exports=t.default},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"AppLinkHelper",(function(){return Xe})),n.d(r,"AppLinkUtility",(function(){return We})),n.d(r,"Application",(function(){return ut})),n.d(r,"AppRouter",(function(){return St})),n.d(r,"Behavior",(function(){return Pt})),n.d(r,"Collection",(function(){return Vt})),n.d(r,"CollectionView",(function(){return Wt})),n.d(r,"ComponentCollection",(function(){return Wt})),n.d(r,"Error",(function(){return A})),n.d(r,"ErrorHelper",(function(){return P})),n.d(r,"SilentError",(function(){return _})),n.d(r,"LayoutView",(function(){return gn})),n.d(r,"NestedModel",(function(){return Dn})),n.d(r,"Service",(function(){return U})),n.d(r,"Model",(function(){return An})),n.d(r,"View",(function(){return fn})),n.d(r,"Component",(function(){return pn})),n.d(r,"EventNames",(function(){return y})),n.d(r,"LayoutService",(function(){return $n})),n.d(r,"Middleware",(function(){return lt})),n.d(r,"LocationUtils",(function(){return qe})),n.d(r,"Shell",(function(){return nr}));var o={};n.r(o),n.d(o,"emptyResponse",(function(){return Uo})),n.d(o,"getResponse",(function(){return Vo})),n.d(o,"getFetch",(function(){return zo})),n.d(o,"fetch",(function(){return Ho})),n.d(o,"useGetFetch",(function(){return Bo})),n.d(o,"useGetResponse",(function(){return qo})),n.d(o,"useBasicFetch",(function(){return $o})),n.d(o,"createMiddleware",(function(){return Qo})),n.d(o,"FlightReducer",(function(){return ui})),n.d(o,"Simulator",(function(){return Si})),n.d(o,"Actions",(function(){return mo})),n.d(o,"RequestStatus",(function(){return lo})),n.d(o,"ajaxRequest",(function(){return go})),n.d(o,"normalize",(function(){return ko})),n.d(o,"denormalize",(function(){return Ao}));n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308);var i={ONLINE_LAYOUT:"OnlineLayout"},a={PLAYLIST:"PlaylistDataService",LANGUAGE:"LanguageDataService"},c={APP_BRIDGE:"AppBridgeService",CONTEXT:"ContextService"},u=n(1),s=n(2),l=n(6);function f(e,t,n,r){var o=e;return"string"==typeof e&&(o=s.Radio.channel(e)),r.call(this,o,t,n)}var p={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"};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)}}var h=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,r;return t=e,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"get",value:function(e){return this.variables[e]}},{key:"setUpVariables",value:function(e){this.variables=e}},{key:"name",get:function(){return"EnvironmentVariables"}},{key:"isDevelopment",get:function(){return this.variables.isDevelopment}}])&&d(t.prototype,n),r&&d(t,r),e}().Instance,y={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 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 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 b(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(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)}function E(e){var t=k();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 S(this,n)}}function S(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 O(e){var t="function"==typeof Map?new Map:void 0;return(O=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 x(e,arguments,j(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),C(r,e)})(e)}function x(e,t,n){return(x=k()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&C(o,n.prototype),o}).apply(null,arguments)}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=function(e){w(n,e);var t=E(n);function n(e){return g(this,n),t.call(this,e)}return n}(O(Error)),_=function(e){w(n,e);var t=E(n);function n(){return g(this,n),t.apply(this,arguments)}return b(n,[{key:"name",get:function(){return"SilentError"}}]),n}(A),L=function(e){w(n,e);var t=E(n);function n(){return g(this,n),t.apply(this,arguments)}return b(n,[{key:"name",get:function(){return"CoreError"}}]),n}(O(Error)),P={throw:function(e){if(s.Radio.channel(p.SHELL).trigger(y.ERROR,e),!(e instanceof _||h.isDevelopment))throw e}};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 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 T(e,t,n){return(T="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=M(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 I(e,t){return(I=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 Date.prototype.toString.call(Reflect.construct(Date,[],(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=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)}(i,e);var t,n,r,o=F(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,e)).name||P.throw(new L("Your service must be named.")),t}return t=i,(n=[{key:"listenTo",value:function(){return f.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],T(M(i.prototype),"listenTo",this))}}])&&R(t.prototype,n),r&&R(t,r),i}(l.Object);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 z(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 B(e,t){return(B=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 Date.prototype.toString.call(Reflect.construct(Date,[],(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"!==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 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&&B(e,t)}(i,e);var t,n,r,o=q(i);function i(){return z(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"DevError"}}])&&H(t.prototype,n),r&&H(t,r),i}(A);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 J(e){return function(e){if(Array.isArray(e))return X(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 X(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 X(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 X(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 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 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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 te(this,n)}}function te(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?ne(e):t}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=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)}(i,e);var t,n,r,o=ee(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),u.result(ne(t),"name")||P.throw(new K("Must provide a name when extending BaseDataService")),u.result(ne(t),"channelName")||P.throw(new K("Must provide a channelName for ".concat(u.result(ne(t),"name"))));var n=[].concat(J(t.defaultProps),J(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=i,(n=[{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,r=e.errorCallback,o=e.eventPrefix,i=this.getEventNames(o),a=i.syncEvent,c=i.errorEvent,s=this.cache.get(o);if(s&&s.openRequest)return this.listenToOnce(this.getChannel(),a,(function(e){u.isFunction(r)&&t.stopListening(t.getChannel(),c,r),u.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),c,(function(){u.isFunction(n)&&t.stopListening(t.getChannel(),a,n),u.isFunction(r)&&r()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,r=e.errorCallback,o=e.eventPrefix,i=e.resource,a=e.formatData,c=e.expiryTime,s=e.successHandler,l=e.errorHandler,f=e.bootstrapName,p=this.getEventNames(o),d=p.syncEvent,h=p.requestEvent,y=p.successEvent,m=p.errorEvent,v=this.getChannel(),b=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[f]&&(this.cacheData(o,this.bootstrapData[f],a,{openRequest:!1,timestamp:b}),delete this.bootstrapData[f]);var g,w=this.cache.get(o);w&&(g=w.data);var E=w&&w.openRequest,S=this.isExpired(o,c);if(E&&(this.listenToOnce(v,d,(function(e){u.isFunction(r)&&t.stopListening(t.getChannel(),m,r),u.isFunction(n)&&n(e)})),this.listenToOnce(v,m,(function(){u.isFunction(n)&&t.stopListening(t.getChannel(),d,n),u.isFunction(r)&&r()}))),this.cache.has(o)&&!S||(v.trigger(h),this.listenToResponse({eventPrefix:o,formatData:a,cacheOptions:{timestamp:b},callback:n,errorCallback:r,successHandler:s,errorHandler:l}),this.cacheData(o,null,null,{openRequest:!0,timestamp:b}),this.dataProvider.read(i,{channel:this.getTransportChannel(),successEvent:y,errorEvent:m})),g&&u.isFunction(n)&&!S&&n(g),g)return g}},{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,d=l.errorEvent,h=this.getChannel(),y=this.getTransportChannel();h.trigger(f),this.listenToResponse({eventPrefix:t,formatData:o,invalidationKeys:c,callback:i,errorCallback:a,successHandler:u,errorHandler:s}),this.dataProvider.create(n,r,{channel:y,successEvent:p,errorEvent:d})}},{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,d=l.errorEvent,h=this.getChannel(),y=this.getTransportChannel();h.trigger(f),this.listenToResponse({eventPrefix:a,formatData:i,invalidationKeys:c,callback:n,errorCallback:r,successHandler:s,errorHandler:u}),this.dataProvider.update(o,t,{channel:y,successEvent:p,errorEvent:d})}},{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,r=e.formatData,o=e.callback,i=e.errorCallback,a=e.successHandler,c=e.errorHandler,s=e.invalidationKeys,l=e.cacheOptions,f=void 0===l?{}:l,p=this.getEventNames(n),d=p.syncEvent,h=(p.requestEvent,p.successEvent),y=p.errorEvent,m=p.successAlertEvent,v=p.errorAlertEvent,b=this.getChannel(),g=this.getTransportChannel(),w=this.getAlertChannel();u.isFunction(o)&&this.listenToOnce(b,d,o),u.isFunction(i)&&this.listenToOnce(b,y,i),this.stopListening(w,m),this.stopListening(w,v),u.isFunction(a)&&this.listenToOnce(w,m,a),u.isFunction(c)&&this.listenToOnce(w,v,c),!u.isFunction(c)&&!1!==c&&u.isFunction(this.defaultErrorHandler)&&this.listenToOnce(w,v,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(g,h,(function(e){t.stopListening(b,y,i);for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c<o;c++)a[c-1]=arguments[c];w.trigger.apply(w,[m,e].concat(a));var u=f.noCache?t.formatData(e,r):t.cacheData(n,e,r);f.clearCacheKey&&t.cache.remove(n),b.trigger(d,u),s&&s.length&&t.cache.invalidate(s,(function(e){return b.trigger("".concat(e,":invalidate"))}))})),this.listenTo(g,y,(function(){var e;t.stopListening(b,d,o);var r=(e=t.dataProvider).parseError.apply(e,arguments);w.trigger(v,r),b.trigger(y,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:u.isUndefined(t.offset)||u.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return u.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){u.isFunction(e)&&e(t)},r=function(r,i){return t.push((function(){var o=r.callback;r.callback=function(e){n(o,e),n(t.shift())},e[i](r)})),o},o={func:function(e){return t.push((function(){e(t.shift()||function(){})})),o},get:function(e){return r(e,"get")},create:function(e){return r(e,"create")},update:function(e){return r(e,"update")},delete:function(e){return r(e,"delete")},run:function(){n(t.shift())}};return o}},{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 s.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return s.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,r=e.totalItems,o=r>0&&t<r&&t+n,i=r>0&&t>0&&Math.max(t-n,0),a={};if(o&&o<r&&(a.next=o.toString()),u.isNumber(i)&&(a.previous=i.toString()),!u.isEmpty(a))return a}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,r=u.isNumber(t)&&t>0&&t<n&&t+1,o=u.isNumber(t)&&t>1&&t-1,i={};if(r&&r<=n&&(i.next=r.toString()),o&&(i.previous=o.toString()),!u.isEmpty(i))return i}},{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}}])&&Z(t.prototype,n),r&&Z(t,r),i}(U);function ie(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 ae,ce=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,r;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}}])&&ie(t.prototype,n),r&&ie(t,r),e}(),ue={SHORT:120,STANDARD:600},se={HOME:"index",VIDEO:"video",SERIES:"series",CONTENT_UPDATES:"content:updates"},le={HOME:"index",PLAYLIST:"playlist",SHARED_PLAYLIST:"shared:playlist",NEW_PLAYLIST:"new:playlist",EDIT_PLAYLIST:"edit:playlist",DELETE_PLAYLIST:"delete:playlist",SHARE_PLAYLIST:"share:playlist",ADD_TO_PLAYLIST:"add:to:playlist",REMOVE_VIDEO_FROM_PLAYLIST:"remove:video:from:playlist",PLAY_PLAYLIST:"play:playlist",PLAY_PLAYLIST_VIDEO:"play:playlist:video",PLAY_SHARED_PLAYLIST:"play:shared:playlist",PLAY_SHARED_PLAYLIST_VIDEO:"play:shared:playlist:video",ACCESS_DENIED:"access:denied",NOT_FOUND:"not:found",MIGRATION_IN_PROGRESS:"migration:in:progress",SERIES:"series"},fe={CLASSIFICATION:"classification",CLASSIFICATION_PLAYLIST:"classification:playlist",VIDEO:"video",SERIES:"series",PLAYLIST:"playlist",CLASSIFICATION_SERIES:"classification:series",PREFERENCES:"preferences",SHARE:"share"},pe={PLAY_CLASSIFICATION_PLAYLIST:"play:classification:playlist",PLAY_CLASSIFICATION_PLAYLIST_VIDEO:"play:classification:playlist:video",CLASSIFICATION:"classification"},de={CONTENT_UPDATES:"content:updates",CLASSIFICATION_UPDATE:"classification:update"},he={HOME:"index",DASHBOARD:"dashboard",VIDEO:"video",CURRICULUM:"curriculum",ERROR:"error",DIALOG_ERROR:"dialog:error",DEV_ERROR:"dev:error",ADD_TO_PLAYLIST:"add:to:playlist",CONTENT_UPDATES:"content:updates",USER_CHANNELS:"user:channels",USER_CHANNEL:"user:channel"},ye="user:playlists",me="video",ve="locale",be="phrases",ge="default:application",we="playlist:application",Ee="subject:application",Se="subject:playlists:application",Oe="content:updates:application",xe="dashboard:application",ke="playlist:data:service",Ce="language:data:service";!function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience"}(ae||(ae={}));var je="categories{libraries.typeid:".concat(ae.CustomMediaObjectCollection,"}"),Ae={VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(je,",libraries,tags,clips{limit:100},")+"interactives{limit:1},subtitles{limit:1},resources{limit:1},links{limit:1}",SERIES:"tallposter,rating",FOLDER:"banner,thumbnail",CLASSIFICATION:"banner,cover",PLAYLIST:"cover,banner,owner,videos[thumbnail,count()]{orderby:orderindex,limit:1}",PLAYLIST_COLLECTION:"videos[thumbnail,count()]{orderby:orderindex,limit:1},thumbnail,cover"},_e=function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},Le=function(e){return"subjectpresentationaudiences{presentationId:".concat(e,"}")},Pe=function(e){return Ae.CLASSIFICATION+",followers{id:".concat(e,"},videos[count()]{limit:0}")+",playlists[count()]{limit:0},series[count()]{limit:0}"};var Ne,Re,Te,Ie=(Ne={},Re=we,Te=[le.PLAY_PLAYLIST,le.PLAY_PLAYLIST_VIDEO],Re in Ne?Object.defineProperty(Ne,Re,{value:Te,enumerable:!0,configurable:!0,writable:!0}):Ne[Re]=Te,Ne);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 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 Ve(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=He(e);if(t){var o=He(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ze(this,n)}}function ze(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 He(e){return(He=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&&Ue(e,t)}(i,e);var t,n,r,o=Ve(i);function i(){return De(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getLanguageConfig",value:function(e){var t={locale:"en",phrases:{}},n=new ce(5),r=function(){n.decrement(),n.getValue()>0||e(t)};this.get({resource:"/api/locale",eventPrefix:ve,expiryTime:ue.STANDARD,callback:function(e){t.locale=e,r()}}),this.get({resource:"/api/phrases/playlists",eventPrefix:"".concat(be,":playlists"),expiryTime:ue.STANDARD,callback:function(e){null===e.playlists&&(e.playlists={}),t.phrases=Object.assign(Object.assign({},t.phrases),e),r()}}),this.get({resource:"/api/phrases/subjects",eventPrefix:"".concat(be,":subjects"),expiryTime:ue.STANDARD,callback:function(e){null===e.subjects&&(e.subjects={}),t.phrases=Object.assign(Object.assign({},t.phrases),e),r()}}),this.get({resource:"/api/phrases/shared",eventPrefix:"".concat(be,":shared"),expiryTime:ue.STANDARD,callback:function(e){null===e.shared&&(e.shared={}),t.phrases=Object.assign(Object.assign({},t.phrases),e),r()}}),this.get({resource:"/api/phrases/dashboard",eventPrefix:"".concat(be,":dashboard"),expiryTime:ue.STANDARD,callback:function(e){null===e.dashboard&&(e.dashboard={}),t.phrases=Object.assign(Object.assign({},t.phrases),e),r()}})}},{key:"name",get:function(){return a.LANGUAGE}},{key:"channelName",get:function(){return Ce}}])&&Me(t.prototype,n),r&&Me(t,r),i}(oe),qe={GetQuery:function(){return qe.DeserializeQueryParams(window.location.search.substring(1))},UpdateQuery:function(e){if(e){var t=qe.GetQuery(),n=qe.SerializeQueryParams(u.extend(t,e));n&&(n="?".concat(n)),qe.UpdateUrl("".concat(qe.GetCurrentPath()).concat(n),null,{replace:!0,trigger:!1})}},UpdateUrl:function(e,t,n){var r=Xe.buildRoute(e,t);s.history.navigate(r,n),s.Radio.channel(p.SHELL).trigger(y.URL_CHANGE,t,n)},SerializeQueryParams:function(e){return e?"string"==typeof e?e:$.param(e,!0):""},DeserializeQueryParams:function(e){return e?u.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(){s.History.started&&s.history.stop(),s.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};We.hasActiveRoute()?s.Radio.channel(p.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},SetPageTitle:function(e){document.title=e}},$e=/((\(\?)?:\w+)|(\*\w+)/,Ye=/[\(\)]/g,Ge=/\(\/\)/g,Ke=/\/$/,We={routingStarted:function(){s.Radio.channel(p.SHELL).trigger(y.ROUTING_START)},routingEnded:function(){We.hasActiveRoute()&&s.Radio.channel(p.SHELL).trigger(y.ROUTING_END)},hasActiveRoute:function(){return s.Radio.channel(p.SHELL).request(y.HAS_ACTIVE_ROUTE)}},Je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.usedHelper=!0;var n=e.application,r=e.action;s.Radio.channel(n).trigger(r,e,t)},Xe={getHref:function(e){if(!e)return"";var t=e.application,n=e.action,r=e.args,o=e.params,i=s.Radio.channel(p.SHELL);return"/".concat(i.request(y.ROUTE_LOOKUP,"".concat(t,":").concat(n),r,o))},buildRoute:function(e,t){if(!t)return e;var n=t.args,r=t.params;if(u.each(n,(function(t){e=e.replace($e,t||"")})),e=(e=(e=e.replace(Ge,"")).replace(Ye,"")).replace(Ke,""),!r)return e;var o=qe.SerializeQueryParams(r);return o.length?"".concat(e,"?").concat(o):e},trigger:function(e,t){e&&(We.hasActiveRoute()?s.Radio.channel(p.SHELL).once("routing:end",(function(){Je(e,t)})):Je(e,t))},getCurrentAppLink:function(){return s.Radio.channel(p.SHELL).request(y.CURRENT_ROUTE)}};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)}function Qe(e){return function(e){if(Array.isArray(e))return et(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 et(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 et(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 et(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 tt(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 nt(e,t,n){return(nt="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=ct(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 rt(e,t){return(rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ot(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ct(e);if(t){var o=ct(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return it(this,n)}}function it(e,t){return!t||"object"!==Ze(t)&&"function"!=typeof t?at(e):t}function at(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ct(e){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ut=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&&rt(e,t)}(i,e);var t,n,r,o=ot(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,e)).mergeOptions(e,[].concat(Qe(t.defaultProps),Qe(t.props||[]))),u.result(at(t),"name")||P.throw(new L("BaseApplication must define a name")),u.result(at(t),"channelName")||P.throw(new L("BaseApplication must define a channelName")),t.listenTo(t.getGlobalRadioChannel("popup"),y.SHOW_POPUP,t.onShowPopup),t.listenTo(t.getGlobalRadioChannel("alert"),"show:alert",t.onShowAlert),t}return t=i,(n=[{key:"getGlobalRadioChannel",value:function(e){var t=this.shell.getGlobalRadioChannels()[e.toUpperCase()];return t||P.throw(new L("Global channel ".concat(t," does not exist"))),s.Radio.channel(t)}},{key:"onLoadLayout",value:function(){if(this.layoutOptions&&this.layoutOptions.name){var e=u.extend({},this.layoutOptions.options||{},{store:this.shell.store});this.layout=this.layoutService.getLayout(u.extend(this.layoutOptions,{options:e})),this.layout||P.throw(new L("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")||P.throw(new L("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||P.throw(new L("Your application layout must define an alert region")),r.hasView()||this.layout.showChildView("alert",new t({collection:n}))}},{key:"setDefaultQueryParams",value:function(e){this.defaultQueryParams&&(e=u.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 f.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],nt(ct(i.prototype),"listenTo",this))}},{key:"defaultProps",get:function(){return["shell","layoutService"]}}])&&tt(t.prototype,n),r&&tt(t,r),i}(l.Application);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)}}var lt=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,(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)}}])&&st(t.prototype,n),r&&st(t,r),e}();function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e){return function(e){if(Array.isArray(e))return dt(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 dt(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 dt(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 dt(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 ht(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(yt="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=gt(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 mt(e,t){return(mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gt(e);if(t){var o=gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bt(this,n)}}function bt(e,t){return!t||"object"!==ft(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 gt(e){return(gt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wt=/([A-Z])/g,Et=/(^|:)(\w)/gi,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&&mt(e,t)}(i,e);var t,n,r,o=vt(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,e)).bindDisposal(),t.processInternalRoutes(),t.processExternalRoutes(),t.processAppLinks(),t}return t=i,(n=[{key:"bindDisposal",value:function(){var e=this;this.listenTo(p.SHELL,y.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 Xe.buildRoute(t,{application:n.channelName,action:e,args:r,params:o})}))}},{key:"processInternalRoutes",value:function(){var e=this;u.each(u.keys(this.appRoutes),(function(t){var n=e.appRoutes[t],r=e.toEventName(n);e.addRouteLookup(r,t),e.listenTo(e.channelName,r,(function(n,r){r&&r.usedHelper||P.throw(new L("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(n,{isAppRoute:!0},(function(){var o=u.extend({},e.controller.getAndClearDefaultQueryParams(),n.params);n.params=o,qe.UpdateUrl(t,n,r)}))}))}))}},{key:"processExternalRoutes",value:function(){var e=this;this.externalRoutes&&u.each(u.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||P.throw(new L("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),qe.PageLoad(Xe.getHref(e))}))}))}},{key:"processAppLinks",value:function(){var e=this;this.appLinks&&u.each(this.appLinks,(function(t){var n=e.toEventName(t);e.listenTo(e.channelName,n,(function(t,n){n&&n.usedHelper||P.throw(new L("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(t,{isAppRoute:!1})}))}))}},{key:"executeRoute",value:function(e,t,n){var r=this;this.validateAppLink(e);var o=this.toMethodName(e.action);We.routingStarted();var i=s.Radio.channel(p.SHELL);if(this.options.shell.isNavLocked())return i.trigger(y.NAV_IS_LOCKED,e),void We.routingEnded();var a=new lt;u.each(this.filters,(function(e){return a.use(e)})),a.go(e,(function(){i.trigger(y.ROUTE,e,t),r.createApp();var a=r.controller;if(u.isFunction(a[o])||(We.routingEnded(),P.throw(new L("".concat(o," does not exist on the ").concat(u.result(a,"name"),".")))),!1===a.triggerMethod("before:action"))return a.triggerMethod("action:cancelled"),void We.routingEnded();a.triggerMethod("load:layout"),a[o].apply(a,[].concat(pt(e.args||[]),[e.params||{}])),u.isFunction(n)&&n(),We.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 r=this;this.route(t,n,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i={application:r.channelName,action:r.toEventName(n),args:t.slice(0,t.length-1),params:qe.DeserializeQueryParams(t[t.length-1])};r.executeRoute(i,{isAppRoute:!0},(function(){qe.UpdateQuery(u.extend(r.controller.getAndClearDefaultQueryParams(),i.params))}))}))}},{key:"toEventName",value:function(e){return e.replace(wt,":$1").toLowerCase()}},{key:"toMethodName",value:function(e){var t=e.replace(Et,(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||(We.routingEnded(),P.throw(new L("Invalid AppLink")))}},{key:"listenTo",value:function(){return f.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],yt(gt(i.prototype),"listenTo",this))}}])&&ht(t.prototype,n),r&&ht(t,r),i}(l.AppRouter);function Ot(e){return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kt(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 Ct(e,t,n){return(Ct="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=Lt(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 jt(e,t){return(jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function At(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lt(e);if(t){var o=Lt(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"!==Ot(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 Lt(e){return(Lt=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&&jt(e,t)}(i,e);var t,n,r,o=At(i);function i(){return xt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"listenTo",value:function(){return f.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Ct(Lt(i.prototype),"listenTo",this))}}])&&kt(t.prototype,n),r&&kt(t,r),i}(l.Behavior);function Nt(e){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tt(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 It(e,t,n){return(It="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=Ut(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 Ft(e,t){return(Ft=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ut(e);if(t){var o=Ut(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"!==Nt(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 Ut(e){return(Ut=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&&Ft(e,t)}(i,e);var t,n,r,o=Dt(i);function i(){return Rt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"listenTo",value:function(){return f.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],It(Ut(i.prototype),"listenTo",this))}}])&&Tt(t.prototype,n),r&&Tt(t,r),i}(s.Collection);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 Ht(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 Bt(e,t,n){return(Bt="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=Kt(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 qt(e,t){return(qt=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kt(e);if(t){var o=Kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yt(this,n)}}function Yt(e,t){return!t||"object"!==zt(t)&&"function"!=typeof t?Gt(e):t}function Gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wt=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&&qt(e,t)}(i,e);var t,n,r,o=$t(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,e),u.result(Gt(t),"name")||P.throw(new L("Error: View with cid:".concat(t.cid," requires a name."))),t}return t=i,(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 f.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Bt(Kt(i.prototype),"listenTo",this))}}])&&Ht(t.prototype,n),r&&Ht(t,r),i}(l.CollectionView);function Jt(e){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xt(e){return function(e){if(Array.isArray(e))return Zt(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 Zt(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 Zt(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 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 Qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function en(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 tn(e,t,n){return t&&en(e.prototype,t),n&&en(e,n),e}function nn(e,t,n){return(nn="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=sn(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 rn(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 an(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cn(this,n)}}function cn(e,t){return!t||"object"!==Jt(t)&&"function"!=typeof t?un(e):t}function un(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ln=function(e){rn(n,e);var t=an(n);function n(e){var r;Qt(this,n),r=t.call(this,e);var o=[].concat(Xt(r.defaultProps),Xt(r.props||[]));return r.mergeOptions(e,o),u.result(un(r),"name")||P.throw(new L("Error: View with cid:".concat(r.cid," requires a name."))),r}return tn(n,[{key:"_setOptions",value:function(e){this.options=u.extend({},u.result(this,"defaults"),e)}},{key:"_setAttributes",value:function(e){h.isDevelopment&&u.extend(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}({},"cv-classname",this.name)),this.$el.attr(e)}},{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",u.result(this,"className"))}},{key:"serializeData",value:function(){var e=this,t=nn(sn(n.prototype),"serializeData",this).call(this),r=u.result(this,"viewOptions"),o=u.extend({},t,{options:r});return n.ViewDataExtensions.length?u.extend.apply(u,[o].concat(Xt(u.map(n.ViewDataExtensions,(function(t){return t instanceof Function?t(e):t}))))):o}},{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(),u.each(u.keys(t),(function(n){var r=n,o=t[n],i=Xe.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(),Xe.trigger(o)})))})))}},{key:"hasPartialLoadingRegions",value:function(){return void 0!==this._hasPartialLoadingRegions||(this._hasPartialLoadingRegions=u.some(this.regions,(function(e){return u.has(e,"partialLoading")}))),this._hasPartialLoadingRegions}},{key:"renderPartialLoading",value:function(e){s.Radio.channel(p.SHELL).trigger("render:partial:loading",this,e)}},{key:"listenTo",value:function(){return f.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],nn(sn(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:"defaultProps",get:function(){return["shell","layoutService"]}},{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:"AddViewDataExtension",value:function(e){n.ViewDataExtensions.push(e)}}]),n}(l.View);ln.ViewDataExtensions=[];var fn=function(e){rn(n,e);var t=an(n);function n(e){var r;return Qt(this,n),(r=t.call(this,e)).boundListeners={},r.resourceInstances={},r}return tn(n,[{key:"processRequriedResources",value:function(e){var t=this,n=u.keys(this.requiredResources);if(!n.length)return!0;var r=this,o=!0;return u.each(n,(function(n){var i=t.requiredResources[n];if(i.beforeOnBeforeRender===e){var a=i.dataServiceName;t.resourceInstances[a]||(t.resourceInstances[a]=i.getInstance(t)),t.boundListeners["".concat(a,":").concat(i.eventName)]||(t.listenTo(t.resourceInstances[a].channelName,i.eventName,t.render),t.boundListeners["".concat(a,":").concat(i.eventName)]=!0),r[n]=i.getData(t.resourceInstances[a]),o=o&&!!r[n]}})),o}},{key:"setTitle",value:function(){u.isString(this.title)||!1===this.title||P.throw(new K("Must define a title for ".concat(this.name,"."))),s.Radio.channel(p.SHELL).trigger("set:page:title",this.title)}}]),n}(ln),pn=function(e){rn(n,e);var t=an(n);function n(){return Qt(this,n),t.apply(this,arguments)}return n}(ln);function dn(e){return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}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 yn(e,t){return(yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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"!==dn(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 gn=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&&yn(e,t)}(i,e);var t,n,r,o=mn(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,r=[{key:"getCacheKey",value:function(e){P.throw(new K("Must define getCacheKey for ".concat(this.name,".")))}}],(n=[{key:"unmountRegion",value:function(e){this.trigger("unmount:".concat(e))}}])&&hn(t.prototype,n),r&&hn(t,r),i}(fn);function wn(e){return(wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sn(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 On(e,t,n){return(On="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=jn(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 xn(e,t){return(xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jn(e);if(t){var o=jn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cn(this,n)}}function Cn(e,t){return!t||"object"!==wn(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 jn(e){return(jn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var An=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&&xn(e,t)}(i,e);var t,n,r,o=kn(i);function i(){return En(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"mixin",value:function(e){for(var t in e){if(this.hasOwnProperty(t)){var n=this[t];return void(this[t]=u.extend({},n,e[t]))}this[t]=e[t]}}},{key:"addValidation",value:function(e){this.mixin({validation:e})}},{key:"validate",value:function(e,t){On(jn(i.prototype),"validate",this).call(this,e,t)}},{key:"listenTo",value:function(){return f.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],On(jn(i.prototype),"listenTo",this))}}])&&Sn(t.prototype,n),r&&Sn(t,r),i}(s.Model);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 Ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pn(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 Nn(e,t,n){return(Nn="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=Fn(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 Rn(e,t){return(Rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fn(e);if(t){var o=Fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return In(this,n)}}function In(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 Fn(e){return(Fn=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&&Rn(e,t)}(i,e);var t,n,r,o=Tn(i);function i(){return Ln(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"set",value:function(e,t,n){var r,o;if(null===e)return this;for(r in"object"===_n(e)?(o=e,n=t):(o={})[e]=t,n||(n={}),o)u.has(this.associations,r)&&(o[r]=this.setAssociation(r,o[r],n));return Nn(Fn(i.prototype),"set",this).call(this,o,n)}},{key:"get",value:function(e){var t=e.indexOf(".");if(-1===t)return Nn(Fn(i.prototype),"get",this).call(this,e);var n=e.substr(0,t),r=this.attributes[n];if(!r||!u.isFunction(r.get))return Nn(Fn(i.prototype),"get",this).call(this,e);var o=e.substr(t+1);return r.get(o)}},{key:"setAssociation",value:function(e,t,n){var r=this.associations[e],o=this.attributes[e];if(!u.isFunction(r))return t;if(n.unset)return o&&delete o.parent,delete this[e],o;if(o)return o instanceof An&&o.set(t,n),o instanceof Vt&&o.set(t,n),n.silent||this.trigger("change:".concat(e),this,t,n),o;var i=t instanceof An?t:new r(t,{parse:!0});return i.parent=this,this[e]=i,i}},{key:"toJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Nn(Fn(i.prototype),"toJSON",this).apply(this,t);return u.each(this.associations,(function(e,t){u.has(r,t)&&u.isFunction(r[t].toJSON)?r[t]=r[t].toJSON():r[t]=(new e).toJSON()})),r}},{key:"toFlatJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.omit(Nn(Fn(i.prototype),"toJSON",this).apply(this,t),u.keys(this.associations))}}])&&Pn(t.prototype,n),r&&Pn(t,r),i}(An);function Mn(e){return(Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Un(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 Vn(e,t,n){return(Vn="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=qn(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 zn(e,t){return(zn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qn(e);if(t){var o=qn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bn(this,n)}}function Bn(e,t){return!t||"object"!==Mn(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 qn(e){return(qn=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&&zn(e,t)}(i,e);var t,n,r,o=Hn(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,e)).layouts={},t.requiredRegions=e.requiredRegions,t}return t=i,(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]||P.throw(new L("".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){u.each(this.requiredRegions,(function(t){u.has(u.result(e.prototype,"regions"),t)||P.throw(new L("Layout: ".concat(e.prototype.name," must define an ").concat(t," region.")))}))}},{key:"listenTo",value:function(){return f.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Vn(qn(i.prototype),"listenTo",this))}}])&&Un(t.prototype,n),r&&Un(t,r),i}(l.Object);function Yn(e){return(Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.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,n){return(Gn="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=Xn(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 Kn(e,t){return(Kn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xn(e);if(t){var o=Xn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jn(this,n)}}function Jn(e,t){return!t||"object"!==Yn(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 Xn(e){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 er(e,t,n){return t&&Qn(e.prototype,t),n&&Qn(e,n),e}var tr=function(){function e(t,n){Zn(this,e),this.application=t,this.options=n||{}}return er(e,[{key:"Application",get:function(){return this.application}},{key:"Options",get:function(){return this.options}}]),e}(),nr=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&&Kn(e,t)}(n,e);var t=Wn(n);function n(){return Zn(this,n),t.apply(this,arguments)}return er(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(p.SHELL,y.LOCK_NAV,(function(){return e.shellState.navLock=!0})),this.listenTo(p.SHELL,y.UNLOCK_NAV,(function(){return e.shellState.navLock=!1}))}},{key:"bindAppLinkListeners",value:function(){var e=this;this.listenTo(p.SHELL,y.ROUTING_START,(function(){return e.shellState.activeRoute=!0})),this.listenTo(p.SHELL,y.ROUTING_END,(function(){return e.shellState.activeRoute=!1})),this.listenTo(p.SHELL,y.ROUTE,(function(t){return e.shellState.currentAppLink=t}));var t=s.Radio.channel(p.SHELL);t.reply(y.HAS_ACTIVE_ROUTE,u.bind(this.hasActiveRoute,this)),t.reply(y.CURRENT_ROUTE,(function(){return e.shellState.currentAppLink}))}},{key:"bindErrorHandlers",value:function(){window.addEventListener("error",(function(){We.routingEnded()}))}},{key:"bindErrorListener",value:function(){var e=s.Radio.channel(p.SHELL);this.listenTo(e,y.ERROR,this.handleError)}},{key:"bindRouteLookup",value:function(){var e=this;s.Radio.channel(p.SHELL).reply(y.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 tr(e,t)),this}},{key:"getGlobalRadioChannels",value:function(){return p}},{key:"isNavLocked",value:function(){return this.shellState.navLock}},{key:"start",value:function(e){var t=this;e||(e={}),this.runInitializationSteps(this,(function(r,o){t.runStartUpSteps(t,e,(function(r,o,i){Gn(Xn(n.prototype),"start",t).call(t,e)}))}))}},{key:"hasActiveRoute",value:function(){return this.shellState.activeRoute}},{key:"onStart",value:function(){var e=this;u.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(),qe.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||P.throw(new L("An error must have a name in order to register a handler for it.")),u.any(this.errorHandlers,(function(t){return t.errorType===e}))&&P.throw(new L("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=u.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 f.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Gn(Xn(n.prototype),"listenTo",this))}}]),n}(l.Application);function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function or(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 ir(e,t){return(ir=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ar(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ur(e);if(t){var o=ur(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cr(this,n)}}function cr(e,t){return!t||"object"!==rr(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 ur(e){return(ur=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sr=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&&ir(e,t)}(i,e);var t,n,r,o=ar(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).constructors={},e.destructors={},e.instances={},e.singletonInstances={},e.referenceCounts={},e}return t=i,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{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():P.throw(new K("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 r=e.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new e(t)},this.destructors[r]=function(){return u.isFunction(n.instances[r].destroy)&&n.instances[r].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]||P.throw(new K("".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||P.throw(new K("Classes registered with ".concat(this.name," must have a unique name property."))),this.constructors[t]&&P.throw(new K("A class with the name: ".concat(t," has already been registered with ").concat(this.name)))}},{key:"name",get:function(){return"InstanceManager"}}])&&or(t.prototype,n),r&&or(t,r),i}(U).Instance,lr={isEmpty:function(e){return u.isEmpty(e)},values:function(e){return u.values(e)},keys:function(e){return u.keys(e)},deepClone:function(e){return(u.isArray(e)?u.map:u.mapObject)(e,(function(e){return u.isObject(e)||u.isArray(e)?lr.deepClone(e):e}))},getEnumKeys:function(e){return Object.keys(e).filter((function(e){return!(parseInt(e)>=0)}))},isObject:function(e){return u.isObject(e)},isEqual:function(e,t){return u.isEqual(e,t)},omit:function(e,t){return u.omit(e,t)}};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)}var pr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=lr.deepClone(t);e.set(r,n)},dr=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="object"===fr(n)?lr.deepClone(n):n;e.set(t,o,r)},hr={getClickView:function(){if(window.ClickView)return window.ClickView;r.ErrorHelper.throw(new K("ClickView is undefined"))},getMasterVideoModel:function(e){var t=hr.getClickView().Shared;return new(0,t.Models.MasterVideo)(t.Helpers.MasterToOnlineVideo(lr.deepClone(e)))},getMasterPlaylistModel:function(e){return new(0,hr.getClickView().Shared.Models.MasterPlaylistV2)(lr.deepClone(e))},getVideoActionsCollection:function(e){var t=hr.getClickView().Shared.Services.VideoActionService.getActions(e);return new(0,hr.getClickView().Shared.Collections.VideoActionCollection)(t)},getVideoUrl:function(e){var t=hr.getMasterVideoModel(e);return hr.getClickView().Shared.Services.ObjectLinkService.getVideoUrl(t)},isVideoRestricted:function(e){return hr.getMasterVideoModel(e).isRestricted()}},yr=n(8),mr={getContainerEl:function(){var e=yr("body").find(".".concat("playlist-app-popup-container"));return e.length||(e=yr('<div class="'.concat("playlist-app-popup-container",'"></div>')).appendTo("body")),e[0]},position:function(e){var t=yr(e),n=t.outerWidth()/2,r=t.outerHeight()/2;t.css("margin-top",-r),t.css("margin-left",-n);var o=t.offset();o.top<0&&(r=r+o.top-15,t.css("margin-top",-r)),t.outerHeight()+o.top>window.innerHeight&&(r=o.top-15,t.css("margin-top",-r)),t.css("display","block")},renderMask:function(){if(yr.fn.mask)return yr("body").mask({opacity:.4,bgColour:"#000"}).show()},lockBody:function(){window.scrollLock=!0;var e=window.scrollY;return mr.lockContainer(e),mr.lockHorizontalBars(e),yr("body").addClass("lock"),e},lockContainer:function(e){var t=e,n=yr("#content-container");window.innerWidth>hr.getClickView().Data.Breakpoints.sm?t-=n.offset().top:t-=yr("#sub-nav").outerHeight(!0),n.css("top",-t+"px")},lockHorizontalBars:function(e){var t=e,n=mr.getHorizontalBars(),r=[yr(".navbar"),yr("#sub-nav")];u.each(n,(function(e){e.length&&e.is(":visible")&&(e.css("top",-t+"px"),t-=e.outerHeight(!1))}));var o=u.reduce(n,(function(e,t){return e+t.outerHeight(!1)}),0);e<=-t+o&&u.each(r,(function(e){e.css("top",-t+"px"),t-=e.outerHeight(!0)}))},getHorizontalBars:function(){return[yr(".maintenance-banner"),yr(".trial-info-container"),yr("#top-black-bar")]},onPopupClose:function(e){window.scrollLock=!1,yr("body").removeClass("lock"),yr("#content-container").css("top",""),u.each(mr.getHorizontalBars(),(function(e){e.css("top","")}));var t=yr(".navbar");t.css("top",""),yr("#sub-nav").css("top",t.outerHeight(!0)+"px"),window.scrollTo(0,e)}};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 gr(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 wr(e,t){return(wr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Er(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Or(e);if(t){var o=Or(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sr(this,n)}}function Sr(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 Or(e){return(Or=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xr=[le.PLAYLIST,le.PLAY_PLAYLIST,le.PLAY_PLAYLIST_VIDEO],kr=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&&wr(e,t)}(u,e);var t,n,o,i=Er(u);function u(){return br(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.onlineContextService=hr.getClickView().Shared.Services.ContextService,this.listenTo(p.SHELL,r.EventNames.ROUTE,this.setContext)}},{key:"setContext",value:function(e){var t=e.action,n=e.args;-1!==xr.indexOf(t)?this.setPlaylistContext(n[0].toString()):this.clearContext()}},{key:"setPlaylistContext",value:function(e){var t=hr.getClickView().Shared.Utils.Constants.CONTEXTS.SEARCH_NAV,n=hr.getMasterPlaylistModel({id:e});this.getPlaylist(e,(function(e){pr(n,e),n.trigger("sync")})),this.onlineContextService.setContext(t,n)}},{key:"clearContext",value:function(){var e=hr.getClickView().Shared.Utils.Constants.CONTEXTS.SEARCH_NAV;this.onlineContextService.clearContext(e)}},{key:"getPlaylist",value:function(e,t){sr.getInstance(a.PLAYLIST).getPlaylist(e,(function(e){sr.releaseInstance(a.PLAYLIST),t(e)}))}},{key:"name",get:function(){return c.CONTEXT}}])&&gr(t.prototype,n),o&&gr(t,o),u}(r.Service),Cr=n(0),jr=n.n(Cr),Ar=n(19),_r=n(4);function Lr(e){return(Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.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 Nr(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 Rr(e,t){return(Rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 Ir(this,n)}}function Ir(e,t){return!t||"object"!==Lr(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 Dr=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&&Rr(e,t)}(i,e);var t,n,r,o=Tr(i);function i(){return Pr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"isReactComponent",value:function(e){return Cr&&Cr.isValidElement(e)}},{key:"showChildView",value:function(e,t){this.isReactComponent(t)&&this.showChildReactComponent(e,t)}},{key:"showChildReactComponent",value:function(e,t){var n=this;this.isAttached()?this.renderChildReactComponent(e,t):this.listenToOnce(this,"attach",(function(){return n.renderChildReactComponent(e,t)}))}},{key:"renderChildReactComponent",value:function(e,t){var n=this.getRegion(e),r=this.$el.find(n.el);r&&r.length&&(n.trigger("before:show"),Ar.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return Ar.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return Ar.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return Cr.createElement(_r.Provider,{store:this.options.store},e)}}])&&Nr(t.prototype,n),r&&Nr(t,r),i}(gn),Mr="left:nav",Ur="content",Vr="popup",zr="alert",Hr=function(e,t,n){return u.throttle(e,t,n)},Br=function(e){return u.isFunction(e)};function qr(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 $r(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 $r(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 $r(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 Yr(e){return function(e){if(Array.isArray(e))return Gr(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 Gr(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 Gr(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 Gr(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 Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Cr.useRef(null);return Cr.useEffect((function(){if(e){var t=n.current;return e.render(),t.hasChildNodes()?t.replaceChild(e.el,t.firstChild):t.appendChild(e.el),e.trigger("rendered"),function(){e.close()}}}),Yr(t)),n}var Wr=n(223),Jr=n(224),Xr={ALERT:"AlertService",SCROLL:"ScrollService",LANGUAGE:"LanguageService"};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 Qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eo(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 to(e,t){return(to=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function no(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oo(e);if(t){var o=oo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ro(this,n)}}function ro(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 oo(e){return(oo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var io=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&&to(e,t)}(i,e);var t,n,r,o=no(i);function i(){return Qr(this,i),o.apply(this,arguments)}return t=i,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"setConfig",value:function(e){this.polyglot=new Wr({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||P.throw(new K("LanguageService config must be set.")),!this.polyglot.has(r)){if(!h.isDevelopment){var o=window.trackJs;return o&&o.console.error("No phrase set for ".concat(r," in language config")),""}P.throw(new K("No phrase set for ".concat(r," in language config.")))}if(!n||u.isEmpty(n)){var i=this.cache[r];if(i)return i;var a=this.polyglot.t(r);return this.cache[r]=a,a}var c=u.omit(n,"smartCount"),s={};for(var l in c)s[l]=Jr.sanitize(c[l]);u.isNumber(n.smartCount)&&(s.smart_count=n.smartCount);var f="".concat(r,":").concat(u.values(Object.assign({},s)).join(":")),p=this.cache[f];if(p)return p;var d=this.polyglot.t(r,s);return this.cache[f]=d,d}},{key:"encloseNamespace",value:function(e){var t=this;return function(n,r){return t.getPhrase(e,n,r)}}},{key:"name",get:function(){return Xr.LANGUAGE}}])&&eo(t.prototype,n),r&&eo(t,r),i}(U).Instance,ao=" - ClickView",co=function(e){e&&r.LocationUtils.SetPageTitle(function(e){return e.length+ao.length<=60?e+ao:e.substring(0,57)+"..."+ao}(e))};function uo(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 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,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 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}var lo,fo,po=Cr.createContext({}),ho=function(){return io.getPhrase("shared.context","defaultTitle")},yo=function(e){var t=e.children,n=uo(Cr.useState(ho),2),r=n[0],o=n[1],i=uo(Cr.useState(ho),2),a=i[0],c=i[1];return Cr.useEffect((function(){return co(r)}),[r]),Cr.createElement(po.Provider,{value:{setPageTitle:function(e){e!==r&&(r!==a&&c(r),o(e))},revertPageTitle:function(){o(a)}}},t)},mo={API_REQUEST:"API_REQUEST",API_REPONSE:"API_RESPONSE",API_ERROR:"API_ERROR",INVALIDATE:"INVALIDATE",UPDATE:"UPDATE"};function vo(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}!function(e){e.None="None",e.Fetching="Fetching",e.Success="Success",e.Error="Error"}(lo||(lo={})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(fo||(fo={}));var bo=[fo.POST,fo.PUT];function go(e){var t=e.resource,n=e.type,r=e.success,o=e.error,i=e.always,a={url:t,method:n};bo.includes(n)&&e.data&&(a.data=JSON.stringify(e.data)),$.ajax(a).done((function(e,t,n){r&&r(e,vo(n))})).fail((function(e,t,n){o&&o(vo(e))})).always((function(){i&&i()}))}function wo(e){return(wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,r=void 0===n?"id":n,o=t.namespace,i=void 0===o?"":o;return e[r]||P.throw(new K("There was an issue during normalization. Object did not have an id attribute.")),"".concat(i,"__").concat(e[r])}function So(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=[];return e.forEach((function(e){e[o]&&i.push(Eo(e,n)),xo(e,t,n)})),i}function Oo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=Object.assign({},e);if(Object.keys(e).forEach((function(r){var a=e[r];if(a)if(Array.isArray(a)){var c=So(a,t,n);c.length&&(i[r]=c)}else if("object"===wo(a)){var u=Oo(a,t,n);a[o]?i[r]=Eo(a,n):i[r]=u}})),e[o]){var a=Eo(e,n);return t[a]=i,a}return i}function xo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)return Array.isArray(e)?So(e,t,n):"object"===wo(e)?Oo(e,t,n):e}function ko(e,t){var n={};return{result:xo(e,n,t),entities:n}}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 jo(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};var r=jo(t[e],t,n);return Object.assign(n[e],r),lr.isEmpty(n[e])&&delete n[e],n[e]}(e,t,n);if(Array.isArray(e))return e.map((function(e){return jo(e,t,n)}));if("object"===Co(e)){var r={};return Object.keys(e).forEach((function(o){r[o]=jo(e[o],t,n)||e[o]})),r}}}function Ao(e,t){return jo(e,t,{})}function _o(e,t){return e===t}function Lo(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function Po(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_o,n=null,r=null;return function(){return Lo(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function No(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function Ro(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=0,a=r.pop(),c=No(r),u=e.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),s=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return u.apply(null,e)}));return s.resultFunc=a,s.dependencies=c,s.recomputations=function(){return i},s.resetRecomputations=function(){return i=0},s}}var To=Ro(Po);var Io={currentTimestamp:function(){return(new Date).valueOf()},isExpired:function(e,t){if(!t)return!1;var n=1e3*t;return e<Io.currentTimestamp()-n},currentTimeOfDay:function(e){e||(e=new Date);var t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"}};function Fo(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 Do=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.requestTime=t.requestTime,this.cacheDuration=t.cacheDuration,this.data=t.data,this.statusCode=t.statusCode}var t,n,r;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===lo.None||this.isExpired}},{key:"isExpired",get:function(){return Io.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===lo.Fetching}},{key:"hasError",get:function(){return this.status===lo.Error}},{key:"isComplete",get:function(){return this.status===lo.Success||this.status===lo.Error}}])&&Fo(t.prototype,n),r&&Fo(t,r),e}();function Mo(e,t,n){if(!e||!t)return Uo();var r=t.response;return!1!==t.request.normalize&&(r=Ao(t.response,n)),new Do({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function Uo(){return new Do({status:lo.None})}function Vo(e,t){return Mo(t,e.flightData.resources[t],e.flightData.entities)}function zo(e,t){return function(){Ho(e,t)}}function Ho(e,t){e({type:mo.API_REQUEST,request:t})}function Bo(e){return zo(Object(_r.useDispatch)(),e)}function qo(e,t){var n=Object(Cr.useMemo)((function(){var n;return(null===(n=t)||void 0===n?void 0:n.optimize)?function(e){return Ro(Po,(function(e,t){var n=["response","request"];return lr.isEqual(lr.omit(e,n),lr.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n,r=t.flightData.resources[e];return(null===(n=r)||void 0===n?void 0:n.entityIds)?r.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return Mo(e,t,n)}))}(e):function(e){return To((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return Mo(e,t,n)}))}(e)}),[e]);return Object(_r.useSelector)((function(e){return n(e)}))}function $o(e,t){var n=Object(_r.useDispatch)(),r=qo(e&&e.key,t),o=zo(n,e);return e&&r.shouldFetch&&o(),r}function Yo(e){return function(e){if(Array.isArray(e))return Go(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 Go(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 Go(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 Go(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 Ko,Wo=function(e,t,n){var r=Array.isArray(t)?t:[t],o=[];return r.forEach((function(t){var n,r=new RegExp(t,"i"),i=Object.keys(e.resources).filter((function(e){return r.test(e)}));(n=o).push.apply(n,Yo(i))})),n&&(o=o.filter((function(e){return e!==n}))),o.reduce((function(e,t){return e[t]=!0,e}),{})};!function(e){e[e.Ok=200]="Ok",e[e.NoContent=204]="NoContent",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.Conflict=409]="Conflict",e[e.InternalServer=500]="InternalServer"}(Ko||(Ko={}));var Jo=function(e){var t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},Xo=function(e,t){var n=e.success,r=e.error,o=e.always,i=t;window.setTimeout((function(){i.noResponse||(i.successResponse?n(i.successResponse(),{status:Ko.Ok,getResponseHeader:function(e){return""}}):i.errorResponse&&r(i.errorResponse()),o())}),function(e){var t=e.timeout||300;return t/2+(Math.floor(Math.random()*t/2)+1)}(t))},Zo=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};function Qo(e){var t=e.fetchData,n=e.bootstrappedData,r=e.defaultExpiryTime,o=Object.freeze({key:null,url:null,type:fo.GET,normalize:!0,formatData:function(e){return e},expiryTime:r});return function(e){return function(r){return function(i){if(i.type===mo.API_REQUEST){var a=e.getState(),c=Object.assign({},o,i.request),u=c.success,s=c.error,l=c.always,f=c.formatData,p=Zo(c,["success","error","always","formatData"]),d=a.flightData.resources[p.key];if(r(i),!d||d.status!==lo.Fetching){if(p.bootstrapName&&n[i.request.bootstrapName])return y(n[i.request.bootstrapName]),m(),void delete n[i.request.bootstrapName];var h={resource:p.url,type:p.type,data:p.data,success:y,error:function(t){e.dispatch({type:mo.API_ERROR,errorResponse:t.responseJSON,request:i.request,timestamp:Io.currentTimestamp(),xhr:t}),s&&s(t)},always:m};return void(Jo(p)?Xo(h,p):t(h))}}else r(i);function y(t,n){var r=f(t),o={result:r,entities:{}};(p.normalize&&(o=ko(r,p.normalizeOptions)),e.dispatch({type:mo.API_REPONSE,result:o.result,entities:o.entities,request:p,timestamp:Io.currentTimestamp(),xhr:n}),p.updateState)&&(Array.isArray(p.updateState)?p.updateState:[p.updateState]).forEach((function(t){var n,r,o,i;n=t,r=Wo(a.flightData,n.keys),o=Object.assign({},Object.keys(a.flightData.resources).filter((function(e){return r[e]})).reduce((function(e,t){var n=a.flightData.resources[t],r=n.response;return n.request.normalize&&(r=Ao(n.response,a.flightData.entities)),e[t]=r,e}),{})),i=n.updateData(o),Object.keys(i).forEach((function(t){var n=a.flightData.resources[t],r=i[t],o={result:r,entities:{}};n.request.normalize&&(o=ko(r,n.request.normalizeOptions)),e.dispatch({type:mo.UPDATE,result:o.result,entities:o.entities,request:n.request})}))}));if(u){var i=o.result;p.normalize&&(i=Ao(o.result,Object.assign(Object.assign({},a.flightData.entities),o.entities))),u(i)}}function m(){p.invalidationKeys&&e.dispatch({type:mo.INVALIDATE,keys:p.invalidationKeys,request:p}),l&&l()}}}}}function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ti(e,t){var n=Object.assign({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=Object.assign(Object.assign({},e[r]),t[r]):n[r]=t[r]})),n}function ni(e,t){var n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),ei({},t.request.key,{request:t.request,status:lo.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}))}}function ri(e,t){var n,r=t.entities?Object.keys(t.entities):[];return{entities:ti(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),ei({},t.request.key,{request:t.request,status:lo.Success,response:t.result,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status,entityIds:r}))}}function oi(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),ei({},t.request.key,{request:t.request,status:lo.Error,errorResponse:t.errorResponse,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status}))}}function ii(e,t){var n,r=Wo(e,t.keys,null===(n=t.request)||void 0===n?void 0:n.key);return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),Object.keys(e.resources).filter((function(e){return r[e]})).reduce((function(t,n){var r=e.resources[n];return t[n]=Object.assign({},r,{status:lo.None}),t}),{}))}}function ai(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ci,t=arguments.length>1?arguments[1]:void 0,n=t.entities?Object.keys(t.entities):[];return{entities:ti(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),ei({},t.request.key,Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})))}}var ci={resources:{},entities:{}};function ui(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ci,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case mo.API_REQUEST:return ni(e,t);case mo.API_REPONSE:return ri(e,t);case mo.API_ERROR:return oi(e,t);case mo.INVALIDATE:return ii(e,t);case mo.UPDATE:return ai(e,t)}return e}function si(e){return function(e){if(Array.isArray(e))return li(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 li(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 li(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 li(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 fi=function(e){return u.first(e)},pi=function(e){return u.last(e)},di=function(e,t){return u.max(e,t)},hi=function(e,t,n){var r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},yi=function(e){return e&&!e.length},mi=function(e,t){return u.findIndex(e,t)},vi=function(e,t){var n=e.indexOf(t),r=lr.deepClone(e);return-1===n?[].concat(si(r),[t]):[].concat(si(r.slice(0,n)),si(r.slice(n+1)))},bi=function(e){return u.uniq(e)};var gi="id";function wi(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function Ei(e){var t=localStorage.getItem(e);return t?JSON.parse(t):null}var Si={getAll:function(e,t){var n=Ei(e);return n&&n.length?n:!n&&t?(t.forEach((function(t){return Si.create(e,t)})),Ei(e)):[]},get:function(e,t){var n=Si.getAll(e);return n.length?n.find((function(e){return e[gi]===t})):null},create:function(e,t){var n=Si.getAll(e),r=Object.assign(Object.assign({},t),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},gi,t[gi]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString()));return n.push(r),wi(e,n),r},update:function(e,t){var n=Si.getAll(e);if(!n.length)return t;var r=n.findIndex((function(e){return e[gi]===t[gi]}));return n[r]=t,wi(e,n),t},delete:function(e,t){var n=Si.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach((function(e){var t=n.findIndex((function(t){return t[gi]===e}));n.splice(t,1)})),wi(e,n))},assoc:function(e,t,n,r,o){var i=Array.isArray(o),a=i?o:[o];"string"==typeof fi(a)&&(a=Si.getAll(r).filter((function(e){return a.includes(e.id)})));var c=a.map((function(e){return e.id?e:Si.create(r,e)})),u=Si.getAll(e);if(u.length){var s=u.find((function(e){return e.id===t}));if(s)return c.forEach((function(e){if(s[n])if(Array.isArray(s[n])){if(s[n].find((function(t){return t.id===e.id})))return;s[n].push(e)}else s[n]=e;else s[n]=i?[e]:e})),wi(e,u=u.map((function(e){return e.id!==s.id?e:s}))),i?c:fi(c)}},dissoc:function(e,t,n,r){var o=Si.getAll(e);if(o.length){var i=o.find((function(e){return e.id===t}));if(i){var a=i[n];if(a)return Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]),r.forEach((function(e){var t=a.findIndex((function(t){return t.id===e}));a.splice(t,1)})),i[n]=a,wi(e,o=o.map((function(e){return e.id!==i.id?e:i}))),o}}}},Oi={url:"/api/currentUser",key:"currentuser"};function xi(e){o.useBasicFetch(Oi),e&&(Array.isArray(e)?e.map((function(e){return e.id})):e.data.map((function(e){return e.id})));[].forEach((function(t){return function(e,t){var n=o.useGetResponse(t&&t.key),r=o.useGetFetch(t);e&&n.shouldFetch&&r()}(!!e,t)}))}var ki=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},Ci=function(e){var t=e.className,n=e.children;return Cr.createElement("div",{className:t},n)},ji=function(e){var t,n,r=e.leftNavChild,o=e.contentChild,i=e.popupChild,a=e.alertChild;return t=i,n=Cr.useContext(po),Cr.useEffect((function(){!t&&n&&Br(n.revertPageTitle)&&n.revertPageTitle()}),[t]),Cr.createElement(Cr.Fragment,null,Cr.createElement(Ci,{className:"left-nav-region"},r),Cr.createElement(Ci,{className:"content-region right overflow-hidden-x"},o),Cr.createElement(Ci,{className:"popup-region"},i),Cr.createElement(Ci,{className:"alert-region"},a))},Ai=function(e){var t=e.provider,n=ki(e,["provider"]);return t?Cr.createElement(t,null,Cr.createElement(ji,Object.assign({},n))):Cr.createElement(ji,Object.assign({},n))},_i=n(225),Li=n.n(_i);function Pi(e){return(Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ni(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 Ri(e,t,n){return(Ri="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=Di(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 Ti(e,t){return(Ti=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Di(e);if(t){var o=Di(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fi(this,n)}}function Fi(e,t){return!t||"object"!==Pi(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 Di(e){return(Di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mi=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&&Ti(e,t)}(a,e);var t,n,r,o=Ii(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)).childComponents={},t.leftNavVisible=!0,t}return t=a,r=[{key:"getCacheKey",value:function(){return i.ONLINE_LAYOUT}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{leftNavChild:this.childComponents[Mr],contentChild:this.childComponents[Ur],popupChild:this.childComponents[Vr],alertChild:this.childComponents[zr]}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"hideLeftNav",value:function(){this.unsetRegion(Mr)}},{key:"closePopup",value:function(){this.unsetRegion(Vr)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,e!==Mr||this.leftNavVisible||this.options.hideLeftNav||this.showLeftNav(),e===Vr&&s.Radio.channel(p.POPUP).trigger("popup:render"),this.renderLayout()}},{key:"renderLayout",value:function(){Ri(Di(a.prototype),"showChildView",this).call(this,"layout",this.wrapWithStore(Cr.createElement(Ai,Object.assign({provider:this.options.provider},this.getChildComponents()))))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"OnlineLayoutView"}},{key:"template",get:function(){return Li.a}}])&&Ni(t.prototype,n),r&&Ni(t,r),a}(Dr);function Ui(e){return(Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vi(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 Hi(e,t,n){return t&&zi(e.prototype,t),n&&zi(e,n),e}function Bi(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&&qi(e,t)}function qi(e,t){return(qi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $i(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gi(e);if(t){var o=Gi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yi(this,n)}}function Yi(e,t){return!t||"object"!==Ui(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 Gi(e){return(Gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ki=function(e){Bi(n,e);var t=$i(n);function n(){return Vi(this,n),t.apply(this,arguments)}return Hi(n,[{key:"channelName",get:function(){return ge}},{key:"externalRoutes",get:function(){return{"(/)":"index","videos/:id":"video","series/:id":"series"}}}]),n}(r.AppRouter),Wi=function(e){Bi(n,e);var t=$i(n);function n(){return Vi(this,n),t.apply(this,arguments)}return Hi(n,[{key:"name",get:function(){return"Default Application"}},{key:"channelName",get:function(){return ge}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT}}}],[{key:"router",get:function(){return Ki}}]),n}(r.Application);function Ji(e){return function(e){if(Array.isArray(e))return Xi(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 Xi(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 Xi(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 Xi(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 Zi=function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var r=hi(e,t,n),o=n<e.length-1?r[n+1].id:null;return{reorderedItems:r,reorderRequest:{sourceMemberId:r[n].id,destinationMemberId:o}}},Qi=function(e,t,n){for(var r=[],o=lr.deepClone(n),i=[e],a=n[e],c=!!a&&!!a.data&&a.data.length;a&&Array.isArray(a.data);){r.push.apply(r,Ji(a.data));var u=a.pagination&&a.pagination.cursors&&a.pagination.cursors.next,s=!!u&&"".concat(e,":").concat(u);(a=u&&n[s])&&i.push(s)}if(!r.length)return n;var l=mi(r,(function(e){return e.id===t.sourceMemberId})),f=[].concat(r),p=f.splice(l,1),d=t.destinationMemberId?mi(f,(function(e){return e.id===t.destinationMemberId})):f.length;return f.splice(d,0,p[0]),i.forEach((function(e){var t=f.splice(0,c);o[e].data=t})),o};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)}}var ta,na=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,r;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 P.throw(new K("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&ea(t.prototype,n),r&&ea(t,r),e}();!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"}(ta||(ta={}));var ra,oa={type:ta.Unknown,message:"",code:0};!function(e){e.Newest="newest",e.RecentlyUpdated="recentlyupdated",e.AtoZ="atoz"}(ra||(ra={}));function ia(e){return(ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ca(e,t){return(ca=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ua(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=la(e);if(t){var o=la(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sa(this,n)}}function sa(e,t){return!t||"object"!==ia(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 la(e){return(la=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fa,pa=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&&ca(e,t)}(n,e);var t=ua(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return aa(this,n),t.call(this,{collectionPrefix:"playlist:videos",id:e,cursor:r})}return n}(na);!function(e){e[e.Queued=1]="Queued",e[e.Processing=2]="Processing",e[e.Processed=3]="Processed",e[e.Errored=4]="Errored"}(fa||(fa={}));var da=function(e,t){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(e)&&(r[e]=Object.assign(Object.assign({},r[e]),t)),r}},ha=function(e){return function(t){var n=Object.assign({},t);return n.hasOwnProperty(e)&&delete n[e],n}},ya=function(e,t){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(e)?(r[e].videos||(r[e].videos={}),r[e].videos.count=r[e].videos.count?r[e].videos.count+t:t,r):n}},ma=function(e){switch(e){case ra.RecentlyUpdated:return"orderbydesc:timestamp";case ra.AtoZ:return"orderby:name";case ra.Newest:default:return"orderbydesc:datecreated"}},va=function(e){switch(e){case"recentlyupdated":return ra.RecentlyUpdated;case"atoz":return ra.AtoZ;case"newest":default:return ra.Newest}},ba=function(e){return e?"&cursor=".concat(e):""},ga=function(e){return Number.isInteger(e)?"&maxRatingValue=".concat(e):""},wa=function(e,t){return"".concat(e).concat(t?":".concat(t):"")},Ea={getPlaylist:function(e,t,n){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Ae.PLAYLIST),key:"playlist:".concat(e),success:t,error:n}},getSharedPlaylist:function(e,t,n,r){var o="/api/domain/v2/share/".concat(e);return{url:"".concat(o,"?query=").concat(Ae.PLAYLIST).concat(ga(t)),key:"shared:playlist:".concat(e),success:n,error:r}},getUserPlaylists:function(e){var t=ma(e.sort);return{url:"/api/domain/v2/me/playlists?query={".concat(t,",limit:100}")+"".concat(Ae.PLAYLIST_COLLECTION).concat(ba(e.cursor)),key:e.toString()}},getPlaylistVideos:function(e,t,n){var r="orderBy:orderindex,limit:100";return Number.isInteger(t)&&(r+=",rating.value:0...".concat(t)),{url:"/api/domain/v2/objects/".concat(e,"/videos?query={").concat(r,"}")+"".concat(Ae.VIDEO_COLLECTION).concat(ba(n)),key:wa("playlist:".concat(e,":videos"),n)}},getSharedPlaylistVideos:function(e,t,n){return{url:"/api/domain/v2/share/".concat(e,"/videos?query={orderBy:orderindex,limit:100}")+"".concat(Ae.VIDEO_COLLECTION).concat(ba(n)).concat(ga(t)),key:wa("shared:playlist:".concat(e,":videos"),n)}},getVideoPlaylists:function(e,t,n){return{url:"/api/domain/v2/objects/".concat(e,"/playlists?query={limit:100,owner.id:[").concat(t,"]}"),key:wa("video:playlists:".concat(e),n)}},getIsFollowingPlaylist:function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"/followers?query={id:").concat(t,"}"),key:"playlist:".concat(e,":following:").concat(t),formatData:function(t){var n,r;return{objectId:e,isFollowing:!!(null===(r=null===(n=t)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length)}},normalize:!1}},createPlaylist:function(e,t,n,r){return{key:"create:playlist",url:"/api/domain/v2/objects/".concat(e,"/playlists"),data:t,type:fo.POST,success:n,error:r,invalidationKeys:"user:playlists"}},updatePlaylist:function(e,t,n,r){return{key:"update:playlist",url:"/api/domain/v2/objects/".concat(e),data:t,type:fo.PUT,success:n,error:r,updateState:{keys:"playlist:".concat(e),updateData:da("playlist:".concat(e),t)}}},deletePlaylist:function(e,t,n){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(e),type:fo.DELETE,success:t,error:n,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(e),updateData:ha("playlist:".concat(e))}}},addToPlaylist:function(e,t,n,r){var o=["user:playlists",new pa(e).toString()];return t.forEach((function(e){o.push("video:playlists:".concat(e))})),{key:"add:to:playlist",url:"/api/domain/v2/objects/".concat(e,"/associate"),data:t,type:fo.POST,success:n,error:r,invalidationKeys:o,updateState:{keys:"playlist:".concat(e),updateData:ya("playlist:".concat(e),t.length)}}},reorderVideos:function(e,t,n,r){return{key:"reorder:playlist",url:"/api/domain/v2/objects/".concat(e,"/videos/reorder"),data:t,type:fo.PUT,success:n,error:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(e,":videos"),updateData:function(n){return Qi("playlist:".concat(e,":videos"),t,n)}}}},removePlaylistVideo:function(e,t,n,r){return{key:"remove:playlist:video",url:"/api/domain/v2/objects/".concat(e,"/dissociate?memberId=").concat(t),type:fo.DELETE,success:n,error:r,invalidationKeys:["user:playlists","playlist:".concat(e,":videos")]}},followPlaylist:function(e,t){return{url:"/api/domain/v2/objects/".concat(t),key:"follow:playlist:".concat(e),data:{followedPlaylists:e},type:fo.PUT}},unfollowPlaylist:function(e,t){return{url:"/api/domain/v2/objects/".concat(t,"/followedplaylists/").concat(e),key:"unfollow:playlist:".concat(e),type:fo.DELETE}},getMigrationTask:function(e,t){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(e){return e||{status:fa.Processed}},success:e,error:t}}};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)}}var Oa,xa,ka,Ca,ja,Aa,_a,La,Pa,Na,Ra,Ta,Ia,Fa,Da,Ma,Ua,Va,za,Ha,Ba=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"getPlaylist",value:function(e,t,n){var r=Ea.getPlaylist(e,t,n),i=o.getResponse(this.store.getState(),r.key);return i.shouldFetch?o.fetch(this.store.dispatch,r):i.data&&Br(t)&&t(i.data),i.data}},{key:"getMigrationTask",value:function(e,t){var n=Ea.getMigrationTask(e,t),r=o.getResponse(this.store.getState(),n.key);return r.shouldFetch?o.fetch(this.store.dispatch,n):r.data&&Br(e)&&e(r.data),r.data}},{key:"name",get:function(){return a.PLAYLIST}},{key:"channelName",get:function(){return ke}}])&&Sa(t.prototype,n),r&&Sa(t,r),e}(),qa=n(226),$a=n.n(qa),Ya=/&/g,Ga=/[\W]+/g,Ka=/\s+/g,Wa={className:"info-link"},Ja=function(e){if(e)return e.toLowerCase().replace(Ya,"and").replace(Ga," ").trim().replace(Ka,"-").substr(0,80)},Xa=function(e,t){if(e){var n=t?u.extend({},Wa,t):Wa;return $a()(e,n)}};!function(e){e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",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.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning"}(Oa||(Oa={})),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.StaffRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",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="target_user"}(xa||(xa={})),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.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.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",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.TeacherManager="teacher_manager",e.TeacherManagerListItem="teacher_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.PlayPage="play_page",e.FloatingPlayer="floating_player",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads"}(ka||(ka={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(Ca||(Ca={})),function(e){e.PageLoad="page_load"}(ja||(ja={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(Aa||(Aa={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(_a||(_a={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(La||(La={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(Pa||(Pa={})),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"}(Na||(Na={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Thumbnail="thumbnail",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"}(Ra||(Ra={})),function(e){e.LibraryReview="library_review"}(Ta||(Ta={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(Ia||(Ia={})),function(e){e.Edit="edit"}(Fa||(Fa={})),function(e){e.Image="image",e.User="user"}(Da||(Da={})),function(e){e.On="on",e.Off="off"}(Ma||(Ma={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(Ua||(Ua={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(Va||(Va={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags"}(za||(za={})),function(e){e[e.V1=1]="V1"}(Ha||(Ha={}));var Za,Qa,ec=n(90);function tc(e){return(tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nc(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 rc(e,t){return(rc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oc(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ac(e);if(t){var o=ac(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ic(this,n)}}function ic(e,t){return!t||"object"!==tc(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 ac(e){return(ac=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"}(Za||(Za={})),function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(Qa||(Qa={}));var cc,uc=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&&rc(e,t)}(i,e);var t,n,r,o=oc(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.alertCollection=new Vt,this.listenTo(p.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}},{key:"showAlerts",value:function(){var e=s.Radio.channel(p.ALERT),t={collection:this.alertCollection};this.options.alertViewCtor&&(t=u.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=u.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new An(e)),this.showAlerts()}},{key:"clearAllAlerts",value:function(){this.alertCollection.reset(null)}},{key:"success",value:function(e){var t=this;return"string"==typeof e?u.bind((function(){return t.createAlert(u.extend({},t.options.defaultSuccessAlert,{message:e}))}),this):e.useXHR?u.bind((function(e,n){return t.createAlert(u.extend({},t.options.defaultSuccessAlert,{message:n}))}),this):u.bind((function(){return t.createAlert(u.extend({},t.options.defaultSuccessAlert,e))}),this)}},{key:"error",value:function(e){var t=this;return"string"==typeof e?u.bind((function(){return t.createAlert(u.extend({},t.options.defaultErrorAlert,{message:e}))}),this):e.useXHR?u.bind((function(e){return t.createAlert(u.extend({},t.options.defaultErrorAlert,{message:e.message}))}),this):u.bind((function(){return t.createAlert(u.extend({},t.options.defaultErrorAlertIL_DEFAULT,e))}),this)}},{key:"generateUniqueAlertId",value:function(){return u.uniqueId("alert_")}},{key:"name",get:function(){return Xr.ALERT}},{key:"defaults",get:function(){return{maxAlerts:3}}}])&&nc(t.prototype,n),r&&nc(t,r),i}(U);function sc(e){var t=e.alert,n=e.svgType,r=e.svgTypeClassName,o=e.closeAlert,i=t.message,a=t.heading,c=t.appLink,u=t.appLinkText;return Cr.createElement("div",{className:"alert-item bg-white"},Cr.createElement("div",{className:"alert-icon-container"},Cr.createElement("span",{className:"svg-container"},Cr.createElement(sp,{svgName:n,className:r}))),Cr.createElement("div",{className:"alert-content-container"},Cr.createElement("h3",{className:"alert-heading"},a),Cr.createElement("p",{className:"alert-message"},i),c&&Cr.createElement(tp,{appLink:c},u)),Cr.createElement("div",{className:"close-alert",onClick:o},"×"))}function lc(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 fc(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 fc(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 fc(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.Edit="edit",e.Play="play-triangle",e.Plus="plus",e.Share="share",e.Down="down",e.CheckCircleOutline="check-circle-o",e.Info="info",e.Warning="warning",e.Back="back",e.Bell="bell",e.BellFilled="bell-filled"}(cc||(cc={}));var pc=function(e){switch(e.type){case Za.Success:return cc.CheckCircleOutline;case Za.Fail:case Za.Warning:return cc.Warning;case Za.Info:default:return cc.Info}};function dc(e){var t=e.alert,n=e.closeAlert,r=lc(Cr.useState(!0),2),o=r[0],i=r[1],a=Cr.useRef();Cr.useEffect((function(){o?a.current=window.setTimeout(n,3e3):clearTimeout(a.current)}),[o]);var c="text-".concat(t.type.toLowerCase());return Cr.createElement("li",{onMouseEnter:function(){return i(!1)},onMouseLeave:function(){return i(!0)}},Cr.createElement(sc,{alert:t,svgType:pc(t),svgTypeClassName:c,closeAlert:n}))}var hc,yc=n(3);function mc(e){return(mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bc(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 gc(e,t){return(gc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wc(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sc(e);if(t){var o=Sc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ec(this,n)}}function Ec(e,t){return!t||"object"!==mc(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 Sc(e){return(Sc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(hc||(hc={}));var Oc,xc=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&&gc(e,t)}(a,e);var t,n,o,i=wc(a);function a(){var e;return vc(this,a),(e=i.apply(this,arguments)).contextHistory=[],e}return t=a,o=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"initialize",value:function(){this.listenTo(p.SHELL,r.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}},{key:"name",get:function(){return hc.Context}}])&&bc(t.prototype,n),o&&bc(t,o),a}(r.Service));!function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(Oc||(Oc={}));var kc="global:analytics";function Cc(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 jc=Ha.V1,Ac=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||jc}var t,n,o;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||r.ErrorHelper.throw(new K("".concat(e," is not a valid key"))),this[e]&&r.ErrorHelper.throw(new K("Event already contains an enrichment named ".concat(e)))}}])&&Cc(t.prototype,n),o&&Cc(t,o),e}(),_c=function(e,t,n,r){s.Radio.channel(kc).trigger(Oc.Inlet,new Ac(e,t,n,r))};function Lc(){var e=xc.getCurrentContext().appLink;return u.isObject(e)||r.ErrorHelper.throw(new K("Applink does not exist. Check current context.")),e.application.replace(":","-")}function Pc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.location,n=e.entity,o=e.workflowPhase,i=void 0===o?null:o,a=e.descriptor,c=void 0===a?null:a;return t||r.ErrorHelper.throw(new K("location must be set.")),n||r.ErrorHelper.throw(new K("entity must be set.")),{productArea:Lc(),location:t,entity:n,descriptor:c,workflowPhase:i}}function Nc(){return r.LocationUtils.GetCurrentPath()+r.LocationUtils.GetCurrentQueryString()}var Rc={logUserAction:function(e,t){if(function(e){return!(!u.isArray(e)||!u.every(e,(function(e){return u.isObject(e)})))||!!u.isObject(e)}(e)&&u.isObject(t)){var n=Rc.buildUserActionEvent(t),r=n.userAction,o=n.action,i=n.eventVersion;_c(r,e,o,i)}},logNavigate:function(e,t){var n=Object.assign({currentLocation:Nc(),appLink:e},t);_c(Oa.Navigate,n)},mergeOptions:function(e,t){return u.extend({},e,t)},buildActionContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Pc(e)},buildUserActionEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionType,n=e.eventVersion,r=t,o=Pc(e);return{userAction:r,action:o,eventVersion:n}},buildCurrentLocation:function(){return Nc()},buildSearchEvent:function(e,t){return{data:{query:e},action:Pc({entity:xa.Video,location:ka.SearchBar,descriptor:t})}},buildInstantSearchEvent:function(e,t,n){var r;n===za.Series&&(r=xa.Series),n===za.Folder&&(r=xa.Folder),n===za.Tags&&(r=xa.Tag),n===za.Video&&(r=xa.Video);var o={instant:{},query:e};return t.id&&(o.instant.selectedId=t.id),t.name&&(o.instant.selectedName=t.name),{data:o,action:Pc({entity:r,location:ka.SearchBar})}},mapInteractionType:function(e){switch(e){case Va.DragDrop:return Ia.DragDrop;case Va.FileSelect:return Ia.FileSelect;default:return}}};function Tc(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 Ic(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 Ic(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 Ic(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 Fc(e){var t=e.title,n=e.appLink,r=e.className,o=e.analyticsOptions;return Cr.createElement("li",{className:r},Cr.createElement(tp,{appLink:n,onClick:function(){if(o){var e=Tc(n.args,1)[0];Rc.logUserAction({id:e},o)}}},t))}function Dc(e){var t=e.itemOptions,n=e.alignRight;if(t&&t.length)return Cr.createElement(yc.Dropdown.Menu,{alignRight:n},t.map((function(e,t){return Cr.createElement(Fc,{key:t,title:e.title,appLink:e.appLink,className:e.className,analyticsOptions:e.analyticsOptions})})))}var Mc=n(30),Uc=n.n(Mc),Vc=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===zc}(e)}(e)};var zc="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Hc(e,t){return!1!==t.clone&&t.isMergeableObject(e)?qc((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Bc(e,t,n){return e.concat(t).map((function(e){return Hc(e,n)}))}function qc(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Bc,n.isMergeableObject=n.isMergeableObject||Vc;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=Hc(e[t],n)})),Object.keys(t).forEach((function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=qc(e[o],t[o],n):r[o]=Hc(t[o],n)})),r}(e,t,n):Hc(t,n)}qc.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return qc(e,n,t)}),{})};var $c=qc,Yc=n(7),Gc=Yc.a.Symbol,Kc=Object.prototype,Wc=Kc.hasOwnProperty,Jc=Kc.toString,Xc=Gc?Gc.toStringTag:void 0;var Zc=function(e){var t=Wc.call(e,Xc),n=e[Xc];try{e[Xc]=void 0;var r=!0}catch(e){}var o=Jc.call(e);return r&&(t?e[Xc]=n:delete e[Xc]),o},Qc=Object.prototype.toString;var eu=function(e){return Qc.call(e)},tu=Gc?Gc.toStringTag:void 0;var nu=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tu&&tu in Object(e)?Zc(e):eu(e)};var ru=function(e,t){return function(n){return e(t(n))}},ou=ru(Object.getPrototypeOf,Object);var iu=function(e){return null!=e&&"object"==typeof e},au=Function.prototype,cu=Object.prototype,uu=au.toString,su=cu.hasOwnProperty,lu=uu.call(Object);var fu=function(e){if(!iu(e)||"[object Object]"!=nu(e))return!1;var t=ou(e);if(null===t)return!0;var n=su.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&uu.call(n)==lu};var pu=function(){this.__data__=[],this.size=0};var du=function(e,t){return e===t||e!=e&&t!=t};var hu=function(e,t){for(var n=e.length;n--;)if(du(e[n][0],t))return n;return-1},yu=Array.prototype.splice;var mu=function(e){var t=this.__data__,n=hu(t,e);return!(n<0)&&(n==t.length-1?t.pop():yu.call(t,n,1),--this.size,!0)};var vu=function(e){var t=this.__data__,n=hu(t,e);return n<0?void 0:t[n][1]};var bu=function(e){return hu(this.__data__,e)>-1};var gu=function(e,t){var n=this.__data__,r=hu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function wu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wu.prototype.clear=pu,wu.prototype.delete=mu,wu.prototype.get=vu,wu.prototype.has=bu,wu.prototype.set=gu;var Eu=wu;var Su=function(){this.__data__=new Eu,this.size=0};var Ou=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var xu=function(e){return this.__data__.get(e)};var ku=function(e){return this.__data__.has(e)};var Cu=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ju,Au=function(e){if(!Cu(e))return!1;var t=nu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},_u=Yc.a["__core-js_shared__"],Lu=(ju=/[^.]+$/.exec(_u&&_u.keys&&_u.keys.IE_PROTO||""))?"Symbol(src)_1."+ju:"";var Pu=function(e){return!!Lu&&Lu in e},Nu=Function.prototype.toString;var Ru=function(e){if(null!=e){try{return Nu.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Tu=/^\[object .+?Constructor\]$/,Iu=Function.prototype,Fu=Object.prototype,Du=Iu.toString,Mu=Fu.hasOwnProperty,Uu=RegExp("^"+Du.call(Mu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Vu=function(e){return!(!Cu(e)||Pu(e))&&(Au(e)?Uu:Tu).test(Ru(e))};var zu=function(e,t){return null==e?void 0:e[t]};var Hu=function(e,t){var n=zu(e,t);return Vu(n)?n:void 0},Bu=Hu(Yc.a,"Map"),qu=Hu(Object,"create");var $u=function(){this.__data__=qu?qu(null):{},this.size=0};var Yu=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gu=Object.prototype.hasOwnProperty;var Ku=function(e){var t=this.__data__;if(qu){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Gu.call(t,e)?t[e]:void 0},Wu=Object.prototype.hasOwnProperty;var Ju=function(e){var t=this.__data__;return qu?void 0!==t[e]:Wu.call(t,e)};var Xu=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qu&&void 0===t?"__lodash_hash_undefined__":t,this};function Zu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Zu.prototype.clear=$u,Zu.prototype.delete=Yu,Zu.prototype.get=Ku,Zu.prototype.has=Ju,Zu.prototype.set=Xu;var Qu=Zu;var es=function(){this.size=0,this.__data__={hash:new Qu,map:new(Bu||Eu),string:new Qu}};var ts=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ns=function(e,t){var n=e.__data__;return ts(t)?n["string"==typeof t?"string":"hash"]:n.map};var rs=function(e){var t=ns(this,e).delete(e);return this.size-=t?1:0,t};var os=function(e){return ns(this,e).get(e)};var is=function(e){return ns(this,e).has(e)};var as=function(e,t){var n=ns(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function cs(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}cs.prototype.clear=es,cs.prototype.delete=rs,cs.prototype.get=os,cs.prototype.has=is,cs.prototype.set=as;var us=cs;var ss=function(e,t){var n=this.__data__;if(n instanceof Eu){var r=n.__data__;if(!Bu||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new us(r)}return n.set(e,t),this.size=n.size,this};function ls(e){var t=this.__data__=new Eu(e);this.size=t.size}ls.prototype.clear=Su,ls.prototype.delete=Ou,ls.prototype.get=xu,ls.prototype.has=ku,ls.prototype.set=ss;var fs=ls;var ps=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},ds=function(){try{var e=Hu(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var hs=function(e,t,n){"__proto__"==t&&ds?ds(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ys=Object.prototype.hasOwnProperty;var ms=function(e,t,n){var r=e[t];ys.call(e,t)&&du(r,n)&&(void 0!==n||t in e)||hs(e,t,n)};var vs=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var c=t[i],u=r?r(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?hs(n,c,u):ms(n,c,u)}return n};var bs=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var gs=function(e){return iu(e)&&"[object Arguments]"==nu(e)},ws=Object.prototype,Es=ws.hasOwnProperty,Ss=ws.propertyIsEnumerable,Os=gs(function(){return arguments}())?gs:function(e){return iu(e)&&Es.call(e,"callee")&&!Ss.call(e,"callee")},xs=Array.isArray,ks=n(64),Cs=/^(?:0|[1-9]\d*)$/;var js=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Cs.test(e))&&e>-1&&e%1==0&&e<t};var As=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},_s={};_s["[object Float32Array]"]=_s["[object Float64Array]"]=_s["[object Int8Array]"]=_s["[object Int16Array]"]=_s["[object Int32Array]"]=_s["[object Uint8Array]"]=_s["[object Uint8ClampedArray]"]=_s["[object Uint16Array]"]=_s["[object Uint32Array]"]=!0,_s["[object Arguments]"]=_s["[object Array]"]=_s["[object ArrayBuffer]"]=_s["[object Boolean]"]=_s["[object DataView]"]=_s["[object Date]"]=_s["[object Error]"]=_s["[object Function]"]=_s["[object Map]"]=_s["[object Number]"]=_s["[object Object]"]=_s["[object RegExp]"]=_s["[object Set]"]=_s["[object String]"]=_s["[object WeakMap]"]=!1;var Ls=function(e){return iu(e)&&As(e.length)&&!!_s[nu(e)]};var Ps=function(e){return function(t){return e(t)}},Ns=n(15),Rs=Ns.a&&Ns.a.isTypedArray,Ts=Rs?Ps(Rs):Ls,Is=Object.prototype.hasOwnProperty;var Fs=function(e,t){var n=xs(e),r=!n&&Os(e),o=!n&&!r&&Object(ks.a)(e),i=!n&&!r&&!o&&Ts(e),a=n||r||o||i,c=a?bs(e.length,String):[],u=c.length;for(var s in e)!t&&!Is.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||js(s,u))||c.push(s);return c},Ds=Object.prototype;var Ms=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ds)},Us=ru(Object.keys,Object),Vs=Object.prototype.hasOwnProperty;var zs=function(e){if(!Ms(e))return Us(e);var t=[];for(var n in Object(e))Vs.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Hs=function(e){return null!=e&&As(e.length)&&!Au(e)};var Bs=function(e){return Hs(e)?Fs(e):zs(e)};var qs=function(e,t){return e&&vs(t,Bs(t),e)};var $s=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Ys=Object.prototype.hasOwnProperty;var Gs=function(e){if(!Cu(e))return $s(e);var t=Ms(e),n=[];for(var r in e)("constructor"!=r||!t&&Ys.call(e,r))&&n.push(r);return n};var Ks=function(e){return Hs(e)?Fs(e,!0):Gs(e)};var Ws=function(e,t){return e&&vs(t,Ks(t),e)},Js=n(228);var Xs=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Zs=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var Qs=function(){return[]},el=Object.prototype.propertyIsEnumerable,tl=Object.getOwnPropertySymbols,nl=tl?function(e){return null==e?[]:(e=Object(e),Zs(tl(e),(function(t){return el.call(e,t)})))}:Qs;var rl=function(e,t){return vs(e,nl(e),t)};var ol=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},il=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ol(t,nl(e)),e=ou(e);return t}:Qs;var al=function(e,t){return vs(e,il(e),t)};var cl=function(e,t,n){var r=t(e);return xs(e)?r:ol(r,n(e))};var ul=function(e){return cl(e,Bs,nl)};var sl=function(e){return cl(e,Ks,il)},ll=Hu(Yc.a,"DataView"),fl=Hu(Yc.a,"Promise"),pl=Hu(Yc.a,"Set"),dl=Hu(Yc.a,"WeakMap"),hl=Ru(ll),yl=Ru(Bu),ml=Ru(fl),vl=Ru(pl),bl=Ru(dl),gl=nu;(ll&&"[object DataView]"!=gl(new ll(new ArrayBuffer(1)))||Bu&&"[object Map]"!=gl(new Bu)||fl&&"[object Promise]"!=gl(fl.resolve())||pl&&"[object Set]"!=gl(new pl)||dl&&"[object WeakMap]"!=gl(new dl))&&(gl=function(e){var t=nu(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ru(n):"";if(r)switch(r){case hl:return"[object DataView]";case yl:return"[object Map]";case ml:return"[object Promise]";case vl:return"[object Set]";case bl:return"[object WeakMap]"}return t});var wl=gl,El=Object.prototype.hasOwnProperty;var Sl=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&El.call(e,"index")&&(n.index=e.index,n.input=e.input),n},Ol=Yc.a.Uint8Array;var xl=function(e){var t=new e.constructor(e.byteLength);return new Ol(t).set(new Ol(e)),t};var kl=function(e,t){var n=t?xl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Cl=/\w*$/;var jl=function(e){var t=new e.constructor(e.source,Cl.exec(e));return t.lastIndex=e.lastIndex,t},Al=Gc?Gc.prototype:void 0,_l=Al?Al.valueOf:void 0;var Ll=function(e){return _l?Object(_l.call(e)):{}};var Pl=function(e,t){var n=t?xl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Nl=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return xl(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return kl(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Pl(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return jl(e);case"[object Set]":return new r;case"[object Symbol]":return Ll(e)}},Rl=Object.create,Tl=function(){function e(){}return function(t){if(!Cu(t))return{};if(Rl)return Rl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Il=function(e){return"function"!=typeof e.constructor||Ms(e)?{}:Tl(ou(e))};var Fl=function(e){return iu(e)&&"[object Map]"==wl(e)},Dl=Ns.a&&Ns.a.isMap,Ml=Dl?Ps(Dl):Fl;var Ul=function(e){return iu(e)&&"[object Set]"==wl(e)},Vl=Ns.a&&Ns.a.isSet,zl=Vl?Ps(Vl):Ul,Hl={};Hl["[object Arguments]"]=Hl["[object Array]"]=Hl["[object ArrayBuffer]"]=Hl["[object DataView]"]=Hl["[object Boolean]"]=Hl["[object Date]"]=Hl["[object Float32Array]"]=Hl["[object Float64Array]"]=Hl["[object Int8Array]"]=Hl["[object Int16Array]"]=Hl["[object Int32Array]"]=Hl["[object Map]"]=Hl["[object Number]"]=Hl["[object Object]"]=Hl["[object RegExp]"]=Hl["[object Set]"]=Hl["[object String]"]=Hl["[object Symbol]"]=Hl["[object Uint8Array]"]=Hl["[object Uint8ClampedArray]"]=Hl["[object Uint16Array]"]=Hl["[object Uint32Array]"]=!0,Hl["[object Error]"]=Hl["[object Function]"]=Hl["[object WeakMap]"]=!1;var Bl=function e(t,n,r,o,i,a){var c,u=1&n,s=2&n,l=4&n;if(r&&(c=i?r(t,o,i,a):r(t)),void 0!==c)return c;if(!Cu(t))return t;var f=xs(t);if(f){if(c=Sl(t),!u)return Xs(t,c)}else{var p=wl(t),d="[object Function]"==p||"[object GeneratorFunction]"==p;if(Object(ks.a)(t))return Object(Js.a)(t,u);if("[object Object]"==p||"[object Arguments]"==p||d&&!i){if(c=s||d?{}:Il(t),!u)return s?al(t,Ws(c,t)):rl(t,qs(c,t))}else{if(!Hl[p])return i?t:{};c=Nl(t,p,u)}}a||(a=new fs);var h=a.get(t);if(h)return h;a.set(t,c),zl(t)?t.forEach((function(o){c.add(e(o,n,r,o,t,a))})):Ml(t)&&t.forEach((function(o,i){c.set(i,e(o,n,r,i,t,a))}));var y=l?s?sl:ul:s?keysIn:Bs,m=f?void 0:y(t);return ps(m||t,(function(o,i){m&&(o=t[i=o]),ms(c,i,e(o,n,r,i,t,a))})),c};var ql=function(e){return Bl(e,4)};var $l=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o};var Yl=function(e){return"symbol"==typeof e||iu(e)&&"[object Symbol]"==nu(e)};function Gl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Gl.Cache||us),n}Gl.Cache=us;var Kl=Gl;var Wl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jl=/\\(\\)?/g,Xl=function(e){var t=Kl(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Wl,(function(e,n,r,o){t.push(r?o.replace(Jl,"$1"):n||e)})),t}));var Zl=function(e){if("string"==typeof e||Yl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Ql=Gc?Gc.prototype:void 0,ef=Ql?Ql.toString:void 0;var tf=function e(t){if("string"==typeof t)return t;if(xs(t))return $l(t,e)+"";if(Yl(t))return ef?ef.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var nf=function(e){return null==e?"":tf(e)};var rf=function(e){return xs(e)?$l(e,Zl):Yl(e)?[e]:Xs(Xl(nf(e)))};var of=function(e,t){},af=n(91),cf=n(92),uf=n.n(cf);var sf=function(e){return Bl(e,5)};function lf(){return(lf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ff(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function pf(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function df(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var hf=function(e){return"function"==typeof e},yf=function(e){return null!==e&&"object"==typeof e},mf=function(e){return String(Math.floor(Number(e)))===e},vf=function(e){return"[object String]"===Object.prototype.toString.call(e)},bf=function(e){return 0===Cr.Children.count(e)},gf=function(e){return yf(e)&&hf(e.then)};function wf(e,t,n,r){void 0===r&&(r=0);for(var o=rf(t);e&&r<o.length;)e=e[o[r++]];return void 0===e?n:e}function Ef(e,t,n){for(var r=ql(e),o=r,i=0,a=rf(t);i<a.length-1;i++){var c=a[i],u=wf(e,a.slice(0,i+1));if(u&&(yf(u)||Array.isArray(u)))o=o[c]=ql(u);else{var s=a[i+1];o=o[c]=mf(s)&&Number(s)>=0?[]:{}}}return(0===i?e:o)[a[i]]===n?e:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function Sf(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],c=e[a];yf(c)?n.get(c)||(n.set(c,!0),r[a]=Array.isArray(c)?[]:{},Sf(c,t,n,r[a])):r[a]=t}return r}var Of=Object(Cr.createContext)(void 0),xf=Of.Provider,kf=Of.Consumer;function Cf(){var e=Object(Cr.useContext)(Of);return e||of(!1),e}function jf(e,t){switch(t.type){case"SET_VALUES":return lf({},e,{values:t.payload});case"SET_TOUCHED":return lf({},e,{touched:t.payload});case"SET_ERRORS":return lf({},e,{errors:t.payload});case"SET_STATUS":return lf({},e,{status:t.payload});case"SET_ISSUBMITTING":return lf({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return lf({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return lf({},e,{values:Ef(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return lf({},e,{touched:Ef(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return lf({},e,{errors:Ef(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return lf({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return lf({},e,{touched:Sf(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return lf({},e,{isSubmitting:!1});default:return e}}var Af={},_f={};function Lf(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,i=e.validateOnMount,a=void 0!==i&&i,c=e.isInitialValid,u=e.enableReinitialize,s=void 0!==u&&u,l=e.onSubmit,f=pf(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=lf({validateOnChange:n,validateOnBlur:o,validateOnMount:a,onSubmit:l},f),d=Object(Cr.useRef)(p.initialValues),h=Object(Cr.useRef)(p.initialErrors||Af),y=Object(Cr.useRef)(p.initialTouched||_f),m=Object(Cr.useRef)(p.initialStatus),v=Object(Cr.useRef)(!1),b=Object(Cr.useRef)({});Object(Cr.useEffect)((function(){0}),[]),Object(Cr.useEffect)((function(){return v.current=!0,function(){v.current=!1}}),[]);var g=Object(Cr.useReducer)(jf,{values:p.initialValues,errors:p.initialErrors||Af,touched:p.initialTouched||_f,status:p.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),w=g[0],E=g[1],S=Object(Cr.useCallback)((function(e,t){return new Promise((function(n,r){var o=p.validate(e,t);null==o?n(Af):gf(o)?o.then((function(e){n(e||Af)}),(function(e){r(e)})):n(o)}))}),[p.validate]),O=Object(Cr.useCallback)((function(e,t){var n=p.validationSchema,r=hf(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);void 0===r&&(r={});var o=function e(t){var n={};for(var r in t)if(t.hasOwnProperty(r)){var o=String(r);!0===Array.isArray(t[o])?n[o]=t[o].map((function(t){return!0===Array.isArray(t)||fu(t)?e(t):""!==t?t:void 0})):fu(t[o])?n[o]=e(t[o]):n[o]=""!==t[o]?t[o]:void 0}return n}(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r})}(e,r);return new Promise((function(e,t){o.then((function(){e(Af)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Ef(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;wf(t,a.path)||(t=Ef(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[p.validationSchema]),x=Object(Cr.useCallback)((function(e,t){return new Promise((function(n){return n(b.current[e].validate(t))}))}),[]),k=Object(Cr.useCallback)((function(e){var t=Object.keys(b.current).filter((function(e){return hf(b.current[e].validate)})),n=t.length>0?t.map((function(t){return x(t,wf(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=Ef(e,t[r],n)),e}),{})}))}),[x]),C=Object(Cr.useCallback)((function(e){return Promise.all([k(e),p.validationSchema?O(e):{},p.validate?S(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return $c.all([t,n,r],{arrayMerge:Nf})}))}),[p.validate,p.validationSchema,k,S,O]),j=Tf((function(e){return void 0===e&&(e=w.values),Object(af.unstable_runWithPriority)(af.LowPriority,(function(){return C(e).then((function(e){return v.current&&E({type:"SET_ERRORS",payload:e}),e}))}))})),A=Tf((function(e){return void 0===e&&(e=w.values),E({type:"SET_ISVALIDATING",payload:!0}),C(e).then((function(e){return v.current&&(E({type:"SET_ISVALIDATING",payload:!1}),Uc()(w.errors,e)||E({type:"SET_ERRORS",payload:e})),e}))}));Object(Cr.useEffect)((function(){a&&!0===v.current&&j(p.initialValues)}),[p.initialValues,a,j]);var _=Object(Cr.useCallback)((function(e){var t=e&&e.values?e.values:d.current,n=e&&e.errors?e.errors:h.current?h.current:p.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:p.initialTouched||{},o=e&&e.status?e.status:m.current?m.current:p.initialStatus;d.current=t,h.current=n,y.current=r,m.current=o,E({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})}),[p.initialErrors,p.initialStatus,p.initialTouched]);Object(Cr.useEffect)((function(){s&&!0===v.current&&!Uc()(d.current,p.initialValues)&&(d.current=p.initialValues,_())}),[s,p.initialValues,_]),Object(Cr.useEffect)((function(){s&&!0===v.current&&!Uc()(h.current,p.initialErrors)&&(h.current=p.initialErrors||Af,E({type:"SET_ERRORS",payload:p.initialErrors||Af}))}),[s,p.initialErrors]),Object(Cr.useEffect)((function(){s&&!0===v.current&&!Uc()(y.current,p.initialTouched)&&(y.current=p.initialTouched||_f,E({type:"SET_TOUCHED",payload:p.initialTouched||_f}))}),[s,p.initialTouched]),Object(Cr.useEffect)((function(){s&&!0===v.current&&!Uc()(m.current,p.initialStatus)&&(m.current=p.initialStatus,E({type:"SET_STATUS",payload:p.initialStatus}))}),[s,p.initialStatus,p.initialTouched]);var L=Tf((function(e){if(hf(b.current[e].validate)){var t=wf(w.values,e),n=b.current[e].validate(t);return gf(n)?(E({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),E({type:"SET_ISVALIDATING",payload:!1})}))):(E({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return Promise.resolve()})),P=Object(Cr.useCallback)((function(e,t){var n=t.validate;b.current[e]={validate:n}}),[]),N=Object(Cr.useCallback)((function(e){delete b.current[e]}),[]),R=Tf((function(e){return E({type:"SET_TOUCHED",payload:e}),o?j(w.values):Promise.resolve()})),T=Object(Cr.useCallback)((function(e){E({type:"SET_ERRORS",payload:e})}),[]),I=Tf((function(e){return E({type:"SET_VALUES",payload:e}),n?j(e):Promise.resolve()})),F=Object(Cr.useCallback)((function(e,t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),D=Tf((function(e,t,r){return void 0===r&&(r=!0),E({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),n&&r?j(Ef(w.values,e,t)):Promise.resolve()})),M=Object(Cr.useCallback)((function(e,t){var n,r=t,o=e;if(!vf(e)){e.persist&&e.persist();var i=e.target,a=i.type,c=i.name,u=i.id,s=i.value,l=i.checked,f=(i.outerHTML,i.options),p=i.multiple;r=t||(c||u),o=/number|range/.test(a)?(n=parseFloat(s),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("true"==n||"false"==n)return!!t;if(t&&n)return Array.isArray(e)?e.concat(n):[n];if(!Array.isArray(e))return!e;var r=e.indexOf(n);if(r<0)return e;return e.slice(0,r).concat(e.slice(r+1))}(wf(w.values,r),l,s):p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):s}r&&D(r,o)}),[D,w.values]),U=Object(Cr.useCallback)((function(e){if(vf(e))return function(t){return M(t,e)};M(e)}),[M]),V=Tf((function(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!0),E({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),o&&n?j(w.values):Promise.resolve()})),z=Object(Cr.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=(n.outerHTML,t||(r||o));V(i,!0)}),[V]),H=Object(Cr.useCallback)((function(e){if(vf(e))return function(t){return z(t,e)};z(e)}),[z]),B=Object(Cr.useCallback)((function(e){hf(e)?E({type:"SET_FORMIK_STATE",payload:e}):E({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),q=Object(Cr.useCallback)((function(e){E({type:"SET_STATUS",payload:e})}),[]),$=Object(Cr.useCallback)((function(e){E({type:"SET_ISSUBMITTING",payload:e})}),[]),Y={resetForm:_,validateForm:A,validateField:L,setErrors:T,setFieldError:F,setFieldTouched:V,setFieldValue:D,setStatus:q,setSubmitting:$,setTouched:R,setValues:I,setFormikState:B},G=Tf((function(){return l(w.values,Y)})),K=Tf((function(){return E({type:"SUBMIT_ATTEMPT"}),A().then((function(e){if(0===Object.keys(e).length){var t=G();if(void 0===t)return;return Promise.resolve(t).then((function(){v.current&&E({type:"SUBMIT_SUCCESS"})})).catch((function(e){if(v.current)throw E({type:"SUBMIT_FAILURE"}),e}))}v.current&&E({type:"SUBMIT_FAILURE"})}))})),W=Tf((function(e){e&&e.preventDefault&&hf(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&hf(e.stopPropagation)&&e.stopPropagation(),K()})),J=Tf((function(e){if(e&&e.preventDefault&&hf(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&hf(e.stopPropagation)&&e.stopPropagation(),p.onReset){var t=p.onReset(w.values,Y);gf(t)?t.then(_):_()}else _()})),X=Object(Cr.useCallback)((function(e){return{value:wf(w.values,e),error:wf(w.errors,e),touched:!!wf(w.touched,e),initialValue:wf(d.current,e),initialTouched:!!wf(y.current,e),initialError:wf(h.current,e)}}),[w.errors,w.touched,w.values]),Z=Object(Cr.useCallback)((function(e){var t=yf(e),n=t?e.name:e,r=wf(w.values,n),o={name:n,value:r,onChange:U,onBlur:H};if(t){var i=e.type,a=e.value,c=e.as,u=e.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===c&&u&&(o.value=o.value||[],o.multiple=!0)}return o}),[H,U,w.values]),Q=Object(Cr.useMemo)((function(){return!Uc()(d.current,w.values)}),[w.values]),ee=Object(Cr.useMemo)((function(){return void 0!==c?Q?w.errors&&0===Object.keys(w.errors).length:!1!==c&&hf(c)?c(p):c:w.errors&&0===Object.keys(w.errors).length}),[c,Q,w.errors,p]);return lf({},w,{initialValues:d.current,initialErrors:h.current,initialTouched:y.current,initialStatus:m.current,handleBlur:H,handleChange:U,handleReset:J,handleSubmit:W,resetForm:_,setErrors:T,setFormikState:B,setFieldTouched:V,setFieldValue:D,setFieldError:F,setStatus:q,setSubmitting:$,setTouched:R,setValues:I,submitForm:K,validateForm:A,validateField:L,isValid:ee,dirty:Q,unregisterField:N,registerField:P,getFieldProps:Z,getFieldMeta:X,validateOnBlur:o,validateOnChange:n,validateOnMount:a})}function Pf(e){var t=Lf(e),n=e.component,r=e.children,o=e.render;return Object(Cr.useEffect)((function(){0}),[]),Object(Cr.createElement)(xf,{value:t},n?Object(Cr.createElement)(n,t):o?o(t):r?hf(r)?r(t):bf(r)?null:Cr.Children.only(r):null)}function Nf(e,t,n){var r=e.slice();return t.forEach((function(t,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?$c(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=$c(e[o],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var Rf="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Cr.useLayoutEffect:Cr.useEffect;function Tf(e){var t=Object(Cr.useRef)(e);return Rf((function(){t.current=e})),Object(Cr.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}function If(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,a=e.component,c=pf(e,["validate","name","render","children","as","component"]),u=Cf(),s=(u.validate,u.validationSchema,pf(u,["validate","validationSchema"]));Object(Cr.useEffect)((function(){0}),[]);var l=s.registerField,f=s.unregisterField;Object(Cr.useEffect)((function(){return l(n,{validate:t}),function(){f(n)}}),[l,f,n,t]);var p=s.getFieldProps(lf({name:n},c)),d=s.getFieldMeta(n),h={field:p,form:s};if(r)return r(lf({},h,{meta:d}));if(hf(o))return o(lf({},h,{meta:d}));if(a){if("string"==typeof a){var y=c.innerRef,m=pf(c,["innerRef"]);return Object(Cr.createElement)(a,lf({ref:y},p,m),o)}return Object(Cr.createElement)(a,lf({field:p,form:s},c),o)}var v=i||"input";if("string"==typeof v){var b=c.innerRef,g=pf(c,["innerRef"]);return Object(Cr.createElement)(v,lf({ref:b},p,g),o)}return Object(Cr.createElement)(v,lf({},p,c),o)}var Ff=Object(Cr.forwardRef)((function(e,t){var n=e.action,r=pf(e,["action"]),o=n||"#",i=Cf(),a=i.handleReset,c=i.handleSubmit;return Object(Cr.createElement)("form",Object.assign({onSubmit:c,ref:t,onReset:a,action:o},r))}));function Df(e){var t=function(t){return Object(Cr.createElement)(kf,null,(function(n){return n||of(!1),Object(Cr.createElement)(e,Object.assign({},t,{formik:n}))}))},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",uf()(t,e)}Ff.displayName="Form";var Mf=function(e,t,n){var r=Uf(e);return r.splice(t,0,n),r},Uf=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(lf({},e,{length:t+1}))}return[]},Vf=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var o=n.props,i=o.name,a=o.validateOnChange,c=o.formik,u=c.setFormikState,s=c.validateForm;u((function(n){var o="function"==typeof r?r:e,a="function"==typeof t?t:e;return lf({},n,{values:Ef(n.values,i,e(wf(n.values,i))),errors:r?Ef(n.errors,i,o(wf(n.errors,i))):n.errors,touched:t?Ef(n.touched,i,a(wf(n.touched,i))):n.touched})}),(function(){a&&s()}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(Uf(t),[sf(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Uf(e),o=r[t];return r[t]=r[n],r[n]=o,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Uf(e),o=r[t];return r.splice(t,1),r.splice(n,0,o),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return Mf(n,e,t)}),(function(t){return Mf(t,e,null)}),(function(t){return Mf(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Uf(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(df(n)),n.pop=n.pop.bind(df(n)),n}ff(t,e);var n=t.prototype;return n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?Uf(n):[];return t||(t=r[e]),hf(r.splice)&&r.splice(e,1),r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,o=t.children,i=t.name,a=t.formik,c=(a.validate,a.validationSchema,lf({},e,{form:pf(a,["validate","validationSchema"]),name:i}));return n?Object(Cr.createElement)(n,c):r?r(c):o?"function"==typeof o?o(c):bf(o)?null:Cr.Children.only(o):null},t}(Cr.Component);Vf.defaultProps={validateOnChange:!0};Cr.Component;(function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.render,o=t.children,i=t.component,a=t.as;t.name;return r&&of(!1),i&&r&&of(!1),a&&o&&hf(o)&&of(!1),i&&o&&hf(o)&&of(!1),r&&o&&!bf(o)&&of(!1),n}ff(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e,t,n){return this.props.shouldUpdate?this.props.shouldUpdate(e,this.props):wf(this.context.values,this.props.name)!==wf(n.values,this.props.name)||wf(this.context.errors,this.props.name)!==wf(n.errors,this.props.name)||wf(this.context.touched,this.props.name)!==wf(n.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length||this.context.isSubmitting!==n.isSubmitting},n.componentDidMount=function(){this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentDidUpdate=function(e){this.props.name!==e.name&&(this.context.unregisterField(e.name),this.context.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentWillUnmount=function(){this.context.unregisterField(this.props.name)},n.render=function(){var e=this.props,t=(e.validate,e.name),n=e.render,r=e.as,o=e.children,i=e.component,a=(e.shouldUpdate,pf(e,["validate","name","render","as","children","component","shouldUpdate"])),c=this.context,u=(c.validate,c.validationSchema,pf(c,["validate","validationSchema"])),s={value:"radio"===a.type||"checkbox"===a.type?a.value:wf(c.values,t),name:t,onChange:c.handleChange,onBlur:c.handleBlur},l={field:s,meta:{value:wf(c.values,t),error:wf(c.errors,t),touched:!!wf(c.touched,t),initialValue:wf(c.initialValues,t),initialTouched:!!wf(c.initialTouched,t),initialError:wf(c.initialErrors,t)},form:u};if(n)return n(l);if(hf(o))return o(l);if(i){if("string"==typeof i){var f=a.innerRef,p=pf(a,["innerRef"]);return Object(Cr.createElement)(i,lf({ref:f},s,p),o)}return Object(Cr.createElement)(i,lf({field:s,form:c},a),o)}var d=r||"input";if("string"==typeof d){var h=a.innerRef,y=pf(a,["innerRef"]);return Object(Cr.createElement)(d,lf({ref:h},s,y),o)}return Object(Cr.createElement)(d,lf({},s,a),o)},t}(Cr.Component)).contextType=Of;var zf=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};function Hf(e){var t=e.label,n=e.error,r=e.touched,o=e.className,i=zf(e,["label","error","touched","className"]),a=n&&r,c="form-group";a&&(c+=" has-error");var u="form-control";return a&&(u+=" is-invalid"),o&&(u+=" ".concat(o)),Cr.createElement("div",{className:c},t&&Cr.createElement("label",{className:"form-label",htmlFor:i.id},t),Cr.createElement(If,Object.assign({className:u},i),e.children),a&&Cr.createElement("span",{className:"help-block invalid-feedback"},n))}function Bf(e){return Cr.createElement(Ff,null,e.children)}function qf(e){var t=e.initialValues,n=e.validationSchema,r=e.onSubmit,o=e.renderChildren;return Cr.createElement(Pf,{initialValues:t,validationSchema:n,onSubmit:r},(function(e){return Cr.createElement(Bf,Object.assign({},e),o(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 Yf(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 Yf(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 Yf(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 Gf=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};function Kf(e){var t=e.buttonText,n=e.showSpinner,r=Gf(e,["buttonText","showSpinner"]),o=Cr.useRef(),i=$f(Cr.useState({}),2),a=i[0],c=i[1];return Cr.useEffect((function(){var e=a.width,t=a.height;if(!e||!t){var n=o.current,r=n.offsetHeight,i=n.offsetWidth;r&&i&&c({width:i,height:r})}})),Cr.useEffect((function(){var e=a.width,t=a.height;if(e&&t){var n=o.current;n.style.width="".concat(e+1,"px"),n.style.height="".concat(t+1,"px")}}),[a]),Cr.createElement(yc.Button,Object.assign({ref:o},r),n?Cr.createElement(up,{size:"sm",color:"white"}):t)}var Wf=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};function Jf(e){var t=e.buttons;return Cr.createElement("div",{className:"btn-container"},t.map((function(e,t){return function(e,t){var n=e.isSpinnerButton,r=e.type,o=void 0===r?"button":r,i=Wf(e,["isSpinnerButton","type"]);if(n)return Cr.createElement(Kf,Object.assign({key:t,type:o},i));var a=i.buttonText,c=(i.showSpinner,Wf(i,["buttonText","showSpinner"]));return Cr.createElement(yc.Button,Object.assign({key:t,type:o},c),a)}(e,t)})))}var Xf=Cr.createContext(void 0);function Zf(e){var t=e.title,n=e.close,r=e.showLoadingSpinner,o=Cr.useRef(),i=Cr.useRef(),a=Cr.useRef(),c=function(){return mr.position(o.current)};return Cr.useEffect((function(){return i.current=mr.renderMask(),a.current=mr.lockBody(),c(),i.current.on("click",n),function(){i.current&&i.current.hide(),mr.onPopupClose(a.current)}}),[]),Cr.useEffect((function(){c()}),[r]),Cr.createElement("div",{ref:o,className:"cv-popup",style:{display:"none"}},t&&Cr.createElement("div",{className:"titlebar-container"},Cr.createElement("div",{className:"cv-titlebar"},Cr.createElement("div",{className:"text-container"},Cr.createElement("h1",{className:"title"},t),Cr.createElement("a",{className:"close",onClick:n},"×")))),!t&&Cr.createElement("div",{className:"no-heading"},Cr.createElement("a",{className:"close",onClick:n},"×")),Cr.createElement("div",{className:"popup-body-container"},r?Cr.createElement(ep,null):Cr.createElement(Xf.Provider,{value:{onResize:c}},e.children)))}function Qf(e){return Ar.createPortal(Cr.createElement(Zf,Object.assign({},e)),mr.getContainerEl())}function ep(){return Cr.createElement("div",{className:"popup-loading-spinner"},Cr.createElement(up,{size:"md",color:"#f8981d"}))}function tp(e){var t=e.appLink,n=e.className,o=e.tag,i=void 0===o?"a":o,a=e.onClick,c={onClick:function(e){e.preventDefault(),Br(a)&&a(),r.AppLinkHelper.trigger(t)},href:r.AppLinkHelper.getHref(t),className:n};return Cr.createElement(i,Object.assign({},c),e.children)}var np=n(38);function rp(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 op(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 op(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 op(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 ip=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};function ap(e){var t=rp(np.useInView({triggerOnce:!0}),2),n=t[0],r=t[1];if(void 0===window.IntersectionObserver)return Cr.createElement("img",Object.assign({alt:""},e));var o=e.src,i=ip(e,["src"]),a=Object.assign(Object.assign({alt:"",style:{width:"100%",height:"100%"}},i),r?{src:o}:{});return Cr.createElement("img",Object.assign({ref:n},a))}function cp(e){switch(e){case"sm":return{length:2,width:2,radius:4};case"md":return{length:3,width:3,radius:5};default:return{}}}function up(e){var t=e.size,n=e.color,r=Kr(new(hr.getClickView().Shared.Views.SpinJsView)({spinColor:n,spinOptions:cp(t)}));return Cr.createElement("div",{ref:r,className:"spinner-component"})}function sp(e){var t=e.svgName,n=e.className;return Cr.createElement("svg",{className:n},Cr.createElement("use",{xlinkHref:"#".concat(t)}))}function lp(e){var t=e.alerts,n=e.removeAlert;return Cr.createElement("div",{className:"alert-box"},Cr.createElement(ec.TransitionGroup,{component:"ul"},t&&t.map((function(e,t){return Cr.createElement(ec.CSSTransition,{key:t,timeout:200,classNames:"alert"},Cr.createElement(dc,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}function fp(e){var t=sr.getInstance(e);return Cr.useEffect((function(){return function(){return sr.releaseInstance(e)}})),t}function pp(e){return fp(e)}var dp={Config:"ConfigDataService",User:"UserDataService",Language:"LanguageDataService",Video:"VideoDataService",VideoUpload:"VideoUpload",Library:"LibraryDataService",Search:"SearchDataService",Series:"SeriesDataService",Notification:"NotificationDataService",NotificationSocket:"NotificationSocketService"},hp="ImageUrlService",yp="AppOptionsService",mp={application:ge,action:se.HOME};function vp(e){var t=e.heading,n=e.description,r=e.returnAppLink,o=void 0===r?mp:r,i=e.returnAppLinkText,a=void 0===i?io.getPhrase("shared.error","return"):i,c=pp(hp).getImageUrls(),u=e.imageUrl||c.ErrorViews.DEFAULT;return Cr.createElement("div",{className:"bg-white error-view"},Cr.createElement("img",{src:u}),Cr.createElement("h4",null,t),Cr.createElement("p",null,n),!!o&&Cr.createElement(tp,{appLink:o},a))}var bp=Cr.createContext({});function gp(e){return function(e){if(Array.isArray(e))return wp(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 wp(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 wp(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 wp(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 Ep(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Cr.useContext(bp),r=n.setPageTitle;Cr.useEffect((function(){e&&Br(r)&&r(e)}),[e].concat(gp(t)))}function Sp(e){var t=e.playlist,n=Cr.useContext(Xf),r=new(0,hr.getClickView().PlaylistApp.Views.ShareTabView)({itemModel:hr.getMasterPlaylistModel(t),type:"masterPlaylist",name:"playlist"}),o=Kr(r);return Cr.useEffect((function(){var e=function(){n&&n.onResize()};return r.on("resize",e),function(){return r.off("resize",e)}}),[]),Cr.createElement("div",{ref:o})}var Op=io.encloseNamespace("shared.share");function xp(e){var t=o.useBasicFetch(Ea.getPlaylist(e.playlistId));Ep(t.data&&"".concat(Op("share")," ").concat(t.data.name),[t.data]);var n=[{variant:"secondary",onClick:e.closePopup,buttonText:Op("close")}];return Cr.createElement(Qf,{title:Op("sharePlaylist"),close:e.closePopup,showLoadingSpinner:!t.data},Cr.createElement(Cr.Fragment,null,!!t.data&&Cr.createElement(Sp,{playlist:t.data}),Cr.createElement(Jf,{buttons:n})))}function kp(e){return function(e){if(Array.isArray(e))return Cp(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 Cp(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 Cp(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 Cp(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 jp=function(e){return e&&e.data&&e.data.pagination&&e.data.pagination.cursors&&e.data.pagination.cursors.next};function Ap(e){return Object(_r.useSelector)(Object(Cr.useMemo)((function(){return function(t){for(var n=e,r=Br(e)&&o.getResponse(t,n()),i=r&&r.isFetching,a=r&&r.shouldFetch,c=r&&r.data&&r.data.data,u=jp(r);u&&(i=(r=o.getResponse(t,n(u))).isFetching,!r.shouldFetch);){var s=r.data&&r.data.data;s&&c.push.apply(c,kp(s)),u=jp(r)}return{shouldInitialFetch:a,items:c,nextCursor:u,isFetching:i}}}),[e]))}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 Lp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pp(e,t){return(Pp=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tp(e);if(t){var o=Tp(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"!==_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 Tp(e){return(Tp=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&&Pp(e,t)}(n,e);var t=Np(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ra.Newest,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Lp(this,n),t.call(this,{collectionPrefix:"".concat(ye),cursor:r,sort:e})}return n}(na);var Fp=Cr.createContext(""),Dp=Cr.memo((function(e){var t=e.phrase,n=e.namespace,r=e.options,o=Cr.useContext(Fp),i=n||o,a=io.getPhrase(i,t,r);return Cr.createElement("span",{dangerouslySetInnerHTML:{__html:a}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&lr.isEqual(e.options,t.options)}));function Mp(){return Cr.createElement("div",{className:"left-nav"},Cr.createElement("div",{className:"partial-loading-view left-nav"},Cr.createElement("div",{className:"nav-header"}),Cr.createElement("div",{className:"nav-content"},Cr.createElement("div",{className:"partial-loading-item width1"}),Cr.createElement("div",{className:"partial-loading-item"}),Cr.createElement("div",{className:"partial-loading-item width2"}),Cr.createElement("div",{className:"partial-loading-item width3"}),Cr.createElement("div",{className:"partial-loading-item"}),Cr.createElement("div",{className:"partial-loading-item width2"}),Cr.createElement("div",{className:"partial-loading-item width1"}),Cr.createElement("div",{className:"partial-loading-item width3"}),Cr.createElement("div",{className:"partial-loading-item width2"}),Cr.createElement("div",{className:"partial-loading-item"}),Cr.createElement("div",{className:"partial-loading-item width1"}),Cr.createElement("div",{className:"partial-loading-item width2"}),Cr.createElement("div",{className:"partial-loading-item width1"}),Cr.createElement("div",{className:"partial-loading-item width2"}),Cr.createElement("div",{className:"partial-loading-item width3"}),Cr.createElement("div",{className:"partial-loading-item"}),Cr.createElement("div",{className:"partial-loading-item width1"}),Cr.createElement("div",{className:"partial-loading-item"}))))}function Up(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 Vp(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 Vp(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 Vp(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 zp={entity:xa.Playlist,workflowPhase:Ca.Start},Hp=io.encloseNamespace("playlists.playlistActions");function Bp(e){var t=e.playlist,n=e.analyticsOptions,r=Up(Cr.useState(!1),2),o=r[0],i=r[1],a=[{title:Hp("share"),appLink:{application:we,action:le.SHARE_PLAYLIST,args:[t.id.toString()]},analyticsOptions:Rc.mergeOptions(n,Object.assign({actionType:Oa.Share},zp))},{title:Hp("edit"),appLink:{application:we,action:le.EDIT_PLAYLIST,args:[t.id.toString()]},analyticsOptions:Rc.mergeOptions(n,Object.assign({actionType:Oa.Edit},zp))},{title:Hp("delete"),appLink:{application:we,action:le.DELETE_PLAYLIST,args:[t.id.toString()]},className:"danger",analyticsOptions:Rc.mergeOptions(n,Object.assign({actionType:Oa.Delete},zp))}];return Cr.createElement("div",{className:"playlist-actions"},Cr.createElement(yc.Dropdown,{onToggle:function(){return i((function(e){return!e}))}},Cr.createElement(yc.Dropdown.Toggle,{as:"svg",id:"playlist-actions-".concat(t.id)},Cr.createElement("use",{xlinkHref:"#more"})),o&&Cr.createElement(Dc,{itemOptions:a,alignRight:!0})))}function qp(e){var t=e.playlist,n=e.selected,r={application:we,action:le.PLAYLIST,args:[t.id.toString(),Ja(t.name)]},o={location:ka.LeftNav};return Cr.createElement("div",{className:"nav-item".concat(n?" selected":"")},Cr.createElement("div",{className:"playlist-icon"}),Cr.createElement(tp,{className:"nav-link",appLink:r},t.name),Cr.createElement("div",{className:"playlist-actions-container"},Cr.createElement(Bp,{playlist:t,analyticsOptions:o})))}function $p(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 Yp(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 Yp(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 Yp(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 Gp=function(e){return{location:ka.VideoListHeader,entity:xa.Playlist,actionType:e,workflowPhase:Ca.Start}};function Kp(e){var t=$p(Cr.useState(e.isFollowing),2),n=t[0],r=t[1],o=function(t){return{application:we,action:t,args:[e.playlistId.toString()]}},i=o(le.SHARE_PLAYLIST),a=o(le.EDIT_PLAYLIST),c=Cr.useCallback((function(t){return Rc.logUserAction({id:e.playlist.id},t)}),[e.playlist]),u=Cr.useCallback((function(){return c(Object.assign({descriptor:Aa.All},Gp(Oa.Play)))}),[Gp]),s=Cr.useCallback((function(){return c(Gp(Oa.Share))}),[Gp]),l=Cr.useCallback((function(){return c(Gp(Oa.Edit))}),[Gp]);return Cr.createElement(Fp.Provider,{value:"playlists.playlistHeader"},Cr.createElement("div",{className:"playlist-header-actions"},e.hasVideos&&!!e.playAllAppLink&&Cr.createElement(tp,{appLink:e.playAllAppLink,className:"btn grey",onClick:u},Cr.createElement("span",{className:"play-svg-container"},Cr.createElement(sp,{svgName:cc.Play}))," ",Cr.createElement(Dp,{phrase:"playAll"})),e.canShare&&Cr.createElement(tp,{appLink:i,className:"btn grey",onClick:s},Cr.createElement(sp,{svgName:cc.Share}),Cr.createElement(Dp,{phrase:"share"})),e.canEdit&&Cr.createElement(tp,{appLink:a,className:"btn grey",onClick:l},Cr.createElement(sp,{svgName:cc.Edit}),Cr.createElement(Dp,{phrase:"edit"})),e.canFollow&&Cr.createElement("button",{className:"btn grey",onClick:function(){r(!n),e.follow(!n)}},Cr.createElement(sp,{svgName:n?cc.BellFilled:cc.Bell}),Cr.createElement(Dp,{phrase:n?"following":"follow"}))))}var Wp,Jp,Xp,Zp,Qp=n(11);!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(Wp||(Wp={})),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"}(Jp||(Jp={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(Xp||(Xp={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(Zp||(Zp={}));var ed,td,nd={urlBuilder:function(e,t){var n=u.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)):""})),r=u.reduce(n,(function(e,t){return t?e?"".concat(e,"&").concat(t):t:e}));return r?"".concat(e,"?").concat(r):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 u.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}}};function rd(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"}(td||(td={}));var od=(rd(ed={},Jp.Banners,td.Banner),rd(ed,Jp.Thumbnails,td.Thumbnail),ed),id=function(e){return"/v1/category-map/".concat(e)},ad={createUrl:function(e,t){return ad._createUrl(e,t)},createBannerUrl:function(e,t,n){return e&&e.url?ad._createUrl(e.url,n):ad._createCategoryMappedUrl(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=nd.safeUrlConcat(n,"".concat(id(od[o]))),a=Object.assign({name:ad.Rfc3986EncodeURIComponent(r)},t);return ad._createUrl(i,a)},_createUrl:function(e,t){if(e){if(lr.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&";return nd.safeUrlConcat(e,"".concat(r).concat(n))}},legacyCreateThumbnailUrl:function(e,t){if(!e)return"";var n;if(e&&(n=e instanceof r.Model?e.get("url"):"string"==typeof e?e:e.url)){var o=Object.assign({size:Wp.Small,bgColor:"000"},t);return ad._createUrl(n,o)}}};function cd(e){var t=e.playlist,n={application:we,action:le.HOME};return Cr.createElement("div",{className:"breadcrumbs-container border-bottom"},Cr.createElement("ul",{className:"breadcrumbs"},Cr.createElement("li",null,Cr.createElement(tp,{appLink:n},Cr.createElement(Dp,{namespace:"playlists.playlistHeader",phrase:"playlists"}))),Cr.createElement("li",null,Cr.createElement("span",null,t.name))))}function ud(e){var t=e.showBreadcrumbs;return Cr.createElement("div",{className:"playlist-header-partial"},t&&Cr.createElement("div",{className:"partial-loading-item breadcrumbs"}),Cr.createElement("div",{className:"header-inner"},Cr.createElement("div",{className:"partial-loading-item thumbnail"}),Cr.createElement("div",{className:"metadata"},Cr.createElement("div",{className:"partial-loading-item heading"}),Cr.createElement("div",{className:"partial-loading-item date"}),Cr.createElement("div",{className:"actions"},Cr.createElement("div",{className:"partial-loading-item action-1"}),Cr.createElement("div",{className:"partial-loading-item action-2"}),Cr.createElement("div",{className:"partial-loading-item action-3"})))))}function sd(e){if(e.showPartialLoading)return Cr.createElement(ud,{showBreadcrumbs:!e.showBreadcrumbs});var t=e.playlist.dateCreated&&Qp.utc(e.playlist.dateCreated).fromNow(),n=!!e.showDateMetadata,r=!!e.showDateMetadata&&!!e.lastUpdated,o=n&&r,i=ad.createUrl(e.playlist.cover&&e.playlist.cover.url,{size:Wp.Medium,resizeType:Xp.Cover}),a=e.playlist&&e.playlist.videos&&e.playlist.videos.count,c=Number.isInteger(a)&&io.getPhrase("playlists.playlistHeader","video",{smartCount:a});return Cr.createElement(Fp.Provider,{value:"playlists.playlistHeader"},Cr.createElement("div",{className:"playlist-header"},Cr.createElement("div",{className:"header-inner border-bottom"},!!e.returnAppLink&&Cr.createElement(tp,{appLink:e.returnAppLink.appLink,className:"back-button"},Cr.createElement(sp,{svgName:cc.Back}),Cr.createElement("span",null,Cr.createElement(Dp,{phrase:"backTo",options:{label:e.returnAppLink.label}}))),e.showBreadcrumbs&&Cr.createElement(cd,{playlist:e.playlist}),Cr.createElement("div",null,!!i&&Cr.createElement("div",{className:"thumbnail"},Cr.createElement(ap,{src:i})),Cr.createElement("div",{className:"metadata-actions-container"},!!c&&Cr.createElement("p",{className:"text-muted"},c),Cr.createElement("h1",null,e.playlist.name),e.playlist.description&&Cr.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:Xa(e.playlist.description)}}),!!n&&Cr.createElement("span",{className:"date-sub-heading"},Cr.createElement(Dp,{phrase:"created",options:{date:t}})),!!o&&Cr.createElement("span",{className:"metadata-separator"},"•"),!!r&&Cr.createElement("span",{className:"date-sub-heading"},Cr.createElement(Dp,{phrase:"updated",options:{date:Qp.utc(e.lastUpdated).fromNow()}})),Cr.createElement(Kp,{playlistId:e.playlistId,playlist:e.playlist,hasVideos:e.hasVideos,application:e.application,playAllAppLink:e.playAllAppLink,canEdit:e.canEdit&&!e.isShared,canShare:e.canEdit&&!e.isShared,canFollow:e.canFollow,isFollowing:e.isFollowing,follow:e.follow}))))))}function ld(e){return function(e){if(Array.isArray(e))return fd(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 fd(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 fd(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 fd(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 pd=function(){return Cr.createElement("div",{className:"tile"},Cr.createElement("div",{className:"tile-stripe-thick partial-loading-item"}),Cr.createElement("div",{className:"tile-stripe partial-loading-item"}))};function dd(){var e=ld(Array(25));return Cr.createElement("div",{className:"partial-loading-view"},Cr.createElement("div",{className:"tile-list"},e.map((function(e,t){return Cr.createElement(pd,{key:t})}))))}function hd(){return Cr.createElement("div",{className:"partial-loading-view playlist-list-header border-bottom"})}var yd=function(e){return e&&!(e.data&&e.data.length)},md=function(e,t){if(e&&e.data&&e.data.length&&!(t>e.data.length))return e.data[t]};function vd(e){var t=e.playlist,n={application:we,action:le.PLAYLIST,args:[t.id.toString(),Ja(t.name)]},r={location:ka.PlaylistListItem},o=function(){if(t.thumbnail&&t.thumbnail.url)return t.thumbnail.url;var e=md(t.videos,0);return e?e.thumbnail&&ad.createUrl(e.thumbnail.url,{size:Wp.Small}):void 0},i=t.videos&&t.videos.count||null;return Cr.createElement(Fp.Provider,{value:"playlists.playlistList"},Cr.createElement("div",{className:"playlist-item col-xs-6 col-sm-4 col-lg-3"},Cr.createElement("div",{className:"cv-thumbnail"},Cr.createElement(tp,{appLink:n},Cr.createElement("div",{className:"playlist-btn-mask"}),Cr.createElement("div",{className:"playlist-btn-group"},Cr.createElement("div",{className:"playlist-btn-icon"}),i&&Cr.createElement("div",{className:"playlist-btn-video-count"},Cr.createElement(Dp,{phrase:"video",options:{smartCount:i}}))),!!o()&&Cr.createElement(ap,{src:o()}),i&&Cr.createElement("span",{className:"badge"},Cr.createElement(Dp,{phrase:"video",options:{smartCount:i}})))),Cr.createElement("div",{className:"cv-video-content"},Cr.createElement("div",{className:"name-container"},Cr.createElement("div",{className:"playlist-icon"}),Cr.createElement(tp,{appLink:n,className:"playlist-name"},t.name),Cr.createElement("div",{className:"playlist-actions-container"},Cr.createElement(Bp,{playlist:t,analyticsOptions:r}))),!1)))}function bd(e){var t=e.playlists;return Cr.createElement("div",{className:"playlist-list grid"},Cr.createElement("div",{className:"row"},t.map((function(e){return Cr.createElement(vd,{key:e.id,playlist:e})}))))}function gd(e){var t=e.user,n=t&&io.getPhrase("playlists.playlistList","heading",{fname:t.givenName,lname:t.familyName});return Cr.createElement("div",{className:"playlist-list-header border-bottom"},Cr.createElement("div",{className:"heading-wrapper"},n?Cr.createElement("h1",null,n):Cr.createElement("div",{className:"partial-loading-item heading"})),Cr.createElement(wd,{className:"nav-link new-playlist",analyticsOptions:{location:ka.PlaylistListHeader}}))}function wd(e){var t=e.className,n=e.analyticsOptions,r=Cr.useCallback((function(){return Rc.logUserAction({},Rc.mergeOptions(n,{actionType:Oa.Create,entity:xa.Playlist,workflowPhase:Ca.Start}))}),[n]),o=Object.assign(Object.assign({appLink:{application:we,action:le.NEW_PLAYLIST}},t?{className:t}:{}),{onClick:r});return Cr.createElement(tp,Object.assign({},o),Cr.createElement(sp,{svgName:cc.Plus}),Cr.createElement(Dp,{namespace:"playlists.newPlaylistButton",phrase:"createNew"}))}var Ed,Sd=n(46);function Od(e){return function(e){if(Array.isArray(e))return xd(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 xd(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 xd(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 xd(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 kd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Cr.useRef(null);return Cr.useEffect((function(){if(e){var t=n.current;return e.render(),t.hasChildNodes()?t.replaceChild(e.el,t.firstChild):t.appendChild(e.el),e.trigger("rendered"),function(){Br(e.close)?e.close():Br(e.destroy)&&e.destroy()}}}),Od(t)),n}function Cd(e){var t=e.view,n=e.options,r=void 0===n?{}:n,o=e.className,i=void 0===o?"":o,a=Cr.useMemo((function(){return new t(r)}),[r]),c=kd(a,[a]);return t?Cr.createElement("div",{ref:c,className:i}):Cr.createElement(Cr.Fragment,null)}function jd(e){var t=e.appLink,n=e.className,o=e.children,i=e.tag,a=void 0===i?"a":i;if(!t)return Cr.createElement("span",{className:n||""},o);var c=e.onClick;c||(c=function(e){e.preventDefault(),r.AppLinkHelper.trigger(t)});var u={onClick:c,href:r.AppLinkHelper.getHref(t),className:n};return Cr.createElement(a,Object.assign({},u),o)}!function(e){e.Read="read",e.Write="write",e.None="none"}(Ed||(Ed={}));var Ad=function(e,t){var n=e.toString();if(n.length>=t)return n;for(t-=n.length;t>0;)n="0"+n,t--;return n};function _d(e){var t=e.video,n=t.series,r=t.season,o=t.episodeNumber;if(!n)return Cr.createElement(Cr.Fragment,null);var i={application:we,action:le.SERIES,args:[n.id]};return Cr.createElement("div",{className:"series-season-episode"},Cr.createElement(jd,{appLink:i,className:"hero-series"},Cr.createElement("span",null,n.name),!!o&&Cr.createElement("span",{className:"season-episode-block"}," ",!!r&&Cr.createElement(Cr.Fragment,null,Cr.createElement("span",null,"S".concat(Ad(r.number,2)))," • "),Cr.createElement("span",null,"E".concat(Ad(o,2))))))}var Ld=function(e,t,n){Cr.useEffect((function(){return e.on(t,n),function(){return e.off(t,n)}}),[])},Pd=function(e,t,n){var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},Nd=function(e){if(!u.isNumber(e))return"";var t=new Date(e),n=t.getUTCHours(),r=Pd(t.getUTCMinutes(),2,"0"),o=Pd(t.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(r,":").concat(o):"".concat(r,":").concat(o)};function Rd(e){var t=e.video,n=e.appLink,r=e.onClick,o=t.thumbnail&&ad.createUrl(t.thumbnail.url,{size:Wp.Small});return Cr.createElement("div",{className:"cv-thumbnail",onClick:r},Cr.createElement("div",{className:"item-number-viewpart"}),Cr.createElement(tp,{appLink:n,className:"video-link"},Cr.createElement("div",{className:"play-btn-mask"}),Cr.createElement("div",{className:"play-icon-video"},Cr.createElement("svg",{className:"play-icon"},Cr.createElement("use",{xlinkHref:"#play"}))),!!o&&Cr.createElement(ap,{title:t.name,src:o}),Cr.createElement("span",{className:"duration"},Nd(t.duration))))}var Td=io.encloseNamespace("playlists.videoList");function Id(e){var t=e.video,n=e.playlistId,o=e.canEdit,i=e.showLoader,a=e.analyticsOptions,c=hr.getClickView().Shared.Views.VideoActionsListView,u=hr.getVideoActionsCollection(t);o&&u.add({allowedLibs:["none"],text:Td("removeHeading"),description:Td("removeInfo"),eventName:"remove-from-playlist",className:"remove-from-playlist"});Ld(t,"remove-from-playlist",(function(){Rc.logUserAction({id:t.get("id"),playlistId:n},Rc.mergeOptions(a,{actionType:Oa.Dissociate,entity:xa.Video,workflowPhase:Ca.Start})),r.AppLinkHelper.trigger({application:we,action:le.REMOVE_VIDEO_FROM_PLAYLIST,args:[t.get("id"),n]})}));var s=new c({model:t,collection:u,itemModel:t});s.showDeleteLoader=i,hr.getClickView().Shared.Services.VideoActionService.mixin(s);var l=Kr(s);return Cr.createElement("div",{ref:l})}function Fd(e){var t=e.video,n=hr.getClickView().Shared.Models.WebPlayer,r=Kr(new(0,hr.getClickView().Shared.Views.WebPlayerView)({model:new n({id:t.id,width:520,height:292,autoplay:!0,parameters:{bc:!1,bf:!1},trackingCode:t.tokenId}),name:"PreviewVideo"}));return Cr.createElement("div",{ref:r})}function Dd(e){var t=e.previewOpen,n=e.setPreviewOpen;return Cr.createElement(Fp.Provider,{value:"playlists.videoList"},Cr.createElement("div",{className:"video-preview-pane"},Cr.createElement("div",{className:"cv-video-footer"},Cr.createElement("div",{className:"preview-video-container"},Cr.createElement("div",{className:"preview-video".concat(t?" open":"")},t?Cr.createElement("p",{onClick:function(){return n(!1)}},Cr.createElement(Dp,{phrase:"hide"}),Cr.createElement("span",{className:"preview-video-icon"},Cr.createElement(Dp,{phrase:"minus"}))):Cr.createElement("p",{onClick:function(){return n(!0)}},Cr.createElement(Dp,{phrase:"show"}),Cr.createElement("span",{className:"preview-video-icon"},Cr.createElement(Dp,{phrase:"plus"}))))),Cr.createElement("div",{className:"preview-pane"},t&&Cr.createElement(Fd,{video:e.video})))))}function Md(){var e=kd(Cr.useMemo((function(){var e=hr.getClickView().PlaylistApp;return!!e&&new e.Views.PlaceholderView}),[]),[]);return Cr.createElement("div",{ref:e})}function Ud(e){return Cr.createElement("span",{className:"restricted-badge-container"},Cr.createElement(Cd,{view:hr.getClickView().Shared.Views.RestrictedBadgeView,options:{model:e.video}}))}function Vd(e){return Cr.createElement(Cd,{view:hr.getClickView().Shared.Views.RestrictionInfoView,options:{model:e.video,showBanner:!0},className:"restriction-info-container"})}function zd(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 Hd(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 Hd(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 Hd(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 Bd=io.encloseNamespace("playlists.videoList"),qd=Object(Sd.SortableHandle)((function(){return Cr.createElement("svg",null,Cr.createElement("use",{xlinkHref:"#handle"}))}));function $d(e){var t=e.video,n=e.playlistId,r=e.canEdit,o=e.idx,i=e.getVideoAppLink,a=e.setIsSorting,c=zd(Cr.useState(!1),2),u=c[0],s=c[1],l=zd(Cr.useState(!1),2),f=l[0],p=l[1],d=zd(Cr.useState(!1),2),h=d[0],y=d[1],m=zd(Cr.useState(!1),2),v=m[0],b=m[1],g=Cr.useRef(),w=t.hasOwnProperty("_allowAccess")?t._allowAccess!==Ed.None:e.isUserSignedIn,E=!yd(t.interactives),S=hr.getClickView().Shared.Helpers.formatSafeHTML(t.description,{linkify:!1}),O=hr.getMasterVideoModel(t),x=O.getVideoOrigin(),k=x&&"".concat(Bd("videoFrom")," ").concat(function(e){switch(e){case"library":case"workspace":case"exchange":return Bd(e);default:return""}}(x)),C=function(e){return Rc.logUserAction({id:t.id},Object.assign({location:ka.VideoList,actionType:Oa.Play,entity:xa.Video,workflowPhase:Ca.Start},e?{descriptor:e}:{}))};Cr.useEffect((function(){var e;(null===(e=g.current)||void 0===e?void 0:e.clientHeight)>36&&s(!0)}),[]),Ld(O,"itemRestricted itemUnrestricted",(function(){Br(e.fetchRestrictions)&&e.fetchRestrictions()}));var j=O.hasRestriction(),A=O.isRestricted();return Cr.createElement(Fp.Provider,{value:"playlists.videoList"},Cr.createElement("div",{className:"playlist-video-item cv-video"},Cr.createElement("div",{className:"tile-item-inner border-bottom"},Cr.createElement("div",{className:"item-number-container".concat(r?" draggable":"")},r&&Cr.createElement("div",{className:"drag-handle-container",onMouseDown:function(){y(!1),p(!1),a(!0)},onMouseUp:function(){return a(!1)}},Cr.createElement(qd,null)),Cr.createElement("div",{className:"item-number"},Cr.createElement("span",null,o+1))),A?Cr.createElement(Cd,{view:hr.getClickView().Shared.Views.VideoListItemView,options:{model:O,logClickthrough:!1},className:"restricted-playlist-video-item"}):Cr.createElement(Cr.Fragment,null,Cr.createElement(Rd,{video:t,appLink:i(t),onClick:function(){return C(Ra.Thumbnail)}}),Cr.createElement("div",{className:"info cv-video-content"},Cr.createElement("div",{className:"cv-header".concat(t.series?" has-series":"")},Cr.createElement("div",{className:"video-actions-container"},Cr.createElement(Id,{video:O,playlistId:n,canEdit:r,showLoader:function(){return b(!0)},analyticsOptions:{location:ka.VideoListItem}})),Cr.createElement(_d,{video:t}),Cr.createElement("h3",{className:"cv-title",title:t.name},Cr.createElement(tp,{appLink:i(t),onClick:function(){return C(Ra.Title)},className:"video-link"},t.name)),x&&Cr.createElement("span",{className:"metadata-badge origin ".concat(x),title:k},x),j&&Cr.createElement(Ud,{video:O})),!1,Cr.createElement("p",{className:"cv-metadata"},t.rating&&t.rating.code&&Cr.createElement("span",{className:"metadata-badge",title:"".concat(Bd("ratedTitle")," ").concat(t.rating.name)},t.rating.code),t.rating&&!t.rating.code&&Cr.createElement("span",{className:"metadata-badge",title:Bd("unratedTitle")},Cr.createElement(Dp,{phrase:"unrated"})),t.channel&&t.channel.name&&Cr.createElement("span",{className:"metadata-badge",title:t.channel.name},t.channel.name),t.productionYear&&Cr.createElement("span",{className:"metadata-badge",title:"".concat(Bd("productionYearTitle")," ").concat(t.productionYear)},t.productionYear),E&&Cr.createElement("span",{className:"metadata-badge orange has-interactives",title:Bd("interactiveTitle")},Cr.createElement(Dp,{phrase:"interactive"}))),j&&Cr.createElement(Vd,{video:O}),Cr.createElement("div",{className:"cv-description-wrapper".concat(f?" opened":" truncated")},Cr.createElement("p",{className:"cv-description",ref:g,dangerouslySetInnerHTML:{__html:S}}),u&&Cr.createElement("a",{className:"show-more",onClick:function(){return p((function(e){return!e}))}},f?Cr.createElement(Dp,{phrase:"showLess"}):Cr.createElement(Dp,{phrase:"showMore"})))),w?Cr.createElement(Dd,{video:t,previewOpen:h,setPreviewOpen:y}):Cr.createElement(Md,null))),v&&Cr.createElement("div",{className:"cv-loader cover"},Cr.createElement(up,{size:"md",color:"#f8981d"}),Cr.createElement("div",{className:"loading-mask"}))))}function Yd(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 Gd(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 Gd(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 Gd(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 Kd=Object(Sd.SortableElement)((function(e){return Cr.createElement($d,Object.assign({},e))})),Wd=Object(Sd.SortableContainer)((function(e){var t=Yd(Cr.useState(!1),2),n=t[0],r=t[1];return Cr.createElement("div",{className:"tile-list-view video-tile-rows".concat(n?" sorting":"")},e.videos.map((function(t,n){return Cr.createElement(Kd,Object.assign({key:t.id,index:n,idx:n,video:t,setIsSorting:r},e))})))}));function Jd(e){return function(e){if(Array.isArray(e))return Xd(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 Xd(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 Xd(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 Xd(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 Zd=function(){return Cr.createElement("div",{className:"playlist-video-item cv-video"},Cr.createElement("div",{className:"tile-item-inner"},Cr.createElement("div",{className:"partial-loading-item cv-thumbnail"},Cr.createElement("a",null)),Cr.createElement("div",{className:"cv-video-content"},Cr.createElement("div",{className:"partial-loading-item info video-title"}),Cr.createElement("div",{className:"partial-loading-item info"}),Cr.createElement("div",{className:"partial-loading-item info"}))))};function Qd(){var e=Jd(Array(25));return Cr.createElement("div",{className:"tile-list-view video-tile-rows partial-loading-view"},Cr.createElement("div",{className:"video-list-view"},e.map((function(e,t){return Cr.createElement(Zd,{key:t})}))))}var eh=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};function th(e){var t=e.onSortComplete,n=e.onSortStart,o=e.showPartialLoading,i=eh(e,["onSortComplete","onSortStart","showPartialLoading"]),a=function(e){Br(n)&&n(e)};return o?Cr.createElement(Qd,null):Cr.createElement(Wd,Object.assign({},i,{onSortStart:function(e){var t=e.index;return a(t)},onSortEnd:function(e){Br(t)?t(e.oldIndex,e.newIndex):r.ErrorHelper.throw(new K("An onSortComplete callback function must be passed to SortableVideoListComponent"))},lockAxis:"y",lockToContainerEdges:!0,lockOffset:0,useDragHandle:!0,helperClass:"sortable-video-item",distance:1}))}var nh=io.encloseNamespace("playlists.videoNotFound");function rh(e){var t=e.playlist,n=e.isShared,r={application:we,action:n?le.SHARED_PLAYLIST:le.PLAYLIST,args:[t.id,Ja(t.name)]},o={heading:nh("heading"),description:nh("info"),returnAppLink:r,returnAppLinkText:nh("returnTo",{name:t.name})};return Cr.createElement(vp,Object.assign({},o))}function oh(e){var t=e.playlists,n=e.selectedPlaylistId,r=e.hasMorePlaylists,o=e.fetchMorePlaylists,i=e.isFetching;return t?Cr.createElement(Fp.Provider,{value:"playlists.leftNav"},Cr.createElement("div",{className:"playlists-left-nav"},Cr.createElement("div",{className:"navigation-view border-bottom"},Cr.createElement("div",{className:"nav-heading"},Cr.createElement("h2",null,Cr.createElement(Dp,{phrase:"playlists"}))),t.map((function(e){return Cr.createElement(qp,{key:e.id,playlist:e,selected:n&&e.id.toString()===n.toString()})})),t&&!!t.length&&r&&(i?Cr.createElement("span",{className:"loading-text"},Cr.createElement(Dp,{phrase:"loading"})):Cr.createElement(yc.Button,{variant:"link",onClick:o},Cr.createElement(Dp,{phrase:"seeMore"})))),Cr.createElement("div",{className:"navigation-view"},Cr.createElement(wd,{className:"nav-link new-playlist",analyticsOptions:{location:ka.LeftNav}})))):Cr.createElement(Mp,null)}function ih(e){return Ar.createPortal(Cr.createElement(oh,Object.assign({},e)),function(){var e=$("#body").find("#playlists-left-nav");if(e.length)return e[0]}())}function ah(e){var t=Object(_r.useDispatch)(),n=function(e){return Ea.getUserPlaylists(new Ip(ra.Newest,e))},r=function(e){o.getFetch(t,n(e))()},i=Ap((function(e){return n(e).key}));return Cr.useEffect((function(){i.shouldInitialFetch&&r()}),[i.shouldInitialFetch]),Cr.createElement(ih,{playlists:i.items,selectedPlaylistId:e.selectedPlaylistId,hasMorePlaylists:!!i.nextCursor,fetchMorePlaylists:function(){return r(i.nextCursor)},isFetching:i.isFetching})}var ch=io.encloseNamespace("playlists.migrationInProgress");function uh(){var e=o.useGetFetch(Ea.getMigrationTask()),t=o.useGetResponse(Ea.getMigrationTask().key),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,n=Cr.useState(!1),r=qr(n,2),o=r[0],i=r[1],a=Cr.useRef(),c=function e(){i((function(e){return!e})),a.current=window.setTimeout(e,t)};return Cr.useEffect((function(){a.current=window.setTimeout(c,t)}),[]),Cr.useEffect((function(){Br(e)&&e()}),[o]),function(){return window.clearTimeout(a.current)}}((function(){e()}));Cr.useEffect((function(){t.data&&t.data.status===fa.Processed&&(n(),r.AppLinkHelper.trigger({application:we,action:le.HOME}))}),[t.data]);var i=ch("heading"),a=ch("description");return Cr.createElement(vp,{heading:i,description:a,returnAppLink:!1})}function sh(e,t){var n=e,r=t,o=Ap(e&&function(e){return n(e).key});Object(Cr.useEffect)((function(){o.shouldInitialFetch&&t&&r()}),[o.shouldInitialFetch,t]),Object(Cr.useEffect)((function(){o.nextCursor&&!o.isFetching&&t&&r(o.nextCursor)}),[o.nextCursor,o.isFetching,t])}function lh(e,t,n){var o;switch(e){case Ko.Forbidden:o=n.forbidden;break;case Ko.NotFound:o=n.notFound}o?r.AppLinkHelper.trigger(o):t.error(io.getPhrase("playlists.hooks","somethingWentWrong"))()}function fh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=pp(Xr.ALERT);Object(Cr.useEffect)((function(){e.hasError&&lh(e.statusCode,n,t)}),[e.hasError])}var ph,dh,hh=function(e,t){var n=[];return e.forEach((function(e){var r,o,i=t.find((function(t){return t.objectId===e.id}));n.push(Object.assign(Object.assign({},e),{restrictions:(o=null===(r=i)||void 0===r?void 0:r.restrictedObjects,null!=o?o:[])}))})),n},yh=function(e,t){var n;if(e&&t)return null===(n=t.find((function(t){return t.objectId.toString()===e.toString()})))||void 0===n?void 0:n.restrictedObjects};!function(e){e[e.Unspecified=0]="Unspecified",e[e.Student=1]="Student",e[e.Staff=2]="Staff",e[e.Admin=3]="Admin",e[e.CVAdmin=4]="CVAdmin",e[e.FreeUser=6]="FreeUser",e[e.ReadOnly=8]="ReadOnly"}(ph||(ph={})),function(e){e[e.Guest=16]="Guest",e[e.User=32]="User",e[e.Admin=48]="Admin",e[e.SuperAdmin=64]="SuperAdmin"}(dh||(dh={}));var mh,vh=function(e){var t,n;if((null===(t=e)||void 0===t?void 0:t.onlineRole)!==ph.Staff)return null===(n=e)||void 0===n?void 0:n.maxAllowedRating},bh=function(e){return{url:"/api/domain/v1/subjects/".concat(e),key:"subject:".concat(e)}},gh=function(e,t,n){return{url:"/api/domain/v2/objects/".concat(e),key:"".concat(me,":").concat(e),success:t,error:n}},wh=function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(ae.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}};function Eh(e){var t=e.currentVideoId,n=e.shareCode,o=e.getPlaylistAppLink,i=e.getVideoAppLink,a=e.playlist,c=e.videos,u=hr.getClickView().Shared,s=hr.getClickView().PlaylistApp,l=u.Models.MasterPlaylistV2,f=u.Views.MasterPlayView,p=u.Models.MasterVideo,d=s.Models.SharedMasterPlaylistVideo,h=Cr.useRef(new l).current;Cr.useEffect((function(){if(a&&c){var e=lr.deepClone(c).map((function(e){return u.Helpers.MasterToOnlineVideo(e)}));pr(h,a,{parse:!0}),dr(h,"videos",e,{parse:!0}),n&&dr(h,"shareCode",n),h.trigger("sync")}}),[a,c]),Cr.useEffect((function(){h.isLoaded()&&h.trigger("sync")}),[t]);var y=Cr.useMemo((function(){return new f({model:n?new d({id:t,playlistShareCode:n,restrictions:e.videoRestrictions}):new p({id:t}),playlist:h,collectionAutoplay:!0,showSideBarOnLoad:!1,fetchRelatedCollection:!1,isShareView:!!n,getPlaylistUrl:function(){return r.AppLinkHelper.getHref(o(h.toJSON()))},getVideoUrl:function(e){return r.AppLinkHelper.getHref(i(e))}})}),[n,t,h,e.videoRestrictions]),m=Kr(y,[y]);return Cr.createElement("div",{ref:m})}function Sh(e){var t=Object(_r.useDispatch)(),n=o.useBasicFetch(Oi),i=!lr.isEmpty(n.data),a=e.filterByRating?i&&vh(n.data):null,c=e.isShared?!!n.data&&Ea.getSharedPlaylist(e.playlistId,a):Ea.getPlaylist(e.playlistId),u=!!n.data&&function(t){return(e.isShared?Ea.getSharedPlaylistVideos:Ea.getPlaylistVideos)(e.playlistId,a,t)},s=o.useBasicFetch(c);fh(s,{forbidden:{application:we,action:le.ACCESS_DENIED},notFound:{application:we,action:le.NOT_FOUND}});var l=Ap(u&&function(e){return u(e).key}),f=i&&!!l.items&&!!l.items.length&&wh(l.items.map((function(e){return e.id}))),p=o.useBasicFetch(f);sh(u,(function(e){o.getFetch(t,u(e))()})),Ep(s.data&&s.data.name,[s.data]);var d=function(e,t,n){return n?e&&t?hh(e,t).filter((function(e){return!hr.isVideoRestricted(e)})):void 0:e}(l.items,p.data,i),h=e.videoId&&!!l.items&&l.items.find((function(t){return t.id.toString()===e.videoId.toString()})),y=!!s.data&&!l.nextCursor&&!!d;return Cr.useEffect((function(){if(!e.videoId&&!l.nextCursor&&d&&s.data)if(d.length){var t=fi(d);r.AppLinkHelper.trigger(e.getVideoAppLink(t.id,t.name),{replace:!0})}else r.AppLinkHelper.trigger(e.getPlaylistAppLink(s.data),{replace:!0})}),[e.videoId,l.nextCursor,s.data,d]),e.videoId?y&&!h?Cr.createElement(rh,{playlist:s.data,isShared:e.isShared}):Cr.createElement(Eh,{playlist:s.data,videos:d,currentVideoId:e.videoId,videoRestrictions:yh(e.videoId,p.data),shareCode:e.isShared&&e.playlistId,getPlaylistAppLink:e.getPlaylistAppLink,getVideoAppLink:e.getVideoAppLink}):Cr.createElement(Cr.Fragment,null)}function Oh(e){return(Oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xh(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&&kh(e,t)}function kh(e,t){return(kh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ch(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ah(e);if(t){var o=Ah(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jh(this,n)}}function jh(e,t){return!t||"object"!==Oh(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 Ah(e){return(Ah=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 Ph(e,t,n){return t&&Lh(e.prototype,t),n&&Lh(e,n),e}!function(e){e.LocalStorage="localStorage",e.SessionStorage="sesstionStorage"}(mh||(mh={}));var Nh,Rh,Th=function(){function e(t){_h(this,e),this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=t.type,this.hasSupport&&(this.storage=window[this.type])}return Ph(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}(),Ih=function(e){xh(n,e);var t=Ch(n);function n(){return _h(this,n),t.apply(this,arguments)}return Ph(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:mh.LocalStorage}))}}]),n}(Th),Fh=function(e){xh(n,e);var t=Ch(n);function n(){return _h(this,n),t.apply(this,arguments)}return Ph(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:mh.SessionStorage}))}}]),n}(Th),Dh=Ih.Instance,Mh=Fh.Instance,Uh=n(39),Vh=n(98),zh=n.n(Vh),Hh=n(99),Bh=n.n(Hh),qh=n(100),$h=n.n(qh),Yh=n(101),Gh=n.n(Yh),Kh=(n(102),n(103),n(104)),Wh=n.n(Kh),Jh=n(105),Xh=n.n(Jh),Zh=n(106),Qh=n.n(Zh),ey=n(107),ty=n.n(ey),ny=n(108),ry=n.n(ny),oy=n(109),iy=n.n(oy),ay=n(110),cy=n.n(ay),uy=n(111),sy=n.n(uy),ly=n(112),fy=n.n(ly),py=n(113),dy=n.n(py),hy=n(114),yy=n.n(hy),my=n(115),vy=n.n(my),by=n(116),gy=n.n(by),wy=n(117),Ey=n.n(wy),Sy=n(118),Oy=n.n(Sy),xy=n(119),ky=n.n(xy),Cy=n(120),jy=n.n(Cy),Ay=n(121),_y=n.n(Ay),Ly=n(122),Py=n.n(Ly),Ny=n(123),Ry=n.n(Ny),Ty=(n(124),n(125)),Iy=n.n(Ty),Fy=n(126),Dy=n.n(Fy),My=n(127),Uy=n.n(My),Vy=(n(128),n(129),n(130)),zy=n.n(Vy),Hy=n(131),By=n.n(Hy),qy=n(132),$y=n.n(qy),Yy=n(133),Gy=n.n(Yy),Ky=n(134),Wy=n.n(Ky),Jy=n(135),Xy=n.n(Jy),Zy=(n(136),n(137)),Qy=n.n(Zy),em=n(138),tm=n.n(em),nm=n(139),rm=n.n(nm),om=n(140),im=n.n(om),am=n(141),cm=n.n(am),um=n(142),sm=n.n(um),lm=n(143),fm=n.n(lm),pm=(n(144),n(145)),dm=n.n(pm),hm=n(146),ym=n.n(hm),mm=n(147),vm=n.n(mm),bm=n(148),gm=n.n(bm),wm=n(149),Em=n.n(wm),Sm=n(150),Om=n.n(Sm),xm=n(151),km=n.n(xm),Cm=n(152),jm=n.n(Cm),Am=n(153),_m=n.n(Am),Lm=n(154),Pm=n.n(Lm),Nm=n(155),Rm=n.n(Nm),Tm=n(156),Im=n.n(Tm),Fm=n(157),Dm=n.n(Fm),Mm=(n(158),n(159),n(160),n(161)),Um=n.n(Mm),Vm=(n(162),n(163),n(164),n(165),n(166)),zm=n.n(Vm),Hm=n(167),Bm=n.n(Hm),qm=(n(168),n(169),n(170),n(171)),$m=n.n(qm),Ym=n(172),Gm=n.n(Ym),Km=n(173),Wm=n.n(Km),Jm=n(174),Xm=n.n(Jm),Zm=n(175),Qm=n.n(Zm),ev=n(176),tv=n.n(ev),nv=n(177),rv=n.n(nv),ov=(n(178),n(179),n(180),n(181)),iv=n.n(ov),av=n(182),cv=n.n(av),uv=[zh.a,$h.a,Gh.a,Wh.a,ty.a,ry.a,iy.a,cy.a,Qh.a,Bh.a,sy.a,fy.a,dy.a,yy.a,vy.a,Xh.a,gy.a,Ey.a,Oy.a,Ry.a,ky.a,jy.a,_y.a,Py.a,Iy.a,$y.a,km.a,_m.a,jm.a,Dm.a,Pm.a,Rm.a,Im.a,im.a,sm.a,cm.a,Dy.a,Uy.a,tm.a,rm.a,Qy.a,zy.a,Gy.a,ym.a,vm.a,Wy.a,Xy.a,gm.a,By.a,dm.a,Em.a,Om.a,fm.a,zm.a,Bm.a,Um.a,Wm.a,Gm.a,$m.a,Xm.a,tv.a,Qm.a,rv.a,cv.a,iv.a];function sv(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.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.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"}(Nh||(Nh={}));var lv;function fv(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)}}u.extend(Uh.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),(Rh=Uh.library).add.apply(Rh,function(e){if(Array.isArray(e))return sv(e)}(lv=uv)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(lv)||function(e,t){if(e){if("string"==typeof e)return sv(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)?sv(e,t):void 0}}(lv)||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.")}());var pv=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 Uh.icon(e,t.iconOptions||{})}},{key:"faIconLookup",value:function(e,t){var n=t.prefix,r=void 0===n?"cv":n;return Uh.findIconDefinition({prefix:r,iconName:e})}}])&&fv(t.prototype,n),r&&fv(t,r),e}().Instance,dv=Nh,hv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return Math.floor(Math.random()*Math.floor(e))};function yv(e){var t=e.title,n=e.placement,r=e.trigger,o=e.children;return Cr.createElement(yc.OverlayTrigger,{placement:n,overlay:Cr.createElement(yc.Tooltip,{id:"".concat(t,"-").concat(hv())},t),trigger:r},Cr.createElement("span",null,o))}yv.defaultProps={trigger:["hover","click","focus"],placement:"top"};var mv;function vv(e){var t=e.svgName,n=e.className,r=void 0===n?"d-inline-block svg-container":n,o=e.tagName,i=void 0===o?"span":o,a=e.size,c=void 0===a?mv.Standard:a,u=e.onClick,s=e.title,l=e.tooltipPlacement,f=void 0===l?"right":l,p=i,d={dangerouslySetInnerHTML:{__html:pv.getSvg(t)},className:"".concat(r," ").concat(c),onClick:Br(u)?u:null};return s?Cr.createElement(yv,{title:s,placement:f},Cr.createElement(p,Object.assign({},d))):Cr.createElement(p,Object.assign({},d))}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg"}(mv||(mv={}));var bv,gv=n(229);function wv(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 Ev(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 Ev(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 Ev(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 Sv(e){var t=wv(Object(Cr.useState)(window.matchMedia(e).matches),2),n=t[0],r=t[1];return Object(Cr.useEffect)((function(){var t=window.matchMedia(e);t.matches!==n&&r(t.matches);var o=function(){return r(t.matches)};return t.addListener(o),function(){return t.removeListener(o)}}),[e]),n}function Ov(e){return(Ov="function"==typeof Symbol&&"symbol"==typeof Symbol.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.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)"}(bv||(bv={}));var xv,kv={isNumber:function(e){return kv.isType(e,"number")},isString:function(e){return kv.isType(e,"string")},isType:function(e,t){return Ov(e)===t}},Cv=n(40),jv=n.n(Cv);function Av(e){return function(e){if(Array.isArray(e))return _v(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 _v(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 _v(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 _v(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 Lv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pv(e,t){return lr.isObject(e)&&e.hasOwnProperty(t)&&kv.isString(e[t])}function Nv(e,t,n){return function(r){var i=r.value;if(i.length||n(),!(i.length<e.activationLength)){if(e.local){var a=Br(e.getLocalSuggestions)?e.getLocalSuggestions(i,e.local):(c=i,u=e.local,s=e.valueKey,(l=c.trim().toLowerCase()).length?u.filter((function(e){return!(!Pv(e,s)||!kv.isString(e[s]))&&e[s].trim().toLowerCase().includes(l)})):[]);t((function(e){return Object.assign(Object.assign({},e),Lv({},xv.Local,a))}))}var c,u,s,l;e.getRemoteUrl&&function(e,t,n){var r=Br(e)&&e(t);r&&o.ajaxRequest({resource:r,type:fo.GET,success:n,error:function(){}})}(e.getRemoteUrl,i,(function(n){return t((function(t){return Object.assign(Object.assign({},t),Lv({},xv.Remote,Br(e.formatRemoteSuggestions)?e.formatRemoteSuggestions(n):n))}))}))}}}function Rv(e,t,n,r,o,i){var a=function(t){return e[t]||[]},c=t?a(xv.Recent):[],u=a(xv.Local),s=a(xv.Remote),l=[];c.length&&l.push({title:n,data:c});var f=[].concat(Av(u),Av(s));return Number.isInteger(i)&&l.length>i&&f.slice(0,i),Br(o)?l.push.apply(l,Av(o(f))):l.push({title:r,data:f}),l}function Tv(e){return e.data}function Iv(e){if(e.title)return Cr.createElement("strong",null,e.title)}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote"}(xv||(xv={}));var Fv={container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(jv.a.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"cursor-pointer py-1 px-2",suggestionHighlighted:jv.a.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(jv.a.sectionContainer)};function Dv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(Fv,e)}var Mv=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},Uv=function(e){var t="d-inline-block svg-container";return Br(e)?t+" cursor-pointer":t};function Vv(e){var t=e.onClickSearchIcon,n=e.searchIconPlacement,r=e.className,o=Mv(e,["onClickSearchIcon","searchIconPlacement","className"]),i="form-control ".concat(jv.a.input),a="input-group-text bg-white";"right"===n&&(i+=" border-right-0",a+=" pl-0"),"left"===n&&(i+=" border-left-0",a+=" pr-0"),r&&(i+=" ".concat(r));var c=function(){return Cr.createElement("div",{className:a},Cr.createElement(vv,{svgName:dv.Search,size:mv.Small,onClick:t,className:Uv(t)}))};return Cr.createElement("div",{className:"input-group"},"left"===n&&Cr.createElement("div",{className:"input-group-prepend"},Cr.createElement(c,null)),Cr.createElement("input",Object.assign({className:i},o)),"right"===n&&Cr.createElement("div",{className:"input-group-append"},Cr.createElement(c,null)))}function zv(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 Hv(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 Hv(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 Hv(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 Bv=Br;function qv(e){var t,n,r,o=(t=e.initialSuggestions,n=e.recentSearches,Lv(r={},xv.Recent,n),Lv(r,xv.Local,t),Lv(r,xv.Remote,[]),r),i=zv(Cr.useState(e.initialQuery||""),2),a=i[0],c=i[1],u=zv(Cr.useState(o),2),s=u[0],l=u[1],f=Sv(bv.XS),p=function(){l(o)},d=function(t){t.preventDefault(),Bv(e.onSubmit)&&e.onSubmit(a)};return Cr.createElement("form",{onSubmit:d},Cr.createElement(gv,{suggestions:Rv(s,!a,e.recentSearchHeading||io.getPhrase("shared.searchBar","recentSearchHeading"),e.suggestionsHeading,e.getSections,e.suggestionLimit),onSuggestionsFetchRequested:Nv(e,l,p),onSuggestionsClearRequested:function(){e.alwaysRenderSuggestions||p()},onSuggestionSelected:function(t,n){var r=n.suggestion;e.clearQueryOnSelect&&c(""),e.onSuggestionSelected(r)},getSuggestionValue:function(t){return e.updateQueryOnSelection?function(e,t){return Pv(t,e)?t[e]:""}(e.valueKey,t):a},renderSuggestion:function(t){return Bv(e.getSuggestionComponent)?e.getSuggestionComponent(t):function(e,t){return Pv(t,e)?Cr.createElement(Cr.Fragment,null,t[e]):Cr.createElement(Cr.Fragment,null)}(e.valueKey,t)},alwaysRenderSuggestions:e.alwaysRenderSuggestions,focusInputOnSuggestionClick:!f,inputProps:{placeholder:e.placeholder||io.getPhrase("shared.searchBar","placeholder"),value:a,onChange:function(t,n){var r=n.newValue;c(r),Bv(e.onQueryChange)&&e.onQueryChange(r)},onKeyDown:function(t){8===t.keyCode&&e.onBackspace&&!a&&e.onBackspace()},autoFocus:!!e.autoFocusInput,onClickSearchIcon:!!e.submitOnClickSearchIcon&&d,searchIconPlacement:e.searchIconPlacement},renderInputComponent:Vv,theme:Dv(e.theme),multiSection:!0,renderSectionTitle:Iv,getSectionSuggestions:Tv}))}qv.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right"};n(230);io.encloseNamespace("playlists.addToPlaylist");function $v(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 Yv(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 Yv(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 Yv(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 Gv=io.encloseNamespace("playlists.deletePlaylist");function Kv(e){var t=Object(_r.useDispatch)(),n=$v(Cr.useState(!1),2),i=n[0],a=n[1],c=o.useBasicFetch(Ea.getPlaylist(e.playlistId));Ep(c.data&&"".concat(Gv("title",{name:c.data.name})),[c.data]);var u=[{variant:"secondary",onClick:e.closePopup,buttonText:Gv("keep")},{variant:"danger",onClick:function(){a(!0);o.fetch(t,Ea.deletePlaylist(e.playlistId,(function(){e.closePopup(),e.routeToOnDelete&&r.AppLinkHelper.trigger(e.routeToOnDelete)}),e.closePopup)),Rc.logUserAction({id:e.playlistId},Rc.mergeOptions(e.analyticsOptions,{actionType:Oa.Delete,entity:xa.Playlist,workflowPhase:Ca.Complete}))},buttonText:Gv("confirm"),isSpinnerButton:!0,showSpinner:i}];return Cr.createElement(Fp.Provider,{value:"playlists.deletePlaylist"},Cr.createElement(Qf,{title:Gv("check"),close:e.closePopup,showLoadingSpinner:!c.data},!!c.data&&Cr.createElement("div",{className:"delete-playlist-container"},Cr.createElement("div",{className:"delete-playlist-body"},Cr.createElement("p",null,Cr.createElement(Dp,{phrase:"warning",options:{name:c.data.name}})),Cr.createElement("p",null,Cr.createElement(Dp,{phrase:"videoNote"}))),Cr.createElement(Jf,{buttons:u}))))}function Wv(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 Jv(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 Jv(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 Jv(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 Xv=n(67),Zv=Xv.object().shape({name:Xv.string().max(255,(function(){return io.getPhrase("playlists.validation","nameExceeds")})).required((function(){return io.getPhrase("playlists.validation","nameRequired")})),description:Xv.string().max(65535,(function(){return io.getPhrase("playlists.validation","descriptionExceeds")}))}),Qv=io.encloseNamespace("playlists.playlistDetails");function eb(e){var t=Cf(),n=function(e){var t,n=Wv(Cr.useState(!1),2),r=n[0],o=n[1];return Cr.useEffect((function(){var t;e.isValid&&(e.dirty||(null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit))?o(!0):o(!1)}),[e.isValid,null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit,e.dirty,e.values]),Cr.useEffect((function(){e.isSubmitting&&o(!1)}),[e.isSubmitting]),r}(t);return Cr.createElement(Cr.Fragment,null,Cr.createElement(Hf,{label:Qv("nameLabel"),type:"text",name:"name",id:"name",placeholder:Qv("namePlaceholder"),autoFocus:!0,value:t.values.name,error:t.errors.name,touched:t.touched.name}),Cr.createElement(Hf,{label:Qv("descriptionLabel"),component:"textarea",name:"description",id:"description",placeholder:Qv("descriptionPlaceholder"),value:t.values.description,error:t.errors.description,touched:t.touched.description}),Cr.createElement("div",{className:"btn-container d-flex justify-content-end"},Cr.createElement("button",{type:"button",className:"btn btn-".concat(e.cancelButtonClass," mr-2"),onClick:e.onClickCancel},Cr.createElement(Dp,{namespace:"playlists.playlistDetails",phrase:"cancel"})),Cr.createElement(Kf,{type:"submit",buttonText:e.isNew?Qv("create"):Qv("save"),variant:"primary",className:t.isValid?"":"disabled",disabled:!n,showSpinner:t.isSubmitting})))}function tb(e){var t=e.playlist,n=(t=void 0===t?{}:t).name,r=void 0===n?"":n,o=t.description,i=void 0===o?"":o,a=t.id,c=void 0===a?null:a,u=e.savePlaylist,s=e.onClickCancel,l=e.cancelButtonClass;return Cr.createElement(qf,{initialValues:{name:r,description:i||""},validationSchema:Zv,onSubmit:u,renderChildren:function(){return Cr.createElement(eb,{isNew:!c,onClickCancel:s,cancelButtonClass:l})}})}var nb=io.encloseNamespace("playlists.editPlaylist");function rb(e){var t=Object(_r.useDispatch)(),n=o.useBasicFetch(Ea.getPlaylist(e.playlistId));Ep(n.data&&nb("title",{name:n.data.name}),[n]);return Cr.createElement(Qf,{title:nb("heading"),close:e.closePopup,showLoadingSpinner:!n.data},!!n.data&&Cr.createElement(tb,{playlist:n.data,savePlaylist:function(n){o.fetch(t,Ea.updatePlaylist(e.playlistId,n,e.closePopup,e.closePopup)),Rc.logUserAction(n,Rc.mergeOptions(e.analyticsOptions,{actionType:Oa.Edit,entity:xa.Playlist,workflowPhase:Ca.Complete}))},onClickCancel:e.closePopup,cancelButtonClass:"secondary"}))}var ob=io.encloseNamespace("playlists.newPlaylist");function ib(e){var t=Object(_r.useDispatch)();Ep(ob("title"));var n=o.useBasicFetch(Oi);return Cr.createElement(Qf,{title:ob("title"),close:e.closePopup,showLoadingSpinner:!n.data},!!n.data&&Cr.createElement(tb,{savePlaylist:function(i){o.fetch(t,Ea.createPlaylist(n.data.id,i,(function(t){e.closePopup(),t&&r.AppLinkHelper.trigger({application:e.application,action:le.PLAYLIST,args:[t.id,Ja(t.name)]})}),e.closePopup)),Rc.logUserAction(i,Rc.mergeOptions(e.analyticsOptions,{actionType:Oa.Create,entity:xa.Playlist,workflowPhase:Ca.Complete}))},onClickCancel:e.closePopup,cancelButtonClass:"secondary"}))}var ab="hc/articles/115005679748";function cb(e){var t=e.imageUrl,n=e.heading,r=e.description;return Cr.createElement("div",{className:"empty-state-container"},Cr.createElement("div",{className:"content-container"},t&&Cr.createElement("img",{src:t}),Cr.createElement("h1",null,n),r&&Cr.createElement("p",{dangerouslySetInnerHTML:{__html:r}})))}var ub=io.encloseNamespace("playlists.emptyState");function sb(e){var t=e.supportSiteUrl,n=pp(hp).getImageUrls(),r=nd.safeUrlConcat(t,ab);return Cr.createElement(cb,{imageUrl:n.EmptyStates.VIDEOS,heading:ub("noVideosHeading"),description:'<a href="'.concat(r,'" target="_blank">').concat(ub("noVideosInfo"),"</a>")})}var lb=Cr.createContext({});function fb(e,t,n,r){return{url:"/api/domain/v2/objects/".concat(t),key:"favourite:video:".concat(t,":").concat(e),data:{favouriteVideos:e},type:fo.PUT,invalidationKeys:["favourite:videos:".concat(t),"video:is:favourited:".concat(t)],success:n,error:r}}function pb(e,t,n,r){return{url:"/api/domain/v2/objects/".concat(t,"/favouriteVideos/").concat(e),key:"favourite:video:".concat(t,":").concat(e),type:fo.DELETE,invalidationKeys:["favourite:videos:".concat(t),"video:is:favourited:".concat(t)],success:n,error:r}}var db=function(e,t,n,r,o){return(n?fb:pb)(e,t,r,o)};var hb={url:"/api/config",key:"config"};function yb(e,t,n){var r=function(){n||(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-400||e())};Object(Cr.useEffect)((function(){var e=Hr(r,200);return t&&window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[t])}function mb(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 vb(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 vb(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 vb(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 bb(e){var t=e.isFetching,n=e.onClick;return Cr.createElement("div",{className:"infinite-scroll-footer"},t?Cr.createElement(up,{size:"md",color:"#979797"}):Cr.createElement("span",{onClick:n},Cr.createElement(sp,{svgName:cc.Down})))}var gb;!function(e){e[e.AddToPlaylist=0]="AddToPlaylist",e[e.RemoveFromPlaylist=1]="RemoveFromPlaylist",e[e.Share=2]="Share",e[e.Edit=3]="Edit"}(gb||(gb={}));function wb(e){var t=e&&e.length&&e.map((function(e){return e.dateAssociated}));return t&&t.length?di(t,(function(e){return new Date(e).getTime()})):null}function Eb(e){return[e?gb.RemoveFromPlaylist:gb.AddToPlaylist,gb.Share]}function Sb(e,t,n){Rc.logUserAction({id:t,playlistId:e},{location:ka.VideoList,entity:xa.Video,actionType:Oa.Move,workflowPhase:n})}function Ob(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 xb(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 xb(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 xb(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 kb(e){var t,n=Object(_r.useDispatch)(),r=o.useBasicFetch(hb),i=o.useBasicFetch(Oi),a=!lr.isEmpty(i.data),c=e.filterByRating?a&&vh(i.data):null,u=e.isShared?!!i.data&&Ea.getSharedPlaylist(e.playlistId,c):Ea.getPlaylist(e.playlistId),s=o.useBasicFetch(u);fh(s,{forbidden:{application:we,action:le.ACCESS_DENIED},notFound:{application:we,action:le.NOT_FOUND}});var l=!!i.data&&function(t){return(e.isShared?Ea.getSharedPlaylistVideos:Ea.getPlaylistVideos)(e.playlistId,c,t)},f=o.useBasicFetch(e.canFollow&&!!i.data&&Ea.getIsFollowingPlaylist(e.playlistId,i.data.id)),p=function(e){o.getFetch(n,l(e))()},d=function(e,t){var n=t,r=Ap(e&&function(t){return e(t).key});return yb((function(){return t&&n(r.nextCursor)}),!!r.nextCursor,r.isFetching),Object(Cr.useEffect)((function(){r.shouldInitialFetch&&t&&n()}),[r.shouldInitialFetch,t]),{items:r.items,hasMore:!!r.nextCursor,isFetching:r.isFetching}}(l,p),h=d.items,y=d.hasMore,m=d.isFetching;xi(h);var v,b,g,w,E=Ob((v=h,b=mb(Object(Cr.useState)(),2),g=b[0],w=b[1],Object(Cr.useEffect)((function(){g&&(v.length!==g.length||function(e,t){var n=!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r].id!==t[r].id){n=!1;break}return n}(v,g))&&w(null)}),[v]),[g,w]),2),S=E[0],O=E[1],x=a&&!!h&&!!h.length&&wh(h.map((function(e){return e.id}))),k=o.useGetResponse(x&&x.key),C=o.useGetFetch(x);x&&k.shouldFetch&&C();var j=a?!!k.data&&hh(h,k.data):h;Ep(!!s.data&&s.data.name,[s.data]);var A,_,L=!!e.allowEdit&&function(e,t){return!(lr.isEmpty(t)||!e||lr.isEmpty(e.owner))&&e.owner.id===t.id}(s.data,i.data),P=!!h&&0===h.length,N=!s.data||!h||!i.data||!r.data||e.canFollow&&!f.data;return Cr.createElement(lb.Provider,{value:{videoActions:Eb(L),getActionAppLink:(A=e.application,_=e.playlistId,function(e,t){switch(t){case gb.RemoveFromPlaylist:return{application:A,action:le.REMOVE_VIDEO_FROM_PLAYLIST,args:[e.id,_]};case gb.AddToPlaylist:return{application:A,action:le.ADD_TO_PLAYLIST,args:[e.id]};case gb.Share:return{application:A,action:le.HOME}}})}},Cr.createElement("div",{className:"bg-white padding-gutter"},Cr.createElement(sd,{playlistId:e.playlistId,playlist:s.data,hasVideos:!P,isFollowing:null===(t=f.data)||void 0===t?void 0:t.isFollowing,follow:function(t){if(e.canFollow){var r=t?Ea.followPlaylist:Ea.unfollowPlaylist;o.fetch(n,r(e.playlistId,i.data.id))}},application:e.application,canEdit:L,isShared:e.isShared,showBreadcrumbs:e.showBreadcrumbs,showDateMetadata:e.showDateMetadata,playAllAppLink:e.getPlayAllAppLink&&e.getPlayAllAppLink(s.data),showPartialLoading:N,lastUpdated:!!h&&wb(h),imageCdnUrl:!!r.data&&r.data.imageCdnUrl,returnAppLink:e.returnAppLink,canFollow:e.canFollow}),P?!!r.data&&Cr.createElement(sb,{supportSiteUrl:r.data.supportSiteUrl}):Cr.createElement(th,{videos:S||j,playlistId:!!s.data&&s.data.id,onSortStart:function(t){var n=h[t];n&&Sb(e.playlistId,n.id,Ca.Start)},onSortComplete:function(t,r){if(t!==r){var i=j[t];if(i){var a=Zi(j,t,r),c=a.reorderedItems,u=a.reorderRequest;O(c),Sb(e.playlistId,i.id,Ca.Complete);o.fetch(n,Ea.reorderVideos(e.playlistId,u,null,(function(){O(null)})))}}},isUserSignedIn:a,canEdit:L,showPartialLoading:!j||!i.data||!r.data,getVideoAppLink:e.getVideoAppLink,getSeriesAppLink:e.getSeriesAppLink,fetchRestrictions:C,setFavourite:function(e,t,r){o.fetch(n,db(e,i.data.id,t,(function(){Rc.logUserAction({id:e},{entity:xa.Video,actionType:Oa.Favourite,descriptor:t?Ma.On:Ma.Off,location:ka.VideoThumbnail,workflowPhase:Ca.Complete})}),r))}}),!!y&&Cr.createElement(bb,{isFetching:m,onClick:p})))}var Cb=function(){return"/api/domain/v1/subjects/audiences"},jb=function(){return{bootstrapName:"presentationAudiences",url:Cb(),key:"presentation:audiences",normalize:!1}},Ab=io.encloseNamespace("playlists.emptyState");function _b(){var e=pp(hp).getImageUrls();return Cr.createElement(cb,{imageUrl:e.EmptyStates.VIDEOS,heading:Ab("noPlaylistsHeading"),description:Ab("noPlaylistsInfo")})}function Lb(e){var t=Object(_r.useDispatch)(),n=o.useBasicFetch(hb),r=o.useBasicFetch(Oi),i=o.useBasicFetch(jb()),a=function(t){return Ea.getUserPlaylists(new Ip(e.sort,t))},c=function(e){o.getFetch(t,a(e))()},u=Ap((function(e){return a(e).key}));return Ep(io.getPhrase("playlists.playlists","title")),yb((function(){return c(u.nextCursor)}),!!u.nextCursor,u.isFetching),Cr.useEffect((function(){u.shouldInitialFetch&&c()}),[u.shouldInitialFetch]),yi(u.items)?Cr.createElement(_b,null):Cr.createElement("div",{className:"bg-white padding-gutter"},n.data&&r.data?Cr.createElement(gd,{user:r.data,imageCdnUrl:n.data.imageCdnUrl,sortType:e.sort,getSortAppLink:e.getSortAppLink}):Cr.createElement(hd,null),u.items&&(i.data||i.hasError)?Cr.createElement(bd,{playlists:u.items}):Cr.createElement(dd,null),!!u.items&&!(!u.nextCursor&&!u.isFetching)&&Cr.createElement(bb,{isFetching:u.isFetching,onClick:function(){return c(u.nextCursor)}}))}function Pb(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 Nb(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 Nb(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 Nb(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 Rb=io.encloseNamespace("playlists.removeVideoFromPlaylist");function Tb(e){var t=Object(_r.useDispatch)(),n=Pb(Cr.useState(!1),2),r=n[0],i=n[1],a=o.useBasicFetch(Ea.getPlaylist(e.playlistId)),c=o.useBasicFetch(gh(e.videoId));Ep(!!c.data&&Rb("title",{name:c.data.name}),[c.data]);var u=[{variant:"secondary",onClick:e.closePopup,buttonText:Rb("keep")},{variant:"danger",onClick:function(){i(!0),o.fetch(t,Ea.removePlaylistVideo(e.playlistId,e.videoId,e.closePopup,e.closePopup)),Rc.logUserAction({id:e.videoId,playlistId:e.playlistId},Rc.mergeOptions(e.analyticsOptions,{actionType:Oa.Dissociate,entity:xa.Video,workflowPhase:Ca.Complete}))},buttonText:Rb("confirm"),isSpinnerButton:!0,showSpinner:r}],s=!!a.data&&!!c.data;return Cr.createElement(Qf,{title:Rb("check"),close:e.closePopup,showLoadingSpinner:!s},s&&Cr.createElement("div",{className:"remove-video-container"},Cr.createElement("div",{className:"remove-video-body"},Cr.createElement("p",null,Cr.createElement(Dp,{namespace:"playlists.removeVideoFromPlaylist",phrase:"warning",options:{video:c.data.name,playlist:a.data.name}}))),Cr.createElement(Jf,{buttons:u})))}var Ib=function(e){var t=e.children;return Cr.createElement(yo,null,t)};function Fb(e,t){sr.getInstance(a.PLAYLIST).getMigrationTask((function(n){return sr.releaseInstance(a.PLAYLIST),n&&n.status!==fa.Processed||e.action!==le.MIGRATION_IN_PROGRESS?n&&n.status!==fa.Processed&&e.action!==le.MIGRATION_IN_PROGRESS?(r.AppLinkHelper.trigger({application:we,action:le.MIGRATION_IN_PROGRESS}),void r.AppLinkUtility.routingEnded()):void t(e):(r.AppLinkHelper.trigger({application:we,action:le.HOME}),void r.AppLinkUtility.routingEnded())}))}function Db(e){return(Db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ub(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,n){return t&&Ub(e.prototype,t),n&&Ub(e,n),e}function zb(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)}function Hb(e,t){return(Hb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bb(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 qb(this,n)}}function qb(e,t){return!t||"object"!==Db(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 Yb=function(e){zb(n,e);var t=Bb(n);function n(){return Mb(this,n),t.apply(this,arguments)}return Vb(n,[{key:"channelName",get:function(){return we}},{key:"appRoutes",get:function(){return{"playlists(/)":"index","playlists/maintenance":"migrationInProgress","playlists/share/:shareCode(/)":"sharedPlaylist","playlists/share/:shareCode/play(/)":"playSharedPlaylist","playlists/share/:shareCode/videos/:id(/)":"playSharedPlaylistVideo","playlists/:id(/:slug)":"playlist","playlists/:id/play(/)":"playPlaylist","playlists/:id/videos/:id(/)":"playPlaylistVideo"}}},{key:"externalRoutes",get:function(){return{"series/:id(/)":"series"}}},{key:"appLinks",get:function(){return["newPlaylist","editPlaylist","deletePlaylist","removeVideoFromPlaylist","sharePlaylist","accessDenied","notFound"]}},{key:"filters",get:function(){return[Fb]}}]),n}(r.AppRouter),Gb=function(e){zb(n,e);var t=Bb(n);function n(){return Mb(this,n),t.apply(this,arguments)}return Vb(n,[{key:"initialize",value:function(){var e=this;lr.values(a).forEach((function(t){return sr.getInstance(t,e)}))}},{key:"index",value:function(e){this.layout.showChildView(Ur,Cr.createElement(Lb,{getSortAppLink:function(e){return{application:we,action:le.HOME,params:{sort:e}}},sort:va(e.sort)})),this.renderLeftNav()}},{key:"playlist",value:function(e,t){var n=this,r={key:e,playlistId:e,application:we,allowEdit:!0,showBreadcrumbs:!0,showDateMetadata:!1,getVideoAppLink:function(t){return n.getVideoAppLink(e,t.id,Ja(t.name))},getSeriesAppLink:function(e){return{application:we,action:le.SERIES,args:[e.id]}},getPlayAllAppLink:function(){return{application:we,action:le.PLAY_PLAYLIST,args:[e]}},filterByRating:!0};this.layout.showChildView(Ur,Cr.createElement(kb,Object.assign({},r))),this.renderLeftNav(e)}},{key:"newPlaylist",value:function(){this.layout.showChildView(Vr,Cr.createElement(ib,Object.assign({application:we},this.getPopupProps())))}},{key:"editPlaylist",value:function(e){var t=Object.assign({key:e,playlistId:e},this.getPopupProps());this.layout.showChildView(Vr,Cr.createElement(rb,Object.assign({},t)))}},{key:"deletePlaylist",value:function(e){var t=e.toString()===this.currentPlaylistId?{application:we,action:le.HOME}:null,n=Object.assign({key:e,playlistId:e,routeToOnDelete:t},this.getPopupProps());this.layout.showChildView(Vr,Cr.createElement(Kv,Object.assign({},n)))}},{key:"removeVideoFromPlaylist",value:function(e,t){var n=Object.assign({key:"".concat(e,":").concat(t),videoId:e,playlistId:t},this.getPopupProps());this.layout.showChildView(Vr,Cr.createElement(Tb,Object.assign({},n)))}},{key:"playPlaylist",value:function(e){this.playPlaylistVideo(e)}},{key:"playPlaylistVideo",value:function(e,t){var n=this,r=Object.assign(Object.assign({key:"".concat(e,":").concat(t),playlistId:e,videoId:t,getPlaylistAppLink:function(){return n.getPlaylistAppLink(e)},getVideoAppLink:function(t,r){return n.getVideoAppLink(e,t,r)}},this.getPopupProps()),{filterByRating:!0});this.layout.showChildView(Ur,Cr.createElement(Sh,Object.assign({},r))),this.renderLeftNav(e)}},{key:"sharePlaylist",value:function(e){var t=Object.assign({key:e,playlistId:e},this.getPopupProps());this.layout.showChildView(Vr,Cr.createElement(xp,Object.assign({},t)))}},{key:"sharedPlaylist",value:function(e){var t=this,n=Object.assign(Object.assign({key:e,playlistId:e,application:we,isShared:!0,allowEdit:!1,showDateMetadata:!1,getVideoAppLink:function(n){return t.getVideoAppLink(e,n.id,n.name,!0)},getSeriesAppLink:function(e){return{application:we,action:le.SERIES,args:[e.id]}},getPlayAllAppLink:function(){return{application:we,action:le.PLAY_SHARED_PLAYLIST,args:[e]}}},this.getPopupProps()),{filterByRating:!0});this.layout.showChildView(Ur,Cr.createElement(kb,Object.assign({},n))),this.hideLeftNav()}},{key:"playSharedPlaylist",value:function(e){this.playSharedPlaylistVideo(e)}},{key:"playSharedPlaylistVideo",value:function(e,t){var n=this,r={key:"".concat(e,":").concat(t),playlistId:e,videoId:t,isShared:!0,getPlaylistAppLink:function(){return n.getPlaylistAppLink(e,"",!0)},getVideoAppLink:function(t,r){return n.getVideoAppLink(e,t,r,!0)},filterByRating:!0};this.layout.showChildView(Ur,Cr.createElement(Sh,Object.assign({},r))),this.hideLeftNav()}},{key:"accessDenied",value:function(){var e=this.getPhrase("accessDeniedHeading"),t=this.getPhrase("accessDeniedInfo");this.layout.showChildView(Ur,Cr.createElement(vp,{heading:e,description:t})),this.hideLeftNav()}},{key:"notFound",value:function(){var e=this.getPhrase("notFoundHeading"),t=this.getPhrase("notFoundInfo");this.layout.showChildView(Ur,Cr.createElement(vp,{heading:e,description:t})),this.hideLeftNav()}},{key:"migrationInProgress",value:function(){this.layout.showChildView(Ur,Cr.createElement(uh,null)),this.hideLeftNav()}},{key:"renderLeftNav",value:function(e){this.setCurrentPlaylist(e),this.layout.showChildView(Mr,Cr.createElement(ah,{selectedPlaylistId:e}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return s.Radio.channel(p.ALERT).trigger("remove:alert",e)};this.layout.showChildView(zr,Cr.createElement(lp,{alerts:n,removeAlert:r}))}},{key:"setCurrentPlaylist",value:function(e){this.currentPlaylistId=e?e.toString():null}},{key:"hideLeftNav",value:function(){this.layout.hideLeftNav()}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:ka.Popup}}}},{key:"getPlaylistAppLink",value:function(e,t,n){var r=[e.toString()];return t&&r.push(Ja(t)),{application:we,action:n?le.SHARED_PLAYLIST:le.PLAYLIST,args:r}}},{key:"getVideoAppLink",value:function(e,t,n,r){var o=[e.toString(),t.toString()];return n&&o.push(Ja(n)),{application:we,action:r?le.PLAY_SHARED_PLAYLIST_VIDEO:le.PLAY_PLAYLIST_VIDEO,args:o}}},{key:"getPhrase",value:function(e){return io.encloseNamespace("playlists.app")(e)}},{key:"name",get:function(){return"Playlist Application"}},{key:"channelName",get:function(){return we}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:Ib}}}}],[{key:"router",get:function(){return Yb}}]),n}(r.Application);function Kb(e){return(Kb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wb(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 Xb(e,t,n){return(Xb="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=tg(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 Zb(e,t){return(Zb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qb(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 eg(this,n)}}function eg(e,t){return!t||"object"!==Kb(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 ng=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)}(a,e);var t,n,o,i=Qb(a);function a(){return Wb(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"initialize",value:function(){this.navHelper=hr.getClickView().Shared.Helpers}},{key:"hideLeftNav",value:function(){this.unsetRegion(Mr),this.navHelper.hideLeftNav(),this.leftNavVisible=!1}},{key:"showLeftNav",value:function(){this.navHelper.showLeftNav(),this.leftNavVisible=!0}},{key:"updateResponsiveHideLeftNav",value:function(){if(!this.options.hideLeftNav){var e=r.AppLinkHelper.getCurrentAppLink(),t=Ie[e.application];t&&t.indexOf(e.action)>-1?this.navHelper.hideLeftNavResponsive():this.showLeftNav()}}},{key:"showChildView",value:function(e,t){this.updateResponsiveHideLeftNav(),Xb(tg(a.prototype),"showChildView",this).apply(this,arguments)}}])&&Jb(t.prototype,n),o&&Jb(t,o),a}(Mi);function rg(e){return(rg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function og(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ig(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 ag(e,t){return(ag=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cg(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 ug(this,n)}}function ug(e,t){return!t||"object"!==rg(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 lg=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&&ag(e,t)}(i,e);var t,n,r,o=cg(i);function i(){return og(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"onShowAlert",value:function(e){if(this.layoutOptions.options.alertRegion){var t=e.ctor,n=e.collection,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,Cr.createElement(t,{alerts:r,removeAlert:function(e){return s.Radio.channel(p.ALERT).trigger("remove:alert",e)}}))}}}])&&ig(t.prototype,n),r&&ig(t,r),i}(ut);function fg(e){var t=e.backToName,n=e.appLink,r=e.color,o=t?io.getPhrase("shared.backButton","backTo",{backToName:t}):io.getPhrase("shared.backButton","back"),i="black"===r?"":"text-light";return Cr.createElement(jd,{appLink:n,className:"d-inline-flex align-items-center h5 mb-0 ".concat(i)},Cr.createElement(vv,{svgName:dv.ChevronLeft,size:mv.Medium}),Cr.createElement("span",{className:"ml-1"},o))}fg.defaultProps={color:"black"};var pg=n(65),dg=n.n(pg);function hg(e){if(!e.actions||!e.actions.length)return Cr.createElement(Cr.Fragment,null);var t="actions-dropdown-".concat(hv()),n="px-0 ".concat(dg.a.dropdownToggle);return e.dropdownToggleClassName&&(n+=" ".concat(e.dropdownToggleClassName)),Cr.createElement(yc.Dropdown,{className:e.className?e.className:"",alignRight:!0},Cr.createElement(yc.Dropdown.Toggle,{as:"button",type:"button",id:t,className:n},Cr.createElement(vv,{svgName:dv.More,size:mv.Small})),Cr.createElement(yc.Dropdown.Menu,null,e.actions.map((function(e,t){return Cr.createElement(jd,{key:t,appLink:e.appLink,className:(n=e.className,r="dropdown-item",n&&(r+=" ".concat(n)),r)},e.label);var n,r}))))}hg.defaultProps={dropdownToggleClassName:"btn btn-light"};var yg=n(48),mg=n.n(yg);function vg(e){var t=e.svgName,n=e.children,r=e.appLink,o=e.className,i=e.onClick,a="".concat(o," ").concat(mg.a.iconButton);a+=" ".concat(n?mg.a.iconWithText:mg.a.iconOnly);var c=Cr.createElement(vv,{svgName:t,className:mg.a.svg});return r?Cr.createElement(jd,{appLink:r,className:a,onClick:i},c,n):Cr.createElement("button",{className:a,onClick:i},c,n)}function bg(e){var t=e.actionOptions,n=t.onClick,r=t.appLink,o=t.svgName,i=t.tooltip,a="ml-2";return e.actionOptions.className&&(a+=" ".concat(e.actionOptions.className)),i?Cr.createElement(yv,{title:i},Cr.createElement(vg,{appLink:r,svgName:o,onClick:n,className:a},e.children)):o?Cr.createElement(vg,{onClick:n,appLink:r,svgName:o,className:a},e.children):r?Cr.createElement(jd,{onClick:n,appLink:r,className:a},e.children):Cr.createElement("button",{onClick:n,className:a},e.children)}function gg(e){var t=[],n=[];e.actions.forEach((function(e){e.button?t.push(e):n.push(e)}));var r="d-flex";return e.className&&(r+=" ".concat(e.className)),Cr.createElement("div",{className:r},Cr.createElement(Cr.Fragment,null,!!t.length&&Cr.createElement("span",{className:dg.a.buttonList},t.map((function(e,t){return Cr.createElement(bg,{key:t,actionOptions:e},e.label)}))),e.sortComponent?e.sortComponent:"",!!n.length&&Cr.createElement(hg,{actions:n,className:!!t.length&&"ml-2",dropdownToggleClassName:e.actionsDropdownClassName})))}var wg=n(231),Eg=n.n(wg),Sg=Cr.memo((function(e){var t=e.heading,n=e.banner,r=e.imageCdnUrl,o=e.actions,i=e.sortComponent,a=ad.createBannerUrl(n,{fallbackBaseUrl:r,fallbackCategoryName:t,type:Jp.Banners},{size:Wp.Large,resizeType:Xp.Cover});return Cr.createElement("div",{className:"banner",style:{backgroundImage:"url('".concat(a,"')")}},e.backButtonAppLink&&Cr.createElement("div",{className:"pt-3"},Cr.createElement(fg,{appLink:e.backButtonAppLink,backToName:e.backButtonText,color:"white"})),Cr.createElement("h1",{className:"text-white text-shadow position-absolute m-0 pb-3"},t),!!o&&Cr.createElement("div",{className:Eg.a.actionsContainer},Cr.createElement(gg,{actions:o,sortComponent:i})))}),(function(e,t){return e.actions===t.actions})),Og=function(){return Cr.createElement("div",{className:"partial-banner partial-loading-background"})};function xg(e){return function(e){if(Array.isArray(e))return kg(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 kg(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 kg(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 kg(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 Cg,jg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.numItems,n=void 0===t?5:t,r=e.minWidth,o=void 0===r?50:r,i=e.maxWidth,a=void 0===i?100:i,c=function(){return Math.max(Math.floor(Math.random()*a),o)};return xg(Array(n)).map((function(){return{width:"".concat(c(),"px")}}))},Ag=function(e){var t=e.breadcrumb,n=t.label,r=t.appLink,o=t.active;return Cr.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?Cr.createElement("strong",null,n):Cr.createElement(jd,{appLink:r},n))},_g=function(e){var t=e.breadcrumbs;return Cr.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return Cr.createElement(Ag,{key:t,breadcrumb:e})})))};function Lg(e){return function(e){if(Array.isArray(e))return Rg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ng(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 Pg(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)||Ng(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 Ng(e,t){if(e){if("string"==typeof e)return Rg(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)?Rg(e,t):void 0}}function Rg(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 Tg(e,t,n){return{label:e.name,appLink:t(e),active:n}}function Ig(e){var t=function(e,t){var n=e.currentItem,r=e.getItemAppLink,o=e.getParent,i=e.rootItem,a=e.data,c=e.subview,u=Pg(Object(Cr.useState)([]),2),s=u[0],l=u[1];Cr.useMemo((function(){if(!t&&!lr.isEmpty(a)){var e=a.map((function(e,t){return Tg(e,r,t+1===a.length)}));i&&e.unshift(i),l(e)}}),[a]),Cr.useMemo((function(){if(t&&Br(o)){var e=[Tg(n,r,!0)];for(n=o(n);n;)e.unshift(Tg(n,r)),n=o(n);return i&&e.unshift(i),l(e)}}),[n,o,r,i]);var f=Cr.useRef({label:c,appLink:null,active:!0}).current;if(c){s.includes(f)||l([].concat(Lg(s),[f]));var p=s.filter((function(e){return e.active&&e!==f}));p.length&&(fi(p).active=!1)}return s}(e,e.type===Cg.Dynamic);return Cr.createElement("nav",{"aria-label":"breadcrumb"},Cr.createElement(_g,{breadcrumbs:t}))}!function(e){e[e.Static=0]="Static",e[e.Dynamic=1]="Dynamic"}(Cg||(Cg={}));var Fg,Dg=jg({numItems:3}),Mg=function(){return Cr.createElement("nav",{"aria-label":"breadcrumb"},Cr.createElement("ol",{className:"breadcrumb m-0 p-0"},Dg.map((function(e,t){var n=e.width;return Cr.createElement("li",{key:t,className:"breadcrumb-item"},Cr.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:" "}}))}))))};!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(Fg||(Fg={}));var Ug,Vg=function(){return"/api/domain/v1/subjects?query=".concat(Ae.CLASSIFICATION)},zg=function(e,t){return"/api/domain/v1/subjects/".concat(e,"?query=").concat(Pe(t))},Hg=function(e){return"/api/domain/v1/subjects/".concat(e,"/path")},Bg=function(e){return"/api/domain/v1/subjects/".concat(e,"/children?query=").concat(Ae.CLASSIFICATION)},qg=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o="/api/domain/v1/subjects/".concat(e,"/").concat(t),i=[];n&&i.push("query=".concat(n)),r&&i.push("cursor=".concat(r));var a=i.join("&");return a&&(o+="?".concat(a)),o},$g=function(){return{url:"/api/domain/v1/subjects/presentation",key:"presentation",bootstrapName:"presentation"}},Yg=function(){return{url:Vg(),key:"classifications"}},Gg=function(e,t,n){return{url:zg(e,t),key:"classification:".concat(e),error:n}},Kg=function(e){return{url:Hg(e),key:"classification:".concat(e,":path")}},Wg=function(e){return{url:Bg(e),key:"classification:".concat(e,":children")}},Jg=function(e,t,n){if(t){var r="limit:100";n.length&&(r+=",".concat(_e(n)));var o="{".concat(r,"}").concat(Ae.VIDEO_COLLECTION)+",".concat(Le(t));return{url:qg(e,Fg.Videos,o),key:"classification:".concat(e,":").concat(Fg.Videos,":").concat(n.join(":"))}}},Xg=function(e,t,n){if(t){var r="limit:100,orderby:name";n.length&&(r+=",".concat(_e(n)));var o="{".concat(r,"}").concat(Ae.PLAYLIST_COLLECTION)+",".concat(Le(t));return{url:qg(e,Fg.Playlists,o),key:"classification:".concat(e,":").concat(Fg.Playlists,":").concat(n.join(":"))}}},Zg=function(e,t,n){if(t){var r="limit:100";n.length&&(r+=",".concat(_e(n)));var o="{".concat(r,"}").concat(Ae.SERIES)+",".concat(Le(t));return{url:qg(e,Fg.Series,o),key:"classification:".concat(e,":").concat(Fg.Series,":").concat(n.join(":"))}}};function Qg(e){return function(e){if(Array.isArray(e))return ew(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 ew(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 ew(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 ew(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 tw(e,t){return!!e&&(!(!e.application||!e.action)&&!!t())}function nw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Cr.useEffect((function(){var t=e.appLink,n=e.paramBuilder,o=e.isValid,i=e.appLinkOptions;tw(t,o)&&(t.params=n(),r.AppLinkHelper.trigger(t,i))}),Qg(t))}function rw(e,t){switch(t.type){case Ug.Init:return Object.assign(Object.assign({},e),t.payload.reduce((function(e,t){return e[t.masterId]=t,e}),{}));case Ug.Toggle:return Object.assign({},function(e,t){var n=t.audience,r=t.isSelected;if(!n)return e;var o=n.masterId,i=Object.assign({},e);return r?i[o]||(i[o]=n):delete i[o],i}(e,t.payload));default:return e}}function ow(e){return function(e){if(Array.isArray(e))return iw(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 iw(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 iw(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 iw(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.Init="init",e.Toggle="toggle"}(Ug||(Ug={}));var aw=/\s|\+/gi;function cw(e){return e?e.replace(aw,"").toLowerCase():""}function uw(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];Cr.useEffect((function(){if(lr.isObject(e)&&!lr.isEmpty(e)&&t&&t.length){var r=e.a;if(r){"string"==typeof r&&(r=[r]);var o=r.reduce((function(e,t){return e[cw(t)]=t,e}),{}),i=t.filter((function(e){return o[cw(e.name)]}));n({type:Ug.Init,payload:i})}}}),ow(r))}var sw=n(232),lw=n.n(sw);function fw(e){var t=e.audience,n=e.highlight,r=e.setAudience,o=e.isDisabled,i=e.extraClasses,a=function(e,t){return e?"badge-info text-light":t?"".concat(lw.a.disabled," text-muted"):"badge-light"}(n,o),c="badge-pill d-inline-block mr-1 ".concat(o?"cursor-default":"cursor-pointer"," ").concat(a," ").concat(i);return Cr.createElement("span",{className:c,onClick:function(){o||r(t,!n)},role:"checkbox","aria-checked":n},t.name.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.substring(1)})).join(" "))}function pw(e){var t=e.audiences,n=e.activeAudiences,r=e.setAudience,o=e.disabled;return t&&t.length?Cr.createElement("div",{className:"pt-3"},t.map((function(e){return Cr.createElement(fw,{key:e.masterId,audience:e,highlight:!!n&&!!n[e.masterId],setAudience:function(e,t){return r({type:Ug.Toggle,payload:{audience:e,isSelected:t}})},isDisabled:o})}))):Cr.createElement(Cr.Fragment,null)}fw.defaultProps={extraClasses:""};var dw=jg({numItems:6}),hw=function(){return Cr.createElement("div",{className:"pt-3"},dw.map((function(e,t){var n=e.width;return Cr.createElement("span",{key:t,className:"d-inline-block badge-pill partial-loading-background mr-1",dangerouslySetInnerHTML:{__html:" "},style:{width:n}})})))};function yw(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 mw(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 mw(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 mw(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 vw={className:"",delay:0};function bw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vw,t=Cr.useState(!1),n=yw(t,2),r=n[0],o=n[1],i=Cr.useRef(null),a=Hr((function(){var t,n;e.className&&(null===(n=null===(t=i.current)||void 0===t?void 0:t.classList)||void 0===n||n.add(e.className)),o(!0)}),e.delay,{leading:!1}),c=function(){var t,n;Br(a.cancel)&&a.cancel(),e.className&&(null===(n=null===(t=i.current)||void 0===t?void 0:t.classList)||void 0===n||n.remove(e.className)),o(!1)};return Cr.useLayoutEffect((function(){var e=i.current;if(e)return e.addEventListener("mouseenter",a),e.addEventListener("mouseleave",c),function(){e.removeEventListener("mouseenter",a),e.removeEventListener("mouseleave",c)}}),[i.current]),[i,r]}function gw(e){return bw({className:e,delay:275})}var ww=/([0-9]+)/gi,Ew=/(^\w+)/gi;var Sw=function(e,t){var n=e.map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},Ow=function(e){if(1===e.length)return e[0];var t=e.map((function(e){return e.name})).join(","),n=t.match(ww),r=t.match(Ew);if(!n||!r)return e[0];var o=function(e){var t,n,r,o,i=!1,a=[];for(e=e.sort((function(e,t){return e-t})),r=0;r<e.length;r++)o=r+1,i||(t=e[r]),n=e[o],e[r]+1===n?i=!0:i?(a.push("".concat(t," - ").concat(e[r])),i=!1):(a.push("".concat(e[r])),i=!1);return a}(n.map((function(e){return+e}))||[]),i=r[0];return{name:"".concat(i," ").concat(o.join(" , "))}},xw=function(e){var t=function(e){return e.length?(e.forEach((function(e){var r=+fi(e.name.match(ww));if(!t)return t=e,void(n=r);r>n&&(t=e)})),t):null;var t,n},n={},r=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void r.push(e);r.push(e),n[e.name]++;var o=r.splice(r.length-n[e.name]).sort((function(e,n){var r=t(e.subjectPresentationAudiences.data),o=t(n.subjectPresentationAudiences.data);return!r&&o?1:o?r.name.localeCompare(o.name):-1}));r=r.concat(o)})),r},kw=n(233),Cw=n.n(kw);function jw(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 Aw(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 Aw(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 Aw(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 _w,Lw=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},Pw=Cr.memo((function(e){var t=e.forceLoad,n=Lw(e,["forceLoad"]),r=jw(np.useInView({triggerOnce:!0}),2),o=r[0],i=r[1];if(void 0===window.IntersectionObserver)return Cr.createElement("img",Object.assign({alt:""},n));var a=n.src,c=Lw(n,["src"]),u=Object.assign(Object.assign({alt:""},c),i||t?{src:a}:{});return t||(u.ref=o),Cr.createElement("img",Object.assign({className:Cw.a.image},u))}));!function(e){e.Small="small",e.Medium="medium",e.Large="large",e.Raw="raw"}(_w||(_w={}));var Nw,Rw=n(42),Tw=n.n(Rw);function Iw(e){var t="thumbnail ".concat(Tw.a.thumbnail),n="";return e.aspectRatio===Nw.SixteenByNine&&(n=Tw.a.sixteenByNine),e.aspectRatio===Nw.NineBySixteen&&(n=Tw.a.nineBySixteen),e.aspectRatio===Nw.OneByOne&&(n=Tw.a.oneByOne),e.aspectRatio===Nw.TwoByThree&&(n=Tw.a.twoByThree),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function Fw(e){var t=e.data,n=e.size,r=e.appLink,o=e.preload,i="";"string"==typeof t?i=t:lr.isObject(t)&&(i=t.url);var a=i&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_w.Small;return"".concat(e,"?size=").concat(t)}(i,n);return Cr.createElement("div",{className:Iw(e)},Cr.createElement(jd,{appLink:r},e.children,a&&Cr.createElement(Pw,{src:a,forceLoad:o})))}!function(e){e[e.SixteenByNine=0]="SixteenByNine",e[e.OneByOne=1]="OneByOne",e[e.TwoByThree=2]="TwoByThree",e[e.NineBySixteen=3]="NineBySixteen"}(Nw||(Nw={}));var Dw,Mw,Uw=n(16),Vw=n.n(Uw);function zw(e){var t=e.type,n=e.mediaType,r=e.extraClasses,o=(pp(hp).getImageUrls(),function(e){return e===Dw.Video?Vw.a.videoFallback:e===Dw.Playlist?Vw.a.playlistFallback:e===Dw.Series||e===Dw.TallSubject?Vw.a.posterFallback:e===Dw.Subject?Vw.a.subjectFallback:""}(t)),i=function(e,t){return e===Dw.Video?dv.Play:e===Dw.Playlist?dv.Playlist:e===Dw.Series?dv.Series:e===Dw.Subject||e===Dw.TallSubject?dv.Subject:""}(t),a="".concat(function(e,t){return t===Dw.Subject?Vw.a.subjectFallbackContainer:e===Mw.Svg?Vw.a.svgFallbackContainer:Vw.a.baseFallbackContainer}(n,t));return r&&(a+=" ".concat(e.extraClasses)),Cr.createElement("div",{className:a},n===Mw.Svg?Cr.createElement(vv,{svgName:i,className:o,tagName:"div"}):Cr.createElement("div",{className:Vw.a.fallbackThumbnailImage,style:{backgroundImage:"url('".concat(i,"')")}}))}!function(e){e[e.Video=0]="Video",e[e.Playlist=1]="Playlist",e[e.Series=2]="Series",e[e.Subject=3]="Subject",e[e.TallSubject=4]="TallSubject"}(Dw||(Dw={})),function(e){e[e.Svg=0]="Svg",e[e.Image=1]="Image"}(Mw||(Mw={})),zw.defaultProps={mediaType:Mw.Svg};n(234);function Hw(e){return e.audience?Cr.createElement("div",{className:"border rounded-pill d-inline-block px-2 mt-1 ".concat("border-"+e.border)},e.audience.name):Cr.createElement(Cr.Fragment,null)}var Bw,qw=function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-success";case e<80:return"bg-info";case e<96:return"bg-danger";case e<128:return"bg-pink";case e>=128:return"bg-warning";default:return""}}(e)},$w=n(29),Yw=n.n($w);function Gw(e){var t=e.type,n=e.data;if(!function(e,t){return e===Bw.Rating?t&&!!t.value:!!t}(t,n))return Cr.createElement(Cr.Fragment,null);var r=function(e,t){var n="";return e===Bw.Duration&&(n=Yw.a.duration),e===Bw.Interactive&&(n=Yw.a.interactive),e===Bw.Rating&&(n="".concat(Yw.a.rating," ").concat(qw(t.value))),e===Bw.ProductionYear&&(n=Yw.a.productionYear),"".concat("badge"," ").concat(n)}(t,n),o=function(e,t){return e===Bw.Interactive?"Interactive":e===Bw.Duration?Nd(t):e===Bw.Rating?t.code:e===Bw.ProductionYear?t:void 0}(t,n),i=function(e,t){return e===Bw.Rating?{title:t.name,placement:"top"}:null}(t,n);return i?Cr.createElement(yc.OverlayTrigger,{placement:i.placement,overlay:Cr.createElement(yc.Tooltip,{id:i.title},i.title)},Cr.createElement("span",{className:r},o)):Cr.createElement("span",{className:r},o)}!function(e){e.Duration="duration",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year"}(Bw||(Bw={}));var Kw=n(20),Ww=n.n(Kw);function Jw(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 Xw(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 Xw(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 Xw(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 Zw(e){var t=e.data,n=e.appLink,r=e.preloadImage,o=Object.assign(Object.assign({},n),{args:[t.id,Ja(t.name)]}),i=t&&t.subjectPresentationAudiences&&t.subjectPresentationAudiences.data||[],a=Sw(i,e.audiences),c=Ow(a),u=Jw(gw(Ww.a.hoverActive),2),s=u[0],l=u[1];return Cr.createElement(jd,{key:t.id,appLink:o,className:"position-relative p-1 flex-shrink-0 ".concat(Ww.a.width)},Cr.createElement("div",{ref:s},l&&Cr.createElement("div",{className:"p-3 text-white text-center ".concat(Ww.a.mask)},Cr.createElement("h3",{className:"h4"},t.name),Cr.createElement("p",null,t.description)),Cr.createElement(Fw,{data:t.tallPoster,aspectRatio:Nw.NineBySixteen,preload:r,size:_w.Large},Cr.createElement(zw,{type:Dw.Series}),Cr.createElement("div",{className:"position-absolute text-white ".concat(Ww.a.labelContainer)},i&&i.length?Cr.createElement(Hw,{audience:c,border:"white"}):Cr.createElement(Gw,{type:Bw.Rating,data:t.rating})))))}function Qw(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 eE=function(e){return function(e){if(Array.isArray(e))return Qw(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 Qw(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 Qw(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.")}()}(Array(4)),tE=function(){return Cr.createElement("div",{className:"pb-3"},Cr.createElement("div",{className:"partial-loading-background ".concat(Ww.a.partialLoadingHeading),dangerouslySetInnerHTML:{__html:" "}}),Cr.createElement("div",{className:"row"},eE.map((function(e,t){return Cr.createElement("div",{key:t,className:"col-6 col-sm-4 col-lg-3 "},Cr.createElement("div",{className:"py-2"},Cr.createElement("div",{className:"".concat(Ww.a.partialLoading," partial-loading-background")})))}))))},nE=function(e){return function(t){return{application:Ee,action:fe.CLASSIFICATION,args:t?[t.id,Ja(t.name)]:[],params:e||{}}}},rE=function(e){return{application:Ee,action:fe.CLASSIFICATION_SERIES,args:e?[e.id,Ja(e.name)]:[]}},oE=function(e){return function(t){return{application:Ee,action:fe.CLASSIFICATION_PLAYLIST,args:[e.id,t.id,Ja(t.name)]}}},iE=function(){return{application:xe,action:he.HOME}},aE=n(235),cE=n.n(aE);function uE(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 sE(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 sE(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 sE(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 lE,fE=io.encloseNamespace("subjects.classificationSeriesList");function pE(e){var t,n,r,i,a,c=e.id,u=e.queryParams,s=uE(Cr.useReducer(rw,{}),2),l=s[0],f=s[1],p=o.useBasicFetch(Oi),d=o.useBasicFetch(hb),h=o.useBasicFetch((null===(t=p.data)||void 0===t?void 0:t.id)?Gg(c,null===(n=p.data)||void 0===n?void 0:n.id):null),y=o.useBasicFetch($g()),m=o.useBasicFetch(Kg(c)),v=o.useBasicFetch(jb()),b=lr.keys(l),g=lr.values(l),w=null===(i=null===(r=y)||void 0===r?void 0:r.data)||void 0===i?void 0:i.id,E=Zg(c,w,b),S=o.useGetResponse(E&&E.key),O=o.useGetFetch(E);Cr.useEffect((function(){w&&O()}),[w]);var x=nE();nw({appLink:rE(h.data),paramBuilder:function(){return{a:g.map((function(e){return e.name}))}},isValid:function(){var e;return!!(null===(e=h.data)||void 0===e?void 0:e.id)},appLinkOptions:{replace:!0}},[g.length]);var k=!(!v.data||!v.data.length);uw(u,v.data,f,[k]);var C=!!m.data,j=!!v.data;return Cr.createElement("div",{className:"bg-white"},h.data&&d.data?Cr.createElement(Sg,{heading:fE("heading",{classification:h.data.name}),banner:h.data.banner,imageCdnUrl:d.data.imageCdnUrl}):Cr.createElement(Og,null),Cr.createElement("div",{className:"px-3"},Cr.createElement("div",{className:"py-3 mb-3 border-bottom"},C?Cr.createElement(Ig,{currentItem:h.data,type:Cg.Static,getItemAppLink:x,data:m.data,rootItem:{label:fE("dashboard"),appLink:iE()},subview:fE("subview")}):Cr.createElement(Mg,null),j?Cr.createElement(pw,{audiences:v.data,activeAudiences:l,setAudience:f}):Cr.createElement(hw,null)),(null===(a=S.data)||void 0===a?void 0:a.data)&&h.data?Cr.createElement("div",{className:"mx-n2"},S.data.data.map((function(e){return Cr.createElement("div",{className:"d-inline-flex position-relative px-2 mb-2 ".concat(cE.a.seriesItem)},Cr.createElement(Zw,{data:e,appLink:rE(h.data),audiences:v.data}))}))):Cr.createElement(tE,null)))}!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero"}(lE||(lE={}));var dE,hE=function(){return"/api/domain/v1/subjects/classifications/following"},yE=function(e){return nd.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},mE={follow:function(e,t,n){return{url:hE(),key:"follow:".concat(e.join(",")),type:fo.POST,data:e,success:t,error:n,invalidationKeys:e.map((function(e){return"classification:".concat(e)}))}},unfollow:function(e,t,n){return{url:yE(e),key:"unfollow:".concat(e.join(",")),type:fo.DELETE,success:t,error:n,invalidationKeys:e.map((function(e){return"classification:".concat(e)}))}}};!function(e){e.Videos="videos",e.Series="series",e.Subjects="subjects",e.Playlists="playlists",e.UserChannels="user channels"}(dE||(dE={}));var vE=n(41),bE=n.n(vE);function gE(e){return function(e){if(Array.isArray(e))return wE(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 wE(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 wE(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 wE(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 EE(e){var t=gE(Array(e.numItems)),n=e.itemClassName||"";return Cr.createElement(Cr.Fragment,null,e.showHeading&&Cr.createElement("div",{className:"".concat(bE.a.partialHeading," partial-loading-background")}),Cr.createElement(yc.Row,null,t.map((function(e,t){return Cr.createElement(yc.Col,{key:t,xs:6,sm:4,md:3,lg:2,className:n},Cr.createElement("div",{className:"py-2"},Cr.createElement("div",{className:"".concat(bE.a.basePlaylistItem," partial-loading-background")})))}))))}function SE(e){var t=ad.createUrl(e.data.cover&&e.data.cover.url,{size:Wp.Medium,resizeType:Xp.Cover}),n=e.data.subjectPresentationAudiences&&e.data.subjectPresentationAudiences.data,r=Sw(n,e.presentationAudiences),o=Ow(r),i=!!e.showCount&&!!e.data.videos&&e.data.videos.count;return Cr.createElement(jd,{appLink:e.appLink},Cr.createElement(Fw,{data:t,className:bE.a.playlistItem},Cr.createElement(zw,{type:Dw.Playlist}),Cr.createElement("div",{className:"text-white ".concat(bE.a.playlistMetadata)},Number.isInteger(i)&&Cr.createElement(Dp,{namespace:"shared.playlistItem",phrase:"videos",options:{smartCount:i}}),Cr.createElement("h5",{className:"text-shadow mb-0"},e.data.name),!!n&&!!n.length&&Cr.createElement(Hw,{audience:o,border:"white"}))))}function OE(e){return Cr.createElement(yc.Row,null,e.playlists.map((function(t){return Cr.createElement(yc.Col,{key:t.id,xs:6,sm:4,lg:3,className:"mb-3 ".concat(e.itemClassName?e.itemClassName:"")},Cr.createElement(SE,{key:t.id,data:t,appLink:e.getPlaylistAppLink(t),presentationAudiences:e.presentationAudiences,showCount:e.showCount}))})))}function xE(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 kE(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 kE(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 kE(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}EE.defaultProps={numItems:8};var CE=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};function jE(e){var t=e.showSpinner,n=e.children,r=CE(e,["showSpinner","children"]),o=Cr.useRef(),i=xE(Cr.useState({}),2),a=i[0],c=i[1];return Cr.useEffect((function(){var e=a.width,t=a.height;if(!e||!t){var n=o.current,r=n.offsetHeight,i=n.offsetWidth;r&&i&&c({width:i,height:r})}})),Cr.useEffect((function(){var e=a.width,t=a.height;if(e&&t){var n=o.current;n.style.width="".concat(e+1,"px"),n.style.height="".concat(t+1,"px")}}),[a]),Cr.createElement(yc.Button,Object.assign({ref:o,disabled:t},r),t?Cr.createElement(yc.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}var AE=n(68),_E=n.n(AE);function LE(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 PE(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 PE(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 PE(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 NE(e){var t,n,r=LE(Cr.useState(!1),2),o=r[0],i=r[1],a=LE(Cr.useState(!1),2),c=a[0],u=a[1];Cr.useEffect((function(){var t,n;i(!!(null===(n=null===(t=e.data.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)),u(!1)}),[null===(n=null===(t=e.data.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length]);var s=ad.createBannerUrl(e.data.banner,{fallbackBaseUrl:e.imageCdnUrl,fallbackCategoryName:e.data.name,type:Jp.Banners},{size:Wp.Large}),l={variant:o?"outline-dark":"dark",showSpinner:c,onClick:function(){u(!0),e.onToggleFollow()}};return Cr.createElement(Fp.Provider,{value:"subjects.comingSoon"},Cr.createElement("div",{className:"d-flex flex-column align-items-center text-center py-3"},Cr.createElement("h2",{className:"display-4 font-weight-bold mb-3"},Cr.createElement(Dp,{phrase:"comingSoon"})),Cr.createElement("p",{className:"w-33"},Cr.createElement(Dp,{phrase:"info"})),Cr.createElement(jE,Object.assign({},l),Cr.createElement(vv,{svgName:o?dv.Check:dv.Bell,className:"align-middle d-inline-block svg-container"}),Cr.createElement("span",{className:"align-middle pl-1"},Cr.createElement(Dp,{phrase:"remindMe"})))),Cr.createElement("div",{className:_E.a.footerImageContainer},Cr.createElement("div",{className:"".concat(_E.a.footerImage," banner position-relative"),style:{backgroundImage:"url('".concat(s,"')")}},Cr.createElement(vv,{className:_E.a.wave,size:mv.ExtraLarge,svgName:dv.WhiteWave}))))}var RE=n(9),TE=n.n(RE),IE=function(e){var t=e.name,n=e.multiline,r="".concat(TE.a.comingSoonPanel," px-3 text-center mt-3"),o="".concat(TE.a.name," h6 mb-0 pb-1");return n?o+=" ".concat(TE.a.clamped," clamp-2"):(r+=" text-nowrap",o+=" text-truncate"),Cr.createElement("div",{className:r},Cr.createElement("small",{className:"text-muted"},Cr.createElement(Dp,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),Cr.createElement("p",{className:o},t))},FE=function(e){var t=e.name,n=e.multiline,r="px-3 text-center d-flex align-items-center",o="".concat(TE.a.name," h6 mb-0 pb-1");return n?o+=" ".concat(TE.a.clamped," clamp-2 text-left"):(r+=" text-nowrap text-truncate",o+=" text-truncate"),Cr.createElement("div",{className:r},Cr.createElement("p",{className:o},t))};var DE=Cr.memo((function(e){var t,n=Object.assign(Object.assign({},e.appLink),{args:[e.data.id,Ja(e.data.name)]}),r=ad.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:Wp.Small});return Cr.createElement(jd,{appLink:n},Cr.createElement("div",{className:"border d-flex position-relative ".concat(TE.a.widgetItem),id:e.data.id},Cr.createElement("div",{className:"".concat(TE.a.imagePanel," ").concat(e.isLarge?TE.a.large:""),style:{backgroundImage:"url('".concat(r,"')")}}),e.data.comingSoon?Cr.createElement(IE,{name:e.data.name,multiline:e.isLarge}):Cr.createElement(FE,{name:e.data.name,multiline:e.isLarge}),Cr.createElement(zw,{type:Dw.Subject,extraClasses:e.isLarge?TE.a.large:""})))})),ME=n(236),UE=n.n(ME);function VE(e){var t=e.classification,n=e.appLink;return Cr.createElement("div",{className:"d-inline-flex position-relative px-2 mb-2 ".concat(UE.a.classificationItem)},Cr.createElement(DE,{data:t,appLink:n,isLarge:!0}))}function zE(e){return Cr.createElement(Cr.Fragment,null,e.classifications.map((function(t){return Cr.createElement(VE,{key:t.id,classification:t,appLink:e.getItemAppLink(t)})})))}var HE=function(){var e=pp(Xr.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:Za.Warning,heading:Qa.Warning,message:t})}}};function BE(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 qE(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 qE(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 qE(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 $E=io.encloseNamespace("shared.favouriteButton");function YE(e){var t=HE(),n="boolean"==typeof e.video.isFavourited,r=!!e.video.isFavourited,o=BE(Cr.useState(r),2),i=o[0],a=o[1];Cr.useEffect((function(){a(r)}),[r]);var c="cursor-pointer text".concat(i?"-danger":"-dark");return e.className&&(c+=" ".concat(e.className)),n?Cr.createElement("div",{className:c,onClick:function(){var n=!i;a(n),e.setFavourite(e.video.id,n,(function(){t.error($E(n?"favouriteError":"unfavouriteError")),a(!n)}))}},Cr.createElement(vv,{svgName:i?dv.Heart:dv.HeartOutline,size:mv.Small})):Cr.createElement(Cr.Fragment,null)}var GE=n(69),KE=n.n(GE);function WE(e){var t=e.video,n=t.season;if(!t.episodeNumber||!n)return Cr.createElement(Cr.Fragment,null);var r=Ad(n.number,2),o=Ad(t.episodeNumber,2);return Cr.createElement("span",{className:"d-inline-block ".concat(KE.a.seasonEpisodeContainer)}," ",!!r&&"S".concat(r," • "),"E",o)}function JE(e){var t=e.appLink,n=e.video.series,r=e.className;if(!n||!n.id)return Cr.createElement(Cr.Fragment,null);var o=t&&Object.assign(Object.assign({},t),{args:[n.id,Ja(n.name)]});return o?Cr.createElement(jd,{appLink:o,className:"text-uppercase ".concat(KE.a.appLink," ").concat(r)},n.name,Cr.createElement(WE,Object.assign({},e))):Cr.createElement("span",{className:"text-uppercase ".concat(KE.a.appLink," ").concat(r)},n.name,Cr.createElement(WE,Object.assign({},e)))}function XE(e){var t="d-flex ".concat(Yw.a.badgeList);return e.className&&(t+=" ".concat(e.className)),Cr.createElement("div",{className:t},e.children)}var ZE,QE=n(22),eS=n.n(QE);function tS(e){var t,n=e.video,r=e.appLink,o=e.size,i=e.setFavourite,a=e.preload,c=e.hovering;return jr.a.createElement("div",{className:"position-relative rounded overflow-hidden"},!!Br(i)&&jr.a.createElement("div",{className:eS.a.favouriteContainer},jr.a.createElement(YE,{setFavourite:i,video:n,className:"rounded-circle p-1 ".concat(eS.a.favouriteButton)})),jr.a.createElement(Fw,{data:n.thumbnail,appLink:r,aspectRatio:Nw.SixteenByNine,size:o,preload:a,className:eS.a.gradient},c&&jr.a.createElement(vv,{className:eS.a.playIcon,svgName:dv.PlayCircle}),jr.a.createElement(zw,{type:Dw.Video}),jr.a.createElement("div",{className:eS.a.overlayContainer},jr.a.createElement("div",{className:"".concat(eS.a.title," ").concat(c?eS.a.downScale:"")},!!(null===(t=e.video.series)||void 0===t?void 0:t.id)&&jr.a.createElement(JE,{className:"text-shadow clamp-1",video:n,appLink:null}),jr.a.createElement("span",{className:"h6 text-reset text-shadow clamp-1 mb-0"},n.name),c&&jr.a.createElement(XE,{className:"align-items-center mb-n1"},jr.a.createElement(Gw,{type:Bw.Duration,data:n.duration}),jr.a.createElement(Gw,{type:Bw.Rating,data:n.rating}),jr.a.createElement("span",{className:"badge p-0"},jr.a.createElement(vv,{svgName:dv.CloseCaptionBadge})))))))}!function(e){e[e.Below=1]="Below",e[e.Overlay=2]="Overlay",e[e.Independent=3]="Independent"}(ZE||(ZE={}));var nS,rS=n(49),oS=n.n(rS);function iS(e){var t=e.type,n=function(e){return e===nS.Video?oS.a.video:e===nS.Playlist?oS.a.playlist:""}(t),r=function(e){return e===nS.Video?dv.PlayCircle:e===nS.Playlist?dv.AddToPlaylists:""}(t);return Cr.createElement("div",{className:oS.a.maskContainer},Cr.createElement("div",{className:oS.a.mask}),Cr.createElement(vv,{svgName:r,className:n}))}!function(e){e[e.Video=0]="Video",e[e.Playlist=1]="Playlist"}(nS||(nS={}));var aS=n(23),cS=n.n(aS);function uS(e){var t,n=e.video,r=e.seriesAppLink,o=e.textPosition,i=e.appLink,a=o===ZE.Overlay,c=a?cS.a.titleOverlay:cS.a.titleBelow;return jr.a.createElement("div",{className:c},!!(null===(t=e.video.series)||void 0===t?void 0:t.id)&&jr.a.createElement(JE,{className:a?"text-shadow clamp-1":"clamp-2",video:n,appLink:a?null:r}),a?jr.a.createElement("span",{className:"h6 text-reset text-shadow clamp-1 mb-0"},n.name):jr.a.createElement(jd,{className:"h6 text-reset clamp-2 mb-0",appLink:i},n.name))}function sS(e){var t=e.video,n=e.appLink,r=e.textPosition,o=e.size,i=e.setFavourite,a=e.preload,c="position-relative";return r===ZE.Overlay&&(c+=" rounded overflow-hidden"),jr.a.createElement("div",{className:c},!!Br(i)&&jr.a.createElement("div",{className:cS.a.favouriteContainer},jr.a.createElement(YE,{setFavourite:i,video:t,className:"rounded-circle p-1 ".concat(cS.a.favouriteButton)})),jr.a.createElement(Fw,{data:t.thumbnail,appLink:n,aspectRatio:Nw.SixteenByNine,size:o,preload:a,className:r===ZE.Overlay?cS.a.gradient:""},jr.a.createElement(iS,{type:nS.Video}),jr.a.createElement(zw,{type:Dw.Video}),jr.a.createElement("div",{className:cS.a.overlayContainer},r===ZE.Overlay&&jr.a.createElement(uS,Object.assign({},e)),jr.a.createElement(XE,{className:cS.a.badgeContainer},jr.a.createElement(Gw,{type:Bw.Duration,data:t.duration})))),r===ZE.Below&&jr.a.createElement(uS,Object.assign({},e)))}function lS(e){return"expandable"===e.type?Cr.createElement(tS,Object.assign({},e)):Cr.createElement(sS,Object.assign({},e))}var fS=n(66),pS=n.n(fS);function dS(e){var t=e.tag,n="".concat(pS.a.tagItem," px-2 my-1 mr-1 cursor-pointer badge-light");return Cr.createElement("span",{className:n},t.name)}function hS(e){var t=e.tags;return t&&t.data?Cr.createElement("div",{className:pS.a.tagList},t.data.map((function(e){return Cr.createElement(dS,{key:e.id,tag:e})}))):Cr.createElement(Cr.Fragment,null)}var yS,mS=n(24),vS=n.n(mS),bS=function(e){return!!(e&&e.data&&e.data.length)};function gS(e){var t=e.video,n=e.presentationAudiences,r=e.videoAppLink,o=e.seriesAppLink;if(!t)return Cr.createElement(Cr.Fragment,null);var i=Sw(t.subjectPresentationAudiences.data,n),a=Ow(i),c=t.series&&!!t.series.id;return Cr.createElement(Fp.Provider,{value:"subjects.heroVideo"},Cr.createElement(yc.Row,{className:"pb-3"},Cr.createElement(yc.Col,{xs:6,className:"p-1"},Cr.createElement(lS,{video:t,appLink:r,seriesAppLink:c?o:null,size:_w.Medium,textPosition:ZE.Independent,type:"static"})),Cr.createElement(yc.Col,{xs:6,className:"p-1"},c&&Cr.createElement(JE,{video:t,appLink:o,className:"text-reset"}),Cr.createElement(jd,{appLink:r},Cr.createElement("h4",null,t.name)),Cr.createElement(XE,{className:"pb-1"},Cr.createElement(Gw,{type:Bw.Interactive,data:t.interactives}),Cr.createElement(Gw,{type:Bw.Rating,data:t.rating}),Cr.createElement(Gw,{type:Bw.ProductionYear,data:t.productionYear})),Cr.createElement("p",{className:"mb-1"},t.description),Cr.createElement(Hw,{audience:a,border:"dark"}),e.showExtraMetadata&&Cr.createElement(yc.Row,{className:"pt-2"},Cr.createElement(yc.Col,{xs:2},bS(t.resources)&&Cr.createElement("p",{className:"font-weight-bold"},Cr.createElement(Dp,{phrase:"resourcesHeading"})),bS(t.links)&&Cr.createElement("p",{className:"font-weight-bold"},Cr.createElement(Dp,{phrase:"linksHeading"})),bS(t.clips)&&Cr.createElement("p",{className:"font-weight-bold"},Cr.createElement(Dp,{phrase:"clipsHeading"})),bS(t.tags)&&Cr.createElement("p",{className:"font-weight-bold"},Cr.createElement(Dp,{phrase:"tagsHeading"}))),Cr.createElement(yc.Col,{xs:10},bS(t.resources)&&Cr.createElement("p",null,Cr.createElement(Dp,{phrase:"resources",options:{smartCount:t.resources.data.length}})),bS(t.links)&&Cr.createElement("p",null,Cr.createElement(Dp,{phrase:"links",options:{smartCount:t.links.data.length}})),bS(t.clips)&&Cr.createElement("p",null,Cr.createElement(Dp,{phrase:"clips",options:{smartCount:t.clips.data.length}})),bS(t.tags)&&Cr.createElement(hS,{tags:t.tags}))))))}function wS(){return Cr.createElement("div",{className:"row pb-3"},Cr.createElement("div",{className:"col-6 p1"},Cr.createElement("div",{className:"".concat(vS.a.partialHeroThumbnail," partial-loading-background")})),Cr.createElement("div",{className:"col-6 p1"},Cr.createElement("div",{className:"partial-loading-background mb-1 ".concat(vS.a.partialSeriesText)}),Cr.createElement("div",{className:"partial-loading-background my-1 ".concat(vS.a.partialVideoTitleText)}),Cr.createElement("div",{className:"d-flex"},Cr.createElement("div",{className:"partial-loading-background my-1 mr-1 ".concat(vS.a.partialBadge)}),Cr.createElement("div",{className:"partial-loading-background my-1 ml-1 ".concat(vS.a.partialBadge)})),Cr.createElement("div",{className:"partial-loading-background my-1 ".concat(vS.a.partialDescription)}),Cr.createElement("div",{className:"partial-loading-background mt-2 ".concat(vS.a.partialSubject)})))}!function(e){e.Percentage="%",e.Pixels="px"}(yS||(yS={}));var ES,SS=n(17),OS=n.n(SS);!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(ES||(ES={}));var xS=Cr.memo((function(e){var t,n,r=e.direction===ES.Left,o=r?dv.ChevronLeft:dv.ChevronRight,i=(e.contents,t=r,n=OS.a.topPos,n+=t?" "+OS.a.left:" "+OS.a.right);return e.hide?Cr.createElement(Cr.Fragment,null):Cr.createElement(Cr.Fragment,null,Cr.createElement("div",{role:"button",className:"".concat(i," ").concat(OS.a.button),onClick:e.onClick},Cr.createElement(vv,{svgName:o,size:mv.Medium,className:"svg-container d-inline-block"})),e.useGradientBackdrop&&Cr.createElement("div",{className:r?OS.a.gradientLeft:OS.a.gradientRight}),Cr.createElement("div",{role:"button",onClick:e.onClick,className:r?OS.a.extendedClickableAreaLeft:OS.a.extendedClickableAreaRight}))}),(function(e,t){return e.hide===t.hide}));function kS(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 CS(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 CS(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 CS(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 jS={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 5.0/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 AS(e,t,n){var r=kS(t.exec(n)||[],3),o=(r[0],r[1],r[2]);return o||(o="Unknown"),{browser:e,version:o}}function _S(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 LS=function(){var e=window.navigator.userAgent;return jS.linux.test(e)?_S("Linux",null,e):jS.unix.test(e)?_S("Unix",null,e):jS.mac.test(e)?_S("Macintosh",jS.osxVersion,e):jS.windows.test(e)?function(e,t){var n={os:e};return jS.win2000.test(t)&&(n.version="2000"),jS.winXP.test(t)&&(n.version="XP"),jS.winVista.test(t)&&(n.version="Vista"),jS.win7.test(t)&&(n.version="7"),jS.win8.test(t)&&(n.version="8"),jS.win81.test(t)&&(n.version="8.1"),jS.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):jS.iphone.test(e)||jS.ipad.test(e)?_S("iOS",jS.iosVersion,e):jS.android.test(e)?_S("Android",jS.androidVersion,e):jS.blackberry.test(e)?_S("Android",jS.blackberryVersion,e):jS.windowsPhone.test(e)?_S("Android",jS.windowsPhoneVersion,e):{os:"Unknown",version:"Unknown"}},PS=function(){var e=window.navigator.userAgent;return jS.chrome.test(e)?AS("Chrome",jS.generalVersion,e):jS.firefox.test(e)?AS("Firefox",jS.generalVersion,e):jS.safari.test(e)?AS("Safari",jS.generalVersion,e):jS.ie.test(e)?AS("Internet Explorer",jS.ieVersion,e):jS.edge.test(e)?AS("Edge",jS.edgeVersion,e):jS.opera.test(e)?AS("Opera",jS.operaVersion,e):{browser:"Unknown",version:"Unknown"}},NS=function(){return!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)},RS=new Image;RS.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var TS=function(e){e.dataTransfer.setDragImage(RS,0,0)},IS=NS();var FS,DS=Cr.forwardRef((function(e,t){var n,r,o,i,a=e.children,c=e.positionType,u=e.onDrag,s=e.onDragEnd,l=e.onTouchMove,f=e.onTouchEnd,p=e.percentageDragged,d=e.position,h=void 0===d?0:d;return Cr.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100",style:(r=h,o=c,i=p,o===yS.Percentage&&i&&(r-=i),{transform:"translate3d(".concat(r).concat(o,", 0px, 0px)"),transition:"transform 500ms ease-in-out 100ms"}),ref:t},(n={},u&&s&&(n.draggable=!0,n.onDrag=u,n.onDragEnd=s,n.onDragStart=TS,n.onDragOver=function(e){return e.preventDefault()}),l&&f&&IS&&(n.onTouchMoveCapture=l,n.onTouchEndCapture=f),n)),a)}));function MS(){var e=Sv(bv.XS),t=Sv(bv.SM),n=Sv(bv.MD),r=Sv(bv.LG),o=Sv(bv.XL),i=Sv(bv.XXL),a=bv.LG;return e&&(a=bv.XS),t&&(a=bv.SM),n&&(a=bv.MD),r&&(a=bv.LG),o&&(a=bv.XL),i&&(a=bv.XXL),a}function US(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 VS(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 VS(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 VS(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 zS(e){var t=e&&!(void 0===window.IntersectionObserver),n=US(np.useInView({triggerOnce:!0}),2),r=n[0],o=n[1];return t||(o=!0),{ref:r,inView:o}}!function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag"}(FS||(FS={}));var HS=n(21),BS=n.n(HS);var qS=function(e){var t=e.colSize;return Cr.createElement("div",{className:"col-".concat(t)},Cr.createElement("div",{className:"".concat(BS.a.partialItem," mx-1 partial-loading-background")}))};function $S(e){for(var t,n=(t=MS())===bv.XS?{itemCount:1,colSize:12}:t===bv.SM?{itemCount:2,colSize:6}:t===bv.MD?{itemCount:3,colSize:4}:{itemCount:4,colSize:3},r=n.itemCount,o=n.colSize,i=[],a=0;a<r;a++)i.push(Cr.createElement(qS,{key:a,colSize:o}));return Cr.createElement("div",{className:"widget pb-3"},Cr.createElement("div",{className:"".concat(BS.a.partialHeading," mx-1 mb-1 partial-loading-background")}),Cr.createElement("div",{className:"".concat(BS.a.partialDescription," mx-1 my-1 partial-loading-background")}),Cr.createElement("div",{className:"".concat(BS.a.slidingContainer," row")},i))}function YS(e){for(var t=e.offset,n=e.viewableItems,r=e.collection,o=t,i=[],a=0;a<o+n;a++)i.push(a);return function(e){var t=r.indexOf(e);return i.includes(t)}}function GS(e,t){if(e)return Object.assign(Object.assign({},e),{args:e.args||[t.id,Ja(t.name)]})}function KS(e){switch(e){case dE.Playlists:return WS;case dE.Videos:return JS;case dE.Subjects:return XS;case dE.UserChannels:return ZS;case dE.Series:default:return QS}}function WS(e,t,n){var r=5;return e===bv.XS?r=2:e===bv.SM?r=3:e===bv.MD&&(r=4),n<r&&(r=n),r}function JS(e,t,n){var r=4;return e===bv.XS?r=2:e===bv.SM?r=3:e===bv.MD?r=4:e!==bv.LG&&e!==bv.XL&&e!==bv.XXL||(r=t===lE.LargeRow||n<4?3:4),n<r&&(r=n),r}function XS(e,t,n){var r=6;return e===bv.SM||e===bv.XS?r=3:e===bv.MD?r=4:e===bv.LG?r=5:e!==bv.XL&&e!==bv.XXL||(r=6),n<r&&(r=n),r}function ZS(e,t,n){var r=6;return e===bv.SM||e===bv.XS?r=3:e===bv.MD?r=4:e===bv.LG?r=5:e!==bv.XL&&e!==bv.XXL||(r=6),n<r&&(r=n),r}function QS(e,t,n){var r=4;return e===bv.XS?r=2:e===bv.SM&&(r=3),n<r&&(r=n),r}function eO(e,t,n,r,o,i,a){return function(c){var u=c.touches.item(0).clientX;o||(t.current.style.transition="",r(t.current.getBoundingClientRect().width),i(u));var s=(o-u)/n*100;(s<0&&e.offset===e.viewableItems||s>0&&e.offset===e.collection.length)&&(s=0),a(s)}}function tO(e,t,n,r,o){return function(){if(e.current.style.transition="transform 500ms ease-in-out 100ms",t(null),Math.abs(n)>=7.5){var i=n>0?FS.Next:FS.Previous;o({type:i})}r(0)}}var nO={offset:0,viewableItems:4,position:0,collection:[],currentSize:bv.LG,type:lE.Row};function rO(e,t){var n,r,o=t.type,i=t.payload,a=void 0===i?{}:i;switch(o){case FS.Next:return Object.assign(Object.assign({},e),function(e){var t=e.collection,n=e.viewableItems,r=e.offset,o=e.position,i=t.length-r;return i%n==0||i>n?{position:o-100,offset:r+n}:i<n?{position:o-i/n*100,offset:r+i}:{position:o,offset:r}}(e));case FS.Previous:return Object.assign(Object.assign({},e),function(e){var t=e.viewableItems,n=e.offset,r=e.position,o=n-t;return o%t==0||o>t?{position:r+100,offset:n-t}:o<t?{position:r+o/t*100,offset:n-o}:{position:r,offset:n}}(e));case FS.Resize:var c=KS(a.contents)(a.mediaQuery,a.type,null===(n=a.collection)||void 0===n?void 0:n.length);return Object.assign(Object.assign({},e),{currentSize:a.mediaQuery,position:0,offset:c,viewableItems:c,type:a.type});case FS.Init:var u=KS(a.contents)(a.mediaQuery,a.type,null===(r=a.collection)||void 0===r?void 0:r.length);return oO(Object.assign(Object.assign({},e),{collection:a.collection,currentSize:a.mediaQuery,offset:u,viewableItems:u,type:a.type}));default:return e}}function oO(e){return Object.assign(Object.assign({},nO),e)}function iO(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 aO(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 aO(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 aO(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 cO(e){var t,n,r=iO(Cr.useState(null),2),o=r[0],i=r[1],a=iO(Cr.useState(null),2),c=a[0],u=a[1],s=iO(Cr.useState(0),2),l=s[0],f=s[1],p=iO(Cr.useReducer(rO,nO,oO),2),d=p[0],h=p[1],y=Cr.useRef(null),m=iO(bw(),2),v=m[0],b=m[1],g=iO(Cr.useState(!1),2),w=g[0],E=g[1],S=iO(Cr.useState(!1),2),O=S[0],x=S[1],k=zS(e.lazyLoad),C=k.ref,j=k.inView,A=MS();Cr.useEffect((function(){h({type:FS.Resize,payload:{mediaQuery:A,type:e.type,contents:e.contents,collection:d.collection}})}),[A]);var _=function(e,t,n,r,o){var i,a=e.fetch,c=e.setData,u=e.type,s=e.collection,l=e.prefetched,f=e.contents,p=s;return(!p||lr.isEmpty(p)&&!l)&&(i=a(o),p=i.data),Cr.useEffect((function(){p&&!lr.isEmpty(p)&&t({type:FS.Init,payload:{collection:Br(c)?c(p):p,mediaQuery:r,type:u,contents:f}})}),[p]),i}(e,h,0,A,!e.lazyLoad||j);var L={type:d.type,size:d.currentSize,collectionSize:d.collection.length,contents:e.contents},P=function(e,t){var n=e.name,r=e.description,o={};return Array.isArray(t)?{name:n,description:r}:(e.name&&(o.name=n),e.description&&(o.description=r),Object.assign(Object.assign({},t),o))}(e,(null===(t=_)||void 0===t?void 0:t.data)||e.collection);if(null===(n=_)||void 0===n?void 0:n.hasError)return Cr.createElement(Cr.Fragment,null);if(!P||lr.isEmpty(P)&&!e.prefetched)return Cr.createElement("div",{ref:C},Cr.createElement($S,{type:e.type}));if(!d.collection.length)return Cr.createElement(Cr.Fragment,null);var N=e.childComponent;return Cr.createElement("div",{className:"pb-3"},Cr.createElement("div",{className:"mb-1"},Cr.createElement(jd,{appLink:GS(e.appLink,P)},Cr.createElement("h2",{className:"h4 mb-0 d-inline-block align-top pl-1 text-dark"},P.name,!!e.appLink&&Cr.createElement(vv,{svgName:dv.ChevronRight,size:mv.Small})),e.settingsAppLink&&Cr.createElement(jd,{appLink:e.settingsAppLink},Cr.createElement(vv,{svgName:dv.Cog,className:"d-inline-block svg-container cursor-pointer",title:io.getPhrase("shared.fixedWidget","preferencesTooltip"),tooltipPlacement:"right"}))),P.description&&Cr.createElement("p",{className:"text-truncate pl-1 mb-0 description"},P.description)),Cr.createElement("div",{ref:v,className:"position-relative"},!w&&Cr.createElement("div",{className:BS.a.leftOverflowGradient}),Cr.createElement(xS,{direction:ES.Left,onClick:function(){return h({type:FS.Previous})},hide:w||d.offset<=d.collection.length&&!(b&&d.offset!==d.viewableItems),contents:e.contents}),Cr.createElement(DS,{position:d.position,positionType:yS.Percentage,onTouchMove:eO(d,y,c,u,o,i,f),onTouchEnd:tO(y,i,l,f,h),ref:y,percentageDragged:l},d.collection.map((function(t,n){return Cr.createElement(N,{key:t.id,data:t,appLink:e.childAppLink,context:L,preloadImage:YS(d)(t),thumbnailSize:_w.Medium,onHover:function(e){window.setTimeout((function(){!function(e,t){(t+1)/d.viewableItems%1==0?x(e):t/d.viewableItems%1==0&&E(e)}(e,n)}),0)}})}))),Cr.createElement(xS,{direction:ES.Right,onClick:function(){return h({type:FS.Next})},hide:O||(d.offset>d.viewableItems||d.offset===d.collection.length)&&!(b&&d.offset<d.collection.length),contents:e.contents}),!O&&Cr.createElement("div",{className:BS.a.rightOverflowGradient})))}cO.defaultProps={type:lE.Row};var uO=Cr.memo(cO);function sO(e){return function(e){if(Array.isArray(e))return lO(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 lO(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 lO(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 lO(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 fO(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 pO(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 pO(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 pO(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 dO=function(){var e=fO(Cr.useState(hv(5)+3+"rem"),1)[0];return Cr.createElement("div",{className:"border d-flex position-relative mr-2 ".concat(TE.a.widgetItem)},Cr.createElement("div",{className:TE.a.imagePanel}),Cr.createElement("div",{className:"px-2",style:{width:e}}," "),Cr.createElement(zw,{type:Dw.Subject}))},hO=function(e,t,n,r,o){return function(i){mO(i.clientX,e,t,n,r,o)}},yO=function(e,t,n,r,o){return function(i){mO(i.touches.item(0).clientX,e,t,n,r,o)}};function mO(e,t,n,r,o,i){var a=o;a||(i(a=Object.assign(Object.assign({},n),{initialMouseX:e})),t.current.style.transition=""),r({type:FS.Drag,payload:{widgetSnapshot:a,currentMouseX:e}})}var vO=function(e,t){return function(){e.current.style.transition="transform 500ms ease-in-out 100ms",t(null)}},bO=vO,gO={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:500,leftOffsetLimit:null};function wO(e,t){switch(t.type){case FS.Init:case FS.Resize:return Object.assign(Object.assign({},e),function(e){var t=e.container,n=void 0===t?{}:t,r=e.lastElement,o=void 0===r?{}:r;if(!n.current||!o.current)return gO;var i=e.container.current.getBoundingClientRect().left,a=e.container.current.getBoundingClientRect().right,c=i,u=e.lastElement.current.getBoundingClientRect().right,s=a-u;return Object.assign(Object.assign({},gO),{containerLeftPosition:i,containerRightPosition:a,firstElementPosition:c,lastElementPosition:u,hideRightButton:u<a,leftOffsetLimit:s})}(t.payload));case FS.Next:return Object.assign(Object.assign({},e),function(e){var t=e.firstElementPosition,n=e.lastElementPosition,r=e.maxSlideDistance,o=e.offset,i=e.containerRightPosition,a=n-i>=r?r:n-i;return{firstElementPosition:t-a,lastElementPosition:n-a,offset:o-a,hideRightButton:n-a===i,hideLeftButton:!1}}(e));case FS.Previous:return Object.assign(Object.assign({},e),function(e){var t=e.containerLeftPosition,n=e.firstElementPosition,r=e.lastElementPosition,o=e.maxSlideDistance,i=e.offset,a=n+o<=t,c=a?o:Math.abs(i);return{firstElementPosition:n+c,lastElementPosition:r+c,offset:i+c,hideLeftButton:!a||n+c===t,hideRightButton:!1}}(e));case FS.Drag:return Object.assign(Object.assign({},e),function(e,t){var n=t.widgetSnapshot,r=t.currentMouseX;if(n.hideLeftButton&&n.hideRightButton)return{};var o=n.initialMouseX-r,i=n.offset-o,a=n.firstElementPosition-o,c=n.lastElementPosition-o,u=!1,s=!1;return a>e.containerLeftPosition&&(i=0,a=e.containerLeftPosition,c=e.lastElementPosition,u=!0),c<=e.containerRightPosition&&(i=e.leftOffsetLimit,a=e.containerLeftPosition-Math.abs(e.leftOffsetLimit),c=n.containerRightPosition,s=!0),{offset:i,firstElementPosition:a,lastElementPosition:c,hideLeftButton:u,hideRightButton:s}}(e,t.payload));default:return e}}var EO=n(93),SO=n.n(EO);function OO(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 xO(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 xO(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 xO(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 kO(e){var t,n=e.childComponent,r=e.endComponent,o=OO(Cr.useReducer(wO,gO),2),i=o[0],a=o[1],c=OO(Cr.useState(null),2),u=c[0],s=c[1],l={container:Cr.useRef(null),firstElement:Cr.useRef(null),lastElement:Cr.useRef(null)};!function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=function(){e(),window.clearTimeout(n),n=window.setTimeout(t,100)};Cr.useEffect((function(){return window.addEventListener("resize",t?o:e),function(){return window.removeEventListener("resize",t?o:e)}}),sO(r))}(function(e,t){return function(){e.container.current&&(e.container.current.style.transition=""),t({type:FS.Resize,payload:e})}}(l,a),(t=l.container,function(){t.current&&(t.current.style.transition="transform 500ms ease-in-out 100ms")}));var f=zS(e.lazyLoad),p=f.ref,d=f.inView,h=e.collection;!e.collection&&Br(e.fetch)&&(h=e.fetch(d)),Cr.useEffect((function(){h&&!lr.isEmpty(h)&&a({type:FS.Init,payload:l})}),[h]);var y=Cr.useMemo((function(){if(h){var t=h.map((function(t){var o;return t===fi(h)&&(o=l.firstElement),t!==pi(h)||r||(o=l.lastElement),Cr.createElement("div",{key:t.id,ref:o,className:SO.a.itemSpacing},Cr.createElement(n,{data:t,appLink:e.childAppLink}))}));return r&&t.push(Cr.createElement("div",{key:"end-widget-component",ref:l.lastElement,className:SO.a.itemSpacing},Cr.createElement(r,null))),Cr.createElement(Cr.Fragment,null,t)}}),[h]);return h&&!h.length?Cr.createElement(Cr.Fragment,null):!h||lr.isEmpty(h)?Cr.createElement("div",{ref:p},Cr.createElement(jO,null)):Cr.createElement(Cr.Fragment,null,e.headingPhraseKey&&Cr.createElement("h4",{className:"d-inline-block mr-2 pl-1 mb-2"},Cr.createElement(Dp,{namespace:"shared.dynamicWidget",phrase:e.headingPhraseKey})),Cr.createElement("div",{className:"position-relative px-1"},Cr.createElement(xS,{direction:ES.Left,onClick:function(){return a({type:FS.Previous})},hide:i.hideLeftButton,useGradientBackdrop:!0}),Cr.createElement("div",{className:"overflow-hidden"},Cr.createElement(DS,{position:i.offset,positionType:yS.Pixels,onDrag:hO(l.container,i,a,u,s),onDragEnd:vO(l.container,s),onTouchMove:yO(l.container,i,a,u,s),onTouchEnd:bO(l.container,s),ref:l.container},y)),Cr.createElement(xS,{direction:ES.Right,onClick:function(){return a({type:FS.Next})},hide:i.hideRightButton,useGradientBackdrop:!0})))}var CO=jg(),jO=function(){return Cr.createElement("div",{className:"pb-3 d-flex flex-nowrap"},CO.map((function(e,t){return Cr.createElement(dO,{key:t})})))},AO=n(70),_O=n.n(AO);function LO(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 PO(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 PO(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 PO(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 NO=Cr.memo((function(e){var t=e.data,n=e.appLink,r=e.seriesAppLink,o=e.context,i=e.thumbnailSize,a=e.preloadImage,c=LO(gw(_O.a.hovering),2),u=c[0],s=c[1];Cr.useEffect((function(){e.onHover(s)}),[s]);var l=Object.assign(Object.assign({},n),{args:[t.id,Ja(t.name)]}),f=_O.a.rowWidth;return o.type!==lE.LargeRow&&3!==o.collectionSize||(f=_O.a.largeRowWidth),Cr.createElement("div",{ref:u,className:"p-1 flex-shrink-0 position-relative ".concat(f)},Cr.createElement(lS,{video:t,type:"expandable",appLink:l,seriesAppLink:r,textPosition:ZE.Overlay,size:i,preload:a,hovering:s}))}),(function(e,t){var n,r,o,i,a,c;return e.preloadImage===t.preloadImage&&(null===(n=e.data)||void 0===n?void 0:n.name)===(null===(r=t.data)||void 0===r?void 0:r.name)&&(null===(i=null===(o=e.data)||void 0===o?void 0:o.series)||void 0===i?void 0:i.id)===(null===(c=null===(a=t.data)||void 0===a?void 0:a.series)||void 0===c?void 0:c.id)}));function RO(e){return(RO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function TO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IO(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 DO(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=UO(e);if(t){var o=UO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return MO(this,n)}}function MO(e,t){return!t||"object"!==RO(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 UO(e){return(UO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var VO=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)}(i,e);var t,n,r,o=DO(i);function i(){return TO(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"ErrorPageError"}}])&&IO(t.prototype,n),r&&IO(t,r),i}(r.SilentError);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 HO(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 BO(e,t){return(BO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qO(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 $O(this,n)}}function $O(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 YO(e){return(YO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var GO=io.encloseNamespace("shared.notFound"),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&&BO(e,t)}(i,e);var t,n,r,o=qO(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,GO("title"))}return t=i,(n=[{key:"name",get:function(){return"NotFoundError"}},{key:"heading",get:function(){return GO("heading")}},{key:"description",get:function(){return GO("description")}}])&&HO(t.prototype,n),r&&HO(t,r),i}(VO);function WO(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 JO(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 JO(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 JO(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 XO=io.encloseNamespace("subjects.classification");function ZO(e,t){var n,r,o=!!(null===(r=null===(n=e.followers)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length);return[{label:XO(o?"unfollow":"follow"),onClick:t,svgName:dv.Bell,className:"btn ".concat(o?"btn-dark":"btn-white"),button:!0,tooltip:o?void 0:XO("followBtnTooltip")},{label:XO("share"),appLink:{application:Ee,action:fe.SHARE,args:[e.id]},svgName:dv.Share,className:"btn btn-white",button:!0}]}function QO(e){var t,n,i,a,c,u,s,l,f,p,d,h,y,m,v,b=e.id,g=e.queryParams,w=WO(Cr.useReducer(rw,{}),2),E=w[0],S=w[1],O=WO(Cr.useState(),2),x=(O[0],O[1]),k=WO(Cr.useState(!1),2),C=k[0],j=k[1],A=Object(_r.useDispatch)(),_=o.useBasicFetch(Oi),L=o.useBasicFetch(hb),P=o.useBasicFetch($g()),N=o.useBasicFetch(jb()),R=o.useBasicFetch((null===(t=_.data)||void 0===t?void 0:t.id)&&Gg(b,null===(n=_.data)||void 0===n?void 0:n.id,(function(e){e.status!==Ko.BadRequest&&e.status!==Ko.NotFound||r.ErrorHelper.throw(new KO)}))),T=o.useBasicFetch(Kg(b)),I=o.useBasicFetch(Wg(b)),F=lr.keys(E),D=lr.values(E);F&&F.length||(F=[]);var M=null===(a=null===(i=P)||void 0===i?void 0:i.data)||void 0===a?void 0:a.id,U=Zg(b,M,F),V=Xg(b,M,F),z=Jg(b,M,F),H=o.useGetResponse(U&&U.key),B=o.useGetResponse(V&&V.key),q=o.useGetResponse(z&&z.key),$=o.useGetFetch(U),Y=o.useGetFetch(V),G=o.useGetFetch(z),K=F.length?F.join(":"):M;function W(){var e,t;x(!0);var n=(null===(t=null===(e=R.data.followers)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)?mE.unfollow:mE.follow;o.fetch(A,n([R.data.id]))}Cr.useEffect((function(){M&&($(),Y(),G())}),[K]),Cr.useEffect((function(){C||(R.data?j(!!R.data.series.count||!!R.data.playlists.count||!!R.data.videos.count):j(!1))}),[R.data]),Cr.useEffect((function(){x(!1)}),[null===(s=null===(u=null===(c=R.data)||void 0===c?void 0:c.followers)||void 0===u?void 0:u.data)||void 0===s?void 0:s.length]);var J=nE();nw({appLink:J(R.data),paramBuilder:function(){return{a:D.map((function(e){return e.name}))}},isValid:function(){var e;return!!(null===(e=R.data)||void 0===e?void 0:e.id)},appLinkOptions:{replace:!0}},[D.length]);var X=!(!N.data||!N.data.length);uw(g,N.data,S,[X]);var Z=!!R.data&&!!L.data,Q=!!R.data&&!!T.data,ee=!!I.data,te=!!N.data,ne=!!R.data&&!!B.data,re=!!R.data&&!!q.data,oe=!!R.data&&!!H.data&&!!N.data,ie=function(e,t,n,r){if(!(e&&t&&n&&r))return{heroVideo:null,videoList:n&&n.data};if(!e.data.length&&!t.data.length&&1===n.data.length)return{heroVideo:fi(n.data),videoList:[]};var o=n.data.findIndex((function(e){return e.id===r.pinnedVideoMasterId}));return-1===o?{heroVideo:null,videoList:n.data}:{heroVideo:n.data[o],videoList:n.data.filter((function(e){return e.id!==r.pinnedVideoMasterId}))}}(H.data,B.data,q.data,R.data),ae=ie.heroVideo,ce=ie.videoList;return Cr.createElement("div",{className:"bg-white"},Z?Cr.createElement(Sg,{heading:R.data.name,banner:R.data.banner,imageCdnUrl:L.data.imageCdnUrl,actions:(null===(l=R.data)||void 0===l?void 0:l.comingSoon)?[]:ZO(R.data,W)}):Cr.createElement(Og,null),Cr.createElement("div",{className:"px-3"},Cr.createElement("div",{className:"py-3 mb-3 ".concat((null===(f=R.data)||void 0===f?void 0:f.comingSoon)?"":"border-bottom")},Q?Cr.createElement(Ig,{currentItem:R.data,type:Cg.Static,getItemAppLink:J,data:T.data,rootItem:{label:XO("dashboard"),appLink:iE()}}):Cr.createElement(Mg,null),te&&ne&&oe&&re?Cr.createElement(pw,{audiences:N.data,activeAudiences:E,setAudience:S,disabled:!C}):Cr.createElement(hw,null))),L.data&&(null===(p=R.data)||void 0===p?void 0:p.comingSoon)?Cr.createElement(NE,{data:R.data,imageCdnUrl:L.data.imageCdnUrl,onToggleFollow:W}):Cr.createElement("div",{className:"px-3"},ee&&ne&&oe&&re?function(e){if(e.data.length)return!0;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.some((function(e){return!!e.data.length}))}(B.data,H.data,q.data)||ae?Cr.createElement("div",{className:"pb-3"},Cr.createElement(kO,{collection:I.data,childAppLink:J(),childComponent:DE,headingPhraseKey:"topics"})):Cr.createElement("div",{className:"mx-n2"},Cr.createElement(zE,{classifications:I.data,getItemAppLink:J})):Cr.createElement(jO,null),oe&&ne&&re&&te?Cr.createElement(gS,{video:ae,presentationAudiences:N.data,videoAppLink:{application:Ee,action:fe.VIDEO,args:[null===(d=ae)||void 0===d?void 0:d.id]},seriesAppLink:{application:Ee,action:fe.SERIES,args:[null===(y=null===(h=ae)||void 0===h?void 0:h.series)||void 0===y?void 0:y.id]}}):Cr.createElement(wS,null),Cr.createElement("div",null,ne&&te?!!(null===(v=null===(m=B.data)||void 0===m?void 0:m.data)||void 0===v?void 0:v.length)&&Cr.createElement("div",{className:"pb-2"},Cr.createElement("h4",null,XO("playlists")),Cr.createElement(OE,{playlists:xw(B.data.data),getPlaylistAppLink:oE(R.data),presentationAudiences:N.data,itemClassName:"columns-of-five"})):Cr.createElement("div",{className:"pb-3"},Cr.createElement(EE,{showHeading:!0,itemClassName:"columns-of-five"})),oe?Cr.createElement(uO,{name:XO("series"),type:lE.Row,contents:dE.Series,collection:H.data,setData:function(e){return e.data},appLink:rE(R.data),childComponent:function(e){return Cr.createElement(Zw,Object.assign({audiences:N.data},e))},childAppLink:{application:Ee,action:fe.SERIES},prefetched:!0}):Cr.createElement(tE,null),re?Cr.createElement(uO,{name:XO("popular"),type:lE.Row,contents:dE.Videos,collection:ce,childComponent:NO,childAppLink:{application:Ee,action:fe.VIDEO},prefetched:!0}):Cr.createElement($S,{type:lE.Row}))))}var ex=n(237),tx=n.n(ex);function nx(e){return Cr.createElement("nav",{className:"d-flex justify-content-center pt-3"},e.steps.map((function(e,t){return Cr.createElement(jd,{key:t,appLink:e.active?null:e.appLink,className:(n=e.active,r="rounded-circle mx-2 cursor-pointer "+tx.a.progressItem,o=n?"bg-info":"bg-light","".concat(r," ").concat(o))});var n,r,o})))}var rx=n(238),ox=n.n(rx);function ix(e,t){var n={application:t,action:fe.PREFERENCES};return[{active:"levels"===e,appLink:Object.assign(Object.assign({},n),{params:{step:"levels"}})},{active:"subjects"===e,appLink:Object.assign(Object.assign({},n),{params:{step:"subjects"}})},{active:"summary"===e,appLink:Object.assign(Object.assign({},n),{params:{step:"summary"}})}]}function ax(e){var t=e.step,n=void 0===t?"levels":t,r=e.application,o=function(e,t){switch(e){case"levels":return Cr.createElement(ek,{application:t});case"subjects":return Cr.createElement(Yx,{application:t});case"summary":return Cr.createElement(ok,{application:t,onboarding:!0});default:return null}}(n,r);return Cr.createElement("div",{className:"p-3 position-relative ".concat(ox.a.preferencesContainer)},Cr.createElement(nx,{steps:ix(n,r)}),o)}var cx=Ae.CLASSIFICATION,ux=function(){return"/api/domain/v1/subjects/preferences?query=".concat(cx)},sx=function(){return"/api/domain/v1/subjects/classifications/following?query=".concat(cx)},lx=function(){return"/api/domain/v1/subjects/classifications/following"},fx=function(e){return nd.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},px=function(){return"/api/domain/v1/subjects/audiences"},dx=function(){return"/api/domain/v1/subjects/audiences/following"},hx=function(){return"/api/domain/v1/subjects/audiences/following"},yx=function(e){return nd.urlBuilder("/api/domain/v1/subjects/audiences/following",{id:e})},mx=function(){return{url:ux(),key:"subject:preference:options"}},vx=function(){return{url:sx(),key:"my:subject:preferences",normalize:!1}},bx=function(e,t,n){return{url:lx(),key:"follow:subjects",data:e,type:fo.POST,success:t,always:n,invalidationKeys:["my:subject:preferences"]}},gx=function(e,t,n){return{url:fx(e),key:"unfollow:subjects",type:fo.DELETE,success:t,always:n,invalidationKeys:["my:subject:preferences"]}},wx=function(){return{url:px(),key:"level:preference:options",normalize:!1}},Ex=function(){return{url:dx(),key:"my:level:preferences",normalize:!1}},Sx=function(e,t,n){return{url:hx(),key:"follow:levels",data:e,type:fo.POST,success:t,always:n,invalidationKeys:["my:level:preferences"]}},Ox=function(e,t,n){return{url:yx(e),key:"unfollow:levels",type:fo.DELETE,success:t,always:n,invalidationKeys:["my:level:preferences"]}},xx=Object(Cr.createContext)(void 0),kx=n(239),Cx=n.n(kx);function jx(e){var t=MS(),n=t===bv.SM||t===bv.XS?"w-100":"w-75",r="justify-content-between";return"right"===e.align?r="justify-content-end":"center"===e.align&&(r="justify-content-center"),Cr.createElement("div",{className:"".concat(n," ").concat(r," ").concat(Cx.a.preferenceFooter," d-flex px-3")},e.children)}var Ax=n(10),_x=n.n(Ax),Lx=function(e){return e.selectedChildrenCount?Cr.createElement("div",{className:"".concat(_x.a.itemStatus," ").concat(_x.a.green)},e.selectedChildrenCount):Cr.createElement(Cr.Fragment,null)},Px=function(e){return Cr.createElement("div",{className:"".concat(_x.a.itemStatus," ").concat(e.selected?_x.a.green:_x.a.unchecked)},e.selected?Cr.createElement(vv,{svgName:dv.Check}):Cr.createElement(vv,{svgName:dv.Plus}))};function Nx(e){var t,n,r,o,i=Cr.useContext(xx);var a,c=e.subject.cover?ad.createUrl(e.subject.cover.url,{size:Wp.Small}):"",u=e.subject.isExpandableOption?e.subject.children.map((function(e){return e.id})):[],s=null===(n=null===(t=i)||void 0===t?void 0:t.selectedSubjects)||void 0===n?void 0:n.filter((function(e){return u.includes(e)})).length,l=!e.disabled&&e.onClick?e.onClick:function(){},f=(null===(o=null===(r=i)||void 0===r?void 0:r.expandedSubject)||void 0===o?void 0:o.id)===e.subject.id,p="".concat(_x.a.expandCaret," ").concat(f?_x.a.up:_x.a.down);return Cr.createElement("li",{className:(a=_x.a.subjectPreferenceItem,e.extraClasses&&(a+=" "+e.extraClasses),e.disabled&&(a+=" "+_x.a.disabled),e.selected&&(a+=" "+_x.a.selected),a),onClick:l,"aria-checked":e.selected,"aria-haspopup":e.subject.isExpandableOption,role:e.subject.isExpandableOption?"button":"checkbox",style:{backgroundImage:"url(".concat(c,")")},tabIndex:0,title:e.subject.name},Cr.createElement("div",{className:"".concat(_x.a.textBox," p-2")},Cr.createElement("p",{className:"m-0 text-truncate"},e.subject.name,Cr.createElement("span",{className:e.subject.isExpandableOption?p:""})),e.subject.isExpandableOption?Cr.createElement(Lx,{selectedChildrenCount:s}):Cr.createElement(Px,{selected:e.selected})))}var Rx=n(47),Tx=n.n(Rx),Ix=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};function Fx(e,t){return!(!t||e.id===t.id)&&!t.children.find((function(t){return t.id===e.id}))}function Dx(e){var t=Cr.useContext(xx);return Cr.createElement(Cr.Fragment,null,e.subjects.map((function(n){var r=n.isExpandableOption?e.onExpand:e.onSelect;return Cr.createElement(Nx,{key:n.id,subject:n,selected:t.selectedSubjects.includes(n.id),disabled:Fx(n,t.expandedSubject),onClick:function(e){return r(n)}})})))}function Mx(e){var t=e.subjects,n=Ix(e,["subjects"]),r=Cr.useContext(xx).expandedSubject,o=function(){switch(MS()){case bv.LG:default:return 5;case bv.MD:return 4;case bv.SM:return 3;case bv.XS:return 2}}(),i=t.reduce((function(e,t,n){return n%o==0?e.push([t]):pi(e).push(t),e}),[]);return Cr.createElement("ul",{className:Tx.a.grid},i.map((function(e,t){var o=r&&!!e.find((function(e){return r.id===e.id&&e.isExpandableOption}));return Cr.createElement(Cr.Fragment,{key:t},Cr.createElement(Dx,Object.assign({subjects:e},n)),o&&Cr.createElement("li",{className:"".concat(Tx.a.subgrid," m-0")},Cr.createElement(Mx,Object.assign({subjects:r.children},n))))})))}var Ux=n(94),Vx=n.n(Ux);function zx(e){var t="grid"===e.style?Tx.a.grid:Vx.a.partialSubjectList;return Cr.createElement("ul",{className:t},Array(e.count).fill(Cr.createElement("li",{className:"".concat(Vx.a.partialSubject," partial-loading-background")})))}function Hx(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)||qx(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 Bx(e){return function(e){if(Array.isArray(e))return $x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||qx(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 qx(e,t){if(e){if("string"==typeof e)return $x(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)?$x(e,t):void 0}}function $x(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 Yx(e){var t=e.application,n=Hx(Cr.useState([]),2),i=n[0],a=n[1],c=Hx(Cr.useState(null),2),u=c[0],s=c[1],l=Hx(Cr.useState(!1),2),f=l[0],p=l[1],d=Object(_r.useDispatch)(),h=o.useBasicFetch(mx()),y=o.useBasicFetch(vx());function m(){return!!y.data&&y.data.map((function(e){return e.id})).sort().toString()!==i.sort().toString()}function v(){p(!1),r.AppLinkHelper.trigger({application:t,action:fe.PREFERENCES,params:{step:"summary"}})}Cr.useEffect((function(){y.data&&a(bi([].concat(Bx(i),Bx(y.data.map((function(e){return e.id}))))))}),[y.data]);var b=function(e){var t;if(!(null===(t=e)||void 0===t?void 0:t.length))return[];var n=[];return e.forEach((function(e){if(e.children&&e.children.length){var t=Object.assign(Object.assign({},e),{name:io.getPhrase("subjects.subjectPreferencesView","allOfParent",{parent:e.name}),isBulkOption:!0});n.push(Object.assign(Object.assign({},e),{isExpandableOption:!0,children:[t].concat(Bx(e.children))}))}else n.push(Object.assign({},e))})),n}(h.data);return Cr.createElement(Fp.Provider,{value:"subjects.subjectPreferencesView"},Cr.createElement(xx.Provider,{value:{selectedSubjects:i,expandedSubject:u}},Cr.createElement("form",{className:"p-3 pb-5"},Cr.createElement("div",{className:"text-center mb-4"},Cr.createElement("h1",{className:"mb-3"},Cr.createElement(Dp,{phrase:"heading",options:{highlightClass:"text-primary"}})),Cr.createElement("p",{className:"m-0 h6"},Cr.createElement(Dp,{phrase:"infoRow1"})),Cr.createElement("p",{className:"h6"},Cr.createElement(Dp,{phrase:"infoRow2"}))),h.data&&y.data?Cr.createElement(Mx,{subjects:b,onSelect:function(e){var t=[];if(e.isBulkOption){var n=e.children.map((function(e){return e.id}));t=i.includes(e.id)?i.filter((function(t){return t!==e.id&&!n.includes(t)})):bi([].concat(Bx(i),[e.id],Bx(n)))}else t=vi(i,e.id);a(t)},onExpand:function(e){s(u&&u.id===e.id?null:e)}}):Cr.createElement(zx,{style:"grid",count:7}),Cr.createElement(jx,null,Cr.createElement("div",null,Cr.createElement(jd,{appLink:{application:Ee,action:fe.PREFERENCES,params:{step:"levels"}},className:"btn btn-light"},Cr.createElement(Dp,{phrase:"back"}))),Cr.createElement("div",{className:"d-flex justify-content-right"},Cr.createElement("div",{role:"button",onClick:function(){var e=[];h.data.forEach((function(t){t.children&&t.children.length&&t.children.forEach((function(t){return e.push(t.id)})),e.push(t.id)})),a(e),s(null)},className:"text-dark font-weight-bold cursor-pointer d-flex align-items-center mr-3"},Cr.createElement(Dp,{phrase:"allSubjects"})),Cr.createElement(yc.Button,{variant:"dark",disabled:f,onClick:function(){var e,n;if(m()){p(!0);var a=i.filter((function(e){return!y.data.find((function(t){return t.id===e}))})),c=null===(e=y.data)||void 0===e?void 0:e.filter((function(e){return!i.includes(e.id)}));(null===(n=a)||void 0===n?void 0:n.length)&&o.fetch(d,bx(a,(function(){}),v)),c.length&&o.fetch(d,gx(c.map((function(e){return e.id})),(function(){}),v))}else r.AppLinkHelper.trigger({application:t,action:fe.PREFERENCES,params:{step:"summary"}})}},f?Cr.createElement(yc.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):Cr.createElement(Dp,{phrase:m()?"followSubjects":"next",options:{smartCount:i.length}})))))))}function Gx(e){var t=e.width,n=void 0===t?90:t,r=e.height,o=void 0===r?35:r,i=e.count,a=void 0===i?5:i,c=e.align,u="center"===(void 0===c?"left":c)?"justify-content-center":"justify-content-start";return Cr.createElement("ul",{className:"d-flex flex-wrap pl-0 m-0 ".concat(u)},Array(a).fill(Cr.createElement("li",{className:"partial-loading-background mx-1 mb-1 badge-pill list-unstyled",style:{height:"".concat(o,"px"),width:"".concat(n,"px")}})))}var Kx=n(240),Wx=n.n(Kx);function Jx(e){return function(e){if(Array.isArray(e))return Qx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Zx(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 Xx(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)||Zx(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 Zx(e,t){if(e){if("string"==typeof e)return Qx(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)?Qx(e,t):void 0}}function Qx(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 ek(e){var t=e.application,n=Xx(Cr.useState([]),2),i=n[0],a=n[1],c=Xx(Cr.useState(!1),2),u=c[0],s=c[1],l=Object(_r.useDispatch)(),f=o.useBasicFetch(wx()),p=o.useBasicFetch(Ex());function d(e){var t=vi(i,e.masterId);a(t)}function h(){s(!1),r.AppLinkHelper.trigger({application:Ee,action:fe.PREFERENCES,params:{step:"subjects"}})}return Cr.useEffect((function(){if(p.data){var e=p.data.map((function(e){return e.masterId}));a(bi([].concat(Jx(i),Jx(e))))}}),[p.data]),Cr.createElement(Fp.Provider,{value:"subjects.levelPreferences"},Cr.createElement("form",{className:"p-3"},Cr.createElement("div",{className:"text-center mb-4"},Cr.createElement("h1",{className:"mb-3"},Cr.createElement(Dp,{phrase:"heading",options:{highlightClass:"text-primary"}}))),f.data?Cr.createElement("ul",{className:"d-flex flex-wrap justify-content-center mx-auto mb-0 pl-0 pt-3 pb-5 ".concat(Wx.a.levelList)},f.data.map((function(e){return Cr.createElement(fw,{key:e.masterId,audience:e,highlight:i.includes(e.masterId),setAudience:d,extraClasses:"h4 py-1 px-3 mx-1 mb-1"})}))):Cr.createElement("div",{className:"w-33 mx-auto pb-5 pt-3"},Cr.createElement(Gx,{align:"center"})),Cr.createElement(jx,{align:"right"},Cr.createElement("div",{className:"d-flex justify-content-right"},Cr.createElement("div",{role:"button",onClick:function(){a(f.data.map((function(e){return e.masterId})))},className:"text-dark font-weight-bold cursor-pointer d-flex align-items-center mr-3"},Cr.createElement(Dp,{phrase:"allLevels"})),Cr.createElement(yc.Button,{variant:"dark",disabled:u,onClick:function(){var e,n;if(p.data&&p.data.map((function(e){return e.masterId})).sort().toString()!==i.sort().toString()){s(!0);var a=i.filter((function(e){return!p.data.find((function(t){return t.masterId===e}))})),c=null===(e=p.data)||void 0===e?void 0:e.filter((function(e){return!i.includes(e.masterId)}));(null===(n=a)||void 0===n?void 0:n.length)&&o.fetch(l,Sx(a,(function(){}),h)),c.length&&o.fetch(l,Ox(c.map((function(e){return e.masterId})),(function(){}),h))}else r.AppLinkHelper.trigger({application:t,action:fe.PREFERENCES,params:{step:"subjects"}})}},u?Cr.createElement(yc.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):Cr.createElement(Dp,{phrase:"next"}))))))}var tk=n(241),nk=n.n(tk);function rk(){r.AppLinkHelper.trigger({application:xe,action:he.HOME})}function ok(e){var t=o.useBasicFetch(Ex()),n=o.useBasicFetch(vx());return Cr.createElement(Fp.Provider,{value:"subjects.preferencesSummary"},Cr.createElement("div",{className:"p-3 pb-5 mx-auto ".concat(nk.a.container)},Cr.createElement("div",{className:"text-center"},Cr.createElement("h1",{className:"mb-3"},Cr.createElement(Dp,{phrase:"heading",options:{highlightClass:"text-primary"}})),Cr.createElement("p",{className:"w-25 mx-auto h6"},Cr.createElement(Dp,{phrase:"info"}))),Cr.createElement("div",{className:"pb-3"},Cr.createElement("div",{className:"pb-1 d-flex align-items-center"},Cr.createElement("h2",{className:"h3 mb-0 pr-1"},Cr.createElement(Dp,{phrase:"levels"})),Cr.createElement(jd,{appLink:{application:e.application,action:fe.PREFERENCES,params:{step:"levels"}}},Cr.createElement(vv,{svgName:dv.Edit}))),t.data?t.data.length?Cr.createElement("ul",{className:"m-0 p-0"},t.data.map((function(e){return Cr.createElement(fw,{key:e.masterId,audience:e,extraClasses:"h4 py-1 px-3 mx-1 cursor-default",highlight:!0})}))):Cr.createElement("p",null,Cr.createElement(Dp,{phrase:"noLevelPreferences"})):Cr.createElement(Gx,{count:2})),Cr.createElement("div",{className:"pb-3"},Cr.createElement("div",{className:"pb-1 d-flex align-items-center"},Cr.createElement("h2",{className:"h3 mb-0 pr-1"},Cr.createElement(Dp,{phrase:"subjects"})),Cr.createElement(jd,{appLink:{application:e.application,action:fe.PREFERENCES,params:{step:"subjects"}}},Cr.createElement(vv,{svgName:dv.Edit}))),n.data?n.data.length?Cr.createElement("ul",{className:"m-0 p-0 d-flex flex-wrap"},n.data.map((function(e){return Cr.createElement(Nx,{key:e.id,subject:e,extraClasses:"m-1 cursor-default",selected:!0})}))):Cr.createElement("p",null,Cr.createElement(Dp,{phrase:"noSubjectPreferences"})):Cr.createElement(zx,{style:"list",count:5})),e.onboarding&&Cr.createElement(jx,{align:"center"},Cr.createElement(yc.Button,{variant:"dark",onClick:rk,className:"px-4"},Cr.createElement(Dp,{phrase:"getStarted"})))))}function ik(e){return(ik="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ak(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ck(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 uk(e,t,n){return t&&ck(e.prototype,t),n&&ck(e,n),e}function sk(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&&lk(e,t)}function lk(e,t){return(lk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fk(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dk(e);if(t){var o=dk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pk(this,n)}}function pk(e,t){return!t||"object"!==ik(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 dk(e){return(dk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hk=function(e){sk(n,e);var t=fk(n);function n(){return ak(this,n),t.apply(this,arguments)}return uk(n,[{key:"channelName",get:function(){return Ee}},{key:"appRoutes",get:function(){return{"subjects/preferences":"preferences","subjects/:id(/:slug)/series":"classificationSeries","subjects/:id(/:slug)":"classification"}}},{key:"externalRoutes",get:function(){return{"videos/:id":"video","series/:id(/)":"series","playlists/:id(/)":"playlist","subjects/:id(/:slug)/playlists(/)":"classificationPlaylists","subjects/:id/playlists/:id(/:slug)(/)":"classificationPlaylist","subjects/:id/playlists/:id(/:slug)/play(/)":"playClassificationPlaylist","subjects/:id/playlists/:id/videos/:id(/:slug)":"playClassificationPlaylistVideo"}}}]),n}(r.AppRouter),yk=function(e){sk(n,e);var t=fk(n);function n(){return ak(this,n),t.apply(this,arguments)}return uk(n,[{key:"classification",value:function(e,t,n){this.layout.showChildView(Ur,jr.a.createElement(QO,{key:e,id:e,queryParams:n}))}},{key:"classificationSeries",value:function(e,t,n){this.layout.showChildView(Ur,jr.a.createElement(pE,{id:e,queryParams:n}))}},{key:"classificationPlaylists",value:function(e,t){this.classification(e,t)}},{key:"preferences",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.step||(e.step="subjects"),this.layout.showChildView(Ur,jr.a.createElement(ax,{step:e.step,application:this.channelName}))}},{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return Ee}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:yo,hideLeftNav:!0}}}}],[{key:"router",get:function(){return hk}}]),n}(lg);function mk(e){var t,n=o.useBasicFetch(bh(e.subjectId));return Cr.createElement(kb,{playlistId:e.playlistId,application:Ee,getVideoAppLink:e.getVideoAppLink,getSeriesAppLink:function(e){return{application:Ee,action:le.SERIES,args:[e.id]}},getPlayAllAppLink:(t=e.subjectId,function(e){return{application:Se,action:pe.PLAY_CLASSIFICATION_PLAYLIST,args:e?[t,e.id,Ja(e.name)]:[]}}),returnAppLink:!!n.data&&{label:n.data.name,appLink:{application:Se,action:pe.CLASSIFICATION,args:[e.subjectId,Ja(n.data.name)]}}})}function vk(e){return(vk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gk(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 wk(e,t,n){return t&&gk(e.prototype,t),n&&gk(e,n),e}function Ek(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&&Sk(e,t)}function Sk(e,t){return(Sk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ok(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kk(e);if(t){var o=kk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xk(this,n)}}function xk(e,t){return!t||"object"!==vk(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 kk(e){return(kk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ck=function(e){Ek(n,e);var t=Ok(n);function n(){return bk(this,n),t.apply(this,arguments)}return wk(n,[{key:"channelName",get:function(){return Se}},{key:"appRoutes",get:function(){return{"subjects/:id/playlists/:id(/:slug)(/)":"classificationPlaylist","subjects/:id/playlists/:id(/:slug)/play(/)":"playClassificationPlaylist","subjects/:id/playlists/:id/videos/:id(/:slug)":"playClassificationPlaylistVideo"}}},{key:"externalRoutes",get:function(){return{"subjects/:id(/:slug)":"classification"}}}]),n}(r.AppRouter),jk=function(e){Ek(n,e);var t=Ok(n);function n(){return bk(this,n),t.apply(this,arguments)}return wk(n,[{key:"classificationPlaylist",value:function(e,t,n){var r=this;this.layout.showChildView(Ur,jr.a.createElement(mk,{subjectId:e,playlistId:t,getVideoAppLink:function(n){return r.getVideoAppLink(e,t,n.id,Ja(n.name))}})),this.layout.hideLeftNav()}},{key:"playClassificationPlaylist",value:function(e,t,n){this.playClassificationPlaylistVideo(e,t)}},{key:"playClassificationPlaylistVideo",value:function(e,t,n,r){var o=this,i={playlistId:t,videoId:n,getPlaylistAppLink:function(e){return o.getPlaylistAppLink(e.id,e.name)},getVideoAppLink:function(n){return o.getVideoAppLink(e,t,n)}};this.layout.showChildView(Ur,jr.a.createElement(Sh,Object.assign({},i))),this.layout.hideLeftNav()}},{key:"getPlaylistAppLink",value:function(e,t){var n=[e.toString()];return t&&n.push(Ja(t)),{application:we,action:le.PLAYLIST,args:n}}},{key:"getVideoAppLink",value:function(e,t,n,r){return{application:Se,action:pe.PLAY_CLASSIFICATION_PLAYLIST_VIDEO,args:[e.toString(),t.toString(),n.toString(),r]}}},{key:"name",get:function(){return"Subject Playlists Application"}},{key:"channelName",get:function(){return Se}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:yo,hideLeftNav:!0}}}}],[{key:"router",get:function(){return Ck}}]),n}(lg),Ak=function(e){var t=e.children;return Cr.createElement(yo,null,t)};var _k=function(e,t){return{url:"/api/domain/v1/subjects/content-updates?from=".concat(e,"&to=").concat(t)+"&query=".concat(Ae.VIDEO_COLLECTION),key:"content:updates",normalize:!1}},Lk=function(e){var t=[];return e.forEach((function(e){return t.push("id=".concat(e))})),{url:"".concat("/api/domain/v1/subjects","?").concat(t.join("&"),"&query=banner"),key:"classifications:".concat(e.join(","))}},Pk=function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),key:"classification:".concat(e)}};function Nk(e){return Cr.createElement("div",{className:"breadcrumbs-container border-bottom"},Cr.createElement("ul",{className:"breadcrumbs"},Cr.createElement("li",null,Cr.createElement(jd,{appLink:e.dashboardAppLink},Cr.createElement(Dp,{namespace:"playlists.onlineWhatsNewBreadcrumbs",phrase:"dashboard"}))),Cr.createElement("li",null,Cr.createElement(Dp,{namespace:"playlists.onlineWhatsNewBreadcrumbs",phrase:"whatsNew"}))),Cr.createElement("a",{href:"/latest-releases",className:"switch-back"},Cr.createElement(Dp,{namespace:"playlists.onlineWhatsNewBreadcrumbs",phrase:"switchBack"})))}function Rk(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 Tk(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 Tk(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 Tk(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 Ik(e){var t=e.classification,n=e.backgroundUrl,r=e.followed,o=Rk(Cr.useState(r),2),i=o[0],a=o[1];return Cr.createElement("div",{className:"classification-banner",style:{backgroundImage:"url('".concat(n,"')")}},Cr.createElement(jd,{appLink:e.getClassificationAppLink(t)},Cr.createElement("h2",null,t.name)),Cr.createElement("button",{className:"btn grey",onClick:function(){a(!i),e.follow(t.id,!i)}},Cr.createElement(sp,{svgName:i?cc.BellFilled:cc.Bell}),Cr.createElement(Dp,{namespace:"playlists.onlineClassificationBanner",phrase:i?"following":"follow"})))}function Fk(e){var t=e.classification;return Cr.createElement("div",{className:"breadcrumbs-container border-bottom"},Cr.createElement("ul",{className:"breadcrumbs"},Cr.createElement("li",null,Cr.createElement(jd,{appLink:e.dashboardAppLink},Cr.createElement(Dp,{namespace:"playlists.onlineClassificationUpdateBreadcrumbs",phrase:"dashboard"}))),Cr.createElement("li",null,Cr.createElement(jd,{appLink:e.contentUpdatesAppLink},Cr.createElement(Dp,{namespace:"playlists.onlineClassificationUpdateBreadcrumbs",phrase:"whatsNew"}))),Cr.createElement("li",null,Cr.createElement("span",null,t.name))))}function Dk(e){var t=e.classification,n=e.videos,r=e.imageCdnUrl,o=e.showMore,i=e.followed,a=ad.createBannerUrl(t.banner,{fallbackBaseUrl:r,fallbackCategoryName:t.name,type:Jp.Banners});return Cr.createElement("div",{className:"mb-3"},Cr.createElement(Ik,{classification:t,backgroundUrl:a,getClassificationAppLink:e.appLinks.getClassificationAppLink,followed:i,follow:e.follow}),Cr.createElement(th,{playlistId:"0",isUserSignedIn:!0,onSortComplete:function(){},videos:n,getVideoAppLink:e.appLinks.getVideoAppLink,getSeriesAppLink:e.appLinks.getSeriesAppLink}),o&&Cr.createElement("div",{className:"show-more"},Cr.createElement(jd,{className:"info-link",appLink:e.appLinks.getClassificationUpdateAppLink(t)},Cr.createElement(Dp,{namespace:"contentUpdates.contentUpdatesView",phrase:"showMore",options:{classificationName:t.name}}))))}var Mk=n(50),Uk=n.n(Mk);function Vk(){return jr.a.createElement("div",{className:"bg-white padding-gutter content-updates"},jr.a.createElement("div",{className:"breadcrumbs-container border-bottom"},jr.a.createElement("ul",{className:"breadcrumbs"},jr.a.createElement("li",{className:"partial-loading-item ".concat(Uk.a.partialDashboardBreadcrumb)}),jr.a.createElement("li",{className:"partial-loading-item ".concat(Uk.a.partialWhatsNewBreadcrumb)})),jr.a.createElement("div",{className:"switch-back partial-loading-item ".concat(Uk.a.partialOldLookBreadcrumb)})),Array(4).fill(null).map((function(e,t){return jr.a.createElement("div",{key:t,className:"mb-3"},jr.a.createElement("div",{className:"classification-banner partial-loading-item ".concat(Uk.a.partialBanner)}),jr.a.createElement(Qd,null),";")})))}function zk(e){var t=Object(_r.useDispatch)(),n=HE(),r=Qp().subtract(1,"year").toISOString(),i=Qp().toISOString(),a=o.useBasicFetch(hb),c=o.useBasicFetch(_k(r,i)),u=o.useBasicFetch(vx()),s=[];c.data&&c.data.forEach((function(e){return s.push(e.classificationId)}));var l=function(e,t){var n=Object(_r.useDispatch)();return Object(_r.useSelector)((function(r){var i;if(!(null===(i=e)||void 0===i?void 0:i.length))return null;for(var a=bi(e),c={},u={},s=0;s<a.length;s+=25){var l=a.slice(s,s+25),f=t(l),p=o.getResponse(r,f.key);u[s]=!!p.data,p.shouldFetch&&o.fetch(n,f),p.data&&p.data.forEach((function(e){return c[e.id]=e}))}return Object.keys(u).every((function(e){return u[e]}))?c:null}))}(s,(function(e){return Lk(e)}));function f(e,r){var i=function(){n.success(io.getPhrase("contentUpdates.contentUpdatesView",r?"followed":"unfollowed",{classification:l[e].name}))},a=r?bx([e],(function(){}),i):gx([e],(function(){}),i);o.fetch(t,a)}if(!(c.data&&a.data&&u.data&&l))return Cr.createElement(Vk,null);var p=function(e,t){return e&&t?e.map((function(e){return{showMore:e.videos.length>3,classification:t[e.classificationId],videos:e.videos.map((function(e){var n=e.video;return n.classification=t[e.classificationId],n})).filter((function(e){return e}))}})):null}(c.data,l),d=u.data.map((function(e){return e.id}));return Cr.createElement("div",{className:"bg-white padding-gutter content-updates"},Cr.createElement(Nk,{dashboardAppLink:e.appLinks.dashboardAppLink}),p.map((function(t){return Cr.createElement(Dk,{classification:t.classification,videos:t.videos,imageCdnUrl:a.data.imageCdnUrl,showMore:t.showMore,key:t.classification.id,appLinks:e.appLinks,followed:d.includes(t.classification.id),follow:f})})))}function Hk(e){var t,n=e.classificationId,r=Qp().subtract(1,"year").toISOString(),i=Qp().toISOString(),a=o.useBasicFetch(Pk(n)),c=o.useBasicFetch(_k(r,i)),u=null===(t=c.data)||void 0===t?void 0:t.find((function(e){return e.classificationId===n}));return c.data&&a.data?Cr.createElement("div",{className:"bg-white padding-gutter content-updates"},Cr.createElement(Fk,{classification:a.data,dashboardAppLink:e.appLinks.dashboardAppLink,contentUpdatesAppLink:e.appLinks.contentUpdatesAppLink}),Cr.createElement(th,{canEdit:!1,playlistId:"0",isUserSignedIn:!0,onSortComplete:function(){},videos:u.videos.map((function(e){return e.video})),getVideoAppLink:e.appLinks.getVideoAppLink,getSeriesAppLink:e.appLinks.getSeriesAppLink})):Cr.createElement(Cr.Fragment,null)}var Bk={getVideoAppLink:function(e){return{application:ge,action:se.VIDEO,args:[e.id]}},getSeriesAppLink:function(e){return{application:ge,action:se.SERIES,args:[e.id,Ja(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:Oe,action:de.CLASSIFICATION_UPDATE,args:[e.id,Ja(e.name)]}},getClassificationAppLink:function(e){return{application:Ee,action:fe.CLASSIFICATION,args:[e.id,Ja(e.name)]}},dashboardAppLink:{application:ge,action:se.HOME},contentUpdatesAppLink:{application:Oe,action:de.CONTENT_UPDATES}};function qk(e){return(qk="function"==typeof Symbol&&"symbol"==typeof Symbol.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 Yk(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 Gk(e,t,n){return t&&Yk(e.prototype,t),n&&Yk(e,n),e}function Kk(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&&Wk(e,t)}function Wk(e,t){return(Wk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jk(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zk(e);if(t){var o=Zk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xk(this,n)}}function Xk(e,t){return!t||"object"!==qk(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 Zk(e){return(Zk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qk,eC=function(e){Kk(n,e);var t=Jk(n);function n(){return $k(this,n),t.apply(this,arguments)}return Gk(n,[{key:"channelName",get:function(){return Oe}},{key:"appRoutes",get:function(){return{"content-updates":"contentUpdates","content-updates/:id(/:slug)":"classificationUpdate"}}}]),n}(r.AppRouter),tC=function(e){Kk(n,e);var t=Jk(n);function n(){return $k(this,n),t.apply(this,arguments)}return Gk(n,[{key:"contentUpdates",value:function(){this.layout.showChildView(Ur,Cr.createElement(zk,{appLinks:Bk}))}},{key:"classificationUpdate",value:function(e,t){this.layout.showChildView(Ur,Cr.createElement(Hk,{classificationId:e,appLinks:Bk}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return s.Radio.channel(p.ALERT).trigger("remove:alert",e)};this.layout.showChildView(zr,Cr.createElement(lp,{alerts:n,removeAlert:r}))}},{key:"name",get:function(){return"Content Updates Application"}},{key:"channelName",get:function(){return Oe}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:Ak,hideLeftNav:!0}}}}],[{key:"router",get:function(){return eC}}]),n}(r.Application);!function(e){e.Learner="learner",e.Staff="staff"}(Qk||(Qk={}));var nC,rC=function(e){return e===ph.Student?Qk.Learner:Qk.Staff};!function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(nC||(nC={}));var oC=function(){return fp(yp)};function iC(e){var t="".concat(TE.a.editSubjectsItem," d-flex position-relative px-3 justify-content-center align-items-center");return Cr.createElement(jd,{appLink:e.appLink,className:"text-decoration-none"},Cr.createElement("div",{className:t},Cr.createElement(vv,{svgName:dv.Edit,className:"mr-2 align-middle d-inline-block svg-container"}),Cr.createElement("p",{className:"h6 mb-0 align-middle text-truncate"},Cr.createElement(Dp,{namespace:"shared.subjectWidgetItem",phrase:"edit"}))))}var aC=n(51),cC=n.n(aC);function uC(e){var t=e.data,n=e.appLink,r=e.preloadImage,o=Object.assign(Object.assign({},n),{args:[t.id]});return jr.a.createElement("div",{className:"flex-shrink-0 p-1 col-6 col-sm-4 col-md-3 col-xl-2"},jr.a.createElement("div",{className:"position-relative ".concat(cC.a.itemContainer)},jr.a.createElement("div",{className:cC.a.image},jr.a.createElement(jd,{appLink:o},jr.a.createElement(Pw,{src:t.thumbnail.url,forceLoad:r})))),jr.a.createElement("div",{className:"p-2 bg-white ".concat(cC.a.textBoxContainer)},jr.a.createElement("h3",{className:"h6 text-center clamp-2 mb-0 ".concat(cC.a.textBox)},jr.a.createElement(jd,{appLink:o},t.name))))}var sC=function(e,t,n,r){return nd.urlBuilder("api/domain/v2/dashboards/widgets",{libraryType:e,customerType:t,userRole:n,countryCode:r})},lC=function(e,t,n,r,o){var i="api/domain/v2/dashboards/playlists/".concat(e,"/videos");return nd.urlBuilder(i,{maxRatingValue:t,userGroup:n,page:r,limit:o})},fC=function(e,t,n,r){return{url:sC(e,t,n,r),key:"widgets:".concat(e,":").concat(t,":").concat(r)}},pC=function(e,t,n,r,o){return{url:lC(e,t,n,r,o),key:"widget:".concat(e,":").concat(t,":").concat(n,":").concat(r)}},dC=function(){return{key:"content:updates",url:"/api/latest-releases?limit=25&removeRestrictions=true"}},hC=function(){return{key:"user:channels",url:"/api/exchange/userchannels",formatData:function(e){var t={other:[8016031,8841562,8957923,8615721],productionAU:[3010410,3010413,7441339,4153107],productionUK:[9510679,3010410,16061709,25458222],productionNZ:[9510679,3010410,16061709,25458222]},n=t[ClickView.Data.Config.env+ClickView.Data.Config.region.code]||t.other;return e.filter((function(e){return n.includes(e.id)}))}}},yC=n(14),mC=n.n(yC);function vC(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 bC(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 bC(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 bC(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 gC=io.encloseNamespace("dashboard.heroWidget");function wC(e){var t,n,r,o,i,a=e.childAppLink,c=e.childSeriesAppLink,u=e.playlistAppLink,s=e.fetch,l=(t=s,n=vC(Object(Cr.useState)(null),2),r=n[0],o=n[1],i=t(!0),Object(Cr.useEffect)((function(){i.data&&o(i.data)}),[i.data]),r);if(!l)return Cr.createElement(EC,null);var f=l.videos.data.slice(0,5);return Cr.createElement("div",{id:"heroCarousel",className:"carousel slide carousel-fade","data-interval":2e4,"data-ride":"carousel","data-pause":"hover"},Cr.createElement("div",{className:"carousel-inner"},f.map((function(e,t){return Cr.createElement(SC,{data:e,appLink:a,seriesAppLink:c,playlistAppLink:u,key:t,active:0===t})}))),f.length>1&&Cr.createElement(Cr.Fragment,null,Cr.createElement(OC,{count:f.length}),Cr.createElement(xC,{name:gC("previous"),type:"prev"}),Cr.createElement(xC,{name:gC("next"),type:"next"})))}var EC=function(){return Cr.createElement("div",{className:"".concat(mC.a.partial," partial-loading-background")})};function SC(e){var t=e.data,n=e.seriesAppLink,r=e.appLink,o=e.playlistAppLink,i=e.active,a=Object.assign(Object.assign({},r),{args:[t.id]}),c=Object.assign(Object.assign({},o),{args:[t.id]});return Cr.createElement("div",{className:"carousel-item ".concat(mC.a.bannerImage," ").concat(i?"active":""),style:{backgroundImage:"url(".concat(t.thumbnail.url,")")}},Cr.createElement("div",{className:"".concat(mC.a.metadataContainer," text-white")},Cr.createElement("h2",{className:"mb-2 h1 text-shadow"},Cr.createElement(JE,{video:t,appLink:n,className:"".concat(mC.a.series," text-reset text-truncate")}),Cr.createElement(jd,{appLink:a,className:"text-reset clamp-2"},t.name)),Cr.createElement("p",{className:"mb-3 font-weight-500 text-shadow clamp-3 ".concat(mC.a.description)},t.description),Cr.createElement("div",{className:"d-flex"},Cr.createElement(vg,{appLink:a,svgName:dv.Play,className:"btn btn-dark font-weight-500"},Cr.createElement(Dp,{namespace:"dashboard.heroWidget",phrase:"play"})),Cr.createElement(vg,{appLink:c,svgName:dv.Plus,className:"btn btn-white ml-2 font-weight-500"},Cr.createElement(Dp,{namespace:"dashboard.heroWidget",phrase:"addToPlaylist"})))))}function OC(e){for(var t=e.count,n=[],r=0;r<t;r++){var o="".concat(mC.a.indicator);0===r&&(o+=" active"),n.push(Cr.createElement("li",{className:o,key:r,"data-target":"#heroCarousel","data-slide-to":r}))}return Cr.createElement("ol",{className:"carousel-indicators ".concat(mC.a.indicatorContainer)},n)}var xC=function(e){return Cr.createElement("a",{className:"carousel-control-".concat(e.type),href:"#heroCarousel",role:"button","data-slide":e.type,style:{width:"3rem"}},Cr.createElement("span",{className:"carousel-control-".concat(e.type,"-icon"),"aria-hidden":"true"}),Cr.createElement("span",{className:"sr-only"},e.name))};function kC(e,t,n){var r=oC().onlineRole;return o.useBasicFetch(n?pC(e,vh(t),rC(r),1,25):null)}function CC(){return o.useBasicFetch(Yg()).data}function jC(){return o.useBasicFetch(dC())}function AC(){return o.useBasicFetch(hC())}function _C(){var e,t,n,r,i,a,c,s=oC().hasCurriculum,l=o.useBasicFetch(Oi),f=(e=l.data,r=oC(),i=r.onlineCustomerType,a=r.onlineRole,c=(null===(t=e)||void 0===t?void 0:t.countryCode)&&fC(nC.HostedLibrary,i,a,null===(n=e)||void 0===n?void 0:n.countryCode),o.useBasicFetch(c).data),p=u.findWhere(f,(function(e){return e.type===lE.Hero})),d={dashboardVideo:{application:xe,action:he.VIDEO},dashboardCollection:{application:xe,action:he.DASHBOARD},curriculum:{application:xe,action:he.CURRICULUM},classification:{application:Ee,action:fe.CLASSIFICATION},series:{application:Ee,action:fe.SERIES},subjectPreferences:{application:Ee,action:fe.PREFERENCES,params:{step:"subjects"}},addToPlaylist:{application:xe,action:he.ADD_TO_PLAYLIST},contentUpdates:{application:xe,action:he.CONTENT_UPDATES},userChannels:{application:xe,action:he.USER_CHANNELS},userChannel:{application:xe,action:he.USER_CHANNEL}};return Cr.createElement("div",{className:"dashboard-widgets bg-white"},p?Cr.createElement(wC,{fetch:u.partial(kC,p.collectionId.toString(),l.data),childAppLink:d.dashboardVideo,childSeriesAppLink:d.series,playlistAppLink:d.addToPlaylist}):Cr.createElement(EC,null),Cr.createElement("div",{className:"py-3 px-4"},Cr.createElement("div",{className:"pb-3"},Cr.createElement(kO,{fetch:CC,childAppLink:d.classification,childComponent:DE,endComponent:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cr.createElement(iC,Object.assign({},t,{appLink:d.subjectPreferences}))},headingPhraseKey:"teach",lazyLoad:!0})),s&&Cr.createElement(jd,{appLink:d.curriculum,className:"pb-3 pl-1 d-inline-block text-info"},Cr.createElement(Dp,{namespace:"dashboard.dashboard",phrase:"curriculum"})),Cr.createElement(uO,{name:io.getPhrase("dashboard.dashboard","contentUpdates"),type:lE.LargeRow,contents:dE.Videos,fetch:jC,childComponent:function(e){return Cr.createElement(NO,Object.assign({},e,{seriesAppLink:d.series}))},appLink:d.contentUpdates,childAppLink:d.dashboardVideo,lazyLoad:!0}),f&&f.slice(0,3).map((function(e,t){return e.type!==lE.Hero&&Cr.createElement(uO,{key:t,type:e.type,contents:dE.Videos,fetch:u.partial(kC,e.collectionId.toString(),l.data),setData:function(e){return e.videos.data},childComponent:function(e){return Cr.createElement(NO,Object.assign({},e,{seriesAppLink:d.series}))},appLink:d.dashboardCollection,childAppLink:d.dashboardVideo,lazyLoad:!0})})),Cr.createElement(uO,{name:io.getPhrase("dashboard.dashboard","featuredChannels"),type:lE.Row,contents:dE.UserChannels,fetch:AC,childComponent:uC,appLink:d.userChannels,childAppLink:d.userChannel,lazyLoad:!0}),f&&f.slice(3).map((function(e,t){return e.type!==lE.Hero&&Cr.createElement(uO,{key:t,type:e.type,contents:dE.Videos,fetch:u.partial(kC,e.collectionId.toString(),l.data),setData:function(e){return e.videos.data},childComponent:function(e){return Cr.createElement(NO,Object.assign({},e,{seriesAppLink:d.series}))},appLink:d.dashboardCollection,childAppLink:d.dashboardVideo,lazyLoad:!0})}))))}function LC(e){return(LC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function PC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NC(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 RC(e,t,n){return t&&NC(e.prototype,t),n&&NC(e,n),e}function TC(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)}function IC(e,t){return(IC=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=MC(e);if(t){var o=MC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return DC(this,n)}}function DC(e,t){return!t||"object"!==LC(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 MC(e){return(MC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var UC,VC=function(e){TC(n,e);var t=FC(n);function n(){return PC(this,n),t.apply(this,arguments)}return RC(n,[{key:"channelName",get:function(){return xe}},{key:"appRoutes",get:function(){return{"(/)":"index"}}},{key:"appLinks",get:function(){return["addToPlaylist"]}},{key:"externalRoutes",get:function(){return{"dashboard/:id(/:name/)":"dashboard","videos/:id":"video","albert/search":"curriculum","content-updates":"contentUpdates","exchange/channels":"userChannels","exchange/channels/:id":"userChannel"}}}]),n}(r.AppRouter),zC=function(e){TC(n,e);var t=FC(n);function n(){return PC(this,n),t.apply(this,arguments)}return RC(n,[{key:"index",value:function(){this.layout.showChildView(Ur,jr.a.createElement(_C,null))}},{key:"addToPlaylist",value:function(e){ClickView.Shared.Utils.FutureCoreHelper.addToPlaylistPopup(e)}},{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return xe}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:yo,hideLeftNav:!0}}}}],[{key:"router",get:function(){return VC}}]),n}(lg);function HC(e){return(HC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function BC(e){return function(e){if(Array.isArray(e))return qC(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 qC(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 qC(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 qC(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 $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 YC(e,t){return(YC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function GC(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WC(e);if(t){var o=WC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return KC(this,n)}}function KC(e,t){return!t||"object"!==HC(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 WC(e){return(WC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Fifo="FifoMemoryCache"}(UC||(UC={}));var JC,XC=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&&YC(e,t)}(i,e);var t,n,r,o=GC(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)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=i,(n=[{key:"removeCacheKey",value:function(e){this.cachedkeys=u.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||P.throw(new K("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=u.object(this.cachedkeys,this.cachedkeys),o=[];u.each(e,(function(e){var t;r[e]&&o.push(e);var n=new RegExp(e,"i"),i=u.filter(r,(function(e){return n.test(e)}));(t=o).push.apply(t,BC(i))})),o.length&&(o=u.uniq(o),u.each(o,(function(e){delete n.cache[e],u.isFunction(t)&&t(e)})),this.cachedkeys=u.without.apply(u,[this.cachedkeys].concat(BC(o))))}},{key:"name",get:function(){return UC.Fifo}}])&&$C(t.prototype,n),r&&$C(t,r),i}(U);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(JC||(JC={}));var ZC=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 QC(e){return(QC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ej(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 tj(e,t){return(tj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nj(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oj(e);if(t){var o=oj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rj(this,n)}}function rj(e,t){return!t||"object"!==QC(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 oj(e){return(oj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ij=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&&tj(e,t)}(i,e);var t,n,r,o=nj(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,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=i,(n=[{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=fo.GET);var o=u.defaults(r,{forceHttps:!1}),i={url:e,method:n,type:n};t&&(i.data=n===fo.POST||n===fo.PUT?JSON.stringify(t):t),o.forceHttps&&(i.url=this.makeHttps(i.url)),o.traditional&&(i.traditional=o.traditional);var a=$.ajax(i);return u.keys(this.successMiddleware).length&&a.done(u.values(this.successMiddleware)),u.keys(this.errorMiddleware).length&&a.fail(u.values(this.errorMiddleware)),a}},{key:"create",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,fo.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,fo.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,fo.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,fo.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,t,n){var r=e.responseJSON,o=oa;switch(o.code=e.status,o.message=ZC(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),e.status){case 400:o.type=ta.BadRequest;break;case 401:o.type=ta.Unauthorized;break;case 403:o.type=ta.Forbidden;break;case 404:o.type=ta.NotFound;break;case 500:o.type=ta.InternalServer}return o}},{key:"name",get:function(){return JC.Ajax}}])&&ej(t.prototype,n),r&&ej(t,r),i}(l.Object);function aj(e){return(aj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cj(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 uj(e,t){return(uj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sj(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fj(e);if(t){var o=fj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lj(this,n)}}function lj(e,t){return!t||"object"!==aj(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 fj(e){return(fj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pj=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&&uj(e,t)}(i,e);var t,n,r,o=sj(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,"Not Implemented")}return t=i,(n=[{key:"name",get:function(){return"NotImplementedError"}}])&&cj(t.prototype,n),r&&cj(t,r),i}(A),dj="popup:behavior";function hj(e){return(hj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mj(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 vj(e,t){return(vj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bj(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wj(e);if(t){var o=wj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gj(this,n)}}function gj(e,t){return!t||"object"!==hj(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 wj(e){return(wj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ej=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&&vj(e,t)}(i,e);var t,n,r,o=bj(i);function i(){return yj(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(p.SHELL,y.ROUTING_END,this.scrollTop),this.listenTo(dj,"popup:render",this.cancelScrollTop),this.listenTo(p.POPUP,"popup:render",this.cancelScrollTop)}},{key:"cancelScrollTop",value:function(){this.preventScroll=!0}},{key:"scrollTop",value:function(){this.preventScroll?this.preventScroll=!1:$(window).scrollTop(0)}},{key:"name",get:function(){return Xr.SCROLL}}])&&mj(t.prototype,n),r&&mj(t,r),i}(U),Sj="current:user",Oj="workspace",xj="config",kj="config:data:service",Cj="user:data:service",jj="version";function Aj(e){return(Aj="function"==typeof Symbol&&"symbol"==typeof Symbol.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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lj(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 Pj(e,t){return(Pj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nj(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tj(e);if(t){var o=Tj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rj(this,n)}}function Rj(e,t){return!t||"object"!==Aj(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 Tj(e){return(Tj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ij=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&&Pj(e,t)}(i,e);var t,n,r,o=Nj(i);function i(){return _j(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getConfig",value:function(e,t){return this.get({resource:"/api/config",eventPrefix:xj,expiryTime:ue.STANDARD,callback:e,errorCallback:t})}},{key:"getVersion",value:function(e){return this.get({resource:"/api/version",eventPrefix:"version",bootstrapName:jj,callback:e,expiryTime:ue.STANDARD})}},{key:"name",get:function(){return dp.Config}},{key:"channelName",get:function(){return kj}}])&&Lj(t.prototype,n),r&&Lj(t,r),i}(oe);function Fj(e){return(Fj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mj(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 Uj(e,t){return(Uj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vj(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hj(e);if(t){var o=Hj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zj(this,n)}}function zj(e,t){return!t||"object"!==Fj(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 Hj(e){return(Hj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bj=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&&Uj(e,t)}(i,e);var t,n,r,o=Vj(i);function i(){return Dj(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getCurrentUser",value:function(e,t){return this.get({resource:"/api/currentuser",eventPrefix:Sj,expiryTime:ue.STANDARD,callback:e,errorCallback:t})}},{key:"getWorkspace",value:function(e,t){return this.get({resource:"/api/domain/v2/me/workspace?query=categorytree",eventPrefix:Oj,expiryTime:ue.STANDARD,callback:e,errorCallback:t})}},{key:"name",get:function(){return dp.User}},{key:"channelName",get:function(){return Cj}}])&&Mj(t.prototype,n),r&&Mj(t,r),i}(oe);"".concat(Sj,":sync");function qj(e){return(qj="function"==typeof Symbol&&"symbol"==typeof Symbol.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,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 Yj(e,t){return(Yj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gj(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wj(e);if(t){var o=Wj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kj(this,n)}}function Kj(e,t){return!t||"object"!==qj(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 Wj(e){return(Wj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jj=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&&Yj(e,t)}(i,e);var t,n,r,o=Gj(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,e)).imageUrls=e.imageUrls,t}return t=i,(n=[{key:"getImageUrls",value:function(){return this.imageUrls}},{key:"name",get:function(){return hp}}])&&$j(t.prototype,n),r&&$j(t,r),i}(r.Service);function Xj(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 Zj={curriculum:!1},Qj=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=Object.assign({onlineModules:Zj},t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return yp}},{key:"hasCurriculum",get:function(){return this.options.onlineModules.curriculum}},{key:"isTeacher",get:function(){return this.options.onlineRole===ph.Staff}},{key:"onlineRole",get:function(){return this.options.onlineRole}},{key:"onlineCustomerType",get:function(){return this.options.customerType}}])&&Xj(t.prototype,n),r&&Xj(t,r),e}();function eA(e){return(eA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nA(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 rA(e,t){return(rA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 iA(this,n)}}function iA(e,t){return!t||"object"!==eA(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 cA=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&&rA(e,t)}(i,e);var t,n,r,o=oA(i);function i(){return tA(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"AlertError"}}])&&nA(t.prototype,n),r&&nA(t,r),i}(r.SilentError);function uA(e){return(uA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dA(e);if(t){var o=dA(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"!==uA(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 dA(e){return(dA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hA=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)}(a,e);var t,n,o,i=fA(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)).dialogOptions||r.ErrorHelper.throw(new K("Please provide DialogOptions for your implementation of DialogError")),t}return t=a,(n=[{key:"onDone",value:function(){}},{key:"onFail",value:function(){}},{key:"name",get:function(){return"DialogError"}}])&&sA(t.prototype,n),o&&sA(t,o),a}(r.SilentError);function yA(e){return(yA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mA(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 vA(e,t){return(vA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var o=wA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gA(this,n)}}function gA(e,t){return!t||"object"!==yA(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 wA(e){return(wA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var EA=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&&vA(e,t)}(i,e);var t,n,r,o=bA(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).viewObjects={},e}return t=i,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"updateViewModel",value:function(e,t){var n=this.mergeData(t,e.toJSON());return e instanceof Dn&&e.set(n,{silent:!0}),e instanceof An&&!(e instanceof Dn)&&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),c=o?new o(a):new An(a);return this.viewObjects[e]=c,i&&!n?(this.setLocalData(e,c,null,r),this.setupChangeListeners(e,c,r)):i&&n&&this.setupChangeListeners(e,c,r),c}},{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 An&&(o=t.pick(i.persistProps)),this.getStorageHelper(i.type).set(e,o))}},{key:"setupChangeListeners",value:function(e,t,n){var r=this,o=n.storage;!o||o&&!o.persistProps||("string"==typeof o.persistProps&&(o.persistProps=[o.persistProps]),u.each(o.persistProps,(function(o){r.listenTo(t,"change:".concat(o),u.partial(r.setLocalData,e,u,u,n))})))}},{key:"mergeData",value:function(e,t){return t?u.isObject(e)&&u.isObject(t)?u.extend(e,t):void P.throw(new K("defaultValues and existingData are not of the same datatype and cannot be merged")):e}},{key:"getStorageHelper",value:function(e){switch(e){case mh.LocalStorage:return Dh;case mh.SessionStorage:return Mh}}},{key:"name",get:function(){return"ViewModelService"}}])&&mA(t.prototype,n),r&&mA(t,r),i}(U).Instance;function SA(e){return(SA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function OA(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 xA(e,t){return(xA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jA(e);if(t){var o=jA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return CA(this,n)}}function CA(e,t){return!t||"object"!==SA(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 jA(e){return(jA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var AA=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&&xA(e,t)}(a,e);var t,n,o,i=kA(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)).clients={},t.enrichers={},EA.get("application:options").set(e),t.bindNavigationListener(),t}return t=a,(n=[{key:"registerTransport",value:function(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}},{key:"bindTransportListeners",value:function(){this.listenTo(kc,Oc.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(u.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.ErrorHelper.throw(new K("Classes registered with ".concat(this.name," must have a unique name property.")));var n=function(t){return Br(e.prototype.isType)&&e.prototype.isType(t)};(n("BaseAnalyticsClient")||"CollectionApiClient"===t)&&this.clients[t]&&r.ErrorHelper.throw(new K("A client class with the name: ".concat(t," has already been registered with ").concat(this.name))),n("BaseAnalyticsEnricher")&&this.enrichers[t]&&r.ErrorHelper.throw(new K("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(p.SHELL,r.EventNames.URL_CHANGE,this.logNavigate)}},{key:"logNavigate",value:function(e,t){Rc.logNavigate(e,t)}},{key:"name",get:function(){return hc.Analytics}}])&&OA(t.prototype,n),o&&OA(t,o),a}(r.Service);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 LA(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 PA(e,t){return(PA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function NA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 RA(this,n)}}function RA(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 TA(e){return(TA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var IA=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&&PA(e,t)}(i,e);var t,n,r,o=NA(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:"shouldLog",value:function(e){return!0}},{key:"log",value:function(e){}},{key:"isType",value:function(e){return e===i.type}}])&&LA(t.prototype,n),r&&LA(t,r),i}(r.Service);function FA(e){return(FA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function DA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MA(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 UA(e,t){return(UA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function VA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 zA(this,n)}}function zA(e,t){return!t||"object"!==FA(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)}IA.type="BaseAnalyticsClient";var BA=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&&UA(e,t)}(a,e);var t,n,o,i=VA(a);function a(){return DA(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldLog",value:function(){return h.isDevelopment}},{key:"log",value:function(e){var t=u.clone(e);for(var n in e){var o=t[n];(o instanceof r.Model||o instanceof r.Collection)&&(t[n]=o.toJSON())}console.log("Event Debugger: ",t)}},{key:"name",get:function(){return"DebuggerClient"}}])&&MA(t.prototype,n),o&&MA(t,o),a}(IA);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 $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 YA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GA(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&&KA(e,t)}function KA(e,t){return(KA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function WA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=XA(e);if(t){var o=XA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return JA(this,n)}}function JA(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 XA(e){return(XA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ZA=function(e){GA(i,e);var t,n,r,o=WA(i);function i(){return YA(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"publish",value:function(e){this.getChannel().trigger(Oc.Outlet,e)}},{key:"subscribe",value:function(e){var t=e,n=function(n){Br(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};u.isFunction(t.listenTo)?t.listenTo(this.getChannel(),Oc.Outlet,n):this.listenTo(this.getChannel(),Oc.Outlet,n)}},{key:"name",get:function(){return"EventTransport"}},{key:"channelName",get:function(){return"event:transport"}}])&&$A(t.prototype,n),r&&$A(t,r),i}(function(e){GA(n,e);var t=WA(n);function n(){return YA(this,n),t.apply(this,arguments)}return n}(l.Object)),QA="URLSearchParams"in self,e_="Symbol"in self&&"iterator"in Symbol,t_="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),n_="FormData"in self,r_="ArrayBuffer"in self;if(r_)var o_=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i_=ArrayBuffer.isView||function(e){return e&&o_.indexOf(Object.prototype.toString.call(e))>-1};function a_(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 c_(e){return"string"!=typeof e&&(e=String(e)),e}function u_(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return e_&&(t[Symbol.iterator]=function(){return t}),t}function s_(e){this.map={},e instanceof s_?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 l_(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f_(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function p_(e){var t=new FileReader,n=f_(t);return t.readAsArrayBuffer(e),n}function d_(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h_(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:t_&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n_&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:QA&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r_&&t_&&function(e){return e&&DataView.prototype.isPrototypeOf(e)}(e)?(this._bodyArrayBuffer=d_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r_&&(ArrayBuffer.prototype.isPrototypeOf(e)||i_(e))?this._bodyArrayBuffer=d_(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):QA&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t_&&(this.blob=function(){var e=l_(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?l_(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p_)}),this.text=function(){var e,t,n,r=l_(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f_(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)},n_&&(this.formData=function(){return this.text().then(v_)}),this.json=function(){return this.text().then(JSON.parse)},this}s_.prototype.append=function(e,t){e=a_(e),t=c_(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},s_.prototype.delete=function(e){delete this.map[a_(e)]},s_.prototype.get=function(e){return e=a_(e),this.has(e)?this.map[e]:null},s_.prototype.has=function(e){return this.map.hasOwnProperty(a_(e))},s_.prototype.set=function(e,t){this.map[a_(e)]=c_(t)},s_.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},s_.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),u_(e)},s_.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),u_(e)},s_.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),u_(e)},e_&&(s_.prototype[Symbol.iterator]=s_.prototype.entries);var y_=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m_(e,t){var n,r,o=(t=t||{}).body;if(e instanceof m_){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new s_(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 s_(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),y_.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 v_(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 b_(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 s_(t.headers),this.url=t.url||"",this._initBody(e)}m_.prototype.clone=function(){return new m_(this,{body:this._bodyInit})},h_.call(m_.prototype),h_.call(b_.prototype),b_.prototype.clone=function(){return new b_(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s_(this.headers),url:this.url})},b_.error=function(){var e=new b_(null,{status:0,statusText:""});return e.type="error",e};var g_=[301,302,303,307,308];b_.redirect=function(e,t){if(-1===g_.indexOf(t))throw new RangeError("Invalid status code");return new b_(null,{status:t,headers:{location:e}})};var w_=self.DOMException;try{new w_}catch(e){(w_=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),w_.prototype.constructor=w_}function E_(e,t){return new Promise((function(n,r){var o=new m_(e,t);if(o.signal&&o.signal.aborted)return r(new w_("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 s_,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 b_(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 w_("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&&(t_?i.responseType="blob":r_&&-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)}))}E_.polyfill=!0,self.fetch||(self.fetch=E_,self.Headers=s_,self.Request=m_,self.Response=b_);var S_=n(242),O_=n.n(S_),x_=n(243);function k_(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 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,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 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 j_={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 5.0/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 A_(e,t,n){var r=k_(t.exec(n)||[],3),o=(r[0],r[1],r[2]);return o||(o="Unknown"),{name:e,version:o}}function __(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 L_=function(){var e=window.navigator.userAgent;return j_.linux.test(e)?__("Linux",null,e):j_.unix.test(e)?__("Unix",null,e):j_.mac.test(e)?__("Macintosh",j_.osxVersion,e):j_.windows.test(e)?function(e,t){var n={name:e,version:null};return j_.win2000.test(t)&&(n.version="2000"),j_.winXP.test(t)&&(n.version="XP"),j_.winVista.test(t)&&(n.version="Vista"),j_.win7.test(t)&&(n.version="7"),j_.win8.test(t)&&(n.version="8"),j_.win81.test(t)&&(n.version="8.1"),j_.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):j_.iphone.test(e)||j_.ipad.test(e)?__("iOS",j_.iosVersion,e):j_.android.test(e)?__("Android",j_.androidVersion,e):j_.blackberry.test(e)?__("Android",j_.blackberryVersion,e):j_.windowsPhone.test(e)?__("Android",j_.windowsPhoneVersion,e):{name:"Unknown",version:"Unknown"}},P_=function(){var e=window.navigator.userAgent;return j_.chrome.test(e)?A_("Chrome",j_.generalVersion,e):j_.firefox.test(e)?A_("Firefox",j_.generalVersion,e):j_.safari.test(e)?A_("Safari",j_.generalVersion,e):j_.ie.test(e)?A_("Internet Explorer",j_.ieVersion,e):j_.edge.test(e)?A_("Edge",j_.edgeVersion,e):j_.opera.test(e)?A_("Opera",j_.operaVersion,e):{name:"Unknown",version:"Unknown"}};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)}var R_,T_=function(e){var t=N_(e);return"function"===t||"object"===t&&!!e},I_=function(e){return"function"==typeof e};!function(e){e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1"}(R_||(R_={}));var F_,D_,M_={CvApSoutheast1:{displayName:"ClickView Asia Pacific (AU)",systemName:R_.CvApSoutheast1},CvApSoutheast2:{displayName:"ClickView Asia Pacific (NZ)",systemName:R_.CvApSoutheast2},CvEuWest1:{displayName:"ClickView EU West (UK)",systemName:R_.CvEuWest1}};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.AU="au",e.NZ="nz",e.UK="uk"}(F_||(F_={}));var V_=(U_(D_={},F_.AU,R_.CvApSoutheast1),U_(D_,F_.NZ,R_.CvApSoutheast2),U_(D_,F_.UK,R_.CvEuWest1),D_);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)}}var H_=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):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,c)}u((r=r.apply(e,t||[])).next())}))},B_=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:"log",value:function(e){return H_(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.shouldLog(e)){t.next=2;break}return t.abrupt("return");case 2:return this.validateEvent(e),t.t0=this,t.next=6,this.formatData(e);case 6:return t.t1=t.sent,t.next=9,t.t0.postData.call(t.t0,t.t1);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"validateOptions",value:function(){if(!I_(this.options.getUser))throw new Error("getUser option is required.")}},{key:"shouldLog",value:function(e){return!I_(this.options.shouldLog)||this.options.shouldLog(e)}},{key:"postData",value:function(e){return H_(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.getRegionalUrl(this.options.collectionApiUrls);case 2:return n=t.sent,r=JSON.stringify(e),o=Object.assign({"Content-Type":"application/json"},this.getSignatureHeader(r)),t.next=7,fetch("".concat(n,"/v1/ingest"),{method:"POST",mode:"cors",headers:o,body:r});case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getSignatureHeader",value:function(e){var t=new O_.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 H_(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===R_.CvEuWest1?6:t.t0===R_.CvApSoutheast2?7:(t.t0,R_.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(!T_(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 H_(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 H_(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 I_(this.options.formatData)?this.options.formatData(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}({},e.actionContext.entity,e.data)}},{key:"getUserData",value:function(){var e;return H_(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.options.getUser();case 2:if(n=t.sent,null===(e=n)||void 0===e?void 0:e.id){t.next=5;break}return t.abrupt("return");case 5:return t.t0=n.id,t.t1=n.role,t.t2=n.customerId,t.t3=n.countryCode,t.next=11,this.getRegion();case 11:return t.t4=t.sent,t.t5={id:t.t2,country:t.t3,region:t.t4},t.abrupt("return",{id:t.t0,role:t.t1,customer:t.t5});case 14:case"end":return t.stop()}}),t,this)})))}},{key:"getRegion",value:function(){var e,t;return H_(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r,o,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.options.getUser();case 2:return r=n.sent,o=null===(t=null===(e=r)||void 0===e?void 0:e.countryCode)||void 0===t?void 0:t.toLowerCase(),i=o?V_[o]:this.options.regionName,n.abrupt("return",this.getRegionByName(i));case 6:case"end":return n.stop()}}),n,this)})))}},{key:"getPlatformMetadata",value:function(){return{browser:P_(),os:L_(),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:x_.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:e.eventVersion}}},{key:"getRegionByName",value:function(e){var t;return Object.values(M_).forEach((function(n){n.systemName===e&&(t=n)})),t}},{key:"name",get:function(){return"CollectionApiClient"}}])&&z_(t.prototype,n),r&&z_(t,r),e}(),q_=function(){return!0},$_=function(){return!1};var Y_=function(e){return e};function G_(e){if(e&&e.code)return e.code}function K_(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 W_(e){if(e&&e.length){var t=e[0];return{id:t.id,title:t.name}}}var J_,X_,Z_,Q_=function(e){var t=e.model,n={id:t.id,year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=G_(t.rating),o=K_(t.series),i=W_(t.categories),a=K_(t.owner,{ignoreTitle:!0}),c=K_(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},eL={getUploadData:function(e,t){var n=t.actionContext.entity;if(n===xa.Video)return eL.formatVideoUpload(e,t);if(n===xa.Resource||n===xa.Subtitle)return eL.formatResourceUpload(e);if(n===xa.Banner||n===xa.Thumbnail)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(e,t){var n=t.actionContext.workflowPhase;return n===Ca.Start?eL.getStartVideoUploadData(e):n===Ca.Discard?eL.getDiscardVideoUploadData(e):n===Ca.Complete?eL.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,count:e.length}})):[]},formatResourceUpload:function(e){var t={id:e.id,name:e.name};return T_(e.metadata)&&(t.type=e.metadata.type),t}};function tL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nL=(tL(J_={},Oa.Navigate,$_),tL(J_,Oa.Click,q_),tL(J_,Oa.Search,q_),tL(J_,Oa.InstantSearch,q_),tL(J_,Oa.Play,q_),tL(J_,Oa.Stream,q_),tL(J_,Oa.Rename,q_),tL(J_,Oa.Move,q_),tL(J_,Oa.Create,q_),tL(J_,Oa.Delete,q_),tL(J_,Oa.Associate,q_),tL(J_,Oa.Dissociate,q_),tL(J_,Oa.Filter,q_),tL(J_,Oa.Sort,q_),tL(J_,Oa.Approve,q_),tL(J_,Oa.Reject,q_),tL(J_,Oa.Disable,q_),tL(J_,Oa.Upload,q_),tL(J_,Oa.Download,$_),tL(J_,Oa.SetAccess,q_),tL(J_,Oa.AddToLocalCache,$_),tL(J_,Oa.Share,q_),tL(J_,Oa.Edit,q_),tL(J_,Oa.Suggest,q_),tL(J_,Oa.ResolveWarning,q_),tL(J_,Oa.DismissWarning,q_),tL(J_,Oa.EditAssoc,q_),J_),rL=(tL(X_={},Oa.Search,Y_),tL(X_,Oa.InstantSearch,Y_),tL(X_,Oa.Play,Y_),tL(X_,Oa.Stream,Q_),tL(X_,Oa.Click,Y_),tL(X_,Oa.Filter,Y_),tL(X_,Oa.Sort,Y_),tL(X_,Oa.SetAccess,Y_),tL(X_,Oa.Approve,Y_),tL(X_,Oa.Reject,Y_),tL(X_,Oa.Create,Y_),tL(X_,Oa.Delete,Y_),tL(X_,Oa.Rename,Y_),tL(X_,Oa.Move,Y_),tL(X_,Oa.Edit,Y_),tL(X_,Oa.Share,Y_),tL(X_,Oa.Disable,Y_),tL(X_,Oa.Suggest,Y_),tL(X_,Oa.Upload,eL.getUploadData),tL(X_,Oa.ResolveWarning,Y_),tL(X_,Oa.DismissWarning,Y_),X_),oL=(tL(Z_={},Oa.Search,"search"),tL(Z_,Oa.InstantSearch,"search"),Z_),iL={shouldLog:function(e){return!!nL[e.type](e)},formatData:function(e){var t=rL[e.type],n=I_(t)?t(e.data,e):e.data,r=e.actionContext.entity;return oL[e.type]&&(r=oL[e.type]),tL({},r,n)}};function aL(e){return(aL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uL(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 lL(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pL(e);if(t){var o=pL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fL(this,n)}}function fL(e,t){return!t||"object"!==aL(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 pL(e){return(pL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dL=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=lL(i);function i(){return cL(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}}])&&uL(t.prototype,n),r&&uL(t,r),i}(r.Service);function hL(e){return(hL="function"==typeof Symbol&&"symbol"==typeof Symbol.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){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 mL(e,t){return(mL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vL(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gL(e);if(t){var o=gL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bL(this,n)}}function bL(e,t){return!t||"object"!==hL(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 gL(e){return(gL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}dL.type="BaseAnalyticsEnricher";var wL=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&&mL(e,t)}(a,e);var t,n,o,i=vL(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:"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 Qp.utc().toISOString()}},{key:"getProductInfo",value:function(){return{name:this.productName,version:this.productVersion}}},{key:"getRequestInfo",value:function(){return{referrer:r.LocationUtils.GetCurrentReferrer(),requestUrl:r.LocationUtils.GetCurrentUrl()}}},{key:"getClientInfo",value:function(){var e=LS(),t=PS();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}},{key:"name",get:function(){return"CoreContextEnricher"}}])&&yL(t.prototype,n),o&&yL(t,o),a}(dL);function EL(e){return(EL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OL(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 xL(e,t){return(xL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kL(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jL(e);if(t){var o=jL(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"!==EL(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 jL(e){return(jL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var 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&&xL(e,t)}(i,e);var t,n,r,o=kL(i);function i(){return SL(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.user=EA.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}}},{key:"name",get:function(){return"UserDataEnricher"}}])&&OL(t.prototype,n),r&&OL(t,r),i}(dL);n.d(t,"Layouts",(function(){return i})),n.d(t,"DataServices",(function(){return a})),n.d(t,"Services",(function(){return c})),n.d(t,"LanguageDataService",(function(){return Be})),n.d(t,"OnlineContextService",(function(){return kr})),n.d(t,"OnlineLayoutView",(function(){return Mi})),n.d(t,"DefaultApplication",(function(){return Wi})),n.d(t,"FlightPlaylistDataService",(function(){return Ba})),n.d(t,"PlaylistApplication",(function(){return Gb})),n.d(t,"OnlinePlaylistsLayoutView",(function(){return ng})),n.d(t,"SubjectApplication",(function(){return yk})),n.d(t,"SubjectPlaylistsApplication",(function(){return jk})),n.d(t,"ContentUpdatesApplication",(function(){return tC})),n.d(t,"DashboardApplication",(function(){return zC})),n.d(t,"Core",(function(){return r})),n.d(t,"InstanceManager",(function(){return sr})),n.d(t,"BaseAlertService",(function(){return uc})),n.d(t,"AlertType",(function(){return Za})),n.d(t,"FifoMemoryCache",(function(){return XC})),n.d(t,"AjaxDataProvider",(function(){return ij})),n.d(t,"ConcurrencyHelper",(function(){return ce})),n.d(t,"UrlHelper",(function(){return nd})),n.d(t,"DevError",(function(){return K})),n.d(t,"NotImplementedError",(function(){return pj})),n.d(t,"CommonServices",(function(){return Xr})),n.d(t,"LanguageService",(function(){return io})),n.d(t,"Flight",(function(){return o})),n.d(t,"ScrollService",(function(){return Ej})),n.d(t,"CacheDurations",(function(){return ue})),n.d(t,"SharedDataServices",(function(){return dp})),n.d(t,"ConfigDataService",(function(){return Ij})),n.d(t,"UserDataService",(function(){return Bj})),n.d(t,"ImageUrlService",(function(){return Jj})),n.d(t,"AnalyticsService",(function(){return AA})),n.d(t,"DebuggerClient",(function(){return BA})),n.d(t,"EventTransport",(function(){return ZA})),n.d(t,"CollectionApiClient",(function(){return B_})),n.d(t,"CollectionApiClientHelper",(function(){return iL})),n.d(t,"CountryRegionMapping",(function(){return V_})),n.d(t,"CoreContextEnricher",(function(){return wL})),n.d(t,"UserDataEnricher",(function(){return AL})),n.d(t,"AppOptionsService",(function(){return Qj})),n.d(t,"AlertError",(function(){return cA})),n.d(t,"DialogError",(function(){return hA})),n.d(t,"ErrorPageError",(function(){return VO}))}])}));
|
|
17
|
+
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case u:case c:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case v:case m:case s:return e;default:return t}}case i:return t}}}function O(e){return S(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return O(e)||S(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return S(e)===d},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===v},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===u},t.isStrictMode=function(e){return S(e)===c},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===c||e===h||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===E||e.$$typeof===b)},t.typeOf=S},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(34),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(323),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(324);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(75);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(326),o=n(54),i=n(77);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(327),o=n(332),i=n(333),a=n(334),c=n(335);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(53);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(186),o=n(329),i=n(35),a=n(187),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:c).test(a(e))}},function(e,t,n){var r,o=n(330),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(13)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(53),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(53),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(53);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(55),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(55);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(55);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(55);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(56);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(56);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(56);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(56);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(34),o=n(188),i=n(12),a=n(74),c=r?r.prototype:void 0,u=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(33),o=n(18);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(349);e.exports=function(e,t){return r(e,5,t="function"==typeof t?t:void 0)}},function(e,t,n){var r=n(79),o=n(355),i=n(191),a=n(357),c=n(363),u=n(366),s=n(196),l=n(367),f=n(369),p=n(201),d=n(370),h=n(44),y=n(375),m=n(376),v=n(381),b=n(12),g=n(80),w=n(383),E=n(35),S=n(385),O=n(36),x={};x["[object Arguments]"]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object DataView]"]=x["[object Boolean]"]=x["[object Date]"]=x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Map]"]=x["[object Number]"]=x["[object Object]"]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object Symbol]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Error]"]=x["[object Function]"]=x["[object WeakMap]"]=!1,e.exports=function e(t,n,k,C,j,A){var _,L=1&n,P=2&n,N=4&n;if(k&&(_=j?k(t,C,j,A):k(t)),void 0!==_)return _;if(!E(t))return t;var R=b(t);if(R){if(_=y(t),!L)return s(t,_)}else{var T=h(t),I="[object Function]"==T||"[object GeneratorFunction]"==T;if(g(t))return u(t,L);if("[object Object]"==T||"[object Arguments]"==T||I&&!j){if(_=P||I?{}:v(t),!L)return P?f(t,c(_,t)):l(t,a(_,t))}else{if(!x[T])return j?t:{};_=m(t,T,L)}}A||(A=new r);var F=A.get(t);if(F)return F;A.set(t,_),S(t)?t.forEach((function(r){_.add(e(r,n,k,r,t,A))})):w(t)&&t.forEach((function(r,o){_.set(o,e(r,n,k,o,t,A))}));var D=N?P?d:p:P?keysIn:O,M=R?void 0:D(t);return o(M||t,(function(r,o){M&&(r=t[o=r]),i(_,o,e(r,n,k,o,t,A))})),_}},function(e,t,n){var r=n(54);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(54),o=n(77),i=n(75);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(26),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(59),o=n(36);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(33),o=n(78),i=n(18),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(84),o=n(362),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(194)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(59),o=n(195);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(35),o=n(84),i=n(365),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var c in e)("constructor"!=c||!t&&a.call(e,c))&&n.push(c);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(13),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(81)(e))},function(e,t,n){var r=n(59),o=n(86);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t,n){var r=n(59),o=n(198);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(202),o=n(198),i=n(195);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(26)(n(13),"DataView");e.exports=r},function(e,t,n){var r=n(26)(n(13),"Promise");e.exports=r},function(e,t,n){var r=n(26)(n(13),"Set");e.exports=r},function(e,t,n){var r=n(26)(n(13),"WeakMap");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(87),o=n(377),i=n(378),a=n(379),c=n(380);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(e,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Set]":return new u;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(87);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(34),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(87);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(382),o=n(200),i=n(84);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(35),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(384),o=n(82),i=n(83),a=i&&i.isMap,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(44),o=n(18);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(386),o=n(82),i=n(83),a=i&&i.isSet,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(44),o=n(18);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(34),o=n(196),i=n(44),a=n(85),c=n(388),u=n(389),s=n(204),l=n(205),f=n(206),p=n(392),d=r?r.iterator:void 0;e.exports=function(e){if(!e)return[];if(a(e))return c(e)?f(e):o(e);if(d&&e[d])return u(e[d]());var t=i(e);return("[object Map]"==t?s:"[object Set]"==t?l:p)(e)}},function(e,t,n){var r=n(33),o=n(12),i=n(18);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t){e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")"+"?",s="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[i,a,c].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),l="(?:"+[i+r+"?",r,a,c,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+l+s,"g");e.exports=function(e){return e.match(f)||[]}},function(e,t,n){var r=n(393),o=n(36);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(188);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=void 0;var o=r(n(32)),i=r(n(28)),a=function(){function e(e,t){if(this.refs=e,"function"!=typeof t){if(!(0,o.default)(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");var n=t.is,r=t.then,i=t.otherwise,a="function"==typeof n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every((function(e){return e===n}))};this.fn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.pop(),c=t.pop(),u=a.apply(void 0,t)?r:i;if(u)return"function"==typeof u?u(c):c.concat(u.resolve(o))}}else this.fn=t}return e.prototype.resolve=function(e,t){var n=this.refs.map((function(e){return e.getValue(t)})),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!(0,i.default)(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)},e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=function e(t,n){for(var r in n)if((0,o.default)(n,r)){var c=n[r],u=t[r];if(void 0===u)t[r]=c;else{if(u===c)continue;(0,i.default)(u)?(0,i.default)(c)&&(t[r]=c.concat(u)):a(u)?a(c)&&(t[r]=e(u,c)):Array.isArray(u)&&Array.isArray(c)&&(t[r]=c.concat(u))}}return t};var o=r(n(32)),i=r(n(28)),a=function(e){return"[object Object]"===Object.prototype.toString.call(e)};e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.createErrorFactory=f,t.default=function(e){var t=e.name,n=e.message,r=e.test,a=e.params;function l(e){var l=e.value,p=e.path,d=e.label,h=e.options,y=e.originalValue,m=e.sync,v=(0,o.default)(e,["value","path","label","options","originalValue","sync"]),b=h.parent,g=function(e){return u.default.isRef(e)?e.getValue({value:l,parent:b,context:h.context}):e},w=f({message:n,path:p,value:l,originalValue:y,params:a,label:d,resolve:g,name:t}),E=(0,i.default)({path:p,parent:b,type:t,createError:w,resolve:g,options:h},v);return function(e,t,n,r){var o=e.call(t,n);if(!r)return Promise.resolve(o);if(i=o,i&&"function"==typeof i.then&&"function"==typeof i.catch)throw new Error('Validation test of type: "'+t.type+'" returned a Promise during a synchronous validate. This test will finish after the validate call has returned');var i;return s.SynchronousPromise.resolve(o)}(r,E,l,m).then((function(e){if(c.default.isError(e))throw e;if(!e)throw w()}))}return l.OPTIONS=e,l};var o=r(n(208)),i=r(n(31)),a=r(n(210)),c=r(n(89)),u=r(n(45)),s=n(209),l=c.default.formatError;function f(e){var t=e.value,n=e.label,r=e.resolve,u=e.originalValue,s=(0,o.default)(e,["value","label","resolve","originalValue"]);return function(e){var o=void 0===e?{}:e,f=o.path,p=void 0===f?s.path:f,d=o.message,h=void 0===d?s.message:d,y=o.type,m=void 0===y?s.name:y,v=o.params;return v=(0,i.default)({path:p,value:t,originalValue:u,label:n},function(e,t,n){return(0,a.default)((0,i.default)({},e,t),n)}(s.params,v,r)),(0,i.default)(new c.default(l(h,v),t,p,m),{params:v})}}},function(e,t,n){var r=n(398)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(!1===n(i[u],u,i))break}return t}}},function(e,t,n){var r=n(400),o=n(409),i=n(216);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(79),o=n(213);e.exports=function(e,t,n,i){var a=n.length,c=a,u=!i;if(null==e)return!c;for(e=Object(e);a--;){var s=n[a];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<c;){var l=(s=n[a])[0],f=e[l],p=s[1];if(u&&s[2]){if(void 0===f&&!(l in e))return!1}else{var d=new r;if(i)var h=i(f,p,l,e,t,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},function(e,t,n){var r=n(79),o=n(214),i=n(407),a=n(408),c=n(44),u=n(12),s=n(80),l=n(193),f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,h,y){var m=u(e),v=u(t),b=m?"[object Array]":c(e),g=v?"[object Array]":c(t),w=(b="[object Arguments]"==b?f:b)==f,E=(g="[object Arguments]"==g?f:g)==f,S=b==g;if(S&&s(e)){if(!s(t))return!1;m=!0,w=!1}if(S&&!w)return y||(y=new r),m||l(e)?o(e,t,n,d,h,y):i(e,t,b,n,d,h,y);if(!(1&n)){var O=w&&p.call(e,"__wrapped__"),x=E&&p.call(t,"__wrapped__");if(O||x){var k=O?e.value():e,C=x?t.value():t;return y||(y=new r),h(k,C,n,d,y)}}return!!S&&(y||(y=new r),a(e,t,n,d,h,y))}},function(e,t,n){var r=n(75),o=n(403),i=n(404);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(34),o=n(203),i=n(76),a=n(214),c=n(204),u=n(205),s=r?r.prototype:void 0,l=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=c;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var y=p.get(e);if(y)return y==t;r|=2,p.set(e,t);var m=a(d(e),d(t),r,s,f,p);return p.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t,n){var r=n(201),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,c){var u=1&n,s=r(e),l=s.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var p=s[f];if(!(u?p in t:o.call(t,p)))return!1}var d=c.get(e);if(d&&c.get(t))return d==t;var h=!0;c.set(e,t),c.set(t,e);for(var y=u;++f<l;){var m=e[p=s[f]],v=t[p];if(i)var b=u?i(v,m,p,t,e,c):i(m,v,p,e,t,c);if(!(void 0===b?m===v||a(m,v,n,i,c):b)){h=!1;break}y||(y="constructor"==p)}if(h&&!y){var g=e.constructor,w=t.constructor;g==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(h=!1)}return c.delete(e),c.delete(t),h}},function(e,t,n){var r=n(215),o=n(36);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(213),o=n(411),i=n(412),a=n(73),c=n(215),u=n(216),s=n(57);e.exports=function(e,t){return a(e)&&c(t)?u(s(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},function(e,t,n){var r=n(217);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(413),o=n(183);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(416),o=n(417),i=n(73),a=n(57);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(217);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=void 0;var o=r(n(37)),i=r(n(25)),a=c;function c(){var e=this;if(!(this instanceof c))return new c;i.default.call(this,{type:"boolean"}),this.withMutation((function(){e.transform((function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(e))return!0;if(/^(false|0)$/i.test(e))return!1}return e}))}))}t.default=a,(0,o.default)(c,i.default,{_typeCheck:function(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e}}),e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=f;var o=r(n(37)),i=r(n(25)),a=n(27),c=r(n(62)),u=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,s=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,l=function(e){return(0,c.default)(e)||e===e.trim()};function f(){var e=this;if(!(this instanceof f))return new f;i.default.call(this,{type:"string"}),this.withMutation((function(){e.transform((function(e){return this.isType(e)?e:null!=e&&e.toString?e.toString():e}))}))}(0,o.default)(f,i.default,{_typeCheck:function(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e},_isPresent:function(e){return i.default.prototype._cast.call(this,e)&&e.length>0},length:function(e,t){return void 0===t&&(t=a.string.length),this.test({message:t,name:"length",exclusive:!0,params:{length:e},test:function(t){return(0,c.default)(t)||t.length===this.resolve(e)}})},min:function(e,t){return void 0===t&&(t=a.string.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return(0,c.default)(t)||t.length>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=a.string.max),this.test({name:"max",exclusive:!0,message:t,params:{max:e},test:function(t){return(0,c.default)(t)||t.length<=this.resolve(e)}})},matches:function(e,t){var n,r=!1;return t&&(t.message||t.hasOwnProperty("excludeEmptyString")?(r=t.excludeEmptyString,n=t.message):n=t),this.test({message:n||a.string.matches,params:{regex:e},test:function(t){return(0,c.default)(t)||""===t&&r||e.test(t)}})},email:function(e){return void 0===e&&(e=a.string.email),this.matches(u,{message:e,excludeEmptyString:!0})},url:function(e){return void 0===e&&(e=a.string.url),this.matches(s,{message:e,excludeEmptyString:!0})},ensure:function(){return this.default("").transform((function(e){return null===e?"":e}))},trim:function(e){return void 0===e&&(e=a.string.trim),this.transform((function(e){return null!=e?e.trim():e})).test({message:e,name:"trim",test:l})},lowercase:function(e){return void 0===e&&(e=a.string.lowercase),this.transform((function(e){return(0,c.default)(e)?e:e.toLowerCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return(0,c.default)(e)||e===e.toLowerCase()}})},uppercase:function(e){return void 0===e&&(e=a.string.uppercase),this.transform((function(e){return(0,c.default)(e)?e:e.toUpperCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return(0,c.default)(e)||e===e.toUpperCase()}})}}),e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=s;var o=r(n(37)),i=r(n(25)),a=n(27),c=r(n(62)),u=function(e){return(0,c.default)(e)||e===(0|e)};function s(){var e=this;if(!(this instanceof s))return new s;i.default.call(this,{type:"number"}),this.withMutation((function(){e.transform((function(e){var t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)}))}))}(0,o.default)(s,i.default,{_typeCheck:function(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!function(e){return e!=+e}(e)},min:function(e,t){return void 0===t&&(t=a.number.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return(0,c.default)(t)||t>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=a.number.max),this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return(0,c.default)(t)||t<=this.resolve(e)}})},lessThan:function(e,t){return void 0===t&&(t=a.number.lessThan),this.test({message:t,name:"max",exclusive:!0,params:{less:e},test:function(t){return(0,c.default)(t)||t<this.resolve(e)}})},moreThan:function(e,t){return void 0===t&&(t=a.number.moreThan),this.test({message:t,name:"min",exclusive:!0,params:{more:e},test:function(t){return(0,c.default)(t)||t>this.resolve(e)}})},positive:function(e){return void 0===e&&(e=a.number.positive),this.moreThan(0,e)},negative:function(e){return void 0===e&&(e=a.number.negative),this.lessThan(0,e)},integer:function(e){return void 0===e&&(e=a.number.integer),this.test({name:"integer",message:e,test:u})},truncate:function(){return this.transform((function(e){return(0,c.default)(e)?e:0|e}))},round:function(e){var t=["ceil","floor","round","trunc"];if("trunc"===(e=e&&e.toLowerCase()||"round"))return this.truncate();if(-1===t.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+t.join(", "));return this.transform((function(t){return(0,c.default)(t)?t:Math[e](t)}))}}),e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=void 0;var o=r(n(25)),i=r(n(37)),a=r(n(422)),c=n(27),u=r(n(62)),s=r(n(45)),l=new Date(""),f=p;function p(){var e=this;if(!(this instanceof p))return new p;o.default.call(this,{type:"date"}),this.withMutation((function(){e.transform((function(e){return this.isType(e)?e:(e=(0,a.default)(e))?new Date(e):l}))}))}t.default=f,(0,i.default)(p,o.default,{_typeCheck:function(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t},min:function(e,t){void 0===t&&(t=c.date.min);var n=e;if(!s.default.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`min` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(e){return(0,u.default)(e)||e>=this.resolve(n)}})},max:function(e,t){void 0===t&&(t=c.date.max);var n=e;if(!s.default.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`max` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(e){return(0,u.default)(e)||e<=this.resolve(n)}})}}),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n,o=[1,4,5,6,7,10,11],i=0;if(n=r.exec(e)){for(var a,c=0;a=o[c];++c)n[a]=+n[a]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t};var r=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;e.exports=t.default},function(e,t,n){"use strict";var r=n(219),o=n(5);t.__esModule=!0,t.default=O;var i=o(n(220)),a=o(n(31)),c=o(n(32)),u=o(n(425)),s=o(n(434)),l=o(n(440)),f=o(n(210)),p=n(61),d=o(n(25)),h=n(27),y=o(n(441)),m=o(n(443)),v=o(n(37)),b=o(n(222)),g=r(n(88));function w(){var e=(0,i.default)(["",".",""]);return w=function(){return e},e}function E(){var e=(0,i.default)(["",".",""]);return E=function(){return e},e}var S=function(e){return"[object Object]"===Object.prototype.toString.call(e)};function O(e){var t=this;if(!(this instanceof O))return new O(e);d.default.call(this,{type:"object",default:function(){var e=this;if(this._nodes.length){var t={};return this._nodes.forEach((function(n){t[n]=e.fields[n].default?e.fields[n].default():void 0})),t}}}),this.fields=Object.create(null),this._nodes=[],this._excludedEdges=[],this.withMutation((function(){t.transform((function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&t.shape(e)}))}(0,v.default)(O,d.default,{_typeCheck:function(e){return S(e)||"function"==typeof e},_cast:function(e,t){var n=this;void 0===t&&(t={});var r=d.default.prototype._cast.call(this,e,t);if(void 0===r)return this.default();if(!this._typeCheck(r))return r;var o=this.fields,i=!0===this._option("stripUnknown",t),u=this._nodes.concat(Object.keys(r).filter((function(e){return-1===n._nodes.indexOf(e)}))),s={},l=(0,a.default)({},t,{parent:s,__validating:!1}),f=!1;return u.forEach((function(e){var n=o[e],a=(0,c.default)(r,e);if(n){var u,p=n._options&&n._options.strict;if(l.path=(0,b.default)(E(),t.path,e),l.value=r[e],!0===(n=n.resolve(l))._strip)return void(f=f||e in r);void 0!==(u=t.__validating&&p?r[e]:n.cast(r[e],l))&&(s[e]=u)}else a&&!i&&(s[e]=r[e]);s[e]!==r[e]&&(f=!0)})),f?s:r},_validate:function(e,t){var n,r,o=this;void 0===t&&(t={});var i=t.sync,c=[],u=null!=t.originalValue?t.originalValue:e;return n=this._option("abortEarly",t),r=this._option("recursive",t),t=(0,a.default)({},t,{__validating:!0,originalValue:u}),d.default.prototype._validate.call(this,e,t).catch((0,g.propagateErrors)(n,c)).then((function(e){if(!r||!S(e)){if(c.length)throw c[0];return e}u=u||e;var s=o._nodes.map((function(n){var r=(0,b.default)(w(),t.path,n),i=o.fields[n],c=(0,a.default)({},t,{path:r,parent:e,originalValue:u[n]});return i&&i.validate?(c.strict=!0,i.validate(e[n],c)):Promise.resolve(!0)}));return(0,g.default)({sync:i,validations:s,value:e,errors:c,endEarly:n,path:t.path,sort:(0,m.default)(o.fields)})}))},concat:function(e){var t=d.default.prototype.concat.call(this,e);return t._nodes=(0,y.default)(t.fields,t._excludedEdges),t},shape:function(e,t){void 0===t&&(t=[]);var n=this.clone(),r=(0,a.default)(n.fields,e);if(n.fields=r,t.length){Array.isArray(t[0])||(t=[t]);var o=t.map((function(e){return e[0]+"-"+e[1]}));n._excludedEdges=n._excludedEdges.concat(o)}return n._nodes=(0,y.default)(r,n._excludedEdges),n},from:function(e,t,n){var r=(0,p.getter)(e,!0);return this.transform((function(o){if(null==o)return o;var i=o;return(0,c.default)(o,e)&&(i=(0,a.default)({},o),n||delete i[e],i[t]=r(o)),i}))},noUnknown:function(e,t){void 0===e&&(e=!0),void 0===t&&(t=h.object.noUnknown),"string"==typeof e&&(t=e,e=!0);var n=this.test({name:"noUnknown",exclusive:!0,message:t,test:function(t){return null==t||!e||0===function(e,t){var n=Object.keys(e.fields);return Object.keys(t).filter((function(e){return-1===n.indexOf(e)}))}(this.schema,t).length}});return n._options.stripUnknown=e,n},unknown:function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=h.object.noUnknown),this.noUnknown(!e,t)},transformKeys:function(e){return this.transform((function(t){return t&&(0,l.default)(t,(function(t,n){return e(n)}))}))},camelCase:function(){return this.transformKeys(s.default)},snakeCase:function(){return this.transformKeys(u.default)},constantCase:function(){return this.transformKeys((function(e){return(0,u.default)(e).toUpperCase()}))},describe:function(){var e=d.default.prototype.describe.call(this);return e.fields=(0,f.default)(this.fields,(function(e){return e.describe()})),e}}),e.exports=t.default},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){var r=n(221)((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));e.exports=r},function(e,t){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},function(e,t,n){var r=n(428),o=n(43),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},function(e,t,n){var r=n(429)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(431),o=n(432),i=n(43),a=n(433);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",o="\\d+",i="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",c="[^\\ud800-\\udfff"+n+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="[A-Z\\xc0-\\xd6\\xd8-\\xde]",f="(?:"+a+"|"+c+")",p="(?:"+l+"|"+c+")",d="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",h="[\\ufe0e\\ufe0f]?"+d+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",u,s].join("|")+")[\\ufe0e\\ufe0f]?"+d+")*"),y="(?:"+[i,u,s].join("|")+")"+h,m=RegExp([l+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,l,"$"].join("|")+")",p+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[r,l+f,"$"].join("|")+")",l+"?"+f+"+(?:['’](?:d|ll|m|re|s|t|ve))?",l+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,y].join("|"),"g");e.exports=function(e){return e.match(m)||[]}},function(e,t,n){var r=n(435),o=n(221)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=o},function(e,t,n){var r=n(43),o=n(436);e.exports=function(e){return o(r(e).toLowerCase())}},function(e,t,n){var r=n(437)("toUpperCase");e.exports=r},function(e,t,n){var r=n(438),o=n(207),i=n(206),a=n(43);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,c=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return c[e]()+u}}},function(e,t,n){var r=n(439);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(58),o=n(211),i=n(212);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,t(e,o,i),e)})),n}},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=function(e,t){void 0===t&&(t=[]);var n=[],r=[];function s(e,o){var i=(0,a.split)(e)[0];~r.indexOf(i)||r.push(i),~t.indexOf(o+"-"+i)||n.push([o,i])}for(var l in e)if((0,o.default)(e,l)){var f=e[l];~r.indexOf(l)||r.push(l),c.default.isRef(f)&&f.isSibling?s(f.path,l):(0,u.default)(f)&&f._deps&&f._deps.forEach((function(e){return s(e,l)}))}return i.default.array(r,n).reverse()};var o=r(n(32)),i=r(n(442)),a=n(61),c=r(n(45)),u=r(n(28));e.exports=t.default},function(e,t){function n(e,t){var n=e.length,r=new Array(n),o={},i=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),c=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!c.has(e[0])||!c.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));i--;)o[i]||u(e[i],i,new Set);return r;function u(e,t,i){if(i.has(e)){var s;try{s=", node was:"+JSON.stringify(e)}catch(e){s=""}throw new Error("Cyclic dependency"+s)}if(!c.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var l=a.get(e)||new Set;if(t=(l=Array.from(l)).length){i.add(e);do{var f=l[--t];u(f,c.get(f),i)}while(t);i.delete(e)}r[--n]=e}}}e.exports=function(e){return n(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(e),e)},e.exports.array=n},function(e,t,n){"use strict";function r(e,t){var n=1/0;return e.some((function(e,r){if(-1!==t.path.indexOf(e))return n=r,!0})),n}t.__esModule=!0,t.default=function(e){var t=Object.keys(e);return function(e,n){return r(t,e)-r(t,n)}},e.exports=t.default},function(e,t,n){"use strict";var r=n(219),o=n(5);t.__esModule=!0,t.default=void 0;var i=o(n(31)),a=o(n(220)),c=o(n(37)),u=o(n(62)),s=o(n(28)),l=o(n(222)),f=o(n(60)),p=o(n(25)),d=n(27),h=r(n(88));function y(){var e=(0,a.default)(["","[","]"]);return y=function(){return e},e}var m=v;function v(e){var t=this;if(!(this instanceof v))return new v(e);p.default.call(this,{type:"array"}),this._subType=void 0,this.withMutation((function(){t.transform((function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&t.of(e)}))}t.default=m,(0,c.default)(v,p.default,{_typeCheck:function(e){return Array.isArray(e)},_cast:function(e,t){var n=this,r=p.default.prototype._cast.call(this,e,t);if(!this._typeCheck(r)||!this._subType)return r;var o=!1,i=r.map((function(e){var r=n._subType.cast(e,t);return r!==e&&(o=!0),r}));return o?i:r},_validate:function(e,t){var n=this;void 0===t&&(t={});var r=[],o=t.sync,a=t.path,c=this._subType,u=this._option("abortEarly",t),s=this._option("recursive",t),f=null!=t.originalValue?t.originalValue:e;return p.default.prototype._validate.call(this,e,t).catch((0,h.propagateErrors)(u,r)).then((function(e){if(!s||!c||!n._typeCheck(e)){if(r.length)throw r[0];return e}f=f||e;var p=e.map((function(n,r){var o=(0,l.default)(y(),t.path,r),a=(0,i.default)({},t,{path:o,strict:!0,parent:e,originalValue:f[r]});return!c.validate||c.validate(n,a)}));return(0,h.default)({sync:o,path:a,value:e,errors:r,endEarly:u,validations:p})}))},_isPresent:function(e){return p.default.prototype._cast.call(this,e)&&e.length>0},of:function(e){var t=this.clone();if(!1!==e&&!(0,s.default)(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+(0,f.default)(e));return t._subType=e,t},min:function(e,t){return t=t||d.array.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return(0,u.default)(t)||t.length>=this.resolve(e)}})},max:function(e,t){return t=t||d.array.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return(0,u.default)(t)||t.length<=this.resolve(e)}})},ensure:function(){var e=this;return this.default((function(){return[]})).transform((function(t){return e.isType(t)?t:null===t?[]:[].concat(t)}))},compact:function(e){var t=e?function(t,n,r){return!e(t,n,r)}:function(e){return!!e};return this.transform((function(e){return null!=e?e.filter(t):e}))},describe:function(){var e=p.default.prototype.describe.call(this);return this._subType&&(e.innerType=this._subType.describe()),e}}),e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=void 0;var o=r(n(28)),i=function(){function e(e){this._resolve=function(t,n){var r=e(t,n);if(!(0,o.default)(r))throw new TypeError("lazy() functions must return a valid schema");return r.resolve(n)}}var t=e.prototype;return t.resolve=function(e){return this._resolve(e.value,e)},t.cast=function(e,t){return this._resolve(e,t).cast(e,t)},t.validate=function(e,t){return this._resolve(e,t).validate(e,t)},t.validateSync=function(e,t){return this._resolve(e,t).validateSync(e,t)},t.validateAt=function(e,t,n){return this._resolve(t,n).validateAt(e,t,n)},t.validateSyncAt=function(e,t,n){return this._resolve(t,n).validateSyncAt(e,t,n)},e}();i.prototype.__isYupSchema__=!0;var a=i;t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=n(5);t.__esModule=!0,t.default=function(e){Object.keys(e).forEach((function(t){Object.keys(e[t]).forEach((function(n){o.default[t][n]=e[t][n]}))}))};var o=r(n(27));e.exports=t.default},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"AppLinkHelper",(function(){return g})),n.d(r,"AppLinkUtility",(function(){return v})),n.d(r,"Application",(function(){return X})),n.d(r,"AppRouter",(function(){return fe})),n.d(r,"Behavior",(function(){return we})),n.d(r,"Collection",(function(){return _e})),n.d(r,"CollectionView",(function(){return Me})),n.d(r,"ComponentCollection",(function(){return Me})),n.d(r,"Error",(function(){return F})),n.d(r,"ErrorHelper",(function(){return U})),n.d(r,"SilentError",(function(){return D})),n.d(r,"LayoutView",(function(){return yt})),n.d(r,"NestedModel",(function(){return Rt})),n.d(r,"Service",(function(){return zt})),n.d(r,"Model",(function(){return xt})),n.d(r,"View",(function(){return ct})),n.d(r,"Component",(function(){return ut})),n.d(r,"EventNames",(function(){return l})),n.d(r,"LayoutService",(function(){return Wt})),n.d(r,"Middleware",(function(){return Q})),n.d(r,"LocationUtils",(function(){return p})),n.d(r,"Shell",(function(){return cn}));var o={};n.r(o),n.d(o,"emptyResponse",(function(){return yo})),n.d(o,"getResponse",(function(){return mo})),n.d(o,"getFetch",(function(){return vo})),n.d(o,"fetch",(function(){return bo})),n.d(o,"useGetFetch",(function(){return go})),n.d(o,"useGetResponse",(function(){return wo})),n.d(o,"useBasicFetch",(function(){return Eo})),n.d(o,"createMiddleware",(function(){return _o})),n.d(o,"FlightReducer",(function(){return Mo})),n.d(o,"Simulator",(function(){return Zo})),n.d(o,"Actions",(function(){return $r})),n.d(o,"RequestStatus",(function(){return Vr})),n.d(o,"ajaxRequest",(function(){return Kr})),n.d(o,"normalize",(function(){return eo})),n.d(o,"denormalize",(function(){return ro}));n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308);var i={ONLINE_LAYOUT:"OnlineLayout"},a={PLAYLIST:"PlaylistDataService",LANGUAGE:"LanguageDataService"},c={APP_BRIDGE:"AppBridgeService",CONTEXT:"ContextService"},u=n(1),s=n(2),l={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"},f={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"},p={GetQuery:function(){return p.DeserializeQueryParams(window.location.search.substring(1))},UpdateQuery:function(e){if(e){var t=p.GetQuery(),n=p.SerializeQueryParams(u.extend(t,e));n&&(n="?".concat(n)),p.UpdateUrl("".concat(p.GetCurrentPath()).concat(n),null,{replace:!0,trigger:!1})}},UpdateUrl:function(e,t,n){var r=g.buildRoute(e,t);s.history.navigate(r,n),s.Radio.channel(f.SHELL).trigger(l.URL_CHANGE,t,n)},SerializeQueryParams:function(e){return e?"string"==typeof e?e:$.param(e,!0):""},DeserializeQueryParams:function(e){return e?u.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(){s.History.started&&s.history.stop(),s.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};v.hasActiveRoute()?s.Radio.channel(f.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},SetPageTitle:function(e){document.title=e}},d=/((\(\?)?:\w+)|(\*\w+)/,h=/[\(\)]/g,y=/\(\/\)/g,m=/\/$/,v={routingStarted:function(){s.Radio.channel(f.SHELL).trigger(l.ROUTING_START)},routingEnded:function(){v.hasActiveRoute()&&s.Radio.channel(f.SHELL).trigger(l.ROUTING_END)},hasActiveRoute:function(){return s.Radio.channel(f.SHELL).request(l.HAS_ACTIVE_ROUTE)}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.usedHelper=!0;var n=e.application,r=e.action;s.Radio.channel(n).trigger(r,e,t)},g={getHref:function(e){if(!e)return"";var t=e.application,n=e.action,r=e.args,o=e.params,i=s.Radio.channel(f.SHELL);return"/".concat(i.request(l.ROUTE_LOOKUP,"".concat(t,":").concat(n),r,o))},buildRoute:function(e,t){if(!t)return e;var n=t.args,r=t.params;if(u.each(n,(function(t){e=e.replace(d,t||"")})),e=(e=(e=e.replace(y,"")).replace(h,"")).replace(m,""),!r)return e;var o=p.SerializeQueryParams(r);return o.length?"".concat(e,"?").concat(o):e},trigger:function(e,t){e&&(v.hasActiveRoute()?s.Radio.channel(f.SHELL).once("routing:end",(function(){b(e,t)})):b(e,t))},getCurrentAppLink:function(){return s.Radio.channel(f.SHELL).request(l.CURRENT_ROUTE)}},w=n(6);function E(e,t,n,r){var o=e;return"string"==typeof e&&(o=s.Radio.channel(e)),r.call(this,o,t,n)}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)}}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,r;return t=e,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"get",value:function(e){return this.variables[e]}},{key:"setUpVariables",value:function(e){this.variables=e}},{key:"name",get:function(){return"EnvironmentVariables"}},{key:"isDevelopment",get:function(){return this.variables.isDevelopment}}])&&S(t.prototype,n),r&&S(t,r),e}().Instance;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 k(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,n){return t&&k(e.prototype,t),n&&k(e,n),e}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(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)}function _(e){var t=R();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 L(this,n)}}function L(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 P(e){var t="function"==typeof Map?new Map:void 0;return(P=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 N(e,arguments,I(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),T(r,e)})(e)}function N(e,t,n){return(N=R()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&T(o,n.prototype),o}).apply(null,arguments)}function R(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=function(e){A(n,e);var t=_(n);function n(e){return j(this,n),t.call(this,e)}return n}(P(Error)),D=function(e){A(n,e);var t=_(n);function n(){return j(this,n),t.apply(this,arguments)}return C(n,[{key:"name",get:function(){return"SilentError"}}]),n}(F),M=function(e){A(n,e);var t=_(n);function n(){return j(this,n),t.apply(this,arguments)}return C(n,[{key:"name",get:function(){return"CoreError"}}]),n}(P(Error)),U={throw:function(e){if(s.Radio.channel(f.SHELL).trigger(l.ERROR,e),!(e instanceof D||O.isDevelopment))throw e}};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 z(e){return function(e){if(Array.isArray(e))return H(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 H(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 H(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 H(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 q(e,t,n){return(q="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=J(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 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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 K(this,n)}}function K(e,t){return!t||"object"!==V(t)&&"function"!=typeof t?W(e):t}function W(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J(e){return(J=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&&Y(e,t)}(i,e);var t,n,r,o=G(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,e)).mergeOptions(e,[].concat(z(t.defaultProps),z(t.props||[]))),u.result(W(t),"name")||U.throw(new M("BaseApplication must define a name")),u.result(W(t),"channelName")||U.throw(new M("BaseApplication must define a channelName")),t.listenTo(t.getGlobalRadioChannel("popup"),l.SHOW_POPUP,t.onShowPopup),t.listenTo(t.getGlobalRadioChannel("alert"),"show:alert",t.onShowAlert),t}return t=i,(n=[{key:"getGlobalRadioChannel",value:function(e){var t=this.shell.getGlobalRadioChannels()[e.toUpperCase()];return t||U.throw(new M("Global channel ".concat(t," does not exist"))),s.Radio.channel(t)}},{key:"onLoadLayout",value:function(){if(this.layoutOptions&&this.layoutOptions.name){var e=u.extend({},this.layoutOptions.options||{},{store:this.shell.store});this.layout=this.layoutService.getLayout(u.extend(this.layoutOptions,{options:e})),this.layout||U.throw(new M("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.throw(new M("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||U.throw(new M("Your application layout must define an alert region")),r.hasView()||this.layout.showChildView("alert",new t({collection:n}))}},{key:"setDefaultQueryParams",value:function(e){this.defaultQueryParams&&(e=u.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 E.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],q(J(i.prototype),"listenTo",this))}},{key:"defaultProps",get:function(){return["shell","layoutService"]}}])&&B(t.prototype,n),r&&B(t,r),i}(w.Application);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)}}var Q=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,(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)}}])&&Z(t.prototype,n),r&&Z(t,r),e}();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){return function(e){if(Array.isArray(e))return ne(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 ne(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 ne(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 ne(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 re(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 oe(e,t,n){return(oe="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=ue(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 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 Date.prototype.toString.call(Reflect.construct(Date,[],(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"!==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 ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var se=/([A-Z])/g,le=/(^|:)(\w)/gi,fe=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(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,e)).bindDisposal(),t.processInternalRoutes(),t.processExternalRoutes(),t.processAppLinks(),t}return t=i,(n=[{key:"bindDisposal",value:function(){var e=this;this.listenTo(f.SHELL,l.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 g.buildRoute(t,{application:n.channelName,action:e,args:r,params:o})}))}},{key:"processInternalRoutes",value:function(){var e=this;u.each(u.keys(this.appRoutes),(function(t){var n=e.appRoutes[t],r=e.toEventName(n);e.addRouteLookup(r,t),e.listenTo(e.channelName,r,(function(n,r){r&&r.usedHelper||U.throw(new M("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(n,{isAppRoute:!0},(function(){var o=u.extend({},e.controller.getAndClearDefaultQueryParams(),n.params);n.params=o,p.UpdateUrl(t,n,r)}))}))}))}},{key:"processExternalRoutes",value:function(){var e=this;this.externalRoutes&&u.each(u.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||U.throw(new M("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),p.PageLoad(g.getHref(e))}))}))}},{key:"processAppLinks",value:function(){var e=this;this.appLinks&&u.each(this.appLinks,(function(t){var n=e.toEventName(t);e.listenTo(e.channelName,n,(function(t,n){n&&n.usedHelper||U.throw(new M("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(t,{isAppRoute:!1})}))}))}},{key:"executeRoute",value:function(e,t,n){var r=this;this.validateAppLink(e);var o=this.toMethodName(e.action);v.routingStarted();var i=s.Radio.channel(f.SHELL);if(this.options.shell.isNavLocked())return i.trigger(l.NAV_IS_LOCKED,e),void v.routingEnded();var a=new Q;u.each(this.filters,(function(e){return a.use(e)})),a.go(e,(function(){i.trigger(l.ROUTE,e,t),r.createApp();var a=r.controller;if(u.isFunction(a[o])||(v.routingEnded(),U.throw(new M("".concat(o," does not exist on the ").concat(u.result(a,"name"),".")))),!1===a.triggerMethod("before:action"))return a.triggerMethod("action:cancelled"),void v.routingEnded();a.triggerMethod("load:layout"),a[o].apply(a,[].concat(te(e.args||[]),[e.params||{}])),u.isFunction(n)&&n(),v.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 r=this;this.route(t,n,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i={application:r.channelName,action:r.toEventName(n),args:t.slice(0,t.length-1),params:p.DeserializeQueryParams(t[t.length-1])};r.executeRoute(i,{isAppRoute:!0},(function(){p.UpdateQuery(u.extend(r.controller.getAndClearDefaultQueryParams(),i.params))}))}))}},{key:"toEventName",value:function(e){return e.replace(se,":$1").toLowerCase()}},{key:"toMethodName",value:function(e){var t=e.replace(le,(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||(v.routingEnded(),U.throw(new M("Invalid AppLink")))}},{key:"listenTo",value:function(){return E.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],oe(ue(i.prototype),"listenTo",this))}}])&&re(t.prototype,n),r&&re(t,r),i}(w.AppRouter);function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.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 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,n){return(ye="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=ge(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 me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ve(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(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"!==pe(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 ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var we=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&&me(e,t)}(i,e);var t,n,r,o=ve(i);function i(){return de(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"listenTo",value:function(){return E.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],ye(ge(i.prototype),"listenTo",this))}}])&&he(t.prototype,n),r&&he(t,r),i}(w.Behavior);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 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 xe(e,t,n){return(xe="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=Ae(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 ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ce(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 je(this,n)}}function je(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 Ae(e){return(Ae=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&&ke(e,t)}(i,e);var t,n,r,o=Ce(i);function i(){return Se(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"listenTo",value:function(){return E.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],xe(Ae(i.prototype),"listenTo",this))}}])&&Oe(t.prototype,n),r&&Oe(t,r),i}(s.Collection);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.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 Ne(e,t,n){return(Ne="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=De(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 Re(e,t){return(Re=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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 Ie(this,n)}}function Ie(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?Fe(e):t}function Fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Me=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)}(i,e);var t,n,r,o=Te(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,e),u.result(Fe(t),"name")||U.throw(new M("Error: View with cid:".concat(t.cid," requires a name."))),t}return t=i,(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 E.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Ne(De(i.prototype),"listenTo",this))}}])&&Pe(t.prototype,n),r&&Pe(t,r),i}(w.CollectionView);function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ze(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 Be(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 qe(this,n)}}function qe(e,t){return!t||"object"!==Ue(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 Ye=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)}(i,e);var t,n,r,o=Be(i);function i(){return Ve(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"DevError"}}])&&ze(t.prototype,n),r&&ze(t,r),i}(F);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 Ke(e){return function(e){if(Array.isArray(e))return We(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 We(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 We(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 We(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 Je(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 Ze(e,t,n){return t&&Xe(e.prototype,t),n&&Xe(e,n),e}function Qe(e,t,n){return(Qe="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=it(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 et(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&&tt(e,t)}function tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 rt(this,n)}}function rt(e,t){return!t||"object"!==Ge(t)&&"function"!=typeof t?ot(e):t}function ot(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var at=function(e){et(n,e);var t=nt(n);function n(e){var r;Je(this,n),r=t.call(this,e);var o=[].concat(Ke(r.defaultProps),Ke(r.props||[]));return r.mergeOptions(e,o),u.result(ot(r),"name")||U.throw(new M("Error: View with cid:".concat(r.cid," requires a name."))),r}return Ze(n,[{key:"_setOptions",value:function(e){this.options=u.extend({},u.result(this,"defaults"),e)}},{key:"_setAttributes",value:function(e){var t,n,r;O.isDevelopment&&u.extend(e,(t={},n="cv-classname",r=this.name,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)),this.$el.attr(e)}},{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",u.result(this,"className"))}},{key:"serializeData",value:function(){var e=this,t=Qe(it(n.prototype),"serializeData",this).call(this),r=u.result(this,"viewOptions"),o=u.extend({},t,{options:r});return n.ViewDataExtensions.length?u.extend.apply(u,[o].concat(Ke(u.map(n.ViewDataExtensions,(function(t){return t instanceof Function?t(e):t}))))):o}},{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(),u.each(u.keys(t),(function(n){var r=n,o=t[n],i=g.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(),g.trigger(o)})))})))}},{key:"hasPartialLoadingRegions",value:function(){return void 0!==this._hasPartialLoadingRegions||(this._hasPartialLoadingRegions=u.some(this.regions,(function(e){return u.has(e,"partialLoading")}))),this._hasPartialLoadingRegions}},{key:"renderPartialLoading",value:function(e){s.Radio.channel(f.SHELL).trigger("render:partial:loading",this,e)}},{key:"listenTo",value:function(){return E.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Qe(it(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:"defaultProps",get:function(){return["shell","layoutService"]}},{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:"AddViewDataExtension",value:function(e){n.ViewDataExtensions.push(e)}}]),n}(w.View);at.ViewDataExtensions=[];var ct=function(e){et(n,e);var t=nt(n);function n(e){var r;return Je(this,n),(r=t.call(this,e)).boundListeners={},r.resourceInstances={},r}return Ze(n,[{key:"processRequriedResources",value:function(e){var t=this,n=u.keys(this.requiredResources);if(!n.length)return!0;var r=this,o=!0;return u.each(n,(function(n){var i=t.requiredResources[n];if(i.beforeOnBeforeRender===e){var a=i.dataServiceName;t.resourceInstances[a]||(t.resourceInstances[a]=i.getInstance(t)),t.boundListeners["".concat(a,":").concat(i.eventName)]||(t.listenTo(t.resourceInstances[a].channelName,i.eventName,t.render),t.boundListeners["".concat(a,":").concat(i.eventName)]=!0),r[n]=i.getData(t.resourceInstances[a]),o=o&&!!r[n]}})),o}},{key:"setTitle",value:function(){u.isString(this.title)||!1===this.title||U.throw(new Ye("Must define a title for ".concat(this.name,"."))),s.Radio.channel(f.SHELL).trigger("set:page:title",this.title)}}]),n}(at),ut=function(e){et(n,e);var t=nt(n);function n(){return Je(this,n),t.apply(this,arguments)}return n}(at);function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ht(e);if(t){var o=ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dt(this,n)}}function dt(e,t){return!t||"object"!==st(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 ht(e){return(ht=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&&ft(e,t)}(i,e);var t,n,r,o=pt(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,r=[{key:"getCacheKey",value:function(e){U.throw(new Ye("Must define getCacheKey for ".concat(this.name,".")))}}],(n=[{key:"unmountRegion",value:function(e){this.trigger("unmount:".concat(e))}}])&<(t.prototype,n),r&<(t,r),i}(ct);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 vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 gt(e,t,n){return(gt="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=Ot(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 wt(e,t){return(wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Et(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ot(e);if(t){var o=Ot(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return St(this,n)}}function St(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 Ot(e){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xt=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&&wt(e,t)}(i,e);var t,n,r,o=Et(i);function i(){return vt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"mixin",value:function(e){for(var t in e){if(this.hasOwnProperty(t)){var n=this[t];return void(this[t]=u.extend({},n,e[t]))}this[t]=e[t]}}},{key:"addValidation",value:function(e){this.mixin({validation:e})}},{key:"validate",value:function(e,t){gt(Ot(i.prototype),"validate",this).call(this,e,t)}},{key:"listenTo",value:function(){return E.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],gt(Ot(i.prototype),"listenTo",this))}}])&&bt(t.prototype,n),r&&bt(t,r),i}(s.Model);function kt(e){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jt(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 At(e,t,n){return(At="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=Nt(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 _t(e,t){return(_t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nt(e);if(t){var o=Nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pt(this,n)}}function Pt(e,t){return!t||"object"!==kt(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 Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rt=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=Lt(i);function i(){return Ct(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"set",value:function(e,t,n){var r,o;if(null===e)return this;for(r in"object"===kt(e)?(o=e,n=t):(o={})[e]=t,n||(n={}),o)u.has(this.associations,r)&&(o[r]=this.setAssociation(r,o[r],n));return At(Nt(i.prototype),"set",this).call(this,o,n)}},{key:"get",value:function(e){var t=e.indexOf(".");if(-1===t)return At(Nt(i.prototype),"get",this).call(this,e);var n=e.substr(0,t),r=this.attributes[n];if(!r||!u.isFunction(r.get))return At(Nt(i.prototype),"get",this).call(this,e);var o=e.substr(t+1);return r.get(o)}},{key:"setAssociation",value:function(e,t,n){var r=this.associations[e],o=this.attributes[e];if(!u.isFunction(r))return t;if(n.unset)return o&&delete o.parent,delete this[e],o;if(o)return o instanceof xt&&o.set(t,n),o instanceof _e&&o.set(t,n),n.silent||this.trigger("change:".concat(e),this,t,n),o;var i=t instanceof xt?t:new r(t,{parse:!0});return i.parent=this,this[e]=i,i}},{key:"toJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=At(Nt(i.prototype),"toJSON",this).apply(this,t);return u.each(this.associations,(function(e,t){u.has(r,t)&&u.isFunction(r[t].toJSON)?r[t]=r[t].toJSON():r[t]=(new e).toJSON()})),r}},{key:"toFlatJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.omit(At(Nt(i.prototype),"toJSON",this).apply(this,t),u.keys(this.associations))}}])&&jt(t.prototype,n),r&&jt(t,r),i}(xt);function Tt(e){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function It(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,n){return(Ft="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=Vt(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 Dt(e,t){return(Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vt(e);if(t){var o=Vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ut(this,n)}}function Ut(e,t){return!t||"object"!==Tt(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 Vt(e){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zt=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&&Dt(e,t)}(i,e);var t,n,r,o=Mt(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,e)).name||U.throw(new M("Your service must be named.")),t}return t=i,(n=[{key:"listenTo",value:function(){return E.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Ft(Vt(i.prototype),"listenTo",this))}}])&&It(t.prototype,n),r&&It(t,r),i}(w.Object);function Ht(e){return(Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.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 qt(e,t,n){return(qt="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=Kt(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 $t(e,t){return($t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kt(e);if(t){var o=Kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gt(this,n)}}function Gt(e,t){return!t||"object"!==Ht(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 Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wt=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=Yt(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,e)).layouts={},t.requiredRegions=e.requiredRegions,t}return t=i,(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]||U.throw(new M("".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){u.each(this.requiredRegions,(function(t){u.has(u.result(e.prototype,"regions"),t)||U.throw(new M("Layout: ".concat(e.prototype.name," must define an ").concat(t," region.")))}))}},{key:"listenTo",value:function(){return E.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],qt(Kt(i.prototype),"listenTo",this))}}])&&Bt(t.prototype,n),r&&Bt(t,r),i}(w.Object);function Jt(e){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xt(e,t,n){return(Xt="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=tn(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 Zt(e,t){return(Zt=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tn(e);if(t){var o=tn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return en(this,n)}}function en(e,t){return!t||"object"!==Jt(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 tn(e){return(tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rn(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 on(e,t,n){return t&&rn(e.prototype,t),n&&rn(e,n),e}var an=function(){function e(t,n){nn(this,e),this.application=t,this.options=n||{}}return on(e,[{key:"Application",get:function(){return this.application}},{key:"Options",get:function(){return this.options}}]),e}(),cn=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&&Zt(e,t)}(n,e);var t=Qt(n);function n(){return nn(this,n),t.apply(this,arguments)}return on(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(f.SHELL,l.LOCK_NAV,(function(){return e.shellState.navLock=!0})),this.listenTo(f.SHELL,l.UNLOCK_NAV,(function(){return e.shellState.navLock=!1}))}},{key:"bindAppLinkListeners",value:function(){var e=this;this.listenTo(f.SHELL,l.ROUTING_START,(function(){return e.shellState.activeRoute=!0})),this.listenTo(f.SHELL,l.ROUTING_END,(function(){return e.shellState.activeRoute=!1})),this.listenTo(f.SHELL,l.ROUTE,(function(t){return e.shellState.currentAppLink=t}));var t=s.Radio.channel(f.SHELL);t.reply(l.HAS_ACTIVE_ROUTE,u.bind(this.hasActiveRoute,this)),t.reply(l.CURRENT_ROUTE,(function(){return e.shellState.currentAppLink}))}},{key:"bindErrorHandlers",value:function(){window.addEventListener("error",(function(){v.routingEnded()}))}},{key:"bindErrorListener",value:function(){var e=s.Radio.channel(f.SHELL);this.listenTo(e,l.ERROR,this.handleError)}},{key:"bindRouteLookup",value:function(){var e=this;s.Radio.channel(f.SHELL).reply(l.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 an(e,t)),this}},{key:"getGlobalRadioChannels",value:function(){return f}},{key:"isNavLocked",value:function(){return this.shellState.navLock}},{key:"start",value:function(e){var t=this;e||(e={}),this.runInitializationSteps(this,(function(r,o){t.runStartUpSteps(t,e,(function(r,o,i){Xt(tn(n.prototype),"start",t).call(t,e)}))}))}},{key:"hasActiveRoute",value:function(){return this.shellState.activeRoute}},{key:"onStart",value:function(){var e=this;u.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(),p.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||U.throw(new M("An error must have a name in order to register a handler for it.")),u.any(this.errorHandlers,(function(t){return t.errorType===e}))&&U.throw(new M("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=u.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 E.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],Xt(tn(n.prototype),"listenTo",this))}}]),n}(w.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 sn(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){return(ln=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dn(e);if(t){var o=dn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pn(this,n)}}function pn(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 dn(e){return(dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hn,yn=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&&ln(e,t)}(i,e);var t,n,r,o=fn(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).constructors={},e.destructors={},e.instances={},e.singletonInstances={},e.referenceCounts={},e}return t=i,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{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():U.throw(new Ye("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 r=e.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new e(t)},this.destructors[r]=function(){return u.isFunction(n.instances[r].destroy)&&n.instances[r].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]||U.throw(new Ye("".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||U.throw(new Ye("Classes registered with ".concat(this.name," must have a unique name property."))),this.constructors[t]&&U.throw(new Ye("A class with the name: ".concat(t," has already been registered with ").concat(this.name)))}},{key:"name",get:function(){return"InstanceManager"}}])&&sn(t.prototype,n),r&&sn(t,r),i}(zt).Instance,mn={HOME:"index",VIDEO:"video",SERIES:"series",CONTENT_UPDATES:"content:updates"},vn={HOME:"index",PLAYLIST:"playlist",SHARED_PLAYLIST:"shared:playlist",NEW_PLAYLIST:"new:playlist",EDIT_PLAYLIST:"edit:playlist",DELETE_PLAYLIST:"delete:playlist",SHARE_PLAYLIST:"share:playlist",ADD_TO_PLAYLIST:"add:to:playlist",REMOVE_VIDEO_FROM_PLAYLIST:"remove:video:from:playlist",PLAY_PLAYLIST:"play:playlist",PLAY_PLAYLIST_VIDEO:"play:playlist:video",PLAY_SHARED_PLAYLIST:"play:shared:playlist",PLAY_SHARED_PLAYLIST_VIDEO:"play:shared:playlist:video",ACCESS_DENIED:"access:denied",NOT_FOUND:"not:found",MIGRATION_IN_PROGRESS:"migration:in:progress",SERIES:"series"},bn={CLASSIFICATION:"classification",CLASSIFICATION_PLAYLIST:"classification:playlist",VIDEO:"video",SERIES:"series",PLAYLIST:"playlist",CLASSIFICATION_SERIES:"classification:series",PREFERENCES:"preferences",SHARE:"share"},gn={PLAY_CLASSIFICATION_PLAYLIST:"play:classification:playlist",PLAY_CLASSIFICATION_PLAYLIST_VIDEO:"play:classification:playlist:video",CLASSIFICATION:"classification"},wn={CONTENT_UPDATES:"content:updates",CLASSIFICATION_UPDATE:"classification:update"},En={HOME:"index",DASHBOARD:"dashboard",VIDEO:"video",CURRICULUM:"curriculum",ERROR:"error",DIALOG_ERROR:"dialog:error",DEV_ERROR:"dev:error",ADD_TO_PLAYLIST:"add:to:playlist",CONTENT_UPDATES:"content:updates",USER_CHANNELS:"user:channels",USER_CHANNEL:"user:channel"},Sn="user:playlists",On="video",xn="default:application",kn="playlist:application",Cn="subject:application",jn="subject:playlists:application",An="content:updates:application",_n="dashboard:application",Ln="playlist:data:service";!function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience"}(hn||(hn={}));var Pn="categories{libraries.typeid:".concat(hn.CustomMediaObjectCollection,"}"),Nn={VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(Pn,",libraries,tags,clips{limit:100},")+"interactives{limit:1},subtitles{limit:1},resources{limit:1},links{limit:1}",SERIES:"tallposter,rating",FOLDER:"banner,thumbnail",CLASSIFICATION:"banner,cover",PLAYLIST:"cover,banner,owner,videos[thumbnail,count()]{orderby:orderindex,limit:1}",PLAYLIST_COLLECTION:"videos[thumbnail,count()]{orderby:orderindex,limit:1},thumbnail,cover"},Rn=function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},Tn=function(e){return"subjectpresentationaudiences{presentationId:".concat(e,"}")},In=function(e){return Nn.CLASSIFICATION+",followers{id:".concat(e,"},videos[count()]{limit:0}")+",playlists[count()]{limit:0},series[count()]{limit:0}"};var Fn,Dn,Mn,Un=(Fn={},Dn=kn,Mn=[vn.PLAY_PLAYLIST,vn.PLAY_PLAYLIST_VIDEO],Dn in Fn?Object.defineProperty(Fn,Dn,{value:Mn,enumerable:!0,configurable:!0,writable:!0}):Fn[Dn]=Mn,Fn),Vn={isEmpty:function(e){return u.isEmpty(e)},values:function(e){return u.values(e)},keys:function(e){return u.keys(e)},deepClone:function(e){return(u.isArray(e)?u.map:u.mapObject)(e,(function(e){return u.isObject(e)||u.isArray(e)?Vn.deepClone(e):e}))},getEnumKeys:function(e){return Object.keys(e).filter((function(e){return!(parseInt(e)>=0)}))},isObject:function(e){return u.isObject(e)},isEqual:function(e,t){return u.isEqual(e,t)},omit:function(e,t){return u.omit(e,t)}};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)}var Hn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Vn.deepClone(t);e.set(r,n)},Bn=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="object"===zn(n)?Vn.deepClone(n):n;e.set(t,o,r)},qn={getClickView:function(){if(window.ClickView)return window.ClickView;r.ErrorHelper.throw(new Ye("ClickView is undefined"))},getMasterVideoModel:function(e){var t=qn.getClickView().Shared;return new(0,t.Models.MasterVideo)(t.Helpers.MasterToOnlineVideo(Vn.deepClone(e)))},getMasterPlaylistModel:function(e){return new(0,qn.getClickView().Shared.Models.MasterPlaylistV2)(Vn.deepClone(e))},getVideoActionsCollection:function(e){var t=qn.getClickView().Shared.Services.VideoActionService.getActions(e);return new(0,qn.getClickView().Shared.Collections.VideoActionCollection)(t)},getVideoUrl:function(e){var t=qn.getMasterVideoModel(e);return qn.getClickView().Shared.Services.ObjectLinkService.getVideoUrl(t)},isVideoRestricted:function(e){return qn.getMasterVideoModel(e).isRestricted()}},$n=n(8),Yn={getContainerEl:function(){var e=$n("body").find(".".concat("playlist-app-popup-container"));return e.length||(e=$n('<div class="'.concat("playlist-app-popup-container",'"></div>')).appendTo("body")),e[0]},position:function(e){var t=$n(e),n=t.outerWidth()/2,r=t.outerHeight()/2;t.css("margin-top",-r),t.css("margin-left",-n);var o=t.offset();o.top<0&&(r=r+o.top-15,t.css("margin-top",-r)),t.outerHeight()+o.top>window.innerHeight&&(r=o.top-15,t.css("margin-top",-r)),t.css("display","block")},renderMask:function(){if($n.fn.mask)return $n("body").mask({opacity:.4,bgColour:"#000"}).show()},lockBody:function(){window.scrollLock=!0;var e=window.scrollY;return Yn.lockContainer(e),Yn.lockHorizontalBars(e),$n("body").addClass("lock"),e},lockContainer:function(e){var t=e,n=$n("#content-container");window.innerWidth>qn.getClickView().Data.Breakpoints.sm?t-=n.offset().top:t-=$n("#sub-nav").outerHeight(!0),n.css("top",-t+"px")},lockHorizontalBars:function(e){var t=e,n=Yn.getHorizontalBars(),r=[$n(".navbar"),$n("#sub-nav")];u.each(n,(function(e){e.length&&e.is(":visible")&&(e.css("top",-t+"px"),t-=e.outerHeight(!1))}));var o=u.reduce(n,(function(e,t){return e+t.outerHeight(!1)}),0);e<=-t+o&&u.each(r,(function(e){e.css("top",-t+"px"),t-=e.outerHeight(!0)}))},getHorizontalBars:function(){return[$n(".maintenance-banner"),$n(".trial-info-container"),$n("#top-black-bar")]},onPopupClose:function(e){window.scrollLock=!1,$n("body").removeClass("lock"),$n("#content-container").css("top",""),u.each(Yn.getHorizontalBars(),(function(e){e.css("top","")}));var t=$n(".navbar");t.css("top",""),$n("#sub-nav").css("top",t.outerHeight(!0)+"px"),window.scrollTo(0,e)}};function Gn(e){return(Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wn(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 Jn(e,t){return(Jn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qn(e);if(t){var o=Qn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zn(this,n)}}function Zn(e,t){return!t||"object"!==Gn(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 Qn(e){return(Qn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var er=[vn.PLAYLIST,vn.PLAY_PLAYLIST,vn.PLAY_PLAYLIST_VIDEO],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&&Jn(e,t)}(u,e);var t,n,o,i=Xn(u);function u(){return Kn(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.onlineContextService=qn.getClickView().Shared.Services.ContextService,this.listenTo(f.SHELL,r.EventNames.ROUTE,this.setContext)}},{key:"setContext",value:function(e){var t=e.action,n=e.args;-1!==er.indexOf(t)?this.setPlaylistContext(n[0].toString()):this.clearContext()}},{key:"setPlaylistContext",value:function(e){var t=qn.getClickView().Shared.Utils.Constants.CONTEXTS.SEARCH_NAV,n=qn.getMasterPlaylistModel({id:e});this.getPlaylist(e,(function(e){Hn(n,e),n.trigger("sync")})),this.onlineContextService.setContext(t,n)}},{key:"clearContext",value:function(){var e=qn.getClickView().Shared.Utils.Constants.CONTEXTS.SEARCH_NAV;this.onlineContextService.clearContext(e)}},{key:"getPlaylist",value:function(e,t){yn.getInstance(a.PLAYLIST).getPlaylist(e,(function(e){yn.releaseInstance(a.PLAYLIST),t(e)}))}},{key:"name",get:function(){return c.CONTEXT}}])&&Wn(t.prototype,n),o&&Wn(t,o),u}(r.Service),nr=n(0),rr=n.n(nr),or=n(19),ir=n(4);function ar(e){return(ar="function"==typeof Symbol&&"symbol"==typeof Symbol.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 ur(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 sr(e,t){return(sr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pr(e);if(t){var o=pr(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"!==ar(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 pr(e){return(pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dr=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&&sr(e,t)}(i,e);var t,n,r,o=lr(i);function i(){return cr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"isReactComponent",value:function(e){return nr&&nr.isValidElement(e)}},{key:"showChildView",value:function(e,t){this.isReactComponent(t)&&this.showChildReactComponent(e,t)}},{key:"showChildReactComponent",value:function(e,t){var n=this;this.isAttached()?this.renderChildReactComponent(e,t):this.listenToOnce(this,"attach",(function(){return n.renderChildReactComponent(e,t)}))}},{key:"renderChildReactComponent",value:function(e,t){var n=this.getRegion(e),r=this.$el.find(n.el);r&&r.length&&(n.trigger("before:show"),or.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return or.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return or.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return nr.createElement(ir.Provider,{store:this.options.store},e)}}])&&ur(t.prototype,n),r&&ur(t,r),i}(yt),hr="left:nav",yr="content",mr="popup",vr="alert",br=function(e,t,n){return u.throttle(e,t,n)},gr=function(e){return u.isFunction(e)};function wr(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 Er(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 Er(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 Er(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 Sr(e){return function(e){if(Array.isArray(e))return Or(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 Or(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 Or(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 Or(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 xr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=nr.useRef(null);return nr.useEffect((function(){if(e){var t=n.current;return e.render(),t.hasChildNodes()?t.replaceChild(e.el,t.firstChild):t.appendChild(e.el),e.trigger("rendered"),function(){e.close()}}}),Sr(t)),n}var kr=n(223),Cr=n(224),jr={ALERT:"AlertService",SCROLL:"ScrollService",LANGUAGE:"LanguageService"};function Ar(e){return(Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lr(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 Pr(e,t){return(Pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 Rr(this,n)}}function Rr(e,t){return!t||"object"!==Ar(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 Ir=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&&Pr(e,t)}(i,e);var t,n,r,o=Nr(i);function i(){return _r(this,i),o.apply(this,arguments)}return t=i,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"setConfig",value:function(e){this.polyglot=new kr({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||U.throw(new Ye("LanguageService config must be set.")),!this.polyglot.has(r)){if(!O.isDevelopment){var o=window.trackJs;return o&&o.console.error("No phrase set for ".concat(r," in language config")),""}U.throw(new Ye("No phrase set for ".concat(r," in language config.")))}if(!n||u.isEmpty(n)){var i=this.cache[r];if(i)return i;var a=this.polyglot.t(r);return this.cache[r]=a,a}var c=u.omit(n,"smartCount"),s={};for(var l in c)s[l]=Cr.sanitize(c[l]);u.isNumber(n.smartCount)&&(s.smart_count=n.smartCount);var f="".concat(r,":").concat(u.values(Object.assign({},s)).join(":")),p=this.cache[f];if(p)return p;var d=this.polyglot.t(r,s);return this.cache[f]=d,d}},{key:"encloseNamespace",value:function(e){var t=this;return function(n,r){return t.getPhrase(e,n,r)}}},{key:"name",get:function(){return jr.LANGUAGE}}])&&Lr(t.prototype,n),r&&Lr(t,r),i}(zt).Instance,Fr=" - ClickView",Dr=function(e){e&&r.LocationUtils.SetPageTitle(function(e){return e.length+Fr.length<=60?e+Fr:e.substring(0,57)+"..."+Fr}(e))};function Mr(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 Ur(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 Ur(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 Ur(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 Vr,zr,Hr=nr.createContext({}),Br=function(){return Ir.getPhrase("shared.context","defaultTitle")},qr=function(e){var t=e.children,n=Mr(nr.useState(Br),2),r=n[0],o=n[1],i=Mr(nr.useState(Br),2),a=i[0],c=i[1];return nr.useEffect((function(){return Dr(r)}),[r]),nr.createElement(Hr.Provider,{value:{setPageTitle:function(e){e!==r&&(r!==a&&c(r),o(e))},revertPageTitle:function(){o(a)}}},t)},$r={API_REQUEST:"API_REQUEST",API_REPONSE:"API_RESPONSE",API_ERROR:"API_ERROR",INVALIDATE:"INVALIDATE",UPDATE:"UPDATE"};function Yr(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}!function(e){e.None="None",e.Fetching="Fetching",e.Success="Success",e.Error="Error"}(Vr||(Vr={})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(zr||(zr={}));var Gr=[zr.POST,zr.PUT];function Kr(e){var t=e.resource,n=e.type,r=e.success,o=e.error,i=e.always,a={url:t,method:n};Gr.includes(n)&&e.data&&(a.data=JSON.stringify(e.data)),$.ajax(a).done((function(e,t,n){r&&r(e,Yr(n))})).fail((function(e,t,n){o&&o(Yr(e))})).always((function(){i&&i()}))}function Wr(e){return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,r=void 0===n?"id":n,o=t.namespace,i=void 0===o?"":o;return e[r]||U.throw(new Ye("There was an issue during normalization. Object did not have an id attribute.")),"".concat(i,"__").concat(e[r])}function Xr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=[];return e.forEach((function(e){e[o]&&i.push(Jr(e,n)),Qr(e,t,n)})),i}function Zr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=Object.assign({},e);if(Object.keys(e).forEach((function(r){var a=e[r];if(a)if(Array.isArray(a)){var c=Xr(a,t,n);c.length&&(i[r]=c)}else if("object"===Wr(a)){var u=Zr(a,t,n);a[o]?i[r]=Jr(a,n):i[r]=u}})),e[o]){var a=Jr(e,n);return t[a]=i,a}return i}function Qr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)return Array.isArray(e)?Xr(e,t,n):"object"===Wr(e)?Zr(e,t,n):e}function eo(e,t){var n={};return{result:Qr(e,n,t),entities:n}}function to(e){return(to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function no(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};var r=no(t[e],t,n);return Object.assign(n[e],r),Vn.isEmpty(n[e])&&delete n[e],n[e]}(e,t,n);if(Array.isArray(e))return e.map((function(e){return no(e,t,n)}));if("object"===to(e)){var r={};return Object.keys(e).forEach((function(o){r[o]=no(e[o],t,n)||e[o]})),r}}}function ro(e,t){return no(e,t,{})}function oo(e,t){return e===t}function io(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function ao(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oo,n=null,r=null;return function(){return io(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function co(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function uo(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=0,a=r.pop(),c=co(r),u=e.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),s=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return u.apply(null,e)}));return s.resultFunc=a,s.dependencies=c,s.recomputations=function(){return i},s.resetRecomputations=function(){return i=0},s}}var so=uo(ao);var lo={currentTimestamp:function(){return(new Date).valueOf()},isExpired:function(e,t){if(!t)return!1;var n=1e3*t;return e<lo.currentTimestamp()-n},currentTimeOfDay:function(e){e||(e=new Date);var t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"}};function fo(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 po=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.requestTime=t.requestTime,this.cacheDuration=t.cacheDuration,this.data=t.data,this.statusCode=t.statusCode}var t,n,r;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===Vr.None||this.isExpired}},{key:"isExpired",get:function(){return lo.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===Vr.Fetching}},{key:"hasError",get:function(){return this.status===Vr.Error}},{key:"isComplete",get:function(){return this.status===Vr.Success||this.status===Vr.Error}}])&&fo(t.prototype,n),r&&fo(t,r),e}();function ho(e,t,n){if(!e||!t)return yo();var r=t.response;return!1!==t.request.normalize&&(r=ro(t.response,n)),new po({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function yo(){return new po({status:Vr.None})}function mo(e,t){return ho(t,e.flightData.resources[t],e.flightData.entities)}function vo(e,t){return function(){bo(e,t)}}function bo(e,t){e({type:$r.API_REQUEST,request:t})}function go(e){return vo(Object(ir.useDispatch)(),e)}function wo(e,t){var n=Object(nr.useMemo)((function(){var n;return(null===(n=t)||void 0===n?void 0:n.optimize)?function(e){return uo(ao,(function(e,t){var n=["response","request"];return Vn.isEqual(Vn.omit(e,n),Vn.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n,r=t.flightData.resources[e];return(null===(n=r)||void 0===n?void 0:n.entityIds)?r.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return ho(e,t,n)}))}(e):function(e){return so((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return ho(e,t,n)}))}(e)}),[e]);return Object(ir.useSelector)((function(e){return n(e)}))}function Eo(e,t){var n=Object(ir.useDispatch)(),r=wo(e&&e.key,t),o=vo(n,e);return e&&r.shouldFetch&&o(),r}function So(e){return function(e){if(Array.isArray(e))return Oo(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 Oo(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 Oo(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 Oo(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 xo,ko=function(e,t,n){var r=Array.isArray(t)?t:[t],o=[];return r.forEach((function(t){var n,r=new RegExp(t,"i"),i=Object.keys(e.resources).filter((function(e){return r.test(e)}));(n=o).push.apply(n,So(i))})),n&&(o=o.filter((function(e){return e!==n}))),o.reduce((function(e,t){return e[t]=!0,e}),{})};!function(e){e[e.Ok=200]="Ok",e[e.NoContent=204]="NoContent",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.Conflict=409]="Conflict",e[e.InternalServer=500]="InternalServer"}(xo||(xo={}));var Co=function(e){var t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},jo=function(e,t){var n=e.success,r=e.error,o=e.always,i=t;window.setTimeout((function(){i.noResponse||(i.successResponse?n(i.successResponse(),{status:xo.Ok,getResponseHeader:function(e){return""}}):i.errorResponse&&r(i.errorResponse()),o())}),function(e){var t=e.timeout||300;return t/2+(Math.floor(Math.random()*t/2)+1)}(t))},Ao=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};function _o(e){var t=e.fetchData,n=e.bootstrappedData,r=e.defaultExpiryTime,o=Object.freeze({key:null,url:null,type:zr.GET,normalize:!0,formatData:function(e){return e},expiryTime:r});return function(e){return function(r){return function(i){if(i.type===$r.API_REQUEST){var a=e.getState(),c=Object.assign({},o,i.request),u=c.success,s=c.error,l=c.always,f=c.formatData,p=Ao(c,["success","error","always","formatData"]),d=a.flightData.resources[p.key];if(r(i),!d||d.status!==Vr.Fetching){if(p.bootstrapName&&n[i.request.bootstrapName])return y(n[i.request.bootstrapName]),m(),void delete n[i.request.bootstrapName];var h={resource:p.url,type:p.type,data:p.data,success:y,error:function(t){e.dispatch({type:$r.API_ERROR,errorResponse:t.responseJSON,request:i.request,timestamp:lo.currentTimestamp(),xhr:t}),s&&s(t)},always:m};return void(Co(p)?jo(h,p):t(h))}}else r(i);function y(t,n){var r=f(t),o={result:r,entities:{}};(p.normalize&&(o=eo(r,p.normalizeOptions)),e.dispatch({type:$r.API_REPONSE,result:o.result,entities:o.entities,request:p,timestamp:lo.currentTimestamp(),xhr:n}),p.updateState)&&(Array.isArray(p.updateState)?p.updateState:[p.updateState]).forEach((function(t){var n,r,o,i;n=t,r=ko(a.flightData,n.keys),o=Object.assign({},Object.keys(a.flightData.resources).filter((function(e){return r[e]})).reduce((function(e,t){var n=a.flightData.resources[t],r=n.response;return n.request.normalize&&(r=ro(n.response,a.flightData.entities)),e[t]=r,e}),{})),i=n.updateData(o),Object.keys(i).forEach((function(t){var n=a.flightData.resources[t],r=i[t],o={result:r,entities:{}};n.request.normalize&&(o=eo(r,n.request.normalizeOptions)),e.dispatch({type:$r.UPDATE,result:o.result,entities:o.entities,request:n.request})}))}));if(u){var i=o.result;p.normalize&&(i=ro(o.result,Object.assign(Object.assign({},a.flightData.entities),o.entities))),u(i)}}function m(){p.invalidationKeys&&e.dispatch({type:$r.INVALIDATE,keys:p.invalidationKeys,request:p}),l&&l()}}}}}function Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Po(e,t){var n=Object.assign({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=Object.assign(Object.assign({},e[r]),t[r]):n[r]=t[r]})),n}function No(e,t){var n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),Lo({},t.request.key,{request:t.request,status:Vr.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}))}}function Ro(e,t){var n,r=t.entities?Object.keys(t.entities):[];return{entities:Po(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),Lo({},t.request.key,{request:t.request,status:Vr.Success,response:t.result,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status,entityIds:r}))}}function To(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),Lo({},t.request.key,{request:t.request,status:Vr.Error,errorResponse:t.errorResponse,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status}))}}function Io(e,t){var n,r=ko(e,t.keys,null===(n=t.request)||void 0===n?void 0:n.key);return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),Object.keys(e.resources).filter((function(e){return r[e]})).reduce((function(t,n){var r=e.resources[n];return t[n]=Object.assign({},r,{status:Vr.None}),t}),{}))}}function Fo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Do,t=arguments.length>1?arguments[1]:void 0,n=t.entities?Object.keys(t.entities):[];return{entities:Po(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),Lo({},t.request.key,Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})))}}var Do={resources:{},entities:{}};function Mo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Do,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case $r.API_REQUEST:return No(e,t);case $r.API_REPONSE:return Ro(e,t);case $r.API_ERROR:return To(e,t);case $r.INVALIDATE:return Io(e,t);case $r.UPDATE:return Fo(e,t)}return e}function Uo(e){return function(e){if(Array.isArray(e))return Vo(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 Vo(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 Vo(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 Vo(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 zo=function(e){return u.first(e)},Ho=function(e){return u.last(e)},Bo=function(e,t){return u.max(e,t)},qo=function(e,t,n){var r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},$o=function(e){return e&&!e.length},Yo=function(e,t){return u.findIndex(e,t)},Go=function(e,t){var n=e.indexOf(t),r=Vn.deepClone(e);return-1===n?[].concat(Uo(r),[t]):[].concat(Uo(r.slice(0,n)),Uo(r.slice(n+1)))},Ko=function(e){return u.uniq(e)};var Wo="id";function Jo(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function Xo(e){var t=localStorage.getItem(e);return t?JSON.parse(t):null}var Zo={getAll:function(e,t){var n=Xo(e);return n&&n.length?n:!n&&t?(t.forEach((function(t){return Zo.create(e,t)})),Xo(e)):[]},get:function(e,t){var n=Zo.getAll(e);return n.length?n.find((function(e){return e[Wo]===t})):null},create:function(e,t){var n=Zo.getAll(e),r=Object.assign(Object.assign({},t),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},Wo,t[Wo]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString()));return n.push(r),Jo(e,n),r},update:function(e,t){var n=Zo.getAll(e);if(!n.length)return t;var r=n.findIndex((function(e){return e[Wo]===t[Wo]}));return n[r]=t,Jo(e,n),t},delete:function(e,t){var n=Zo.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach((function(e){var t=n.findIndex((function(t){return t[Wo]===e}));n.splice(t,1)})),Jo(e,n))},assoc:function(e,t,n,r,o){var i=Array.isArray(o),a=i?o:[o];"string"==typeof zo(a)&&(a=Zo.getAll(r).filter((function(e){return a.includes(e.id)})));var c=a.map((function(e){return e.id?e:Zo.create(r,e)})),u=Zo.getAll(e);if(u.length){var s=u.find((function(e){return e.id===t}));if(s)return c.forEach((function(e){if(s[n])if(Array.isArray(s[n])){if(s[n].find((function(t){return t.id===e.id})))return;s[n].push(e)}else s[n]=e;else s[n]=i?[e]:e})),Jo(e,u=u.map((function(e){return e.id!==s.id?e:s}))),i?c:zo(c)}},dissoc:function(e,t,n,r){var o=Zo.getAll(e);if(o.length){var i=o.find((function(e){return e.id===t}));if(i){var a=i[n];if(a)return Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]),r.forEach((function(e){var t=a.findIndex((function(t){return t.id===e}));a.splice(t,1)})),i[n]=a,Jo(e,o=o.map((function(e){return e.id!==i.id?e:i}))),o}}}},Qo={url:"/api/currentUser",key:"currentuser"};function ei(e){o.useBasicFetch(Qo),e&&(Array.isArray(e)?e.map((function(e){return e.id})):e.data.map((function(e){return e.id})));[].forEach((function(t){return function(e,t){var n=o.useGetResponse(t&&t.key),r=o.useGetFetch(t);e&&n.shouldFetch&&r()}(!!e,t)}))}var ti=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},ni=function(e){var t=e.className,n=e.children;return nr.createElement("div",{className:t},n)},ri=function(e){var t,n,r=e.leftNavChild,o=e.contentChild,i=e.popupChild,a=e.alertChild;return t=i,n=nr.useContext(Hr),nr.useEffect((function(){!t&&n&&gr(n.revertPageTitle)&&n.revertPageTitle()}),[t]),nr.createElement(nr.Fragment,null,nr.createElement(ni,{className:"left-nav-region"},r),nr.createElement(ni,{className:"content-region right overflow-hidden-x"},o),nr.createElement(ni,{className:"popup-region"},i),nr.createElement(ni,{className:"alert-region"},a))},oi=function(e){var t=e.provider,n=ti(e,["provider"]);return t?nr.createElement(t,null,nr.createElement(ri,Object.assign({},n))):nr.createElement(ri,Object.assign({},n))},ii=n(225),ai=n.n(ii);function ci(e){return(ci="function"==typeof Symbol&&"symbol"==typeof Symbol.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){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 si(e,t,n){return(si="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=di(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 li(e,t){return(li=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fi(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=di(e);if(t){var o=di(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pi(this,n)}}function pi(e,t){return!t||"object"!==ci(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 di(e){return(di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hi=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&&li(e,t)}(a,e);var t,n,r,o=fi(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)).childComponents={},t.leftNavVisible=!0,t}return t=a,r=[{key:"getCacheKey",value:function(){return i.ONLINE_LAYOUT}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{leftNavChild:this.childComponents[hr],contentChild:this.childComponents[yr],popupChild:this.childComponents[mr],alertChild:this.childComponents[vr]}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"hideLeftNav",value:function(){this.unsetRegion(hr)}},{key:"closePopup",value:function(){this.unsetRegion(mr)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,e!==hr||this.leftNavVisible||this.options.hideLeftNav||this.showLeftNav(),e===mr&&s.Radio.channel(f.POPUP).trigger("popup:render"),this.renderLayout()}},{key:"renderLayout",value:function(){si(di(a.prototype),"showChildView",this).call(this,"layout",this.wrapWithStore(nr.createElement(oi,Object.assign({provider:this.options.provider},this.getChildComponents()))))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"OnlineLayoutView"}},{key:"template",get:function(){return ai.a}}])&&ui(t.prototype,n),r&&ui(t,r),a}(dr);function yi(e){return(yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vi(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 bi(e,t,n){return t&&vi(e.prototype,t),n&&vi(e,n),e}function gi(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&&wi(e,t)}function wi(e,t){return(wi=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Oi(e);if(t){var o=Oi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Si(this,n)}}function Si(e,t){return!t||"object"!==yi(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 Oi(e){return(Oi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xi=function(e){gi(n,e);var t=Ei(n);function n(){return mi(this,n),t.apply(this,arguments)}return bi(n,[{key:"channelName",get:function(){return xn}},{key:"externalRoutes",get:function(){return{"(/)":"index","videos/:id":"video","series/:id":"series"}}}]),n}(r.AppRouter),ki=function(e){gi(n,e);var t=Ei(n);function n(){return mi(this,n),t.apply(this,arguments)}return bi(n,[{key:"name",get:function(){return"Default Application"}},{key:"channelName",get:function(){return xn}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT}}}],[{key:"router",get:function(){return xi}}]),n}(r.Application);function Ci(e){return function(e){if(Array.isArray(e))return ji(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 ji(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 ji(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 ji(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 Ai=function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var r=qo(e,t,n),o=n<e.length-1?r[n+1].id:null;return{reorderedItems:r,reorderRequest:{sourceMemberId:r[n].id,destinationMemberId:o}}},_i=function(e,t,n){for(var r=[],o=Vn.deepClone(n),i=[e],a=n[e],c=!!a&&!!a.data&&a.data.length;a&&Array.isArray(a.data);){r.push.apply(r,Ci(a.data));var u=a.pagination&&a.pagination.cursors&&a.pagination.cursors.next,s=!!u&&"".concat(e,":").concat(u);(a=u&&n[s])&&i.push(s)}if(!r.length)return n;var l=Yo(r,(function(e){return e.id===t.sourceMemberId})),f=[].concat(r),p=f.splice(l,1),d=t.destinationMemberId?Yo(f,(function(e){return e.id===t.destinationMemberId})):f.length;return f.splice(d,0,p[0]),i.forEach((function(e){var t=f.splice(0,c);o[e].data=t})),o};function Li(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 Pi,Ni=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,r;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 U.throw(new Ye("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&Li(t.prototype,n),r&&Li(t,r),e}();!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"}(Pi||(Pi={}));var Ri,Ti={type:Pi.Unknown,message:"",code:0};!function(e){e.Newest="newest",e.RecentlyUpdated="recentlyupdated",e.AtoZ="atoz"}(Ri||(Ri={}));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 Fi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Di(e,t){return(Di=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mi(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vi(e);if(t){var o=Vi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ui(this,n)}}function Ui(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 Vi(e){return(Vi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zi,Hi=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&&Di(e,t)}(n,e);var t=Mi(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Fi(this,n),t.call(this,{collectionPrefix:"playlist:videos",id:e,cursor:r})}return n}(Ni);!function(e){e[e.Queued=1]="Queued",e[e.Processing=2]="Processing",e[e.Processed=3]="Processed",e[e.Errored=4]="Errored"}(zi||(zi={}));var Bi=function(e,t){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(e)&&(r[e]=Object.assign(Object.assign({},r[e]),t)),r}},qi=function(e){return function(t){var n=Object.assign({},t);return n.hasOwnProperty(e)&&delete n[e],n}},$i=function(e,t){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(e)?(r[e].videos||(r[e].videos={}),r[e].videos.count=r[e].videos.count?r[e].videos.count+t:t,r):n}},Yi=function(e){switch(e){case Ri.RecentlyUpdated:return"orderbydesc:timestamp";case Ri.AtoZ:return"orderby:name";case Ri.Newest:default:return"orderbydesc:datecreated"}},Gi=function(e){switch(e){case"recentlyupdated":return Ri.RecentlyUpdated;case"atoz":return Ri.AtoZ;case"newest":default:return Ri.Newest}},Ki=function(e){return e?"&cursor=".concat(e):""},Wi=function(e){return Number.isInteger(e)?"&maxRatingValue=".concat(e):""},Ji=function(e,t){return"".concat(e).concat(t?":".concat(t):"")},Xi={getPlaylist:function(e,t,n){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Nn.PLAYLIST),key:"playlist:".concat(e),success:t,error:n}},getSharedPlaylist:function(e,t,n,r){var o="/api/domain/v2/share/".concat(e);return{url:"".concat(o,"?query=").concat(Nn.PLAYLIST).concat(Wi(t)),key:"shared:playlist:".concat(e),success:n,error:r}},getUserPlaylists:function(e){var t=Yi(e.sort);return{url:"/api/domain/v2/me/playlists?query={".concat(t,",limit:100}")+"".concat(Nn.PLAYLIST_COLLECTION).concat(Ki(e.cursor)),key:e.toString()}},getPlaylistVideos:function(e,t,n){var r="orderBy:orderindex,limit:100";return Number.isInteger(t)&&(r+=",rating.value:0...".concat(t)),{url:"/api/domain/v2/objects/".concat(e,"/videos?query={").concat(r,"}")+"".concat(Nn.VIDEO_COLLECTION).concat(Ki(n)),key:Ji("playlist:".concat(e,":videos"),n)}},getSharedPlaylistVideos:function(e,t,n){return{url:"/api/domain/v2/share/".concat(e,"/videos?query={orderBy:orderindex,limit:100}")+"".concat(Nn.VIDEO_COLLECTION).concat(Ki(n)).concat(Wi(t)),key:Ji("shared:playlist:".concat(e,":videos"),n)}},getVideoPlaylists:function(e,t,n){return{url:"/api/domain/v2/objects/".concat(e,"/playlists?query={limit:100,owner.id:[").concat(t,"]}"),key:Ji("video:playlists:".concat(e),n)}},getIsFollowingPlaylist:function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"/followers?query={id:").concat(t,"}"),key:"playlist:".concat(e,":following:").concat(t),formatData:function(t){var n,r;return{objectId:e,isFollowing:!!(null===(r=null===(n=t)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length)}},normalize:!1}},createPlaylist:function(e,t,n,r){return{key:"create:playlist",url:"/api/domain/v2/objects/".concat(e,"/playlists"),data:t,type:zr.POST,success:n,error:r,invalidationKeys:"user:playlists"}},updatePlaylist:function(e,t,n,r){return{key:"update:playlist",url:"/api/domain/v2/objects/".concat(e),data:t,type:zr.PUT,success:n,error:r,updateState:{keys:"playlist:".concat(e),updateData:Bi("playlist:".concat(e),t)}}},deletePlaylist:function(e,t,n){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(e),type:zr.DELETE,success:t,error:n,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(e),updateData:qi("playlist:".concat(e))}}},addToPlaylist:function(e,t,n,r){var o=["user:playlists",new Hi(e).toString()];return t.forEach((function(e){o.push("video:playlists:".concat(e))})),{key:"add:to:playlist",url:"/api/domain/v2/objects/".concat(e,"/associate"),data:t,type:zr.POST,success:n,error:r,invalidationKeys:o,updateState:{keys:"playlist:".concat(e),updateData:$i("playlist:".concat(e),t.length)}}},reorderVideos:function(e,t,n,r){return{key:"reorder:playlist",url:"/api/domain/v2/objects/".concat(e,"/videos/reorder"),data:t,type:zr.PUT,success:n,error:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(e,":videos"),updateData:function(n){return _i("playlist:".concat(e,":videos"),t,n)}}}},removePlaylistVideo:function(e,t,n,r){return{key:"remove:playlist:video",url:"/api/domain/v2/objects/".concat(e,"/dissociate?memberId=").concat(t),type:zr.DELETE,success:n,error:r,invalidationKeys:["user:playlists","playlist:".concat(e,":videos")]}},followPlaylist:function(e,t){return{url:"/api/domain/v2/objects/".concat(t),key:"follow:playlist:".concat(e),data:{followedPlaylists:e},type:zr.PUT}},unfollowPlaylist:function(e,t){return{url:"/api/domain/v2/objects/".concat(t,"/followedplaylists/").concat(e),key:"unfollow:playlist:".concat(e),type:zr.DELETE}},getMigrationTask:function(e,t){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(e){return e||{status:zi.Processed}},success:e,error:t}}};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)}}var Qi,ea,ta,na,ra,oa,ia,aa,ca,ua,sa,la,fa,pa,da,ha,ya,ma,va,ba,ga=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"getPlaylist",value:function(e,t,n){var r=Xi.getPlaylist(e,t,n),i=o.getResponse(this.store.getState(),r.key);return i.shouldFetch?o.fetch(this.store.dispatch,r):i.data&&gr(t)&&t(i.data),i.data}},{key:"getMigrationTask",value:function(e,t){var n=Xi.getMigrationTask(e,t),r=o.getResponse(this.store.getState(),n.key);return r.shouldFetch?o.fetch(this.store.dispatch,n):r.data&&gr(e)&&e(r.data),r.data}},{key:"name",get:function(){return a.PLAYLIST}},{key:"channelName",get:function(){return Ln}}])&&Zi(t.prototype,n),r&&Zi(t,r),e}(),wa=n(226),Ea=n.n(wa),Sa=/&/g,Oa=/[\W]+/g,xa=/\s+/g,ka={className:"info-link"},Ca=function(e){if(e)return e.toLowerCase().replace(Sa,"and").replace(Oa," ").trim().replace(xa,"-").substr(0,80)},ja=function(e,t){if(e){var n=t?u.extend({},ka,t):ka;return Ea()(e,n)}};!function(e){e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",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.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning"}(Qi||(Qi={})),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.StaffRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",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="target_user"}(ea||(ea={})),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.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.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",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.TeacherManager="teacher_manager",e.TeacherManagerListItem="teacher_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.PlayPage="play_page",e.FloatingPlayer="floating_player",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads"}(ta||(ta={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(na||(na={})),function(e){e.PageLoad="page_load"}(ra||(ra={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(oa||(oa={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(ia||(ia={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(aa||(aa={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(ca||(ca={})),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"}(ua||(ua={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Thumbnail="thumbnail",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"}(sa||(sa={})),function(e){e.LibraryReview="library_review"}(la||(la={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(fa||(fa={})),function(e){e.Edit="edit"}(pa||(pa={})),function(e){e.Image="image",e.User="user"}(da||(da={})),function(e){e.On="on",e.Off="off"}(ha||(ha={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(ya||(ya={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(ma||(ma={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags"}(va||(va={})),function(e){e[e.V1=1]="V1"}(ba||(ba={}));var Aa,_a,La=n(90);function Pa(e){return(Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Na(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 Ra(e,t){return(Ra=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ta(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fa(e);if(t){var o=Fa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ia(this,n)}}function Ia(e,t){return!t||"object"!==Pa(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 Fa(e){return(Fa=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"}(Aa||(Aa={})),function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(_a||(_a={}));var Da,Ma=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&&Ra(e,t)}(i,e);var t,n,r,o=Ta(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.alertCollection=new _e,this.listenTo(f.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}},{key:"showAlerts",value:function(){var e=s.Radio.channel(f.ALERT),t={collection:this.alertCollection};this.options.alertViewCtor&&(t=u.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=u.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new xt(e)),this.showAlerts()}},{key:"clearAllAlerts",value:function(){this.alertCollection.reset(null)}},{key:"success",value:function(e){var t=this;return"string"==typeof e?u.bind((function(){return t.createAlert(u.extend({},t.options.defaultSuccessAlert,{message:e}))}),this):e.useXHR?u.bind((function(e,n){return t.createAlert(u.extend({},t.options.defaultSuccessAlert,{message:n}))}),this):u.bind((function(){return t.createAlert(u.extend({},t.options.defaultSuccessAlert,e))}),this)}},{key:"error",value:function(e){var t=this;return"string"==typeof e?u.bind((function(){return t.createAlert(u.extend({},t.options.defaultErrorAlert,{message:e}))}),this):e.useXHR?u.bind((function(e){return t.createAlert(u.extend({},t.options.defaultErrorAlert,{message:e.message}))}),this):u.bind((function(){return t.createAlert(u.extend({},t.options.defaultErrorAlertIL_DEFAULT,e))}),this)}},{key:"generateUniqueAlertId",value:function(){return u.uniqueId("alert_")}},{key:"name",get:function(){return jr.ALERT}},{key:"defaults",get:function(){return{maxAlerts:3}}}])&&Na(t.prototype,n),r&&Na(t,r),i}(zt);function Ua(e){var t=e.alert,n=e.svgType,r=e.svgTypeClassName,o=e.closeAlert,i=t.message,a=t.heading,c=t.appLink,u=t.appLinkText;return nr.createElement("div",{className:"alert-item bg-white"},nr.createElement("div",{className:"alert-icon-container"},nr.createElement("span",{className:"svg-container"},nr.createElement(Uf,{svgName:n,className:r}))),nr.createElement("div",{className:"alert-content-container"},nr.createElement("h3",{className:"alert-heading"},a),nr.createElement("p",{className:"alert-message"},i),c&&nr.createElement(Pf,{appLink:c},u)),nr.createElement("div",{className:"close-alert",onClick:o},"×"))}function Va(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 za(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 za(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 za(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.Edit="edit",e.Play="play-triangle",e.Plus="plus",e.Share="share",e.Down="down",e.CheckCircleOutline="check-circle-o",e.Info="info",e.Warning="warning",e.Back="back",e.Bell="bell",e.BellFilled="bell-filled"}(Da||(Da={}));var Ha=function(e){switch(e.type){case Aa.Success:return Da.CheckCircleOutline;case Aa.Fail:case Aa.Warning:return Da.Warning;case Aa.Info:default:return Da.Info}};function Ba(e){var t=e.alert,n=e.closeAlert,r=Va(nr.useState(!0),2),o=r[0],i=r[1],a=nr.useRef();nr.useEffect((function(){o?a.current=window.setTimeout(n,3e3):clearTimeout(a.current)}),[o]);var c="text-".concat(t.type.toLowerCase());return nr.createElement("li",{onMouseEnter:function(){return i(!1)},onMouseLeave:function(){return i(!0)}},nr.createElement(Ua,{alert:t,svgType:Ha(t),svgTypeClassName:c,closeAlert:n}))}var qa,$a=n(3);function Ya(e){return(Ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ga(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ka(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 Wa(e,t){return(Wa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ja(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Za(e);if(t){var o=Za(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xa(this,n)}}function Xa(e,t){return!t||"object"!==Ya(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 Za(e){return(Za=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(qa||(qa={}));var Qa,ec=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&&Wa(e,t)}(a,e);var t,n,o,i=Ja(a);function a(){var e;return Ga(this,a),(e=i.apply(this,arguments)).contextHistory=[],e}return t=a,o=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"initialize",value:function(){this.listenTo(f.SHELL,r.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}},{key:"name",get:function(){return qa.Context}}])&&Ka(t.prototype,n),o&&Ka(t,o),a}(r.Service));!function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(Qa||(Qa={}));var tc="global:analytics";function nc(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 rc=ba.V1,oc=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||rc}var t,n,o;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||r.ErrorHelper.throw(new Ye("".concat(e," is not a valid key"))),this[e]&&r.ErrorHelper.throw(new Ye("Event already contains an enrichment named ".concat(e)))}}])&&nc(t.prototype,n),o&&nc(t,o),e}(),ic=function(e,t,n,r){s.Radio.channel(tc).trigger(Qa.Inlet,new oc(e,t,n,r))};function ac(){var e=ec.getCurrentContext().appLink;return u.isObject(e)||r.ErrorHelper.throw(new Ye("Applink does not exist. Check current context.")),e.application.replace(":","-")}function cc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.location,n=e.entity,o=e.workflowPhase,i=void 0===o?null:o,a=e.descriptor,c=void 0===a?null:a;return t||r.ErrorHelper.throw(new Ye("location must be set.")),n||r.ErrorHelper.throw(new Ye("entity must be set.")),{productArea:ac(),location:t,entity:n,descriptor:c,workflowPhase:i}}function uc(){return r.LocationUtils.GetCurrentPath()+r.LocationUtils.GetCurrentQueryString()}var sc={logUserAction:function(e,t){if(function(e){return!(!u.isArray(e)||!u.every(e,(function(e){return u.isObject(e)})))||!!u.isObject(e)}(e)&&u.isObject(t)){var n=sc.buildUserActionEvent(t),r=n.userAction,o=n.action,i=n.eventVersion;ic(r,e,o,i)}},logNavigate:function(e,t){var n=Object.assign({currentLocation:uc(),appLink:e},t);ic(Qi.Navigate,n)},mergeOptions:function(e,t){return u.extend({},e,t)},buildActionContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return cc(e)},buildUserActionEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionType,n=e.eventVersion,r=t,o=cc(e);return{userAction:r,action:o,eventVersion:n}},buildCurrentLocation:function(){return uc()},buildSearchEvent:function(e,t){return{data:{query:e},action:cc({entity:ea.Video,location:ta.SearchBar,descriptor:t})}},buildInstantSearchEvent:function(e,t,n){var r;n===va.Series&&(r=ea.Series),n===va.Folder&&(r=ea.Folder),n===va.Tags&&(r=ea.Tag),n===va.Video&&(r=ea.Video);var o={instant:{},query:e};return t.id&&(o.instant.selectedId=t.id),t.name&&(o.instant.selectedName=t.name),{data:o,action:cc({entity:r,location:ta.SearchBar})}},mapInteractionType:function(e){switch(e){case ma.DragDrop:return fa.DragDrop;case ma.FileSelect:return fa.FileSelect;default:return}}};function lc(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 fc(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 fc(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 fc(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 pc(e){var t=e.title,n=e.appLink,r=e.className,o=e.analyticsOptions;return nr.createElement("li",{className:r},nr.createElement(Pf,{appLink:n,onClick:function(){if(o){var e=lc(n.args,1)[0];sc.logUserAction({id:e},o)}}},t))}function dc(e){var t=e.itemOptions,n=e.alignRight;if(t&&t.length)return nr.createElement($a.Dropdown.Menu,{alignRight:n},t.map((function(e,t){return nr.createElement(pc,{key:t,title:e.title,appLink:e.appLink,className:e.className,analyticsOptions:e.analyticsOptions})})))}var hc=n(30),yc=n.n(hc),mc=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===vc}(e)}(e)};var vc="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function bc(e,t){return!1!==t.clone&&t.isMergeableObject(e)?wc((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function gc(e,t,n){return e.concat(t).map((function(e){return bc(e,n)}))}function wc(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||gc,n.isMergeableObject=n.isMergeableObject||mc;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=bc(e[t],n)})),Object.keys(t).forEach((function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=wc(e[o],t[o],n):r[o]=bc(t[o],n)})),r}(e,t,n):bc(t,n)}wc.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return wc(e,n,t)}),{})};var Ec=wc,Sc=n(7),Oc=Sc.a.Symbol,xc=Object.prototype,kc=xc.hasOwnProperty,Cc=xc.toString,jc=Oc?Oc.toStringTag:void 0;var Ac=function(e){var t=kc.call(e,jc),n=e[jc];try{e[jc]=void 0;var r=!0}catch(e){}var o=Cc.call(e);return r&&(t?e[jc]=n:delete e[jc]),o},_c=Object.prototype.toString;var Lc=function(e){return _c.call(e)},Pc=Oc?Oc.toStringTag:void 0;var Nc=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Pc&&Pc in Object(e)?Ac(e):Lc(e)};var Rc=function(e,t){return function(n){return e(t(n))}},Tc=Rc(Object.getPrototypeOf,Object);var Ic=function(e){return null!=e&&"object"==typeof e},Fc=Function.prototype,Dc=Object.prototype,Mc=Fc.toString,Uc=Dc.hasOwnProperty,Vc=Mc.call(Object);var zc=function(e){if(!Ic(e)||"[object Object]"!=Nc(e))return!1;var t=Tc(e);if(null===t)return!0;var n=Uc.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Mc.call(n)==Vc};var Hc=function(){this.__data__=[],this.size=0};var Bc=function(e,t){return e===t||e!=e&&t!=t};var qc=function(e,t){for(var n=e.length;n--;)if(Bc(e[n][0],t))return n;return-1},$c=Array.prototype.splice;var Yc=function(e){var t=this.__data__,n=qc(t,e);return!(n<0)&&(n==t.length-1?t.pop():$c.call(t,n,1),--this.size,!0)};var Gc=function(e){var t=this.__data__,n=qc(t,e);return n<0?void 0:t[n][1]};var Kc=function(e){return qc(this.__data__,e)>-1};var Wc=function(e,t){var n=this.__data__,r=qc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Jc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Jc.prototype.clear=Hc,Jc.prototype.delete=Yc,Jc.prototype.get=Gc,Jc.prototype.has=Kc,Jc.prototype.set=Wc;var Xc=Jc;var Zc=function(){this.__data__=new Xc,this.size=0};var Qc=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var eu=function(e){return this.__data__.get(e)};var tu=function(e){return this.__data__.has(e)};var nu=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ru,ou=function(e){if(!nu(e))return!1;var t=Nc(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},iu=Sc.a["__core-js_shared__"],au=(ru=/[^.]+$/.exec(iu&&iu.keys&&iu.keys.IE_PROTO||""))?"Symbol(src)_1."+ru:"";var cu=function(e){return!!au&&au in e},uu=Function.prototype.toString;var su=function(e){if(null!=e){try{return uu.call(e)}catch(e){}try{return e+""}catch(e){}}return""},lu=/^\[object .+?Constructor\]$/,fu=Function.prototype,pu=Object.prototype,du=fu.toString,hu=pu.hasOwnProperty,yu=RegExp("^"+du.call(hu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var mu=function(e){return!(!nu(e)||cu(e))&&(ou(e)?yu:lu).test(su(e))};var vu=function(e,t){return null==e?void 0:e[t]};var bu=function(e,t){var n=vu(e,t);return mu(n)?n:void 0},gu=bu(Sc.a,"Map"),wu=bu(Object,"create");var Eu=function(){this.__data__=wu?wu(null):{},this.size=0};var Su=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ou=Object.prototype.hasOwnProperty;var xu=function(e){var t=this.__data__;if(wu){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ou.call(t,e)?t[e]:void 0},ku=Object.prototype.hasOwnProperty;var Cu=function(e){var t=this.__data__;return wu?void 0!==t[e]:ku.call(t,e)};var ju=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wu&&void 0===t?"__lodash_hash_undefined__":t,this};function Au(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Au.prototype.clear=Eu,Au.prototype.delete=Su,Au.prototype.get=xu,Au.prototype.has=Cu,Au.prototype.set=ju;var _u=Au;var Lu=function(){this.size=0,this.__data__={hash:new _u,map:new(gu||Xc),string:new _u}};var Pu=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Nu=function(e,t){var n=e.__data__;return Pu(t)?n["string"==typeof t?"string":"hash"]:n.map};var Ru=function(e){var t=Nu(this,e).delete(e);return this.size-=t?1:0,t};var Tu=function(e){return Nu(this,e).get(e)};var Iu=function(e){return Nu(this,e).has(e)};var Fu=function(e,t){var n=Nu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Du(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Du.prototype.clear=Lu,Du.prototype.delete=Ru,Du.prototype.get=Tu,Du.prototype.has=Iu,Du.prototype.set=Fu;var Mu=Du;var Uu=function(e,t){var n=this.__data__;if(n instanceof Xc){var r=n.__data__;if(!gu||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mu(r)}return n.set(e,t),this.size=n.size,this};function Vu(e){var t=this.__data__=new Xc(e);this.size=t.size}Vu.prototype.clear=Zc,Vu.prototype.delete=Qc,Vu.prototype.get=eu,Vu.prototype.has=tu,Vu.prototype.set=Uu;var zu=Vu;var Hu=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Bu=function(){try{var e=bu(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var qu=function(e,t,n){"__proto__"==t&&Bu?Bu(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},$u=Object.prototype.hasOwnProperty;var Yu=function(e,t,n){var r=e[t];$u.call(e,t)&&Bc(r,n)&&(void 0!==n||t in e)||qu(e,t,n)};var Gu=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var c=t[i],u=r?r(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?qu(n,c,u):Yu(n,c,u)}return n};var Ku=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Wu=function(e){return Ic(e)&&"[object Arguments]"==Nc(e)},Ju=Object.prototype,Xu=Ju.hasOwnProperty,Zu=Ju.propertyIsEnumerable,Qu=Wu(function(){return arguments}())?Wu:function(e){return Ic(e)&&Xu.call(e,"callee")&&!Zu.call(e,"callee")},es=Array.isArray,ts=n(64),ns=/^(?:0|[1-9]\d*)$/;var rs=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ns.test(e))&&e>-1&&e%1==0&&e<t};var os=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},is={};is["[object Float32Array]"]=is["[object Float64Array]"]=is["[object Int8Array]"]=is["[object Int16Array]"]=is["[object Int32Array]"]=is["[object Uint8Array]"]=is["[object Uint8ClampedArray]"]=is["[object Uint16Array]"]=is["[object Uint32Array]"]=!0,is["[object Arguments]"]=is["[object Array]"]=is["[object ArrayBuffer]"]=is["[object Boolean]"]=is["[object DataView]"]=is["[object Date]"]=is["[object Error]"]=is["[object Function]"]=is["[object Map]"]=is["[object Number]"]=is["[object Object]"]=is["[object RegExp]"]=is["[object Set]"]=is["[object String]"]=is["[object WeakMap]"]=!1;var as=function(e){return Ic(e)&&os(e.length)&&!!is[Nc(e)]};var cs=function(e){return function(t){return e(t)}},us=n(15),ss=us.a&&us.a.isTypedArray,ls=ss?cs(ss):as,fs=Object.prototype.hasOwnProperty;var ps=function(e,t){var n=es(e),r=!n&&Qu(e),o=!n&&!r&&Object(ts.a)(e),i=!n&&!r&&!o&&ls(e),a=n||r||o||i,c=a?Ku(e.length,String):[],u=c.length;for(var s in e)!t&&!fs.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||rs(s,u))||c.push(s);return c},ds=Object.prototype;var hs=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ds)},ys=Rc(Object.keys,Object),ms=Object.prototype.hasOwnProperty;var vs=function(e){if(!hs(e))return ys(e);var t=[];for(var n in Object(e))ms.call(e,n)&&"constructor"!=n&&t.push(n);return t};var bs=function(e){return null!=e&&os(e.length)&&!ou(e)};var gs=function(e){return bs(e)?ps(e):vs(e)};var ws=function(e,t){return e&&Gu(t,gs(t),e)};var Es=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Ss=Object.prototype.hasOwnProperty;var Os=function(e){if(!nu(e))return Es(e);var t=hs(e),n=[];for(var r in e)("constructor"!=r||!t&&Ss.call(e,r))&&n.push(r);return n};var xs=function(e){return bs(e)?ps(e,!0):Os(e)};var ks=function(e,t){return e&&Gu(t,xs(t),e)},Cs=n(228);var js=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var As=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var _s=function(){return[]},Ls=Object.prototype.propertyIsEnumerable,Ps=Object.getOwnPropertySymbols,Ns=Ps?function(e){return null==e?[]:(e=Object(e),As(Ps(e),(function(t){return Ls.call(e,t)})))}:_s;var Rs=function(e,t){return Gu(e,Ns(e),t)};var Ts=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},Is=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ts(t,Ns(e)),e=Tc(e);return t}:_s;var Fs=function(e,t){return Gu(e,Is(e),t)};var Ds=function(e,t,n){var r=t(e);return es(e)?r:Ts(r,n(e))};var Ms=function(e){return Ds(e,gs,Ns)};var Us=function(e){return Ds(e,xs,Is)},Vs=bu(Sc.a,"DataView"),zs=bu(Sc.a,"Promise"),Hs=bu(Sc.a,"Set"),Bs=bu(Sc.a,"WeakMap"),qs=su(Vs),$s=su(gu),Ys=su(zs),Gs=su(Hs),Ks=su(Bs),Ws=Nc;(Vs&&"[object DataView]"!=Ws(new Vs(new ArrayBuffer(1)))||gu&&"[object Map]"!=Ws(new gu)||zs&&"[object Promise]"!=Ws(zs.resolve())||Hs&&"[object Set]"!=Ws(new Hs)||Bs&&"[object WeakMap]"!=Ws(new Bs))&&(Ws=function(e){var t=Nc(e),n="[object Object]"==t?e.constructor:void 0,r=n?su(n):"";if(r)switch(r){case qs:return"[object DataView]";case $s:return"[object Map]";case Ys:return"[object Promise]";case Gs:return"[object Set]";case Ks:return"[object WeakMap]"}return t});var Js=Ws,Xs=Object.prototype.hasOwnProperty;var Zs=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Xs.call(e,"index")&&(n.index=e.index,n.input=e.input),n},Qs=Sc.a.Uint8Array;var el=function(e){var t=new e.constructor(e.byteLength);return new Qs(t).set(new Qs(e)),t};var tl=function(e,t){var n=t?el(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},nl=/\w*$/;var rl=function(e){var t=new e.constructor(e.source,nl.exec(e));return t.lastIndex=e.lastIndex,t},ol=Oc?Oc.prototype:void 0,il=ol?ol.valueOf:void 0;var al=function(e){return il?Object(il.call(e)):{}};var cl=function(e,t){var n=t?el(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var ul=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return el(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return tl(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return cl(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return rl(e);case"[object Set]":return new r;case"[object Symbol]":return al(e)}},sl=Object.create,ll=function(){function e(){}return function(t){if(!nu(t))return{};if(sl)return sl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var fl=function(e){return"function"!=typeof e.constructor||hs(e)?{}:ll(Tc(e))};var pl=function(e){return Ic(e)&&"[object Map]"==Js(e)},dl=us.a&&us.a.isMap,hl=dl?cs(dl):pl;var yl=function(e){return Ic(e)&&"[object Set]"==Js(e)},ml=us.a&&us.a.isSet,vl=ml?cs(ml):yl,bl={};bl["[object Arguments]"]=bl["[object Array]"]=bl["[object ArrayBuffer]"]=bl["[object DataView]"]=bl["[object Boolean]"]=bl["[object Date]"]=bl["[object Float32Array]"]=bl["[object Float64Array]"]=bl["[object Int8Array]"]=bl["[object Int16Array]"]=bl["[object Int32Array]"]=bl["[object Map]"]=bl["[object Number]"]=bl["[object Object]"]=bl["[object RegExp]"]=bl["[object Set]"]=bl["[object String]"]=bl["[object Symbol]"]=bl["[object Uint8Array]"]=bl["[object Uint8ClampedArray]"]=bl["[object Uint16Array]"]=bl["[object Uint32Array]"]=!0,bl["[object Error]"]=bl["[object Function]"]=bl["[object WeakMap]"]=!1;var gl=function e(t,n,r,o,i,a){var c,u=1&n,s=2&n,l=4&n;if(r&&(c=i?r(t,o,i,a):r(t)),void 0!==c)return c;if(!nu(t))return t;var f=es(t);if(f){if(c=Zs(t),!u)return js(t,c)}else{var p=Js(t),d="[object Function]"==p||"[object GeneratorFunction]"==p;if(Object(ts.a)(t))return Object(Cs.a)(t,u);if("[object Object]"==p||"[object Arguments]"==p||d&&!i){if(c=s||d?{}:fl(t),!u)return s?Fs(t,ks(c,t)):Rs(t,ws(c,t))}else{if(!bl[p])return i?t:{};c=ul(t,p,u)}}a||(a=new zu);var h=a.get(t);if(h)return h;a.set(t,c),vl(t)?t.forEach((function(o){c.add(e(o,n,r,o,t,a))})):hl(t)&&t.forEach((function(o,i){c.set(i,e(o,n,r,i,t,a))}));var y=l?s?Us:Ms:s?keysIn:gs,m=f?void 0:y(t);return Hu(m||t,(function(o,i){m&&(o=t[i=o]),Yu(c,i,e(o,n,r,i,t,a))})),c};var wl=function(e){return gl(e,4)};var El=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o};var Sl=function(e){return"symbol"==typeof e||Ic(e)&&"[object Symbol]"==Nc(e)};function Ol(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ol.Cache||Mu),n}Ol.Cache=Mu;var xl=Ol;var kl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cl=/\\(\\)?/g,jl=function(e){var t=xl(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(kl,(function(e,n,r,o){t.push(r?o.replace(Cl,"$1"):n||e)})),t}));var Al=function(e){if("string"==typeof e||Sl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},_l=Oc?Oc.prototype:void 0,Ll=_l?_l.toString:void 0;var Pl=function e(t){if("string"==typeof t)return t;if(es(t))return El(t,e)+"";if(Sl(t))return Ll?Ll.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var Nl=function(e){return null==e?"":Pl(e)};var Rl=function(e){return es(e)?El(e,Al):Sl(e)?[e]:js(jl(Nl(e)))};var Tl=function(e,t){},Il=n(91),Fl=n(92),Dl=n.n(Fl);var Ml=function(e){return gl(e,5)};function Ul(){return(Ul=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Vl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function zl(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Hl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Bl=function(e){return"function"==typeof e},ql=function(e){return null!==e&&"object"==typeof e},$l=function(e){return String(Math.floor(Number(e)))===e},Yl=function(e){return"[object String]"===Object.prototype.toString.call(e)},Gl=function(e){return 0===nr.Children.count(e)},Kl=function(e){return ql(e)&&Bl(e.then)};function Wl(e,t,n,r){void 0===r&&(r=0);for(var o=Rl(t);e&&r<o.length;)e=e[o[r++]];return void 0===e?n:e}function Jl(e,t,n){for(var r=wl(e),o=r,i=0,a=Rl(t);i<a.length-1;i++){var c=a[i],u=Wl(e,a.slice(0,i+1));if(u&&(ql(u)||Array.isArray(u)))o=o[c]=wl(u);else{var s=a[i+1];o=o[c]=$l(s)&&Number(s)>=0?[]:{}}}return(0===i?e:o)[a[i]]===n?e:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function Xl(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],c=e[a];ql(c)?n.get(c)||(n.set(c,!0),r[a]=Array.isArray(c)?[]:{},Xl(c,t,n,r[a])):r[a]=t}return r}var Zl=Object(nr.createContext)(void 0),Ql=Zl.Provider,ef=Zl.Consumer;function tf(){var e=Object(nr.useContext)(Zl);return e||Tl(!1),e}function nf(e,t){switch(t.type){case"SET_VALUES":return Ul({},e,{values:t.payload});case"SET_TOUCHED":return Ul({},e,{touched:t.payload});case"SET_ERRORS":return Ul({},e,{errors:t.payload});case"SET_STATUS":return Ul({},e,{status:t.payload});case"SET_ISSUBMITTING":return Ul({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Ul({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Ul({},e,{values:Jl(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Ul({},e,{touched:Jl(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Ul({},e,{errors:Jl(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Ul({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Ul({},e,{touched:Xl(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Ul({},e,{isSubmitting:!1});default:return e}}var rf={},of={};function af(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,i=e.validateOnMount,a=void 0!==i&&i,c=e.isInitialValid,u=e.enableReinitialize,s=void 0!==u&&u,l=e.onSubmit,f=zl(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=Ul({validateOnChange:n,validateOnBlur:o,validateOnMount:a,onSubmit:l},f),d=Object(nr.useRef)(p.initialValues),h=Object(nr.useRef)(p.initialErrors||rf),y=Object(nr.useRef)(p.initialTouched||of),m=Object(nr.useRef)(p.initialStatus),v=Object(nr.useRef)(!1),b=Object(nr.useRef)({});Object(nr.useEffect)((function(){0}),[]),Object(nr.useEffect)((function(){return v.current=!0,function(){v.current=!1}}),[]);var g=Object(nr.useReducer)(nf,{values:p.initialValues,errors:p.initialErrors||rf,touched:p.initialTouched||of,status:p.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),w=g[0],E=g[1],S=Object(nr.useCallback)((function(e,t){return new Promise((function(n,r){var o=p.validate(e,t);null==o?n(rf):Kl(o)?o.then((function(e){n(e||rf)}),(function(e){r(e)})):n(o)}))}),[p.validate]),O=Object(nr.useCallback)((function(e,t){var n=p.validationSchema,r=Bl(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);void 0===r&&(r={});var o=function e(t){var n={};for(var r in t)if(t.hasOwnProperty(r)){var o=String(r);!0===Array.isArray(t[o])?n[o]=t[o].map((function(t){return!0===Array.isArray(t)||zc(t)?e(t):""!==t?t:void 0})):zc(t[o])?n[o]=e(t[o]):n[o]=""!==t[o]?t[o]:void 0}return n}(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r})}(e,r);return new Promise((function(e,t){o.then((function(){e(rf)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Jl(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;Wl(t,a.path)||(t=Jl(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[p.validationSchema]),x=Object(nr.useCallback)((function(e,t){return new Promise((function(n){return n(b.current[e].validate(t))}))}),[]),k=Object(nr.useCallback)((function(e){var t=Object.keys(b.current).filter((function(e){return Bl(b.current[e].validate)})),n=t.length>0?t.map((function(t){return x(t,Wl(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=Jl(e,t[r],n)),e}),{})}))}),[x]),C=Object(nr.useCallback)((function(e){return Promise.all([k(e),p.validationSchema?O(e):{},p.validate?S(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return Ec.all([t,n,r],{arrayMerge:uf})}))}),[p.validate,p.validationSchema,k,S,O]),j=lf((function(e){return void 0===e&&(e=w.values),Object(Il.unstable_runWithPriority)(Il.LowPriority,(function(){return C(e).then((function(e){return v.current&&E({type:"SET_ERRORS",payload:e}),e}))}))})),A=lf((function(e){return void 0===e&&(e=w.values),E({type:"SET_ISVALIDATING",payload:!0}),C(e).then((function(e){return v.current&&(E({type:"SET_ISVALIDATING",payload:!1}),yc()(w.errors,e)||E({type:"SET_ERRORS",payload:e})),e}))}));Object(nr.useEffect)((function(){a&&!0===v.current&&j(p.initialValues)}),[p.initialValues,a,j]);var _=Object(nr.useCallback)((function(e){var t=e&&e.values?e.values:d.current,n=e&&e.errors?e.errors:h.current?h.current:p.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:p.initialTouched||{},o=e&&e.status?e.status:m.current?m.current:p.initialStatus;d.current=t,h.current=n,y.current=r,m.current=o,E({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})}),[p.initialErrors,p.initialStatus,p.initialTouched]);Object(nr.useEffect)((function(){s&&!0===v.current&&!yc()(d.current,p.initialValues)&&(d.current=p.initialValues,_())}),[s,p.initialValues,_]),Object(nr.useEffect)((function(){s&&!0===v.current&&!yc()(h.current,p.initialErrors)&&(h.current=p.initialErrors||rf,E({type:"SET_ERRORS",payload:p.initialErrors||rf}))}),[s,p.initialErrors]),Object(nr.useEffect)((function(){s&&!0===v.current&&!yc()(y.current,p.initialTouched)&&(y.current=p.initialTouched||of,E({type:"SET_TOUCHED",payload:p.initialTouched||of}))}),[s,p.initialTouched]),Object(nr.useEffect)((function(){s&&!0===v.current&&!yc()(m.current,p.initialStatus)&&(m.current=p.initialStatus,E({type:"SET_STATUS",payload:p.initialStatus}))}),[s,p.initialStatus,p.initialTouched]);var L=lf((function(e){if(Bl(b.current[e].validate)){var t=Wl(w.values,e),n=b.current[e].validate(t);return Kl(n)?(E({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),E({type:"SET_ISVALIDATING",payload:!1})}))):(E({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return Promise.resolve()})),P=Object(nr.useCallback)((function(e,t){var n=t.validate;b.current[e]={validate:n}}),[]),N=Object(nr.useCallback)((function(e){delete b.current[e]}),[]),R=lf((function(e){return E({type:"SET_TOUCHED",payload:e}),o?j(w.values):Promise.resolve()})),T=Object(nr.useCallback)((function(e){E({type:"SET_ERRORS",payload:e})}),[]),I=lf((function(e){return E({type:"SET_VALUES",payload:e}),n?j(e):Promise.resolve()})),F=Object(nr.useCallback)((function(e,t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),D=lf((function(e,t,r){return void 0===r&&(r=!0),E({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),n&&r?j(Jl(w.values,e,t)):Promise.resolve()})),M=Object(nr.useCallback)((function(e,t){var n,r=t,o=e;if(!Yl(e)){e.persist&&e.persist();var i=e.target,a=i.type,c=i.name,u=i.id,s=i.value,l=i.checked,f=(i.outerHTML,i.options),p=i.multiple;r=t||(c||u),o=/number|range/.test(a)?(n=parseFloat(s),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("true"==n||"false"==n)return!!t;if(t&&n)return Array.isArray(e)?e.concat(n):[n];if(!Array.isArray(e))return!e;var r=e.indexOf(n);if(r<0)return e;return e.slice(0,r).concat(e.slice(r+1))}(Wl(w.values,r),l,s):p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):s}r&&D(r,o)}),[D,w.values]),U=Object(nr.useCallback)((function(e){if(Yl(e))return function(t){return M(t,e)};M(e)}),[M]),V=lf((function(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!0),E({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),o&&n?j(w.values):Promise.resolve()})),z=Object(nr.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=(n.outerHTML,t||(r||o));V(i,!0)}),[V]),H=Object(nr.useCallback)((function(e){if(Yl(e))return function(t){return z(t,e)};z(e)}),[z]),B=Object(nr.useCallback)((function(e){Bl(e)?E({type:"SET_FORMIK_STATE",payload:e}):E({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),q=Object(nr.useCallback)((function(e){E({type:"SET_STATUS",payload:e})}),[]),$=Object(nr.useCallback)((function(e){E({type:"SET_ISSUBMITTING",payload:e})}),[]),Y={resetForm:_,validateForm:A,validateField:L,setErrors:T,setFieldError:F,setFieldTouched:V,setFieldValue:D,setStatus:q,setSubmitting:$,setTouched:R,setValues:I,setFormikState:B},G=lf((function(){return l(w.values,Y)})),K=lf((function(){return E({type:"SUBMIT_ATTEMPT"}),A().then((function(e){if(0===Object.keys(e).length){var t=G();if(void 0===t)return;return Promise.resolve(t).then((function(){v.current&&E({type:"SUBMIT_SUCCESS"})})).catch((function(e){if(v.current)throw E({type:"SUBMIT_FAILURE"}),e}))}v.current&&E({type:"SUBMIT_FAILURE"})}))})),W=lf((function(e){e&&e.preventDefault&&Bl(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Bl(e.stopPropagation)&&e.stopPropagation(),K()})),J=lf((function(e){if(e&&e.preventDefault&&Bl(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Bl(e.stopPropagation)&&e.stopPropagation(),p.onReset){var t=p.onReset(w.values,Y);Kl(t)?t.then(_):_()}else _()})),X=Object(nr.useCallback)((function(e){return{value:Wl(w.values,e),error:Wl(w.errors,e),touched:!!Wl(w.touched,e),initialValue:Wl(d.current,e),initialTouched:!!Wl(y.current,e),initialError:Wl(h.current,e)}}),[w.errors,w.touched,w.values]),Z=Object(nr.useCallback)((function(e){var t=ql(e),n=t?e.name:e,r=Wl(w.values,n),o={name:n,value:r,onChange:U,onBlur:H};if(t){var i=e.type,a=e.value,c=e.as,u=e.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===c&&u&&(o.value=o.value||[],o.multiple=!0)}return o}),[H,U,w.values]),Q=Object(nr.useMemo)((function(){return!yc()(d.current,w.values)}),[w.values]),ee=Object(nr.useMemo)((function(){return void 0!==c?Q?w.errors&&0===Object.keys(w.errors).length:!1!==c&&Bl(c)?c(p):c:w.errors&&0===Object.keys(w.errors).length}),[c,Q,w.errors,p]);return Ul({},w,{initialValues:d.current,initialErrors:h.current,initialTouched:y.current,initialStatus:m.current,handleBlur:H,handleChange:U,handleReset:J,handleSubmit:W,resetForm:_,setErrors:T,setFormikState:B,setFieldTouched:V,setFieldValue:D,setFieldError:F,setStatus:q,setSubmitting:$,setTouched:R,setValues:I,submitForm:K,validateForm:A,validateField:L,isValid:ee,dirty:Q,unregisterField:N,registerField:P,getFieldProps:Z,getFieldMeta:X,validateOnBlur:o,validateOnChange:n,validateOnMount:a})}function cf(e){var t=af(e),n=e.component,r=e.children,o=e.render;return Object(nr.useEffect)((function(){0}),[]),Object(nr.createElement)(Ql,{value:t},n?Object(nr.createElement)(n,t):o?o(t):r?Bl(r)?r(t):Gl(r)?null:nr.Children.only(r):null)}function uf(e,t,n){var r=e.slice();return t.forEach((function(t,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?Ec(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=Ec(e[o],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var sf="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?nr.useLayoutEffect:nr.useEffect;function lf(e){var t=Object(nr.useRef)(e);return sf((function(){t.current=e})),Object(nr.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}function ff(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,a=e.component,c=zl(e,["validate","name","render","children","as","component"]),u=tf(),s=(u.validate,u.validationSchema,zl(u,["validate","validationSchema"]));Object(nr.useEffect)((function(){0}),[]);var l=s.registerField,f=s.unregisterField;Object(nr.useEffect)((function(){return l(n,{validate:t}),function(){f(n)}}),[l,f,n,t]);var p=s.getFieldProps(Ul({name:n},c)),d=s.getFieldMeta(n),h={field:p,form:s};if(r)return r(Ul({},h,{meta:d}));if(Bl(o))return o(Ul({},h,{meta:d}));if(a){if("string"==typeof a){var y=c.innerRef,m=zl(c,["innerRef"]);return Object(nr.createElement)(a,Ul({ref:y},p,m),o)}return Object(nr.createElement)(a,Ul({field:p,form:s},c),o)}var v=i||"input";if("string"==typeof v){var b=c.innerRef,g=zl(c,["innerRef"]);return Object(nr.createElement)(v,Ul({ref:b},p,g),o)}return Object(nr.createElement)(v,Ul({},p,c),o)}var pf=Object(nr.forwardRef)((function(e,t){var n=e.action,r=zl(e,["action"]),o=n||"#",i=tf(),a=i.handleReset,c=i.handleSubmit;return Object(nr.createElement)("form",Object.assign({onSubmit:c,ref:t,onReset:a,action:o},r))}));function df(e){var t=function(t){return Object(nr.createElement)(ef,null,(function(n){return n||Tl(!1),Object(nr.createElement)(e,Object.assign({},t,{formik:n}))}))},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",Dl()(t,e)}pf.displayName="Form";var hf=function(e,t,n){var r=yf(e);return r.splice(t,0,n),r},yf=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Ul({},e,{length:t+1}))}return[]},mf=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var o=n.props,i=o.name,a=o.validateOnChange,c=o.formik,u=c.setFormikState,s=c.validateForm;u((function(n){var o="function"==typeof r?r:e,a="function"==typeof t?t:e;return Ul({},n,{values:Jl(n.values,i,e(Wl(n.values,i))),errors:r?Jl(n.errors,i,o(Wl(n.errors,i))):n.errors,touched:t?Jl(n.touched,i,a(Wl(n.touched,i))):n.touched})}),(function(){a&&s()}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(yf(t),[Ml(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=yf(e),o=r[t];return r[t]=r[n],r[n]=o,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=yf(e),o=r[t];return r.splice(t,1),r.splice(n,0,o),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return hf(n,e,t)}),(function(t){return hf(t,e,null)}),(function(t){return hf(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=yf(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Hl(n)),n.pop=n.pop.bind(Hl(n)),n}Vl(t,e);var n=t.prototype;return n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?yf(n):[];return t||(t=r[e]),Bl(r.splice)&&r.splice(e,1),r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,o=t.children,i=t.name,a=t.formik,c=(a.validate,a.validationSchema,Ul({},e,{form:zl(a,["validate","validationSchema"]),name:i}));return n?Object(nr.createElement)(n,c):r?r(c):o?"function"==typeof o?o(c):Gl(o)?null:nr.Children.only(o):null},t}(nr.Component);mf.defaultProps={validateOnChange:!0};nr.Component;(function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.render,o=t.children,i=t.component,a=t.as;t.name;return r&&Tl(!1),i&&r&&Tl(!1),a&&o&&Bl(o)&&Tl(!1),i&&o&&Bl(o)&&Tl(!1),r&&o&&!Gl(o)&&Tl(!1),n}Vl(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e,t,n){return this.props.shouldUpdate?this.props.shouldUpdate(e,this.props):Wl(this.context.values,this.props.name)!==Wl(n.values,this.props.name)||Wl(this.context.errors,this.props.name)!==Wl(n.errors,this.props.name)||Wl(this.context.touched,this.props.name)!==Wl(n.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length||this.context.isSubmitting!==n.isSubmitting},n.componentDidMount=function(){this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentDidUpdate=function(e){this.props.name!==e.name&&(this.context.unregisterField(e.name),this.context.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentWillUnmount=function(){this.context.unregisterField(this.props.name)},n.render=function(){var e=this.props,t=(e.validate,e.name),n=e.render,r=e.as,o=e.children,i=e.component,a=(e.shouldUpdate,zl(e,["validate","name","render","as","children","component","shouldUpdate"])),c=this.context,u=(c.validate,c.validationSchema,zl(c,["validate","validationSchema"])),s={value:"radio"===a.type||"checkbox"===a.type?a.value:Wl(c.values,t),name:t,onChange:c.handleChange,onBlur:c.handleBlur},l={field:s,meta:{value:Wl(c.values,t),error:Wl(c.errors,t),touched:!!Wl(c.touched,t),initialValue:Wl(c.initialValues,t),initialTouched:!!Wl(c.initialTouched,t),initialError:Wl(c.initialErrors,t)},form:u};if(n)return n(l);if(Bl(o))return o(l);if(i){if("string"==typeof i){var f=a.innerRef,p=zl(a,["innerRef"]);return Object(nr.createElement)(i,Ul({ref:f},s,p),o)}return Object(nr.createElement)(i,Ul({field:s,form:c},a),o)}var d=r||"input";if("string"==typeof d){var h=a.innerRef,y=zl(a,["innerRef"]);return Object(nr.createElement)(d,Ul({ref:h},s,y),o)}return Object(nr.createElement)(d,Ul({},s,a),o)},t}(nr.Component)).contextType=Zl;var vf=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};function bf(e){var t=e.label,n=e.error,r=e.touched,o=e.className,i=vf(e,["label","error","touched","className"]),a=n&&r,c="form-group";a&&(c+=" has-error");var u="form-control";return a&&(u+=" is-invalid"),o&&(u+=" ".concat(o)),nr.createElement("div",{className:c},t&&nr.createElement("label",{className:"form-label",htmlFor:i.id},t),nr.createElement(ff,Object.assign({className:u},i),e.children),a&&nr.createElement("span",{className:"help-block invalid-feedback"},n))}function gf(e){return nr.createElement(pf,null,e.children)}function wf(e){var t=e.initialValues,n=e.validationSchema,r=e.onSubmit,o=e.renderChildren;return nr.createElement(cf,{initialValues:t,validationSchema:n,onSubmit:r},(function(e){return nr.createElement(gf,Object.assign({},e),o(e))}))}function Ef(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 Sf(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 Sf(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 Sf(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 Of=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};function xf(e){var t=e.buttonText,n=e.showSpinner,r=Of(e,["buttonText","showSpinner"]),o=nr.useRef(),i=Ef(nr.useState({}),2),a=i[0],c=i[1];return nr.useEffect((function(){var e=a.width,t=a.height;if(!e||!t){var n=o.current,r=n.offsetHeight,i=n.offsetWidth;r&&i&&c({width:i,height:r})}})),nr.useEffect((function(){var e=a.width,t=a.height;if(e&&t){var n=o.current;n.style.width="".concat(e+1,"px"),n.style.height="".concat(t+1,"px")}}),[a]),nr.createElement($a.Button,Object.assign({ref:o},r),n?nr.createElement(Mf,{size:"sm",color:"white"}):t)}var kf=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};function Cf(e){var t=e.buttons;return nr.createElement("div",{className:"btn-container"},t.map((function(e,t){return function(e,t){var n=e.isSpinnerButton,r=e.type,o=void 0===r?"button":r,i=kf(e,["isSpinnerButton","type"]);if(n)return nr.createElement(xf,Object.assign({key:t,type:o},i));var a=i.buttonText,c=(i.showSpinner,kf(i,["buttonText","showSpinner"]));return nr.createElement($a.Button,Object.assign({key:t,type:o},c),a)}(e,t)})))}var jf=nr.createContext(void 0);function Af(e){var t=e.title,n=e.close,r=e.showLoadingSpinner,o=nr.useRef(),i=nr.useRef(),a=nr.useRef(),c=function(){return Yn.position(o.current)};return nr.useEffect((function(){return i.current=Yn.renderMask(),a.current=Yn.lockBody(),c(),i.current.on("click",n),function(){i.current&&i.current.hide(),Yn.onPopupClose(a.current)}}),[]),nr.useEffect((function(){c()}),[r]),nr.createElement("div",{ref:o,className:"cv-popup",style:{display:"none"}},t&&nr.createElement("div",{className:"titlebar-container"},nr.createElement("div",{className:"cv-titlebar"},nr.createElement("div",{className:"text-container"},nr.createElement("h1",{className:"title"},t),nr.createElement("a",{className:"close",onClick:n},"×")))),!t&&nr.createElement("div",{className:"no-heading"},nr.createElement("a",{className:"close",onClick:n},"×")),nr.createElement("div",{className:"popup-body-container"},r?nr.createElement(Lf,null):nr.createElement(jf.Provider,{value:{onResize:c}},e.children)))}function _f(e){return or.createPortal(nr.createElement(Af,Object.assign({},e)),Yn.getContainerEl())}function Lf(){return nr.createElement("div",{className:"popup-loading-spinner"},nr.createElement(Mf,{size:"md",color:"#f8981d"}))}function Pf(e){var t=e.appLink,n=e.className,o=e.tag,i=void 0===o?"a":o,a=e.onClick,c={onClick:function(e){e.preventDefault(),gr(a)&&a(),r.AppLinkHelper.trigger(t)},href:r.AppLinkHelper.getHref(t),className:n};return nr.createElement(i,Object.assign({},c),e.children)}var Nf=n(38);function Rf(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 Tf(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 Tf(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 Tf(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 If=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};function Ff(e){var t=Rf(Nf.useInView({triggerOnce:!0}),2),n=t[0],r=t[1];if(void 0===window.IntersectionObserver)return nr.createElement("img",Object.assign({alt:""},e));var o=e.src,i=If(e,["src"]),a=Object.assign(Object.assign({alt:"",style:{width:"100%",height:"100%"}},i),r?{src:o}:{});return nr.createElement("img",Object.assign({ref:n},a))}function Df(e){switch(e){case"sm":return{length:2,width:2,radius:4};case"md":return{length:3,width:3,radius:5};default:return{}}}function Mf(e){var t=e.size,n=e.color,r=xr(new(qn.getClickView().Shared.Views.SpinJsView)({spinColor:n,spinOptions:Df(t)}));return nr.createElement("div",{ref:r,className:"spinner-component"})}function Uf(e){var t=e.svgName,n=e.className;return nr.createElement("svg",{className:n},nr.createElement("use",{xlinkHref:"#".concat(t)}))}function Vf(e){var t=e.alerts,n=e.removeAlert;return nr.createElement("div",{className:"alert-box"},nr.createElement(La.TransitionGroup,{component:"ul"},t&&t.map((function(e,t){return nr.createElement(La.CSSTransition,{key:t,timeout:200,classNames:"alert"},nr.createElement(Ba,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}function zf(e){var t=yn.getInstance(e);return nr.useEffect((function(){return function(){return yn.releaseInstance(e)}})),t}function Hf(e){return zf(e)}var Bf={Config:"ConfigDataService",User:"UserDataService",Language:"LanguageDataService",Video:"VideoDataService",VideoUpload:"VideoUpload",Library:"LibraryDataService",Search:"SearchDataService",Series:"SeriesDataService",Notification:"NotificationDataService",NotificationSocket:"NotificationSocketService"},qf="ImageUrlService",$f="AppOptionsService",Yf={application:xn,action:mn.HOME};function Gf(e){var t=e.heading,n=e.description,r=e.returnAppLink,o=void 0===r?Yf:r,i=e.returnAppLinkText,a=void 0===i?Ir.getPhrase("shared.error","return"):i,c=Hf(qf).getImageUrls(),u=e.imageUrl||c.ErrorViews.DEFAULT;return nr.createElement("div",{className:"bg-white error-view"},nr.createElement("img",{src:u}),nr.createElement("h4",null,t),nr.createElement("p",null,n),!!o&&nr.createElement(Pf,{appLink:o},a))}var Kf=nr.createContext({});function Wf(e){return function(e){if(Array.isArray(e))return Jf(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 Jf(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 Jf(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 Jf(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 Xf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=nr.useContext(Kf),r=n.setPageTitle;nr.useEffect((function(){e&&gr(r)&&r(e)}),[e].concat(Wf(t)))}function Zf(e){var t=e.playlist,n=nr.useContext(jf),r=new(0,qn.getClickView().PlaylistApp.Views.ShareTabView)({itemModel:qn.getMasterPlaylistModel(t),type:"masterPlaylist",name:"playlist"}),o=xr(r);return nr.useEffect((function(){var e=function(){n&&n.onResize()};return r.on("resize",e),function(){return r.off("resize",e)}}),[]),nr.createElement("div",{ref:o})}var Qf=Ir.encloseNamespace("shared.share");function ep(e){var t=o.useBasicFetch(Xi.getPlaylist(e.playlistId));Xf(t.data&&"".concat(Qf("share")," ").concat(t.data.name),[t.data]);var n=[{variant:"secondary",onClick:e.closePopup,buttonText:Qf("close")}];return nr.createElement(_f,{title:Qf("sharePlaylist"),close:e.closePopup,showLoadingSpinner:!t.data},nr.createElement(nr.Fragment,null,!!t.data&&nr.createElement(Zf,{playlist:t.data}),nr.createElement(Cf,{buttons:n})))}function tp(e){return function(e){if(Array.isArray(e))return np(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 np(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 np(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 np(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 rp=function(e){return e&&e.data&&e.data.pagination&&e.data.pagination.cursors&&e.data.pagination.cursors.next};function op(e){return Object(ir.useSelector)(Object(nr.useMemo)((function(){return function(t){for(var n=e,r=gr(e)&&o.getResponse(t,n()),i=r&&r.isFetching,a=r&&r.shouldFetch,c=r&&r.data&&r.data.data,u=rp(r);u&&(i=(r=o.getResponse(t,n(u))).isFetching,!r.shouldFetch);){var s=r.data&&r.data.data;s&&c.push.apply(c,tp(s)),u=rp(r)}return{shouldInitialFetch:a,items:c,nextCursor:u,isFetching:i}}}),[e]))}function ip(e){return(ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ap(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cp(e,t){return(cp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function up(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lp(e);if(t){var o=lp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sp(this,n)}}function sp(e,t){return!t||"object"!==ip(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 lp(e){return(lp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fp=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&&cp(e,t)}(n,e);var t=up(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ri.Newest,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return ap(this,n),t.call(this,{collectionPrefix:"".concat(Sn),cursor:r,sort:e})}return n}(Ni);var pp=nr.createContext(""),dp=nr.memo((function(e){var t=e.phrase,n=e.namespace,r=e.options,o=nr.useContext(pp),i=n||o,a=Ir.getPhrase(i,t,r);return nr.createElement("span",{dangerouslySetInnerHTML:{__html:a}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&Vn.isEqual(e.options,t.options)}));function hp(){return nr.createElement("div",{className:"left-nav"},nr.createElement("div",{className:"partial-loading-view left-nav"},nr.createElement("div",{className:"nav-header"}),nr.createElement("div",{className:"nav-content"},nr.createElement("div",{className:"partial-loading-item width1"}),nr.createElement("div",{className:"partial-loading-item"}),nr.createElement("div",{className:"partial-loading-item width2"}),nr.createElement("div",{className:"partial-loading-item width3"}),nr.createElement("div",{className:"partial-loading-item"}),nr.createElement("div",{className:"partial-loading-item width2"}),nr.createElement("div",{className:"partial-loading-item width1"}),nr.createElement("div",{className:"partial-loading-item width3"}),nr.createElement("div",{className:"partial-loading-item width2"}),nr.createElement("div",{className:"partial-loading-item"}),nr.createElement("div",{className:"partial-loading-item width1"}),nr.createElement("div",{className:"partial-loading-item width2"}),nr.createElement("div",{className:"partial-loading-item width1"}),nr.createElement("div",{className:"partial-loading-item width2"}),nr.createElement("div",{className:"partial-loading-item width3"}),nr.createElement("div",{className:"partial-loading-item"}),nr.createElement("div",{className:"partial-loading-item width1"}),nr.createElement("div",{className:"partial-loading-item"}))))}function yp(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 mp(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 mp(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 mp(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 vp={entity:ea.Playlist,workflowPhase:na.Start},bp=Ir.encloseNamespace("playlists.playlistActions");function gp(e){var t=e.playlist,n=e.analyticsOptions,r=yp(nr.useState(!1),2),o=r[0],i=r[1],a=[{title:bp("share"),appLink:{application:kn,action:vn.SHARE_PLAYLIST,args:[t.id.toString()]},analyticsOptions:sc.mergeOptions(n,Object.assign({actionType:Qi.Share},vp))},{title:bp("edit"),appLink:{application:kn,action:vn.EDIT_PLAYLIST,args:[t.id.toString()]},analyticsOptions:sc.mergeOptions(n,Object.assign({actionType:Qi.Edit},vp))},{title:bp("delete"),appLink:{application:kn,action:vn.DELETE_PLAYLIST,args:[t.id.toString()]},className:"danger",analyticsOptions:sc.mergeOptions(n,Object.assign({actionType:Qi.Delete},vp))}];return nr.createElement("div",{className:"playlist-actions"},nr.createElement($a.Dropdown,{onToggle:function(){return i((function(e){return!e}))}},nr.createElement($a.Dropdown.Toggle,{as:"svg",id:"playlist-actions-".concat(t.id)},nr.createElement("use",{xlinkHref:"#more"})),o&&nr.createElement(dc,{itemOptions:a,alignRight:!0})))}function wp(e){var t=e.playlist,n=e.selected,r={application:kn,action:vn.PLAYLIST,args:[t.id.toString(),Ca(t.name)]},o={location:ta.LeftNav};return nr.createElement("div",{className:"nav-item".concat(n?" selected":"")},nr.createElement("div",{className:"playlist-icon"}),nr.createElement(Pf,{className:"nav-link",appLink:r},t.name),nr.createElement("div",{className:"playlist-actions-container"},nr.createElement(gp,{playlist:t,analyticsOptions:o})))}function Ep(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 Sp(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 Sp(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 Sp(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 Op=function(e){return{location:ta.VideoListHeader,entity:ea.Playlist,actionType:e,workflowPhase:na.Start}};function xp(e){var t=Ep(nr.useState(e.isFollowing),2),n=t[0],r=t[1],o=function(t){return{application:kn,action:t,args:[e.playlistId.toString()]}},i=o(vn.SHARE_PLAYLIST),a=o(vn.EDIT_PLAYLIST),c=nr.useCallback((function(t){return sc.logUserAction({id:e.playlist.id},t)}),[e.playlist]),u=nr.useCallback((function(){return c(Object.assign({descriptor:oa.All},Op(Qi.Play)))}),[Op]),s=nr.useCallback((function(){return c(Op(Qi.Share))}),[Op]),l=nr.useCallback((function(){return c(Op(Qi.Edit))}),[Op]);return nr.createElement(pp.Provider,{value:"playlists.playlistHeader"},nr.createElement("div",{className:"playlist-header-actions"},e.hasVideos&&!!e.playAllAppLink&&nr.createElement(Pf,{appLink:e.playAllAppLink,className:"btn grey",onClick:u},nr.createElement("span",{className:"play-svg-container"},nr.createElement(Uf,{svgName:Da.Play}))," ",nr.createElement(dp,{phrase:"playAll"})),e.canShare&&nr.createElement(Pf,{appLink:i,className:"btn grey",onClick:s},nr.createElement(Uf,{svgName:Da.Share}),nr.createElement(dp,{phrase:"share"})),e.canEdit&&nr.createElement(Pf,{appLink:a,className:"btn grey",onClick:l},nr.createElement(Uf,{svgName:Da.Edit}),nr.createElement(dp,{phrase:"edit"})),e.canFollow&&nr.createElement("button",{className:"btn grey",onClick:function(){r(!n),e.follow(!n)}},nr.createElement(Uf,{svgName:n?Da.BellFilled:Da.Bell}),nr.createElement(dp,{phrase:n?"following":"follow"}))))}var kp,Cp,jp,Ap,_p=n(11);!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(kp||(kp={})),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"}(Cp||(Cp={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(jp||(jp={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(Ap||(Ap={}));var Lp,Pp,Np={urlBuilder:function(e,t){var n=u.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)):""})),r=u.reduce(n,(function(e,t){return t?e?"".concat(e,"&").concat(t):t:e}));return r?"".concat(e,"?").concat(r):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 u.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}}};function Rp(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"}(Pp||(Pp={}));var Tp=(Rp(Lp={},Cp.Banners,Pp.Banner),Rp(Lp,Cp.Thumbnails,Pp.Thumbnail),Lp),Ip=function(e){return"/v1/category-map/".concat(e)},Fp={createUrl:function(e,t){return Fp._createUrl(e,t)},createBannerUrl:function(e,t,n){return e&&e.url?Fp._createUrl(e.url,n):Fp._createCategoryMappedUrl(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=Np.safeUrlConcat(n,"".concat(Ip(Tp[o]))),a=Object.assign({name:Fp.Rfc3986EncodeURIComponent(r)},t);return Fp._createUrl(i,a)},_createUrl:function(e,t){if(e){if(Vn.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&";return Np.safeUrlConcat(e,"".concat(r).concat(n))}},legacyCreateThumbnailUrl:function(e,t){if(!e)return"";var n;if(e&&(n=e instanceof r.Model?e.get("url"):"string"==typeof e?e:e.url)){var o=Object.assign({size:kp.Small,bgColor:"000"},t);return Fp._createUrl(n,o)}}};function Dp(e){var t=e.playlist,n={application:kn,action:vn.HOME};return nr.createElement("div",{className:"breadcrumbs-container border-bottom"},nr.createElement("ul",{className:"breadcrumbs"},nr.createElement("li",null,nr.createElement(Pf,{appLink:n},nr.createElement(dp,{namespace:"playlists.playlistHeader",phrase:"playlists"}))),nr.createElement("li",null,nr.createElement("span",null,t.name))))}function Mp(e){var t=e.showBreadcrumbs;return nr.createElement("div",{className:"playlist-header-partial"},t&&nr.createElement("div",{className:"partial-loading-item breadcrumbs"}),nr.createElement("div",{className:"header-inner"},nr.createElement("div",{className:"partial-loading-item thumbnail"}),nr.createElement("div",{className:"metadata"},nr.createElement("div",{className:"partial-loading-item heading"}),nr.createElement("div",{className:"partial-loading-item date"}),nr.createElement("div",{className:"actions"},nr.createElement("div",{className:"partial-loading-item action-1"}),nr.createElement("div",{className:"partial-loading-item action-2"}),nr.createElement("div",{className:"partial-loading-item action-3"})))))}function Up(e){if(e.showPartialLoading)return nr.createElement(Mp,{showBreadcrumbs:!e.showBreadcrumbs});var t=e.playlist.dateCreated&&_p.utc(e.playlist.dateCreated).fromNow(),n=!!e.showDateMetadata,r=!!e.showDateMetadata&&!!e.lastUpdated,o=n&&r,i=Fp.createUrl(e.playlist.cover&&e.playlist.cover.url,{size:kp.Medium,resizeType:jp.Cover}),a=e.playlist&&e.playlist.videos&&e.playlist.videos.count,c=Number.isInteger(a)&&Ir.getPhrase("playlists.playlistHeader","video",{smartCount:a});return nr.createElement(pp.Provider,{value:"playlists.playlistHeader"},nr.createElement("div",{className:"playlist-header"},nr.createElement("div",{className:"header-inner border-bottom"},!!e.returnAppLink&&nr.createElement(Pf,{appLink:e.returnAppLink.appLink,className:"back-button"},nr.createElement(Uf,{svgName:Da.Back}),nr.createElement("span",null,nr.createElement(dp,{phrase:"backTo",options:{label:e.returnAppLink.label}}))),e.showBreadcrumbs&&nr.createElement(Dp,{playlist:e.playlist}),nr.createElement("div",null,!!i&&nr.createElement("div",{className:"thumbnail"},nr.createElement(Ff,{src:i})),nr.createElement("div",{className:"metadata-actions-container"},!!c&&nr.createElement("p",{className:"text-muted"},c),nr.createElement("h1",null,e.playlist.name),e.playlist.description&&nr.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:ja(e.playlist.description)}}),!!n&&nr.createElement("span",{className:"date-sub-heading"},nr.createElement(dp,{phrase:"created",options:{date:t}})),!!o&&nr.createElement("span",{className:"metadata-separator"},"•"),!!r&&nr.createElement("span",{className:"date-sub-heading"},nr.createElement(dp,{phrase:"updated",options:{date:_p.utc(e.lastUpdated).fromNow()}})),nr.createElement(xp,{playlistId:e.playlistId,playlist:e.playlist,hasVideos:e.hasVideos,application:e.application,playAllAppLink:e.playAllAppLink,canEdit:e.canEdit&&!e.isShared,canShare:e.canEdit&&!e.isShared,canFollow:e.canFollow,isFollowing:e.isFollowing,follow:e.follow}))))))}function Vp(e){return function(e){if(Array.isArray(e))return zp(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 zp(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 zp(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 zp(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 Hp=function(){return nr.createElement("div",{className:"tile"},nr.createElement("div",{className:"tile-stripe-thick partial-loading-item"}),nr.createElement("div",{className:"tile-stripe partial-loading-item"}))};function Bp(){var e=Vp(Array(25));return nr.createElement("div",{className:"partial-loading-view"},nr.createElement("div",{className:"tile-list"},e.map((function(e,t){return nr.createElement(Hp,{key:t})}))))}function qp(){return nr.createElement("div",{className:"partial-loading-view playlist-list-header border-bottom"})}var $p=function(e){return e&&!(e.data&&e.data.length)},Yp=function(e,t){if(e&&e.data&&e.data.length&&!(t>e.data.length))return e.data[t]};function Gp(e){var t=e.playlist,n={application:kn,action:vn.PLAYLIST,args:[t.id.toString(),Ca(t.name)]},r={location:ta.PlaylistListItem},o=function(){if(t.thumbnail&&t.thumbnail.url)return t.thumbnail.url;var e=Yp(t.videos,0);return e?e.thumbnail&&Fp.createUrl(e.thumbnail.url,{size:kp.Small}):void 0},i=t.videos&&t.videos.count||null;return nr.createElement(pp.Provider,{value:"playlists.playlistList"},nr.createElement("div",{className:"playlist-item col-xs-6 col-sm-4 col-lg-3"},nr.createElement("div",{className:"cv-thumbnail"},nr.createElement(Pf,{appLink:n},nr.createElement("div",{className:"playlist-btn-mask"}),nr.createElement("div",{className:"playlist-btn-group"},nr.createElement("div",{className:"playlist-btn-icon"}),i&&nr.createElement("div",{className:"playlist-btn-video-count"},nr.createElement(dp,{phrase:"video",options:{smartCount:i}}))),!!o()&&nr.createElement(Ff,{src:o()}),i&&nr.createElement("span",{className:"badge"},nr.createElement(dp,{phrase:"video",options:{smartCount:i}})))),nr.createElement("div",{className:"cv-video-content"},nr.createElement("div",{className:"name-container"},nr.createElement("div",{className:"playlist-icon"}),nr.createElement(Pf,{appLink:n,className:"playlist-name"},t.name),nr.createElement("div",{className:"playlist-actions-container"},nr.createElement(gp,{playlist:t,analyticsOptions:r}))),!1)))}function Kp(e){var t=e.playlists;return nr.createElement("div",{className:"playlist-list grid"},nr.createElement("div",{className:"row"},t.map((function(e){return nr.createElement(Gp,{key:e.id,playlist:e})}))))}function Wp(e){var t=e.user,n=t&&Ir.getPhrase("playlists.playlistList","heading",{fname:t.givenName,lname:t.familyName});return nr.createElement("div",{className:"playlist-list-header border-bottom"},nr.createElement("div",{className:"heading-wrapper"},n?nr.createElement("h1",null,n):nr.createElement("div",{className:"partial-loading-item heading"})),nr.createElement(Jp,{className:"nav-link new-playlist",analyticsOptions:{location:ta.PlaylistListHeader}}))}function Jp(e){var t=e.className,n=e.analyticsOptions,r=nr.useCallback((function(){return sc.logUserAction({},sc.mergeOptions(n,{actionType:Qi.Create,entity:ea.Playlist,workflowPhase:na.Start}))}),[n]),o=Object.assign(Object.assign({appLink:{application:kn,action:vn.NEW_PLAYLIST}},t?{className:t}:{}),{onClick:r});return nr.createElement(Pf,Object.assign({},o),nr.createElement(Uf,{svgName:Da.Plus}),nr.createElement(dp,{namespace:"playlists.newPlaylistButton",phrase:"createNew"}))}var Xp,Zp=n(46);function Qp(e){return function(e){if(Array.isArray(e))return ed(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 ed(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 ed(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 ed(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 td(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=nr.useRef(null);return nr.useEffect((function(){if(e){var t=n.current;return e.render(),t.hasChildNodes()?t.replaceChild(e.el,t.firstChild):t.appendChild(e.el),e.trigger("rendered"),function(){gr(e.close)?e.close():gr(e.destroy)&&e.destroy()}}}),Qp(t)),n}function nd(e){var t=e.view,n=e.options,r=void 0===n?{}:n,o=e.className,i=void 0===o?"":o,a=nr.useMemo((function(){return new t(r)}),[r]),c=td(a,[a]);return t?nr.createElement("div",{ref:c,className:i}):nr.createElement(nr.Fragment,null)}function rd(e){var t=e.appLink,n=e.className,o=e.children,i=e.tag,a=void 0===i?"a":i;if(!t)return nr.createElement("span",{className:n||""},o);var c=e.onClick;c||(c=function(e){e.preventDefault(),r.AppLinkHelper.trigger(t)});var u={onClick:c,href:r.AppLinkHelper.getHref(t),className:n};return nr.createElement(a,Object.assign({},u),o)}!function(e){e.Read="read",e.Write="write",e.None="none"}(Xp||(Xp={}));var od=function(e,t){var n=e.toString();if(n.length>=t)return n;for(t-=n.length;t>0;)n="0"+n,t--;return n};function id(e){var t=e.video,n=t.series,r=t.season,o=t.episodeNumber;if(!n)return nr.createElement(nr.Fragment,null);var i={application:kn,action:vn.SERIES,args:[n.id]};return nr.createElement("div",{className:"series-season-episode"},nr.createElement(rd,{appLink:i,className:"hero-series"},nr.createElement("span",null,n.name),!!o&&nr.createElement("span",{className:"season-episode-block"}," ",!!r&&nr.createElement(nr.Fragment,null,nr.createElement("span",null,"S".concat(od(r.number,2)))," • "),nr.createElement("span",null,"E".concat(od(o,2))))))}var ad=function(e,t,n){nr.useEffect((function(){return e.on(t,n),function(){return e.off(t,n)}}),[])},cd=function(e,t,n){var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},ud=function(e){if(!u.isNumber(e))return"";var t=new Date(e),n=t.getUTCHours(),r=cd(t.getUTCMinutes(),2,"0"),o=cd(t.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(r,":").concat(o):"".concat(r,":").concat(o)};function sd(e){var t=e.video,n=e.appLink,r=e.onClick,o=t.thumbnail&&Fp.createUrl(t.thumbnail.url,{size:kp.Small});return nr.createElement("div",{className:"cv-thumbnail",onClick:r},nr.createElement("div",{className:"item-number-viewpart"}),nr.createElement(Pf,{appLink:n,className:"video-link"},nr.createElement("div",{className:"play-btn-mask"}),nr.createElement("div",{className:"play-icon-video"},nr.createElement("svg",{className:"play-icon"},nr.createElement("use",{xlinkHref:"#play"}))),!!o&&nr.createElement(Ff,{title:t.name,src:o}),nr.createElement("span",{className:"duration"},ud(t.duration))))}var ld=Ir.encloseNamespace("playlists.videoList");function fd(e){var t=e.video,n=e.playlistId,o=e.canEdit,i=e.showLoader,a=e.analyticsOptions,c=qn.getClickView().Shared.Views.VideoActionsListView,u=qn.getVideoActionsCollection(t);o&&u.add({allowedLibs:["none"],text:ld("removeHeading"),description:ld("removeInfo"),eventName:"remove-from-playlist",className:"remove-from-playlist"});ad(t,"remove-from-playlist",(function(){sc.logUserAction({id:t.get("id"),playlistId:n},sc.mergeOptions(a,{actionType:Qi.Dissociate,entity:ea.Video,workflowPhase:na.Start})),r.AppLinkHelper.trigger({application:kn,action:vn.REMOVE_VIDEO_FROM_PLAYLIST,args:[t.get("id"),n]})}));var s=new c({model:t,collection:u,itemModel:t});s.showDeleteLoader=i,qn.getClickView().Shared.Services.VideoActionService.mixin(s);var l=xr(s);return nr.createElement("div",{ref:l})}function pd(e){var t=e.video,n=qn.getClickView().Shared.Models.WebPlayer,r=xr(new(0,qn.getClickView().Shared.Views.WebPlayerView)({model:new n({id:t.id,width:520,height:292,autoplay:!0,parameters:{bc:!1,bf:!1},trackingCode:t.tokenId}),name:"PreviewVideo"}));return nr.createElement("div",{ref:r})}function dd(e){var t=e.previewOpen,n=e.setPreviewOpen;return nr.createElement(pp.Provider,{value:"playlists.videoList"},nr.createElement("div",{className:"video-preview-pane"},nr.createElement("div",{className:"cv-video-footer"},nr.createElement("div",{className:"preview-video-container"},nr.createElement("div",{className:"preview-video".concat(t?" open":"")},t?nr.createElement("p",{onClick:function(){return n(!1)}},nr.createElement(dp,{phrase:"hide"}),nr.createElement("span",{className:"preview-video-icon"},nr.createElement(dp,{phrase:"minus"}))):nr.createElement("p",{onClick:function(){return n(!0)}},nr.createElement(dp,{phrase:"show"}),nr.createElement("span",{className:"preview-video-icon"},nr.createElement(dp,{phrase:"plus"}))))),nr.createElement("div",{className:"preview-pane"},t&&nr.createElement(pd,{video:e.video})))))}function hd(){var e=td(nr.useMemo((function(){var e=qn.getClickView().PlaylistApp;return!!e&&new e.Views.PlaceholderView}),[]),[]);return nr.createElement("div",{ref:e})}function yd(e){return nr.createElement("span",{className:"restricted-badge-container"},nr.createElement(nd,{view:qn.getClickView().Shared.Views.RestrictedBadgeView,options:{model:e.video}}))}function md(e){return nr.createElement(nd,{view:qn.getClickView().Shared.Views.RestrictionInfoView,options:{model:e.video,showBanner:!0},className:"restriction-info-container"})}function vd(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 bd(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 bd(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 bd(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 gd=Ir.encloseNamespace("playlists.videoList"),wd=Object(Zp.SortableHandle)((function(){return nr.createElement("svg",null,nr.createElement("use",{xlinkHref:"#handle"}))}));function Ed(e){var t=e.video,n=e.playlistId,r=e.canEdit,o=e.idx,i=e.getVideoAppLink,a=e.setIsSorting,c=vd(nr.useState(!1),2),u=c[0],s=c[1],l=vd(nr.useState(!1),2),f=l[0],p=l[1],d=vd(nr.useState(!1),2),h=d[0],y=d[1],m=vd(nr.useState(!1),2),v=m[0],b=m[1],g=nr.useRef(),w=t.hasOwnProperty("_allowAccess")?t._allowAccess!==Xp.None:e.isUserSignedIn,E=!$p(t.interactives),S=qn.getClickView().Shared.Helpers.formatSafeHTML(t.description,{linkify:!1}),O=qn.getMasterVideoModel(t),x=O.getVideoOrigin(),k=x&&"".concat(gd("videoFrom")," ").concat(function(e){switch(e){case"library":case"workspace":case"exchange":return gd(e);default:return""}}(x)),C=function(e){return sc.logUserAction({id:t.id},Object.assign({location:ta.VideoList,actionType:Qi.Play,entity:ea.Video,workflowPhase:na.Start},e?{descriptor:e}:{}))};nr.useEffect((function(){var e;(null===(e=g.current)||void 0===e?void 0:e.clientHeight)>36&&s(!0)}),[]),ad(O,"itemRestricted itemUnrestricted",(function(){gr(e.fetchRestrictions)&&e.fetchRestrictions()}));var j=O.hasRestriction(),A=O.isRestricted();return nr.createElement(pp.Provider,{value:"playlists.videoList"},nr.createElement("div",{className:"playlist-video-item cv-video"},nr.createElement("div",{className:"tile-item-inner border-bottom"},nr.createElement("div",{className:"item-number-container".concat(r?" draggable":"")},r&&nr.createElement("div",{className:"drag-handle-container",onMouseDown:function(){y(!1),p(!1),a(!0)},onMouseUp:function(){return a(!1)}},nr.createElement(wd,null)),nr.createElement("div",{className:"item-number"},nr.createElement("span",null,o+1))),A?nr.createElement(nd,{view:qn.getClickView().Shared.Views.VideoListItemView,options:{model:O,logClickthrough:!1},className:"restricted-playlist-video-item"}):nr.createElement(nr.Fragment,null,nr.createElement(sd,{video:t,appLink:i(t),onClick:function(){return C(sa.Thumbnail)}}),nr.createElement("div",{className:"info cv-video-content"},nr.createElement("div",{className:"cv-header".concat(t.series?" has-series":"")},nr.createElement("div",{className:"video-actions-container"},nr.createElement(fd,{video:O,playlistId:n,canEdit:r,showLoader:function(){return b(!0)},analyticsOptions:{location:ta.VideoListItem}})),nr.createElement(id,{video:t}),nr.createElement("h3",{className:"cv-title",title:t.name},nr.createElement(Pf,{appLink:i(t),onClick:function(){return C(sa.Title)},className:"video-link"},t.name)),x&&nr.createElement("span",{className:"metadata-badge origin ".concat(x),title:k},x),j&&nr.createElement(yd,{video:O})),!1,nr.createElement("p",{className:"cv-metadata"},t.rating&&t.rating.code&&nr.createElement("span",{className:"metadata-badge",title:"".concat(gd("ratedTitle")," ").concat(t.rating.name)},t.rating.code),t.rating&&!t.rating.code&&nr.createElement("span",{className:"metadata-badge",title:gd("unratedTitle")},nr.createElement(dp,{phrase:"unrated"})),t.channel&&t.channel.name&&nr.createElement("span",{className:"metadata-badge",title:t.channel.name},t.channel.name),t.productionYear&&nr.createElement("span",{className:"metadata-badge",title:"".concat(gd("productionYearTitle")," ").concat(t.productionYear)},t.productionYear),E&&nr.createElement("span",{className:"metadata-badge orange has-interactives",title:gd("interactiveTitle")},nr.createElement(dp,{phrase:"interactive"}))),j&&nr.createElement(md,{video:O}),nr.createElement("div",{className:"cv-description-wrapper".concat(f?" opened":" truncated")},nr.createElement("p",{className:"cv-description",ref:g,dangerouslySetInnerHTML:{__html:S}}),u&&nr.createElement("a",{className:"show-more",onClick:function(){return p((function(e){return!e}))}},f?nr.createElement(dp,{phrase:"showLess"}):nr.createElement(dp,{phrase:"showMore"})))),w?nr.createElement(dd,{video:t,previewOpen:h,setPreviewOpen:y}):nr.createElement(hd,null))),v&&nr.createElement("div",{className:"cv-loader cover"},nr.createElement(Mf,{size:"md",color:"#f8981d"}),nr.createElement("div",{className:"loading-mask"}))))}function Sd(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 Od(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 Od(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 Od(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 xd=Object(Zp.SortableElement)((function(e){return nr.createElement(Ed,Object.assign({},e))})),kd=Object(Zp.SortableContainer)((function(e){var t=Sd(nr.useState(!1),2),n=t[0],r=t[1];return nr.createElement("div",{className:"tile-list-view video-tile-rows".concat(n?" sorting":"")},e.videos.map((function(t,n){return nr.createElement(xd,Object.assign({key:t.id,index:n,idx:n,video:t,setIsSorting:r},e))})))}));function Cd(e){return function(e){if(Array.isArray(e))return jd(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 jd(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 jd(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 jd(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 Ad=function(){return nr.createElement("div",{className:"playlist-video-item cv-video"},nr.createElement("div",{className:"tile-item-inner"},nr.createElement("div",{className:"partial-loading-item cv-thumbnail"},nr.createElement("a",null)),nr.createElement("div",{className:"cv-video-content"},nr.createElement("div",{className:"partial-loading-item info video-title"}),nr.createElement("div",{className:"partial-loading-item info"}),nr.createElement("div",{className:"partial-loading-item info"}))))};function _d(){var e=Cd(Array(25));return nr.createElement("div",{className:"tile-list-view video-tile-rows partial-loading-view"},nr.createElement("div",{className:"video-list-view"},e.map((function(e,t){return nr.createElement(Ad,{key:t})}))))}var Ld=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};function Pd(e){var t=e.onSortComplete,n=e.onSortStart,o=e.showPartialLoading,i=Ld(e,["onSortComplete","onSortStart","showPartialLoading"]),a=function(e){gr(n)&&n(e)};return o?nr.createElement(_d,null):nr.createElement(kd,Object.assign({},i,{onSortStart:function(e){var t=e.index;return a(t)},onSortEnd:function(e){gr(t)?t(e.oldIndex,e.newIndex):r.ErrorHelper.throw(new Ye("An onSortComplete callback function must be passed to SortableVideoListComponent"))},lockAxis:"y",lockToContainerEdges:!0,lockOffset:0,useDragHandle:!0,helperClass:"sortable-video-item",distance:1}))}var Nd=Ir.encloseNamespace("playlists.videoNotFound");function Rd(e){var t=e.playlist,n=e.isShared,r={application:kn,action:n?vn.SHARED_PLAYLIST:vn.PLAYLIST,args:[t.id,Ca(t.name)]},o={heading:Nd("heading"),description:Nd("info"),returnAppLink:r,returnAppLinkText:Nd("returnTo",{name:t.name})};return nr.createElement(Gf,Object.assign({},o))}function Td(e){var t=e.playlists,n=e.selectedPlaylistId,r=e.hasMorePlaylists,o=e.fetchMorePlaylists,i=e.isFetching;return t?nr.createElement(pp.Provider,{value:"playlists.leftNav"},nr.createElement("div",{className:"playlists-left-nav"},nr.createElement("div",{className:"navigation-view border-bottom"},nr.createElement("div",{className:"nav-heading"},nr.createElement("h2",null,nr.createElement(dp,{phrase:"playlists"}))),t.map((function(e){return nr.createElement(wp,{key:e.id,playlist:e,selected:n&&e.id.toString()===n.toString()})})),t&&!!t.length&&r&&(i?nr.createElement("span",{className:"loading-text"},nr.createElement(dp,{phrase:"loading"})):nr.createElement($a.Button,{variant:"link",onClick:o},nr.createElement(dp,{phrase:"seeMore"})))),nr.createElement("div",{className:"navigation-view"},nr.createElement(Jp,{className:"nav-link new-playlist",analyticsOptions:{location:ta.LeftNav}})))):nr.createElement(hp,null)}function Id(e){return or.createPortal(nr.createElement(Td,Object.assign({},e)),function(){var e=$("#body").find("#playlists-left-nav");if(e.length)return e[0]}())}function Fd(e){var t=Object(ir.useDispatch)(),n=function(e){return Xi.getUserPlaylists(new fp(Ri.Newest,e))},r=function(e){o.getFetch(t,n(e))()},i=op((function(e){return n(e).key}));return nr.useEffect((function(){i.shouldInitialFetch&&r()}),[i.shouldInitialFetch]),nr.createElement(Id,{playlists:i.items,selectedPlaylistId:e.selectedPlaylistId,hasMorePlaylists:!!i.nextCursor,fetchMorePlaylists:function(){return r(i.nextCursor)},isFetching:i.isFetching})}var Dd=Ir.encloseNamespace("playlists.migrationInProgress");function Md(){var e=o.useGetFetch(Xi.getMigrationTask()),t=o.useGetResponse(Xi.getMigrationTask().key),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,n=nr.useState(!1),r=wr(n,2),o=r[0],i=r[1],a=nr.useRef(),c=function e(){i((function(e){return!e})),a.current=window.setTimeout(e,t)};return nr.useEffect((function(){a.current=window.setTimeout(c,t)}),[]),nr.useEffect((function(){gr(e)&&e()}),[o]),function(){return window.clearTimeout(a.current)}}((function(){e()}));nr.useEffect((function(){t.data&&t.data.status===zi.Processed&&(n(),r.AppLinkHelper.trigger({application:kn,action:vn.HOME}))}),[t.data]);var i=Dd("heading"),a=Dd("description");return nr.createElement(Gf,{heading:i,description:a,returnAppLink:!1})}function Ud(e,t){var n=e,r=t,o=op(e&&function(e){return n(e).key});Object(nr.useEffect)((function(){o.shouldInitialFetch&&t&&r()}),[o.shouldInitialFetch,t]),Object(nr.useEffect)((function(){o.nextCursor&&!o.isFetching&&t&&r(o.nextCursor)}),[o.nextCursor,o.isFetching,t])}function Vd(e,t,n){var o;switch(e){case xo.Forbidden:o=n.forbidden;break;case xo.NotFound:o=n.notFound}o?r.AppLinkHelper.trigger(o):t.error(Ir.getPhrase("playlists.hooks","somethingWentWrong"))()}function zd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Hf(jr.ALERT);Object(nr.useEffect)((function(){e.hasError&&Vd(e.statusCode,n,t)}),[e.hasError])}var Hd,Bd,qd=function(e,t){var n=[];return e.forEach((function(e){var r,o,i=t.find((function(t){return t.objectId===e.id}));n.push(Object.assign(Object.assign({},e),{restrictions:(o=null===(r=i)||void 0===r?void 0:r.restrictedObjects,null!=o?o:[])}))})),n},$d=function(e,t){var n;if(e&&t)return null===(n=t.find((function(t){return t.objectId.toString()===e.toString()})))||void 0===n?void 0:n.restrictedObjects};!function(e){e[e.Unspecified=0]="Unspecified",e[e.Student=1]="Student",e[e.Staff=2]="Staff",e[e.Admin=3]="Admin",e[e.CVAdmin=4]="CVAdmin",e[e.FreeUser=6]="FreeUser",e[e.ReadOnly=8]="ReadOnly"}(Hd||(Hd={})),function(e){e[e.Guest=16]="Guest",e[e.User=32]="User",e[e.Admin=48]="Admin",e[e.SuperAdmin=64]="SuperAdmin"}(Bd||(Bd={}));var Yd,Gd=function(e){var t,n;if((null===(t=e)||void 0===t?void 0:t.onlineRole)!==Hd.Staff)return null===(n=e)||void 0===n?void 0:n.maxAllowedRating},Kd=function(e){return{url:"/api/domain/v1/subjects/".concat(e),key:"subject:".concat(e)}},Wd=function(e,t,n){return{url:"/api/domain/v2/objects/".concat(e),key:"".concat(On,":").concat(e),success:t,error:n}},Jd=function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(hn.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}};function Xd(e){var t=e.currentVideoId,n=e.shareCode,o=e.getPlaylistAppLink,i=e.getVideoAppLink,a=e.playlist,c=e.videos,u=qn.getClickView().Shared,s=qn.getClickView().PlaylistApp,l=u.Models.MasterPlaylistV2,f=u.Views.MasterPlayView,p=u.Models.MasterVideo,d=s.Models.SharedMasterPlaylistVideo,h=nr.useRef(new l).current;nr.useEffect((function(){if(a&&c){var e=Vn.deepClone(c).map((function(e){return u.Helpers.MasterToOnlineVideo(e)}));Hn(h,a,{parse:!0}),Bn(h,"videos",e,{parse:!0}),n&&Bn(h,"shareCode",n),h.trigger("sync")}}),[a,c]),nr.useEffect((function(){h.isLoaded()&&h.trigger("sync")}),[t]);var y=nr.useMemo((function(){return new f({model:n?new d({id:t,playlistShareCode:n,restrictions:e.videoRestrictions}):new p({id:t}),playlist:h,collectionAutoplay:!0,showSideBarOnLoad:!1,fetchRelatedCollection:!1,isShareView:!!n,getPlaylistUrl:function(){return r.AppLinkHelper.getHref(o(h.toJSON()))},getVideoUrl:function(e){return r.AppLinkHelper.getHref(i(e))}})}),[n,t,h,e.videoRestrictions]),m=xr(y,[y]);return nr.createElement("div",{ref:m})}function Zd(e){var t=Object(ir.useDispatch)(),n=o.useBasicFetch(Qo),i=!Vn.isEmpty(n.data),a=e.filterByRating?i&&Gd(n.data):null,c=e.isShared?!!n.data&&Xi.getSharedPlaylist(e.playlistId,a):Xi.getPlaylist(e.playlistId),u=!!n.data&&function(t){return(e.isShared?Xi.getSharedPlaylistVideos:Xi.getPlaylistVideos)(e.playlistId,a,t)},s=o.useBasicFetch(c);zd(s,{forbidden:{application:kn,action:vn.ACCESS_DENIED},notFound:{application:kn,action:vn.NOT_FOUND}});var l=op(u&&function(e){return u(e).key}),f=i&&!!l.items&&!!l.items.length&&Jd(l.items.map((function(e){return e.id}))),p=o.useBasicFetch(f);Ud(u,(function(e){o.getFetch(t,u(e))()})),Xf(s.data&&s.data.name,[s.data]);var d=function(e,t,n){return n?e&&t?qd(e,t).filter((function(e){return!qn.isVideoRestricted(e)})):void 0:e}(l.items,p.data,i),h=e.videoId&&!!l.items&&l.items.find((function(t){return t.id.toString()===e.videoId.toString()})),y=!!s.data&&!l.nextCursor&&!!d;return nr.useEffect((function(){if(!e.videoId&&!l.nextCursor&&d&&s.data)if(d.length){var t=zo(d);r.AppLinkHelper.trigger(e.getVideoAppLink(t.id,t.name),{replace:!0})}else r.AppLinkHelper.trigger(e.getPlaylistAppLink(s.data),{replace:!0})}),[e.videoId,l.nextCursor,s.data,d]),e.videoId?y&&!h?nr.createElement(Rd,{playlist:s.data,isShared:e.isShared}):nr.createElement(Xd,{playlist:s.data,videos:d,currentVideoId:e.videoId,videoRestrictions:$d(e.videoId,p.data),shareCode:e.isShared&&e.playlistId,getPlaylistAppLink:e.getPlaylistAppLink,getVideoAppLink:e.getVideoAppLink}):nr.createElement(nr.Fragment,null)}function Qd(e){return(Qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eh(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)}function th(e,t){return(th=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nh(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oh(e);if(t){var o=oh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rh(this,n)}}function rh(e,t){return!t||"object"!==Qd(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 oh(e){return(oh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ih(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 ch(e,t,n){return t&&ah(e.prototype,t),n&&ah(e,n),e}!function(e){e.LocalStorage="localStorage",e.SessionStorage="sesstionStorage"}(Yd||(Yd={}));var uh,sh,lh=function(){function e(t){ih(this,e),this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=t.type,this.hasSupport&&(this.storage=window[this.type])}return ch(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}(),fh=function(e){eh(n,e);var t=nh(n);function n(){return ih(this,n),t.apply(this,arguments)}return ch(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:Yd.LocalStorage}))}}]),n}(lh),ph=function(e){eh(n,e);var t=nh(n);function n(){return ih(this,n),t.apply(this,arguments)}return ch(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:Yd.SessionStorage}))}}]),n}(lh),dh=fh.Instance,hh=ph.Instance,yh=n(39),mh=n(98),vh=n.n(mh),bh=n(99),gh=n.n(bh),wh=n(100),Eh=n.n(wh),Sh=n(101),Oh=n.n(Sh),xh=(n(102),n(103),n(104)),kh=n.n(xh),Ch=n(105),jh=n.n(Ch),Ah=n(106),_h=n.n(Ah),Lh=n(107),Ph=n.n(Lh),Nh=n(108),Rh=n.n(Nh),Th=n(109),Ih=n.n(Th),Fh=n(110),Dh=n.n(Fh),Mh=n(111),Uh=n.n(Mh),Vh=n(112),zh=n.n(Vh),Hh=n(113),Bh=n.n(Hh),qh=n(114),$h=n.n(qh),Yh=n(115),Gh=n.n(Yh),Kh=n(116),Wh=n.n(Kh),Jh=n(117),Xh=n.n(Jh),Zh=n(118),Qh=n.n(Zh),ey=n(119),ty=n.n(ey),ny=n(120),ry=n.n(ny),oy=n(121),iy=n.n(oy),ay=n(122),cy=n.n(ay),uy=n(123),sy=n.n(uy),ly=(n(124),n(125)),fy=n.n(ly),py=n(126),dy=n.n(py),hy=n(127),yy=n.n(hy),my=(n(128),n(129),n(130)),vy=n.n(my),by=n(131),gy=n.n(by),wy=n(132),Ey=n.n(wy),Sy=n(133),Oy=n.n(Sy),xy=n(134),ky=n.n(xy),Cy=n(135),jy=n.n(Cy),Ay=(n(136),n(137)),_y=n.n(Ay),Ly=n(138),Py=n.n(Ly),Ny=n(139),Ry=n.n(Ny),Ty=n(140),Iy=n.n(Ty),Fy=n(141),Dy=n.n(Fy),My=n(142),Uy=n.n(My),Vy=n(143),zy=n.n(Vy),Hy=(n(144),n(145)),By=n.n(Hy),qy=n(146),$y=n.n(qy),Yy=n(147),Gy=n.n(Yy),Ky=n(148),Wy=n.n(Ky),Jy=n(149),Xy=n.n(Jy),Zy=n(150),Qy=n.n(Zy),em=n(151),tm=n.n(em),nm=n(152),rm=n.n(nm),om=n(153),im=n.n(om),am=n(154),cm=n.n(am),um=n(155),sm=n.n(um),lm=n(156),fm=n.n(lm),pm=n(157),dm=n.n(pm),hm=(n(158),n(159),n(160),n(161)),ym=n.n(hm),mm=(n(162),n(163),n(164),n(165),n(166)),vm=n.n(mm),bm=n(167),gm=n.n(bm),wm=(n(168),n(169),n(170),n(171)),Em=n.n(wm),Sm=n(172),Om=n.n(Sm),xm=n(173),km=n.n(xm),Cm=n(174),jm=n.n(Cm),Am=n(175),_m=n.n(Am),Lm=n(176),Pm=n.n(Lm),Nm=n(177),Rm=n.n(Nm),Tm=(n(178),n(179),n(180),n(181)),Im=n.n(Tm),Fm=n(182),Dm=n.n(Fm),Mm=[vh.a,Eh.a,Oh.a,kh.a,Ph.a,Rh.a,Ih.a,Dh.a,_h.a,gh.a,Uh.a,zh.a,Bh.a,$h.a,Gh.a,jh.a,Wh.a,Xh.a,Qh.a,sy.a,ty.a,ry.a,iy.a,cy.a,fy.a,Ey.a,tm.a,im.a,rm.a,dm.a,cm.a,sm.a,fm.a,Iy.a,Uy.a,Dy.a,dy.a,yy.a,Py.a,Ry.a,_y.a,vy.a,Oy.a,$y.a,Gy.a,ky.a,jy.a,Wy.a,gy.a,By.a,Xy.a,Qy.a,zy.a,vm.a,gm.a,ym.a,km.a,Om.a,Em.a,jm.a,Pm.a,_m.a,Rm.a,Dm.a,Im.a];function Um(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.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.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"}(uh||(uh={}));var Vm;function zm(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)}}u.extend(yh.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),(sh=yh.library).add.apply(sh,function(e){if(Array.isArray(e))return Um(e)}(Vm=Mm)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(Vm)||function(e,t){if(e){if("string"==typeof e)return Um(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)?Um(e,t):void 0}}(Vm)||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.")}());var Hm=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 yh.icon(e,t.iconOptions||{})}},{key:"faIconLookup",value:function(e,t){var n=t.prefix,r=void 0===n?"cv":n;return yh.findIconDefinition({prefix:r,iconName:e})}}])&&zm(t.prototype,n),r&&zm(t,r),e}().Instance,Bm=uh,qm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return Math.floor(Math.random()*Math.floor(e))};function $m(e){var t=e.title,n=e.placement,r=e.trigger,o=e.children;return nr.createElement($a.OverlayTrigger,{placement:n,overlay:nr.createElement($a.Tooltip,{id:"".concat(t,"-").concat(qm())},t),trigger:r},nr.createElement("span",null,o))}$m.defaultProps={trigger:["hover","click","focus"],placement:"top"};var Ym;function Gm(e){var t=e.svgName,n=e.className,r=void 0===n?"d-inline-block svg-container":n,o=e.tagName,i=void 0===o?"span":o,a=e.size,c=void 0===a?Ym.Standard:a,u=e.onClick,s=e.title,l=e.tooltipPlacement,f=void 0===l?"right":l,p=i,d={dangerouslySetInnerHTML:{__html:Hm.getSvg(t)},className:"".concat(r," ").concat(c),onClick:gr(u)?u:null};return s?nr.createElement($m,{title:s,placement:f},nr.createElement(p,Object.assign({},d))):nr.createElement(p,Object.assign({},d))}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg"}(Ym||(Ym={}));var Km,Wm=n(229);function Jm(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 Xm(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 Xm(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 Xm(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 Zm(e){var t=Jm(Object(nr.useState)(window.matchMedia(e).matches),2),n=t[0],r=t[1];return Object(nr.useEffect)((function(){var t=window.matchMedia(e);t.matches!==n&&r(t.matches);var o=function(){return r(t.matches)};return t.addListener(o),function(){return t.removeListener(o)}}),[e]),n}function Qm(e){return(Qm="function"==typeof Symbol&&"symbol"==typeof Symbol.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.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)"}(Km||(Km={}));var ev,tv={isNumber:function(e){return tv.isType(e,"number")},isString:function(e){return tv.isType(e,"string")},isType:function(e,t){return Qm(e)===t}},nv=n(40),rv=n.n(nv);function ov(e){return function(e){if(Array.isArray(e))return iv(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 iv(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 iv(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 iv(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 av(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cv(e,t){return Vn.isObject(e)&&e.hasOwnProperty(t)&&tv.isString(e[t])}function uv(e,t,n){return function(r){var i=r.value;if(i.length||n(),!(i.length<e.activationLength)){if(e.local){var a=gr(e.getLocalSuggestions)?e.getLocalSuggestions(i,e.local):(c=i,u=e.local,s=e.valueKey,(l=c.trim().toLowerCase()).length?u.filter((function(e){return!(!cv(e,s)||!tv.isString(e[s]))&&e[s].trim().toLowerCase().includes(l)})):[]);t((function(e){return Object.assign(Object.assign({},e),av({},ev.Local,a))}))}var c,u,s,l;e.getRemoteUrl&&function(e,t,n){var r=gr(e)&&e(t);r&&o.ajaxRequest({resource:r,type:zr.GET,success:n,error:function(){}})}(e.getRemoteUrl,i,(function(n){return t((function(t){return Object.assign(Object.assign({},t),av({},ev.Remote,gr(e.formatRemoteSuggestions)?e.formatRemoteSuggestions(n):n))}))}))}}}function sv(e,t,n,r,o,i){var a=function(t){return e[t]||[]},c=t?a(ev.Recent):[],u=a(ev.Local),s=a(ev.Remote),l=[];c.length&&l.push({title:n,data:c});var f=[].concat(ov(u),ov(s));return Number.isInteger(i)&&l.length>i&&f.slice(0,i),gr(o)?l.push.apply(l,ov(o(f))):l.push({title:r,data:f}),l}function lv(e){return e.data}function fv(e){if(e.title)return nr.createElement("strong",null,e.title)}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote"}(ev||(ev={}));var pv={container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(rv.a.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"cursor-pointer py-1 px-2",suggestionHighlighted:rv.a.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(rv.a.sectionContainer)};function dv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(pv,e)}var hv=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},yv=function(e){var t="d-inline-block svg-container";return gr(e)?t+" cursor-pointer":t};function mv(e){var t=e.onClickSearchIcon,n=e.searchIconPlacement,r=e.className,o=hv(e,["onClickSearchIcon","searchIconPlacement","className"]),i="form-control ".concat(rv.a.input),a="input-group-text bg-white";"right"===n&&(i+=" border-right-0",a+=" pl-0"),"left"===n&&(i+=" border-left-0",a+=" pr-0"),r&&(i+=" ".concat(r));var c=function(){return nr.createElement("div",{className:a},nr.createElement(Gm,{svgName:Bm.Search,size:Ym.Small,onClick:t,className:yv(t)}))};return nr.createElement("div",{className:"input-group"},"left"===n&&nr.createElement("div",{className:"input-group-prepend"},nr.createElement(c,null)),nr.createElement("input",Object.assign({className:i},o)),"right"===n&&nr.createElement("div",{className:"input-group-append"},nr.createElement(c,null)))}function vv(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 bv(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 bv(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 bv(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 gv=gr;function wv(e){var t,n,r,o=(t=e.initialSuggestions,n=e.recentSearches,av(r={},ev.Recent,n),av(r,ev.Local,t),av(r,ev.Remote,[]),r),i=vv(nr.useState(e.initialQuery||""),2),a=i[0],c=i[1],u=vv(nr.useState(o),2),s=u[0],l=u[1],f=Zm(Km.XS),p=function(){l(o)},d=function(t){t.preventDefault(),gv(e.onSubmit)&&e.onSubmit(a)};return nr.createElement("form",{onSubmit:d},nr.createElement(Wm,{suggestions:sv(s,!a,e.recentSearchHeading||Ir.getPhrase("shared.searchBar","recentSearchHeading"),e.suggestionsHeading,e.getSections,e.suggestionLimit),onSuggestionsFetchRequested:uv(e,l,p),onSuggestionsClearRequested:function(){e.alwaysRenderSuggestions||p()},onSuggestionSelected:function(t,n){var r=n.suggestion;e.clearQueryOnSelect&&c(""),e.onSuggestionSelected(r)},getSuggestionValue:function(t){return e.updateQueryOnSelection?function(e,t){return cv(t,e)?t[e]:""}(e.valueKey,t):a},renderSuggestion:function(t){return gv(e.getSuggestionComponent)?e.getSuggestionComponent(t):function(e,t){return cv(t,e)?nr.createElement(nr.Fragment,null,t[e]):nr.createElement(nr.Fragment,null)}(e.valueKey,t)},alwaysRenderSuggestions:e.alwaysRenderSuggestions,focusInputOnSuggestionClick:!f,inputProps:{placeholder:e.placeholder||Ir.getPhrase("shared.searchBar","placeholder"),value:a,onChange:function(t,n){var r=n.newValue;c(r),gv(e.onQueryChange)&&e.onQueryChange(r)},onKeyDown:function(t){8===t.keyCode&&e.onBackspace&&!a&&e.onBackspace()},autoFocus:!!e.autoFocusInput,onClickSearchIcon:!!e.submitOnClickSearchIcon&&d,searchIconPlacement:e.searchIconPlacement},renderInputComponent:mv,theme:dv(e.theme),multiSection:!0,renderSectionTitle:fv,getSectionSuggestions:lv}))}wv.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right"};n(230);Ir.encloseNamespace("playlists.addToPlaylist");function Ev(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 Sv(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 Sv(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 Sv(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 Ov=Ir.encloseNamespace("playlists.deletePlaylist");function xv(e){var t=Object(ir.useDispatch)(),n=Ev(nr.useState(!1),2),i=n[0],a=n[1],c=o.useBasicFetch(Xi.getPlaylist(e.playlistId));Xf(c.data&&"".concat(Ov("title",{name:c.data.name})),[c.data]);var u=[{variant:"secondary",onClick:e.closePopup,buttonText:Ov("keep")},{variant:"danger",onClick:function(){a(!0);o.fetch(t,Xi.deletePlaylist(e.playlistId,(function(){e.closePopup(),e.routeToOnDelete&&r.AppLinkHelper.trigger(e.routeToOnDelete)}),e.closePopup)),sc.logUserAction({id:e.playlistId},sc.mergeOptions(e.analyticsOptions,{actionType:Qi.Delete,entity:ea.Playlist,workflowPhase:na.Complete}))},buttonText:Ov("confirm"),isSpinnerButton:!0,showSpinner:i}];return nr.createElement(pp.Provider,{value:"playlists.deletePlaylist"},nr.createElement(_f,{title:Ov("check"),close:e.closePopup,showLoadingSpinner:!c.data},!!c.data&&nr.createElement("div",{className:"delete-playlist-container"},nr.createElement("div",{className:"delete-playlist-body"},nr.createElement("p",null,nr.createElement(dp,{phrase:"warning",options:{name:c.data.name}})),nr.createElement("p",null,nr.createElement(dp,{phrase:"videoNote"}))),nr.createElement(Cf,{buttons:u}))))}function kv(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 Cv(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 Cv(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 Cv(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 jv=n(67),Av=jv.object().shape({name:jv.string().max(255,(function(){return Ir.getPhrase("playlists.validation","nameExceeds")})).required((function(){return Ir.getPhrase("playlists.validation","nameRequired")})),description:jv.string().max(65535,(function(){return Ir.getPhrase("playlists.validation","descriptionExceeds")}))}),_v=Ir.encloseNamespace("playlists.playlistDetails");function Lv(e){var t=tf(),n=function(e){var t,n=kv(nr.useState(!1),2),r=n[0],o=n[1];return nr.useEffect((function(){var t;e.isValid&&(e.dirty||(null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit))?o(!0):o(!1)}),[e.isValid,null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit,e.dirty,e.values]),nr.useEffect((function(){e.isSubmitting&&o(!1)}),[e.isSubmitting]),r}(t);return nr.createElement(nr.Fragment,null,nr.createElement(bf,{label:_v("nameLabel"),type:"text",name:"name",id:"name",placeholder:_v("namePlaceholder"),autoFocus:!0,value:t.values.name,error:t.errors.name,touched:t.touched.name}),nr.createElement(bf,{label:_v("descriptionLabel"),component:"textarea",name:"description",id:"description",placeholder:_v("descriptionPlaceholder"),value:t.values.description,error:t.errors.description,touched:t.touched.description}),nr.createElement("div",{className:"btn-container d-flex justify-content-end"},nr.createElement("button",{type:"button",className:"btn btn-".concat(e.cancelButtonClass," mr-2"),onClick:e.onClickCancel},nr.createElement(dp,{namespace:"playlists.playlistDetails",phrase:"cancel"})),nr.createElement(xf,{type:"submit",buttonText:e.isNew?_v("create"):_v("save"),variant:"primary",className:t.isValid?"":"disabled",disabled:!n,showSpinner:t.isSubmitting})))}function Pv(e){var t=e.playlist,n=(t=void 0===t?{}:t).name,r=void 0===n?"":n,o=t.description,i=void 0===o?"":o,a=t.id,c=void 0===a?null:a,u=e.savePlaylist,s=e.onClickCancel,l=e.cancelButtonClass;return nr.createElement(wf,{initialValues:{name:r,description:i||""},validationSchema:Av,onSubmit:u,renderChildren:function(){return nr.createElement(Lv,{isNew:!c,onClickCancel:s,cancelButtonClass:l})}})}var Nv=Ir.encloseNamespace("playlists.editPlaylist");function Rv(e){var t=Object(ir.useDispatch)(),n=o.useBasicFetch(Xi.getPlaylist(e.playlistId));Xf(n.data&&Nv("title",{name:n.data.name}),[n]);return nr.createElement(_f,{title:Nv("heading"),close:e.closePopup,showLoadingSpinner:!n.data},!!n.data&&nr.createElement(Pv,{playlist:n.data,savePlaylist:function(n){o.fetch(t,Xi.updatePlaylist(e.playlistId,n,e.closePopup,e.closePopup)),sc.logUserAction(n,sc.mergeOptions(e.analyticsOptions,{actionType:Qi.Edit,entity:ea.Playlist,workflowPhase:na.Complete}))},onClickCancel:e.closePopup,cancelButtonClass:"secondary"}))}var Tv=Ir.encloseNamespace("playlists.newPlaylist");function Iv(e){var t=Object(ir.useDispatch)();Xf(Tv("title"));var n=o.useBasicFetch(Qo);return nr.createElement(_f,{title:Tv("title"),close:e.closePopup,showLoadingSpinner:!n.data},!!n.data&&nr.createElement(Pv,{savePlaylist:function(i){o.fetch(t,Xi.createPlaylist(n.data.id,i,(function(t){e.closePopup(),t&&r.AppLinkHelper.trigger({application:e.application,action:vn.PLAYLIST,args:[t.id,Ca(t.name)]})}),e.closePopup)),sc.logUserAction(i,sc.mergeOptions(e.analyticsOptions,{actionType:Qi.Create,entity:ea.Playlist,workflowPhase:na.Complete}))},onClickCancel:e.closePopup,cancelButtonClass:"secondary"}))}var Fv="hc/articles/115005679748";function Dv(e){var t=e.imageUrl,n=e.heading,r=e.description;return nr.createElement("div",{className:"empty-state-container"},nr.createElement("div",{className:"content-container"},t&&nr.createElement("img",{src:t}),nr.createElement("h1",null,n),r&&nr.createElement("p",{dangerouslySetInnerHTML:{__html:r}})))}var Mv=Ir.encloseNamespace("playlists.emptyState");function Uv(e){var t=e.supportSiteUrl,n=Hf(qf).getImageUrls(),r=Np.safeUrlConcat(t,Fv);return nr.createElement(Dv,{imageUrl:n.EmptyStates.VIDEOS,heading:Mv("noVideosHeading"),description:'<a href="'.concat(r,'" target="_blank">').concat(Mv("noVideosInfo"),"</a>")})}var Vv=nr.createContext({});function zv(e,t,n,r){return{url:"/api/domain/v2/objects/".concat(t),key:"favourite:video:".concat(t,":").concat(e),data:{favouriteVideos:e},type:zr.PUT,invalidationKeys:["favourite:videos:".concat(t),"video:is:favourited:".concat(t)],success:n,error:r}}function Hv(e,t,n,r){return{url:"/api/domain/v2/objects/".concat(t,"/favouriteVideos/").concat(e),key:"favourite:video:".concat(t,":").concat(e),type:zr.DELETE,invalidationKeys:["favourite:videos:".concat(t),"video:is:favourited:".concat(t)],success:n,error:r}}var Bv=function(e,t,n,r,o){return(n?zv:Hv)(e,t,r,o)};var qv={url:"/api/config",key:"config"};function $v(e,t,n){var r=function(){n||(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-400||e())};Object(nr.useEffect)((function(){var e=br(r,200);return t&&window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[t])}function Yv(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 Gv(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 Gv(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 Gv(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 Kv(e){var t=e.isFetching,n=e.onClick;return nr.createElement("div",{className:"infinite-scroll-footer"},t?nr.createElement(Mf,{size:"md",color:"#979797"}):nr.createElement("span",{onClick:n},nr.createElement(Uf,{svgName:Da.Down})))}var Wv;!function(e){e[e.AddToPlaylist=0]="AddToPlaylist",e[e.RemoveFromPlaylist=1]="RemoveFromPlaylist",e[e.Share=2]="Share",e[e.Edit=3]="Edit"}(Wv||(Wv={}));function Jv(e){var t=e&&e.length&&e.map((function(e){return e.dateAssociated}));return t&&t.length?Bo(t,(function(e){return new Date(e).getTime()})):null}function Xv(e){return[e?Wv.RemoveFromPlaylist:Wv.AddToPlaylist,Wv.Share]}function Zv(e,t,n){sc.logUserAction({id:t,playlistId:e},{location:ta.VideoList,entity:ea.Video,actionType:Qi.Move,workflowPhase:n})}function Qv(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 eb(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 eb(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 eb(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 tb(e){var t,n=Object(ir.useDispatch)(),r=o.useBasicFetch(qv),i=o.useBasicFetch(Qo),a=!Vn.isEmpty(i.data),c=e.filterByRating?a&&Gd(i.data):null,u=e.isShared?!!i.data&&Xi.getSharedPlaylist(e.playlistId,c):Xi.getPlaylist(e.playlistId),s=o.useBasicFetch(u);zd(s,{forbidden:{application:kn,action:vn.ACCESS_DENIED},notFound:{application:kn,action:vn.NOT_FOUND}});var l=!!i.data&&function(t){return(e.isShared?Xi.getSharedPlaylistVideos:Xi.getPlaylistVideos)(e.playlistId,c,t)},f=o.useBasicFetch(e.canFollow&&!!i.data&&Xi.getIsFollowingPlaylist(e.playlistId,i.data.id)),p=function(e){o.getFetch(n,l(e))()},d=function(e,t){var n=t,r=op(e&&function(t){return e(t).key});return $v((function(){return t&&n(r.nextCursor)}),!!r.nextCursor,r.isFetching),Object(nr.useEffect)((function(){r.shouldInitialFetch&&t&&n()}),[r.shouldInitialFetch,t]),{items:r.items,hasMore:!!r.nextCursor,isFetching:r.isFetching}}(l,p),h=d.items,y=d.hasMore,m=d.isFetching;ei(h);var v,b,g,w,E=Qv((v=h,b=Yv(Object(nr.useState)(),2),g=b[0],w=b[1],Object(nr.useEffect)((function(){g&&(v.length!==g.length||function(e,t){var n=!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r].id!==t[r].id){n=!1;break}return n}(v,g))&&w(null)}),[v]),[g,w]),2),S=E[0],O=E[1],x=a&&!!h&&!!h.length&&Jd(h.map((function(e){return e.id}))),k=o.useGetResponse(x&&x.key),C=o.useGetFetch(x);x&&k.shouldFetch&&C();var j=a?!!k.data&&qd(h,k.data):h;Xf(!!s.data&&s.data.name,[s.data]);var A,_,L=!!e.allowEdit&&function(e,t){return!(Vn.isEmpty(t)||!e||Vn.isEmpty(e.owner))&&e.owner.id===t.id}(s.data,i.data),P=!!h&&0===h.length,N=!s.data||!h||!i.data||!r.data||e.canFollow&&!f.data;return nr.createElement(Vv.Provider,{value:{videoActions:Xv(L),getActionAppLink:(A=e.application,_=e.playlistId,function(e,t){switch(t){case Wv.RemoveFromPlaylist:return{application:A,action:vn.REMOVE_VIDEO_FROM_PLAYLIST,args:[e.id,_]};case Wv.AddToPlaylist:return{application:A,action:vn.ADD_TO_PLAYLIST,args:[e.id]};case Wv.Share:return{application:A,action:vn.HOME}}})}},nr.createElement("div",{className:"bg-white padding-gutter"},nr.createElement(Up,{playlistId:e.playlistId,playlist:s.data,hasVideos:!P,isFollowing:null===(t=f.data)||void 0===t?void 0:t.isFollowing,follow:function(t){if(e.canFollow){var r=t?Xi.followPlaylist:Xi.unfollowPlaylist;o.fetch(n,r(e.playlistId,i.data.id))}},application:e.application,canEdit:L,isShared:e.isShared,showBreadcrumbs:e.showBreadcrumbs,showDateMetadata:e.showDateMetadata,playAllAppLink:e.getPlayAllAppLink&&e.getPlayAllAppLink(s.data),showPartialLoading:N,lastUpdated:!!h&&Jv(h),imageCdnUrl:!!r.data&&r.data.imageCdnUrl,returnAppLink:e.returnAppLink,canFollow:e.canFollow}),P?!!r.data&&nr.createElement(Uv,{supportSiteUrl:r.data.supportSiteUrl}):nr.createElement(Pd,{videos:S||j,playlistId:!!s.data&&s.data.id,onSortStart:function(t){var n=h[t];n&&Zv(e.playlistId,n.id,na.Start)},onSortComplete:function(t,r){if(t!==r){var i=j[t];if(i){var a=Ai(j,t,r),c=a.reorderedItems,u=a.reorderRequest;O(c),Zv(e.playlistId,i.id,na.Complete);o.fetch(n,Xi.reorderVideos(e.playlistId,u,null,(function(){O(null)})))}}},isUserSignedIn:a,canEdit:L,showPartialLoading:!j||!i.data||!r.data,getVideoAppLink:e.getVideoAppLink,getSeriesAppLink:e.getSeriesAppLink,fetchRestrictions:C,setFavourite:function(e,t,r){o.fetch(n,Bv(e,i.data.id,t,(function(){sc.logUserAction({id:e},{entity:ea.Video,actionType:Qi.Favourite,descriptor:t?ha.On:ha.Off,location:ta.VideoThumbnail,workflowPhase:na.Complete})}),r))}}),!!y&&nr.createElement(Kv,{isFetching:m,onClick:p})))}var nb=function(){return"/api/domain/v1/subjects/audiences"},rb=function(){return{bootstrapName:"presentationAudiences",url:nb(),key:"presentation:audiences",normalize:!1}},ob=Ir.encloseNamespace("playlists.emptyState");function ib(){var e=Hf(qf).getImageUrls();return nr.createElement(Dv,{imageUrl:e.EmptyStates.VIDEOS,heading:ob("noPlaylistsHeading"),description:ob("noPlaylistsInfo")})}function ab(e){var t=Object(ir.useDispatch)(),n=o.useBasicFetch(qv),r=o.useBasicFetch(Qo),i=o.useBasicFetch(rb()),a=function(t){return Xi.getUserPlaylists(new fp(e.sort,t))},c=function(e){o.getFetch(t,a(e))()},u=op((function(e){return a(e).key}));return Xf(Ir.getPhrase("playlists.playlists","title")),$v((function(){return c(u.nextCursor)}),!!u.nextCursor,u.isFetching),nr.useEffect((function(){u.shouldInitialFetch&&c()}),[u.shouldInitialFetch]),$o(u.items)?nr.createElement(ib,null):nr.createElement("div",{className:"bg-white padding-gutter"},n.data&&r.data?nr.createElement(Wp,{user:r.data,imageCdnUrl:n.data.imageCdnUrl,sortType:e.sort,getSortAppLink:e.getSortAppLink}):nr.createElement(qp,null),u.items&&(i.data||i.hasError)?nr.createElement(Kp,{playlists:u.items}):nr.createElement(Bp,null),!!u.items&&!(!u.nextCursor&&!u.isFetching)&&nr.createElement(Kv,{isFetching:u.isFetching,onClick:function(){return c(u.nextCursor)}}))}function cb(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 ub(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 ub(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 ub(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 sb=Ir.encloseNamespace("playlists.removeVideoFromPlaylist");function lb(e){var t=Object(ir.useDispatch)(),n=cb(nr.useState(!1),2),r=n[0],i=n[1],a=o.useBasicFetch(Xi.getPlaylist(e.playlistId)),c=o.useBasicFetch(Wd(e.videoId));Xf(!!c.data&&sb("title",{name:c.data.name}),[c.data]);var u=[{variant:"secondary",onClick:e.closePopup,buttonText:sb("keep")},{variant:"danger",onClick:function(){i(!0),o.fetch(t,Xi.removePlaylistVideo(e.playlistId,e.videoId,e.closePopup,e.closePopup)),sc.logUserAction({id:e.videoId,playlistId:e.playlistId},sc.mergeOptions(e.analyticsOptions,{actionType:Qi.Dissociate,entity:ea.Video,workflowPhase:na.Complete}))},buttonText:sb("confirm"),isSpinnerButton:!0,showSpinner:r}],s=!!a.data&&!!c.data;return nr.createElement(_f,{title:sb("check"),close:e.closePopup,showLoadingSpinner:!s},s&&nr.createElement("div",{className:"remove-video-container"},nr.createElement("div",{className:"remove-video-body"},nr.createElement("p",null,nr.createElement(dp,{namespace:"playlists.removeVideoFromPlaylist",phrase:"warning",options:{video:c.data.name,playlist:a.data.name}}))),nr.createElement(Cf,{buttons:u})))}var fb=function(e){var t=e.children;return nr.createElement(qr,null,t)};function pb(e,t){yn.getInstance(a.PLAYLIST).getMigrationTask((function(n){return yn.releaseInstance(a.PLAYLIST),n&&n.status!==zi.Processed||e.action!==vn.MIGRATION_IN_PROGRESS?n&&n.status!==zi.Processed&&e.action!==vn.MIGRATION_IN_PROGRESS?(r.AppLinkHelper.trigger({application:kn,action:vn.MIGRATION_IN_PROGRESS}),void r.AppLinkUtility.routingEnded()):void t(e):(r.AppLinkHelper.trigger({application:kn,action:vn.HOME}),void r.AppLinkUtility.routingEnded())}))}function db(e){return(db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yb(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 mb(e,t,n){return t&&yb(e.prototype,t),n&&yb(e,n),e}function vb(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&&bb(e,t)}function bb(e,t){return(bb=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Eb(e);if(t){var o=Eb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wb(this,n)}}function wb(e,t){return!t||"object"!==db(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 Eb(e){return(Eb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sb=function(e){vb(n,e);var t=gb(n);function n(){return hb(this,n),t.apply(this,arguments)}return mb(n,[{key:"channelName",get:function(){return kn}},{key:"appRoutes",get:function(){return{"playlists(/)":"index","playlists/maintenance":"migrationInProgress","playlists/share/:shareCode(/)":"sharedPlaylist","playlists/share/:shareCode/play(/)":"playSharedPlaylist","playlists/share/:shareCode/videos/:id(/)":"playSharedPlaylistVideo","playlists/:id(/:slug)":"playlist","playlists/:id/play(/)":"playPlaylist","playlists/:id/videos/:id(/)":"playPlaylistVideo"}}},{key:"externalRoutes",get:function(){return{"series/:id(/)":"series"}}},{key:"appLinks",get:function(){return["newPlaylist","editPlaylist","deletePlaylist","removeVideoFromPlaylist","sharePlaylist","accessDenied","notFound"]}},{key:"filters",get:function(){return[pb]}}]),n}(r.AppRouter),Ob=function(e){vb(n,e);var t=gb(n);function n(){return hb(this,n),t.apply(this,arguments)}return mb(n,[{key:"initialize",value:function(){var e=this;Vn.values(a).forEach((function(t){return yn.getInstance(t,e)}))}},{key:"index",value:function(e){this.layout.showChildView(yr,nr.createElement(ab,{getSortAppLink:function(e){return{application:kn,action:vn.HOME,params:{sort:e}}},sort:Gi(e.sort)})),this.renderLeftNav()}},{key:"playlist",value:function(e,t){var n=this,r={key:e,playlistId:e,application:kn,allowEdit:!0,showBreadcrumbs:!0,showDateMetadata:!1,getVideoAppLink:function(t){return n.getVideoAppLink(e,t.id,Ca(t.name))},getSeriesAppLink:function(e){return{application:kn,action:vn.SERIES,args:[e.id]}},getPlayAllAppLink:function(){return{application:kn,action:vn.PLAY_PLAYLIST,args:[e]}},filterByRating:!0};this.layout.showChildView(yr,nr.createElement(tb,Object.assign({},r))),this.renderLeftNav(e)}},{key:"newPlaylist",value:function(){this.layout.showChildView(mr,nr.createElement(Iv,Object.assign({application:kn},this.getPopupProps())))}},{key:"editPlaylist",value:function(e){var t=Object.assign({key:e,playlistId:e},this.getPopupProps());this.layout.showChildView(mr,nr.createElement(Rv,Object.assign({},t)))}},{key:"deletePlaylist",value:function(e){var t=e.toString()===this.currentPlaylistId?{application:kn,action:vn.HOME}:null,n=Object.assign({key:e,playlistId:e,routeToOnDelete:t},this.getPopupProps());this.layout.showChildView(mr,nr.createElement(xv,Object.assign({},n)))}},{key:"removeVideoFromPlaylist",value:function(e,t){var n=Object.assign({key:"".concat(e,":").concat(t),videoId:e,playlistId:t},this.getPopupProps());this.layout.showChildView(mr,nr.createElement(lb,Object.assign({},n)))}},{key:"playPlaylist",value:function(e){this.playPlaylistVideo(e)}},{key:"playPlaylistVideo",value:function(e,t){var n=this,r=Object.assign(Object.assign({key:"".concat(e,":").concat(t),playlistId:e,videoId:t,getPlaylistAppLink:function(){return n.getPlaylistAppLink(e)},getVideoAppLink:function(t,r){return n.getVideoAppLink(e,t,r)}},this.getPopupProps()),{filterByRating:!0});this.layout.showChildView(yr,nr.createElement(Zd,Object.assign({},r))),this.renderLeftNav(e)}},{key:"sharePlaylist",value:function(e){var t=Object.assign({key:e,playlistId:e},this.getPopupProps());this.layout.showChildView(mr,nr.createElement(ep,Object.assign({},t)))}},{key:"sharedPlaylist",value:function(e){var t=this,n=Object.assign(Object.assign({key:e,playlistId:e,application:kn,isShared:!0,allowEdit:!1,showDateMetadata:!1,getVideoAppLink:function(n){return t.getVideoAppLink(e,n.id,n.name,!0)},getSeriesAppLink:function(e){return{application:kn,action:vn.SERIES,args:[e.id]}},getPlayAllAppLink:function(){return{application:kn,action:vn.PLAY_SHARED_PLAYLIST,args:[e]}}},this.getPopupProps()),{filterByRating:!0});this.layout.showChildView(yr,nr.createElement(tb,Object.assign({},n))),this.hideLeftNav()}},{key:"playSharedPlaylist",value:function(e){this.playSharedPlaylistVideo(e)}},{key:"playSharedPlaylistVideo",value:function(e,t){var n=this,r={key:"".concat(e,":").concat(t),playlistId:e,videoId:t,isShared:!0,getPlaylistAppLink:function(){return n.getPlaylistAppLink(e,"",!0)},getVideoAppLink:function(t,r){return n.getVideoAppLink(e,t,r,!0)},filterByRating:!0};this.layout.showChildView(yr,nr.createElement(Zd,Object.assign({},r))),this.hideLeftNav()}},{key:"accessDenied",value:function(){var e=this.getPhrase("accessDeniedHeading"),t=this.getPhrase("accessDeniedInfo");this.layout.showChildView(yr,nr.createElement(Gf,{heading:e,description:t})),this.hideLeftNav()}},{key:"notFound",value:function(){var e=this.getPhrase("notFoundHeading"),t=this.getPhrase("notFoundInfo");this.layout.showChildView(yr,nr.createElement(Gf,{heading:e,description:t})),this.hideLeftNav()}},{key:"migrationInProgress",value:function(){this.layout.showChildView(yr,nr.createElement(Md,null)),this.hideLeftNav()}},{key:"renderLeftNav",value:function(e){this.setCurrentPlaylist(e),this.layout.showChildView(hr,nr.createElement(Fd,{selectedPlaylistId:e}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return s.Radio.channel(f.ALERT).trigger("remove:alert",e)};this.layout.showChildView(vr,nr.createElement(Vf,{alerts:n,removeAlert:r}))}},{key:"setCurrentPlaylist",value:function(e){this.currentPlaylistId=e?e.toString():null}},{key:"hideLeftNav",value:function(){this.layout.hideLeftNav()}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:ta.Popup}}}},{key:"getPlaylistAppLink",value:function(e,t,n){var r=[e.toString()];return t&&r.push(Ca(t)),{application:kn,action:n?vn.SHARED_PLAYLIST:vn.PLAYLIST,args:r}}},{key:"getVideoAppLink",value:function(e,t,n,r){var o=[e.toString(),t.toString()];return n&&o.push(Ca(n)),{application:kn,action:r?vn.PLAY_SHARED_PLAYLIST_VIDEO:vn.PLAY_PLAYLIST_VIDEO,args:o}}},{key:"getPhrase",value:function(e){return Ir.encloseNamespace("playlists.app")(e)}},{key:"name",get:function(){return"Playlist Application"}},{key:"channelName",get:function(){return kn}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:fb}}}}],[{key:"router",get:function(){return Sb}}]),n}(r.Application);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 kb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cb(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 jb(e,t,n){return(jb="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=Pb(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 Ab(e,t){return(Ab=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pb(e);if(t){var o=Pb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lb(this,n)}}function Lb(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 Pb(e){return(Pb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nb=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)}(a,e);var t,n,o,i=_b(a);function a(){return kb(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"initialize",value:function(){this.navHelper=qn.getClickView().Shared.Helpers}},{key:"hideLeftNav",value:function(){this.unsetRegion(hr),this.navHelper.hideLeftNav(),this.leftNavVisible=!1}},{key:"showLeftNav",value:function(){this.navHelper.showLeftNav(),this.leftNavVisible=!0}},{key:"updateResponsiveHideLeftNav",value:function(){if(!this.options.hideLeftNav){var e=r.AppLinkHelper.getCurrentAppLink(),t=Un[e.application];t&&t.indexOf(e.action)>-1?this.navHelper.hideLeftNavResponsive():this.showLeftNav()}}},{key:"showChildView",value:function(e,t){this.updateResponsiveHideLeftNav(),jb(Pb(a.prototype),"showChildView",this).apply(this,arguments)}}])&&Cb(t.prototype,n),o&&Cb(t,o),a}(hi);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 Tb(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 Fb(e,t){return(Fb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Db(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ub(e);if(t){var o=Ub(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"!==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 Ub(e){return(Ub=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vb=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&&Fb(e,t)}(i,e);var t,n,r,o=Db(i);function i(){return Tb(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"onShowAlert",value:function(e){if(this.layoutOptions.options.alertRegion){var t=e.ctor,n=e.collection,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,nr.createElement(t,{alerts:r,removeAlert:function(e){return s.Radio.channel(f.ALERT).trigger("remove:alert",e)}}))}}}])&&Ib(t.prototype,n),r&&Ib(t,r),i}(X);function zb(e){var t=e.backToName,n=e.appLink,r=e.color,o=t?Ir.getPhrase("shared.backButton","backTo",{backToName:t}):Ir.getPhrase("shared.backButton","back"),i="black"===r?"":"text-light";return nr.createElement(rd,{appLink:n,className:"d-inline-flex align-items-center h5 mb-0 ".concat(i)},nr.createElement(Gm,{svgName:Bm.ChevronLeft,size:Ym.Medium}),nr.createElement("span",{className:"ml-1"},o))}zb.defaultProps={color:"black"};var Hb=n(65),Bb=n.n(Hb);function qb(e){if(!e.actions||!e.actions.length)return nr.createElement(nr.Fragment,null);var t="actions-dropdown-".concat(qm()),n="px-0 ".concat(Bb.a.dropdownToggle);return e.dropdownToggleClassName&&(n+=" ".concat(e.dropdownToggleClassName)),nr.createElement($a.Dropdown,{className:e.className?e.className:"",alignRight:!0},nr.createElement($a.Dropdown.Toggle,{as:"button",type:"button",id:t,className:n},nr.createElement(Gm,{svgName:Bm.More,size:Ym.Small})),nr.createElement($a.Dropdown.Menu,null,e.actions.map((function(e,t){return nr.createElement(rd,{key:t,appLink:e.appLink,className:(n=e.className,r="dropdown-item",n&&(r+=" ".concat(n)),r)},e.label);var n,r}))))}qb.defaultProps={dropdownToggleClassName:"btn btn-light"};var $b=n(48),Yb=n.n($b);function Gb(e){var t=e.svgName,n=e.children,r=e.appLink,o=e.className,i=e.onClick,a="".concat(o," ").concat(Yb.a.iconButton);a+=" ".concat(n?Yb.a.iconWithText:Yb.a.iconOnly);var c=nr.createElement(Gm,{svgName:t,className:Yb.a.svg});return r?nr.createElement(rd,{appLink:r,className:a,onClick:i},c,n):nr.createElement("button",{className:a,onClick:i},c,n)}function Kb(e){var t=e.actionOptions,n=t.onClick,r=t.appLink,o=t.svgName,i=t.tooltip,a="ml-2";return e.actionOptions.className&&(a+=" ".concat(e.actionOptions.className)),i?nr.createElement($m,{title:i},nr.createElement(Gb,{appLink:r,svgName:o,onClick:n,className:a},e.children)):o?nr.createElement(Gb,{onClick:n,appLink:r,svgName:o,className:a},e.children):r?nr.createElement(rd,{onClick:n,appLink:r,className:a},e.children):nr.createElement("button",{onClick:n,className:a},e.children)}function Wb(e){var t=[],n=[];e.actions.forEach((function(e){e.button?t.push(e):n.push(e)}));var r="d-flex";return e.className&&(r+=" ".concat(e.className)),nr.createElement("div",{className:r},nr.createElement(nr.Fragment,null,!!t.length&&nr.createElement("span",{className:Bb.a.buttonList},t.map((function(e,t){return nr.createElement(Kb,{key:t,actionOptions:e},e.label)}))),e.sortComponent?e.sortComponent:"",!!n.length&&nr.createElement(qb,{actions:n,className:!!t.length&&"ml-2",dropdownToggleClassName:e.actionsDropdownClassName})))}var Jb=n(231),Xb=n.n(Jb),Zb=nr.memo((function(e){var t=e.heading,n=e.banner,r=e.imageCdnUrl,o=e.actions,i=e.sortComponent,a=Fp.createBannerUrl(n,{fallbackBaseUrl:r,fallbackCategoryName:t,type:Cp.Banners},{size:kp.Large,resizeType:jp.Cover});return nr.createElement("div",{className:"banner",style:{backgroundImage:"url('".concat(a,"')")}},e.backButtonAppLink&&nr.createElement("div",{className:"pt-3"},nr.createElement(zb,{appLink:e.backButtonAppLink,backToName:e.backButtonText,color:"white"})),nr.createElement("h1",{className:"text-white text-shadow position-absolute m-0 pb-3"},t),!!o&&nr.createElement("div",{className:Xb.a.actionsContainer},nr.createElement(Wb,{actions:o,sortComponent:i})))}),(function(e,t){return e.actions===t.actions})),Qb=function(){return nr.createElement("div",{className:"partial-banner partial-loading-background"})};function eg(e){return function(e){if(Array.isArray(e))return tg(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 tg(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 tg(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 tg(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 ng,rg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.numItems,n=void 0===t?5:t,r=e.minWidth,o=void 0===r?50:r,i=e.maxWidth,a=void 0===i?100:i,c=function(){return Math.max(Math.floor(Math.random()*a),o)};return eg(Array(n)).map((function(){return{width:"".concat(c(),"px")}}))},og=function(e){var t=e.breadcrumb,n=t.label,r=t.appLink,o=t.active;return nr.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?nr.createElement("strong",null,n):nr.createElement(rd,{appLink:r},n))},ig=function(e){var t=e.breadcrumbs;return nr.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return nr.createElement(og,{key:t,breadcrumb:e})})))};function ag(e){return function(e){if(Array.isArray(e))return sg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ug(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 cg(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)||ug(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 ug(e,t){if(e){if("string"==typeof e)return sg(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)?sg(e,t):void 0}}function sg(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 lg(e,t,n){return{label:e.name,appLink:t(e),active:n}}function fg(e){var t=function(e,t){var n=e.currentItem,r=e.getItemAppLink,o=e.getParent,i=e.rootItem,a=e.data,c=e.subview,u=cg(Object(nr.useState)([]),2),s=u[0],l=u[1];nr.useMemo((function(){if(!t&&!Vn.isEmpty(a)){var e=a.map((function(e,t){return lg(e,r,t+1===a.length)}));i&&e.unshift(i),l(e)}}),[a]),nr.useMemo((function(){if(t&&gr(o)){var e=[lg(n,r,!0)];for(n=o(n);n;)e.unshift(lg(n,r)),n=o(n);return i&&e.unshift(i),l(e)}}),[n,o,r,i]);var f=nr.useRef({label:c,appLink:null,active:!0}).current;if(c){s.includes(f)||l([].concat(ag(s),[f]));var p=s.filter((function(e){return e.active&&e!==f}));p.length&&(zo(p).active=!1)}return s}(e,e.type===ng.Dynamic);return nr.createElement("nav",{"aria-label":"breadcrumb"},nr.createElement(ig,{breadcrumbs:t}))}!function(e){e[e.Static=0]="Static",e[e.Dynamic=1]="Dynamic"}(ng||(ng={}));var pg,dg=rg({numItems:3}),hg=function(){return nr.createElement("nav",{"aria-label":"breadcrumb"},nr.createElement("ol",{className:"breadcrumb m-0 p-0"},dg.map((function(e,t){var n=e.width;return nr.createElement("li",{key:t,className:"breadcrumb-item"},nr.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:" "}}))}))))};!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(pg||(pg={}));var yg,mg=function(){return"/api/domain/v1/subjects?query=".concat(Nn.CLASSIFICATION)},vg=function(e,t){return"/api/domain/v1/subjects/".concat(e,"?query=").concat(In(t))},bg=function(e){return"/api/domain/v1/subjects/".concat(e,"/path")},gg=function(e){return"/api/domain/v1/subjects/".concat(e,"/children?query=").concat(Nn.CLASSIFICATION)},wg=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o="/api/domain/v1/subjects/".concat(e,"/").concat(t),i=[];n&&i.push("query=".concat(n)),r&&i.push("cursor=".concat(r));var a=i.join("&");return a&&(o+="?".concat(a)),o},Eg=function(){return{url:"/api/domain/v1/subjects/presentation",key:"presentation",bootstrapName:"presentation"}},Sg=function(){return{url:mg(),key:"classifications"}},Og=function(e,t,n){return{url:vg(e,t),key:"classification:".concat(e),error:n}},xg=function(e){return{url:bg(e),key:"classification:".concat(e,":path")}},kg=function(e){return{url:gg(e),key:"classification:".concat(e,":children")}},Cg=function(e,t,n){if(t){var r="limit:100";n.length&&(r+=",".concat(Rn(n)));var o="{".concat(r,"}").concat(Nn.VIDEO_COLLECTION)+",".concat(Tn(t));return{url:wg(e,pg.Videos,o),key:"classification:".concat(e,":").concat(pg.Videos,":").concat(n.join(":"))}}},jg=function(e,t,n){if(t){var r="limit:100,orderby:name";n.length&&(r+=",".concat(Rn(n)));var o="{".concat(r,"}").concat(Nn.PLAYLIST_COLLECTION)+",".concat(Tn(t));return{url:wg(e,pg.Playlists,o),key:"classification:".concat(e,":").concat(pg.Playlists,":").concat(n.join(":"))}}},Ag=function(e,t,n){if(t){var r="limit:100";n.length&&(r+=",".concat(Rn(n)));var o="{".concat(r,"}").concat(Nn.SERIES)+",".concat(Tn(t));return{url:wg(e,pg.Series,o),key:"classification:".concat(e,":").concat(pg.Series,":").concat(n.join(":"))}}};function _g(e){return function(e){if(Array.isArray(e))return Lg(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 Lg(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 Lg(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 Lg(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 Pg(e,t){return!!e&&(!(!e.application||!e.action)&&!!t())}function Ng(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];nr.useEffect((function(){var t=e.appLink,n=e.paramBuilder,o=e.isValid,i=e.appLinkOptions;Pg(t,o)&&(t.params=n(),r.AppLinkHelper.trigger(t,i))}),_g(t))}function Rg(e,t){switch(t.type){case yg.Init:return Object.assign(Object.assign({},e),t.payload.reduce((function(e,t){return e[t.masterId]=t,e}),{}));case yg.Toggle:return Object.assign({},function(e,t){var n=t.audience,r=t.isSelected;if(!n)return e;var o=n.masterId,i=Object.assign({},e);return r?i[o]||(i[o]=n):delete i[o],i}(e,t.payload));default:return e}}function Tg(e){return function(e){if(Array.isArray(e))return Ig(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 Ig(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 Ig(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 Ig(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.Init="init",e.Toggle="toggle"}(yg||(yg={}));var Fg=/\s|\+/gi;function Dg(e){return e?e.replace(Fg,"").toLowerCase():""}function Mg(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];nr.useEffect((function(){if(Vn.isObject(e)&&!Vn.isEmpty(e)&&t&&t.length){var r=e.a;if(r){"string"==typeof r&&(r=[r]);var o=r.reduce((function(e,t){return e[Dg(t)]=t,e}),{}),i=t.filter((function(e){return o[Dg(e.name)]}));n({type:yg.Init,payload:i})}}}),Tg(r))}var Ug=n(232),Vg=n.n(Ug);function zg(e){var t=e.audience,n=e.highlight,r=e.setAudience,o=e.isDisabled,i=e.extraClasses,a=function(e,t){return e?"badge-info text-light":t?"".concat(Vg.a.disabled," text-muted"):"badge-light"}(n,o),c="badge-pill d-inline-block mr-1 ".concat(o?"cursor-default":"cursor-pointer"," ").concat(a," ").concat(i);return nr.createElement("span",{className:c,onClick:function(){o||r(t,!n)},role:"checkbox","aria-checked":n},t.name.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.substring(1)})).join(" "))}function Hg(e){var t=e.audiences,n=e.activeAudiences,r=e.setAudience,o=e.disabled;return t&&t.length?nr.createElement("div",{className:"pt-3"},t.map((function(e){return nr.createElement(zg,{key:e.masterId,audience:e,highlight:!!n&&!!n[e.masterId],setAudience:function(e,t){return r({type:yg.Toggle,payload:{audience:e,isSelected:t}})},isDisabled:o})}))):nr.createElement(nr.Fragment,null)}zg.defaultProps={extraClasses:""};var Bg=rg({numItems:6}),qg=function(){return nr.createElement("div",{className:"pt-3"},Bg.map((function(e,t){var n=e.width;return nr.createElement("span",{key:t,className:"d-inline-block badge-pill partial-loading-background mr-1",dangerouslySetInnerHTML:{__html:" "},style:{width:n}})})))};function $g(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 Yg(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 Yg(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 Yg(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 Gg={className:"",delay:0};function Kg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gg,t=nr.useState(!1),n=$g(t,2),r=n[0],o=n[1],i=nr.useRef(null),a=br((function(){var t,n;e.className&&(null===(n=null===(t=i.current)||void 0===t?void 0:t.classList)||void 0===n||n.add(e.className)),o(!0)}),e.delay,{leading:!1}),c=function(){var t,n;gr(a.cancel)&&a.cancel(),e.className&&(null===(n=null===(t=i.current)||void 0===t?void 0:t.classList)||void 0===n||n.remove(e.className)),o(!1)};return nr.useLayoutEffect((function(){var e=i.current;if(e)return e.addEventListener("mouseenter",a),e.addEventListener("mouseleave",c),function(){e.removeEventListener("mouseenter",a),e.removeEventListener("mouseleave",c)}}),[i.current]),[i,r]}function Wg(e){return Kg({className:e,delay:275})}var Jg=/([0-9]+)/gi,Xg=/(^\w+)/gi;var Zg=function(e,t){var n=e.map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},Qg=function(e){if(1===e.length)return e[0];var t=e.map((function(e){return e.name})).join(","),n=t.match(Jg),r=t.match(Xg);if(!n||!r)return e[0];var o=function(e){var t,n,r,o,i=!1,a=[];for(e=e.sort((function(e,t){return e-t})),r=0;r<e.length;r++)o=r+1,i||(t=e[r]),n=e[o],e[r]+1===n?i=!0:i?(a.push("".concat(t," - ").concat(e[r])),i=!1):(a.push("".concat(e[r])),i=!1);return a}(n.map((function(e){return+e}))||[]),i=r[0];return{name:"".concat(i," ").concat(o.join(" , "))}},ew=function(e){var t=function(e){return e.length?(e.forEach((function(e){var r=+zo(e.name.match(Jg));if(!t)return t=e,void(n=r);r>n&&(t=e)})),t):null;var t,n},n={},r=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void r.push(e);r.push(e),n[e.name]++;var o=r.splice(r.length-n[e.name]).sort((function(e,n){var r=t(e.subjectPresentationAudiences.data),o=t(n.subjectPresentationAudiences.data);return!r&&o?1:o?r.name.localeCompare(o.name):-1}));r=r.concat(o)})),r},tw=n(233),nw=n.n(tw);function rw(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 ow(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 ow(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 ow(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 iw,aw=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},cw=nr.memo((function(e){var t=e.forceLoad,n=aw(e,["forceLoad"]),r=rw(Nf.useInView({triggerOnce:!0}),2),o=r[0],i=r[1];if(void 0===window.IntersectionObserver)return nr.createElement("img",Object.assign({alt:""},n));var a=n.src,c=aw(n,["src"]),u=Object.assign(Object.assign({alt:""},c),i||t?{src:a}:{});return t||(u.ref=o),nr.createElement("img",Object.assign({className:nw.a.image},u))}));!function(e){e.Small="small",e.Medium="medium",e.Large="large",e.Raw="raw"}(iw||(iw={}));var uw,sw=n(42),lw=n.n(sw);function fw(e){var t="thumbnail ".concat(lw.a.thumbnail),n="";return e.aspectRatio===uw.SixteenByNine&&(n=lw.a.sixteenByNine),e.aspectRatio===uw.NineBySixteen&&(n=lw.a.nineBySixteen),e.aspectRatio===uw.OneByOne&&(n=lw.a.oneByOne),e.aspectRatio===uw.TwoByThree&&(n=lw.a.twoByThree),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function pw(e){var t=e.data,n=e.size,r=e.appLink,o=e.preload,i="";"string"==typeof t?i=t:Vn.isObject(t)&&(i=t.url);var a=i&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iw.Small;return"".concat(e,"?size=").concat(t)}(i,n);return nr.createElement("div",{className:fw(e)},nr.createElement(rd,{appLink:r},e.children,a&&nr.createElement(cw,{src:a,forceLoad:o})))}!function(e){e[e.SixteenByNine=0]="SixteenByNine",e[e.OneByOne=1]="OneByOne",e[e.TwoByThree=2]="TwoByThree",e[e.NineBySixteen=3]="NineBySixteen"}(uw||(uw={}));var dw,hw,yw=n(16),mw=n.n(yw);function vw(e){var t=e.type,n=e.mediaType,r=e.extraClasses,o=(Hf(qf).getImageUrls(),function(e){return e===dw.Video?mw.a.videoFallback:e===dw.Playlist?mw.a.playlistFallback:e===dw.Series||e===dw.TallSubject?mw.a.posterFallback:e===dw.Subject?mw.a.subjectFallback:""}(t)),i=function(e,t){return e===dw.Video?Bm.Play:e===dw.Playlist?Bm.Playlist:e===dw.Series?Bm.Series:e===dw.Subject||e===dw.TallSubject?Bm.Subject:""}(t),a="".concat(function(e,t){return t===dw.Subject?mw.a.subjectFallbackContainer:e===hw.Svg?mw.a.svgFallbackContainer:mw.a.baseFallbackContainer}(n,t));return r&&(a+=" ".concat(e.extraClasses)),nr.createElement("div",{className:a},n===hw.Svg?nr.createElement(Gm,{svgName:i,className:o,tagName:"div"}):nr.createElement("div",{className:mw.a.fallbackThumbnailImage,style:{backgroundImage:"url('".concat(i,"')")}}))}!function(e){e[e.Video=0]="Video",e[e.Playlist=1]="Playlist",e[e.Series=2]="Series",e[e.Subject=3]="Subject",e[e.TallSubject=4]="TallSubject"}(dw||(dw={})),function(e){e[e.Svg=0]="Svg",e[e.Image=1]="Image"}(hw||(hw={})),vw.defaultProps={mediaType:hw.Svg};n(234);function bw(e){return e.audience?nr.createElement("div",{className:"border rounded-pill d-inline-block px-2 mt-1 ".concat("border-"+e.border)},e.audience.name):nr.createElement(nr.Fragment,null)}var gw,ww=function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-success";case e<80:return"bg-info";case e<96:return"bg-danger";case e<128:return"bg-pink";case e>=128:return"bg-warning";default:return""}}(e)},Ew=n(29),Sw=n.n(Ew);function Ow(e){var t=e.type,n=e.data;if(!function(e,t){return e===gw.Rating?t&&!!t.value:!!t}(t,n))return nr.createElement(nr.Fragment,null);var r=function(e,t){var n="";return e===gw.Duration&&(n=Sw.a.duration),e===gw.Interactive&&(n=Sw.a.interactive),e===gw.Rating&&(n="".concat(Sw.a.rating," ").concat(ww(t.value))),e===gw.ProductionYear&&(n=Sw.a.productionYear),"".concat("badge"," ").concat(n)}(t,n),o=function(e,t){return e===gw.Interactive?"Interactive":e===gw.Duration?ud(t):e===gw.Rating?t.code:e===gw.ProductionYear?t:void 0}(t,n),i=function(e,t){return e===gw.Rating?{title:t.name,placement:"top"}:null}(t,n);return i?nr.createElement($a.OverlayTrigger,{placement:i.placement,overlay:nr.createElement($a.Tooltip,{id:i.title},i.title)},nr.createElement("span",{className:r},o)):nr.createElement("span",{className:r},o)}!function(e){e.Duration="duration",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year"}(gw||(gw={}));var xw=n(20),kw=n.n(xw);function Cw(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 jw(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 jw(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 jw(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 Aw(e){var t=e.data,n=e.appLink,r=e.preloadImage,o=Object.assign(Object.assign({},n),{args:[t.id,Ca(t.name)]}),i=t&&t.subjectPresentationAudiences&&t.subjectPresentationAudiences.data||[],a=Zg(i,e.audiences),c=Qg(a),u=Cw(Wg(kw.a.hoverActive),2),s=u[0],l=u[1];return nr.createElement(rd,{key:t.id,appLink:o,className:"position-relative p-1 flex-shrink-0 ".concat(kw.a.width)},nr.createElement("div",{ref:s},l&&nr.createElement("div",{className:"p-3 text-white text-center ".concat(kw.a.mask)},nr.createElement("h3",{className:"h4"},t.name),nr.createElement("p",null,t.description)),nr.createElement(pw,{data:t.tallPoster,aspectRatio:uw.NineBySixteen,preload:r,size:iw.Large},nr.createElement(vw,{type:dw.Series}),nr.createElement("div",{className:"position-absolute text-white ".concat(kw.a.labelContainer)},i&&i.length?nr.createElement(bw,{audience:c,border:"white"}):nr.createElement(Ow,{type:gw.Rating,data:t.rating})))))}function _w(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 Lw=function(e){return function(e){if(Array.isArray(e))return _w(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 _w(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 _w(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.")}()}(Array(4)),Pw=function(){return nr.createElement("div",{className:"pb-3"},nr.createElement("div",{className:"partial-loading-background ".concat(kw.a.partialLoadingHeading),dangerouslySetInnerHTML:{__html:" "}}),nr.createElement("div",{className:"row"},Lw.map((function(e,t){return nr.createElement("div",{key:t,className:"col-6 col-sm-4 col-lg-3 "},nr.createElement("div",{className:"py-2"},nr.createElement("div",{className:"".concat(kw.a.partialLoading," partial-loading-background")})))}))))},Nw=function(e){return function(t){return{application:Cn,action:bn.CLASSIFICATION,args:t?[t.id,Ca(t.name)]:[],params:e||{}}}},Rw=function(e){return{application:Cn,action:bn.CLASSIFICATION_SERIES,args:e?[e.id,Ca(e.name)]:[]}},Tw=function(e){return function(t){return{application:Cn,action:bn.CLASSIFICATION_PLAYLIST,args:[e.id,t.id,Ca(t.name)]}}},Iw=function(){return{application:_n,action:En.HOME}},Fw=n(235),Dw=n.n(Fw);function Mw(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 Uw(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 Uw(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 Uw(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 Vw,zw=Ir.encloseNamespace("subjects.classificationSeriesList");function Hw(e){var t,n,r,i,a,c=e.id,u=e.queryParams,s=Mw(nr.useReducer(Rg,{}),2),l=s[0],f=s[1],p=o.useBasicFetch(Qo),d=o.useBasicFetch(qv),h=o.useBasicFetch((null===(t=p.data)||void 0===t?void 0:t.id)?Og(c,null===(n=p.data)||void 0===n?void 0:n.id):null),y=o.useBasicFetch(Eg()),m=o.useBasicFetch(xg(c)),v=o.useBasicFetch(rb()),b=Vn.keys(l),g=Vn.values(l),w=null===(i=null===(r=y)||void 0===r?void 0:r.data)||void 0===i?void 0:i.id,E=Ag(c,w,b),S=o.useGetResponse(E&&E.key),O=o.useGetFetch(E);nr.useEffect((function(){w&&O()}),[w]);var x=Nw();Ng({appLink:Rw(h.data),paramBuilder:function(){return{a:g.map((function(e){return e.name}))}},isValid:function(){var e;return!!(null===(e=h.data)||void 0===e?void 0:e.id)},appLinkOptions:{replace:!0}},[g.length]);var k=!(!v.data||!v.data.length);Mg(u,v.data,f,[k]);var C=!!m.data,j=!!v.data;return nr.createElement("div",{className:"bg-white"},h.data&&d.data?nr.createElement(Zb,{heading:zw("heading",{classification:h.data.name}),banner:h.data.banner,imageCdnUrl:d.data.imageCdnUrl}):nr.createElement(Qb,null),nr.createElement("div",{className:"px-3"},nr.createElement("div",{className:"py-3 mb-3 border-bottom"},C?nr.createElement(fg,{currentItem:h.data,type:ng.Static,getItemAppLink:x,data:m.data,rootItem:{label:zw("dashboard"),appLink:Iw()},subview:zw("subview")}):nr.createElement(hg,null),j?nr.createElement(Hg,{audiences:v.data,activeAudiences:l,setAudience:f}):nr.createElement(qg,null)),(null===(a=S.data)||void 0===a?void 0:a.data)&&h.data?nr.createElement("div",{className:"mx-n2"},S.data.data.map((function(e){return nr.createElement("div",{className:"d-inline-flex position-relative px-2 mb-2 ".concat(Dw.a.seriesItem)},nr.createElement(Aw,{data:e,appLink:Rw(h.data),audiences:v.data}))}))):nr.createElement(Pw,null)))}!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero"}(Vw||(Vw={}));var Bw,qw=function(){return"/api/domain/v1/subjects/classifications/following"},$w=function(e){return Np.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},Yw={follow:function(e,t,n){return{url:qw(),key:"follow:".concat(e.join(",")),type:zr.POST,data:e,success:t,error:n,invalidationKeys:e.map((function(e){return"classification:".concat(e)}))}},unfollow:function(e,t,n){return{url:$w(e),key:"unfollow:".concat(e.join(",")),type:zr.DELETE,success:t,error:n,invalidationKeys:e.map((function(e){return"classification:".concat(e)}))}}};!function(e){e.Videos="videos",e.Series="series",e.Subjects="subjects",e.Playlists="playlists",e.UserChannels="user channels"}(Bw||(Bw={}));var Gw=n(41),Kw=n.n(Gw);function Ww(e){return function(e){if(Array.isArray(e))return Jw(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 Jw(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 Jw(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 Jw(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 Xw(e){var t=Ww(Array(e.numItems)),n=e.itemClassName||"";return nr.createElement(nr.Fragment,null,e.showHeading&&nr.createElement("div",{className:"".concat(Kw.a.partialHeading," partial-loading-background")}),nr.createElement($a.Row,null,t.map((function(e,t){return nr.createElement($a.Col,{key:t,xs:6,sm:4,md:3,lg:2,className:n},nr.createElement("div",{className:"py-2"},nr.createElement("div",{className:"".concat(Kw.a.basePlaylistItem," partial-loading-background")})))}))))}function Zw(e){var t=Fp.createUrl(e.data.cover&&e.data.cover.url,{size:kp.Medium,resizeType:jp.Cover}),n=e.data.subjectPresentationAudiences&&e.data.subjectPresentationAudiences.data,r=Zg(n,e.presentationAudiences),o=Qg(r),i=!!e.showCount&&!!e.data.videos&&e.data.videos.count;return nr.createElement(rd,{appLink:e.appLink},nr.createElement(pw,{data:t,className:Kw.a.playlistItem},nr.createElement(vw,{type:dw.Playlist}),nr.createElement("div",{className:"text-white ".concat(Kw.a.playlistMetadata)},Number.isInteger(i)&&nr.createElement(dp,{namespace:"shared.playlistItem",phrase:"videos",options:{smartCount:i}}),nr.createElement("h5",{className:"text-shadow mb-0"},e.data.name),!!n&&!!n.length&&nr.createElement(bw,{audience:o,border:"white"}))))}function Qw(e){return nr.createElement($a.Row,null,e.playlists.map((function(t){return nr.createElement($a.Col,{key:t.id,xs:6,sm:4,lg:3,className:"mb-3 ".concat(e.itemClassName?e.itemClassName:"")},nr.createElement(Zw,{key:t.id,data:t,appLink:e.getPlaylistAppLink(t),presentationAudiences:e.presentationAudiences,showCount:e.showCount}))})))}function eE(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 tE(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 tE(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 tE(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}Xw.defaultProps={numItems:8};var nE=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};function rE(e){var t=e.showSpinner,n=e.children,r=nE(e,["showSpinner","children"]),o=nr.useRef(),i=eE(nr.useState({}),2),a=i[0],c=i[1];return nr.useEffect((function(){var e=a.width,t=a.height;if(!e||!t){var n=o.current,r=n.offsetHeight,i=n.offsetWidth;r&&i&&c({width:i,height:r})}})),nr.useEffect((function(){var e=a.width,t=a.height;if(e&&t){var n=o.current;n.style.width="".concat(e+1,"px"),n.style.height="".concat(t+1,"px")}}),[a]),nr.createElement($a.Button,Object.assign({ref:o,disabled:t},r),t?nr.createElement($a.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}var oE=n(68),iE=n.n(oE);function aE(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 cE(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 cE(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 cE(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 uE(e){var t,n,r=aE(nr.useState(!1),2),o=r[0],i=r[1],a=aE(nr.useState(!1),2),c=a[0],u=a[1];nr.useEffect((function(){var t,n;i(!!(null===(n=null===(t=e.data.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)),u(!1)}),[null===(n=null===(t=e.data.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length]);var s=Fp.createBannerUrl(e.data.banner,{fallbackBaseUrl:e.imageCdnUrl,fallbackCategoryName:e.data.name,type:Cp.Banners},{size:kp.Large}),l={variant:o?"outline-dark":"dark",showSpinner:c,onClick:function(){u(!0),e.onToggleFollow()}};return nr.createElement(pp.Provider,{value:"subjects.comingSoon"},nr.createElement("div",{className:"d-flex flex-column align-items-center text-center py-3"},nr.createElement("h2",{className:"display-4 font-weight-bold mb-3"},nr.createElement(dp,{phrase:"comingSoon"})),nr.createElement("p",{className:"w-33"},nr.createElement(dp,{phrase:"info"})),nr.createElement(rE,Object.assign({},l),nr.createElement(Gm,{svgName:o?Bm.Check:Bm.Bell,className:"align-middle d-inline-block svg-container"}),nr.createElement("span",{className:"align-middle pl-1"},nr.createElement(dp,{phrase:"remindMe"})))),nr.createElement("div",{className:iE.a.footerImageContainer},nr.createElement("div",{className:"".concat(iE.a.footerImage," banner position-relative"),style:{backgroundImage:"url('".concat(s,"')")}},nr.createElement(Gm,{className:iE.a.wave,size:Ym.ExtraLarge,svgName:Bm.WhiteWave}))))}var sE=n(9),lE=n.n(sE),fE=function(e){var t=e.name,n=e.multiline,r="".concat(lE.a.comingSoonPanel," px-3 text-center mt-3"),o="".concat(lE.a.name," h6 mb-0 pb-1");return n?o+=" ".concat(lE.a.clamped," clamp-2"):(r+=" text-nowrap",o+=" text-truncate"),nr.createElement("div",{className:r},nr.createElement("small",{className:"text-muted"},nr.createElement(dp,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),nr.createElement("p",{className:o},t))},pE=function(e){var t=e.name,n=e.multiline,r="px-3 text-center d-flex align-items-center",o="".concat(lE.a.name," h6 mb-0 pb-1");return n?o+=" ".concat(lE.a.clamped," clamp-2 text-left"):(r+=" text-nowrap text-truncate",o+=" text-truncate"),nr.createElement("div",{className:r},nr.createElement("p",{className:o},t))};var dE=nr.memo((function(e){var t,n=Object.assign(Object.assign({},e.appLink),{args:[e.data.id,Ca(e.data.name)]}),r=Fp.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:kp.Small});return nr.createElement(rd,{appLink:n},nr.createElement("div",{className:"border d-flex position-relative ".concat(lE.a.widgetItem),id:e.data.id},nr.createElement("div",{className:"".concat(lE.a.imagePanel," ").concat(e.isLarge?lE.a.large:""),style:{backgroundImage:"url('".concat(r,"')")}}),e.data.comingSoon?nr.createElement(fE,{name:e.data.name,multiline:e.isLarge}):nr.createElement(pE,{name:e.data.name,multiline:e.isLarge}),nr.createElement(vw,{type:dw.Subject,extraClasses:e.isLarge?lE.a.large:""})))})),hE=n(236),yE=n.n(hE);function mE(e){var t=e.classification,n=e.appLink;return nr.createElement("div",{className:"d-inline-flex position-relative px-2 mb-2 ".concat(yE.a.classificationItem)},nr.createElement(dE,{data:t,appLink:n,isLarge:!0}))}function vE(e){return nr.createElement(nr.Fragment,null,e.classifications.map((function(t){return nr.createElement(mE,{key:t.id,classification:t,appLink:e.getItemAppLink(t)})})))}var bE=function(){var e=Hf(jr.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:Aa.Warning,heading:_a.Warning,message:t})}}};function gE(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 wE(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 wE(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 wE(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 EE=Ir.encloseNamespace("shared.favouriteButton");function SE(e){var t=bE(),n="boolean"==typeof e.video.isFavourited,r=!!e.video.isFavourited,o=gE(nr.useState(r),2),i=o[0],a=o[1];nr.useEffect((function(){a(r)}),[r]);var c="cursor-pointer text".concat(i?"-danger":"-dark");return e.className&&(c+=" ".concat(e.className)),n?nr.createElement("div",{className:c,onClick:function(){var n=!i;a(n),e.setFavourite(e.video.id,n,(function(){t.error(EE(n?"favouriteError":"unfavouriteError")),a(!n)}))}},nr.createElement(Gm,{svgName:i?Bm.Heart:Bm.HeartOutline,size:Ym.Small})):nr.createElement(nr.Fragment,null)}var OE=n(69),xE=n.n(OE);function kE(e){var t=e.video,n=t.season;if(!t.episodeNumber||!n)return nr.createElement(nr.Fragment,null);var r=od(n.number,2),o=od(t.episodeNumber,2);return nr.createElement("span",{className:"d-inline-block ".concat(xE.a.seasonEpisodeContainer)}," ",!!r&&"S".concat(r," • "),"E",o)}function CE(e){var t=e.appLink,n=e.video.series,r=e.className;if(!n||!n.id)return nr.createElement(nr.Fragment,null);var o=t&&Object.assign(Object.assign({},t),{args:[n.id,Ca(n.name)]});return o?nr.createElement(rd,{appLink:o,className:"text-uppercase ".concat(xE.a.appLink," ").concat(r)},n.name,nr.createElement(kE,Object.assign({},e))):nr.createElement("span",{className:"text-uppercase ".concat(xE.a.appLink," ").concat(r)},n.name,nr.createElement(kE,Object.assign({},e)))}function jE(e){var t="d-flex ".concat(Sw.a.badgeList);return e.className&&(t+=" ".concat(e.className)),nr.createElement("div",{className:t},e.children)}var AE,_E=n(22),LE=n.n(_E);function PE(e){var t,n=e.video,r=e.appLink,o=e.size,i=e.setFavourite,a=e.preload,c=e.hovering;return rr.a.createElement("div",{className:"position-relative rounded overflow-hidden"},!!gr(i)&&rr.a.createElement("div",{className:LE.a.favouriteContainer},rr.a.createElement(SE,{setFavourite:i,video:n,className:"rounded-circle p-1 ".concat(LE.a.favouriteButton)})),rr.a.createElement(pw,{data:n.thumbnail,appLink:r,aspectRatio:uw.SixteenByNine,size:o,preload:a,className:LE.a.gradient},c&&rr.a.createElement(Gm,{className:LE.a.playIcon,svgName:Bm.PlayCircle}),rr.a.createElement(vw,{type:dw.Video}),rr.a.createElement("div",{className:LE.a.overlayContainer},rr.a.createElement("div",{className:"".concat(LE.a.title," ").concat(c?LE.a.downScale:"")},!!(null===(t=e.video.series)||void 0===t?void 0:t.id)&&rr.a.createElement(CE,{className:"text-shadow clamp-1",video:n,appLink:null}),rr.a.createElement("span",{className:"h6 text-reset text-shadow clamp-1 mb-0"},n.name),c&&rr.a.createElement(jE,{className:"align-items-center mb-n1"},rr.a.createElement(Ow,{type:gw.Duration,data:n.duration}),rr.a.createElement(Ow,{type:gw.Rating,data:n.rating}),rr.a.createElement("span",{className:"badge p-0"},rr.a.createElement(Gm,{svgName:Bm.CloseCaptionBadge})))))))}!function(e){e[e.Below=1]="Below",e[e.Overlay=2]="Overlay",e[e.Independent=3]="Independent"}(AE||(AE={}));var NE,RE=n(49),TE=n.n(RE);function IE(e){var t=e.type,n=function(e){return e===NE.Video?TE.a.video:e===NE.Playlist?TE.a.playlist:""}(t),r=function(e){return e===NE.Video?Bm.PlayCircle:e===NE.Playlist?Bm.AddToPlaylists:""}(t);return nr.createElement("div",{className:TE.a.maskContainer},nr.createElement("div",{className:TE.a.mask}),nr.createElement(Gm,{svgName:r,className:n}))}!function(e){e[e.Video=0]="Video",e[e.Playlist=1]="Playlist"}(NE||(NE={}));var FE=n(23),DE=n.n(FE);function ME(e){var t,n=e.video,r=e.seriesAppLink,o=e.textPosition,i=e.appLink,a=o===AE.Overlay,c=a?DE.a.titleOverlay:DE.a.titleBelow;return rr.a.createElement("div",{className:c},!!(null===(t=e.video.series)||void 0===t?void 0:t.id)&&rr.a.createElement(CE,{className:a?"text-shadow clamp-1":"clamp-2",video:n,appLink:a?null:r}),a?rr.a.createElement("span",{className:"h6 text-reset text-shadow clamp-1 mb-0"},n.name):rr.a.createElement(rd,{className:"h6 text-reset clamp-2 mb-0",appLink:i},n.name))}function UE(e){var t=e.video,n=e.appLink,r=e.textPosition,o=e.size,i=e.setFavourite,a=e.preload,c="position-relative";return r===AE.Overlay&&(c+=" rounded overflow-hidden"),rr.a.createElement("div",{className:c},!!gr(i)&&rr.a.createElement("div",{className:DE.a.favouriteContainer},rr.a.createElement(SE,{setFavourite:i,video:t,className:"rounded-circle p-1 ".concat(DE.a.favouriteButton)})),rr.a.createElement(pw,{data:t.thumbnail,appLink:n,aspectRatio:uw.SixteenByNine,size:o,preload:a,className:r===AE.Overlay?DE.a.gradient:""},rr.a.createElement(IE,{type:NE.Video}),rr.a.createElement(vw,{type:dw.Video}),rr.a.createElement("div",{className:DE.a.overlayContainer},r===AE.Overlay&&rr.a.createElement(ME,Object.assign({},e)),rr.a.createElement(jE,{className:DE.a.badgeContainer},rr.a.createElement(Ow,{type:gw.Duration,data:t.duration})))),r===AE.Below&&rr.a.createElement(ME,Object.assign({},e)))}function VE(e){return"expandable"===e.type?nr.createElement(PE,Object.assign({},e)):nr.createElement(UE,Object.assign({},e))}var zE=n(66),HE=n.n(zE);function BE(e){var t=e.tag,n="".concat(HE.a.tagItem," px-2 my-1 mr-1 cursor-pointer badge-light");return nr.createElement("span",{className:n},t.name)}function qE(e){var t=e.tags;return t&&t.data?nr.createElement("div",{className:HE.a.tagList},t.data.map((function(e){return nr.createElement(BE,{key:e.id,tag:e})}))):nr.createElement(nr.Fragment,null)}var $E,YE=n(24),GE=n.n(YE),KE=function(e){return!!(e&&e.data&&e.data.length)};function WE(e){var t=e.video,n=e.presentationAudiences,r=e.videoAppLink,o=e.seriesAppLink;if(!t)return nr.createElement(nr.Fragment,null);var i=Zg(t.subjectPresentationAudiences.data,n),a=Qg(i),c=t.series&&!!t.series.id;return nr.createElement(pp.Provider,{value:"subjects.heroVideo"},nr.createElement($a.Row,{className:"pb-3"},nr.createElement($a.Col,{xs:6,className:"p-1"},nr.createElement(VE,{video:t,appLink:r,seriesAppLink:c?o:null,size:iw.Medium,textPosition:AE.Independent,type:"static"})),nr.createElement($a.Col,{xs:6,className:"p-1"},c&&nr.createElement(CE,{video:t,appLink:o,className:"text-reset"}),nr.createElement(rd,{appLink:r},nr.createElement("h4",null,t.name)),nr.createElement(jE,{className:"pb-1"},nr.createElement(Ow,{type:gw.Interactive,data:t.interactives}),nr.createElement(Ow,{type:gw.Rating,data:t.rating}),nr.createElement(Ow,{type:gw.ProductionYear,data:t.productionYear})),nr.createElement("p",{className:"mb-1"},t.description),nr.createElement(bw,{audience:a,border:"dark"}),e.showExtraMetadata&&nr.createElement($a.Row,{className:"pt-2"},nr.createElement($a.Col,{xs:2},KE(t.resources)&&nr.createElement("p",{className:"font-weight-bold"},nr.createElement(dp,{phrase:"resourcesHeading"})),KE(t.links)&&nr.createElement("p",{className:"font-weight-bold"},nr.createElement(dp,{phrase:"linksHeading"})),KE(t.clips)&&nr.createElement("p",{className:"font-weight-bold"},nr.createElement(dp,{phrase:"clipsHeading"})),KE(t.tags)&&nr.createElement("p",{className:"font-weight-bold"},nr.createElement(dp,{phrase:"tagsHeading"}))),nr.createElement($a.Col,{xs:10},KE(t.resources)&&nr.createElement("p",null,nr.createElement(dp,{phrase:"resources",options:{smartCount:t.resources.data.length}})),KE(t.links)&&nr.createElement("p",null,nr.createElement(dp,{phrase:"links",options:{smartCount:t.links.data.length}})),KE(t.clips)&&nr.createElement("p",null,nr.createElement(dp,{phrase:"clips",options:{smartCount:t.clips.data.length}})),KE(t.tags)&&nr.createElement(qE,{tags:t.tags}))))))}function JE(){return nr.createElement("div",{className:"row pb-3"},nr.createElement("div",{className:"col-6 p1"},nr.createElement("div",{className:"".concat(GE.a.partialHeroThumbnail," partial-loading-background")})),nr.createElement("div",{className:"col-6 p1"},nr.createElement("div",{className:"partial-loading-background mb-1 ".concat(GE.a.partialSeriesText)}),nr.createElement("div",{className:"partial-loading-background my-1 ".concat(GE.a.partialVideoTitleText)}),nr.createElement("div",{className:"d-flex"},nr.createElement("div",{className:"partial-loading-background my-1 mr-1 ".concat(GE.a.partialBadge)}),nr.createElement("div",{className:"partial-loading-background my-1 ml-1 ".concat(GE.a.partialBadge)})),nr.createElement("div",{className:"partial-loading-background my-1 ".concat(GE.a.partialDescription)}),nr.createElement("div",{className:"partial-loading-background mt-2 ".concat(GE.a.partialSubject)})))}!function(e){e.Percentage="%",e.Pixels="px"}($E||($E={}));var XE,ZE=n(17),QE=n.n(ZE);!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(XE||(XE={}));var eS=nr.memo((function(e){var t,n,r=e.direction===XE.Left,o=r?Bm.ChevronLeft:Bm.ChevronRight,i=(e.contents,t=r,n=QE.a.topPos,n+=t?" "+QE.a.left:" "+QE.a.right);return e.hide?nr.createElement(nr.Fragment,null):nr.createElement(nr.Fragment,null,nr.createElement("div",{role:"button",className:"".concat(i," ").concat(QE.a.button),onClick:e.onClick},nr.createElement(Gm,{svgName:o,size:Ym.Medium,className:"svg-container d-inline-block"})),e.useGradientBackdrop&&nr.createElement("div",{className:r?QE.a.gradientLeft:QE.a.gradientRight}),nr.createElement("div",{role:"button",onClick:e.onClick,className:r?QE.a.extendedClickableAreaLeft:QE.a.extendedClickableAreaRight}))}),(function(e,t){return e.hide===t.hide}));function tS(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 nS(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 nS(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 nS(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 rS={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 5.0/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 oS(e,t,n){var r=tS(t.exec(n)||[],3),o=(r[0],r[1],r[2]);return o||(o="Unknown"),{browser:e,version:o}}function iS(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 aS=function(){var e=window.navigator.userAgent;return rS.linux.test(e)?iS("Linux",null,e):rS.unix.test(e)?iS("Unix",null,e):rS.mac.test(e)?iS("Macintosh",rS.osxVersion,e):rS.windows.test(e)?function(e,t){var n={os:e};return rS.win2000.test(t)&&(n.version="2000"),rS.winXP.test(t)&&(n.version="XP"),rS.winVista.test(t)&&(n.version="Vista"),rS.win7.test(t)&&(n.version="7"),rS.win8.test(t)&&(n.version="8"),rS.win81.test(t)&&(n.version="8.1"),rS.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):rS.iphone.test(e)||rS.ipad.test(e)?iS("iOS",rS.iosVersion,e):rS.android.test(e)?iS("Android",rS.androidVersion,e):rS.blackberry.test(e)?iS("Android",rS.blackberryVersion,e):rS.windowsPhone.test(e)?iS("Android",rS.windowsPhoneVersion,e):{os:"Unknown",version:"Unknown"}},cS=function(){var e=window.navigator.userAgent;return rS.chrome.test(e)?oS("Chrome",rS.generalVersion,e):rS.firefox.test(e)?oS("Firefox",rS.generalVersion,e):rS.safari.test(e)?oS("Safari",rS.generalVersion,e):rS.ie.test(e)?oS("Internet Explorer",rS.ieVersion,e):rS.edge.test(e)?oS("Edge",rS.edgeVersion,e):rS.opera.test(e)?oS("Opera",rS.operaVersion,e):{browser:"Unknown",version:"Unknown"}},uS=function(){return!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)},sS=new Image;sS.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var lS=function(e){e.dataTransfer.setDragImage(sS,0,0)},fS=uS();var pS,dS=nr.forwardRef((function(e,t){var n,r,o,i,a=e.children,c=e.positionType,u=e.onDrag,s=e.onDragEnd,l=e.onTouchMove,f=e.onTouchEnd,p=e.percentageDragged,d=e.position,h=void 0===d?0:d;return nr.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100",style:(r=h,o=c,i=p,o===$E.Percentage&&i&&(r-=i),{transform:"translate3d(".concat(r).concat(o,", 0px, 0px)"),transition:"transform 500ms ease-in-out 100ms"}),ref:t},(n={},u&&s&&(n.draggable=!0,n.onDrag=u,n.onDragEnd=s,n.onDragStart=lS,n.onDragOver=function(e){return e.preventDefault()}),l&&f&&fS&&(n.onTouchMoveCapture=l,n.onTouchEndCapture=f),n)),a)}));function hS(){var e=Zm(Km.XS),t=Zm(Km.SM),n=Zm(Km.MD),r=Zm(Km.LG),o=Zm(Km.XL),i=Zm(Km.XXL),a=Km.LG;return e&&(a=Km.XS),t&&(a=Km.SM),n&&(a=Km.MD),r&&(a=Km.LG),o&&(a=Km.XL),i&&(a=Km.XXL),a}function yS(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 mS(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 mS(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 mS(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 vS(e){var t=e&&!(void 0===window.IntersectionObserver),n=yS(Nf.useInView({triggerOnce:!0}),2),r=n[0],o=n[1];return t||(o=!0),{ref:r,inView:o}}!function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag"}(pS||(pS={}));var bS=n(21),gS=n.n(bS);var wS=function(e){var t=e.colSize;return nr.createElement("div",{className:"col-".concat(t)},nr.createElement("div",{className:"".concat(gS.a.partialItem," mx-1 partial-loading-background")}))};function ES(e){for(var t,n=(t=hS())===Km.XS?{itemCount:1,colSize:12}:t===Km.SM?{itemCount:2,colSize:6}:t===Km.MD?{itemCount:3,colSize:4}:{itemCount:4,colSize:3},r=n.itemCount,o=n.colSize,i=[],a=0;a<r;a++)i.push(nr.createElement(wS,{key:a,colSize:o}));return nr.createElement("div",{className:"widget pb-3"},nr.createElement("div",{className:"".concat(gS.a.partialHeading," mx-1 mb-1 partial-loading-background")}),nr.createElement("div",{className:"".concat(gS.a.partialDescription," mx-1 my-1 partial-loading-background")}),nr.createElement("div",{className:"".concat(gS.a.slidingContainer," row")},i))}function SS(e){for(var t=e.offset,n=e.viewableItems,r=e.collection,o=t,i=[],a=0;a<o+n;a++)i.push(a);return function(e){var t=r.indexOf(e);return i.includes(t)}}function OS(e,t){if(e)return Object.assign(Object.assign({},e),{args:e.args||[t.id,Ca(t.name)]})}function xS(e){switch(e){case Bw.Playlists:return kS;case Bw.Videos:return CS;case Bw.Subjects:return jS;case Bw.UserChannels:return AS;case Bw.Series:default:return _S}}function kS(e,t,n){var r=5;return e===Km.XS?r=2:e===Km.SM?r=3:e===Km.MD&&(r=4),n<r&&(r=n),r}function CS(e,t,n){var r=4;return e===Km.XS?r=2:e===Km.SM?r=3:e===Km.MD?r=4:e!==Km.LG&&e!==Km.XL&&e!==Km.XXL||(r=t===Vw.LargeRow||n<4?3:4),n<r&&(r=n),r}function jS(e,t,n){var r=6;return e===Km.SM||e===Km.XS?r=3:e===Km.MD?r=4:e===Km.LG?r=5:e!==Km.XL&&e!==Km.XXL||(r=6),n<r&&(r=n),r}function AS(e,t,n){var r=6;return e===Km.SM||e===Km.XS?r=3:e===Km.MD?r=4:e===Km.LG?r=5:e!==Km.XL&&e!==Km.XXL||(r=6),n<r&&(r=n),r}function _S(e,t,n){var r=4;return e===Km.XS?r=2:e===Km.SM&&(r=3),n<r&&(r=n),r}function LS(e,t,n,r,o,i,a){return function(c){var u=c.touches.item(0).clientX;o||(t.current.style.transition="",r(t.current.getBoundingClientRect().width),i(u));var s=(o-u)/n*100;(s<0&&e.offset===e.viewableItems||s>0&&e.offset===e.collection.length)&&(s=0),a(s)}}function PS(e,t,n,r,o){return function(){if(e.current.style.transition="transform 500ms ease-in-out 100ms",t(null),Math.abs(n)>=7.5){var i=n>0?pS.Next:pS.Previous;o({type:i})}r(0)}}var NS={offset:0,viewableItems:4,position:0,collection:[],currentSize:Km.LG,type:Vw.Row};function RS(e,t){var n,r,o=t.type,i=t.payload,a=void 0===i?{}:i;switch(o){case pS.Next:return Object.assign(Object.assign({},e),function(e){var t=e.collection,n=e.viewableItems,r=e.offset,o=e.position,i=t.length-r;return i%n==0||i>n?{position:o-100,offset:r+n}:i<n?{position:o-i/n*100,offset:r+i}:{position:o,offset:r}}(e));case pS.Previous:return Object.assign(Object.assign({},e),function(e){var t=e.viewableItems,n=e.offset,r=e.position,o=n-t;return o%t==0||o>t?{position:r+100,offset:n-t}:o<t?{position:r+o/t*100,offset:n-o}:{position:r,offset:n}}(e));case pS.Resize:var c=xS(a.contents)(a.mediaQuery,a.type,null===(n=a.collection)||void 0===n?void 0:n.length);return Object.assign(Object.assign({},e),{currentSize:a.mediaQuery,position:0,offset:c,viewableItems:c,type:a.type});case pS.Init:var u=xS(a.contents)(a.mediaQuery,a.type,null===(r=a.collection)||void 0===r?void 0:r.length);return TS(Object.assign(Object.assign({},e),{collection:a.collection,currentSize:a.mediaQuery,offset:u,viewableItems:u,type:a.type}));default:return e}}function TS(e){return Object.assign(Object.assign({},NS),e)}function IS(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 FS(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 FS(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 FS(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 DS(e){var t,n,r=IS(nr.useState(null),2),o=r[0],i=r[1],a=IS(nr.useState(null),2),c=a[0],u=a[1],s=IS(nr.useState(0),2),l=s[0],f=s[1],p=IS(nr.useReducer(RS,NS,TS),2),d=p[0],h=p[1],y=nr.useRef(null),m=IS(Kg(),2),v=m[0],b=m[1],g=IS(nr.useState(!1),2),w=g[0],E=g[1],S=IS(nr.useState(!1),2),O=S[0],x=S[1],k=vS(e.lazyLoad),C=k.ref,j=k.inView,A=hS();nr.useEffect((function(){h({type:pS.Resize,payload:{mediaQuery:A,type:e.type,contents:e.contents,collection:d.collection}})}),[A]);var _=function(e,t,n,r,o){var i,a=e.fetch,c=e.setData,u=e.type,s=e.collection,l=e.prefetched,f=e.contents,p=s;return(!p||Vn.isEmpty(p)&&!l)&&(i=a(o),p=i.data),nr.useEffect((function(){p&&!Vn.isEmpty(p)&&t({type:pS.Init,payload:{collection:gr(c)?c(p):p,mediaQuery:r,type:u,contents:f}})}),[p]),i}(e,h,0,A,!e.lazyLoad||j);var L={type:d.type,size:d.currentSize,collectionSize:d.collection.length,contents:e.contents},P=function(e,t){var n=e.name,r=e.description,o={};return Array.isArray(t)?{name:n,description:r}:(e.name&&(o.name=n),e.description&&(o.description=r),Object.assign(Object.assign({},t),o))}(e,(null===(t=_)||void 0===t?void 0:t.data)||e.collection);if(null===(n=_)||void 0===n?void 0:n.hasError)return nr.createElement(nr.Fragment,null);if(!P||Vn.isEmpty(P)&&!e.prefetched)return nr.createElement("div",{ref:C},nr.createElement(ES,{type:e.type}));if(!d.collection.length)return nr.createElement(nr.Fragment,null);var N=e.childComponent;return nr.createElement("div",{className:"pb-3"},nr.createElement("div",{className:"mb-1"},nr.createElement(rd,{appLink:OS(e.appLink,P)},nr.createElement("h2",{className:"h4 mb-0 d-inline-block align-top pl-1 text-dark"},P.name,!!e.appLink&&nr.createElement(Gm,{svgName:Bm.ChevronRight,size:Ym.Small})),e.settingsAppLink&&nr.createElement(rd,{appLink:e.settingsAppLink},nr.createElement(Gm,{svgName:Bm.Cog,className:"d-inline-block svg-container cursor-pointer",title:Ir.getPhrase("shared.fixedWidget","preferencesTooltip"),tooltipPlacement:"right"}))),P.description&&nr.createElement("p",{className:"text-truncate pl-1 mb-0 description"},P.description)),nr.createElement("div",{ref:v,className:"position-relative"},!w&&nr.createElement("div",{className:gS.a.leftOverflowGradient}),nr.createElement(eS,{direction:XE.Left,onClick:function(){return h({type:pS.Previous})},hide:w||d.offset<=d.collection.length&&!(b&&d.offset!==d.viewableItems),contents:e.contents}),nr.createElement(dS,{position:d.position,positionType:$E.Percentage,onTouchMove:LS(d,y,c,u,o,i,f),onTouchEnd:PS(y,i,l,f,h),ref:y,percentageDragged:l},d.collection.map((function(t,n){return nr.createElement(N,{key:t.id,data:t,appLink:e.childAppLink,context:L,preloadImage:SS(d)(t),thumbnailSize:iw.Medium,onHover:function(e){window.setTimeout((function(){!function(e,t){(t+1)/d.viewableItems%1==0?x(e):t/d.viewableItems%1==0&&E(e)}(e,n)}),0)}})}))),nr.createElement(eS,{direction:XE.Right,onClick:function(){return h({type:pS.Next})},hide:O||(d.offset>d.viewableItems||d.offset===d.collection.length)&&!(b&&d.offset<d.collection.length),contents:e.contents}),!O&&nr.createElement("div",{className:gS.a.rightOverflowGradient})))}DS.defaultProps={type:Vw.Row};var MS=nr.memo(DS);function US(e){return function(e){if(Array.isArray(e))return VS(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 VS(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 VS(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 VS(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 zS(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 HS(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 HS(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 HS(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 BS=function(){var e=zS(nr.useState(qm(5)+3+"rem"),1)[0];return nr.createElement("div",{className:"border d-flex position-relative mr-2 ".concat(lE.a.widgetItem)},nr.createElement("div",{className:lE.a.imagePanel}),nr.createElement("div",{className:"px-2",style:{width:e}}," "),nr.createElement(vw,{type:dw.Subject}))},qS=function(e,t,n,r,o){return function(i){YS(i.clientX,e,t,n,r,o)}},$S=function(e,t,n,r,o){return function(i){YS(i.touches.item(0).clientX,e,t,n,r,o)}};function YS(e,t,n,r,o,i){var a=o;a||(i(a=Object.assign(Object.assign({},n),{initialMouseX:e})),t.current.style.transition=""),r({type:pS.Drag,payload:{widgetSnapshot:a,currentMouseX:e}})}var GS=function(e,t){return function(){e.current.style.transition="transform 500ms ease-in-out 100ms",t(null)}},KS=GS,WS={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:500,leftOffsetLimit:null};function JS(e,t){switch(t.type){case pS.Init:case pS.Resize:return Object.assign(Object.assign({},e),function(e){var t=e.container,n=void 0===t?{}:t,r=e.lastElement,o=void 0===r?{}:r;if(!n.current||!o.current)return WS;var i=e.container.current.getBoundingClientRect().left,a=e.container.current.getBoundingClientRect().right,c=i,u=e.lastElement.current.getBoundingClientRect().right,s=a-u;return Object.assign(Object.assign({},WS),{containerLeftPosition:i,containerRightPosition:a,firstElementPosition:c,lastElementPosition:u,hideRightButton:u<a,leftOffsetLimit:s})}(t.payload));case pS.Next:return Object.assign(Object.assign({},e),function(e){var t=e.firstElementPosition,n=e.lastElementPosition,r=e.maxSlideDistance,o=e.offset,i=e.containerRightPosition,a=n-i>=r?r:n-i;return{firstElementPosition:t-a,lastElementPosition:n-a,offset:o-a,hideRightButton:n-a===i,hideLeftButton:!1}}(e));case pS.Previous:return Object.assign(Object.assign({},e),function(e){var t=e.containerLeftPosition,n=e.firstElementPosition,r=e.lastElementPosition,o=e.maxSlideDistance,i=e.offset,a=n+o<=t,c=a?o:Math.abs(i);return{firstElementPosition:n+c,lastElementPosition:r+c,offset:i+c,hideLeftButton:!a||n+c===t,hideRightButton:!1}}(e));case pS.Drag:return Object.assign(Object.assign({},e),function(e,t){var n=t.widgetSnapshot,r=t.currentMouseX;if(n.hideLeftButton&&n.hideRightButton)return{};var o=n.initialMouseX-r,i=n.offset-o,a=n.firstElementPosition-o,c=n.lastElementPosition-o,u=!1,s=!1;return a>e.containerLeftPosition&&(i=0,a=e.containerLeftPosition,c=e.lastElementPosition,u=!0),c<=e.containerRightPosition&&(i=e.leftOffsetLimit,a=e.containerLeftPosition-Math.abs(e.leftOffsetLimit),c=n.containerRightPosition,s=!0),{offset:i,firstElementPosition:a,lastElementPosition:c,hideLeftButton:u,hideRightButton:s}}(e,t.payload));default:return e}}var XS=n(93),ZS=n.n(XS);function QS(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 eO(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 eO(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 eO(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 tO(e){var t,n=e.childComponent,r=e.endComponent,o=QS(nr.useReducer(JS,WS),2),i=o[0],a=o[1],c=QS(nr.useState(null),2),u=c[0],s=c[1],l={container:nr.useRef(null),firstElement:nr.useRef(null),lastElement:nr.useRef(null)};!function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=function(){e(),window.clearTimeout(n),n=window.setTimeout(t,100)};nr.useEffect((function(){return window.addEventListener("resize",t?o:e),function(){return window.removeEventListener("resize",t?o:e)}}),US(r))}(function(e,t){return function(){e.container.current&&(e.container.current.style.transition=""),t({type:pS.Resize,payload:e})}}(l,a),(t=l.container,function(){t.current&&(t.current.style.transition="transform 500ms ease-in-out 100ms")}));var f=vS(e.lazyLoad),p=f.ref,d=f.inView,h=e.collection;!e.collection&&gr(e.fetch)&&(h=e.fetch(d)),nr.useEffect((function(){h&&!Vn.isEmpty(h)&&a({type:pS.Init,payload:l})}),[h]);var y=nr.useMemo((function(){if(h){var t=h.map((function(t){var o;return t===zo(h)&&(o=l.firstElement),t!==Ho(h)||r||(o=l.lastElement),nr.createElement("div",{key:t.id,ref:o,className:ZS.a.itemSpacing},nr.createElement(n,{data:t,appLink:e.childAppLink}))}));return r&&t.push(nr.createElement("div",{key:"end-widget-component",ref:l.lastElement,className:ZS.a.itemSpacing},nr.createElement(r,null))),nr.createElement(nr.Fragment,null,t)}}),[h]);return h&&!h.length?nr.createElement(nr.Fragment,null):!h||Vn.isEmpty(h)?nr.createElement("div",{ref:p},nr.createElement(rO,null)):nr.createElement(nr.Fragment,null,e.headingPhraseKey&&nr.createElement("h4",{className:"d-inline-block mr-2 pl-1 mb-2"},nr.createElement(dp,{namespace:"shared.dynamicWidget",phrase:e.headingPhraseKey})),nr.createElement("div",{className:"position-relative px-1"},nr.createElement(eS,{direction:XE.Left,onClick:function(){return a({type:pS.Previous})},hide:i.hideLeftButton,useGradientBackdrop:!0}),nr.createElement("div",{className:"overflow-hidden"},nr.createElement(dS,{position:i.offset,positionType:$E.Pixels,onDrag:qS(l.container,i,a,u,s),onDragEnd:GS(l.container,s),onTouchMove:$S(l.container,i,a,u,s),onTouchEnd:KS(l.container,s),ref:l.container},y)),nr.createElement(eS,{direction:XE.Right,onClick:function(){return a({type:pS.Next})},hide:i.hideRightButton,useGradientBackdrop:!0})))}var nO=rg(),rO=function(){return nr.createElement("div",{className:"pb-3 d-flex flex-nowrap"},nO.map((function(e,t){return nr.createElement(BS,{key:t})})))},oO=n(70),iO=n.n(oO);function aO(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 cO(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 cO(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 cO(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 uO=nr.memo((function(e){var t=e.data,n=e.appLink,r=e.seriesAppLink,o=e.context,i=e.thumbnailSize,a=e.preloadImage,c=aO(Wg(iO.a.hovering),2),u=c[0],s=c[1];nr.useEffect((function(){e.onHover(s)}),[s]);var l=Object.assign(Object.assign({},n),{args:[t.id,Ca(t.name)]}),f=iO.a.rowWidth;return o.type!==Vw.LargeRow&&3!==o.collectionSize||(f=iO.a.largeRowWidth),nr.createElement("div",{ref:u,className:"p-1 flex-shrink-0 position-relative ".concat(f)},nr.createElement(VE,{video:t,type:"expandable",appLink:l,seriesAppLink:r,textPosition:AE.Overlay,size:i,preload:a,hovering:s}))}),(function(e,t){var n,r,o,i,a,c;return e.preloadImage===t.preloadImage&&(null===(n=e.data)||void 0===n?void 0:n.name)===(null===(r=t.data)||void 0===r?void 0:r.name)&&(null===(i=null===(o=e.data)||void 0===o?void 0:o.series)||void 0===i?void 0:i.id)===(null===(c=null===(a=t.data)||void 0===a?void 0:a.series)||void 0===c?void 0:c.id)}));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 lO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fO(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 pO(e,t){return(pO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dO(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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"!==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 yO(e){return(yO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mO=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&&pO(e,t)}(i,e);var t,n,r,o=dO(i);function i(){return lO(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"ErrorPageError"}}])&&fO(t.prototype,n),r&&fO(t,r),i}(r.SilentError);function vO(e){return(vO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bO(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 gO(e,t){return(gO=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=SO(e);if(t){var o=SO(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"!==vO(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 SO(e){return(SO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var OO=Ir.encloseNamespace("shared.notFound"),xO=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&&gO(e,t)}(i,e);var t,n,r,o=wO(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,OO("title"))}return t=i,(n=[{key:"name",get:function(){return"NotFoundError"}},{key:"heading",get:function(){return OO("heading")}},{key:"description",get:function(){return OO("description")}}])&&bO(t.prototype,n),r&&bO(t,r),i}(mO);function kO(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 CO(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 CO(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 CO(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 jO=Ir.encloseNamespace("subjects.classification");function AO(e,t){var n,r,o=!!(null===(r=null===(n=e.followers)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length);return[{label:jO(o?"unfollow":"follow"),onClick:t,svgName:Bm.Bell,className:"btn ".concat(o?"btn-dark":"btn-white"),button:!0,tooltip:o?void 0:jO("followBtnTooltip")},{label:jO("share"),appLink:{application:Cn,action:bn.SHARE,args:[e.id]},svgName:Bm.Share,className:"btn btn-white",button:!0}]}function _O(e){var t,n,i,a,c,u,s,l,f,p,d,h,y,m,v,b=e.id,g=e.queryParams,w=kO(nr.useReducer(Rg,{}),2),E=w[0],S=w[1],O=kO(nr.useState(),2),x=(O[0],O[1]),k=kO(nr.useState(!1),2),C=k[0],j=k[1],A=Object(ir.useDispatch)(),_=o.useBasicFetch(Qo),L=o.useBasicFetch(qv),P=o.useBasicFetch(Eg()),N=o.useBasicFetch(rb()),R=o.useBasicFetch((null===(t=_.data)||void 0===t?void 0:t.id)&&Og(b,null===(n=_.data)||void 0===n?void 0:n.id,(function(e){e.status!==xo.BadRequest&&e.status!==xo.NotFound||r.ErrorHelper.throw(new xO)}))),T=o.useBasicFetch(xg(b)),I=o.useBasicFetch(kg(b)),F=Vn.keys(E),D=Vn.values(E);F&&F.length||(F=[]);var M=null===(a=null===(i=P)||void 0===i?void 0:i.data)||void 0===a?void 0:a.id,U=Ag(b,M,F),V=jg(b,M,F),z=Cg(b,M,F),H=o.useGetResponse(U&&U.key),B=o.useGetResponse(V&&V.key),q=o.useGetResponse(z&&z.key),$=o.useGetFetch(U),Y=o.useGetFetch(V),G=o.useGetFetch(z),K=F.length?F.join(":"):M;function W(){var e,t;x(!0);var n=(null===(t=null===(e=R.data.followers)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)?Yw.unfollow:Yw.follow;o.fetch(A,n([R.data.id]))}nr.useEffect((function(){M&&($(),Y(),G())}),[K]),nr.useEffect((function(){C||(R.data?j(!!R.data.series.count||!!R.data.playlists.count||!!R.data.videos.count):j(!1))}),[R.data]),nr.useEffect((function(){x(!1)}),[null===(s=null===(u=null===(c=R.data)||void 0===c?void 0:c.followers)||void 0===u?void 0:u.data)||void 0===s?void 0:s.length]);var J=Nw();Ng({appLink:J(R.data),paramBuilder:function(){return{a:D.map((function(e){return e.name}))}},isValid:function(){var e;return!!(null===(e=R.data)||void 0===e?void 0:e.id)},appLinkOptions:{replace:!0}},[D.length]);var X=!(!N.data||!N.data.length);Mg(g,N.data,S,[X]);var Z=!!R.data&&!!L.data,Q=!!R.data&&!!T.data,ee=!!I.data,te=!!N.data,ne=!!R.data&&!!B.data,re=!!R.data&&!!q.data,oe=!!R.data&&!!H.data&&!!N.data,ie=function(e,t,n,r){if(!(e&&t&&n&&r))return{heroVideo:null,videoList:n&&n.data};if(!e.data.length&&!t.data.length&&1===n.data.length)return{heroVideo:zo(n.data),videoList:[]};var o=n.data.findIndex((function(e){return e.id===r.pinnedVideoMasterId}));return-1===o?{heroVideo:null,videoList:n.data}:{heroVideo:n.data[o],videoList:n.data.filter((function(e){return e.id!==r.pinnedVideoMasterId}))}}(H.data,B.data,q.data,R.data),ae=ie.heroVideo,ce=ie.videoList;return nr.createElement("div",{className:"bg-white"},Z?nr.createElement(Zb,{heading:R.data.name,banner:R.data.banner,imageCdnUrl:L.data.imageCdnUrl,actions:(null===(l=R.data)||void 0===l?void 0:l.comingSoon)?[]:AO(R.data,W)}):nr.createElement(Qb,null),nr.createElement("div",{className:"px-3"},nr.createElement("div",{className:"py-3 mb-3 ".concat((null===(f=R.data)||void 0===f?void 0:f.comingSoon)?"":"border-bottom")},Q?nr.createElement(fg,{currentItem:R.data,type:ng.Static,getItemAppLink:J,data:T.data,rootItem:{label:jO("dashboard"),appLink:Iw()}}):nr.createElement(hg,null),te&&ne&&oe&&re?nr.createElement(Hg,{audiences:N.data,activeAudiences:E,setAudience:S,disabled:!C}):nr.createElement(qg,null))),L.data&&(null===(p=R.data)||void 0===p?void 0:p.comingSoon)?nr.createElement(uE,{data:R.data,imageCdnUrl:L.data.imageCdnUrl,onToggleFollow:W}):nr.createElement("div",{className:"px-3"},ee&&ne&&oe&&re?function(e){if(e.data.length)return!0;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.some((function(e){return!!e.data.length}))}(B.data,H.data,q.data)||ae?nr.createElement("div",{className:"pb-3"},nr.createElement(tO,{collection:I.data,childAppLink:J(),childComponent:dE,headingPhraseKey:"topics"})):nr.createElement("div",{className:"mx-n2"},nr.createElement(vE,{classifications:I.data,getItemAppLink:J})):nr.createElement(rO,null),oe&&ne&&re&&te?nr.createElement(WE,{video:ae,presentationAudiences:N.data,videoAppLink:{application:Cn,action:bn.VIDEO,args:[null===(d=ae)||void 0===d?void 0:d.id]},seriesAppLink:{application:Cn,action:bn.SERIES,args:[null===(y=null===(h=ae)||void 0===h?void 0:h.series)||void 0===y?void 0:y.id]}}):nr.createElement(JE,null),nr.createElement("div",null,ne&&te?!!(null===(v=null===(m=B.data)||void 0===m?void 0:m.data)||void 0===v?void 0:v.length)&&nr.createElement("div",{className:"pb-2"},nr.createElement("h4",null,jO("playlists")),nr.createElement(Qw,{playlists:ew(B.data.data),getPlaylistAppLink:Tw(R.data),presentationAudiences:N.data,itemClassName:"columns-of-five"})):nr.createElement("div",{className:"pb-3"},nr.createElement(Xw,{showHeading:!0,itemClassName:"columns-of-five"})),oe?nr.createElement(MS,{name:jO("series"),type:Vw.Row,contents:Bw.Series,collection:H.data,setData:function(e){return e.data},appLink:Rw(R.data),childComponent:function(e){return nr.createElement(Aw,Object.assign({audiences:N.data},e))},childAppLink:{application:Cn,action:bn.SERIES},prefetched:!0}):nr.createElement(Pw,null),re?nr.createElement(MS,{name:jO("popular"),type:Vw.Row,contents:Bw.Videos,collection:ce,childComponent:uO,childAppLink:{application:Cn,action:bn.VIDEO},prefetched:!0}):nr.createElement(ES,{type:Vw.Row}))))}var LO=n(237),PO=n.n(LO);function NO(e){return nr.createElement("nav",{className:"d-flex justify-content-center pt-3"},e.steps.map((function(e,t){return nr.createElement(rd,{key:t,appLink:e.active?null:e.appLink,className:(n=e.active,r="rounded-circle mx-2 cursor-pointer "+PO.a.progressItem,o=n?"bg-info":"bg-light","".concat(r," ").concat(o))});var n,r,o})))}var RO=n(238),TO=n.n(RO);function IO(e,t){var n={application:t,action:bn.PREFERENCES};return[{active:"levels"===e,appLink:Object.assign(Object.assign({},n),{params:{step:"levels"}})},{active:"subjects"===e,appLink:Object.assign(Object.assign({},n),{params:{step:"subjects"}})},{active:"summary"===e,appLink:Object.assign(Object.assign({},n),{params:{step:"summary"}})}]}function FO(e){var t=e.step,n=void 0===t?"levels":t,r=e.application,o=function(e,t){switch(e){case"levels":return nr.createElement(Lx,{application:t});case"subjects":return nr.createElement(Sx,{application:t});case"summary":return nr.createElement(Tx,{application:t,onboarding:!0});default:return null}}(n,r);return nr.createElement("div",{className:"p-3 position-relative ".concat(TO.a.preferencesContainer)},nr.createElement(NO,{steps:IO(n,r)}),o)}var DO=Nn.CLASSIFICATION,MO=function(){return"/api/domain/v1/subjects/preferences?query=".concat(DO)},UO=function(){return"/api/domain/v1/subjects/classifications/following?query=".concat(DO)},VO=function(){return"/api/domain/v1/subjects/classifications/following"},zO=function(e){return Np.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},HO=function(){return"/api/domain/v1/subjects/audiences"},BO=function(){return"/api/domain/v1/subjects/audiences/following"},qO=function(){return"/api/domain/v1/subjects/audiences/following"},$O=function(e){return Np.urlBuilder("/api/domain/v1/subjects/audiences/following",{id:e})},YO=function(){return{url:MO(),key:"subject:preference:options"}},GO=function(){return{url:UO(),key:"my:subject:preferences",normalize:!1}},KO=function(e,t,n){return{url:VO(),key:"follow:subjects",data:e,type:zr.POST,success:t,always:n,invalidationKeys:["my:subject:preferences"]}},WO=function(e,t,n){return{url:zO(e),key:"unfollow:subjects",type:zr.DELETE,success:t,always:n,invalidationKeys:["my:subject:preferences"]}},JO=function(){return{url:HO(),key:"level:preference:options",normalize:!1}},XO=function(){return{url:BO(),key:"my:level:preferences",normalize:!1}},ZO=function(e,t,n){return{url:qO(),key:"follow:levels",data:e,type:zr.POST,success:t,always:n,invalidationKeys:["my:level:preferences"]}},QO=function(e,t,n){return{url:$O(e),key:"unfollow:levels",type:zr.DELETE,success:t,always:n,invalidationKeys:["my:level:preferences"]}},ex=Object(nr.createContext)(void 0),tx=n(239),nx=n.n(tx);function rx(e){var t=hS(),n=t===Km.SM||t===Km.XS?"w-100":"w-75",r="justify-content-between";return"right"===e.align?r="justify-content-end":"center"===e.align&&(r="justify-content-center"),nr.createElement("div",{className:"".concat(n," ").concat(r," ").concat(nx.a.preferenceFooter," d-flex px-3")},e.children)}var ox=n(10),ix=n.n(ox),ax=function(e){return e.selectedChildrenCount?nr.createElement("div",{className:"".concat(ix.a.itemStatus," ").concat(ix.a.green)},e.selectedChildrenCount):nr.createElement(nr.Fragment,null)},cx=function(e){return nr.createElement("div",{className:"".concat(ix.a.itemStatus," ").concat(e.selected?ix.a.green:ix.a.unchecked)},e.selected?nr.createElement(Gm,{svgName:Bm.Check}):nr.createElement(Gm,{svgName:Bm.Plus}))};function ux(e){var t,n,r,o,i=nr.useContext(ex);var a,c=e.subject.cover?Fp.createUrl(e.subject.cover.url,{size:kp.Small}):"",u=e.subject.isExpandableOption?e.subject.children.map((function(e){return e.id})):[],s=null===(n=null===(t=i)||void 0===t?void 0:t.selectedSubjects)||void 0===n?void 0:n.filter((function(e){return u.includes(e)})).length,l=!e.disabled&&e.onClick?e.onClick:function(){},f=(null===(o=null===(r=i)||void 0===r?void 0:r.expandedSubject)||void 0===o?void 0:o.id)===e.subject.id,p="".concat(ix.a.expandCaret," ").concat(f?ix.a.up:ix.a.down);return nr.createElement("li",{className:(a=ix.a.subjectPreferenceItem,e.extraClasses&&(a+=" "+e.extraClasses),e.disabled&&(a+=" "+ix.a.disabled),e.selected&&(a+=" "+ix.a.selected),a),onClick:l,"aria-checked":e.selected,"aria-haspopup":e.subject.isExpandableOption,role:e.subject.isExpandableOption?"button":"checkbox",style:{backgroundImage:"url(".concat(c,")")},tabIndex:0,title:e.subject.name},nr.createElement("div",{className:"".concat(ix.a.textBox," p-2")},nr.createElement("p",{className:"m-0 text-truncate"},e.subject.name,nr.createElement("span",{className:e.subject.isExpandableOption?p:""})),e.subject.isExpandableOption?nr.createElement(ax,{selectedChildrenCount:s}):nr.createElement(cx,{selected:e.selected})))}var sx=n(47),lx=n.n(sx),fx=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};function px(e,t){return!(!t||e.id===t.id)&&!t.children.find((function(t){return t.id===e.id}))}function dx(e){var t=nr.useContext(ex);return nr.createElement(nr.Fragment,null,e.subjects.map((function(n){var r=n.isExpandableOption?e.onExpand:e.onSelect;return nr.createElement(ux,{key:n.id,subject:n,selected:t.selectedSubjects.includes(n.id),disabled:px(n,t.expandedSubject),onClick:function(e){return r(n)}})})))}function hx(e){var t=e.subjects,n=fx(e,["subjects"]),r=nr.useContext(ex).expandedSubject,o=function(){switch(hS()){case Km.LG:default:return 5;case Km.MD:return 4;case Km.SM:return 3;case Km.XS:return 2}}(),i=t.reduce((function(e,t,n){return n%o==0?e.push([t]):Ho(e).push(t),e}),[]);return nr.createElement("ul",{className:lx.a.grid},i.map((function(e,t){var o=r&&!!e.find((function(e){return r.id===e.id&&e.isExpandableOption}));return nr.createElement(nr.Fragment,{key:t},nr.createElement(dx,Object.assign({subjects:e},n)),o&&nr.createElement("li",{className:"".concat(lx.a.subgrid," m-0")},nr.createElement(hx,Object.assign({subjects:r.children},n))))})))}var yx=n(94),mx=n.n(yx);function vx(e){var t="grid"===e.style?lx.a.grid:mx.a.partialSubjectList;return nr.createElement("ul",{className:t},Array(e.count).fill(nr.createElement("li",{className:"".concat(mx.a.partialSubject," partial-loading-background")})))}function bx(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)||wx(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 gx(e){return function(e){if(Array.isArray(e))return Ex(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||wx(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 wx(e,t){if(e){if("string"==typeof e)return Ex(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)?Ex(e,t):void 0}}function Ex(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 Sx(e){var t=e.application,n=bx(nr.useState([]),2),i=n[0],a=n[1],c=bx(nr.useState(null),2),u=c[0],s=c[1],l=bx(nr.useState(!1),2),f=l[0],p=l[1],d=Object(ir.useDispatch)(),h=o.useBasicFetch(YO()),y=o.useBasicFetch(GO());function m(){return!!y.data&&y.data.map((function(e){return e.id})).sort().toString()!==i.sort().toString()}function v(){p(!1),r.AppLinkHelper.trigger({application:t,action:bn.PREFERENCES,params:{step:"summary"}})}nr.useEffect((function(){y.data&&a(Ko([].concat(gx(i),gx(y.data.map((function(e){return e.id}))))))}),[y.data]);var b=function(e){var t;if(!(null===(t=e)||void 0===t?void 0:t.length))return[];var n=[];return e.forEach((function(e){if(e.children&&e.children.length){var t=Object.assign(Object.assign({},e),{name:Ir.getPhrase("subjects.subjectPreferencesView","allOfParent",{parent:e.name}),isBulkOption:!0});n.push(Object.assign(Object.assign({},e),{isExpandableOption:!0,children:[t].concat(gx(e.children))}))}else n.push(Object.assign({},e))})),n}(h.data);return nr.createElement(pp.Provider,{value:"subjects.subjectPreferencesView"},nr.createElement(ex.Provider,{value:{selectedSubjects:i,expandedSubject:u}},nr.createElement("form",{className:"p-3 pb-5"},nr.createElement("div",{className:"text-center mb-4"},nr.createElement("h1",{className:"mb-3"},nr.createElement(dp,{phrase:"heading",options:{highlightClass:"text-primary"}})),nr.createElement("p",{className:"m-0 h6"},nr.createElement(dp,{phrase:"infoRow1"})),nr.createElement("p",{className:"h6"},nr.createElement(dp,{phrase:"infoRow2"}))),h.data&&y.data?nr.createElement(hx,{subjects:b,onSelect:function(e){var t=[];if(e.isBulkOption){var n=e.children.map((function(e){return e.id}));t=i.includes(e.id)?i.filter((function(t){return t!==e.id&&!n.includes(t)})):Ko([].concat(gx(i),[e.id],gx(n)))}else t=Go(i,e.id);a(t)},onExpand:function(e){s(u&&u.id===e.id?null:e)}}):nr.createElement(vx,{style:"grid",count:7}),nr.createElement(rx,null,nr.createElement("div",null,nr.createElement(rd,{appLink:{application:Cn,action:bn.PREFERENCES,params:{step:"levels"}},className:"btn btn-light"},nr.createElement(dp,{phrase:"back"}))),nr.createElement("div",{className:"d-flex justify-content-right"},nr.createElement("div",{role:"button",onClick:function(){var e=[];h.data.forEach((function(t){t.children&&t.children.length&&t.children.forEach((function(t){return e.push(t.id)})),e.push(t.id)})),a(e),s(null)},className:"text-dark font-weight-bold cursor-pointer d-flex align-items-center mr-3"},nr.createElement(dp,{phrase:"allSubjects"})),nr.createElement($a.Button,{variant:"dark",disabled:f,onClick:function(){var e,n;if(m()){p(!0);var a=i.filter((function(e){return!y.data.find((function(t){return t.id===e}))})),c=null===(e=y.data)||void 0===e?void 0:e.filter((function(e){return!i.includes(e.id)}));(null===(n=a)||void 0===n?void 0:n.length)&&o.fetch(d,KO(a,(function(){}),v)),c.length&&o.fetch(d,WO(c.map((function(e){return e.id})),(function(){}),v))}else r.AppLinkHelper.trigger({application:t,action:bn.PREFERENCES,params:{step:"summary"}})}},f?nr.createElement($a.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):nr.createElement(dp,{phrase:m()?"followSubjects":"next",options:{smartCount:i.length}})))))))}function Ox(e){var t=e.width,n=void 0===t?90:t,r=e.height,o=void 0===r?35:r,i=e.count,a=void 0===i?5:i,c=e.align,u="center"===(void 0===c?"left":c)?"justify-content-center":"justify-content-start";return nr.createElement("ul",{className:"d-flex flex-wrap pl-0 m-0 ".concat(u)},Array(a).fill(nr.createElement("li",{className:"partial-loading-background mx-1 mb-1 badge-pill list-unstyled",style:{height:"".concat(o,"px"),width:"".concat(n,"px")}})))}var xx=n(240),kx=n.n(xx);function Cx(e){return function(e){if(Array.isArray(e))return _x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ax(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 jx(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)||Ax(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 Ax(e,t){if(e){if("string"==typeof e)return _x(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)?_x(e,t):void 0}}function _x(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 Lx(e){var t=e.application,n=jx(nr.useState([]),2),i=n[0],a=n[1],c=jx(nr.useState(!1),2),u=c[0],s=c[1],l=Object(ir.useDispatch)(),f=o.useBasicFetch(JO()),p=o.useBasicFetch(XO());function d(e){var t=Go(i,e.masterId);a(t)}function h(){s(!1),r.AppLinkHelper.trigger({application:Cn,action:bn.PREFERENCES,params:{step:"subjects"}})}return nr.useEffect((function(){if(p.data){var e=p.data.map((function(e){return e.masterId}));a(Ko([].concat(Cx(i),Cx(e))))}}),[p.data]),nr.createElement(pp.Provider,{value:"subjects.levelPreferences"},nr.createElement("form",{className:"p-3"},nr.createElement("div",{className:"text-center mb-4"},nr.createElement("h1",{className:"mb-3"},nr.createElement(dp,{phrase:"heading",options:{highlightClass:"text-primary"}}))),f.data?nr.createElement("ul",{className:"d-flex flex-wrap justify-content-center mx-auto mb-0 pl-0 pt-3 pb-5 ".concat(kx.a.levelList)},f.data.map((function(e){return nr.createElement(zg,{key:e.masterId,audience:e,highlight:i.includes(e.masterId),setAudience:d,extraClasses:"h4 py-1 px-3 mx-1 mb-1"})}))):nr.createElement("div",{className:"w-33 mx-auto pb-5 pt-3"},nr.createElement(Ox,{align:"center"})),nr.createElement(rx,{align:"right"},nr.createElement("div",{className:"d-flex justify-content-right"},nr.createElement("div",{role:"button",onClick:function(){a(f.data.map((function(e){return e.masterId})))},className:"text-dark font-weight-bold cursor-pointer d-flex align-items-center mr-3"},nr.createElement(dp,{phrase:"allLevels"})),nr.createElement($a.Button,{variant:"dark",disabled:u,onClick:function(){var e,n;if(p.data&&p.data.map((function(e){return e.masterId})).sort().toString()!==i.sort().toString()){s(!0);var a=i.filter((function(e){return!p.data.find((function(t){return t.masterId===e}))})),c=null===(e=p.data)||void 0===e?void 0:e.filter((function(e){return!i.includes(e.masterId)}));(null===(n=a)||void 0===n?void 0:n.length)&&o.fetch(l,ZO(a,(function(){}),h)),c.length&&o.fetch(l,QO(c.map((function(e){return e.masterId})),(function(){}),h))}else r.AppLinkHelper.trigger({application:t,action:bn.PREFERENCES,params:{step:"subjects"}})}},u?nr.createElement($a.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):nr.createElement(dp,{phrase:"next"}))))))}var Px=n(241),Nx=n.n(Px);function Rx(){r.AppLinkHelper.trigger({application:_n,action:En.HOME})}function Tx(e){var t=o.useBasicFetch(XO()),n=o.useBasicFetch(GO());return nr.createElement(pp.Provider,{value:"subjects.preferencesSummary"},nr.createElement("div",{className:"p-3 pb-5 mx-auto ".concat(Nx.a.container)},nr.createElement("div",{className:"text-center"},nr.createElement("h1",{className:"mb-3"},nr.createElement(dp,{phrase:"heading",options:{highlightClass:"text-primary"}})),nr.createElement("p",{className:"w-25 mx-auto h6"},nr.createElement(dp,{phrase:"info"}))),nr.createElement("div",{className:"pb-3"},nr.createElement("div",{className:"pb-1 d-flex align-items-center"},nr.createElement("h2",{className:"h3 mb-0 pr-1"},nr.createElement(dp,{phrase:"levels"})),nr.createElement(rd,{appLink:{application:e.application,action:bn.PREFERENCES,params:{step:"levels"}}},nr.createElement(Gm,{svgName:Bm.Edit}))),t.data?t.data.length?nr.createElement("ul",{className:"m-0 p-0"},t.data.map((function(e){return nr.createElement(zg,{key:e.masterId,audience:e,extraClasses:"h4 py-1 px-3 mx-1 cursor-default",highlight:!0})}))):nr.createElement("p",null,nr.createElement(dp,{phrase:"noLevelPreferences"})):nr.createElement(Ox,{count:2})),nr.createElement("div",{className:"pb-3"},nr.createElement("div",{className:"pb-1 d-flex align-items-center"},nr.createElement("h2",{className:"h3 mb-0 pr-1"},nr.createElement(dp,{phrase:"subjects"})),nr.createElement(rd,{appLink:{application:e.application,action:bn.PREFERENCES,params:{step:"subjects"}}},nr.createElement(Gm,{svgName:Bm.Edit}))),n.data?n.data.length?nr.createElement("ul",{className:"m-0 p-0 d-flex flex-wrap"},n.data.map((function(e){return nr.createElement(ux,{key:e.id,subject:e,extraClasses:"m-1 cursor-default",selected:!0})}))):nr.createElement("p",null,nr.createElement(dp,{phrase:"noSubjectPreferences"})):nr.createElement(vx,{style:"list",count:5})),e.onboarding&&nr.createElement(rx,{align:"center"},nr.createElement($a.Button,{variant:"dark",onClick:Rx,className:"px-4"},nr.createElement(dp,{phrase:"getStarted"})))))}function Ix(e){return(Ix="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dx(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 Mx(e,t,n){return t&&Dx(e.prototype,t),n&&Dx(e,n),e}function Ux(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&&Vx(e,t)}function Vx(e,t){return(Vx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zx(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bx(e);if(t){var o=Bx(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hx(this,n)}}function Hx(e,t){return!t||"object"!==Ix(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 Bx(e){return(Bx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qx=function(e){Ux(n,e);var t=zx(n);function n(){return Fx(this,n),t.apply(this,arguments)}return Mx(n,[{key:"channelName",get:function(){return Cn}},{key:"appRoutes",get:function(){return{"subjects/preferences":"preferences","subjects/:id(/:slug)/series":"classificationSeries","subjects/:id(/:slug)":"classification"}}},{key:"externalRoutes",get:function(){return{"videos/:id":"video","series/:id(/)":"series","playlists/:id(/)":"playlist","subjects/:id(/:slug)/playlists(/)":"classificationPlaylists","subjects/:id/playlists/:id(/:slug)(/)":"classificationPlaylist","subjects/:id/playlists/:id(/:slug)/play(/)":"playClassificationPlaylist","subjects/:id/playlists/:id/videos/:id(/:slug)":"playClassificationPlaylistVideo"}}}]),n}(r.AppRouter),$x=function(e){Ux(n,e);var t=zx(n);function n(){return Fx(this,n),t.apply(this,arguments)}return Mx(n,[{key:"classification",value:function(e,t,n){this.layout.showChildView(yr,rr.a.createElement(_O,{key:e,id:e,queryParams:n}))}},{key:"classificationSeries",value:function(e,t,n){this.layout.showChildView(yr,rr.a.createElement(Hw,{id:e,queryParams:n}))}},{key:"classificationPlaylists",value:function(e,t){this.classification(e,t)}},{key:"preferences",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.step||(e.step="subjects"),this.layout.showChildView(yr,rr.a.createElement(FO,{step:e.step,application:this.channelName}))}},{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return Cn}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:qr,hideLeftNav:!0}}}}],[{key:"router",get:function(){return qx}}]),n}(Vb);function Yx(e){var t,n=o.useBasicFetch(Kd(e.subjectId));return nr.createElement(tb,{playlistId:e.playlistId,application:Cn,getVideoAppLink:e.getVideoAppLink,getSeriesAppLink:function(e){return{application:Cn,action:vn.SERIES,args:[e.id]}},getPlayAllAppLink:(t=e.subjectId,function(e){return{application:jn,action:gn.PLAY_CLASSIFICATION_PLAYLIST,args:e?[t,e.id,Ca(e.name)]:[]}}),returnAppLink:!!n.data&&{label:n.data.name,appLink:{application:jn,action:gn.CLASSIFICATION,args:[e.subjectId,Ca(n.data.name)]}}})}function Gx(e){return(Gx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wx(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 Jx(e,t,n){return t&&Wx(e.prototype,t),n&&Wx(e,n),e}function Xx(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&&Zx(e,t)}function Zx(e,t){return(Zx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qx(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tk(e);if(t){var o=tk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ek(this,n)}}function ek(e,t){return!t||"object"!==Gx(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 tk(e){return(tk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nk=function(e){Xx(n,e);var t=Qx(n);function n(){return Kx(this,n),t.apply(this,arguments)}return Jx(n,[{key:"channelName",get:function(){return jn}},{key:"appRoutes",get:function(){return{"subjects/:id/playlists/:id(/:slug)(/)":"classificationPlaylist","subjects/:id/playlists/:id(/:slug)/play(/)":"playClassificationPlaylist","subjects/:id/playlists/:id/videos/:id(/:slug)":"playClassificationPlaylistVideo"}}},{key:"externalRoutes",get:function(){return{"subjects/:id(/:slug)":"classification"}}}]),n}(r.AppRouter),rk=function(e){Xx(n,e);var t=Qx(n);function n(){return Kx(this,n),t.apply(this,arguments)}return Jx(n,[{key:"classificationPlaylist",value:function(e,t,n){var r=this;this.layout.showChildView(yr,rr.a.createElement(Yx,{subjectId:e,playlistId:t,getVideoAppLink:function(n){return r.getVideoAppLink(e,t,n.id,Ca(n.name))}})),this.layout.hideLeftNav()}},{key:"playClassificationPlaylist",value:function(e,t,n){this.playClassificationPlaylistVideo(e,t)}},{key:"playClassificationPlaylistVideo",value:function(e,t,n,r){var o=this,i={playlistId:t,videoId:n,getPlaylistAppLink:function(e){return o.getPlaylistAppLink(e.id,e.name)},getVideoAppLink:function(n){return o.getVideoAppLink(e,t,n)}};this.layout.showChildView(yr,rr.a.createElement(Zd,Object.assign({},i))),this.layout.hideLeftNav()}},{key:"getPlaylistAppLink",value:function(e,t){var n=[e.toString()];return t&&n.push(Ca(t)),{application:kn,action:vn.PLAYLIST,args:n}}},{key:"getVideoAppLink",value:function(e,t,n,r){return{application:jn,action:gn.PLAY_CLASSIFICATION_PLAYLIST_VIDEO,args:[e.toString(),t.toString(),n.toString(),r]}}},{key:"name",get:function(){return"Subject Playlists Application"}},{key:"channelName",get:function(){return jn}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:qr,hideLeftNav:!0}}}}],[{key:"router",get:function(){return nk}}]),n}(Vb),ok=function(e){var t=e.children;return nr.createElement(qr,null,t)};var ik=function(e,t){return{url:"/api/domain/v1/subjects/content-updates?from=".concat(e,"&to=").concat(t)+"&query=".concat(Nn.VIDEO_COLLECTION),key:"content:updates",normalize:!1}},ak=function(e){var t=[];return e.forEach((function(e){return t.push("id=".concat(e))})),{url:"".concat("/api/domain/v1/subjects","?").concat(t.join("&"),"&query=banner"),key:"classifications:".concat(e.join(","))}},ck=function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),key:"classification:".concat(e)}};function uk(e){return nr.createElement("div",{className:"breadcrumbs-container border-bottom"},nr.createElement("ul",{className:"breadcrumbs"},nr.createElement("li",null,nr.createElement(rd,{appLink:e.dashboardAppLink},nr.createElement(dp,{namespace:"playlists.onlineWhatsNewBreadcrumbs",phrase:"dashboard"}))),nr.createElement("li",null,nr.createElement(dp,{namespace:"playlists.onlineWhatsNewBreadcrumbs",phrase:"whatsNew"}))),nr.createElement("a",{href:"/latest-releases",className:"switch-back"},nr.createElement(dp,{namespace:"playlists.onlineWhatsNewBreadcrumbs",phrase:"switchBack"})))}function sk(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 lk(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 lk(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 lk(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 fk(e){var t=e.classification,n=e.backgroundUrl,r=e.followed,o=sk(nr.useState(r),2),i=o[0],a=o[1];return nr.createElement("div",{className:"classification-banner",style:{backgroundImage:"url('".concat(n,"')")}},nr.createElement(rd,{appLink:e.getClassificationAppLink(t)},nr.createElement("h2",null,t.name)),nr.createElement("button",{className:"btn grey",onClick:function(){a(!i),e.follow(t.id,!i)}},nr.createElement(Uf,{svgName:i?Da.BellFilled:Da.Bell}),nr.createElement(dp,{namespace:"playlists.onlineClassificationBanner",phrase:i?"following":"follow"})))}function pk(e){var t=e.classification;return nr.createElement("div",{className:"breadcrumbs-container border-bottom"},nr.createElement("ul",{className:"breadcrumbs"},nr.createElement("li",null,nr.createElement(rd,{appLink:e.dashboardAppLink},nr.createElement(dp,{namespace:"playlists.onlineClassificationUpdateBreadcrumbs",phrase:"dashboard"}))),nr.createElement("li",null,nr.createElement(rd,{appLink:e.contentUpdatesAppLink},nr.createElement(dp,{namespace:"playlists.onlineClassificationUpdateBreadcrumbs",phrase:"whatsNew"}))),nr.createElement("li",null,nr.createElement("span",null,t.name))))}function dk(e){var t=e.classification,n=e.videos,r=e.imageCdnUrl,o=e.showMore,i=e.followed,a=Fp.createBannerUrl(t.banner,{fallbackBaseUrl:r,fallbackCategoryName:t.name,type:Cp.Banners});return nr.createElement("div",{className:"mb-3"},nr.createElement(fk,{classification:t,backgroundUrl:a,getClassificationAppLink:e.appLinks.getClassificationAppLink,followed:i,follow:e.follow}),nr.createElement(Pd,{playlistId:"0",isUserSignedIn:!0,onSortComplete:function(){},videos:n,getVideoAppLink:e.appLinks.getVideoAppLink,getSeriesAppLink:e.appLinks.getSeriesAppLink}),o&&nr.createElement("div",{className:"show-more"},nr.createElement(rd,{className:"info-link",appLink:e.appLinks.getClassificationUpdateAppLink(t)},nr.createElement(dp,{namespace:"contentUpdates.contentUpdatesView",phrase:"showMore",options:{classificationName:t.name}}))))}var hk=n(50),yk=n.n(hk);function mk(){return rr.a.createElement("div",{className:"bg-white padding-gutter content-updates"},rr.a.createElement("div",{className:"breadcrumbs-container border-bottom"},rr.a.createElement("ul",{className:"breadcrumbs"},rr.a.createElement("li",{className:"partial-loading-item ".concat(yk.a.partialDashboardBreadcrumb)}),rr.a.createElement("li",{className:"partial-loading-item ".concat(yk.a.partialWhatsNewBreadcrumb)})),rr.a.createElement("div",{className:"switch-back partial-loading-item ".concat(yk.a.partialOldLookBreadcrumb)})),Array(4).fill(null).map((function(e,t){return rr.a.createElement("div",{key:t,className:"mb-3"},rr.a.createElement("div",{className:"classification-banner partial-loading-item ".concat(yk.a.partialBanner)}),rr.a.createElement(_d,null),";")})))}function vk(e){var t=Object(ir.useDispatch)(),n=bE(),r=_p().subtract(1,"year").toISOString(),i=_p().toISOString(),a=o.useBasicFetch(qv),c=o.useBasicFetch(ik(r,i)),u=o.useBasicFetch(GO()),s=[];c.data&&c.data.forEach((function(e){return s.push(e.classificationId)}));var l=function(e,t){var n=Object(ir.useDispatch)();return Object(ir.useSelector)((function(r){var i;if(!(null===(i=e)||void 0===i?void 0:i.length))return null;for(var a=Ko(e),c={},u={},s=0;s<a.length;s+=25){var l=a.slice(s,s+25),f=t(l),p=o.getResponse(r,f.key);u[s]=!!p.data,p.shouldFetch&&o.fetch(n,f),p.data&&p.data.forEach((function(e){return c[e.id]=e}))}return Object.keys(u).every((function(e){return u[e]}))?c:null}))}(s,(function(e){return ak(e)}));function f(e,r){var i=function(){n.success(Ir.getPhrase("contentUpdates.contentUpdatesView",r?"followed":"unfollowed",{classification:l[e].name}))},a=r?KO([e],(function(){}),i):WO([e],(function(){}),i);o.fetch(t,a)}if(!(c.data&&a.data&&u.data&&l))return nr.createElement(mk,null);var p=function(e,t){return e&&t?e.map((function(e){return{showMore:e.videos.length>3,classification:t[e.classificationId],videos:e.videos.map((function(e){var n=e.video;return n.classification=t[e.classificationId],n})).filter((function(e){return e}))}})):null}(c.data,l),d=u.data.map((function(e){return e.id}));return nr.createElement("div",{className:"bg-white padding-gutter content-updates"},nr.createElement(uk,{dashboardAppLink:e.appLinks.dashboardAppLink}),p.map((function(t){return nr.createElement(dk,{classification:t.classification,videos:t.videos,imageCdnUrl:a.data.imageCdnUrl,showMore:t.showMore,key:t.classification.id,appLinks:e.appLinks,followed:d.includes(t.classification.id),follow:f})})))}function bk(e){var t,n=e.classificationId,r=_p().subtract(1,"year").toISOString(),i=_p().toISOString(),a=o.useBasicFetch(ck(n)),c=o.useBasicFetch(ik(r,i)),u=null===(t=c.data)||void 0===t?void 0:t.find((function(e){return e.classificationId===n}));return c.data&&a.data?nr.createElement("div",{className:"bg-white padding-gutter content-updates"},nr.createElement(pk,{classification:a.data,dashboardAppLink:e.appLinks.dashboardAppLink,contentUpdatesAppLink:e.appLinks.contentUpdatesAppLink}),nr.createElement(Pd,{canEdit:!1,playlistId:"0",isUserSignedIn:!0,onSortComplete:function(){},videos:u.videos.map((function(e){return e.video})),getVideoAppLink:e.appLinks.getVideoAppLink,getSeriesAppLink:e.appLinks.getSeriesAppLink})):nr.createElement(nr.Fragment,null)}var gk={getVideoAppLink:function(e){return{application:xn,action:mn.VIDEO,args:[e.id]}},getSeriesAppLink:function(e){return{application:xn,action:mn.SERIES,args:[e.id,Ca(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:An,action:wn.CLASSIFICATION_UPDATE,args:[e.id,Ca(e.name)]}},getClassificationAppLink:function(e){return{application:Cn,action:bn.CLASSIFICATION,args:[e.id,Ca(e.name)]}},dashboardAppLink:{application:xn,action:mn.HOME},contentUpdatesAppLink:{application:An,action:wn.CONTENT_UPDATES}};function wk(e){return(wk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ek(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sk(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 Ok(e,t,n){return t&&Sk(e.prototype,t),n&&Sk(e,n),e}function xk(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&&kk(e,t)}function kk(e,t){return(kk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ck(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ak(e);if(t){var o=Ak(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jk(this,n)}}function jk(e,t){return!t||"object"!==wk(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 Ak(e){return(Ak=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _k,Lk=function(e){xk(n,e);var t=Ck(n);function n(){return Ek(this,n),t.apply(this,arguments)}return Ok(n,[{key:"channelName",get:function(){return An}},{key:"appRoutes",get:function(){return{"content-updates":"contentUpdates","content-updates/:id(/:slug)":"classificationUpdate"}}}]),n}(r.AppRouter),Pk=function(e){xk(n,e);var t=Ck(n);function n(){return Ek(this,n),t.apply(this,arguments)}return Ok(n,[{key:"contentUpdates",value:function(){this.layout.showChildView(yr,nr.createElement(vk,{appLinks:gk}))}},{key:"classificationUpdate",value:function(e,t){this.layout.showChildView(yr,nr.createElement(bk,{classificationId:e,appLinks:gk}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return s.Radio.channel(f.ALERT).trigger("remove:alert",e)};this.layout.showChildView(vr,nr.createElement(Vf,{alerts:n,removeAlert:r}))}},{key:"name",get:function(){return"Content Updates Application"}},{key:"channelName",get:function(){return An}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:ok,hideLeftNav:!0}}}}],[{key:"router",get:function(){return Lk}}]),n}(r.Application);!function(e){e.Learner="learner",e.Staff="staff"}(_k||(_k={}));var Nk,Rk=function(e){return e===Hd.Student?_k.Learner:_k.Staff};!function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(Nk||(Nk={}));var Tk=function(){return zf($f)};function Ik(e){var t="".concat(lE.a.editSubjectsItem," d-flex position-relative px-3 justify-content-center align-items-center");return nr.createElement(rd,{appLink:e.appLink,className:"text-decoration-none"},nr.createElement("div",{className:t},nr.createElement(Gm,{svgName:Bm.Edit,className:"mr-2 align-middle d-inline-block svg-container"}),nr.createElement("p",{className:"h6 mb-0 align-middle text-truncate"},nr.createElement(dp,{namespace:"shared.subjectWidgetItem",phrase:"edit"}))))}var Fk=n(51),Dk=n.n(Fk);function Mk(e){var t=e.data,n=e.appLink,r=e.preloadImage,o=Object.assign(Object.assign({},n),{args:[t.id]});return rr.a.createElement("div",{className:"flex-shrink-0 p-1 col-6 col-sm-4 col-md-3 col-xl-2"},rr.a.createElement("div",{className:"position-relative ".concat(Dk.a.itemContainer)},rr.a.createElement("div",{className:Dk.a.image},rr.a.createElement(rd,{appLink:o},rr.a.createElement(cw,{src:t.thumbnail.url,forceLoad:r})))),rr.a.createElement("div",{className:"p-2 bg-white ".concat(Dk.a.textBoxContainer)},rr.a.createElement("h3",{className:"h6 text-center clamp-2 mb-0 ".concat(Dk.a.textBox)},rr.a.createElement(rd,{appLink:o},t.name))))}var Uk=function(e,t,n,r){return Np.urlBuilder("api/domain/v2/dashboards/widgets",{libraryType:e,customerType:t,userRole:n,countryCode:r})},Vk=function(e,t,n,r,o){var i="api/domain/v2/dashboards/playlists/".concat(e,"/videos");return Np.urlBuilder(i,{maxRatingValue:t,userGroup:n,page:r,limit:o})},zk=function(e,t,n,r){return{url:Uk(e,t,n,r),key:"widgets:".concat(e,":").concat(t,":").concat(r)}},Hk=function(e,t,n,r,o){return{url:Vk(e,t,n,r,o),key:"widget:".concat(e,":").concat(t,":").concat(n,":").concat(r)}},Bk=function(){return{key:"content:updates",url:"/api/latest-releases?limit=25&removeRestrictions=true"}},qk=function(){return{key:"user:channels",url:"/api/exchange/userchannels",formatData:function(e){var t={other:[8016031,8841562,8957923,8615721],productionAU:[3010410,3010413,7441339,4153107],productionUK:[9510679,3010410,16061709,25458222],productionNZ:[9510679,3010410,16061709,25458222]},n=t[ClickView.Data.Config.env+ClickView.Data.Config.region.code]||t.other;return e.filter((function(e){return n.includes(e.id)}))}}},$k=n(14),Yk=n.n($k);function Gk(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 Kk(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 Kk(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 Kk(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 Wk=Ir.encloseNamespace("dashboard.heroWidget");function Jk(e){var t,n,r,o,i,a=e.childAppLink,c=e.childSeriesAppLink,u=e.playlistAppLink,s=e.fetch,l=(t=s,n=Gk(Object(nr.useState)(null),2),r=n[0],o=n[1],i=t(!0),Object(nr.useEffect)((function(){i.data&&o(i.data)}),[i.data]),r);if(!l)return nr.createElement(Xk,null);var f=l.videos.data.slice(0,5);return nr.createElement("div",{id:"heroCarousel",className:"carousel slide carousel-fade","data-interval":2e4,"data-ride":"carousel","data-pause":"hover"},nr.createElement("div",{className:"carousel-inner"},f.map((function(e,t){return nr.createElement(Zk,{data:e,appLink:a,seriesAppLink:c,playlistAppLink:u,key:t,active:0===t})}))),f.length>1&&nr.createElement(nr.Fragment,null,nr.createElement(Qk,{count:f.length}),nr.createElement(eC,{name:Wk("previous"),type:"prev"}),nr.createElement(eC,{name:Wk("next"),type:"next"})))}var Xk=function(){return nr.createElement("div",{className:"".concat(Yk.a.partial," partial-loading-background")})};function Zk(e){var t=e.data,n=e.seriesAppLink,r=e.appLink,o=e.playlistAppLink,i=e.active,a=Object.assign(Object.assign({},r),{args:[t.id]}),c=Object.assign(Object.assign({},o),{args:[t.id]});return nr.createElement("div",{className:"carousel-item ".concat(Yk.a.bannerImage," ").concat(i?"active":""),style:{backgroundImage:"url(".concat(t.thumbnail.url,")")}},nr.createElement("div",{className:"".concat(Yk.a.metadataContainer," text-white")},nr.createElement("h2",{className:"mb-2 h1 text-shadow"},nr.createElement(CE,{video:t,appLink:n,className:"".concat(Yk.a.series," text-reset text-truncate")}),nr.createElement(rd,{appLink:a,className:"text-reset clamp-2"},t.name)),nr.createElement("p",{className:"mb-3 font-weight-500 text-shadow clamp-3 ".concat(Yk.a.description)},t.description),nr.createElement("div",{className:"d-flex"},nr.createElement(Gb,{appLink:a,svgName:Bm.Play,className:"btn btn-dark font-weight-500"},nr.createElement(dp,{namespace:"dashboard.heroWidget",phrase:"play"})),nr.createElement(Gb,{appLink:c,svgName:Bm.Plus,className:"btn btn-white ml-2 font-weight-500"},nr.createElement(dp,{namespace:"dashboard.heroWidget",phrase:"addToPlaylist"})))))}function Qk(e){for(var t=e.count,n=[],r=0;r<t;r++){var o="".concat(Yk.a.indicator);0===r&&(o+=" active"),n.push(nr.createElement("li",{className:o,key:r,"data-target":"#heroCarousel","data-slide-to":r}))}return nr.createElement("ol",{className:"carousel-indicators ".concat(Yk.a.indicatorContainer)},n)}var eC=function(e){return nr.createElement("a",{className:"carousel-control-".concat(e.type),href:"#heroCarousel",role:"button","data-slide":e.type,style:{width:"3rem"}},nr.createElement("span",{className:"carousel-control-".concat(e.type,"-icon"),"aria-hidden":"true"}),nr.createElement("span",{className:"sr-only"},e.name))};function tC(e,t,n){var r=Tk().onlineRole;return o.useBasicFetch(n?Hk(e,Gd(t),Rk(r),1,25):null)}function nC(){return o.useBasicFetch(Sg()).data}function rC(){return o.useBasicFetch(Bk())}function oC(){return o.useBasicFetch(qk())}function iC(){var e,t,n,r,i,a,c,s=Tk().hasCurriculum,l=o.useBasicFetch(Qo),f=(e=l.data,r=Tk(),i=r.onlineCustomerType,a=r.onlineRole,c=(null===(t=e)||void 0===t?void 0:t.countryCode)&&zk(Nk.HostedLibrary,i,a,null===(n=e)||void 0===n?void 0:n.countryCode),o.useBasicFetch(c).data),p=u.findWhere(f,(function(e){return e.type===Vw.Hero})),d={dashboardVideo:{application:_n,action:En.VIDEO},dashboardCollection:{application:_n,action:En.DASHBOARD},curriculum:{application:_n,action:En.CURRICULUM},classification:{application:Cn,action:bn.CLASSIFICATION},series:{application:Cn,action:bn.SERIES},subjectPreferences:{application:Cn,action:bn.PREFERENCES,params:{step:"subjects"}},addToPlaylist:{application:_n,action:En.ADD_TO_PLAYLIST},contentUpdates:{application:_n,action:En.CONTENT_UPDATES},userChannels:{application:_n,action:En.USER_CHANNELS},userChannel:{application:_n,action:En.USER_CHANNEL}};return nr.createElement("div",{className:"dashboard-widgets bg-white"},p?nr.createElement(Jk,{fetch:u.partial(tC,p.collectionId.toString(),l.data),childAppLink:d.dashboardVideo,childSeriesAppLink:d.series,playlistAppLink:d.addToPlaylist}):nr.createElement(Xk,null),nr.createElement("div",{className:"py-3 px-4"},nr.createElement("div",{className:"pb-3"},nr.createElement(tO,{fetch:nC,childAppLink:d.classification,childComponent:dE,endComponent:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return nr.createElement(Ik,Object.assign({},t,{appLink:d.subjectPreferences}))},headingPhraseKey:"teach",lazyLoad:!0})),s&&nr.createElement(rd,{appLink:d.curriculum,className:"pb-3 pl-1 d-inline-block text-info"},nr.createElement(dp,{namespace:"dashboard.dashboard",phrase:"curriculum"})),nr.createElement(MS,{name:Ir.getPhrase("dashboard.dashboard","contentUpdates"),type:Vw.LargeRow,contents:Bw.Videos,fetch:rC,childComponent:function(e){return nr.createElement(uO,Object.assign({},e,{seriesAppLink:d.series}))},appLink:d.contentUpdates,childAppLink:d.dashboardVideo,lazyLoad:!0}),f&&f.slice(0,3).map((function(e,t){return e.type!==Vw.Hero&&nr.createElement(MS,{key:t,type:e.type,contents:Bw.Videos,fetch:u.partial(tC,e.collectionId.toString(),l.data),setData:function(e){return e.videos.data},childComponent:function(e){return nr.createElement(uO,Object.assign({},e,{seriesAppLink:d.series}))},appLink:d.dashboardCollection,childAppLink:d.dashboardVideo,lazyLoad:!0})})),nr.createElement(MS,{name:Ir.getPhrase("dashboard.dashboard","featuredChannels"),type:Vw.Row,contents:Bw.UserChannels,fetch:oC,childComponent:Mk,appLink:d.userChannels,childAppLink:d.userChannel,lazyLoad:!0}),f&&f.slice(3).map((function(e,t){return e.type!==Vw.Hero&&nr.createElement(MS,{key:t,type:e.type,contents:Bw.Videos,fetch:u.partial(tC,e.collectionId.toString(),l.data),setData:function(e){return e.videos.data},childComponent:function(e){return nr.createElement(uO,Object.assign({},e,{seriesAppLink:d.series}))},appLink:d.dashboardCollection,childAppLink:d.dashboardVideo,lazyLoad:!0})}))))}function aC(e){return(aC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uC(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 sC(e,t,n){return t&&uC(e.prototype,t),n&&uC(e,n),e}function lC(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&&fC(e,t)}function fC(e,t){return(fC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pC(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hC(e);if(t){var o=hC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dC(this,n)}}function dC(e,t){return!t||"object"!==aC(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 hC(e){return(hC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yC,mC=function(e){lC(n,e);var t=pC(n);function n(){return cC(this,n),t.apply(this,arguments)}return sC(n,[{key:"channelName",get:function(){return _n}},{key:"appRoutes",get:function(){return{"(/)":"index"}}},{key:"appLinks",get:function(){return["addToPlaylist"]}},{key:"externalRoutes",get:function(){return{"dashboard/:id(/:name/)":"dashboard","videos/:id":"video","albert/search":"curriculum","content-updates":"contentUpdates","exchange/channels":"userChannels","exchange/channels/:id":"userChannel"}}}]),n}(r.AppRouter),vC=function(e){lC(n,e);var t=pC(n);function n(){return cC(this,n),t.apply(this,arguments)}return sC(n,[{key:"index",value:function(){this.layout.showChildView(yr,rr.a.createElement(iC,null))}},{key:"addToPlaylist",value:function(e){ClickView.Shared.Utils.FutureCoreHelper.addToPlaylistPopup(e)}},{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return _n}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:qr,hideLeftNav:!0}}}}],[{key:"router",get:function(){return mC}}]),n}(Vb);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 gC(e){return function(e){if(Array.isArray(e))return wC(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 wC(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 wC(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 wC(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 EC(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 SC(e,t){return(SC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function OC(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kC(e);if(t){var o=kC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xC(this,n)}}function xC(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 kC(e){return(kC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Fifo="FifoMemoryCache"}(yC||(yC={}));var CC,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&&SC(e,t)}(i,e);var t,n,r,o=OC(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)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=i,(n=[{key:"removeCacheKey",value:function(e){this.cachedkeys=u.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||U.throw(new Ye("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=u.object(this.cachedkeys,this.cachedkeys),o=[];u.each(e,(function(e){var t;r[e]&&o.push(e);var n=new RegExp(e,"i"),i=u.filter(r,(function(e){return n.test(e)}));(t=o).push.apply(t,gC(i))})),o.length&&(o=u.uniq(o),u.each(o,(function(e){delete n.cache[e],u.isFunction(t)&&t(e)})),this.cachedkeys=u.without.apply(u,[this.cachedkeys].concat(gC(o))))}},{key:"name",get:function(){return yC.Fifo}}])&&EC(t.prototype,n),r&&EC(t,r),i}(zt);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(CC||(CC={}));var AC=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 _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 LC(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 NC(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=TC(e);if(t){var o=TC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RC(this,n)}}function RC(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 TC(e){return(TC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var IC=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=NC(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,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=i,(n=[{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=zr.GET);var o=u.defaults(r,{forceHttps:!1}),i={url:e,method:n,type:n};t&&(i.data=n===zr.POST||n===zr.PUT?JSON.stringify(t):t),o.forceHttps&&(i.url=this.makeHttps(i.url)),o.traditional&&(i.traditional=o.traditional);var a=$.ajax(i);return u.keys(this.successMiddleware).length&&a.done(u.values(this.successMiddleware)),u.keys(this.errorMiddleware).length&&a.fail(u.values(this.errorMiddleware)),a}},{key:"create",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,zr.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,zr.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,zr.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,zr.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,t,n){var r=e.responseJSON,o=Ti;switch(o.code=e.status,o.message=AC(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),e.status){case 400:o.type=Pi.BadRequest;break;case 401:o.type=Pi.Unauthorized;break;case 403:o.type=Pi.Forbidden;break;case 404:o.type=Pi.NotFound;break;case 500:o.type=Pi.InternalServer}return o}},{key:"name",get:function(){return CC.Ajax}}])&&LC(t.prototype,n),r&&LC(t,r),i}(w.Object);function FC(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 DC=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,r;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}}])&&FC(t.prototype,n),r&&FC(t,r),e}();function MC(e){return(MC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function UC(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 VC(e,t){return(VC=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=BC(e);if(t){var o=BC(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"!==MC(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 BC(e){return(BC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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&&VC(e,t)}(i,e);var t,n,r,o=zC(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,"Not Implemented")}return t=i,(n=[{key:"name",get:function(){return"NotImplementedError"}}])&&UC(t.prototype,n),r&&UC(t,r),i}(F),$C="popup:behavior";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 WC(e,t){return(WC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function JC(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 XC(this,n)}}function XC(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 ZC(e){return(ZC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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&&WC(e,t)}(i,e);var t,n,r,o=JC(i);function i(){return GC(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(f.SHELL,l.ROUTING_END,this.scrollTop),this.listenTo($C,"popup:render",this.cancelScrollTop),this.listenTo(f.POPUP,"popup:render",this.cancelScrollTop)}},{key:"cancelScrollTop",value:function(){this.preventScroll=!0}},{key:"scrollTop",value:function(){this.preventScroll?this.preventScroll=!1:$(window).scrollTop(0)}},{key:"name",get:function(){return jr.SCROLL}}])&&KC(t.prototype,n),r&&KC(t,r),i}(zt),ej={SHORT:120,STANDARD:600};function tj(e){return(tj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nj(e){return function(e){if(Array.isArray(e))return rj(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 rj(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 rj(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 rj(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 oj(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 ij(e,t){return(ij=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function aj(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sj(e);if(t){var o=sj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cj(this,n)}}function cj(e,t){return!t||"object"!==tj(t)&&"function"!=typeof t?uj(e):t}function uj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sj(e){return(sj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lj=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&&ij(e,t)}(i,e);var t,n,r,o=aj(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),u.result(uj(t),"name")||U.throw(new Ye("Must provide a name when extending BaseDataService")),u.result(uj(t),"channelName")||U.throw(new Ye("Must provide a channelName for ".concat(u.result(uj(t),"name"))));var n=[].concat(nj(t.defaultProps),nj(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=i,(n=[{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,r=e.errorCallback,o=e.eventPrefix,i=this.getEventNames(o),a=i.syncEvent,c=i.errorEvent,s=this.cache.get(o);if(s&&s.openRequest)return this.listenToOnce(this.getChannel(),a,(function(e){u.isFunction(r)&&t.stopListening(t.getChannel(),c,r),u.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),c,(function(){u.isFunction(n)&&t.stopListening(t.getChannel(),a,n),u.isFunction(r)&&r()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,r=e.errorCallback,o=e.eventPrefix,i=e.resource,a=e.formatData,c=e.expiryTime,s=e.successHandler,l=e.errorHandler,f=e.bootstrapName,p=this.getEventNames(o),d=p.syncEvent,h=p.requestEvent,y=p.successEvent,m=p.errorEvent,v=this.getChannel(),b=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[f]&&(this.cacheData(o,this.bootstrapData[f],a,{openRequest:!1,timestamp:b}),delete this.bootstrapData[f]);var g,w=this.cache.get(o);w&&(g=w.data);var E=w&&w.openRequest,S=this.isExpired(o,c);if(E&&(this.listenToOnce(v,d,(function(e){u.isFunction(r)&&t.stopListening(t.getChannel(),m,r),u.isFunction(n)&&n(e)})),this.listenToOnce(v,m,(function(){u.isFunction(n)&&t.stopListening(t.getChannel(),d,n),u.isFunction(r)&&r()}))),this.cache.has(o)&&!S||(v.trigger(h),this.listenToResponse({eventPrefix:o,formatData:a,cacheOptions:{timestamp:b},callback:n,errorCallback:r,successHandler:s,errorHandler:l}),this.cacheData(o,null,null,{openRequest:!0,timestamp:b}),this.dataProvider.read(i,{channel:this.getTransportChannel(),successEvent:y,errorEvent:m})),g&&u.isFunction(n)&&!S&&n(g),g)return g}},{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,d=l.errorEvent,h=this.getChannel(),y=this.getTransportChannel();h.trigger(f),this.listenToResponse({eventPrefix:t,formatData:o,invalidationKeys:c,callback:i,errorCallback:a,successHandler:u,errorHandler:s}),this.dataProvider.create(n,r,{channel:y,successEvent:p,errorEvent:d})}},{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,d=l.errorEvent,h=this.getChannel(),y=this.getTransportChannel();h.trigger(f),this.listenToResponse({eventPrefix:a,formatData:i,invalidationKeys:c,callback:n,errorCallback:r,successHandler:s,errorHandler:u}),this.dataProvider.update(o,t,{channel:y,successEvent:p,errorEvent:d})}},{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,r=e.formatData,o=e.callback,i=e.errorCallback,a=e.successHandler,c=e.errorHandler,s=e.invalidationKeys,l=e.cacheOptions,f=void 0===l?{}:l,p=this.getEventNames(n),d=p.syncEvent,h=(p.requestEvent,p.successEvent),y=p.errorEvent,m=p.successAlertEvent,v=p.errorAlertEvent,b=this.getChannel(),g=this.getTransportChannel(),w=this.getAlertChannel();u.isFunction(o)&&this.listenToOnce(b,d,o),u.isFunction(i)&&this.listenToOnce(b,y,i),this.stopListening(w,m),this.stopListening(w,v),u.isFunction(a)&&this.listenToOnce(w,m,a),u.isFunction(c)&&this.listenToOnce(w,v,c),!u.isFunction(c)&&!1!==c&&u.isFunction(this.defaultErrorHandler)&&this.listenToOnce(w,v,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(g,h,(function(e){t.stopListening(b,y,i);for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c<o;c++)a[c-1]=arguments[c];w.trigger.apply(w,[m,e].concat(a));var u=f.noCache?t.formatData(e,r):t.cacheData(n,e,r);f.clearCacheKey&&t.cache.remove(n),b.trigger(d,u),s&&s.length&&t.cache.invalidate(s,(function(e){return b.trigger("".concat(e,":invalidate"))}))})),this.listenTo(g,y,(function(){var e;t.stopListening(b,d,o);var r=(e=t.dataProvider).parseError.apply(e,arguments);w.trigger(v,r),b.trigger(y,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:u.isUndefined(t.offset)||u.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return u.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){u.isFunction(e)&&e(t)},r=function(r,i){return t.push((function(){var o=r.callback;r.callback=function(e){n(o,e),n(t.shift())},e[i](r)})),o},o={func:function(e){return t.push((function(){e(t.shift()||function(){})})),o},get:function(e){return r(e,"get")},create:function(e){return r(e,"create")},update:function(e){return r(e,"update")},delete:function(e){return r(e,"delete")},run:function(){n(t.shift())}};return o}},{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 s.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return s.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,r=e.totalItems,o=r>0&&t<r&&t+n,i=r>0&&t>0&&Math.max(t-n,0),a={};if(o&&o<r&&(a.next=o.toString()),u.isNumber(i)&&(a.previous=i.toString()),!u.isEmpty(a))return a}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,r=u.isNumber(t)&&t>0&&t<n&&t+1,o=u.isNumber(t)&&t>1&&t-1,i={};if(r&&r<=n&&(i.next=r.toString()),o&&(i.previous=o.toString()),!u.isEmpty(i))return i}},{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}}])&&oj(t.prototype,n),r&&oj(t,r),i}(zt),fj="current:user",pj="workspace",dj="config",hj="locale",yj="phrases",mj="config:data:service",vj="user:data:service",bj="language:data:service",gj="locale",wj="phrases",Ej="version";function Sj(e){return(Sj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xj(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 kj(e,t){return(kj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cj(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Aj(e);if(t){var o=Aj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jj(this,n)}}function jj(e,t){return!t||"object"!==Sj(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 Aj(e){return(Aj=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&&kj(e,t)}(i,e);var t,n,r,o=Cj(i);function i(){return Oj(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getConfig",value:function(e,t){return this.get({resource:"/api/config",eventPrefix:dj,expiryTime:ej.STANDARD,callback:e,errorCallback:t})}},{key:"getVersion",value:function(e){return this.get({resource:"/api/version",eventPrefix:"version",bootstrapName:Ej,callback:e,expiryTime:ej.STANDARD})}},{key:"name",get:function(){return Bf.Config}},{key:"channelName",get:function(){return mj}}])&&xj(t.prototype,n),r&&xj(t,r),i}(lj);function Lj(e){return(Lj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nj(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 Rj(e,t){return(Rj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tj(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fj(e);if(t){var o=Fj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ij(this,n)}}function Ij(e,t){return!t||"object"!==Lj(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 Fj(e){return(Fj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dj=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&&Rj(e,t)}(i,e);var t,n,r,o=Tj(i);function i(){return Pj(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getCurrentUser",value:function(e,t){return this.get({resource:"/api/currentuser",eventPrefix:fj,expiryTime:ej.STANDARD,callback:e,errorCallback:t})}},{key:"getWorkspace",value:function(e,t){return this.get({resource:"/api/domain/v2/me/workspace?query=categorytree",eventPrefix:pj,expiryTime:ej.STANDARD,callback:e,errorCallback:t})}},{key:"name",get:function(){return Bf.User}},{key:"channelName",get:function(){return vj}}])&&Nj(t.prototype,n),r&&Nj(t,r),i}(lj);"".concat(fj,":sync");function Mj(e){return(Mj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vj(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 zj(e,t){return(zj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hj(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qj(e);if(t){var o=qj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bj(this,n)}}function Bj(e,t){return!t||"object"!==Mj(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 qj(e){return(qj=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&&zj(e,t)}(i,e);var t,n,r,o=Hj(i);function i(){return Uj(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:hj,expiryTime:ej.STANDARD,bootstrapName:gj,callback:function(n){t.locale=n,t.phrases&&u.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:yj,expiryTime:ej.STANDARD,bootstrapName:wj,callback:function(n){t.phrases=n,t.locale&&u.isFunction(e)&&e(t)}})}},{key:"name",get:function(){return Bf.Language}},{key:"channelName",get:function(){return bj}}])&&Vj(t.prototype,n),r&&Vj(t,r),i}(lj);function Yj(e){return(Yj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gj(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 Kj(e,t){return(Kj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wj(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xj(e);if(t){var o=Xj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jj(this,n)}}function Jj(e,t){return!t||"object"!==Yj(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 Xj(e){return(Xj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zj=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&&Kj(e,t)}(i,e);var t,n,r,o=Wj(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,e)).imageUrls=e.imageUrls,t}return t=i,(n=[{key:"getImageUrls",value:function(){return this.imageUrls}},{key:"name",get:function(){return qf}}])&&Gj(t.prototype,n),r&&Gj(t,r),i}(r.Service);function Qj(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 eA={curriculum:!1},tA=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=Object.assign({onlineModules:eA},t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return $f}},{key:"hasCurriculum",get:function(){return this.options.onlineModules.curriculum}},{key:"isTeacher",get:function(){return this.options.onlineRole===Hd.Staff}},{key:"onlineRole",get:function(){return this.options.onlineRole}},{key:"onlineCustomerType",get:function(){return this.options.customerType}}])&&Qj(t.prototype,n),r&&Qj(t,r),e}();function nA(e){return(nA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oA(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 iA(e,t){return(iA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function aA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uA(e);if(t){var o=uA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cA(this,n)}}function cA(e,t){return!t||"object"!==nA(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 uA(e){return(uA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sA=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&&iA(e,t)}(i,e);var t,n,r,o=aA(i);function i(){return rA(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"AlertError"}}])&&oA(t.prototype,n),r&&oA(t,r),i}(r.SilentError);function lA(e){return(lA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fA(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 pA(e,t){return(pA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yA(e);if(t){var o=yA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hA(this,n)}}function hA(e,t){return!t||"object"!==lA(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 yA(e){return(yA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mA=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&&pA(e,t)}(a,e);var t,n,o,i=dA(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)).dialogOptions||r.ErrorHelper.throw(new Ye("Please provide DialogOptions for your implementation of DialogError")),t}return t=a,(n=[{key:"onDone",value:function(){}},{key:"onFail",value:function(){}},{key:"name",get:function(){return"DialogError"}}])&&fA(t.prototype,n),o&&fA(t,o),a}(r.SilentError);function vA(e){return(vA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bA(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 gA(e,t){return(gA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 EA(this,n)}}function EA(e,t){return!t||"object"!==vA(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)}(i,e);var t,n,r,o=wA(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).viewObjects={},e}return t=i,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"updateViewModel",value:function(e,t){var n=this.mergeData(t,e.toJSON());return e instanceof Rt&&e.set(n,{silent:!0}),e instanceof xt&&!(e instanceof Rt)&&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),c=o?new o(a):new xt(a);return this.viewObjects[e]=c,i&&!n?(this.setLocalData(e,c,null,r),this.setupChangeListeners(e,c,r)):i&&n&&this.setupChangeListeners(e,c,r),c}},{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 xt&&(o=t.pick(i.persistProps)),this.getStorageHelper(i.type).set(e,o))}},{key:"setupChangeListeners",value:function(e,t,n){var r=this,o=n.storage;!o||o&&!o.persistProps||("string"==typeof o.persistProps&&(o.persistProps=[o.persistProps]),u.each(o.persistProps,(function(o){r.listenTo(t,"change:".concat(o),u.partial(r.setLocalData,e,u,u,n))})))}},{key:"mergeData",value:function(e,t){return t?u.isObject(e)&&u.isObject(t)?u.extend(e,t):void U.throw(new Ye("defaultValues and existingData are not of the same datatype and cannot be merged")):e}},{key:"getStorageHelper",value:function(e){switch(e){case Yd.LocalStorage:return dh;case Yd.SessionStorage:return hh}}},{key:"name",get:function(){return"ViewModelService"}}])&&bA(t.prototype,n),r&&bA(t,r),i}(zt).Instance;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 kA(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 CA(e,t){return(CA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 AA(this,n)}}function AA(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 _A(e){return(_A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var LA=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&&CA(e,t)}(a,e);var t,n,o,i=jA(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)).clients={},t.enrichers={},OA.get("application:options").set(e),t.bindNavigationListener(),t}return t=a,(n=[{key:"registerTransport",value:function(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}},{key:"bindTransportListeners",value:function(){this.listenTo(tc,Qa.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(u.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.ErrorHelper.throw(new Ye("Classes registered with ".concat(this.name," must have a unique name property.")));var n=function(t){return gr(e.prototype.isType)&&e.prototype.isType(t)};(n("BaseAnalyticsClient")||"CollectionApiClient"===t)&&this.clients[t]&&r.ErrorHelper.throw(new Ye("A client class with the name: ".concat(t," has already been registered with ").concat(this.name))),n("BaseAnalyticsEnricher")&&this.enrichers[t]&&r.ErrorHelper.throw(new Ye("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(f.SHELL,r.EventNames.URL_CHANGE,this.logNavigate)}},{key:"logNavigate",value:function(e,t){sc.logNavigate(e,t)}},{key:"name",get:function(){return qa.Analytics}}])&&kA(t.prototype,n),o&&kA(t,o),a}(r.Service);function PA(e){return(PA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function NA(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 RA(e,t){return(RA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function TA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=FA(e);if(t){var o=FA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return IA(this,n)}}function IA(e,t){return!t||"object"!==PA(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 FA(e){return(FA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var DA=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&&RA(e,t)}(i,e);var t,n,r,o=TA(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:"shouldLog",value:function(e){return!0}},{key:"log",value:function(e){}},{key:"isType",value:function(e){return e===i.type}}])&&NA(t.prototype,n),r&&NA(t,r),i}(r.Service);function MA(e){return(MA="function"==typeof Symbol&&"symbol"==typeof Symbol.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 VA(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 zA(e,t){return(zA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function HA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 BA(this,n)}}function BA(e,t){return!t||"object"!==MA(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)}DA.type="BaseAnalyticsClient";var $A=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&&zA(e,t)}(a,e);var t,n,o,i=HA(a);function a(){return UA(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldLog",value:function(){return O.isDevelopment}},{key:"log",value:function(e){var t=u.clone(e);for(var n in e){var o=t[n];(o instanceof r.Model||o instanceof r.Collection)&&(t[n]=o.toJSON())}console.log("Event Debugger: ",t)}},{key:"name",get:function(){return"DebuggerClient"}}])&&VA(t.prototype,n),o&&VA(t,o),a}(DA);function YA(e){return(YA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function GA(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 KA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WA(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&&JA(e,t)}function JA(e,t){return(JA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function XA(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 ZA(this,n)}}function ZA(e,t){return!t||"object"!==YA(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 e_=function(e){WA(i,e);var t,n,r,o=XA(i);function i(){return KA(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"publish",value:function(e){this.getChannel().trigger(Qa.Outlet,e)}},{key:"subscribe",value:function(e){var t=e,n=function(n){gr(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};u.isFunction(t.listenTo)?t.listenTo(this.getChannel(),Qa.Outlet,n):this.listenTo(this.getChannel(),Qa.Outlet,n)}},{key:"name",get:function(){return"EventTransport"}},{key:"channelName",get:function(){return"event:transport"}}])&&GA(t.prototype,n),r&&GA(t,r),i}(function(e){WA(n,e);var t=XA(n);function n(){return KA(this,n),t.apply(this,arguments)}return n}(w.Object)),t_="URLSearchParams"in self,n_="Symbol"in self&&"iterator"in Symbol,r_="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),o_="FormData"in self,i_="ArrayBuffer"in self;if(i_)var a_=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c_=ArrayBuffer.isView||function(e){return e&&a_.indexOf(Object.prototype.toString.call(e))>-1};function u_(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 s_(e){return"string"!=typeof e&&(e=String(e)),e}function l_(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n_&&(t[Symbol.iterator]=function(){return t}),t}function f_(e){this.map={},e instanceof f_?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 p_(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function d_(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function h_(e){var t=new FileReader,n=d_(t);return t.readAsArrayBuffer(e),n}function y_(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m_(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r_&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o_&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t_&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i_&&r_&&function(e){return e&&DataView.prototype.isPrototypeOf(e)}(e)?(this._bodyArrayBuffer=y_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i_&&(ArrayBuffer.prototype.isPrototypeOf(e)||c_(e))?this._bodyArrayBuffer=y_(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):t_&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r_&&(this.blob=function(){var e=p_(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?p_(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h_)}),this.text=function(){var e,t,n,r=p_(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=d_(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)},o_&&(this.formData=function(){return this.text().then(g_)}),this.json=function(){return this.text().then(JSON.parse)},this}f_.prototype.append=function(e,t){e=u_(e),t=s_(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f_.prototype.delete=function(e){delete this.map[u_(e)]},f_.prototype.get=function(e){return e=u_(e),this.has(e)?this.map[e]:null},f_.prototype.has=function(e){return this.map.hasOwnProperty(u_(e))},f_.prototype.set=function(e,t){this.map[u_(e)]=s_(t)},f_.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f_.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),l_(e)},f_.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l_(e)},f_.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),l_(e)},n_&&(f_.prototype[Symbol.iterator]=f_.prototype.entries);var v_=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b_(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b_){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f_(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 f_(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v_.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 g_(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 w_(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 f_(t.headers),this.url=t.url||"",this._initBody(e)}b_.prototype.clone=function(){return new b_(this,{body:this._bodyInit})},m_.call(b_.prototype),m_.call(w_.prototype),w_.prototype.clone=function(){return new w_(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f_(this.headers),url:this.url})},w_.error=function(){var e=new w_(null,{status:0,statusText:""});return e.type="error",e};var E_=[301,302,303,307,308];w_.redirect=function(e,t){if(-1===E_.indexOf(t))throw new RangeError("Invalid status code");return new w_(null,{status:t,headers:{location:e}})};var S_=self.DOMException;try{new S_}catch(e){(S_=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),S_.prototype.constructor=S_}function O_(e,t){return new Promise((function(n,r){var o=new b_(e,t);if(o.signal&&o.signal.aborted)return r(new S_("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 f_,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 w_(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 S_("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&&(r_?i.responseType="blob":i_&&-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)}))}O_.polyfill=!0,self.fetch||(self.fetch=O_,self.Headers=f_,self.Request=b_,self.Response=w_);var x_=n(242),k_=n.n(x_),C_=n(243);function j_(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 A_(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 A_(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 A_(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 __={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 5.0/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 L_(e,t,n){var r=j_(t.exec(n)||[],3),o=(r[0],r[1],r[2]);return o||(o="Unknown"),{name:e,version:o}}function P_(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 N_=function(){var e=window.navigator.userAgent;return __.linux.test(e)?P_("Linux",null,e):__.unix.test(e)?P_("Unix",null,e):__.mac.test(e)?P_("Macintosh",__.osxVersion,e):__.windows.test(e)?function(e,t){var n={name:e,version:null};return __.win2000.test(t)&&(n.version="2000"),__.winXP.test(t)&&(n.version="XP"),__.winVista.test(t)&&(n.version="Vista"),__.win7.test(t)&&(n.version="7"),__.win8.test(t)&&(n.version="8"),__.win81.test(t)&&(n.version="8.1"),__.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):__.iphone.test(e)||__.ipad.test(e)?P_("iOS",__.iosVersion,e):__.android.test(e)?P_("Android",__.androidVersion,e):__.blackberry.test(e)?P_("Android",__.blackberryVersion,e):__.windowsPhone.test(e)?P_("Android",__.windowsPhoneVersion,e):{name:"Unknown",version:"Unknown"}},R_=function(){var e=window.navigator.userAgent;return __.chrome.test(e)?L_("Chrome",__.generalVersion,e):__.firefox.test(e)?L_("Firefox",__.generalVersion,e):__.safari.test(e)?L_("Safari",__.generalVersion,e):__.ie.test(e)?L_("Internet Explorer",__.ieVersion,e):__.edge.test(e)?L_("Edge",__.edgeVersion,e):__.opera.test(e)?L_("Opera",__.operaVersion,e):{name:"Unknown",version:"Unknown"}};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)}var I_,F_=function(e){var t=T_(e);return"function"===t||"object"===t&&!!e},D_=function(e){return"function"==typeof e};!function(e){e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1"}(I_||(I_={}));var M_,U_,V_={CvApSoutheast1:{displayName:"ClickView Asia Pacific (AU)",systemName:I_.CvApSoutheast1},CvApSoutheast2:{displayName:"ClickView Asia Pacific (NZ)",systemName:I_.CvApSoutheast2},CvEuWest1:{displayName:"ClickView EU West (UK)",systemName:I_.CvEuWest1}};function z_(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"}(M_||(M_={}));var H_=(z_(U_={},M_.AU,I_.CvApSoutheast1),z_(U_,M_.NZ,I_.CvApSoutheast2),z_(U_,M_.UK,I_.CvEuWest1),U_);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)}}var q_=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):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,c)}u((r=r.apply(e,t||[])).next())}))},$_=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:"log",value:function(e){return q_(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.shouldLog(e)){t.next=2;break}return t.abrupt("return");case 2:return this.validateEvent(e),t.t0=this,t.next=6,this.formatData(e);case 6:return t.t1=t.sent,t.next=9,t.t0.postData.call(t.t0,t.t1);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"validateOptions",value:function(){if(!D_(this.options.getUser))throw new Error("getUser option is required.")}},{key:"shouldLog",value:function(e){return!D_(this.options.shouldLog)||this.options.shouldLog(e)}},{key:"postData",value:function(e){return q_(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.getRegionalUrl(this.options.collectionApiUrls);case 2:return n=t.sent,r=JSON.stringify(e),o=Object.assign({"Content-Type":"application/json"},this.getSignatureHeader(r)),t.next=7,fetch("".concat(n,"/v1/ingest"),{method:"POST",mode:"cors",headers:o,body:r});case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getSignatureHeader",value:function(e){var t=new k_.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 q_(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===I_.CvEuWest1?6:t.t0===I_.CvApSoutheast2?7:(t.t0,I_.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(!F_(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 q_(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 q_(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 D_(this.options.formatData)?this.options.formatData(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}({},e.actionContext.entity,e.data)}},{key:"getUserData",value:function(){var e,t;return q_(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(r=n.sent,null===(e=r)||void 0===e?void 0:e.id){n.next=5;break}return n.abrupt("return");case 5:return n.t0=r.id,n.t1=null===(t=r.role)||void 0===t?void 0:t.toLowerCase(),n.t2=r.customerId,n.t3=r.countryCode,n.next=11,this.getRegion();case 11:return n.t4=n.sent,n.t5={id:n.t2,country:n.t3,region:n.t4},n.abrupt("return",{id:n.t0,role:n.t1,customer:n.t5});case 14:case"end":return n.stop()}}),n,this)})))}},{key:"getRegion",value:function(){var e,t;return q_(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r,o,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.options.getUser();case 2:return r=n.sent,o=null===(t=null===(e=r)||void 0===e?void 0:e.countryCode)||void 0===t?void 0:t.toLowerCase(),i=o?H_[o]:this.options.regionName,n.abrupt("return",this.getRegionByName(i));case 6:case"end":return n.stop()}}),n,this)})))}},{key:"getPlatformMetadata",value:function(){return{browser:R_(),os:N_(),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:C_.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:e.eventVersion}}},{key:"getRegionByName",value:function(e){var t;return Object.values(V_).forEach((function(n){n.systemName===e&&(t=n)})),t}},{key:"name",get:function(){return"CollectionApiClient"}}])&&B_(t.prototype,n),r&&B_(t,r),e}(),Y_=function(){return!0},G_=function(){return!1};var K_=function(e){return e};function W_(e){if(e&&e.code)return e.code}function J_(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 X_(e){if(e&&e.length){var t=e[0];return{id:t.id,title:t.name}}}var Z_,Q_,eL,tL=function(e){var t=e.model,n={id:t.id,year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=W_(t.rating),o=J_(t.series),i=X_(t.categories),a=J_(t.owner,{ignoreTitle:!0}),c=J_(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},nL={getUploadData:function(e,t){var n=t.actionContext.entity;if(n===ea.Video)return nL.formatVideoUpload(e,t);if(n===ea.Resource||n===ea.Subtitle)return nL.formatResourceUpload(e);if(n===ea.Banner||n===ea.Thumbnail)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(e,t){var n=t.actionContext.workflowPhase;return n===na.Start?nL.getStartVideoUploadData(e):n===na.Discard?nL.getDiscardVideoUploadData(e):n===na.Complete?nL.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,count:e.length}})):[]},formatResourceUpload:function(e){var t={id:e.id,name:e.name};return F_(e.metadata)&&(t.type=e.metadata.type),t}};function rL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oL=(rL(Z_={},Qi.Navigate,G_),rL(Z_,Qi.Click,Y_),rL(Z_,Qi.Search,Y_),rL(Z_,Qi.InstantSearch,Y_),rL(Z_,Qi.Play,Y_),rL(Z_,Qi.Stream,Y_),rL(Z_,Qi.Rename,Y_),rL(Z_,Qi.Move,Y_),rL(Z_,Qi.Create,Y_),rL(Z_,Qi.Delete,Y_),rL(Z_,Qi.Associate,Y_),rL(Z_,Qi.Dissociate,Y_),rL(Z_,Qi.Filter,Y_),rL(Z_,Qi.Sort,Y_),rL(Z_,Qi.Approve,Y_),rL(Z_,Qi.Reject,Y_),rL(Z_,Qi.Disable,Y_),rL(Z_,Qi.Upload,Y_),rL(Z_,Qi.Download,G_),rL(Z_,Qi.SetAccess,Y_),rL(Z_,Qi.AddToLocalCache,G_),rL(Z_,Qi.Share,Y_),rL(Z_,Qi.Edit,Y_),rL(Z_,Qi.Suggest,Y_),rL(Z_,Qi.ResolveWarning,Y_),rL(Z_,Qi.DismissWarning,Y_),rL(Z_,Qi.EditAssoc,Y_),Z_),iL=(rL(Q_={},Qi.Search,K_),rL(Q_,Qi.InstantSearch,K_),rL(Q_,Qi.Play,K_),rL(Q_,Qi.Stream,tL),rL(Q_,Qi.Click,K_),rL(Q_,Qi.Filter,K_),rL(Q_,Qi.Sort,K_),rL(Q_,Qi.SetAccess,K_),rL(Q_,Qi.Approve,K_),rL(Q_,Qi.Reject,K_),rL(Q_,Qi.Create,K_),rL(Q_,Qi.Delete,K_),rL(Q_,Qi.Rename,K_),rL(Q_,Qi.Move,K_),rL(Q_,Qi.Edit,K_),rL(Q_,Qi.Share,K_),rL(Q_,Qi.Disable,K_),rL(Q_,Qi.Suggest,K_),rL(Q_,Qi.Upload,nL.getUploadData),rL(Q_,Qi.ResolveWarning,K_),rL(Q_,Qi.DismissWarning,K_),Q_),aL=(rL(eL={},Qi.Search,"search"),rL(eL,Qi.InstantSearch,"search"),rL(eL,Qi.Filter,"filter"),eL),cL={shouldLog:function(e){return!!oL[e.type](e)},formatData:function(e){var t=iL[e.type],n=D_(t)?t(e.data,e):e.data,r=e.actionContext.entity;return aL[e.type]&&(r=aL[e.type]),rL({},r,n)}};function uL(e){return(uL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lL(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 fL(e,t){return(fL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pL(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hL(e);if(t){var o=hL(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"!==uL(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 hL(e){return(hL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yL=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&&fL(e,t)}(i,e);var t,n,r,o=pL(i);function i(){return sL(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}}])&&lL(t.prototype,n),r&&lL(t,r),i}(r.Service);function mL(e){return(mL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vL(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 bL(e,t){return(bL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gL(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=EL(e);if(t){var o=EL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wL(this,n)}}function wL(e,t){return!t||"object"!==mL(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 EL(e){return(EL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}yL.type="BaseAnalyticsEnricher";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&&bL(e,t)}(a,e);var t,n,o,i=gL(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:"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 _p.utc().toISOString()}},{key:"getProductInfo",value:function(){return{name:this.productName,version:this.productVersion}}},{key:"getRequestInfo",value:function(){return{referrer:r.LocationUtils.GetCurrentReferrer(),requestUrl:r.LocationUtils.GetCurrentUrl()}}},{key:"getClientInfo",value:function(){var e=aS(),t=cS();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}},{key:"name",get:function(){return"CoreContextEnricher"}}])&&vL(t.prototype,n),o&&vL(t,o),a}(yL);function OL(e){return(OL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kL(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 CL(e,t){return(CL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jL(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 AL(this,n)}}function AL(e,t){return!t||"object"!==OL(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 LL=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&&CL(e,t)}(i,e);var t,n,r,o=jL(i);function i(){return xL(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.user=OA.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}}},{key:"name",get:function(){return"UserDataEnricher"}}])&&kL(t.prototype,n),r&&kL(t,r),i}(yL);n.d(t,"Layouts",(function(){return i})),n.d(t,"DataServices",(function(){return a})),n.d(t,"Services",(function(){return c})),n.d(t,"OnlineContextService",(function(){return tr})),n.d(t,"OnlineLayoutView",(function(){return hi})),n.d(t,"DefaultApplication",(function(){return ki})),n.d(t,"FlightPlaylistDataService",(function(){return ga})),n.d(t,"PlaylistApplication",(function(){return Ob})),n.d(t,"OnlinePlaylistsLayoutView",(function(){return Nb})),n.d(t,"SubjectApplication",(function(){return $x})),n.d(t,"SubjectPlaylistsApplication",(function(){return rk})),n.d(t,"ContentUpdatesApplication",(function(){return Pk})),n.d(t,"DashboardApplication",(function(){return vC})),n.d(t,"Core",(function(){return r})),n.d(t,"InstanceManager",(function(){return yn})),n.d(t,"BaseAlertService",(function(){return Ma})),n.d(t,"AlertType",(function(){return Aa})),n.d(t,"FifoMemoryCache",(function(){return jC})),n.d(t,"AjaxDataProvider",(function(){return IC})),n.d(t,"ConcurrencyHelper",(function(){return DC})),n.d(t,"UrlHelper",(function(){return Np})),n.d(t,"DevError",(function(){return Ye})),n.d(t,"NotImplementedError",(function(){return qC})),n.d(t,"CommonServices",(function(){return jr})),n.d(t,"LanguageService",(function(){return Ir})),n.d(t,"Flight",(function(){return o})),n.d(t,"ScrollService",(function(){return QC})),n.d(t,"CacheDurations",(function(){return ej})),n.d(t,"SharedDataServices",(function(){return Bf})),n.d(t,"ConfigDataService",(function(){return _j})),n.d(t,"UserDataService",(function(){return Dj})),n.d(t,"LanguageDataService",(function(){return $j})),n.d(t,"ImageUrlService",(function(){return Zj})),n.d(t,"AnalyticsService",(function(){return LA})),n.d(t,"DebuggerClient",(function(){return $A})),n.d(t,"EventTransport",(function(){return e_})),n.d(t,"CollectionApiClient",(function(){return $_})),n.d(t,"CollectionApiClientHelper",(function(){return cL})),n.d(t,"CountryRegionMapping",(function(){return H_})),n.d(t,"CoreContextEnricher",(function(){return SL})),n.d(t,"UserDataEnricher",(function(){return LL})),n.d(t,"AppOptionsService",(function(){return tA})),n.d(t,"AlertError",(function(){return sA})),n.d(t,"DialogError",(function(){return mA})),n.d(t,"ErrorPageError",(function(){return mO}))}])}));
|