@clickview/online 0.0.4-dev.1 → 0.0.4-rc.0
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/en.json +1 -1
- package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +0 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +6 -5
- package/dist/libs/analytics/src/interfaces/User.d.ts +0 -11
- package/dist/libs/analytics/src/models/CollectionEvent.d.ts +0 -6
- package/dist/libs/analytics/src/utils/CollectionApiClientHelper.d.ts +1 -1
- package/dist/libs/common/src/react/utils/TextHelper.d.ts +0 -3
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +2 -6
- package/dist/libs/shared/src/components/actions/ActionsDropdown.d.ts +1 -2
- package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidgetUtils.d.ts +1 -1
- package/dist/libs/shared/src/hooks/UseLazyLoad.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/models/Library.d.ts +0 -2
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -2
- package/dist/online-app.css +2 -6
- package/dist/online-app.css.map +1 -1
- package/dist/online-app.js +3 -3
- package/dist/online-app.js.map +1 -1
- package/dist/projects/online/src/index.d.ts +1 -6
- package/dist/projects/online/src/shared/constants/Actions.d.ts +0 -19
- package/dist/projects/online/src/shared/constants/RadioChannels.d.ts +0 -2
- package/package.json +3 -3
- package/typings/libs/FutureCoreHelper.d.ts +0 -5
- package/dist/projects/online/src/apps/playlists/OnlinePlaylistsApplication.d.ts +0 -32
- package/dist/projects/online/src/apps/playlists/components/playlist-header/PartialPlaylistHeader.d.ts +0 -2
- package/dist/projects/online/src/apps/playlists/components/video-list/VideoList.d.ts +0 -8
- package/dist/projects/online/src/apps/playlists/flight-requests/ClassificationRequests.d.ts +0 -4
- package/dist/projects/online/src/apps/playlists/views/play-shared-playlist/PlaySharedPlaylistView.d.ts +0 -11
- package/dist/projects/online/src/apps/playlists/views/play-shared-playlist/index.d.ts +0 -1
- package/dist/projects/online/src/apps/playlists/views/shared-playlist/SharedPlaylistView.d.ts +0 -6
- package/dist/projects/online/src/apps/subjects/views/classification-playlist/components/PartialPlaylistHeader.d.ts +0 -2
- package/dist/projects/online/src/shared/hooks/UseMixinVideoRestrictions.d.ts +0 -14
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("FontAwesome"),require("SortableHOC"),require("ReactIntersectionObserver"),require("ReactTransitionGroup"),require("Polyglot"),require("DOMPurify"),require("Autosuggest"),require("Handlebars")):"function"==typeof define&&define.amd?define(["React","_","Backbone","ReactBootstrap","ReactRedux","Marionette","$","moment","ReactDOM","FontAwesome","SortableHOC","ReactIntersectionObserver","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("FontAwesome"),require("SortableHOC"),require("ReactIntersectionObserver"),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.FontAwesome,e.SortableHOC,e.ReactIntersectionObserver,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=451)}([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(187),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(74)(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(352)),c=r(n(391)),u=n(27),s=r(n(398)),l=r(n(90)),f=r(n(399)),p=r(n(28)),d=r(n(400)),h=r(n(60)),y=r(n(44)),m=n(220),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"],k=0;k<O.length;k++){g[O[k]]=g.oneOf}for(var x=["not","nope"],C=0;C<x.length;C++){g[x[C]]=g.notOneOf}g.optional=g.notRequired,e.exports=t.default},function(e,t,n){var r=n(332),o=n(335);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(323),o=n(185);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(34),o=n(324),i=n(325),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(194),o=n(365),i=n(87);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,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(350);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(375),o=n(79),i=n(376),a=n(377),c=n(378),u=n(33),s=n(189),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=l},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={rowWidth:"_8IgrO",largeRowWidth:"q46rm",hovering:"IeeJA",transition:"_1s6UK"}},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(340),o=n(341),i=n(342),a=n(343),c=n(344);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(78);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(346);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(76);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(360);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(193),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(99))},function(e,t,n){"use strict";(function(e){var r=n(7),o=n(229),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(74)(e))},function(e,t){e.exports=f},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(422));t.bool=i.default;var a=r(n(423));t.string=a.default;var c=r(n(424));t.number=c.default;var u=r(n(425));t.date=u.default;var s=r(n(427));t.object=s.default;var l=r(n(448));t.array=l.default;var f=r(n(44)),p=r(n(449)),d=r(n(91));t.ValidationError=d.default;var h=r(n(220));t.reach=h.default;var y=r(n(28));t.isSchema=y.default;var m=r(n(450));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={tile:"HD1yl",logo:"_1avTz",libraryInner:"_33THd"}},function(e,t,n){e.exports={partialLibraryTile:"_1X-lC"}},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(98),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(),k=a(),x=a("{"),C=a("["),A=a("<"),j=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=k,t.OPENBRACE=x,t.OPENBRACKET=C,t.OPENANGLEBRACKET=A,t.OPENPAREN=j,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(76),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(329),o=n(345),i=n(347),a=n(348),c=n(349);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(354),i=n(355),a=n(356),c=n(357),u=n(358);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(363),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(83)(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(187),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(83)(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(188),o=n(80);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(372),o=n(199),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(205);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(210)),i=n(211),a=r(n(91)),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(320)},function(e,t,n){"use strict";var r=n(321),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(186),o=n(191),i=n(12),a=n(192),c=n(80),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(75),i=n(326),a=n(42);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(99))},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(351),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(78),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(362),o=n(191),i=n(12),a=n(82),c=n(192),u=n(195),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(364),o=n(84),i=n(85),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(194),o=n(368),i=n(87);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(201),o=n(202),i=n(88),a=n(199),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(196)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(204),o=n(88),i=n(36);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(201),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(394),o=n(209),i=n(395);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(213),i=n(214);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(401),o=n(36);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(403),o=n(414),i=n(418),a=n(12),c=n(419);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(405),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(406),o=n(409),i=n(410);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(186),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(428);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(430),o=n(431),i=n(434),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(313);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(314).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(74)(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.15-dev.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){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(315));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(316)),i=c(n(317)),a=c(n(318));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(97),o=n(73),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(),k=w.pop(),x=E.pop(),C=S.pop(),A=f(o.DOMAIN),j=f(o.PROTOCOL),_=f(o.MAILTO);k.on("s",A).on(":",j),x.on("s",A).on(":",j),l.push(A),O.on(":",j),A.on(":",j),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(97),o=n(319),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(73);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(),k=c(o.URL),x=c(o.URL),C=c(o.URL),A=c(o.URL),j=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),k.on(a.CLOSEBRACE,b),x.on(a.CLOSEBRACKET,b),C.on(a.CLOSEANGLEBRACKET,b),A.on(a.CLOSEPAREN,b),j.on(a.CLOSEBRACE,b),_.on(a.CLOSEBRACKET,b),L.on(a.CLOSEANGLEBRACKET,b),P.on(a.CLOSEPAREN,b),w.on(B,k),E.on(B,x),S.on(B,C),O.on(B,A),w.on(q,j),E.on(q,_),S.on(q,L),O.on(q,P),k.on(B,k),x.on(B,x),C.on(B,C),A.on(B,A),k.on(q,k),x.on(q,x),C.on(q,C),A.on(q,A),j.on(B,k),_.on(B,x),L.on(B,C),P.on(B,A),j.on(q,j),_.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(98),o=n(52),i=n(73);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"}')},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
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var r,o,i,a,c;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,s=null,l=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(l,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(l,0))},o=function(e,t){s=setTimeout(e,t)},i=function(){clearTimeout(s)},a=function(){return!1},c=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,h=window.setTimeout,y=window.clearTimeout,m=window.requestAnimationFrame,v=window.cancelAnimationFrame;if("undefined"!=typeof console&&("function"!=typeof m&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var b=d.now();t.unstable_now=function(){return d.now()-b}}var g=!1,w=null,E=-1,S=5,O=0;a=function(){return t.unstable_now()>=O},c=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):S=0<e?Math.floor(1e3/e):33.33};var
|
|
9
|
+
*/var r,o,i,a,c;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,s=null,l=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(l,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(l,0))},o=function(e,t){s=setTimeout(e,t)},i=function(){clearTimeout(s)},a=function(){return!1},c=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,h=window.setTimeout,y=window.clearTimeout,m=window.requestAnimationFrame,v=window.cancelAnimationFrame;if("undefined"!=typeof console&&("function"!=typeof m&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var b=d.now();t.unstable_now=function(){return d.now()-b}}var g=!1,w=null,E=-1,S=5,O=0;a=function(){return t.unstable_now()>=O},c=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):S=0<e?Math.floor(1e3/e):33.33};var x=new MessageChannel,k=x.port2;x.port1.onmessage=function(){if(null!==w){var e=t.unstable_now();O=e+S;try{w(!0,e)?k.postMessage(null):(g=!1,w=null)}catch(e){throw k.postMessage(null),e}}else g=!1},r=function(e){w=e,g||(g=!0,k.postMessage(null))},o=function(e,n){E=h((function(){e(t.unstable_now())}),n)},i=function(){y(E),E=-1}}function C(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),o=e[r];if(!(void 0!==o&&0<_(o,t)))break e;e[r]=t,e[n]=o,n=r}}function j(e){return void 0===(e=e[0])?null:e}function A(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],c=i+1,u=e[c];if(void 0!==a&&0>_(a,n))void 0!==u&&0>_(u,a)?(e[r]=u,e[c]=n,r=c):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>_(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var L=[],P=[],N=1,R=null,T=3,I=!1,F=!1,D=!1;function M(e){for(var t=j(P);null!==t;){if(null===t.callback)A(P);else{if(!(t.startTime<=e))break;A(P),t.sortIndex=t.expirationTime,C(L,t)}t=j(P)}}function U(e){if(D=!1,M(e),!F)if(null!==j(L))F=!0,r(V);else{var t=j(P);null!==t&&o(U,t.startTime-e)}}function V(e,n){F=!1,D&&(D=!1,i()),I=!0;var r=T;try{for(M(n),R=j(L);null!==R&&(!(R.expirationTime>n)||e&&!a());){var c=R.callback;if(null!==c){R.callback=null,T=R.priorityLevel;var u=c(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?R.callback=u:R===j(L)&&A(L),M(n)}else A(L);R=j(L)}if(null!==R)var s=!0;else{var l=j(P);null!==l&&o(U,l.startTime-n),s=!1}return s}finally{R=null,T=r,I=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=c;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,a){var c=t.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0<u?c+u:c,a="number"==typeof a.timeout?a.timeout:z(e)}else a=z(e),u=c;return e={id:N++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>c?(e.sortIndex=u,C(P,e),null===j(L)&&e===j(P)&&(D?i():D=!0,o(U,u-c))):(e.sortIndex=a,C(L,e),F||I||(F=!0,r(V))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var n=j(L);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||a()},t.unstable_requestPaint=H,t.unstable_continueExecution=function(){F||I||(F=!0,r(V))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return j(L)},t.unstable_Profiling=null},function(e,t,n){"use strict";e.exports=n(318)},function(e,t,n){"use strict";
|
|
10
10
|
/** @license React v16.13.1
|
|
11
11
|
* react-is.production.min.js
|
|
12
12
|
*
|
|
@@ -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(327),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(328);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(77);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(330),o=n(54),i=n(79);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(331),o=n(336),i=n(337),a=n(338),c=n(339);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(188),o=n(333),i=n(35),a=n(189),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(334),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(190),i=n(12),a=n(76),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(353);e.exports=function(e,t){return r(e,5,t="function"==typeof t?t:void 0)}},function(e,t,n){var r=n(81),o=n(359),i=n(193),a=n(361),c=n(367),u=n(370),s=n(198),l=n(371),f=n(373),p=n(203),d=n(374),h=n(43),y=n(379),m=n(380),v=n(385),b=n(12),g=n(82),w=n(387),E=n(35),S=n(389),O=n(36),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function e(t,n,x,C,A,j){var _,L=1&n,P=2&n,N=4&n;if(x&&(_=A?x(t,C,A,j):x(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&&!A){if(_=P||I?{}:v(t),!L)return P?f(t,c(_,t)):l(t,a(_,t))}else{if(!k[T])return A?t:{};_=m(t,T,L)}}j||(j=new r);var F=j.get(t);if(F)return F;j.set(t,_),S(t)?t.forEach((function(r){_.add(e(r,n,x,r,t,j))})):w(t)&&t.forEach((function(r,o){_.set(o,e(r,n,x,o,t,j))}));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,x,o,t,j))})),_}},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(79),i=n(77);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(80),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(86),o=n(366),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(196)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(59),o=n(197);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(35),o=n(86),i=n(369),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(83)(e))},function(e,t,n){var r=n(59),o=n(88);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(200);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(204),o=n(200),i=n(197);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(89),o=n(381),i=n(382),a=n(383),c=n(384);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(89);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(89);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(386),o=n(202),i=n(86);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(388),o=n(84),i=n(85),a=i&&i.isMap,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(43),o=n(18);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(390),o=n(84),i=n(85),a=i&&i.isSet,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(43),o=n(18);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(34),o=n(198),i=n(43),a=n(87),c=n(392),u=n(393),s=n(206),l=n(207),f=n(208),p=n(396),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(397),o=n(36);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(190);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(210)),i=r(n(31)),a=r(n(212)),c=r(n(91)),u=r(n(44)),s=n(211),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(402)();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(404),o=n(413),i=n(218);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(81),o=n(215);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(81),o=n(216),i=n(411),a=n(412),c=n(43),u=n(12),s=n(82),l=n(195),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__"),k=E&&p.call(t,"__wrapped__");if(O||k){var x=O?e.value():e,C=k?t.value():t;return y||(y=new r),h(x,C,n,d,y)}}return!!S&&(y||(y=new r),a(e,t,n,d,h,y))}},function(e,t,n){var r=n(77),o=n(407),i=n(408);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(205),i=n(78),a=n(216),c=n(206),u=n(207),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(203),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(217),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(215),o=n(415),i=n(416),a=n(75),c=n(217),u=n(218),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(219);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(417),o=n(185);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(420),o=n(421),i=n(75),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(219);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(426)),c=n(27),u=r(n(62)),s=r(n(44)),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(221),o=n(5);t.__esModule=!0,t.default=O;var i=o(n(222)),a=o(n(31)),c=o(n(32)),u=o(n(429)),s=o(n(438)),l=o(n(444)),f=o(n(212)),p=n(61),d=o(n(25)),h=n(27),y=o(n(445)),m=o(n(447)),v=o(n(37)),b=o(n(224)),g=r(n(90));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(223)((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(432),o=n(42),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(433)({"À":"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(435),o=n(436),i=n(42),a=n(437);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(439),o=n(223)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=o},function(e,t,n){var r=n(42),o=n(440);e.exports=function(e){return o(r(e).toLowerCase())}},function(e,t,n){var r=n(441)("toUpperCase");e.exports=r},function(e,t,n){var r=n(442),o=n(209),i=n(208),a=n(42);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(443);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(213),i=n(214);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(446)),a=n(61),c=r(n(44)),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(221),o=n(5);t.__esModule=!0,t.default=void 0;var i=o(n(31)),a=o(n(222)),c=o(n(37)),u=o(n(62)),s=o(n(28)),l=o(n(224)),f=o(n(60)),p=o(n(25)),d=n(27),h=r(n(90));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 kt})),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 go})),n.d(o,"getResponse",(function(){return wo})),n.d(o,"getFetch",(function(){return Eo})),n.d(o,"fetch",(function(){return So})),n.d(o,"useGetFetch",(function(){return Oo})),n.d(o,"useGetResponse",(function(){return ko})),n.d(o,"useBasicFetch",(function(){return xo})),n.d(o,"createMiddleware",(function(){return Ro})),n.d(o,"FlightReducer",(function(){return Ho})),n.d(o,"Simulator",(function(){return ni})),n.d(o,"Actions",(function(){return Wr})),n.d(o,"RequestStatus",(function(){return qr})),n.d(o,"ajaxRequest",(function(){return Zr})),n.d(o,"normalize",(function(){return oo})),n.d(o,"denormalize",(function(){return co}));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),n(309),n(310),n(311),n(312);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 k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&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"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function 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){j(n,e);var t=_(n);function n(e){return A(this,n),t.call(this,e)}return n}(P(Error)),D=function(e){j(n,e);var t=_(n);function n(){return A(this,n),t.apply(this,arguments)}return C(n,[{key:"name",get:function(){return"SilentError"}}]),n}(F),M=function(e){j(n,e);var t=_(n);function n(){return A(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 ke(e,t,n){return(ke="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=je(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 xe(e,t){return(xe=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=je(e);if(t){var o=je(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ae(this,n)}}function Ae(e,t){return!t||"object"!==Ee(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function je(e){return(je=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&&xe(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],ke(je(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 kt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("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 xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.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 At(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jt(e,t,n){return(jt="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"!==xt(t)&&"function"!=typeof t?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"===xt(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 jt(Nt(i.prototype),"set",this).call(this,o,n)}},{key:"get",value:function(e){var t=e.indexOf(".");if(-1===t)return jt(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 jt(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 kt&&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 kt?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=jt(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(jt(Nt(i.prototype),"toJSON",this).apply(this,t),u.keys(this.associations))}}])&&At(t.prototype,n),r&&At(t,r),i}(kt);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",CLASSIFICATION:"classification"},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",LATEST_RELEASES:"latest:releases"},Sn={HOME:"index",WIDGET:"widget",VIDEO:"video",SERIES:"series",ADD_TO_PLAYLIST:"add:to:playlist"},On={HOME:"index",LIBRARY:"library",CONTENT_UPDATES:"content:updates",LATEST_RELEASES:"latest:releases",SERIES:"series",VIDEO:"video",INTERACTVIES:"interactives",MOST_RECENT:"most:recent"},kn="user:playlists",xn="video",Cn="default:application",An="playlist:application",jn="subject:application",_n="subject:playlists:application",Ln="content:updates:application",Pn="dashboard:application",Nn="movies:and:tv:application",Rn="libraries:application",Tn="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 In="categories{libraries.typeid:".concat(hn.CustomMediaObjectCollection,"}"),Fn={VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(In,",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"},Dn=function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},Mn=function(e){return"subjectpresentationaudiences{presentationId:".concat(e,"}")},Un=function(e){return Fn.CLASSIFICATION+",followers{id:".concat(e,"},videos[count()]{limit:0}")+",playlists[count()]{limit:0},series[count()]{limit:0}"};var Vn,zn,Hn,Bn=(Vn={},zn=An,Hn=[vn.PLAY_PLAYLIST,vn.PLAY_PLAYLIST_VIDEO],zn in Vn?Object.defineProperty(Vn,zn,{value:Hn,enumerable:!0,configurable:!0,writable:!0}):Vn[zn]=Hn,Vn),qn={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)?qn.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 $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 Yn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=qn.deepClone(t);e.set(r,n)},Gn=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="object"===$n(n)?qn.deepClone(n):n;e.set(t,o,r)},Kn={getClickView:function(){if(window.ClickView)return window.ClickView;r.ErrorHelper.throw(new Ye("ClickView is undefined"))},getMasterVideoModel:function(e){var t=Kn.getClickView().Shared;return new(0,t.Models.MasterVideo)(t.Helpers.MasterToOnlineVideo(qn.deepClone(e)))},getMasterPlaylistModel:function(e){return new(0,Kn.getClickView().Shared.Models.MasterPlaylistV2)(qn.deepClone(e))},getVideoActionsCollection:function(e){var t=Kn.getClickView().Shared.Services.VideoActionService.getActions(e);return new(0,Kn.getClickView().Shared.Collections.VideoActionCollection)(t)},getVideoUrl:function(e){var t=Kn.getMasterVideoModel(e);return Kn.getClickView().Shared.Services.ObjectLinkService.getVideoUrl(t)},isVideoRestricted:function(e){return Kn.getMasterVideoModel(e).isRestricted()}},Wn=n(8),Jn={getContainerEl:function(){var e=Wn("body").find(".".concat("playlist-app-popup-container"));return e.length||(e=Wn('<div class="'.concat("playlist-app-popup-container",'"></div>')).appendTo("body")),e[0]},position:function(e){var t=Wn(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(Wn.fn.mask)return Wn("body").mask({opacity:.4,bgColour:"#000"}).show()},lockBody:function(){window.scrollLock=!0;var e=window.scrollY;return Jn.lockContainer(e),Jn.lockHorizontalBars(e),Wn("body").addClass("lock"),e},lockContainer:function(e){var t=e,n=Wn("#content-container");window.innerWidth>Kn.getClickView().Data.Breakpoints.sm?t-=n.offset().top:t-=Wn("#sub-nav").outerHeight(!0),n.css("top",-t+"px")},lockHorizontalBars:function(e){var t=e,n=Jn.getHorizontalBars(),r=[Wn(".navbar"),Wn("#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[Wn(".maintenance-banner"),Wn(".trial-info-container"),Wn("#top-black-bar")]},onPopupClose:function(e){window.scrollLock=!1,Wn("body").removeClass("lock"),Wn("#content-container").css("top",""),u.each(Jn.getHorizontalBars(),(function(e){e.css("top","")}));var t=Wn(".navbar");t.css("top",""),Wn("#sub-nav").css("top",t.outerHeight(!0)+"px"),window.scrollTo(0,e)}};function Xn(e){return(Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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){return(er=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=rr(e);if(t){var o=rr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nr(this,n)}}function nr(e,t){return!t||"object"!==Xn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rr(e){return(rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var or=[vn.PLAYLIST,vn.PLAY_PLAYLIST,vn.PLAY_PLAYLIST_VIDEO],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&&er(e,t)}(u,e);var t,n,o,i=tr(u);function u(){return Zn(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"initialize",value:function(){this.onlineContextService=Kn.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!==or.indexOf(t)?this.setPlaylistContext(n[0].toString()):this.clearContext()}},{key:"setPlaylistContext",value:function(e){var t=Kn.getClickView().Shared.Utils.Constants.CONTEXTS.SEARCH_NAV,n=Kn.getMasterPlaylistModel({id:e});this.getPlaylist(e,(function(e){Yn(n,e),n.trigger("sync")})),this.onlineContextService.setContext(t,n)}},{key:"clearContext",value:function(){var e=Kn.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}}])&&Qn(t.prototype,n),o&&Qn(t,o),u}(r.Service),ar=n(0),cr=n.n(ar),ur=n(19),sr=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 fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dr(e,t){return(dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hr(e){var 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=mr(e);if(t){var o=mr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yr(this,n)}}function yr(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 mr(e){return(mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dr(e,t)}(i,e);var t,n,r,o=hr(i);function i(){return fr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"isReactComponent",value:function(e){return ar&&ar.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"),ur.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return ur.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return ur.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return ar.createElement(sr.Provider,{store:this.options.store},e)}}])&&pr(t.prototype,n),r&&pr(t,r),i}(yt),br="left:nav",gr="content",wr="popup",Er="alert",Sr=function(e,t,n){return u.throttle(e,t,n)},Or=function(e){return u.isFunction(e)};function kr(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 xr(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 xr(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 xr(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 Cr(e){return function(e){if(Array.isArray(e))return Ar(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 Ar(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 Ar(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 Ar(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 jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=ar.useRef(null);return ar.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()}}}),Cr(t)),n}var _r=n(225),Lr=n(226),Pr={ALERT:"AlertService",SCROLL:"ScrollService",LANGUAGE:"LanguageService"};function Nr(e){return(Nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tr(e,t){for(var n=0;n<t.length;n++){var 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 Fr(e){var 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=Mr(e);if(t){var o=Mr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dr(this,n)}}function Dr(e,t){return!t||"object"!==Nr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mr(e){return(Mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ur=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("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=Fr(i);function i(){return Rr(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 _r({locale:e.locale,phrases:e.phrases.rootElement||e.phrases}),this.cache={}}},{key:"getPhrase",value:function(e,t,n){var r="".concat(e,".").concat(t);if(this.polyglot||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]=Lr.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 Pr.LANGUAGE}}])&&Tr(t.prototype,n),r&&Tr(t,r),i}(zt).Instance,Vr=" - ClickView",zr=function(e){e&&r.LocationUtils.SetPageTitle(function(e){return e.length+Vr.length<=60?e+Vr:e.substring(0,57)+"..."+Vr}(e))};function Hr(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 Br(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 Br(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 Br(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 qr,$r,Yr=ar.createContext({}),Gr=function(){return Ur.getPhrase("shared.context","defaultTitle")},Kr=function(e){var t=e.children,n=Hr(ar.useState(Gr),2),r=n[0],o=n[1],i=Hr(ar.useState(Gr),2),a=i[0],c=i[1];return ar.useEffect((function(){return zr(r)}),[r]),ar.createElement(Yr.Provider,{value:{setPageTitle:function(e){e!==r&&(r!==a&&c(r),o(e))},revertPageTitle:function(){o(a)}}},t)},Wr={API_REQUEST:"API_REQUEST",API_REPONSE:"API_RESPONSE",API_ERROR:"API_ERROR",INVALIDATE:"INVALIDATE",UPDATE:"UPDATE"};function Jr(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"}(qr||(qr={})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}($r||($r={}));var Xr=[$r.POST,$r.PUT];function Zr(e){var t=e.resource,n=e.type,r=e.success,o=e.error,i=e.always,a={url:t,method:n};Xr.includes(n)&&e.data&&(a.data=JSON.stringify(e.data)),$.ajax(a).done((function(e,t,n){r&&r(e,Jr(n))})).fail((function(e,t,n){o&&o(Jr(e))})).always((function(){i&&i()}))}function Qr(e){return(Qr="function"==typeof Symbol&&"symbol"==typeof Symbol.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]||U.throw(new Ye("There was an issue during normalization. Object did not have an id attribute.")),"".concat(i,"__").concat(e[r])}function to(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)),ro(e,t,n)})),i}function no(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=to(a,t,n);c.length&&(i[r]=c)}else if("object"===Qr(a)){var u=no(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 ro(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)return Array.isArray(e)?to(e,t,n):"object"===Qr(e)?no(e,t,n):e}function oo(e,t){var n={};return{result:ro(e,n,t),entities:n}}function io(e){return(io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ao(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};var r=ao(t[e],t,n);return Object.assign(n[e],r),qn.isEmpty(n[e])&&delete n[e],n[e]}(e,t,n);if(Array.isArray(e))return e.map((function(e){return ao(e,t,n)}));if("object"===io(e)){var r={};return Object.keys(e).forEach((function(o){r[o]=ao(e[o],t,n)||e[o]})),r}}}function co(e,t){return ao(e,t,{})}function uo(e,t){return e===t}function so(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 lo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uo,n=null,r=null;return function(){return so(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function fo(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 po(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=fo(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 ho=po(lo);var yo={currentTimestamp:function(){return(new Date).valueOf()},isExpired:function(e,t){if(!t)return!1;var n=1e3*t;return e<yo.currentTimestamp()-n},currentTimeOfDay:function(e){e||(e=new Date);var t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"}};function mo(e,t){for(var n=0;n<t.length;n++){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 vo=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===qr.None||this.isExpired}},{key:"isExpired",get:function(){return yo.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===qr.Fetching}},{key:"hasError",get:function(){return this.status===qr.Error}},{key:"isComplete",get:function(){return this.status===qr.Success||this.status===qr.Error}}])&&mo(t.prototype,n),r&&mo(t,r),e}();function bo(e,t,n){if(!e||!t)return go();var r=t.response;return!1!==t.request.normalize&&(r=co(t.response,n)),new vo({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function go(){return new vo({status:qr.None})}function wo(e,t){return bo(t,e.flightData.resources[t],e.flightData.entities)}function Eo(e,t){return function(){So(e,t)}}function So(e,t){e({type:Wr.API_REQUEST,request:t})}function Oo(e){return Eo(Object(sr.useDispatch)(),e)}function ko(e,t){var n=Object(ar.useMemo)((function(){var n;return(null===(n=t)||void 0===n?void 0:n.optimize)?function(e){return po(lo,(function(e,t){var n=["response","request"];return qn.isEqual(qn.omit(e,n),qn.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 bo(e,t,n)}))}(e):function(e){return ho((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return bo(e,t,n)}))}(e)}),[e]);return Object(sr.useSelector)((function(e){return n(e)}))}function xo(e,t){var n=Object(sr.useDispatch)(),r=ko(e&&e.key,t),o=Eo(n,e);return e&&r.shouldFetch&&o(),r}function Co(e){return function(e){if(Array.isArray(e))return Ao(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 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)||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 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}var jo,_o=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,Co(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"}(jo||(jo={}));var Lo=function(e){var t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},Po=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:jo.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))},No=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 Ro(e){var t=e.fetchData,n=e.bootstrappedData,r=e.defaultExpiryTime,o=Object.freeze({key:null,url:null,type:$r.GET,normalize:!0,formatData:function(e){return e},expiryTime:r});return function(e){return function(r){return function(i){if(i.type===Wr.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=No(c,["success","error","always","formatData"]),d=a.flightData.resources[p.key];if(r(i),!d||d.status!==qr.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:Wr.API_ERROR,errorResponse:t.responseJSON,request:i.request,timestamp:yo.currentTimestamp(),xhr:t}),s&&s(t)},always:m};return void(Lo(p)?Po(h,p):t(h))}}else r(i);function y(t,n){var r=f(t),o={result:r,entities:{}};(p.normalize&&(o=oo(r,p.normalizeOptions)),e.dispatch({type:Wr.API_REPONSE,result:o.result,entities:o.entities,request:p,timestamp:yo.currentTimestamp(),xhr:n}),p.updateState)&&(Array.isArray(p.updateState)?p.updateState:[p.updateState]).forEach((function(t){var n,r,o,i;n=t,r=_o(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=co(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=oo(r,n.request.normalizeOptions)),e.dispatch({type:Wr.UPDATE,result:o.result,entities:o.entities,request:n.request})}))}));if(u){var i=o.result;p.normalize&&(i=co(o.result,Object.assign(Object.assign({},a.flightData.entities),o.entities))),u(i)}}function m(){p.invalidationKeys&&e.dispatch({type:Wr.INVALIDATE,keys:p.invalidationKeys,request:p}),l&&l()}}}}}function To(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Io(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 Fo(e,t){var n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),To({},t.request.key,{request:t.request,status:qr.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}))}}function Do(e,t){var n,r=t.entities?Object.keys(t.entities):[];return{entities:Io(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),To({},t.request.key,{request:t.request,status:qr.Success,response:t.result,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status,entityIds:r}))}}function Mo(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),To({},t.request.key,{request:t.request,status:qr.Error,errorResponse:t.errorResponse,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status}))}}function Uo(e,t){var n,r=_o(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:qr.None}),t}),{}))}}function Vo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zo,t=arguments.length>1?arguments[1]:void 0,n=t.entities?Object.keys(t.entities):[];return{entities:Io(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),To({},t.request.key,Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})))}}var zo={resources:{},entities:{}};function Ho(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Wr.API_REQUEST:return Fo(e,t);case Wr.API_REPONSE:return Do(e,t);case Wr.API_ERROR:return Mo(e,t);case Wr.INVALIDATE:return Uo(e,t);case Wr.UPDATE:return Vo(e,t)}return e}function Bo(e){return function(e){if(Array.isArray(e))return qo(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 qo(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 qo(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 qo(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 $o=function(e){return u.first(e)},Yo=function(e){return u.last(e)},Go=function(e,t){return u.max(e,t)},Ko=function(e,t,n){var r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},Wo=function(e){return e&&!e.length},Jo=function(e,t){return u.findIndex(e,t)},Xo=function(e,t){var n=e.indexOf(t),r=qn.deepClone(e);return-1===n?[].concat(Bo(r),[t]):[].concat(Bo(r.slice(0,n)),Bo(r.slice(n+1)))},Zo=function(e){return u.uniq(e)};var Qo="id";function ei(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function ti(e){var t=localStorage.getItem(e);return t?JSON.parse(t):null}var ni={getAll:function(e,t){var n=ti(e);return n&&n.length?n:!n&&t?(t.forEach((function(t){return ni.create(e,t)})),ti(e)):[]},get:function(e,t){var n=ni.getAll(e);return n.length?n.find((function(e){return e[Qo]===t})):null},create:function(e,t){var n=ni.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}({},Qo,t[Qo]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString()));return n.push(r),ei(e,n),r},update:function(e,t){var n=ni.getAll(e);if(!n.length)return t;var r=n.findIndex((function(e){return e[Qo]===t[Qo]}));return n[r]=t,ei(e,n),t},delete:function(e,t){var n=ni.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach((function(e){var t=n.findIndex((function(t){return t[Qo]===e}));n.splice(t,1)})),ei(e,n))},assoc:function(e,t,n,r,o){var i=Array.isArray(o),a=i?o:[o];"string"==typeof $o(a)&&(a=ni.getAll(r).filter((function(e){return a.includes(e.id)})));var c=a.map((function(e){return e.id?e:ni.create(r,e)})),u=ni.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})),ei(e,u=u.map((function(e){return e.id!==s.id?e:s}))),i?c:$o(c)}},dissoc:function(e,t,n,r){var o=ni.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,ei(e,o=o.map((function(e){return e.id!==i.id?e:i}))),o}}}},ri={url:"/api/currentUser",key:"currentuser"};function oi(e){o.useBasicFetch(ri),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 ii=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},ai=function(e){var t=e.className,n=e.children;return ar.createElement("div",{className:t},n)},ci=function(e){var t,n,r=e.leftNavChild,o=e.contentChild,i=e.popupChild,a=e.alertChild;return t=i,n=ar.useContext(Yr),ar.useEffect((function(){!t&&n&&Or(n.revertPageTitle)&&n.revertPageTitle()}),[t]),ar.createElement(ar.Fragment,null,ar.createElement(ai,{className:"left-nav-region"},r),ar.createElement(ai,{className:"content-region right"},o),ar.createElement(ai,{className:"popup-region"},i),ar.createElement(ai,{className:"alert-region"},a))},ui=function(e){var t=e.provider,n=ii(e,["provider"]);return t?ar.createElement(t,null,ar.createElement(ci,Object.assign({},n))):ar.createElement(ci,Object.assign({},n))},si=n(227),li=n.n(si);function fi(e){return(fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function di(e,t,n){return(di="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=vi(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 hi(e,t){return(hi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yi(e){var 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 mi(this,n)}}function mi(e,t){return!t||"object"!==fi(t)&&"function"!=typeof t?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 bi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hi(e,t)}(a,e);var t,n,r,o=yi(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[br],contentChild:this.childComponents[gr],popupChild:this.childComponents[wr],alertChild:this.childComponents[Er]}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"hideLeftNav",value:function(){this.unsetRegion(br)}},{key:"closePopup",value:function(){this.unsetRegion(wr)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,e!==br||this.leftNavVisible||this.options.hideLeftNav||this.showLeftNav(),e===wr&&s.Radio.channel(f.POPUP).trigger("popup:render"),this.renderLayout()}},{key:"renderLayout",value:function(){di(vi(a.prototype),"showChildView",this).call(this,"layout",this.wrapWithStore(ar.createElement(ui,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}}])&&pi(t.prototype,n),r&&pi(t,r),a}(vr);function gi(e){return(gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ei(e,t){for(var n=0;n<t.length;n++){var 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 t&&Ei(e.prototype,t),n&&Ei(e,n),e}function Oi(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ki(e,t)}function ki(e,t){return(ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xi(e){var 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=Ai(e);if(t){var o=Ai(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ci(this,n)}}function Ci(e,t){return!t||"object"!==gi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ai(e){return(Ai=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ji=function(e){Oi(n,e);var t=xi(n);function n(){return wi(this,n),t.apply(this,arguments)}return Si(n,[{key:"channelName",get:function(){return Cn}},{key:"externalRoutes",get:function(){return{"(/)":"index","videos/:id":"video","series/:id":"series"}}}]),n}(r.AppRouter),_i=function(e){Oi(n,e);var t=xi(n);function n(){return wi(this,n),t.apply(this,arguments)}return Si(n,[{key:"name",get:function(){return"Default Application"}},{key:"channelName",get:function(){return Cn}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT}}}],[{key:"router",get:function(){return ji}}]),n}(r.Application);function Li(e){return function(e){if(Array.isArray(e))return Pi(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 Pi(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 Pi(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 Pi(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 Ni=function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var r=Ko(e,t,n),o=n<e.length-1?r[n+1].id:null;return{reorderedItems:r,reorderRequest:{sourceMemberId:r[n].id,destinationMemberId:o}}},Ri=function(e,t,n){for(var r=[],o=qn.deepClone(n),i=[e],a=n[e],c=!!a&&!!a.data&&a.data.length;a&&Array.isArray(a.data);){r.push.apply(r,Li(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=Jo(r,(function(e){return e.id===t.sourceMemberId})),f=[].concat(r),p=f.splice(l,1),d=t.destinationMemberId?Jo(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 Ti(e,t){for(var n=0;n<t.length;n++){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 Ii,Fi=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")),""}}])&&Ti(t.prototype,n),r&&Ti(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"}(Ii||(Ii={}));var Di,Mi={type:Ii.Unknown,message:"",code:0};!function(e){e.Newest="newest",e.RecentlyUpdated="recentlyupdated",e.AtoZ="atoz"}(Di||(Di={}));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){return(zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hi(e){var 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=qi(e);if(t){var o=qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bi(this,n)}}function Bi(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 qi(e){return(qi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $i,Yi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zi(e,t)}(n,e);var t=Hi(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Vi(this,n),t.call(this,{collectionPrefix:"playlist:videos",id:e,cursor:r})}return n}(Fi);!function(e){e[e.Queued=1]="Queued",e[e.Processing=2]="Processing",e[e.Processed=3]="Processed",e[e.Errored=4]="Errored"}($i||($i={}));var Gi=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}},Ki=function(e){return function(t){var n=Object.assign({},t);return n.hasOwnProperty(e)&&delete n[e],n}},Wi=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}},Ji=function(e){switch(e){case Di.RecentlyUpdated:return"orderbydesc:timestamp";case Di.AtoZ:return"orderby:name";case Di.Newest:default:return"orderbydesc:datecreated"}},Xi=function(e){switch(e){case"recentlyupdated":return Di.RecentlyUpdated;case"atoz":return Di.AtoZ;case"newest":default:return Di.Newest}},Zi=function(e){return e?"&cursor=".concat(e):""},Qi=function(e){return Number.isInteger(e)?"&maxRatingValue=".concat(e):""},ea=function(e,t){return"".concat(e).concat(t?":".concat(t):"")},ta={getPlaylist:function(e,t,n){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Fn.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(Fn.PLAYLIST).concat(Qi(t)),key:"shared:playlist:".concat(e),success:n,error:r}},getUserPlaylists:function(e){var t=Ji(e.sort);return{url:"/api/domain/v2/me/playlists?query={".concat(t,",limit:100}")+"".concat(Fn.PLAYLIST_COLLECTION).concat(Zi(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(Fn.VIDEO_COLLECTION).concat(Zi(n)),key:ea("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(Fn.VIDEO_COLLECTION).concat(Zi(n)).concat(Qi(t)),key:ea("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:ea("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:$r.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:$r.PUT,success:n,error:r,updateState:{keys:"playlist:".concat(e),updateData:Gi("playlist:".concat(e),t)}}},deletePlaylist:function(e,t,n){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(e),type:$r.DELETE,success:t,error:n,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(e),updateData:Ki("playlist:".concat(e))}}},addToPlaylist:function(e,t,n,r){var o=["user:playlists",new Yi(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:$r.POST,success:n,error:r,invalidationKeys:o,updateState:{keys:"playlist:".concat(e),updateData:Wi("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:$r.PUT,success:n,error:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(e,":videos"),updateData:function(n){return Ri("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:$r.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:$r.PUT}},unfollowPlaylist:function(e,t){return{url:"/api/domain/v2/objects/".concat(t,"/followedplaylists/").concat(e),key:"unfollow:playlist:".concat(e),type:$r.DELETE}},getMigrationTask:function(e,t){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(e){return e||{status:$i.Processed}},success:e,error:t}}};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)}}var ra,oa,ia,aa,ca,ua,sa,la,fa,pa,da,ha,ya,ma,va,ba,ga,wa,Ea,Sa,Oa,ka=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=ta.getPlaylist(e,t,n),i=o.getResponse(this.store.getState(),r.key);return i.shouldFetch?o.fetch(this.store.dispatch,r):i.data&&Or(t)&&t(i.data),i.data}},{key:"getMigrationTask",value:function(e,t){var n=ta.getMigrationTask(e,t),r=o.getResponse(this.store.getState(),n.key);return r.shouldFetch?o.fetch(this.store.dispatch,n):r.data&&Or(e)&&e(r.data),r.data}},{key:"name",get:function(){return a.PLAYLIST}},{key:"channelName",get:function(){return Tn}}])&&na(t.prototype,n),r&&na(t,r),e}(),xa=n(228),Ca=n.n(xa),Aa=/&/g,ja=/[\W]+/g,_a=/\s+/g,La={className:"info-link"},Pa=function(e){if(e)return e.toLowerCase().replace(Aa,"and").replace(ja," ").trim().replace(_a,"-").substr(0,80)},Na=function(e,t){if(e){var n=t?u.extend({},La,t):La;return Ca()(e,n)}};!function(e){e.Stream="cv_product_stream",e.StreamRaw="cv_product_stream_raw",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning"}(ra||(ra={})),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="user"}(oa||(oa={})),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.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads"}(ia||(ia={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(aa||(aa={})),function(e){e.PageLoad="page_load"}(ca||(ca={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(ua||(ua={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(sa||(sa={})),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"}(fa||(fa={})),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"}(pa||(pa={})),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"}(da||(da={})),function(e){e.LibraryReview="library_review"}(ha||(ha={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(ya||(ya={})),function(e){e.Edit="edit"}(ma||(ma={})),function(e){e.Image="image",e.User="user"}(va||(va={})),function(e){e.On="on",e.Off="off"}(ba||(ba={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(ga||(ga={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(wa||(wa={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags"}(Ea||(Ea={})),function(e){e[e.V1=1]="V1"}(Sa||(Sa={})),function(e){e.Staff="staff",e.Learner="learner",e.Unknown="unknown"}(Oa||(Oa={}));var Ra,Ta,Ia=n(92);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){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ma(e,t){return(Ma=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=za(e);if(t){var o=za(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Va(this,n)}}function Va(e,t){return!t||"object"!==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 za(e){return(za=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"}(Ra||(Ra={})),function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(Ta||(Ta={}));var Ha,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&&Ma(e,t)}(i,e);var t,n,r,o=Ua(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 kt(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 Pr.ALERT}},{key:"defaults",get:function(){return{maxAlerts:3}}}])&&Da(t.prototype,n),r&&Da(t,r),i}(zt);function qa(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 ar.createElement("div",{className:"alert-item bg-white"},ar.createElement("div",{className:"alert-icon-container"},ar.createElement("span",{className:"svg-container"},ar.createElement(qf,{svgName:n,className:r}))),ar.createElement("div",{className:"alert-content-container"},ar.createElement("h3",{className:"alert-heading"},a),ar.createElement("p",{className:"alert-message"},i),c&&ar.createElement(Ff,{appLink:c},u)),ar.createElement("div",{className:"close-alert",onClick:o},"×"))}function $a(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 Ya(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 Ya(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 Ya(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"}(Ha||(Ha={}));var Ga=function(e){switch(e.type){case Ra.Success:return Ha.CheckCircleOutline;case Ra.Fail:case Ra.Warning:return Ha.Warning;case Ra.Info:default:return Ha.Info}};function Ka(e){var t=e.alert,n=e.closeAlert,r=$a(ar.useState(!0),2),o=r[0],i=r[1],a=ar.useRef();ar.useEffect((function(){o?a.current=window.setTimeout(n,3e3):clearTimeout(a.current)}),[o]);var c="text-".concat(t.type.toLowerCase());return ar.createElement("li",{onMouseEnter:function(){return i(!1)},onMouseLeave:function(){return i(!0)}},ar.createElement(qa,{alert:t,svgType:Ga(t),svgTypeClassName:c,closeAlert:n}))}var Wa,Ja=n(3);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 Za(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ec(e,t){return(ec=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tc(e){var 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=rc(e);if(t){var o=rc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nc(this,n)}}function nc(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 rc(e){return(rc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(Wa||(Wa={}));var oc,ic=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&&ec(e,t)}(a,e);var t,n,o,i=tc(a);function a(){var e;return Za(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 Wa.Context}}])&&Qa(t.prototype,n),o&&Qa(t,o),a}(r.Service));!function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(oc||(oc={}));var ac="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 uc=Sa.V1,sc=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||uc}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)))}}])&&cc(t.prototype,n),o&&cc(t,o),e}(),lc=function(e,t,n,r){s.Radio.channel(ac).trigger(oc.Inlet,new sc(e,t,n,r))};function fc(){var e=ic.getCurrentContext().appLink;return u.isObject(e)||r.ErrorHelper.throw(new Ye("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 Ye("location must be set.")),n||r.ErrorHelper.throw(new Ye("entity must be set.")),{productArea:fc(),location:t,entity:n,descriptor:c,workflowPhase:i}}function dc(){return r.LocationUtils.GetCurrentPath()+r.LocationUtils.GetCurrentQueryString()}var hc={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=hc.buildUserActionEvent(t),r=n.userAction,o=n.action,i=n.eventVersion;lc(r,e,o,i)}},logNavigate:function(e,t){var n=Object.assign({currentLocation:dc(),appLink:e},t);lc(ra.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 dc()},buildSearchEvent:function(e,t){return{data:{query:e},action:pc({entity:oa.Video,location:ia.SearchBar,descriptor:t})}},buildInstantSearchEvent:function(e,t,n){var r;n===Ea.Series&&(r=oa.Series),n===Ea.Folder&&(r=oa.Folder),n===Ea.Tags&&(r=oa.Tag),n===Ea.Video&&(r=oa.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:ia.SearchBar})}},mapInteractionType:function(e){switch(e){case wa.DragDrop:return ya.DragDrop;case wa.FileSelect:return ya.FileSelect;default:return}}};function yc(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 mc(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 mc(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 mc(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 vc(e){var t=e.title,n=e.appLink,r=e.className,o=e.analyticsOptions;return ar.createElement("li",{className:r},ar.createElement(Ff,{appLink:n,onClick:function(){if(o){var e=yc(n.args,1)[0];hc.logUserAction({id:e},o)}}},t))}function bc(e){var t=e.itemOptions,n=e.alignRight;if(t&&t.length)return ar.createElement(Ja.Dropdown.Menu,{alignRight:n},t.map((function(e,t){return ar.createElement(vc,{key:t,title:e.title,appLink:e.appLink,className:e.className,analyticsOptions:e.analyticsOptions})})))}var gc=n(30),wc=n.n(gc),Ec=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===Sc}(e)}(e)};var Sc="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Oc(e,t){return!1!==t.clone&&t.isMergeableObject(e)?xc((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function kc(e,t,n){return e.concat(t).map((function(e){return Oc(e,n)}))}function xc(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||kc,n.isMergeableObject=n.isMergeableObject||Ec;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]=Oc(e[t],n)})),Object.keys(t).forEach((function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=xc(e[o],t[o],n):r[o]=Oc(t[o],n)})),r}(e,t,n):Oc(t,n)}xc.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return xc(e,n,t)}),{})};var Cc=xc,Ac=n(7),jc=Ac.a.Symbol,_c=Object.prototype,Lc=_c.hasOwnProperty,Pc=_c.toString,Nc=jc?jc.toStringTag:void 0;var Rc=function(e){var t=Lc.call(e,Nc),n=e[Nc];try{e[Nc]=void 0;var r=!0}catch(e){}var o=Pc.call(e);return r&&(t?e[Nc]=n:delete e[Nc]),o},Tc=Object.prototype.toString;var Ic=function(e){return Tc.call(e)},Fc=jc?jc.toStringTag:void 0;var Dc=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Fc&&Fc in Object(e)?Rc(e):Ic(e)};var Mc=function(e,t){return function(n){return e(t(n))}},Uc=Mc(Object.getPrototypeOf,Object);var Vc=function(e){return null!=e&&"object"==typeof e},zc=Function.prototype,Hc=Object.prototype,Bc=zc.toString,qc=Hc.hasOwnProperty,$c=Bc.call(Object);var Yc=function(e){if(!Vc(e)||"[object Object]"!=Dc(e))return!1;var t=Uc(e);if(null===t)return!0;var n=qc.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Bc.call(n)==$c};var Gc=function(){this.__data__=[],this.size=0};var Kc=function(e,t){return e===t||e!=e&&t!=t};var Wc=function(e,t){for(var n=e.length;n--;)if(Kc(e[n][0],t))return n;return-1},Jc=Array.prototype.splice;var Xc=function(e){var t=this.__data__,n=Wc(t,e);return!(n<0)&&(n==t.length-1?t.pop():Jc.call(t,n,1),--this.size,!0)};var Zc=function(e){var t=this.__data__,n=Wc(t,e);return n<0?void 0:t[n][1]};var Qc=function(e){return Wc(this.__data__,e)>-1};var eu=function(e,t){var n=this.__data__,r=Wc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function tu(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])}}tu.prototype.clear=Gc,tu.prototype.delete=Xc,tu.prototype.get=Zc,tu.prototype.has=Qc,tu.prototype.set=eu;var nu=tu;var ru=function(){this.__data__=new nu,this.size=0};var ou=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var iu=function(e){return this.__data__.get(e)};var au=function(e){return this.__data__.has(e)};var cu=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var uu,su=function(e){if(!cu(e))return!1;var t=Dc(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},lu=Ac.a["__core-js_shared__"],fu=(uu=/[^.]+$/.exec(lu&&lu.keys&&lu.keys.IE_PROTO||""))?"Symbol(src)_1."+uu:"";var pu=function(e){return!!fu&&fu in e},du=Function.prototype.toString;var hu=function(e){if(null!=e){try{return du.call(e)}catch(e){}try{return e+""}catch(e){}}return""},yu=/^\[object .+?Constructor\]$/,mu=Function.prototype,vu=Object.prototype,bu=mu.toString,gu=vu.hasOwnProperty,wu=RegExp("^"+bu.call(gu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Eu=function(e){return!(!cu(e)||pu(e))&&(su(e)?wu:yu).test(hu(e))};var Su=function(e,t){return null==e?void 0:e[t]};var Ou=function(e,t){var n=Su(e,t);return Eu(n)?n:void 0},ku=Ou(Ac.a,"Map"),xu=Ou(Object,"create");var Cu=function(){this.__data__=xu?xu(null):{},this.size=0};var Au=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ju=Object.prototype.hasOwnProperty;var _u=function(e){var t=this.__data__;if(xu){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ju.call(t,e)?t[e]:void 0},Lu=Object.prototype.hasOwnProperty;var Pu=function(e){var t=this.__data__;return xu?void 0!==t[e]:Lu.call(t,e)};var Nu=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xu&&void 0===t?"__lodash_hash_undefined__":t,this};function Ru(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])}}Ru.prototype.clear=Cu,Ru.prototype.delete=Au,Ru.prototype.get=_u,Ru.prototype.has=Pu,Ru.prototype.set=Nu;var Tu=Ru;var Iu=function(){this.size=0,this.__data__={hash:new Tu,map:new(ku||nu),string:new Tu}};var Fu=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Du=function(e,t){var n=e.__data__;return Fu(t)?n["string"==typeof t?"string":"hash"]:n.map};var Mu=function(e){var t=Du(this,e).delete(e);return this.size-=t?1:0,t};var Uu=function(e){return Du(this,e).get(e)};var Vu=function(e){return Du(this,e).has(e)};var zu=function(e,t){var n=Du(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Hu(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])}}Hu.prototype.clear=Iu,Hu.prototype.delete=Mu,Hu.prototype.get=Uu,Hu.prototype.has=Vu,Hu.prototype.set=zu;var Bu=Hu;var qu=function(e,t){var n=this.__data__;if(n instanceof nu){var r=n.__data__;if(!ku||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Bu(r)}return n.set(e,t),this.size=n.size,this};function $u(e){var t=this.__data__=new nu(e);this.size=t.size}$u.prototype.clear=ru,$u.prototype.delete=ou,$u.prototype.get=iu,$u.prototype.has=au,$u.prototype.set=qu;var Yu=$u;var Gu=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Ku=function(){try{var e=Ou(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Wu=function(e,t,n){"__proto__"==t&&Ku?Ku(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Ju=Object.prototype.hasOwnProperty;var Xu=function(e,t,n){var r=e[t];Ju.call(e,t)&&Kc(r,n)&&(void 0!==n||t in e)||Wu(e,t,n)};var Zu=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?Wu(n,c,u):Xu(n,c,u)}return n};var Qu=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var es=function(e){return Vc(e)&&"[object Arguments]"==Dc(e)},ts=Object.prototype,ns=ts.hasOwnProperty,rs=ts.propertyIsEnumerable,os=es(function(){return arguments}())?es:function(e){return Vc(e)&&ns.call(e,"callee")&&!rs.call(e,"callee")},is=Array.isArray,as=n(64),cs=/^(?:0|[1-9]\d*)$/;var us=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 ss=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ls={};ls["[object Float32Array]"]=ls["[object Float64Array]"]=ls["[object Int8Array]"]=ls["[object Int16Array]"]=ls["[object Int32Array]"]=ls["[object Uint8Array]"]=ls["[object Uint8ClampedArray]"]=ls["[object Uint16Array]"]=ls["[object Uint32Array]"]=!0,ls["[object Arguments]"]=ls["[object Array]"]=ls["[object ArrayBuffer]"]=ls["[object Boolean]"]=ls["[object DataView]"]=ls["[object Date]"]=ls["[object Error]"]=ls["[object Function]"]=ls["[object Map]"]=ls["[object Number]"]=ls["[object Object]"]=ls["[object RegExp]"]=ls["[object Set]"]=ls["[object String]"]=ls["[object WeakMap]"]=!1;var fs=function(e){return Vc(e)&&ss(e.length)&&!!ls[Dc(e)]};var ps=function(e){return function(t){return e(t)}},ds=n(15),hs=ds.a&&ds.a.isTypedArray,ys=hs?ps(hs):fs,ms=Object.prototype.hasOwnProperty;var vs=function(e,t){var n=is(e),r=!n&&os(e),o=!n&&!r&&Object(as.a)(e),i=!n&&!r&&!o&&ys(e),a=n||r||o||i,c=a?Qu(e.length,String):[],u=c.length;for(var s in e)!t&&!ms.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||us(s,u))||c.push(s);return c},bs=Object.prototype;var gs=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||bs)},ws=Mc(Object.keys,Object),Es=Object.prototype.hasOwnProperty;var Ss=function(e){if(!gs(e))return ws(e);var t=[];for(var n in Object(e))Es.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Os=function(e){return null!=e&&ss(e.length)&&!su(e)};var ks=function(e){return Os(e)?vs(e):Ss(e)};var xs=function(e,t){return e&&Zu(t,ks(t),e)};var Cs=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},As=Object.prototype.hasOwnProperty;var js=function(e){if(!cu(e))return Cs(e);var t=gs(e),n=[];for(var r in e)("constructor"!=r||!t&&As.call(e,r))&&n.push(r);return n};var _s=function(e){return Os(e)?vs(e,!0):js(e)};var Ls=function(e,t){return e&&Zu(t,_s(t),e)},Ps=n(230);var Ns=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Rs=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 Ts=function(){return[]},Is=Object.prototype.propertyIsEnumerable,Fs=Object.getOwnPropertySymbols,Ds=Fs?function(e){return null==e?[]:(e=Object(e),Rs(Fs(e),(function(t){return Is.call(e,t)})))}:Ts;var Ms=function(e,t){return Zu(e,Ds(e),t)};var Us=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},Vs=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Us(t,Ds(e)),e=Uc(e);return t}:Ts;var zs=function(e,t){return Zu(e,Vs(e),t)};var Hs=function(e,t,n){var r=t(e);return is(e)?r:Us(r,n(e))};var Bs=function(e){return Hs(e,ks,Ds)};var qs=function(e){return Hs(e,_s,Vs)},$s=Ou(Ac.a,"DataView"),Ys=Ou(Ac.a,"Promise"),Gs=Ou(Ac.a,"Set"),Ks=Ou(Ac.a,"WeakMap"),Ws=hu($s),Js=hu(ku),Xs=hu(Ys),Zs=hu(Gs),Qs=hu(Ks),el=Dc;($s&&"[object DataView]"!=el(new $s(new ArrayBuffer(1)))||ku&&"[object Map]"!=el(new ku)||Ys&&"[object Promise]"!=el(Ys.resolve())||Gs&&"[object Set]"!=el(new Gs)||Ks&&"[object WeakMap]"!=el(new Ks))&&(el=function(e){var t=Dc(e),n="[object Object]"==t?e.constructor:void 0,r=n?hu(n):"";if(r)switch(r){case Ws:return"[object DataView]";case Js:return"[object Map]";case Xs:return"[object Promise]";case Zs:return"[object Set]";case Qs:return"[object WeakMap]"}return t});var tl=el,nl=Object.prototype.hasOwnProperty;var rl=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&nl.call(e,"index")&&(n.index=e.index,n.input=e.input),n},ol=Ac.a.Uint8Array;var il=function(e){var t=new e.constructor(e.byteLength);return new ol(t).set(new ol(e)),t};var al=function(e,t){var n=t?il(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},cl=/\w*$/;var ul=function(e){var t=new e.constructor(e.source,cl.exec(e));return t.lastIndex=e.lastIndex,t},sl=jc?jc.prototype:void 0,ll=sl?sl.valueOf:void 0;var fl=function(e){return ll?Object(ll.call(e)):{}};var pl=function(e,t){var n=t?il(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var dl=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return il(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return al(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 ul(e);case"[object Set]":return new r;case"[object Symbol]":return fl(e)}},hl=Object.create,yl=function(){function e(){}return function(t){if(!cu(t))return{};if(hl)return hl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var ml=function(e){return"function"!=typeof e.constructor||gs(e)?{}:yl(Uc(e))};var vl=function(e){return Vc(e)&&"[object Map]"==tl(e)},bl=ds.a&&ds.a.isMap,gl=bl?ps(bl):vl;var wl=function(e){return Vc(e)&&"[object Set]"==tl(e)},El=ds.a&&ds.a.isSet,Sl=El?ps(El):wl,Ol={};Ol["[object Arguments]"]=Ol["[object Array]"]=Ol["[object ArrayBuffer]"]=Ol["[object DataView]"]=Ol["[object Boolean]"]=Ol["[object Date]"]=Ol["[object Float32Array]"]=Ol["[object Float64Array]"]=Ol["[object Int8Array]"]=Ol["[object Int16Array]"]=Ol["[object Int32Array]"]=Ol["[object Map]"]=Ol["[object Number]"]=Ol["[object Object]"]=Ol["[object RegExp]"]=Ol["[object Set]"]=Ol["[object String]"]=Ol["[object Symbol]"]=Ol["[object Uint8Array]"]=Ol["[object Uint8ClampedArray]"]=Ol["[object Uint16Array]"]=Ol["[object Uint32Array]"]=!0,Ol["[object Error]"]=Ol["[object Function]"]=Ol["[object WeakMap]"]=!1;var kl=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=is(t);if(f){if(c=rl(t),!u)return Ns(t,c)}else{var p=tl(t),d="[object Function]"==p||"[object GeneratorFunction]"==p;if(Object(as.a)(t))return Object(Ps.a)(t,u);if("[object Object]"==p||"[object Arguments]"==p||d&&!i){if(c=s||d?{}:ml(t),!u)return s?zs(t,Ls(c,t)):Ms(t,xs(c,t))}else{if(!Ol[p])return i?t:{};c=dl(t,p,u)}}a||(a=new Yu);var h=a.get(t);if(h)return h;a.set(t,c),Sl(t)?t.forEach((function(o){c.add(e(o,n,r,o,t,a))})):gl(t)&&t.forEach((function(o,i){c.set(i,e(o,n,r,i,t,a))}));var y=l?s?qs:Bs:s?keysIn:ks,m=f?void 0:y(t);return Gu(m||t,(function(o,i){m&&(o=t[i=o]),Xu(c,i,e(o,n,r,i,t,a))})),c};var xl=function(e){return kl(e,4)};var Cl=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 Al=function(e){return"symbol"==typeof e||Vc(e)&&"[object Symbol]"==Dc(e)};function jl(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(jl.Cache||Bu),n}jl.Cache=Bu;var _l=jl;var Ll=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pl=/\\(\\)?/g,Nl=function(e){var t=_l(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(Ll,(function(e,n,r,o){t.push(r?o.replace(Pl,"$1"):n||e)})),t}));var Rl=function(e){if("string"==typeof e||Al(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Tl=jc?jc.prototype:void 0,Il=Tl?Tl.toString:void 0;var Fl=function e(t){if("string"==typeof t)return t;if(is(t))return Cl(t,e)+"";if(Al(t))return Il?Il.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var Dl=function(e){return null==e?"":Fl(e)};var Ml=function(e){return is(e)?Cl(e,Rl):Al(e)?[e]:Ns(Nl(Dl(e)))};var Ul=function(e,t){},Vl=n(93),zl=n(94),Hl=n.n(zl);var Bl=function(e){return kl(e,5)};function ql(){return(ql=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 $l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Yl(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 Gl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Kl=function(e){return"function"==typeof e},Wl=function(e){return null!==e&&"object"==typeof e},Jl=function(e){return String(Math.floor(Number(e)))===e},Xl=function(e){return"[object String]"===Object.prototype.toString.call(e)},Zl=function(e){return 0===ar.Children.count(e)},Ql=function(e){return Wl(e)&&Kl(e.then)};function ef(e,t,n,r){void 0===r&&(r=0);for(var o=Ml(t);e&&r<o.length;)e=e[o[r++]];return void 0===e?n:e}function tf(e,t,n){for(var r=xl(e),o=r,i=0,a=Ml(t);i<a.length-1;i++){var c=a[i],u=ef(e,a.slice(0,i+1));if(u&&(Wl(u)||Array.isArray(u)))o=o[c]=xl(u);else{var s=a[i+1];o=o[c]=Jl(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 nf(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];Wl(c)?n.get(c)||(n.set(c,!0),r[a]=Array.isArray(c)?[]:{},nf(c,t,n,r[a])):r[a]=t}return r}var rf=Object(ar.createContext)(void 0),of=rf.Provider,af=rf.Consumer;function cf(){var e=Object(ar.useContext)(rf);return e||Ul(!1),e}function uf(e,t){switch(t.type){case"SET_VALUES":return ql({},e,{values:t.payload});case"SET_TOUCHED":return ql({},e,{touched:t.payload});case"SET_ERRORS":return ql({},e,{errors:t.payload});case"SET_STATUS":return ql({},e,{status:t.payload});case"SET_ISSUBMITTING":return ql({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return ql({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return ql({},e,{values:tf(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return ql({},e,{touched:tf(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return ql({},e,{errors:tf(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return ql({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return ql({},e,{touched:nf(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return ql({},e,{isSubmitting:!1});default:return e}}var sf={},lf={};function ff(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=Yl(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=ql({validateOnChange:n,validateOnBlur:o,validateOnMount:a,onSubmit:l},f),d=Object(ar.useRef)(p.initialValues),h=Object(ar.useRef)(p.initialErrors||sf),y=Object(ar.useRef)(p.initialTouched||lf),m=Object(ar.useRef)(p.initialStatus),v=Object(ar.useRef)(!1),b=Object(ar.useRef)({});Object(ar.useEffect)((function(){0}),[]),Object(ar.useEffect)((function(){return v.current=!0,function(){v.current=!1}}),[]);var g=Object(ar.useReducer)(uf,{values:p.initialValues,errors:p.initialErrors||sf,touched:p.initialTouched||lf,status:p.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),w=g[0],E=g[1],S=Object(ar.useCallback)((function(e,t){return new Promise((function(n,r){var o=p.validate(e,t);null==o?n(sf):Ql(o)?o.then((function(e){n(e||sf)}),(function(e){r(e)})):n(o)}))}),[p.validate]),O=Object(ar.useCallback)((function(e,t){var n=p.validationSchema,r=Kl(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)||Yc(t)?e(t):""!==t?t:void 0})):Yc(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(sf)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return tf(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;ef(t,a.path)||(t=tf(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[p.validationSchema]),k=Object(ar.useCallback)((function(e,t){return new Promise((function(n){return n(b.current[e].validate(t))}))}),[]),x=Object(ar.useCallback)((function(e){var t=Object.keys(b.current).filter((function(e){return Kl(b.current[e].validate)})),n=t.length>0?t.map((function(t){return k(t,ef(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=tf(e,t[r],n)),e}),{})}))}),[k]),C=Object(ar.useCallback)((function(e){return Promise.all([x(e),p.validationSchema?O(e):{},p.validate?S(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return Cc.all([t,n,r],{arrayMerge:df})}))}),[p.validate,p.validationSchema,x,S,O]),A=yf((function(e){return void 0===e&&(e=w.values),Object(Vl.unstable_runWithPriority)(Vl.LowPriority,(function(){return C(e).then((function(e){return v.current&&E({type:"SET_ERRORS",payload:e}),e}))}))})),j=yf((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}),wc()(w.errors,e)||E({type:"SET_ERRORS",payload:e})),e}))}));Object(ar.useEffect)((function(){a&&!0===v.current&&A(p.initialValues)}),[p.initialValues,a,A]);var _=Object(ar.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(ar.useEffect)((function(){s&&!0===v.current&&!wc()(d.current,p.initialValues)&&(d.current=p.initialValues,_())}),[s,p.initialValues,_]),Object(ar.useEffect)((function(){s&&!0===v.current&&!wc()(h.current,p.initialErrors)&&(h.current=p.initialErrors||sf,E({type:"SET_ERRORS",payload:p.initialErrors||sf}))}),[s,p.initialErrors]),Object(ar.useEffect)((function(){s&&!0===v.current&&!wc()(y.current,p.initialTouched)&&(y.current=p.initialTouched||lf,E({type:"SET_TOUCHED",payload:p.initialTouched||lf}))}),[s,p.initialTouched]),Object(ar.useEffect)((function(){s&&!0===v.current&&!wc()(m.current,p.initialStatus)&&(m.current=p.initialStatus,E({type:"SET_STATUS",payload:p.initialStatus}))}),[s,p.initialStatus,p.initialTouched]);var L=yf((function(e){if(Kl(b.current[e].validate)){var t=ef(w.values,e),n=b.current[e].validate(t);return Ql(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(ar.useCallback)((function(e,t){var n=t.validate;b.current[e]={validate:n}}),[]),N=Object(ar.useCallback)((function(e){delete b.current[e]}),[]),R=yf((function(e){return E({type:"SET_TOUCHED",payload:e}),o?A(w.values):Promise.resolve()})),T=Object(ar.useCallback)((function(e){E({type:"SET_ERRORS",payload:e})}),[]),I=yf((function(e){return E({type:"SET_VALUES",payload:e}),n?A(e):Promise.resolve()})),F=Object(ar.useCallback)((function(e,t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),D=yf((function(e,t,r){return void 0===r&&(r=!0),E({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),n&&r?A(tf(w.values,e,t)):Promise.resolve()})),M=Object(ar.useCallback)((function(e,t){var n,r=t,o=e;if(!Xl(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))}(ef(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(ar.useCallback)((function(e){if(Xl(e))return function(t){return M(t,e)};M(e)}),[M]),V=yf((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?A(w.values):Promise.resolve()})),z=Object(ar.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(ar.useCallback)((function(e){if(Xl(e))return function(t){return z(t,e)};z(e)}),[z]),B=Object(ar.useCallback)((function(e){Kl(e)?E({type:"SET_FORMIK_STATE",payload:e}):E({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),q=Object(ar.useCallback)((function(e){E({type:"SET_STATUS",payload:e})}),[]),$=Object(ar.useCallback)((function(e){E({type:"SET_ISSUBMITTING",payload:e})}),[]),Y={resetForm:_,validateForm:j,validateField:L,setErrors:T,setFieldError:F,setFieldTouched:V,setFieldValue:D,setStatus:q,setSubmitting:$,setTouched:R,setValues:I,setFormikState:B},G=yf((function(){return l(w.values,Y)})),K=yf((function(){return E({type:"SUBMIT_ATTEMPT"}),j().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=yf((function(e){e&&e.preventDefault&&Kl(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Kl(e.stopPropagation)&&e.stopPropagation(),K()})),J=yf((function(e){if(e&&e.preventDefault&&Kl(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Kl(e.stopPropagation)&&e.stopPropagation(),p.onReset){var t=p.onReset(w.values,Y);Ql(t)?t.then(_):_()}else _()})),X=Object(ar.useCallback)((function(e){return{value:ef(w.values,e),error:ef(w.errors,e),touched:!!ef(w.touched,e),initialValue:ef(d.current,e),initialTouched:!!ef(y.current,e),initialError:ef(h.current,e)}}),[w.errors,w.touched,w.values]),Z=Object(ar.useCallback)((function(e){var t=Wl(e),n=t?e.name:e,r=ef(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(ar.useMemo)((function(){return!wc()(d.current,w.values)}),[w.values]),ee=Object(ar.useMemo)((function(){return void 0!==c?Q?w.errors&&0===Object.keys(w.errors).length:!1!==c&&Kl(c)?c(p):c:w.errors&&0===Object.keys(w.errors).length}),[c,Q,w.errors,p]);return ql({},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:j,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=ff(e),n=e.component,r=e.children,o=e.render;return Object(ar.useEffect)((function(){0}),[]),Object(ar.createElement)(of,{value:t},n?Object(ar.createElement)(n,t):o?o(t):r?Kl(r)?r(t):Zl(r)?null:ar.Children.only(r):null)}function df(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?Cc(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=Cc(e[o],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var hf="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?ar.useLayoutEffect:ar.useEffect;function yf(e){var t=Object(ar.useRef)(e);return hf((function(){t.current=e})),Object(ar.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 mf(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,a=e.component,c=Yl(e,["validate","name","render","children","as","component"]),u=cf(),s=(u.validate,u.validationSchema,Yl(u,["validate","validationSchema"]));Object(ar.useEffect)((function(){0}),[]);var l=s.registerField,f=s.unregisterField;Object(ar.useEffect)((function(){return l(n,{validate:t}),function(){f(n)}}),[l,f,n,t]);var p=s.getFieldProps(ql({name:n},c)),d=s.getFieldMeta(n),h={field:p,form:s};if(r)return r(ql({},h,{meta:d}));if(Kl(o))return o(ql({},h,{meta:d}));if(a){if("string"==typeof a){var y=c.innerRef,m=Yl(c,["innerRef"]);return Object(ar.createElement)(a,ql({ref:y},p,m),o)}return Object(ar.createElement)(a,ql({field:p,form:s},c),o)}var v=i||"input";if("string"==typeof v){var b=c.innerRef,g=Yl(c,["innerRef"]);return Object(ar.createElement)(v,ql({ref:b},p,g),o)}return Object(ar.createElement)(v,ql({},p,c),o)}var vf=Object(ar.forwardRef)((function(e,t){var n=e.action,r=Yl(e,["action"]),o=n||"#",i=cf(),a=i.handleReset,c=i.handleSubmit;return Object(ar.createElement)("form",Object.assign({onSubmit:c,ref:t,onReset:a,action:o},r))}));function bf(e){var t=function(t){return Object(ar.createElement)(af,null,(function(n){return n||Ul(!1),Object(ar.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+")",Hl()(t,e)}vf.displayName="Form";var gf=function(e,t,n){var r=wf(e);return r.splice(t,0,n),r},wf=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(ql({},e,{length:t+1}))}return[]},Ef=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 ql({},n,{values:tf(n.values,i,e(ef(n.values,i))),errors:r?tf(n.errors,i,o(ef(n.errors,i))):n.errors,touched:t?tf(n.touched,i,a(ef(n.touched,i))):n.touched})}),(function(){a&&s()}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(wf(t),[Bl(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=wf(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=wf(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 gf(n,e,t)}),(function(t){return gf(t,e,null)}),(function(t){return gf(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=wf(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(Gl(n)),n.pop=n.pop.bind(Gl(n)),n}$l(t,e);var n=t.prototype;return n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?wf(n):[];return t||(t=r[e]),Kl(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,ql({},e,{form:Yl(a,["validate","validationSchema"]),name:i}));return n?Object(ar.createElement)(n,c):r?r(c):o?"function"==typeof o?o(c):Zl(o)?null:ar.Children.only(o):null},t}(ar.Component);Ef.defaultProps={validateOnChange:!0};ar.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&&Ul(!1),i&&r&&Ul(!1),a&&o&&Kl(o)&&Ul(!1),i&&o&&Kl(o)&&Ul(!1),r&&o&&!Zl(o)&&Ul(!1),n}$l(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e,t,n){return this.props.shouldUpdate?this.props.shouldUpdate(e,this.props):ef(this.context.values,this.props.name)!==ef(n.values,this.props.name)||ef(this.context.errors,this.props.name)!==ef(n.errors,this.props.name)||ef(this.context.touched,this.props.name)!==ef(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,Yl(e,["validate","name","render","as","children","component","shouldUpdate"])),c=this.context,u=(c.validate,c.validationSchema,Yl(c,["validate","validationSchema"])),s={value:"radio"===a.type||"checkbox"===a.type?a.value:ef(c.values,t),name:t,onChange:c.handleChange,onBlur:c.handleBlur},l={field:s,meta:{value:ef(c.values,t),error:ef(c.errors,t),touched:!!ef(c.touched,t),initialValue:ef(c.initialValues,t),initialTouched:!!ef(c.initialTouched,t),initialError:ef(c.initialErrors,t)},form:u};if(n)return n(l);if(Kl(o))return o(l);if(i){if("string"==typeof i){var f=a.innerRef,p=Yl(a,["innerRef"]);return Object(ar.createElement)(i,ql({ref:f},s,p),o)}return Object(ar.createElement)(i,ql({field:s,form:c},a),o)}var d=r||"input";if("string"==typeof d){var h=a.innerRef,y=Yl(a,["innerRef"]);return Object(ar.createElement)(d,ql({ref:h},s,y),o)}return Object(ar.createElement)(d,ql({},s,a),o)},t}(ar.Component)).contextType=rf;var Sf=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 Of(e){var t=e.label,n=e.error,r=e.touched,o=e.className,i=Sf(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)),ar.createElement("div",{className:c},t&&ar.createElement("label",{className:"form-label",htmlFor:i.id},t),ar.createElement(mf,Object.assign({className:u},i),e.children),a&&ar.createElement("span",{className:"help-block invalid-feedback"},n))}function kf(e){return ar.createElement(vf,null,e.children)}function xf(e){var t=e.initialValues,n=e.validationSchema,r=e.onSubmit,o=e.renderChildren;return ar.createElement(pf,{initialValues:t,validationSchema:n,onSubmit:r},(function(e){return ar.createElement(kf,Object.assign({},e),o(e))}))}function Cf(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 Af(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 Af(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 Af(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 jf=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 _f(e){var t=e.buttonText,n=e.showSpinner,r=jf(e,["buttonText","showSpinner"]),o=ar.useRef(),i=Cf(ar.useState({}),2),a=i[0],c=i[1];return ar.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})}})),ar.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]),ar.createElement(Ja.Button,Object.assign({ref:o},r),n?ar.createElement(Bf,{size:"sm",color:"white"}):t)}var Lf=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 Pf(e){var t=e.buttons;return ar.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=Lf(e,["isSpinnerButton","type"]);if(n)return ar.createElement(_f,Object.assign({key:t,type:o},i));var a=i.buttonText,c=(i.showSpinner,Lf(i,["buttonText","showSpinner"]));return ar.createElement(Ja.Button,Object.assign({key:t,type:o},c),a)}(e,t)})))}var Nf=ar.createContext(void 0);function Rf(e){var t=e.title,n=e.close,r=e.showLoadingSpinner,o=ar.useRef(),i=ar.useRef(),a=ar.useRef(),c=function(){return Jn.position(o.current)};return ar.useEffect((function(){return i.current=Jn.renderMask(),a.current=Jn.lockBody(),c(),i.current.on("click",n),function(){i.current&&i.current.hide(),Jn.onPopupClose(a.current)}}),[]),ar.useEffect((function(){c()}),[r]),ar.createElement("div",{ref:o,className:"cv-popup",style:{display:"none"}},t&&ar.createElement("div",{className:"titlebar-container"},ar.createElement("div",{className:"cv-titlebar"},ar.createElement("div",{className:"text-container"},ar.createElement("h1",{className:"title"},t),ar.createElement("a",{className:"close",onClick:n},"×")))),!t&&ar.createElement("div",{className:"no-heading"},ar.createElement("a",{className:"close",onClick:n},"×")),ar.createElement("div",{className:"popup-body-container"},r?ar.createElement(If,null):ar.createElement(Nf.Provider,{value:{onResize:c}},e.children)))}function Tf(e){return ur.createPortal(ar.createElement(Rf,Object.assign({},e)),Jn.getContainerEl())}function If(){return ar.createElement("div",{className:"popup-loading-spinner"},ar.createElement(Bf,{size:"md",color:"#f8981d"}))}function Ff(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(),Or(a)&&a(),r.AppLinkHelper.trigger(t)},href:r.AppLinkHelper.getHref(t),className:n};return ar.createElement(i,Object.assign({},c),e.children)}var Df=n(65);function Mf(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 Uf(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 Uf(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 Uf(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 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 zf(e){var t=Mf(Df.useInView({triggerOnce:!0}),2),n=t[0],r=t[1];if(void 0===window.IntersectionObserver)return ar.createElement("img",Object.assign({alt:""},e));var o=e.src,i=Vf(e,["src"]),a=Object.assign(Object.assign({alt:"",style:{width:"100%",height:"100%"}},i),r?{src:o}:{});return ar.createElement("img",Object.assign({ref:n},a))}function Hf(e){switch(e){case"sm":return{length:2,width:2,radius:4};case"md":return{length:3,width:3,radius:5};default:return{}}}function Bf(e){var t=e.size,n=e.color,r=jr(new(Kn.getClickView().Shared.Views.SpinJsView)({spinColor:n,spinOptions:Hf(t)}));return ar.createElement("div",{ref:r,className:"spinner-component"})}function qf(e){var t=e.svgName,n=e.className;return ar.createElement("svg",{className:n},ar.createElement("use",{xlinkHref:"#".concat(t)}))}function $f(e){var t=e.alerts,n=e.removeAlert;return ar.createElement("div",{className:"alert-box"},ar.createElement(Ia.TransitionGroup,{component:"ul"},t&&t.map((function(e,t){return ar.createElement(Ia.CSSTransition,{key:t,timeout:200,classNames:"alert"},ar.createElement(Ka,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}function Yf(e){var t=yn.getInstance(e);return ar.useEffect((function(){return function(){return yn.releaseInstance(e)}})),t}function Gf(e){return Yf(e)}var Kf={Config:"ConfigDataService",User:"UserDataService",Language:"LanguageDataService",Video:"VideoDataService",VideoUpload:"VideoUpload",Library:"LibraryDataService",Search:"SearchDataService",Series:"SeriesDataService",Notification:"NotificationDataService",NotificationSocket:"NotificationSocketService"},Wf="ImageUrlService",Jf="AppOptionsService",Xf={application:Cn,action:mn.HOME};function Zf(e){var t=e.heading,n=e.description,r=e.returnAppLink,o=void 0===r?Xf:r,i=e.returnAppLinkText,a=void 0===i?Ur.getPhrase("shared.error","return"):i,c=Gf(Wf).getImageUrls(),u=e.imageUrl||c.ErrorViews.DEFAULT;return ar.createElement("div",{className:"bg-white error-view"},ar.createElement("img",{src:u}),ar.createElement("h4",null,t),ar.createElement("p",null,n),!!o&&ar.createElement(Ff,{appLink:o},a))}var Qf=ar.createContext({});function ep(e){return function(e){if(Array.isArray(e))return tp(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 tp(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 tp(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 tp(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 np(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=ar.useContext(Qf),r=n.setPageTitle;ar.useEffect((function(){e&&Or(r)&&r(e)}),[e].concat(ep(t)))}function rp(e){var t=e.playlist,n=ar.useContext(Nf),r=new(0,Kn.getClickView().PlaylistApp.Views.ShareTabView)({itemModel:Kn.getMasterPlaylistModel(t),type:"masterPlaylist",name:"playlist"}),o=jr(r);return ar.useEffect((function(){var e=function(){n&&n.onResize()};return r.on("resize",e),function(){return r.off("resize",e)}}),[]),ar.createElement("div",{ref:o})}var op=Ur.encloseNamespace("shared.share");function ip(e){var t=o.useBasicFetch(ta.getPlaylist(e.playlistId));np(t.data&&"".concat(op("share")," ").concat(t.data.name),[t.data]);var n=[{variant:"secondary",onClick:e.closePopup,buttonText:op("close")}];return ar.createElement(Tf,{title:op("sharePlaylist"),close:e.closePopup,showLoadingSpinner:!t.data},ar.createElement(ar.Fragment,null,!!t.data&&ar.createElement(rp,{playlist:t.data}),ar.createElement(Pf,{buttons:n})))}function ap(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 up=function(e){return e&&e.data&&e.data.pagination&&e.data.pagination.cursors&&e.data.pagination.cursors.next};function sp(e){return Object(sr.useSelector)(Object(ar.useMemo)((function(){return function(t){for(var n=e,r=Or(e)&&o.getResponse(t,n()),i=r&&r.isFetching,a=r&&r.shouldFetch,c=r&&r.data&&r.data.data,u=up(r);u&&(i=(r=o.getResponse(t,n(u))).isFetching,!r.shouldFetch);){var s=r.data&&r.data.data;s&&c.push.apply(c,ap(s)),u=up(r)}return{shouldInitialFetch:a,items:c,nextCursor:u,isFetching:i}}}),[e]))}function lp(e){return(lp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fp(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 dp(e){var 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=yp(e);if(t){var o=yp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hp(this,n)}}function hp(e,t){return!t||"object"!==lp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yp(e){return(yp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("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=dp(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Di.Newest,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return fp(this,n),t.call(this,{collectionPrefix:"".concat(kn),cursor:r,sort:e})}return n}(Fi);var vp=ar.createContext(""),bp=ar.memo((function(e){var t=e.phrase,n=e.namespace,r=e.options,o=ar.useContext(vp),i=n||o,a=Ur.getPhrase(i,t,r);return ar.createElement("span",{dangerouslySetInnerHTML:{__html:a}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&qn.isEqual(e.options,t.options)}));function gp(){return ar.createElement("div",{className:"left-nav"},ar.createElement("div",{className:"partial-loading-view left-nav"},ar.createElement("div",{className:"nav-header"}),ar.createElement("div",{className:"nav-content"},ar.createElement("div",{className:"partial-loading-item width1"}),ar.createElement("div",{className:"partial-loading-item"}),ar.createElement("div",{className:"partial-loading-item width2"}),ar.createElement("div",{className:"partial-loading-item width3"}),ar.createElement("div",{className:"partial-loading-item"}),ar.createElement("div",{className:"partial-loading-item width2"}),ar.createElement("div",{className:"partial-loading-item width1"}),ar.createElement("div",{className:"partial-loading-item width3"}),ar.createElement("div",{className:"partial-loading-item width2"}),ar.createElement("div",{className:"partial-loading-item"}),ar.createElement("div",{className:"partial-loading-item width1"}),ar.createElement("div",{className:"partial-loading-item width2"}),ar.createElement("div",{className:"partial-loading-item width1"}),ar.createElement("div",{className:"partial-loading-item width2"}),ar.createElement("div",{className:"partial-loading-item width3"}),ar.createElement("div",{className:"partial-loading-item"}),ar.createElement("div",{className:"partial-loading-item width1"}),ar.createElement("div",{className:"partial-loading-item"}))))}function wp(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 Ep(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 Ep(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 Ep(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 Sp={entity:oa.Playlist,workflowPhase:aa.Start},Op=Ur.encloseNamespace("playlists.playlistActions");function kp(e){var t=e.playlist,n=e.analyticsOptions,r=wp(ar.useState(!1),2),o=r[0],i=r[1],a=[{title:Op("share"),appLink:{application:An,action:vn.SHARE_PLAYLIST,args:[t.id.toString()]},analyticsOptions:hc.mergeOptions(n,Object.assign({actionType:ra.Share},Sp))},{title:Op("edit"),appLink:{application:An,action:vn.EDIT_PLAYLIST,args:[t.id.toString()]},analyticsOptions:hc.mergeOptions(n,Object.assign({actionType:ra.Edit},Sp))},{title:Op("delete"),appLink:{application:An,action:vn.DELETE_PLAYLIST,args:[t.id.toString()]},className:"danger",analyticsOptions:hc.mergeOptions(n,Object.assign({actionType:ra.Delete},Sp))}];return ar.createElement("div",{className:"playlist-actions"},ar.createElement(Ja.Dropdown,{onToggle:function(){return i((function(e){return!e}))}},ar.createElement(Ja.Dropdown.Toggle,{as:"svg",id:"playlist-actions-".concat(t.id)},ar.createElement("use",{xlinkHref:"#more"})),o&&ar.createElement(bc,{itemOptions:a,alignRight:!0})))}function xp(e){var t=e.playlist,n=e.selected,r={application:An,action:vn.PLAYLIST,args:[t.id.toString(),Pa(t.name)]},o={location:ia.LeftNav};return ar.createElement("div",{className:"nav-item".concat(n?" selected":"")},ar.createElement("div",{className:"playlist-icon"}),ar.createElement(Ff,{className:"nav-link",appLink:r},t.name),ar.createElement("div",{className:"playlist-actions-container"},ar.createElement(kp,{playlist:t,analyticsOptions:o})))}function Cp(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 Ap(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 Ap(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 Ap(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{location:ia.VideoListHeader,entity:oa.Playlist,actionType:e,workflowPhase:aa.Start}};function _p(e){var t=Cp(ar.useState(e.isFollowing),2),n=t[0],r=t[1],o=function(t){return{application:An,action:t,args:[e.playlistId.toString()]}},i=o(vn.SHARE_PLAYLIST),a=o(vn.EDIT_PLAYLIST),c=ar.useCallback((function(t){return hc.logUserAction({id:e.playlist.id},t)}),[e.playlist]),u=ar.useCallback((function(){return c(Object.assign({descriptor:ua.All},jp(ra.Play)))}),[jp]),s=ar.useCallback((function(){return c(jp(ra.Share))}),[jp]),l=ar.useCallback((function(){return c(jp(ra.Edit))}),[jp]);return ar.createElement(vp.Provider,{value:"playlists.playlistHeader"},ar.createElement("div",{className:"playlist-header-actions"},e.hasVideos&&!!e.playAllAppLink&&ar.createElement(Ff,{appLink:e.playAllAppLink,className:"btn grey",onClick:u},ar.createElement("span",{className:"play-svg-container"},ar.createElement(qf,{svgName:Ha.Play}))," ",ar.createElement(bp,{phrase:"playAll"})),e.canShare&&ar.createElement(Ff,{appLink:i,className:"btn grey",onClick:s},ar.createElement(qf,{svgName:Ha.Share}),ar.createElement(bp,{phrase:"share"})),e.canEdit&&ar.createElement(Ff,{appLink:a,className:"btn grey",onClick:l},ar.createElement(qf,{svgName:Ha.Edit}),ar.createElement(bp,{phrase:"edit"})),e.canFollow&&ar.createElement("button",{className:"btn grey",onClick:function(){r(!n),e.follow(!n)}},ar.createElement(qf,{svgName:n?Ha.BellFilled:Ha.Bell}),ar.createElement(bp,{phrase:n?"following":"follow"}))))}var Lp,Pp,Np,Rp,Tp=n(11);!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(Lp||(Lp={})),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"}(Pp||(Pp={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(Np||(Np={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(Rp||(Rp={}));var Ip,Fp,Dp={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 Mp(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"}(Fp||(Fp={}));var Up=(Mp(Ip={},Pp.Banners,Fp.Banner),Mp(Ip,Pp.Thumbnails,Fp.Thumbnail),Ip),Vp=function(e){return"/v1/category-map/".concat(e)},zp={createUrl:function(e,t){return zp._createUrl(e,t)},createBannerUrl:function(e,t,n){return e&&e.url?zp._createUrl(e.url,n):zp._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=Dp.safeUrlConcat(n,"".concat(Vp(Up[o]))),a=Object.assign({name:zp.Rfc3986EncodeURIComponent(r)},t);return zp._createUrl(i,a)},_createUrl:function(e,t){if(e){if(qn.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&";return Dp.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:Lp.Small,bgColor:"000"},t);return zp._createUrl(n,o)}}};function Hp(e){var t=e.playlist,n={application:An,action:vn.HOME};return ar.createElement("div",{className:"breadcrumbs-container border-bottom"},ar.createElement("ul",{className:"breadcrumbs"},ar.createElement("li",null,ar.createElement(Ff,{appLink:n},ar.createElement(bp,{namespace:"playlists.playlistHeader",phrase:"playlists"}))),ar.createElement("li",null,ar.createElement("span",null,t.name))))}function Bp(e){var t=e.showBreadcrumbs;return ar.createElement("div",{className:"playlist-header-partial"},t&&ar.createElement("div",{className:"partial-loading-item breadcrumbs"}),ar.createElement("div",{className:"header-inner"},ar.createElement("div",{className:"partial-loading-item thumbnail"}),ar.createElement("div",{className:"metadata"},ar.createElement("div",{className:"partial-loading-item heading"}),ar.createElement("div",{className:"partial-loading-item date"}),ar.createElement("div",{className:"actions"},ar.createElement("div",{className:"partial-loading-item action-1"}),ar.createElement("div",{className:"partial-loading-item action-2"}),ar.createElement("div",{className:"partial-loading-item action-3"})))))}function qp(e){if(e.showPartialLoading)return ar.createElement(Bp,{showBreadcrumbs:!e.showBreadcrumbs});var t=e.playlist.dateCreated&&Tp.utc(e.playlist.dateCreated).fromNow(),n=!!e.showDateMetadata,r=!!e.showDateMetadata&&!!e.lastUpdated,o=n&&r,i=zp.createUrl(e.playlist.cover&&e.playlist.cover.url,{size:Lp.Medium,resizeType:Np.Cover}),a=e.playlist&&e.playlist.videos&&e.playlist.videos.count,c=Number.isInteger(a)&&Ur.getPhrase("playlists.playlistHeader","video",{smartCount:a});return ar.createElement(vp.Provider,{value:"playlists.playlistHeader"},ar.createElement("div",{className:"playlist-header"},ar.createElement("div",{className:"header-inner border-bottom"},!!e.returnAppLink&&ar.createElement(Ff,{appLink:e.returnAppLink.appLink,className:"back-button"},ar.createElement(qf,{svgName:Ha.Back}),ar.createElement("span",null,ar.createElement(bp,{phrase:"backTo",options:{label:e.returnAppLink.label}}))),e.showBreadcrumbs&&ar.createElement(Hp,{playlist:e.playlist}),ar.createElement("div",null,!!i&&ar.createElement("div",{className:"thumbnail"},ar.createElement(zf,{src:i})),ar.createElement("div",{className:"metadata-actions-container"},!!c&&ar.createElement("p",{className:"text-muted"},c),ar.createElement("h1",null,e.playlist.name),e.playlist.description&&ar.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:Na(e.playlist.description)}}),!!n&&ar.createElement("span",{className:"date-sub-heading"},ar.createElement(bp,{phrase:"created",options:{date:t}})),!!o&&ar.createElement("span",{className:"metadata-separator"},"•"),!!r&&ar.createElement("span",{className:"date-sub-heading"},ar.createElement(bp,{phrase:"updated",options:{date:Tp.utc(e.lastUpdated).fromNow()}})),ar.createElement(_p,{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 $p(e){return function(e){if(Array.isArray(e))return Yp(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 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)||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 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(){return ar.createElement("div",{className:"tile"},ar.createElement("div",{className:"tile-stripe-thick partial-loading-item"}),ar.createElement("div",{className:"tile-stripe partial-loading-item"}))};function Kp(){var e=$p(Array(25));return ar.createElement("div",{className:"partial-loading-view"},ar.createElement("div",{className:"tile-list"},e.map((function(e,t){return ar.createElement(Gp,{key:t})}))))}function Wp(){return ar.createElement("div",{className:"partial-loading-view playlist-list-header border-bottom"})}var Jp=function(e){return e&&!(e.data&&e.data.length)},Xp=function(e,t){if(e&&e.data&&e.data.length&&!(t>e.data.length))return e.data[t]};function Zp(e){var t=e.playlist,n={application:An,action:vn.PLAYLIST,args:[t.id.toString(),Pa(t.name)]},r={location:ia.PlaylistListItem},o=function(){if(t.thumbnail&&t.thumbnail.url)return t.thumbnail.url;var e=Xp(t.videos,0);return e?e.thumbnail&&zp.createUrl(e.thumbnail.url,{size:Lp.Small}):void 0},i=t.videos&&t.videos.count||null;return ar.createElement(vp.Provider,{value:"playlists.playlistList"},ar.createElement("div",{className:"playlist-item col-xs-6 col-sm-4 col-lg-3"},ar.createElement("div",{className:"cv-thumbnail"},ar.createElement(Ff,{appLink:n},ar.createElement("div",{className:"playlist-btn-mask"}),ar.createElement("div",{className:"playlist-btn-group"},ar.createElement("div",{className:"playlist-btn-icon"}),i&&ar.createElement("div",{className:"playlist-btn-video-count"},ar.createElement(bp,{phrase:"video",options:{smartCount:i}}))),!!o()&&ar.createElement(zf,{src:o()}),i&&ar.createElement("span",{className:"badge"},ar.createElement(bp,{phrase:"video",options:{smartCount:i}})))),ar.createElement("div",{className:"cv-video-content"},ar.createElement("div",{className:"name-container"},ar.createElement("div",{className:"playlist-icon"}),ar.createElement(Ff,{appLink:n,className:"playlist-name"},t.name),ar.createElement("div",{className:"playlist-actions-container"},ar.createElement(kp,{playlist:t,analyticsOptions:r}))),!1)))}function Qp(e){var t=e.playlists;return ar.createElement("div",{className:"playlist-list grid"},ar.createElement("div",{className:"row"},t.map((function(e){return ar.createElement(Zp,{key:e.id,playlist:e})}))))}function ed(e){var t=e.user,n=t&&Ur.getPhrase("playlists.playlistList","heading",{fname:t.givenName,lname:t.familyName});return ar.createElement("div",{className:"playlist-list-header border-bottom"},ar.createElement("div",{className:"heading-wrapper"},n?ar.createElement("h1",null,n):ar.createElement("div",{className:"partial-loading-item heading"})),ar.createElement(td,{className:"nav-link new-playlist",analyticsOptions:{location:ia.PlaylistListHeader}}))}function td(e){var t=e.className,n=e.analyticsOptions,r=ar.useCallback((function(){return hc.logUserAction({},hc.mergeOptions(n,{actionType:ra.Create,entity:oa.Playlist,workflowPhase:aa.Start}))}),[n]),o=Object.assign(Object.assign({appLink:{application:An,action:vn.NEW_PLAYLIST}},t?{className:t}:{}),{onClick:r});return ar.createElement(Ff,Object.assign({},o),ar.createElement(qf,{svgName:Ha.Plus}),ar.createElement(bp,{namespace:"playlists.newPlaylistButton",phrase:"createNew"}))}var nd,rd=n(45);function od(e){return function(e){if(Array.isArray(e))return id(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 id(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 id(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 id(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 ad(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=ar.useRef(null);return ar.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(){Or(e.close)?e.close():Or(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=ar.useMemo((function(){return new t(r)}),[r]),c=ad(a,[a]);return t?ar.createElement("div",{ref:c,className:i}):ar.createElement(ar.Fragment,null)}function ud(e){var t=e.appLink,n=e.className,o=e.children,i=e.tag,a=void 0===i?"a":i;if(!t)return ar.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 ar.createElement(a,Object.assign({},u),o)}!function(e){e.Read="read",e.Write="write",e.None="none"}(nd||(nd={}));var sd=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 ld(e){var t=e.video,n=t.series,r=t.season,o=t.episodeNumber;if(!n)return ar.createElement(ar.Fragment,null);var i={application:An,action:vn.SERIES,args:[n.id]};return ar.createElement("div",{className:"series-season-episode"},ar.createElement(ud,{appLink:i,className:"hero-series"},ar.createElement("span",null,n.name),!!o&&ar.createElement("span",{className:"season-episode-block"}," ",!!r&&ar.createElement(ar.Fragment,null,ar.createElement("span",null,"S".concat(sd(r.number,2)))," • "),ar.createElement("span",null,"E".concat(sd(o,2))))))}var fd=function(e,t,n){ar.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},dd=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 hd(e){var t=e.video,n=e.appLink,r=e.onClick,o=t.thumbnail&&zp.createUrl(t.thumbnail.url,{size:Lp.Small});return ar.createElement("div",{className:"cv-thumbnail",onClick:r},ar.createElement("div",{className:"item-number-viewpart"}),ar.createElement(Ff,{appLink:n,className:"video-link"},ar.createElement("div",{className:"play-btn-mask"}),ar.createElement("div",{className:"play-icon-video"},ar.createElement("svg",{className:"play-icon"},ar.createElement("use",{xlinkHref:"#play"}))),!!o&&ar.createElement(zf,{title:t.name,src:o}),ar.createElement("span",{className:"duration"},dd(t.duration))))}var yd=Ur.encloseNamespace("playlists.videoList");function md(e){var t=e.video,n=e.playlistId,o=e.canEdit,i=e.showLoader,a=e.analyticsOptions,c=Kn.getClickView().Shared.Views.VideoActionsListView,u=Kn.getVideoActionsCollection(t);o&&u.add({allowedLibs:["none"],text:yd("removeHeading"),description:yd("removeInfo"),eventName:"remove-from-playlist",className:"remove-from-playlist"});fd(t,"remove-from-playlist",(function(){hc.logUserAction({id:t.get("id"),playlistId:n},hc.mergeOptions(a,{actionType:ra.Dissociate,entity:oa.Video,workflowPhase:aa.Start})),r.AppLinkHelper.trigger({application:An,action:vn.REMOVE_VIDEO_FROM_PLAYLIST,args:[t.get("id"),n]})}));var s=new c({model:t,collection:u,itemModel:t});s.showDeleteLoader=i,Kn.getClickView().Shared.Services.VideoActionService.mixin(s);var l=jr(s);return ar.createElement("div",{ref:l})}function vd(e){var t=e.video,n=Kn.getClickView().Shared.Models.WebPlayer,r=jr(new(0,Kn.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 ar.createElement("div",{ref:r})}function bd(e){var t=e.previewOpen,n=e.setPreviewOpen;return ar.createElement(vp.Provider,{value:"playlists.videoList"},ar.createElement("div",{className:"video-preview-pane"},ar.createElement("div",{className:"cv-video-footer"},ar.createElement("div",{className:"preview-video-container"},ar.createElement("div",{className:"preview-video".concat(t?" open":"")},t?ar.createElement("p",{onClick:function(){return n(!1)}},ar.createElement(bp,{phrase:"hide"}),ar.createElement("span",{className:"preview-video-icon"},ar.createElement(bp,{phrase:"minus"}))):ar.createElement("p",{onClick:function(){return n(!0)}},ar.createElement(bp,{phrase:"show"}),ar.createElement("span",{className:"preview-video-icon"},ar.createElement(bp,{phrase:"plus"}))))),ar.createElement("div",{className:"preview-pane"},t&&ar.createElement(vd,{video:e.video})))))}function gd(){var e=ad(ar.useMemo((function(){var e=Kn.getClickView().PlaylistApp;return!!e&&new e.Views.PlaceholderView}),[]),[]);return ar.createElement("div",{ref:e})}function wd(e){return ar.createElement("span",{className:"restricted-badge-container"},ar.createElement(cd,{view:Kn.getClickView().Shared.Views.RestrictedBadgeView,options:{model:e.video}}))}function Ed(e){return ar.createElement(cd,{view:Kn.getClickView().Shared.Views.RestrictionInfoView,options:{model:e.video,showBanner:!0},className:"restriction-info-container"})}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 kd=Ur.encloseNamespace("playlists.videoList"),xd=Object(rd.SortableHandle)((function(){return ar.createElement("svg",null,ar.createElement("use",{xlinkHref:"#handle"}))}));function Cd(e){var t=e.video,n=e.playlistId,r=e.canEdit,o=e.idx,i=e.getVideoAppLink,a=e.setIsSorting,c=Sd(ar.useState(!1),2),u=c[0],s=c[1],l=Sd(ar.useState(!1),2),f=l[0],p=l[1],d=Sd(ar.useState(!1),2),h=d[0],y=d[1],m=Sd(ar.useState(!1),2),v=m[0],b=m[1],g=ar.useRef(),w=t.hasOwnProperty("_allowAccess")?t._allowAccess!==nd.None:e.isUserSignedIn,E=!Jp(t.interactives),S=Kn.getClickView().Shared.Helpers.formatSafeHTML(t.description,{linkify:!1}),O=Kn.getMasterVideoModel(t),k=O.getVideoOrigin(),x=k&&"".concat(kd("videoFrom")," ").concat(function(e){switch(e){case"library":case"workspace":case"exchange":return kd(e);default:return""}}(k)),C=function(e){return hc.logUserAction({id:t.id},Object.assign({location:ia.VideoList,actionType:ra.Play,entity:oa.Video,workflowPhase:aa.Start},e?{descriptor:e}:{}))};ar.useEffect((function(){var e;(null===(e=g.current)||void 0===e?void 0:e.clientHeight)>36&&s(!0)}),[]),fd(O,"itemRestricted itemUnrestricted",(function(){Or(e.fetchRestrictions)&&e.fetchRestrictions()}));var A=O.hasRestriction(),j=O.isRestricted();return ar.createElement(vp.Provider,{value:"playlists.videoList"},ar.createElement("div",{className:"playlist-video-item cv-video"},ar.createElement("div",{className:"tile-item-inner border-bottom"},ar.createElement("div",{className:"item-number-container".concat(r?" draggable":"")},r&&ar.createElement("div",{className:"drag-handle-container",onMouseDown:function(){y(!1),p(!1),a(!0)},onMouseUp:function(){return a(!1)}},ar.createElement(xd,null)),ar.createElement("div",{className:"item-number"},ar.createElement("span",null,o+1))),j?ar.createElement(cd,{view:Kn.getClickView().Shared.Views.VideoListItemView,options:{model:O,logClickthrough:!1},className:"restricted-playlist-video-item"}):ar.createElement(ar.Fragment,null,ar.createElement(hd,{video:t,appLink:i(t),onClick:function(){return C(da.Thumbnail)}}),ar.createElement("div",{className:"info cv-video-content"},ar.createElement("div",{className:"cv-header".concat(t.series?" has-series":"")},ar.createElement("div",{className:"video-actions-container"},ar.createElement(md,{video:O,playlistId:n,canEdit:r,showLoader:function(){return b(!0)},analyticsOptions:{location:ia.VideoListItem}})),ar.createElement(ld,{video:t}),ar.createElement("h3",{className:"cv-title",title:t.name},ar.createElement(Ff,{appLink:i(t),onClick:function(){return C(da.Title)},className:"video-link"},t.name)),k&&ar.createElement("span",{className:"metadata-badge origin ".concat(k),title:x},k),A&&ar.createElement(wd,{video:O})),!1,ar.createElement("p",{className:"cv-metadata"},t.rating&&t.rating.code&&ar.createElement("span",{className:"metadata-badge",title:"".concat(kd("ratedTitle")," ").concat(t.rating.name)},t.rating.code),t.rating&&!t.rating.code&&ar.createElement("span",{className:"metadata-badge",title:kd("unratedTitle")},ar.createElement(bp,{phrase:"unrated"})),t.channel&&t.channel.name&&ar.createElement("span",{className:"metadata-badge",title:t.channel.name},t.channel.name),t.productionYear&&ar.createElement("span",{className:"metadata-badge",title:"".concat(kd("productionYearTitle")," ").concat(t.productionYear)},t.productionYear),E&&ar.createElement("span",{className:"metadata-badge orange has-interactives",title:kd("interactiveTitle")},ar.createElement(bp,{phrase:"interactive"}))),A&&ar.createElement(Ed,{video:O}),ar.createElement("div",{className:"cv-description-wrapper".concat(f?" opened":" truncated")},ar.createElement("p",{className:"cv-description",ref:g,dangerouslySetInnerHTML:{__html:S}}),u&&ar.createElement("a",{className:"show-more",onClick:function(){return p((function(e){return!e}))}},f?ar.createElement(bp,{phrase:"showLess"}):ar.createElement(bp,{phrase:"showMore"})))),w?ar.createElement(bd,{video:t,previewOpen:h,setPreviewOpen:y}):ar.createElement(gd,null))),v&&ar.createElement("div",{className:"cv-loader cover"},ar.createElement(Bf,{size:"md",color:"#f8981d"}),ar.createElement("div",{className:"loading-mask"}))))}function Ad(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 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,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 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 _d=Object(rd.SortableElement)((function(e){return ar.createElement(Cd,Object.assign({},e))})),Ld=Object(rd.SortableContainer)((function(e){var t=Ad(ar.useState(!1),2),n=t[0],r=t[1];return ar.createElement("div",{className:"tile-list-view video-tile-rows".concat(n?" sorting":"")},e.videos.map((function(t,n){return ar.createElement(_d,Object.assign({key:t.id,index:n,idx:n,video:t,setIsSorting:r},e))})))}));function Pd(e){return function(e){if(Array.isArray(e))return Nd(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 Nd(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 Nd(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 Nd(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 Rd=function(){return ar.createElement("div",{className:"playlist-video-item cv-video"},ar.createElement("div",{className:"tile-item-inner"},ar.createElement("div",{className:"partial-loading-item cv-thumbnail"},ar.createElement("a",null)),ar.createElement("div",{className:"cv-video-content"},ar.createElement("div",{className:"partial-loading-item info video-title"}),ar.createElement("div",{className:"partial-loading-item info"}),ar.createElement("div",{className:"partial-loading-item info"}))))};function Td(){var e=Pd(Array(25));return ar.createElement("div",{className:"tile-list-view video-tile-rows partial-loading-view"},ar.createElement("div",{className:"video-list-view"},e.map((function(e,t){return ar.createElement(Rd,{key:t})}))))}var Id=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 Fd(e){var t=e.onSortComplete,n=e.onSortStart,o=e.showPartialLoading,i=Id(e,["onSortComplete","onSortStart","showPartialLoading"]),a=function(e){Or(n)&&n(e)};return o?ar.createElement(Td,null):ar.createElement(Ld,Object.assign({},i,{onSortStart:function(e){var t=e.index;return a(t)},onSortEnd:function(e){Or(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 Dd=Ur.encloseNamespace("playlists.videoNotFound");function Md(e){var t=e.playlist,n=e.isShared,r={application:An,action:n?vn.SHARED_PLAYLIST:vn.PLAYLIST,args:[t.id,Pa(t.name)]},o={heading:Dd("heading"),description:Dd("info"),returnAppLink:r,returnAppLinkText:Dd("returnTo",{name:t.name})};return ar.createElement(Zf,Object.assign({},o))}function Ud(e){var t=e.playlists,n=e.selectedPlaylistId,r=e.hasMorePlaylists,o=e.fetchMorePlaylists,i=e.isFetching;return t?ar.createElement(vp.Provider,{value:"playlists.leftNav"},ar.createElement("div",{className:"playlists-left-nav"},ar.createElement("div",{className:"navigation-view border-bottom"},ar.createElement("div",{className:"nav-heading"},ar.createElement("h2",null,ar.createElement(bp,{phrase:"playlists"}))),t.map((function(e){return ar.createElement(xp,{key:e.id,playlist:e,selected:n&&e.id.toString()===n.toString()})})),t&&!!t.length&&r&&(i?ar.createElement("span",{className:"loading-text"},ar.createElement(bp,{phrase:"loading"})):ar.createElement(Ja.Button,{variant:"link",onClick:o},ar.createElement(bp,{phrase:"seeMore"})))),ar.createElement("div",{className:"navigation-view"},ar.createElement(td,{className:"nav-link new-playlist",analyticsOptions:{location:ia.LeftNav}})))):ar.createElement(gp,null)}function Vd(e){return ur.createPortal(ar.createElement(Ud,Object.assign({},e)),function(){var e=$("#body").find("#playlists-left-nav");if(e.length)return e[0]}())}function zd(e){var t=Object(sr.useDispatch)(),n=function(e){return ta.getUserPlaylists(new mp(Di.Newest,e))},r=function(e){o.getFetch(t,n(e))()},i=sp((function(e){return n(e).key}));return ar.useEffect((function(){i.shouldInitialFetch&&r()}),[i.shouldInitialFetch]),ar.createElement(Vd,{playlists:i.items,selectedPlaylistId:e.selectedPlaylistId,hasMorePlaylists:!!i.nextCursor,fetchMorePlaylists:function(){return r(i.nextCursor)},isFetching:i.isFetching})}var Hd=Ur.encloseNamespace("playlists.migrationInProgress");function Bd(){var e=o.useGetFetch(ta.getMigrationTask()),t=o.useGetResponse(ta.getMigrationTask().key),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,n=ar.useState(!1),r=kr(n,2),o=r[0],i=r[1],a=ar.useRef(),c=function e(){i((function(e){return!e})),a.current=window.setTimeout(e,t)};return ar.useEffect((function(){a.current=window.setTimeout(c,t)}),[]),ar.useEffect((function(){Or(e)&&e()}),[o]),function(){return window.clearTimeout(a.current)}}((function(){e()}));ar.useEffect((function(){t.data&&t.data.status===$i.Processed&&(n(),r.AppLinkHelper.trigger({application:An,action:vn.HOME}))}),[t.data]);var i=Hd("heading"),a=Hd("description");return ar.createElement(Zf,{heading:i,description:a,returnAppLink:!1})}function qd(e,t){var n=e,r=t,o=sp(e&&function(e){return n(e).key});Object(ar.useEffect)((function(){o.shouldInitialFetch&&t&&r()}),[o.shouldInitialFetch,t]),Object(ar.useEffect)((function(){o.nextCursor&&!o.isFetching&&t&&r(o.nextCursor)}),[o.nextCursor,o.isFetching,t])}function $d(e,t,n){var o;switch(e){case jo.Forbidden:o=n.forbidden;break;case jo.NotFound:o=n.notFound}o?r.AppLinkHelper.trigger(o):t.error(Ur.getPhrase("playlists.hooks","somethingWentWrong"))()}function Yd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Gf(Pr.ALERT);Object(ar.useEffect)((function(){e.hasError&&$d(e.statusCode,n,t)}),[e.hasError])}var Gd,Kd,Wd=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},Jd=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"}(Gd||(Gd={})),function(e){e[e.Guest=16]="Guest",e[e.User=32]="User",e[e.Admin=48]="Admin",e[e.SuperAdmin=64]="SuperAdmin"}(Kd||(Kd={}));var Xd,Zd=function(e){var t,n;if((null===(t=e)||void 0===t?void 0:t.onlineRole)!==Gd.Staff)return null===(n=e)||void 0===n?void 0:n.maxAllowedRating},Qd=function(e){return{url:"/api/domain/v1/subjects/".concat(e),key:"subject:".concat(e)}},eh=function(e,t,n){return{url:"/api/domain/v2/objects/".concat(e),key:"".concat(xn,":").concat(e),success:t,error:n}},th=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 nh(e){var t=e.currentVideoId,n=e.shareCode,o=e.getPlaylistAppLink,i=e.getVideoAppLink,a=e.playlist,c=e.videos,u=Kn.getClickView().Shared,s=Kn.getClickView().PlaylistApp,l=u.Models.MasterPlaylistV2,f=u.Views.MasterPlayView,p=u.Models.MasterVideo,d=s.Models.SharedMasterPlaylistVideo,h=ar.useRef(new l).current;ar.useEffect((function(){if(a&&c){var e=qn.deepClone(c).map((function(e){return u.Helpers.MasterToOnlineVideo(e)}));Yn(h,a,{parse:!0}),Gn(h,"videos",e,{parse:!0}),n&&Gn(h,"shareCode",n),h.trigger("sync")}}),[a,c]),ar.useEffect((function(){h.isLoaded()&&h.trigger("sync")}),[t]);var y=ar.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=jr(y,[y]);return ar.createElement("div",{ref:m})}function rh(e){var t=Object(sr.useDispatch)(),n=o.useBasicFetch(ri),i=!qn.isEmpty(n.data),a=e.filterByRating?i&&Zd(n.data):null,c=e.isShared?!!n.data&&ta.getSharedPlaylist(e.playlistId,a):ta.getPlaylist(e.playlistId),u=!!n.data&&function(t){return(e.isShared?ta.getSharedPlaylistVideos:ta.getPlaylistVideos)(e.playlistId,a,t)},s=o.useBasicFetch(c);Yd(s,{forbidden:{application:An,action:vn.ACCESS_DENIED},notFound:{application:An,action:vn.NOT_FOUND}});var l=sp(u&&function(e){return u(e).key}),f=i&&!!l.items&&!!l.items.length&&th(l.items.map((function(e){return e.id}))),p=o.useBasicFetch(f);qd(u,(function(e){o.getFetch(t,u(e))()})),np(s.data&&s.data.name,[s.data]);var d=function(e,t,n){return n?e&&t?Wd(e,t).filter((function(e){return!Kn.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 ar.useEffect((function(){if(!e.videoId&&!l.nextCursor&&d&&s.data)if(d.length){var t=$o(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?ar.createElement(Md,{playlist:s.data,isShared:e.isShared}):ar.createElement(nh,{playlist:s.data,videos:d,currentVideoId:e.videoId,videoRestrictions:Jd(e.videoId,p.data),shareCode:e.isShared&&e.playlistId,getPlaylistAppLink:e.getPlaylistAppLink,getVideoAppLink:e.getVideoAppLink}):ar.createElement(ar.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 ih(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ah(e,t)}function ah(e,t){return(ah=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=sh(e);if(t){var o=sh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uh(this,n)}}function uh(e,t){return!t||"object"!==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 sh(e){return(sh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fh(e,t){for(var n=0;n<t.length;n++){var 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&&fh(e.prototype,t),n&&fh(e,n),e}!function(e){e.LocalStorage="localStorage",e.SessionStorage="sesstionStorage"}(Xd||(Xd={}));var dh,hh,yh=function(){function e(t){lh(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}(),mh=function(e){ih(n,e);var t=ch(n);function n(){return lh(this,n),t.apply(this,arguments)}return ph(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:Xd.LocalStorage}))}}]),n}(yh),vh=function(e){ih(n,e);var t=ch(n);function n(){return lh(this,n),t.apply(this,arguments)}return ph(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:Xd.SessionStorage}))}}]),n}(yh),bh=mh.Instance,gh=vh.Instance,wh=n(38),Eh=n(100),Sh=n.n(Eh),Oh=n(101),kh=n.n(Oh),xh=n(102),Ch=n.n(xh),Ah=n(103),jh=n.n(Ah),_h=(n(104),n(105),n(106)),Lh=n.n(_h),Ph=n(107),Nh=n.n(Ph),Rh=n(108),Th=n.n(Rh),Ih=n(109),Fh=n.n(Ih),Dh=n(110),Mh=n.n(Dh),Uh=n(111),Vh=n.n(Uh),zh=n(112),Hh=n.n(zh),Bh=n(113),qh=n.n(Bh),$h=n(114),Yh=n.n($h),Gh=n(115),Kh=n.n(Gh),Wh=n(116),Jh=n.n(Wh),Xh=n(117),Zh=n.n(Xh),Qh=n(118),ey=n.n(Qh),ty=n(119),ny=n.n(ty),ry=n(120),oy=n.n(ry),iy=n(121),ay=n.n(iy),cy=n(122),uy=n.n(cy),sy=n(123),ly=n.n(sy),fy=n(124),py=n.n(fy),dy=n(125),hy=n.n(dy),yy=(n(126),n(127)),my=n.n(yy),vy=n(128),by=n.n(vy),gy=n(129),wy=n.n(gy),Ey=(n(130),n(131),n(132)),Sy=n.n(Ey),Oy=n(133),ky=n.n(Oy),xy=n(134),Cy=n.n(xy),Ay=n(135),jy=n.n(Ay),_y=n(136),Ly=n.n(_y),Py=n(137),Ny=n.n(Py),Ry=(n(138),n(139)),Ty=n.n(Ry),Iy=n(140),Fy=n.n(Iy),Dy=n(141),My=n.n(Dy),Uy=n(142),Vy=n.n(Uy),zy=n(143),Hy=n.n(zy),By=n(144),qy=n.n(By),$y=n(145),Yy=n.n($y),Gy=(n(146),n(147)),Ky=n.n(Gy),Wy=n(148),Jy=n.n(Wy),Xy=n(149),Zy=n.n(Xy),Qy=n(150),em=n.n(Qy),tm=n(151),nm=n.n(tm),rm=n(152),om=n.n(rm),im=n(153),am=n.n(im),cm=n(154),um=n.n(cm),sm=n(155),lm=n.n(sm),fm=n(156),pm=n.n(fm),dm=n(157),hm=n.n(dm),ym=n(158),mm=n.n(ym),vm=n(159),bm=n.n(vm),gm=(n(160),n(161),n(162),n(163)),wm=n.n(gm),Em=(n(164),n(165),n(166),n(167),n(168)),Sm=n.n(Em),Om=n(169),km=n.n(Om),xm=(n(170),n(171),n(172),n(173)),Cm=n.n(xm),Am=n(174),jm=n.n(Am),_m=n(175),Lm=n.n(_m),Pm=n(176),Nm=n.n(Pm),Rm=n(177),Tm=n.n(Rm),Im=n(178),Fm=n.n(Im),Dm=n(179),Mm=n.n(Dm),Um=(n(180),n(181),n(182),n(183)),Vm=n.n(Um),zm=n(184),Hm=n.n(zm),Bm=[Sh.a,Ch.a,jh.a,Lh.a,Fh.a,Mh.a,Vh.a,Hh.a,Th.a,kh.a,qh.a,Yh.a,Kh.a,Jh.a,Zh.a,Nh.a,ey.a,ny.a,oy.a,hy.a,ay.a,uy.a,ly.a,py.a,my.a,Cy.a,am.a,lm.a,um.a,bm.a,pm.a,hm.a,mm.a,Vy.a,qy.a,Hy.a,by.a,wy.a,Fy.a,My.a,Ty.a,Sy.a,jy.a,Jy.a,Zy.a,Ly.a,Ny.a,em.a,ky.a,Ky.a,nm.a,om.a,Yy.a,Sm.a,km.a,wm.a,Lm.a,jm.a,Cm.a,Nm.a,Fm.a,Tm.a,Mm.a,Hm.a,Vm.a];function qm(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"}(dh||(dh={}));var $m;function Ym(e,t){for(var n=0;n<t.length;n++){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(wh.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),(hh=wh.library).add.apply(hh,function(e){if(Array.isArray(e))return qm(e)}($m=Bm)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}($m)||function(e,t){if(e){if("string"==typeof e)return qm(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)?qm(e,t):void 0}}($m)||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 Gm=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 wh.icon(e,t.iconOptions||{})}},{key:"faIconLookup",value:function(e,t){var n=t.prefix,r=void 0===n?"cv":n;return wh.findIconDefinition({prefix:r,iconName:e})}}])&&Ym(t.prototype,n),r&&Ym(t,r),e}().Instance,Km=dh,Wm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return Math.floor(Math.random()*Math.floor(e))};function Jm(e){var t=e.title,n=e.placement,r=e.trigger,o=e.children;return ar.createElement(Ja.OverlayTrigger,{placement:n,overlay:ar.createElement(Ja.Tooltip,{id:"".concat(t,"-").concat(Wm())},t),trigger:r},ar.createElement("span",null,o))}Jm.defaultProps={trigger:["hover","click","focus"],placement:"top"};var Xm;function Zm(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?Xm.Standard:a,u=e.onClick,s=e.title,l=e.tooltipPlacement,f=void 0===l?"right":l,p=i,d={dangerouslySetInnerHTML:{__html:Gm.getSvg(t)},className:"".concat(r," ").concat(c),onClick:Or(u)?u:null};return s?ar.createElement(Jm,{title:s,placement:f},ar.createElement(p,Object.assign({},d))):ar.createElement(p,Object.assign({},d))}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg"}(Xm||(Xm={}));var Qm,ev=n(231);function tv(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 nv(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 nv(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 nv(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 rv(e){var t=tv(Object(ar.useState)(window.matchMedia(e).matches),2),n=t[0],r=t[1];return Object(ar.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)"}(Qm||(Qm={}));var iv,av={isNumber:function(e){return av.isType(e,"number")},isString:function(e){return av.isType(e,"string")},isType:function(e,t){return ov(e)===t}},cv=n(39),uv=n.n(cv);function sv(e){return function(e){if(Array.isArray(e))return lv(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 lv(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 lv(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 lv(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 fv(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 qn.isObject(e)&&e.hasOwnProperty(t)&&av.isString(e[t])}function dv(e,t,n){return function(r){var i=r.value;if(i.length||n(),!(i.length<e.activationLength)){if(e.local){var a=Or(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)||!av.isString(e[s]))&&e[s].trim().toLowerCase().includes(l)})):[]);t((function(e){return Object.assign(Object.assign({},e),fv({},iv.Local,a))}))}var c,u,s,l;e.getRemoteUrl&&function(e,t,n){var r=Or(e)&&e(t);r&&o.ajaxRequest({resource:r,type:$r.GET,success:n,error:function(){}})}(e.getRemoteUrl,i,(function(n){return t((function(t){return Object.assign(Object.assign({},t),fv({},iv.Remote,Or(e.formatRemoteSuggestions)?e.formatRemoteSuggestions(n):n))}))}))}}}function hv(e,t,n,r,o,i){var a=function(t){return e[t]||[]},c=t?a(iv.Recent):[],u=a(iv.Local),s=a(iv.Remote),l=[];c.length&&l.push({title:n,data:c});var f=[].concat(sv(u),sv(s));return Number.isInteger(i)&&l.length>i&&f.slice(0,i),Or(o)?l.push.apply(l,sv(o(f))):l.push({title:r,data:f}),l}function yv(e){return e.data}function mv(e){if(e.title)return ar.createElement("strong",null,e.title)}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote"}(iv||(iv={}));var vv={container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(uv.a.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"cursor-pointer py-1 px-2",suggestionHighlighted:uv.a.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(uv.a.sectionContainer)};function bv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(vv,e)}var gv=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},wv=function(e){var t="d-inline-block svg-container";return Or(e)?t+" cursor-pointer":t};function Ev(e){var t=e.onClickSearchIcon,n=e.searchIconPlacement,r=e.className,o=gv(e,["onClickSearchIcon","searchIconPlacement","className"]),i="form-control ".concat(uv.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 ar.createElement("div",{className:a},ar.createElement(Zm,{svgName:Km.Search,size:Xm.Small,onClick:t,className:wv(t)}))};return ar.createElement("div",{className:"input-group"},"left"===n&&ar.createElement("div",{className:"input-group-prepend"},ar.createElement(c,null)),ar.createElement("input",Object.assign({className:i},o)),"right"===n&&ar.createElement("div",{className:"input-group-append"},ar.createElement(c,null)))}function Sv(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 Ov(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 Ov(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 Ov(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 kv=Or;function xv(e){var t,n,r,o=(t=e.initialSuggestions,n=e.recentSearches,fv(r={},iv.Recent,n),fv(r,iv.Local,t),fv(r,iv.Remote,[]),r),i=Sv(ar.useState(e.initialQuery||""),2),a=i[0],c=i[1],u=Sv(ar.useState(o),2),s=u[0],l=u[1],f=rv(Qm.XS),p=function(){l(o)},d=function(t){t.preventDefault(),kv(e.onSubmit)&&e.onSubmit(a)};return ar.createElement("form",{onSubmit:d},ar.createElement(ev,{suggestions:hv(s,!a,e.recentSearchHeading||Ur.getPhrase("shared.searchBar","recentSearchHeading"),e.suggestionsHeading,e.getSections,e.suggestionLimit),onSuggestionsFetchRequested:dv(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 kv(e.getSuggestionComponent)?e.getSuggestionComponent(t):function(e,t){return pv(t,e)?ar.createElement(ar.Fragment,null,t[e]):ar.createElement(ar.Fragment,null)}(e.valueKey,t)},alwaysRenderSuggestions:e.alwaysRenderSuggestions,focusInputOnSuggestionClick:!f,inputProps:{placeholder:e.placeholder||Ur.getPhrase("shared.searchBar","placeholder"),value:a,onChange:function(t,n){var r=n.newValue;c(r),kv(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:Ev,theme:bv(e.theme),multiSection:!0,renderSectionTitle:mv,getSectionSuggestions:yv}))}xv.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right"};n(232);Ur.encloseNamespace("playlists.addToPlaylist");function Cv(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 Av(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 Av(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 Av(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=Ur.encloseNamespace("playlists.deletePlaylist");function _v(e){var t=Object(sr.useDispatch)(),n=Cv(ar.useState(!1),2),i=n[0],a=n[1],c=o.useBasicFetch(ta.getPlaylist(e.playlistId));np(c.data&&"".concat(jv("title",{name:c.data.name})),[c.data]);var u=[{variant:"secondary",onClick:e.closePopup,buttonText:jv("keep")},{variant:"danger",onClick:function(){a(!0);o.fetch(t,ta.deletePlaylist(e.playlistId,(function(){e.closePopup(),e.routeToOnDelete&&r.AppLinkHelper.trigger(e.routeToOnDelete)}),e.closePopup)),hc.logUserAction({id:e.playlistId},hc.mergeOptions(e.analyticsOptions,{actionType:ra.Delete,entity:oa.Playlist,workflowPhase:aa.Complete}))},buttonText:jv("confirm"),isSpinnerButton:!0,showSpinner:i}];return ar.createElement(vp.Provider,{value:"playlists.deletePlaylist"},ar.createElement(Tf,{title:jv("check"),close:e.closePopup,showLoadingSpinner:!c.data},!!c.data&&ar.createElement("div",{className:"delete-playlist-container"},ar.createElement("div",{className:"delete-playlist-body"},ar.createElement("p",null,ar.createElement(bp,{phrase:"warning",options:{name:c.data.name}})),ar.createElement("p",null,ar.createElement(bp,{phrase:"videoNote"}))),ar.createElement(Pf,{buttons:u}))))}function Lv(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 Pv(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 Pv(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 Pv(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 Nv=n(68),Rv=Nv.object().shape({name:Nv.string().max(255,(function(){return Ur.getPhrase("playlists.validation","nameExceeds")})).required((function(){return Ur.getPhrase("playlists.validation","nameRequired")})),description:Nv.string().max(65535,(function(){return Ur.getPhrase("playlists.validation","descriptionExceeds")}))}),Tv=Ur.encloseNamespace("playlists.playlistDetails");function Iv(e){var t=cf(),n=function(e){var t,n=Lv(ar.useState(!1),2),r=n[0],o=n[1];return ar.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]),ar.useEffect((function(){e.isSubmitting&&o(!1)}),[e.isSubmitting]),r}(t);return ar.createElement(ar.Fragment,null,ar.createElement(Of,{label:Tv("nameLabel"),type:"text",name:"name",id:"name",placeholder:Tv("namePlaceholder"),autoFocus:!0,value:t.values.name,error:t.errors.name,touched:t.touched.name}),ar.createElement(Of,{label:Tv("descriptionLabel"),component:"textarea",name:"description",id:"description",placeholder:Tv("descriptionPlaceholder"),value:t.values.description,error:t.errors.description,touched:t.touched.description}),ar.createElement("div",{className:"btn-container d-flex justify-content-end"},ar.createElement("button",{type:"button",className:"btn btn-".concat(e.cancelButtonClass," mr-2"),onClick:e.onClickCancel},ar.createElement(bp,{namespace:"playlists.playlistDetails",phrase:"cancel"})),ar.createElement(_f,{type:"submit",buttonText:e.isNew?Tv("create"):Tv("save"),variant:"primary",className:t.isValid?"":"disabled",disabled:!n,showSpinner:t.isSubmitting})))}function Fv(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 ar.createElement(xf,{initialValues:{name:r,description:i||""},validationSchema:Rv,onSubmit:u,renderChildren:function(){return ar.createElement(Iv,{isNew:!c,onClickCancel:s,cancelButtonClass:l})}})}var Dv=Ur.encloseNamespace("playlists.editPlaylist");function Mv(e){var t=Object(sr.useDispatch)(),n=o.useBasicFetch(ta.getPlaylist(e.playlistId));np(n.data&&Dv("title",{name:n.data.name}),[n]);return ar.createElement(Tf,{title:Dv("heading"),close:e.closePopup,showLoadingSpinner:!n.data},!!n.data&&ar.createElement(Fv,{playlist:n.data,savePlaylist:function(n){o.fetch(t,ta.updatePlaylist(e.playlistId,n,e.closePopup,e.closePopup)),hc.logUserAction(n,hc.mergeOptions(e.analyticsOptions,{actionType:ra.Edit,entity:oa.Playlist,workflowPhase:aa.Complete}))},onClickCancel:e.closePopup,cancelButtonClass:"secondary"}))}var Uv=Ur.encloseNamespace("playlists.newPlaylist");function Vv(e){var t=Object(sr.useDispatch)();np(Uv("title"));var n=o.useBasicFetch(ri);return ar.createElement(Tf,{title:Uv("title"),close:e.closePopup,showLoadingSpinner:!n.data},!!n.data&&ar.createElement(Fv,{savePlaylist:function(i){o.fetch(t,ta.createPlaylist(n.data.id,i,(function(t){e.closePopup(),t&&r.AppLinkHelper.trigger({application:e.application,action:vn.PLAYLIST,args:[t.id,Pa(t.name)]})}),e.closePopup)),hc.logUserAction(i,hc.mergeOptions(e.analyticsOptions,{actionType:ra.Create,entity:oa.Playlist,workflowPhase:aa.Complete}))},onClickCancel:e.closePopup,cancelButtonClass:"secondary"}))}var zv="hc/articles/115005679748";function Hv(e){var t=e.imageUrl,n=e.heading,r=e.description;return ar.createElement("div",{className:"empty-state-container"},ar.createElement("div",{className:"content-container"},t&&ar.createElement("img",{src:t}),ar.createElement("h1",null,n),r&&ar.createElement("p",{dangerouslySetInnerHTML:{__html:r}})))}var Bv=Ur.encloseNamespace("playlists.emptyState");function qv(e){var t=e.supportSiteUrl,n=Gf(Wf).getImageUrls(),r=Dp.safeUrlConcat(t,zv);return ar.createElement(Hv,{imageUrl:n.EmptyStates.VIDEOS,heading:Bv("noVideosHeading"),description:'<a href="'.concat(r,'" target="_blank">').concat(Bv("noVideosInfo"),"</a>")})}var $v=ar.createContext({});function Yv(e,t,n,r){return{url:"/api/domain/v2/objects/".concat(t),key:"favourite:video:".concat(t,":").concat(e),data:{favouriteVideos:e},type:$r.PUT,invalidationKeys:["favourite:videos:".concat(t),"video:is:favourited:".concat(t)],success:n,error:r}}function Gv(e,t,n,r){return{url:"/api/domain/v2/objects/".concat(t,"/favouriteVideos/").concat(e),key:"favourite:video:".concat(t,":").concat(e),type:$r.DELETE,invalidationKeys:["favourite:videos:".concat(t),"video:is:favourited:".concat(t)],success:n,error:r}}var Kv=function(e,t,n,r,o){return(n?Yv:Gv)(e,t,r,o)};var Wv={url:"/api/config",key:"config"};function Jv(e,t,n){var r=function(){n||(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-400||e())};Object(ar.useEffect)((function(){var e=Sr(r,200);return t&&window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[t])}function Xv(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 Zv(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 Zv(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 Zv(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 Qv(e){var t=e.isFetching,n=e.onClick;return ar.createElement("div",{className:"infinite-scroll-footer"},t?ar.createElement(Bf,{size:"md",color:"#979797"}):ar.createElement("span",{onClick:n},ar.createElement(qf,{svgName:Ha.Down})))}var eb;!function(e){e[e.AddToPlaylist=0]="AddToPlaylist",e[e.RemoveFromPlaylist=1]="RemoveFromPlaylist",e[e.Share=2]="Share",e[e.Edit=3]="Edit"}(eb||(eb={}));function tb(e){var t=e&&e.length&&e.map((function(e){return e.dateAssociated}));return t&&t.length?Go(t,(function(e){return new Date(e).getTime()})):null}function nb(e){return[e?eb.RemoveFromPlaylist:eb.AddToPlaylist,eb.Share]}function rb(e,t,n){hc.logUserAction({id:t,playlistId:e},{location:ia.VideoList,entity:oa.Video,actionType:ra.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 ib(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 ib(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 ib(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 ab(e){var t,n=Object(sr.useDispatch)(),r=o.useBasicFetch(Wv),i=o.useBasicFetch(ri),a=!qn.isEmpty(i.data),c=e.filterByRating?a&&Zd(i.data):null,u=e.isShared?!!i.data&&ta.getSharedPlaylist(e.playlistId,c):ta.getPlaylist(e.playlistId),s=o.useBasicFetch(u);Yd(s,{forbidden:{application:An,action:vn.ACCESS_DENIED},notFound:{application:An,action:vn.NOT_FOUND}});var l=!!i.data&&function(t){return(e.isShared?ta.getSharedPlaylistVideos:ta.getPlaylistVideos)(e.playlistId,c,t)},f=o.useBasicFetch(e.canFollow&&!!i.data&&ta.getIsFollowingPlaylist(e.playlistId,i.data.id)),p=function(e){o.getFetch(n,l(e))()},d=function(e,t){var n=t,r=sp(e&&function(t){return e(t).key});return Jv((function(){return t&&n(r.nextCursor)}),!!r.nextCursor,r.isFetching),Object(ar.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;oi(h);var v,b,g,w,E=ob((v=h,b=Xv(Object(ar.useState)(),2),g=b[0],w=b[1],Object(ar.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],k=a&&!!h&&!!h.length&&th(h.map((function(e){return e.id}))),x=o.useGetResponse(k&&k.key),C=o.useGetFetch(k);k&&x.shouldFetch&&C();var A=a?!!x.data&&Wd(h,x.data):h;np(!!s.data&&s.data.name,[s.data]);var j,_,L=!!e.allowEdit&&function(e,t){return!(qn.isEmpty(t)||!e||qn.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 ar.createElement($v.Provider,{value:{videoActions:nb(L),getActionAppLink:(j=e.application,_=e.playlistId,function(e,t){switch(t){case eb.RemoveFromPlaylist:return{application:j,action:vn.REMOVE_VIDEO_FROM_PLAYLIST,args:[e.id,_]};case eb.AddToPlaylist:return{application:j,action:vn.ADD_TO_PLAYLIST,args:[e.id]};case eb.Share:return{application:j,action:vn.HOME}}})}},ar.createElement("div",{className:"bg-white padding-gutter"},ar.createElement(qp,{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?ta.followPlaylist:ta.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&&tb(h),imageCdnUrl:!!r.data&&r.data.imageCdnUrl,returnAppLink:e.returnAppLink,canFollow:e.canFollow}),P?!!r.data&&ar.createElement(qv,{supportSiteUrl:r.data.supportSiteUrl}):ar.createElement(Fd,{videos:S||A,playlistId:!!s.data&&s.data.id,onSortStart:function(t){var n=h[t];n&&rb(e.playlistId,n.id,aa.Start)},onSortComplete:function(t,r){if(t!==r){var i=A[t];if(i){var a=Ni(A,t,r),c=a.reorderedItems,u=a.reorderRequest;O(c),rb(e.playlistId,i.id,aa.Complete);o.fetch(n,ta.reorderVideos(e.playlistId,u,null,(function(){O(null)})))}}},isUserSignedIn:a,canEdit:L,showPartialLoading:!A||!i.data||!r.data,getVideoAppLink:e.getVideoAppLink,getSeriesAppLink:e.getSeriesAppLink,fetchRestrictions:C,setFavourite:function(e,t,r){o.fetch(n,Kv(e,i.data.id,t,(function(){hc.logUserAction({id:e},{entity:oa.Video,actionType:ra.Favourite,descriptor:t?ba.On:ba.Off,location:ia.VideoThumbnail,workflowPhase:aa.Complete})}),r))}}),!!y&&ar.createElement(Qv,{isFetching:m,onClick:p})))}var cb=function(){return"/api/domain/v1/subjects/audiences"},ub=function(){return{bootstrapName:"presentationAudiences",url:cb(),key:"presentation:audiences",normalize:!1}},sb=Ur.encloseNamespace("playlists.emptyState");function lb(){var e=Gf(Wf).getImageUrls();return ar.createElement(Hv,{imageUrl:e.EmptyStates.VIDEOS,heading:sb("noPlaylistsHeading"),description:sb("noPlaylistsInfo")})}function fb(e){var t=Object(sr.useDispatch)(),n=o.useBasicFetch(Wv),r=o.useBasicFetch(ri),i=o.useBasicFetch(ub()),a=function(t){return ta.getUserPlaylists(new mp(e.sort,t))},c=function(e){o.getFetch(t,a(e))()},u=sp((function(e){return a(e).key}));return np(Ur.getPhrase("playlists.playlists","title")),Jv((function(){return c(u.nextCursor)}),!!u.nextCursor,u.isFetching),ar.useEffect((function(){u.shouldInitialFetch&&c()}),[u.shouldInitialFetch]),Wo(u.items)?ar.createElement(lb,null):ar.createElement("div",{className:"bg-white padding-gutter"},n.data&&r.data?ar.createElement(ed,{user:r.data,imageCdnUrl:n.data.imageCdnUrl,sortType:e.sort,getSortAppLink:e.getSortAppLink}):ar.createElement(Wp,null),u.items&&(i.data||i.hasError)?ar.createElement(Qp,{playlists:u.items}):ar.createElement(Kp,null),!!u.items&&!(!u.nextCursor&&!u.isFetching)&&ar.createElement(Qv,{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 db(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 db(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 db(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 hb=Ur.encloseNamespace("playlists.removeVideoFromPlaylist");function yb(e){var t=Object(sr.useDispatch)(),n=pb(ar.useState(!1),2),r=n[0],i=n[1],a=o.useBasicFetch(ta.getPlaylist(e.playlistId)),c=o.useBasicFetch(eh(e.videoId));np(!!c.data&&hb("title",{name:c.data.name}),[c.data]);var u=[{variant:"secondary",onClick:e.closePopup,buttonText:hb("keep")},{variant:"danger",onClick:function(){i(!0),o.fetch(t,ta.removePlaylistVideo(e.playlistId,e.videoId,e.closePopup,e.closePopup)),hc.logUserAction({id:e.videoId,playlistId:e.playlistId},hc.mergeOptions(e.analyticsOptions,{actionType:ra.Dissociate,entity:oa.Video,workflowPhase:aa.Complete}))},buttonText:hb("confirm"),isSpinnerButton:!0,showSpinner:r}],s=!!a.data&&!!c.data;return ar.createElement(Tf,{title:hb("check"),close:e.closePopup,showLoadingSpinner:!s},s&&ar.createElement("div",{className:"remove-video-container"},ar.createElement("div",{className:"remove-video-body"},ar.createElement("p",null,ar.createElement(bp,{namespace:"playlists.removeVideoFromPlaylist",phrase:"warning",options:{video:c.data.name,playlist:a.data.name}}))),ar.createElement(Pf,{buttons:u})))}var mb=function(e){var t=e.children;return ar.createElement(Kr,null,t)};function vb(e,t){yn.getInstance(a.PLAYLIST).getMigrationTask((function(n){return yn.releaseInstance(a.PLAYLIST),n&&n.status!==$i.Processed||e.action!==vn.MIGRATION_IN_PROGRESS?n&&n.status!==$i.Processed&&e.action!==vn.MIGRATION_IN_PROGRESS?(r.AppLinkHelper.trigger({application:An,action:vn.MIGRATION_IN_PROGRESS}),void r.AppLinkUtility.routingEnded()):void t(e):(r.AppLinkHelper.trigger({application:An,action:vn.HOME}),void r.AppLinkUtility.routingEnded())}))}function bb(e){return(bb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Eb(e,t,n){return t&&wb(e.prototype,t),n&&wb(e,n),e}function Sb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ob(e,t)}function Ob(e,t){return(Ob=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kb(e){var 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=Cb(e);if(t){var o=Cb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xb(this,n)}}function xb(e,t){return!t||"object"!==bb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Cb(e){return(Cb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ab=function(e){Sb(n,e);var t=kb(n);function n(){return gb(this,n),t.apply(this,arguments)}return Eb(n,[{key:"channelName",get:function(){return An}},{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[vb]}}]),n}(r.AppRouter),jb=function(e){Sb(n,e);var t=kb(n);function n(){return gb(this,n),t.apply(this,arguments)}return Eb(n,[{key:"initialize",value:function(){var e=this;qn.values(a).forEach((function(t){return yn.getInstance(t,e)}))}},{key:"index",value:function(e){this.layout.showChildView(gr,ar.createElement(fb,{getSortAppLink:function(e){return{application:An,action:vn.HOME,params:{sort:e}}},sort:Xi(e.sort)})),this.renderLeftNav()}},{key:"playlist",value:function(e,t){var n=this,r={key:e,playlistId:e,application:An,allowEdit:!0,showBreadcrumbs:!0,showDateMetadata:!1,getVideoAppLink:function(t){return n.getVideoAppLink(e,t.id,Pa(t.name))},getSeriesAppLink:function(e){return{application:An,action:vn.SERIES,args:[e.id]}},getPlayAllAppLink:function(){return{application:An,action:vn.PLAY_PLAYLIST,args:[e]}},filterByRating:!0};this.layout.showChildView(gr,ar.createElement(ab,Object.assign({},r))),this.renderLeftNav(e)}},{key:"newPlaylist",value:function(){this.layout.showChildView(wr,ar.createElement(Vv,Object.assign({application:An},this.getPopupProps())))}},{key:"editPlaylist",value:function(e){var t=Object.assign({key:e,playlistId:e},this.getPopupProps());this.layout.showChildView(wr,ar.createElement(Mv,Object.assign({},t)))}},{key:"deletePlaylist",value:function(e){var t=e.toString()===this.currentPlaylistId?{application:An,action:vn.HOME}:null,n=Object.assign({key:e,playlistId:e,routeToOnDelete:t},this.getPopupProps());this.layout.showChildView(wr,ar.createElement(_v,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(wr,ar.createElement(yb,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(gr,ar.createElement(rh,Object.assign({},r))),this.renderLeftNav(e)}},{key:"sharePlaylist",value:function(e){var t=Object.assign({key:e,playlistId:e},this.getPopupProps());this.layout.showChildView(wr,ar.createElement(ip,Object.assign({},t)))}},{key:"sharedPlaylist",value:function(e){var t=this,n=Object.assign(Object.assign({key:e,playlistId:e,application:An,isShared:!0,allowEdit:!1,showDateMetadata:!1,getVideoAppLink:function(n){return t.getVideoAppLink(e,n.id,n.name,!0)},getSeriesAppLink:function(e){return{application:An,action:vn.SERIES,args:[e.id]}},getPlayAllAppLink:function(){return{application:An,action:vn.PLAY_SHARED_PLAYLIST,args:[e]}}},this.getPopupProps()),{filterByRating:!0});this.layout.showChildView(gr,ar.createElement(ab,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(gr,ar.createElement(rh,Object.assign({},r))),this.hideLeftNav()}},{key:"accessDenied",value:function(){var e=this.getPhrase("accessDeniedHeading"),t=this.getPhrase("accessDeniedInfo");this.layout.showChildView(gr,ar.createElement(Zf,{heading:e,description:t})),this.hideLeftNav()}},{key:"notFound",value:function(){var e=this.getPhrase("notFoundHeading"),t=this.getPhrase("notFoundInfo");this.layout.showChildView(gr,ar.createElement(Zf,{heading:e,description:t})),this.hideLeftNav()}},{key:"migrationInProgress",value:function(){this.layout.showChildView(gr,ar.createElement(Bd,null)),this.hideLeftNav()}},{key:"renderLeftNav",value:function(e){this.setCurrentPlaylist(e),this.layout.showChildView(br,ar.createElement(zd,{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(Er,ar.createElement($f,{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:ia.Popup}}}},{key:"getPlaylistAppLink",value:function(e,t,n){var r=[e.toString()];return t&&r.push(Pa(t)),{application:An,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(Pa(n)),{application:An,action:r?vn.PLAY_SHARED_PLAYLIST_VIDEO:vn.PLAY_PLAYLIST_VIDEO,args:o}}},{key:"getPhrase",value:function(e){return Ur.encloseNamespace("playlists.app")(e)}},{key:"name",get:function(){return"Playlist Application"}},{key:"channelName",get:function(){return An}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:mb}}}}],[{key:"router",get:function(){return Ab}}]),n}(r.Application);function _b(e){return(_b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nb(e,t,n){return(Nb="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=Fb(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 Rb(e,t){return(Rb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tb(e){var 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=Fb(e);if(t){var o=Fb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ib(this,n)}}function Ib(e,t){return!t||"object"!==_b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fb(e){return(Fb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Db=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rb(e,t)}(a,e);var t,n,o,i=Tb(a);function a(){return Lb(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"initialize",value:function(){this.navHelper=Kn.getClickView().Shared.Helpers}},{key:"hideLeftNav",value:function(){this.unsetRegion(br),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=Bn[e.application];t&&t.indexOf(e.action)>-1?this.navHelper.hideLeftNavResponsive():this.showLeftNav()}}},{key:"showChildView",value:function(e,t){this.updateResponsiveHideLeftNav(),Nb(Fb(a.prototype),"showChildView",this).apply(this,arguments)}}])&&Pb(t.prototype,n),o&&Pb(t,o),a}(bi);function Mb(e){return(Mb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ub(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zb(e,t){return(zb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hb(e){var 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=qb(e);if(t){var o=qb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bb(this,n)}}function Bb(e,t){return!t||"object"!==Mb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qb(e){return(qb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zb(e,t)}(i,e);var t,n,r,o=Hb(i);function i(){return Ub(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,ar.createElement(t,{alerts:r,removeAlert:function(e){return s.Radio.channel(f.ALERT).trigger("remove:alert",e)}}))}}}])&&Vb(t.prototype,n),r&&Vb(t,r),i}(X);function Yb(e){var t=e.backToName,n=e.appLink,r=e.color,o=t?Ur.getPhrase("shared.backButton","backTo",{backToName:t}):Ur.getPhrase("shared.backButton","back"),i="black"===r?"":"text-light";return ar.createElement(ud,{appLink:n,className:"d-inline-flex align-items-center h5 mb-0 ".concat(i)},ar.createElement(Zm,{svgName:Km.ChevronLeft,size:Xm.Medium}),ar.createElement("span",{className:"ml-1"},o))}Yb.defaultProps={color:"black"};var Gb=n(66),Kb=n.n(Gb);function Wb(e){if(!e.actions||!e.actions.length)return ar.createElement(ar.Fragment,null);var t="actions-dropdown-".concat(Wm()),n="px-0 ".concat(Kb.a.dropdownToggle);return e.dropdownToggleClassName&&(n+=" ".concat(e.dropdownToggleClassName)),ar.createElement(Ja.Dropdown,{className:e.className?e.className:"",alignRight:!0},ar.createElement(Ja.Dropdown.Toggle,{as:"button",type:"button",id:t,className:n},ar.createElement(Zm,{svgName:Km.More,size:Xm.Small})),ar.createElement(Ja.Dropdown.Menu,null,e.actions.map((function(e,t){return ar.createElement(ud,{key:t,appLink:e.appLink,onClick:e.onClick,className:(n=e.className,r="dropdown-item",n&&(r+=" ".concat(n)),r)},e.label);var n,r}))))}Wb.defaultProps={dropdownToggleClassName:"btn btn-light"};var Jb=n(47),Xb=n.n(Jb);function Zb(e){var t=e.svgName,n=e.children,r=e.appLink,o=e.className,i=e.onClick,a="".concat(o," ").concat(Xb.a.iconButton);a+=" ".concat(n?Xb.a.iconWithText:Xb.a.iconOnly);var c=ar.createElement(Zm,{svgName:t,className:Xb.a.svg});return r?ar.createElement(ud,{appLink:r,className:a,onClick:i},c,n):ar.createElement("button",{className:a,onClick:i},c,n)}function Qb(e){var t="ml-2";return e.className&&(t+=" ".concat(e.className)),e.tooltip?ar.createElement(Jm,{title:e.tooltip},ar.createElement(Zb,{appLink:e.appLink,svgName:e.svgName,onClick:e.onClick,className:t},e.children)):e.svgName?ar.createElement(Zb,{onClick:e.onClick,appLink:e.appLink,svgName:e.svgName,className:t},e.children):e.appLink?ar.createElement(ud,{onClick:e.onClick,appLink:e.appLink,className:t},e.children):ar.createElement("button",{onClick:e.onClick,className:t},e.children)}function eg(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)),ar.createElement("div",{className:r},ar.createElement(ar.Fragment,null,!!t.length&&ar.createElement("span",{className:Kb.a.buttonList},t.map((function(e,t){return ar.createElement(Qb,{key:t,appLink:e.appLink,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip},e.label)}))),e.sortComponent?e.sortComponent:"",!!n.length&&ar.createElement(Wb,{actions:n,className:!!t.length&&"ml-2",dropdownToggleClassName:e.actionsDropdownClassName})))}var tg=n(233),ng=n.n(tg),rg=ar.memo((function(e){var t=e.heading,n=e.banner,r=e.imageCdnUrl,o=e.actions,i=e.sortComponent,a=zp.createBannerUrl(n,{fallbackBaseUrl:r,fallbackCategoryName:t,type:Pp.Banners},{size:Lp.Large,resizeType:Np.Cover});return ar.createElement("div",{className:"banner",style:{backgroundImage:"url('".concat(a,"')")}},e.backButtonAppLink&&ar.createElement("div",{className:"pt-3"},ar.createElement(Yb,{appLink:e.backButtonAppLink,backToName:e.backButtonText,color:"white"})),ar.createElement("h1",{className:"text-white text-shadow position-absolute m-0 pb-3"},t),!!o&&ar.createElement("div",{className:ng.a.actionsContainer},ar.createElement(eg,{actions:o,sortComponent:i})))}),(function(e,t){return e.actions===t.actions})),og=function(){return ar.createElement("div",{className:"partial-banner partial-loading-background"})};function ig(e){return function(e){if(Array.isArray(e))return ag(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 ag(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 ag(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 ag(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,ug=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 ig(Array(n)).map((function(){return{width:"".concat(c(),"px")}}))},sg=function(e){var t=e.breadcrumb,n=t.label,r=t.appLink,o=t.active;return ar.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?ar.createElement("strong",null,n):ar.createElement(ud,{appLink:r},n))},lg=function(e){var t=e.breadcrumbs;return ar.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return ar.createElement(sg,{key:t,breadcrumb:e})})))};function fg(e){return function(e){if(Array.isArray(e))return hg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||dg(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)||dg(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 dg(e,t){if(e){if("string"==typeof e)return hg(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)?hg(e,t):void 0}}function hg(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 yg(e,t,n){return{label:e.name,appLink:t(e),active:n}}function mg(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(ar.useState)([]),2),s=u[0],l=u[1];ar.useMemo((function(){if(!t&&!qn.isEmpty(a)){var e=a.map((function(e,t){return yg(e,r,t+1===a.length)}));i&&e.unshift(i),l(e)}}),[a]),ar.useMemo((function(){if(t&&Or(o)){var e=[yg(n,r,!0)];for(n=o(n);n;)e.unshift(yg(n,r)),n=o(n);return i&&e.unshift(i),l(e)}}),[n,o,r,i]);var f=ar.useRef({label:c,appLink:null,active:!0}).current;if(c){s.includes(f)||l([].concat(fg(s),[f]));var p=s.filter((function(e){return e.active&&e!==f}));p.length&&($o(p).active=!1)}return s}(e,e.type===cg.Dynamic);return ar.createElement("nav",{"aria-label":"breadcrumb"},ar.createElement(lg,{breadcrumbs:t}))}!function(e){e[e.Static=0]="Static",e[e.Dynamic=1]="Dynamic"}(cg||(cg={}));var vg,bg=ug({numItems:3}),gg=function(){return ar.createElement("nav",{"aria-label":"breadcrumb"},ar.createElement("ol",{className:"breadcrumb m-0 p-0"},bg.map((function(e,t){var n=e.width;return ar.createElement("li",{key:t,className:"breadcrumb-item"},ar.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"}(vg||(vg={}));var wg,Eg=function(){return"/api/domain/v1/subjects?query=".concat(Fn.CLASSIFICATION)},Sg=function(e,t){return"/api/domain/v1/subjects/".concat(e,"?query=").concat(Un(t))},Og=function(e){return"/api/domain/v1/subjects/".concat(e,"/path")},kg=function(e){return"/api/domain/v1/subjects/".concat(e,"/children?query=").concat(Fn.CLASSIFICATION)},xg=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},Cg=function(){return{url:"/api/domain/v1/subjects/presentation",key:"presentation",bootstrapName:"presentation"}},Ag=function(){return{url:Eg(),key:"classifications"}},jg=function(e,t,n){return{url:Sg(e,t),key:"classification:".concat(e),error:n}},_g=function(e){return{url:Og(e),key:"classification:".concat(e,":path")}},Lg=function(e){return{url:kg(e),key:"classification:".concat(e,":children")}},Pg=function(e,t,n){if(t){var r="limit:100";n.length&&(r+=",".concat(Dn(n)));var o="{".concat(r,"}").concat(Fn.VIDEO_COLLECTION)+",".concat(Mn(t));return{url:xg(e,vg.Videos,o),key:"classification:".concat(e,":").concat(vg.Videos,":").concat(n.join(":"))}}},Ng=function(e,t,n){if(t){var r="limit:100,orderby:name";n.length&&(r+=",".concat(Dn(n)));var o="{".concat(r,"}").concat(Fn.PLAYLIST_COLLECTION)+",".concat(Mn(t));return{url:xg(e,vg.Playlists,o),key:"classification:".concat(e,":").concat(vg.Playlists,":").concat(n.join(":"))}}},Rg=function(e,t,n){if(t){var r="limit:100";n.length&&(r+=",".concat(Dn(n)));var o="{".concat(r,"}").concat(Fn.SERIES)+",".concat(Mn(t));return{url:xg(e,vg.Series,o),key:"classification:".concat(e,":").concat(vg.Series,":").concat(n.join(":"))}}};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 Fg(e,t){return!!e&&(!(!e.application||!e.action)&&!!t())}function Dg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ar.useEffect((function(){var t=e.appLink,n=e.paramBuilder,o=e.isValid,i=e.appLinkOptions;Fg(t,o)&&(t.params=n(),r.AppLinkHelper.trigger(t,i))}),Tg(t))}function Mg(e,t){switch(t.type){case wg.Init:return Object.assign(Object.assign({},e),t.payload.reduce((function(e,t){return e[t.masterId]=t,e}),{}));case wg.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 Ug(e){return function(e){if(Array.isArray(e))return Vg(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 Vg(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 Vg(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 Vg(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"}(wg||(wg={}));var zg=/\s|\+/gi;function Hg(e){return e?e.replace(zg,"").toLowerCase():""}function Bg(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];ar.useEffect((function(){if(qn.isObject(e)&&!qn.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[Hg(t)]=t,e}),{}),i=t.filter((function(e){return o[Hg(e.name)]}));n({type:wg.Init,payload:i})}}}),Ug(r))}var qg=n(234),$g=n.n(qg);function Yg(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($g.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 ar.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 Gg(e){var t=e.audiences,n=e.activeAudiences,r=e.setAudience,o=e.disabled;return t&&t.length?ar.createElement("div",{className:"pt-3"},t.map((function(e){return ar.createElement(Yg,{key:e.masterId,audience:e,highlight:!!n&&!!n[e.masterId],setAudience:function(e,t){return r({type:wg.Toggle,payload:{audience:e,isSelected:t}})},isDisabled:o})}))):ar.createElement(ar.Fragment,null)}Yg.defaultProps={extraClasses:""};var Kg=ug({numItems:6}),Wg=function(){return ar.createElement("div",{className:"pt-3"},Kg.map((function(e,t){var n=e.width;return ar.createElement("span",{key:t,className:"d-inline-block badge-pill partial-loading-background mr-1",dangerouslySetInnerHTML:{__html:" "},style:{width:n}})})))};function Jg(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 Xg(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 Xg(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 Xg(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 Zg={className:"",delay:0};function Qg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zg,t=ar.useState(!1),n=Jg(t,2),r=n[0],o=n[1],i=ar.useRef(null),a=Sr((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;Or(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 ar.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 ew(e){return Qg({className:e,delay:275})}var tw=/([0-9]+)/gi,nw=/(^\w+)/gi;var rw=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(tw),r=t.match(nw);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(" , "))}},iw=function(e){var t=function(e){return e.length?(e.forEach((function(e){var r=+$o(e.name.match(tw));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};function aw(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 cw(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 cw(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 cw(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 uw(e){var t=aw(Df.useInView({triggerOnce:!0}),2),n=t[0],r=t[1];return!0!==e&&void 0!==window.IntersectionObserver||(r=!0,n=null),{ref:n,inView:r}}var sw,lw=n(235),fw=n.n(lw),pw=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},dw=ar.memo((function(e){var t=e.forceLoad,n=pw(e,["forceLoad"]),r=uw(),o=r.ref,i=r.inView;if(!o)return ar.createElement("img",Object.assign({alt:""},n));var a=n.src,c=pw(n,["src"]),u=Object.assign(Object.assign({alt:""},c),i||t?{src:a}:{});return t||(u.ref=o),ar.createElement("img",Object.assign({className:fw.a.image},u))}));!function(e){e.Small="small",e.Medium="medium",e.Large="large",e.Raw="raw"}(sw||(sw={}));var hw,yw=n(41),mw=n.n(yw);function vw(e){var t="thumbnail ".concat(mw.a.thumbnail),n="";return e.aspectRatio===hw.SixteenByNine&&(n=mw.a.sixteenByNine),e.aspectRatio===hw.NineBySixteen&&(n=mw.a.nineBySixteen),e.aspectRatio===hw.OneByOne&&(n=mw.a.oneByOne),e.aspectRatio===hw.TwoByThree&&(n=mw.a.twoByThree),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function bw(e){var t=e.data,n=e.size,r=e.appLink,o=e.preload,i="";"string"==typeof t?i=t:qn.isObject(t)&&(i=t.url);var a=i&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sw.Small;return"".concat(e,"?size=").concat(t)}(i,n);return ar.createElement("div",{className:vw(e)},ar.createElement(ud,{appLink:r},e.children,a&&ar.createElement(dw,{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"}(hw||(hw={}));var gw,ww,Ew=n(16),Sw=n.n(Ew);function Ow(e){var t=e.type,n=e.mediaType,r=e.extraClasses,o=(Gf(Wf).getImageUrls(),function(e){return e===gw.Video?Sw.a.videoFallback:e===gw.Playlist?Sw.a.playlistFallback:e===gw.Series||e===gw.TallSubject?Sw.a.posterFallback:e===gw.Subject?Sw.a.subjectFallback:""}(t)),i=function(e,t){return e===gw.Video?Km.Play:e===gw.Playlist?Km.Playlist:e===gw.Series?Km.Series:e===gw.Subject||e===gw.TallSubject?Km.Subject:""}(t),a="".concat(function(e,t){return t===gw.Subject?Sw.a.subjectFallbackContainer:e===ww.Svg?Sw.a.svgFallbackContainer:Sw.a.baseFallbackContainer}(n,t));return r&&(a+=" ".concat(e.extraClasses)),ar.createElement("div",{className:a},n===ww.Svg?ar.createElement(Zm,{svgName:i,className:o,tagName:"div"}):ar.createElement("div",{className:Sw.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"}(gw||(gw={})),function(e){e[e.Svg=0]="Svg",e[e.Image=1]="Image"}(ww||(ww={})),Ow.defaultProps={mediaType:ww.Svg};n(236);function kw(e){return e.audience?ar.createElement("div",{className:"border rounded-pill d-inline-block px-2 mt-1 ".concat("border-"+e.border)},e.audience.name):ar.createElement(ar.Fragment,null)}var xw,Cw=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)},Aw=n(29),jw=n.n(Aw);function _w(e){var t=e.type,n=e.data;if(!function(e,t){return e===xw.Rating?t&&!!t.value:!!t}(t,n))return ar.createElement(ar.Fragment,null);var r=function(e,t){var n="";return e===xw.Duration&&(n=jw.a.duration),e===xw.Interactive&&(n=jw.a.interactive),e===xw.Rating&&(n="".concat(jw.a.rating," ").concat(Cw(t.value))),e===xw.ProductionYear&&(n=jw.a.productionYear),"".concat("badge"," ").concat(n)}(t,n),o=function(e,t){return e===xw.Interactive?"Interactive":e===xw.Duration?dd(t):e===xw.Rating?t.code:e===xw.ProductionYear?t:void 0}(t,n),i=function(e,t){return e===xw.Rating?{title:t.name,placement:"top"}:null}(t,n);return i?ar.createElement(Ja.OverlayTrigger,{placement:i.placement,overlay:ar.createElement(Ja.Tooltip,{id:i.title},i.title)},ar.createElement("span",{className:r},o)):ar.createElement("span",{className:r},o)}!function(e){e.Duration="duration",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year"}(xw||(xw={}));var Lw=n(20),Pw=n.n(Lw);function Nw(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 Rw(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 Rw(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 Rw(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){var t=e.data,n=e.appLink,r=e.preloadImage,o=Object.assign(Object.assign({},n),{args:[t.id,Pa(t.name)]}),i=t&&t.subjectPresentationAudiences&&t.subjectPresentationAudiences.data||[],a=rw(i,e.audiences),c=ow(a),u=Nw(ew(Pw.a.hoverActive),2),s=u[0],l=u[1];return ar.createElement(ud,{key:t.id,appLink:o,className:"position-relative p-1 flex-shrink-0 ".concat(Pw.a.width)},ar.createElement("div",{ref:s},l&&ar.createElement("div",{className:"p-3 text-white text-center ".concat(Pw.a.mask)},ar.createElement("h3",{className:"h4"},t.name),ar.createElement("p",null,t.description)),ar.createElement(bw,{data:t.tallPoster,aspectRatio:hw.NineBySixteen,preload:r,size:sw.Large},ar.createElement(Ow,{type:gw.Series}),ar.createElement("div",{className:"position-absolute text-white ".concat(Pw.a.labelContainer)},i&&i.length?ar.createElement(kw,{audience:c,border:"white"}):ar.createElement(_w,{type:xw.Rating,data:t.rating})))))}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}var Fw=function(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.")}()}(Array(4)),Dw=function(){return ar.createElement("div",{className:"pb-3"},ar.createElement("div",{className:"partial-loading-background ".concat(Pw.a.partialLoadingHeading),dangerouslySetInnerHTML:{__html:" "}}),ar.createElement("div",{className:"row"},Fw.map((function(e,t){return ar.createElement("div",{key:t,className:"col-6 col-sm-4 col-lg-3 "},ar.createElement("div",{className:"py-2"},ar.createElement("div",{className:"".concat(Pw.a.partialLoading," partial-loading-background")})))}))))},Mw=function(e){return function(t){return{application:jn,action:bn.CLASSIFICATION,args:t?[t.id,Pa(t.name)]:[],params:e||{}}}},Uw=function(e){return{application:jn,action:bn.CLASSIFICATION_SERIES,args:e?[e.id,Pa(e.name)]:[]}},Vw=function(e){return function(t){return{application:jn,action:bn.CLASSIFICATION_PLAYLIST,args:[e.id,t.id,Pa(t.name)]}}},zw=function(){return{application:Pn,action:En.HOME}},Hw=n(237),Bw=n.n(Hw);function qw(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 $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,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 $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 Yw,Gw=Ur.encloseNamespace("subjects.classificationSeriesList");function Kw(e){var t,n,r,i,a,c=e.id,u=e.queryParams,s=qw(ar.useReducer(Mg,{}),2),l=s[0],f=s[1],p=o.useBasicFetch(ri),d=o.useBasicFetch(Wv),h=o.useBasicFetch((null===(t=p.data)||void 0===t?void 0:t.id)?jg(c,null===(n=p.data)||void 0===n?void 0:n.id):null),y=o.useBasicFetch(Cg()),m=o.useBasicFetch(_g(c)),v=o.useBasicFetch(ub()),b=qn.keys(l),g=qn.values(l),w=null===(i=null===(r=y)||void 0===r?void 0:r.data)||void 0===i?void 0:i.id,E=Rg(c,w,b),S=o.useGetResponse(E&&E.key),O=o.useGetFetch(E);ar.useEffect((function(){w&&O()}),[w]);var k=Mw();Dg({appLink:Uw(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 x=!(!v.data||!v.data.length);Bg(u,v.data,f,[x]);var C=!!m.data,A=!!v.data;return ar.createElement("main",{className:"bg-white overflow-hidden-x box-shadow"},h.data&&d.data?ar.createElement(rg,{heading:Gw("heading",{classification:h.data.name}),banner:h.data.banner,imageCdnUrl:d.data.imageCdnUrl}):ar.createElement(og,null),ar.createElement("div",{className:"px-3"},ar.createElement("div",{className:"py-3 mb-3 border-bottom"},C?ar.createElement(mg,{currentItem:h.data,type:cg.Static,getItemAppLink:k,data:m.data,rootItem:{label:Gw("dashboard"),appLink:zw()},subview:Gw("subview")}):ar.createElement(gg,null),A?ar.createElement(Gg,{audiences:v.data,activeAudiences:l,setAudience:f}):ar.createElement(Wg,null)),(null===(a=S.data)||void 0===a?void 0:a.data)&&h.data?ar.createElement("div",{className:"mx-n2"},S.data.data.map((function(e){return ar.createElement("div",{className:"d-inline-flex position-relative px-2 mb-2 ".concat(Bw.a.seriesItem)},ar.createElement(Tw,{data:e,appLink:Uw(h.data),audiences:v.data}))}))):ar.createElement(Dw,null)))}!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(Yw||(Yw={}));var Ww,Jw=function(){return"/api/domain/v1/subjects/classifications/following"},Xw=function(e){return Dp.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},Zw={follow:function(e,t,n){return{url:Jw(),key:"follow:".concat(e.join(",")),type:$r.POST,data:e,success:t,error:n,invalidationKeys:e.map((function(e){return"classification:".concat(e)}))}},unfollow:function(e,t,n){return{url:Xw(e),key:"unfollow:".concat(e.join(",")),type:$r.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"}(Ww||(Ww={}));var Qw=n(40),eE=n.n(Qw);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){var t=tE(Array(e.numItems)),n=e.itemClassName||"";return ar.createElement(ar.Fragment,null,e.showHeading&&ar.createElement("div",{className:"".concat(eE.a.partialHeading," partial-loading-background")}),ar.createElement(Ja.Row,null,t.map((function(e,t){return ar.createElement(Ja.Col,{key:t,xs:6,sm:4,md:3,lg:2,className:n},ar.createElement("div",{className:"py-2"},ar.createElement("div",{className:"".concat(eE.a.basePlaylistItem," partial-loading-background")})))}))))}function oE(e){var t=zp.createUrl(e.data.cover&&e.data.cover.url,{size:Lp.Medium,resizeType:Np.Cover}),n=e.data.subjectPresentationAudiences&&e.data.subjectPresentationAudiences.data,r=rw(n,e.presentationAudiences),o=ow(r),i=!!e.showCount&&!!e.data.videos&&e.data.videos.count;return ar.createElement(ud,{appLink:e.appLink},ar.createElement(bw,{data:t,className:eE.a.playlistItem},ar.createElement(Ow,{type:gw.Playlist}),ar.createElement("div",{className:"text-white ".concat(eE.a.playlistMetadata)},Number.isInteger(i)&&ar.createElement(bp,{namespace:"shared.playlistItem",phrase:"videos",options:{smartCount:i}}),ar.createElement("h5",{className:"text-shadow mb-0"},e.data.name),!!n&&!!n.length&&ar.createElement(kw,{audience:o,border:"white"}))))}function iE(e){return ar.createElement(Ja.Row,null,e.playlists.map((function(t){return ar.createElement(Ja.Col,{key:t.id,xs:6,sm:4,lg:3,className:"mb-3 ".concat(e.itemClassName?e.itemClassName:"")},ar.createElement(oE,{key:t.id,data:t,appLink:e.getPlaylistAppLink(t),presentationAudiences:e.presentationAudiences,showCount:e.showCount}))})))}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}rE.defaultProps={numItems:8};var uE=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 sE(e){var t=e.showSpinner,n=e.children,r=uE(e,["showSpinner","children"]),o=ar.useRef(),i=aE(ar.useState({}),2),a=i[0],c=i[1];return ar.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})}})),ar.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]),ar.createElement(Ja.Button,Object.assign({ref:o,disabled:t},r),t?ar.createElement(Ja.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}var lE=n(69),fE=n.n(lE);function pE(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 dE(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 dE(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 dE(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 hE(e){var t,n,r=pE(ar.useState(!1),2),o=r[0],i=r[1],a=pE(ar.useState(!1),2),c=a[0],u=a[1];ar.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=zp.createBannerUrl(e.data.banner,{fallbackBaseUrl:e.imageCdnUrl,fallbackCategoryName:e.data.name,type:Pp.Banners},{size:Lp.Large}),l={variant:o?"outline-dark":"dark",showSpinner:c,onClick:function(){u(!0),e.onToggleFollow()}};return ar.createElement(vp.Provider,{value:"subjects.comingSoon"},ar.createElement("div",{className:"d-flex flex-column align-items-center text-center py-3"},ar.createElement("h2",{className:"display-4 font-weight-bold mb-3"},ar.createElement(bp,{phrase:"comingSoon"})),ar.createElement("p",{className:"w-33"},ar.createElement(bp,{phrase:"info"})),ar.createElement(sE,Object.assign({},l),ar.createElement(Zm,{svgName:o?Km.Check:Km.Bell,className:"align-middle d-inline-block svg-container"}),ar.createElement("span",{className:"align-middle pl-1"},ar.createElement(bp,{phrase:"remindMe"})))),ar.createElement("div",{className:fE.a.footerImageContainer},ar.createElement("div",{className:"".concat(fE.a.footerImage," banner position-relative"),style:{backgroundImage:"url('".concat(s,"')")}},ar.createElement(Zm,{className:fE.a.wave,size:Xm.ExtraLarge,svgName:Km.WhiteWave}))))}var yE=n(9),mE=n.n(yE),vE=function(e){var t=e.name,n=e.multiline,r="".concat(mE.a.comingSoonPanel," px-3 text-center mt-3"),o="".concat(mE.a.name," h6 mb-0 pb-1");return n?o+=" ".concat(mE.a.clamped," clamp-2"):(r+=" text-nowrap",o+=" text-truncate"),ar.createElement("div",{className:r},ar.createElement("small",{className:"text-muted"},ar.createElement(bp,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),ar.createElement("p",{className:o},t))},bE=function(e){var t=e.name,n=e.multiline,r="px-3 text-center d-flex align-items-center",o="".concat(mE.a.name," h6 mb-0 pb-1");return n?o+=" ".concat(mE.a.clamped," clamp-2 text-left"):(r+=" text-nowrap text-truncate",o+=" text-truncate"),ar.createElement("div",{className:r},ar.createElement("p",{className:o},t))};var gE=ar.memo((function(e){var t,n=Object.assign(Object.assign({},e.appLink),{args:[e.data.id,Pa(e.data.name)]}),r=zp.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:Lp.Small});return ar.createElement(ud,{appLink:n},ar.createElement("div",{className:"border d-flex position-relative ".concat(mE.a.widgetItem),id:e.data.id},ar.createElement("div",{className:"".concat(mE.a.imagePanel," ").concat(e.isLarge?mE.a.large:""),style:{backgroundImage:"url('".concat(r,"')")}}),e.data.comingSoon?ar.createElement(vE,{name:e.data.name,multiline:e.isLarge}):ar.createElement(bE,{name:e.data.name,multiline:e.isLarge}),ar.createElement(Ow,{type:gw.Subject,extraClasses:e.isLarge?mE.a.large:""})))})),wE=n(238),EE=n.n(wE);function SE(e){var t=e.classification,n=e.appLink;return ar.createElement("div",{className:"d-inline-flex position-relative px-2 mb-2 ".concat(EE.a.classificationItem)},ar.createElement(gE,{data:t,appLink:n,isLarge:!0}))}function OE(e){return ar.createElement(ar.Fragment,null,e.classifications.map((function(t){return ar.createElement(SE,{key:t.id,classification:t,appLink:e.getItemAppLink(t)})})))}var kE=function(){var e=Gf(Pr.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:Ra.Warning,heading:Ta.Warning,message:t})}}};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 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}var AE=Ur.encloseNamespace("shared.favouriteButton");function jE(e){var t=kE(),n="boolean"==typeof e.video.isFavourited,r=!!e.video.isFavourited,o=xE(ar.useState(r),2),i=o[0],a=o[1];ar.useEffect((function(){a(r)}),[r]);var c="cursor-pointer text".concat(i?"-danger":"-dark");return e.className&&(c+=" ".concat(e.className)),n?ar.createElement("div",{className:c,onClick:function(){var n=!i;a(n),e.setFavourite(e.video.id,n,(function(){t.error(AE(n?"favouriteError":"unfavouriteError")),a(!n)}))}},ar.createElement(Zm,{svgName:i?Km.Heart:Km.HeartOutline,size:Xm.Small})):ar.createElement(ar.Fragment,null)}var _E=n(70),LE=n.n(_E);function PE(e){var t=e.video,n=t.season;if(!t.episodeNumber||!n)return ar.createElement(ar.Fragment,null);var r=sd(n.number,2),o=sd(t.episodeNumber,2);return ar.createElement("span",{className:"d-inline-block ".concat(LE.a.seasonEpisodeContainer)}," ",!!r&&"S".concat(r," • "),"E",o)}function NE(e){var t=e.appLink,n=e.video.series,r=e.className;if(!n||!n.id)return ar.createElement(ar.Fragment,null);var o=t&&Object.assign(Object.assign({},t),{args:[n.id,Pa(n.name)]});return o?ar.createElement(ud,{appLink:o,className:"text-uppercase ".concat(LE.a.appLink," ").concat(r)},n.name,ar.createElement(PE,Object.assign({},e))):ar.createElement("span",{className:"text-uppercase ".concat(LE.a.appLink," ").concat(r)},n.name,ar.createElement(PE,Object.assign({},e)))}function RE(e){var t="d-flex ".concat(jw.a.badgeList);return e.className&&(t+=" ".concat(e.className)),ar.createElement("div",{className:t},e.children)}var TE,IE=n(22),FE=n.n(IE);function DE(e){var t,n=e.video,r=e.appLink,o=e.size,i=e.setFavourite,a=e.preload,c=e.hovering;return cr.a.createElement("div",{className:"position-relative rounded overflow-hidden"},!!Or(i)&&cr.a.createElement("div",{className:FE.a.favouriteContainer},cr.a.createElement(jE,{setFavourite:i,video:n,className:"rounded-circle p-1 ".concat(FE.a.favouriteButton)})),cr.a.createElement(bw,{data:n.thumbnail,appLink:r,aspectRatio:hw.SixteenByNine,size:o,preload:a,className:FE.a.gradient},c&&cr.a.createElement(Zm,{className:FE.a.playIcon,svgName:Km.PlayCircle}),cr.a.createElement(Ow,{type:gw.Video}),cr.a.createElement("div",{className:FE.a.overlayContainer},cr.a.createElement("div",{className:"".concat(FE.a.title," ").concat(c?FE.a.downScale:"")},!!(null===(t=e.video.series)||void 0===t?void 0:t.id)&&cr.a.createElement(NE,{className:"text-shadow clamp-1",video:n,appLink:null}),cr.a.createElement("span",{className:"h6 text-reset text-shadow clamp-1 mb-0"},n.name),c&&cr.a.createElement(RE,{className:"align-items-center mb-n1"},cr.a.createElement(_w,{type:xw.Duration,data:n.duration}),cr.a.createElement(_w,{type:xw.Rating,data:n.rating}),n.hasSubtitle&&cr.a.createElement("span",{className:"badge p-0"},cr.a.createElement(Zm,{svgName:Km.CloseCaptionBadge})))))))}!function(e){e[e.Below=1]="Below",e[e.Overlay=2]="Overlay",e[e.Independent=3]="Independent"}(TE||(TE={}));var ME,UE=n(48),VE=n.n(UE);function zE(e){var t=e.type,n=function(e){return e===ME.Video?VE.a.video:e===ME.Playlist?VE.a.playlist:""}(t),r=function(e){return e===ME.Video?Km.PlayCircle:e===ME.Playlist?Km.AddToPlaylists:""}(t);return ar.createElement("div",{className:VE.a.maskContainer},ar.createElement("div",{className:VE.a.mask}),ar.createElement(Zm,{svgName:r,className:n}))}!function(e){e[e.Video=0]="Video",e[e.Playlist=1]="Playlist"}(ME||(ME={}));var HE=n(23),BE=n.n(HE);function qE(e){var t,n=e.video,r=e.seriesAppLink,o=e.textPosition,i=e.appLink,a=o===TE.Overlay,c=a?BE.a.titleOverlay:BE.a.titleBelow;return cr.a.createElement("div",{className:c},!!(null===(t=e.video.series)||void 0===t?void 0:t.id)&&cr.a.createElement(NE,{className:a?"text-shadow clamp-1":"clamp-2",video:n,appLink:a?null:r}),a?cr.a.createElement("span",{className:"h6 text-reset text-shadow clamp-1 mb-0"},n.name):cr.a.createElement(ud,{className:"h6 text-reset clamp-2 mb-0",appLink:i},n.name))}function $E(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===TE.Overlay&&(c+=" rounded overflow-hidden"),cr.a.createElement("div",{className:c},!!Or(i)&&cr.a.createElement("div",{className:BE.a.favouriteContainer},cr.a.createElement(jE,{setFavourite:i,video:t,className:"rounded-circle p-1 ".concat(BE.a.favouriteButton)})),cr.a.createElement(bw,{data:t.thumbnail,appLink:n,aspectRatio:hw.SixteenByNine,size:o,preload:a,className:r===TE.Overlay?BE.a.gradient:""},cr.a.createElement(zE,{type:ME.Video}),cr.a.createElement(Ow,{type:gw.Video}),cr.a.createElement("div",{className:BE.a.overlayContainer},r===TE.Overlay&&cr.a.createElement(qE,Object.assign({},e)),cr.a.createElement(RE,{className:BE.a.badgeContainer},cr.a.createElement(_w,{type:xw.Duration,data:t.duration})))),r===TE.Below&&cr.a.createElement(qE,Object.assign({},e)))}function YE(e){return"expandable"===e.type?ar.createElement(DE,Object.assign({},e)):ar.createElement($E,Object.assign({},e))}var GE=n(67),KE=n.n(GE);function WE(e){var t=e.tag,n="".concat(KE.a.tagItem," px-2 my-1 mr-1 cursor-pointer badge-light");return ar.createElement("span",{className:n},t.name)}function JE(e){var t=e.tags;return t&&t.data?ar.createElement("div",{className:KE.a.tagList},t.data.map((function(e){return ar.createElement(WE,{key:e.id,tag:e})}))):ar.createElement(ar.Fragment,null)}var XE,ZE=n(24),QE=n.n(ZE),eS=function(e){return!!(e&&e.data&&e.data.length)};function tS(e){var t=e.video,n=e.presentationAudiences,r=e.videoAppLink,o=e.seriesAppLink;if(!t)return ar.createElement(ar.Fragment,null);var i=rw(t.subjectPresentationAudiences.data,n),a=ow(i),c=t.series&&!!t.series.id;return ar.createElement(vp.Provider,{value:"subjects.heroVideo"},ar.createElement(Ja.Row,{className:"pb-3"},ar.createElement(Ja.Col,{xs:6,className:"p-1"},ar.createElement(YE,{video:t,appLink:r,seriesAppLink:c?o:null,size:sw.Medium,textPosition:TE.Independent,type:"static"})),ar.createElement(Ja.Col,{xs:6,className:"p-1"},c&&ar.createElement(NE,{video:t,appLink:o,className:"text-reset"}),ar.createElement(ud,{appLink:r},ar.createElement("h4",null,t.name)),ar.createElement(RE,{className:"pb-1"},ar.createElement(_w,{type:xw.Interactive,data:t.interactives}),ar.createElement(_w,{type:xw.Rating,data:t.rating}),ar.createElement(_w,{type:xw.ProductionYear,data:t.productionYear})),ar.createElement("p",{className:"mb-1"},t.description),ar.createElement(kw,{audience:a,border:"dark"}),e.showExtraMetadata&&ar.createElement(Ja.Row,{className:"pt-2"},ar.createElement(Ja.Col,{xs:2},eS(t.resources)&&ar.createElement("p",{className:"font-weight-bold"},ar.createElement(bp,{phrase:"resourcesHeading"})),eS(t.links)&&ar.createElement("p",{className:"font-weight-bold"},ar.createElement(bp,{phrase:"linksHeading"})),eS(t.clips)&&ar.createElement("p",{className:"font-weight-bold"},ar.createElement(bp,{phrase:"clipsHeading"})),eS(t.tags)&&ar.createElement("p",{className:"font-weight-bold"},ar.createElement(bp,{phrase:"tagsHeading"}))),ar.createElement(Ja.Col,{xs:10},eS(t.resources)&&ar.createElement("p",null,ar.createElement(bp,{phrase:"resources",options:{smartCount:t.resources.data.length}})),eS(t.links)&&ar.createElement("p",null,ar.createElement(bp,{phrase:"links",options:{smartCount:t.links.data.length}})),eS(t.clips)&&ar.createElement("p",null,ar.createElement(bp,{phrase:"clips",options:{smartCount:t.clips.data.length}})),eS(t.tags)&&ar.createElement(JE,{tags:t.tags}))))))}function nS(){return ar.createElement("div",{className:"row pb-3"},ar.createElement("div",{className:"col-6 p1"},ar.createElement("div",{className:"".concat(QE.a.partialHeroThumbnail," partial-loading-background")})),ar.createElement("div",{className:"col-6 p1"},ar.createElement("div",{className:"partial-loading-background mb-1 ".concat(QE.a.partialSeriesText)}),ar.createElement("div",{className:"partial-loading-background my-1 ".concat(QE.a.partialVideoTitleText)}),ar.createElement("div",{className:"d-flex"},ar.createElement("div",{className:"partial-loading-background my-1 mr-1 ".concat(QE.a.partialBadge)}),ar.createElement("div",{className:"partial-loading-background my-1 ml-1 ".concat(QE.a.partialBadge)})),ar.createElement("div",{className:"partial-loading-background my-1 ".concat(QE.a.partialDescription)}),ar.createElement("div",{className:"partial-loading-background mt-2 ".concat(QE.a.partialSubject)})))}!function(e){e.Percentage="%",e.Pixels="px"}(XE||(XE={}));var rS,oS=n(17),iS=n.n(oS);!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(rS||(rS={}));var aS=ar.memo((function(e){var t,n,r=e.direction===rS.Left,o=r?Km.ChevronLeft:Km.ChevronRight,i=(e.contents,t=r,n=iS.a.topPos,n+=t?" "+iS.a.left:" "+iS.a.right);return e.hide?ar.createElement(ar.Fragment,null):ar.createElement(ar.Fragment,null,ar.createElement("div",{role:"button",className:"".concat(i," ").concat(iS.a.button),onClick:e.onClick},ar.createElement(Zm,{svgName:o,size:Xm.Medium,className:"svg-container d-inline-block"})),e.useGradientBackdrop&&ar.createElement("div",{className:r?iS.a.gradientLeft:iS.a.gradientRight}),ar.createElement("div",{role:"button",onClick:e.onClick,className:r?iS.a.extendedClickableAreaLeft:iS.a.extendedClickableAreaRight}))}),(function(e,t){return e.hide===t.hide}));function cS(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 uS(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 uS(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 uS(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 sS={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 lS(e,t,n){var r=cS(t.exec(n)||[],3),o=(r[0],r[1],r[2]);return o||(o="Unknown"),{browser:e,version:o}}function fS(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 pS=function(){var e=window.navigator.userAgent;return sS.linux.test(e)?fS("Linux",null,e):sS.unix.test(e)?fS("Unix",null,e):sS.mac.test(e)?fS("Macintosh",sS.osxVersion,e):sS.windows.test(e)?function(e,t){var n={os:e};return sS.win2000.test(t)&&(n.version="2000"),sS.winXP.test(t)&&(n.version="XP"),sS.winVista.test(t)&&(n.version="Vista"),sS.win7.test(t)&&(n.version="7"),sS.win8.test(t)&&(n.version="8"),sS.win81.test(t)&&(n.version="8.1"),sS.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):sS.iphone.test(e)||sS.ipad.test(e)?fS("iOS",sS.iosVersion,e):sS.android.test(e)?fS("Android",sS.androidVersion,e):sS.blackberry.test(e)?fS("Android",sS.blackberryVersion,e):sS.windowsPhone.test(e)?fS("Android",sS.windowsPhoneVersion,e):{os:"Unknown",version:"Unknown"}},dS=function(){var e=window.navigator.userAgent;return sS.chrome.test(e)?lS("Chrome",sS.generalVersion,e):sS.firefox.test(e)?lS("Firefox",sS.generalVersion,e):sS.safari.test(e)?lS("Safari",sS.generalVersion,e):sS.ie.test(e)?lS("Internet Explorer",sS.ieVersion,e):sS.edge.test(e)?lS("Edge",sS.edgeVersion,e):sS.opera.test(e)?lS("Opera",sS.operaVersion,e):{browser:"Unknown",version:"Unknown"}},hS=function(){return!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)},yS=new Image;yS.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var mS=function(e){e.dataTransfer.setDragImage(yS,0,0)},vS=hS();var bS,gS=ar.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 ar.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100",style:(r=h,o=c,i=p,o===XE.Percentage&&i&&(r-=i),{transform:"translate3d(".concat(r).concat(o,", 0px, 0px)"),transition:"transform .5s ease-in-out"}),ref:t},(n={},u&&s&&(n.draggable=!0,n.onDrag=u,n.onDragEnd=s,n.onDragStart=mS,n.onDragOver=function(e){return e.preventDefault()}),l&&f&&vS&&(n.onTouchMoveCapture=l,n.onTouchEndCapture=f),n)),a)}));function wS(){var e=rv(Qm.XS),t=rv(Qm.SM),n=rv(Qm.MD),r=rv(Qm.LG),o=rv(Qm.XL),i=rv(Qm.XXL),a=Qm.LG;return e&&(a=Qm.XS),t&&(a=Qm.SM),n&&(a=Qm.MD),r&&(a=Qm.LG),o&&(a=Qm.XL),i&&(a=Qm.XXL),a}!function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag"}(bS||(bS={}));var ES=n(21),SS=n.n(ES);var OS=function(e){var t=e.colSize;return ar.createElement("div",{className:"col-".concat(t)},ar.createElement("div",{className:"".concat(SS.a.partialItem," mx-1 partial-loading-background")}))};function kS(e){for(var t,n=(t=wS())===Qm.XS?{itemCount:1,colSize:12}:t===Qm.SM?{itemCount:2,colSize:6}:t===Qm.MD?{itemCount:3,colSize:4}:{itemCount:4,colSize:3},r=n.itemCount,o=n.colSize,i=[],a=0;a<r;a++)i.push(ar.createElement(OS,{key:a,colSize:o}));return ar.createElement("div",{className:"widget pb-3"},ar.createElement("div",{className:"".concat(SS.a.partialHeading," mx-1 mb-1 partial-loading-background")}),ar.createElement("div",{className:"".concat(SS.a.partialDescription," mx-1 my-1 partial-loading-background")}),ar.createElement("div",{className:"".concat(SS.a.slidingContainer," row")},i))}function xS(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 CS(e,t){if(e)return Object.assign(Object.assign({},e),{args:e.args||[t.id,Pa(t.name)]})}function AS(e){switch(e){case Ww.Playlists:return jS;case Ww.Videos:return _S;case Ww.Subjects:return LS;case Ww.UserChannels:return PS;case Ww.Series:default:return NS}}function jS(e,t,n){var r=5;return e===Qm.XS?r=2:e===Qm.SM?r=3:e===Qm.MD&&(r=4),n<r&&(r=n),r}function _S(e,t,n){var r=4;return e===Qm.XS?r=2:e===Qm.SM?r=3:e===Qm.MD?r=4:e!==Qm.LG&&e!==Qm.XL&&e!==Qm.XXL||(r=t===Yw.LargeRow||n<4?3:4),n<r&&(r=n),r}function LS(e,t,n){var r=6;return e===Qm.SM||e===Qm.XS?r=3:e===Qm.MD?r=4:e===Qm.LG?r=5:e!==Qm.XL&&e!==Qm.XXL||(r=6),n<r&&(r=n),r}function PS(e,t,n){var r=6;return e===Qm.SM||e===Qm.XS?r=3:e===Qm.MD?r=4:e===Qm.LG?r=5:e!==Qm.XL&&e!==Qm.XXL||(r=6),n<r&&(r=n),r}function NS(e,t,n){var r=4;return e===Qm.XS?r=2:e===Qm.SM&&(r=3),n<r&&(r=n),r}function RS(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 TS(e,t,n,r,o){return function(){if(e.current.style.transition="transform .5s ease-in-out",t(null),Math.abs(n)>=7.5){var i=n>0?bS.Next:bS.Previous;o({type:i})}r(0)}}var IS={offset:0,viewableItems:4,position:0,collection:[],currentSize:Qm.LG,type:Yw.Row};function FS(e,t){var n,r,o=t.type,i=t.payload,a=void 0===i?{}:i;switch(o){case bS.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 bS.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 bS.Resize:var c=AS(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 bS.Init:var u=AS(a.contents)(a.mediaQuery,a.type,null===(r=a.collection)||void 0===r?void 0:r.length);return DS(Object.assign(Object.assign({},e),{collection:a.collection,currentSize:a.mediaQuery,offset:u,viewableItems:u,type:a.type}));default:return e}}function DS(e){return Object.assign(Object.assign({},IS),e)}function MS(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 US(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 US(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 US(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,n,r=e.type;r===Yw.ResourcesTile&&(r=Yw.Row);var o=MS(ar.useState(null),2),i=o[0],a=o[1],c=MS(ar.useState(null),2),u=c[0],s=c[1],l=MS(ar.useState(0),2),f=l[0],p=l[1],d=MS(ar.useReducer(FS,IS,DS),2),h=d[0],y=d[1],m=ar.useRef(null),v=MS(Qg(),2),b=v[0],g=v[1],w=MS(ar.useState(!1),2),E=w[0],S=w[1],O=MS(ar.useState(!1),2),k=O[0],x=O[1],C=uw(!e.lazyLoad),A=C.ref,j=C.inView,_=wS();ar.useEffect((function(){y({type:bS.Resize,payload:{mediaQuery:_,type:r,contents:e.contents,collection:h.collection}})}),[_]);var L=function(e,t,n,r){var o,i=e.fetch,a=e.setData,c=e.type,u=e.collection,s=e.prefetched,l=e.contents,f=u;return(!f||qn.isEmpty(f)&&!s)&&(o=i(r),f=o.data),ar.useEffect((function(){f&&!qn.isEmpty(f)&&t({type:bS.Init,payload:{collection:Or(a)?a(f):f,mediaQuery:n,type:c,contents:l}})}),[f]),o}(e,y,_,e.lazyLoad||j);var P={type:h.type,size:h.currentSize,collectionSize:h.collection.length,contents:e.contents},N=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=L)||void 0===t?void 0:t.data)||e.collection);if(null===(n=L)||void 0===n?void 0:n.hasError)return ar.createElement(ar.Fragment,null);if(!e.prefetched&&L.isFetching)return ar.createElement("div",{ref:A},ar.createElement(kS,{type:r}));if(!h.collection.length)return ar.createElement(ar.Fragment,null);var R=e.childComponent;return ar.createElement("div",{className:"pb-3"},ar.createElement("div",{className:"mb-1"},ar.createElement(ud,{appLink:CS(e.appLink,N)},ar.createElement("h2",{className:"h4 mb-0 d-inline-block align-top pl-1 text-dark"},N.name,!!e.appLink&&ar.createElement(Zm,{svgName:Km.ChevronRight,size:Xm.Small})),e.settingsAppLink&&ar.createElement(ud,{appLink:e.settingsAppLink},ar.createElement(Zm,{svgName:Km.Cog,className:"d-inline-block svg-container cursor-pointer",title:Ur.getPhrase("shared.fixedWidget","preferencesTooltip"),tooltipPlacement:"right"}))),N.description&&ar.createElement("p",{className:"text-truncate pl-1 mb-0 description"},N.description)),ar.createElement("div",{ref:b,className:"position-relative"},!E&&ar.createElement("div",{className:SS.a.leftOverflowGradient}),ar.createElement(aS,{direction:rS.Left,onClick:function(){return y({type:bS.Previous})},hide:E||h.offset<=h.collection.length&&!(g&&h.offset!==h.viewableItems),contents:e.contents}),ar.createElement(gS,{position:h.position,positionType:XE.Percentage,onTouchMove:RS(h,m,u,s,i,a,p),onTouchEnd:TS(m,a,f,p,y),ref:m,percentageDragged:f},h.collection.map((function(t,n){return ar.createElement(R,{key:t.id,data:t,appLink:e.childAppLink,context:P,preloadImage:xS(h)(t),thumbnailSize:sw.Medium,onHover:function(e){window.setTimeout((function(){!function(e,t){t+1!==h.collection.length?0!==t?(t+1-h.offset%h.viewableItems)%h.viewableItems!=0?(t-h.offset%h.viewableItems)%h.viewableItems!=0||S(e):x(e):S(e):x(e)}(e,n)}),0)}})}))),ar.createElement(aS,{direction:rS.Right,onClick:function(){return y({type:bS.Next})},hide:k||(h.offset>h.viewableItems||h.offset===h.collection.length)&&!(g&&h.offset<h.collection.length),contents:e.contents}),!k&&ar.createElement("div",{className:SS.a.rightOverflowGradient})))}VS.defaultProps={type:Yw.Row};var zS=ar.memo(VS);function HS(e){return function(e){if(Array.isArray(e))return BS(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 BS(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 BS(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 BS(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 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 $S(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 $S(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 $S(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 YS=function(){var e=qS(ar.useState(Wm(5)+3+"rem"),1)[0];return ar.createElement("div",{className:"border d-flex position-relative mr-2 ".concat(mE.a.widgetItem)},ar.createElement("div",{className:mE.a.imagePanel}),ar.createElement("div",{className:"px-2",style:{width:e}}," "),ar.createElement(Ow,{type:gw.Subject}))},GS=function(e,t,n,r,o){return function(i){WS(i.clientX,e,t,n,r,o)}},KS=function(e,t,n,r,o){return function(i){WS(i.touches.item(0).clientX,e,t,n,r,o)}};function WS(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:bS.Drag,payload:{widgetSnapshot:a,currentMouseX:e}})}var JS=function(e,t){return function(){e.current.style.transition="transform .5s ease-in-out",t(null)}},XS=JS,ZS={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:500,leftOffsetLimit:null};function QS(e,t){switch(t.type){case bS.Init:case bS.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 ZS;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({},ZS),{containerLeftPosition:i,containerRightPosition:a,firstElementPosition:c,lastElementPosition:u,hideRightButton:u<a,leftOffsetLimit:s})}(t.payload));case bS.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 bS.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 bS.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(95),tO=n.n(eO);function nO(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 rO(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 rO(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 rO(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 oO(e){var t,n=e.childComponent,r=e.endComponent,o=nO(ar.useReducer(QS,ZS),2),i=o[0],a=o[1],c=nO(ar.useState(null),2),u=c[0],s=c[1],l={container:ar.useRef(null),firstElement:ar.useRef(null),lastElement:ar.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)};ar.useEffect((function(){return window.addEventListener("resize",t?o:e),function(){return window.removeEventListener("resize",t?o:e)}}),HS(r))}(function(e,t){return function(){e.container.current&&(e.container.current.style.transition=""),t({type:bS.Resize,payload:e})}}(l,a),(t=l.container,function(){t.current&&(t.current.style.transition="transform .5s ease-in-out")}));var f=uw(!e.lazyLoad),p=f.ref,d=f.inView,h=e.collection;!e.collection&&Or(e.fetch)&&(h=e.fetch(d)),ar.useEffect((function(){h&&!qn.isEmpty(h)&&a({type:bS.Init,payload:l})}),[h]);var y=ar.useMemo((function(){if(h){var t=h.map((function(t){var o;return t===$o(h)&&(o=l.firstElement),t!==Yo(h)||r||(o=l.lastElement),ar.createElement("div",{key:t.id,ref:o,className:tO.a.itemSpacing},ar.createElement(n,{data:t,appLink:e.childAppLink}))}));return r&&t.push(ar.createElement("div",{key:"end-widget-component",ref:l.lastElement,className:tO.a.itemSpacing},ar.createElement(r,null))),ar.createElement(ar.Fragment,null,t)}}),[h]);return h&&!h.length?ar.createElement(ar.Fragment,null):!h||qn.isEmpty(h)?ar.createElement("div",{ref:p},ar.createElement(aO,null)):ar.createElement(ar.Fragment,null,e.headingPhraseKey&&ar.createElement("h4",{className:"d-inline-block mr-2 pl-1 mb-2"},ar.createElement(bp,{namespace:"shared.dynamicWidget",phrase:e.headingPhraseKey})),ar.createElement("div",{className:"position-relative px-1"},ar.createElement(aS,{direction:rS.Left,onClick:function(){return a({type:bS.Previous})},hide:i.hideLeftButton,useGradientBackdrop:!0}),ar.createElement("div",{className:"overflow-hidden"},ar.createElement(gS,{position:i.offset,positionType:XE.Pixels,onDrag:GS(l.container,i,a,u,s),onDragEnd:JS(l.container,s),onTouchMove:KS(l.container,i,a,u,s),onTouchEnd:XS(l.container,s),ref:l.container},y)),ar.createElement(aS,{direction:rS.Right,onClick:function(){return a({type:bS.Next})},hide:i.hideRightButton,useGradientBackdrop:!0})))}var iO=ug(),aO=function(){return ar.createElement("div",{className:"pb-3 d-flex flex-nowrap"},iO.map((function(e,t){return ar.createElement(YS,{key:t})})))},cO=n(49),uO=n.n(cO);function sO(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 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,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 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}var fO=ar.memo((function(e){var t=e.data,n=e.appLink,r=e.seriesAppLink,o=e.context,i=e.thumbnailSize,a=e.preloadImage,c=sO(ew(uO.a.hovering),2),u=c[0],s=c[1];ar.useEffect((function(){e.onHover(s)}),[s]);var l=Object.assign(Object.assign({},n),{args:[t.id,Pa(t.name)]}),f=uO.a.rowWidth;return o.type!==Yw.LargeRow&&3!==o.collectionSize||(f=uO.a.largeRowWidth),ar.createElement("div",{ref:u,className:"p-1 flex-shrink-0 position-relative ".concat(f," ").concat(uO.a.transition)},ar.createElement(YE,{video:t,type:"expandable",appLink:l,seriesAppLink:r,textPosition:TE.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)&&e.onHover===t.onHover}));function pO(e){return(pO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 yO(e,t){return(yO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mO(e){var 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=bO(e);if(t){var o=bO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vO(this,n)}}function vO(e,t){return!t||"object"!==pO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bO(e){return(bO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yO(e,t)}(i,e);var t,n,r,o=mO(i);function i(){return dO(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"ErrorPageError"}}])&&hO(t.prototype,n),r&&hO(t,r),i}(r.SilentError);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,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function SO(e,t){return(SO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function OO(e){var 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=xO(e);if(t){var o=xO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kO(this,n)}}function kO(e,t){return!t||"object"!==wO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xO(e){return(xO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var CO=Ur.encloseNamespace("shared.notFound"),AO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&SO(e,t)}(i,e);var t,n,r,o=OO(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,CO("title"))}return t=i,(n=[{key:"name",get:function(){return"NotFoundError"}},{key:"heading",get:function(){return CO("heading")}},{key:"description",get:function(){return CO("description")}}])&&EO(t.prototype,n),r&&EO(t,r),i}(gO);function jO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _O(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var LO=Ur.encloseNamespace("subjects.classification");function PO(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:LO(o?"unfollow":"follow"),onClick:t,svgName:Km.Bell,className:"btn ".concat(o?"btn-dark":"btn-white"),button:!0,tooltip:o?void 0:LO("followBtnTooltip")},{label:LO("share"),appLink:{application:jn,action:bn.SHARE,args:[e.id]},svgName:Km.Share,className:"btn btn-white",button:!0}]}function NO(e){var t,n,i,a,c,u,s,l,f,p,d,h,y,m,v,b=e.id,g=e.queryParams,w=jO(ar.useReducer(Mg,{}),2),E=w[0],S=w[1],O=jO(ar.useState(),2),k=(O[0],O[1]),x=jO(ar.useState(!1),2),C=x[0],A=x[1],j=Object(sr.useDispatch)(),_=o.useBasicFetch(ri),L=o.useBasicFetch(Wv),P=o.useBasicFetch(Cg()),N=o.useBasicFetch(ub()),R=o.useBasicFetch((null===(t=_.data)||void 0===t?void 0:t.id)&&jg(b,null===(n=_.data)||void 0===n?void 0:n.id,(function(e){e.status!==jo.BadRequest&&e.status!==jo.NotFound||r.ErrorHelper.throw(new AO)}))),T=o.useBasicFetch(_g(b)),I=o.useBasicFetch(Lg(b)),F=qn.keys(E),D=qn.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=Rg(b,M,F),V=Ng(b,M,F),z=Pg(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;k(!0);var n=(null===(t=null===(e=R.data.followers)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)?Zw.unfollow:Zw.follow;o.fetch(j,n([R.data.id]))}ar.useEffect((function(){M&&($(),Y(),G())}),[K]),ar.useEffect((function(){C||(R.data?A(!!R.data.series.count||!!R.data.playlists.count||!!R.data.videos.count):A(!1))}),[R.data]),ar.useEffect((function(){k(!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=Mw();Dg({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);Bg(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:$o(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 ar.createElement("main",{className:"bg-white overflow-hidden-x box-shadow"},Z?ar.createElement(rg,{heading:R.data.name,banner:R.data.banner,imageCdnUrl:L.data.imageCdnUrl,actions:(null===(l=R.data)||void 0===l?void 0:l.comingSoon)?[]:PO(R.data,W)}):ar.createElement(og,null),ar.createElement("div",{className:"px-3"},ar.createElement("div",{className:"py-3 mb-3 ".concat((null===(f=R.data)||void 0===f?void 0:f.comingSoon)?"":"border-bottom")},Q?ar.createElement(mg,{currentItem:R.data,type:cg.Static,getItemAppLink:J,data:T.data,rootItem:{label:LO("dashboard"),appLink:zw()}}):ar.createElement(gg,null),te&&ne&&oe&&re?ar.createElement(Gg,{audiences:N.data,activeAudiences:E,setAudience:S,disabled:!C}):ar.createElement(Wg,null))),L.data&&(null===(p=R.data)||void 0===p?void 0:p.comingSoon)?ar.createElement(hE,{data:R.data,imageCdnUrl:L.data.imageCdnUrl,onToggleFollow:W}):ar.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?ar.createElement("div",{className:"pb-3"},ar.createElement(oO,{collection:I.data,childAppLink:J(),childComponent:gE,headingPhraseKey:"topics"})):ar.createElement("div",{className:"mx-n2"},ar.createElement(OE,{classifications:I.data,getItemAppLink:J})):ar.createElement(aO,null),oe&&ne&&re&&te?ar.createElement(tS,{video:ae,presentationAudiences:N.data,videoAppLink:{application:jn,action:bn.VIDEO,args:[null===(d=ae)||void 0===d?void 0:d.id]},seriesAppLink:{application:jn,action:bn.SERIES,args:[null===(y=null===(h=ae)||void 0===h?void 0:h.series)||void 0===y?void 0:y.id]}}):ar.createElement(nS,null),ar.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)&&ar.createElement("div",{className:"pb-2"},ar.createElement("h4",null,LO("playlists")),ar.createElement(iE,{playlists:iw(B.data.data),getPlaylistAppLink:Vw(R.data),presentationAudiences:N.data,itemClassName:"columns-of-five"})):ar.createElement("div",{className:"pb-3"},ar.createElement(rE,{showHeading:!0,itemClassName:"columns-of-five"})),oe?ar.createElement(zS,{name:LO("series"),type:Yw.Row,contents:Ww.Series,collection:H.data,setData:function(e){return e.data},appLink:Uw(R.data),childComponent:function(e){return ar.createElement(Tw,Object.assign({audiences:N.data},e))},childAppLink:{application:jn,action:bn.SERIES},prefetched:!0}):ar.createElement(Dw,null),re?ar.createElement(zS,{name:LO("popular"),type:Yw.Row,contents:Ww.Videos,collection:ce,childComponent:fO,childAppLink:{application:jn,action:bn.VIDEO},prefetched:!0}):ar.createElement(kS,{type:Yw.Row}))))}var RO=n(239),TO=n.n(RO);function IO(e){return ar.createElement("nav",{className:"d-flex justify-content-center pt-3"},e.steps.map((function(e,t){return ar.createElement(ud,{key:t,appLink:e.active?null:e.appLink,className:(n=e.active,r="rounded-circle mx-2 cursor-pointer "+TO.a.progressItem,o=n?"bg-info":"bg-light","".concat(r," ").concat(o))});var n,r,o})))}var FO=n(240),DO=n.n(FO);function MO(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 UO(e){var t=e.step,n=void 0===t?"levels":t,r=e.application,o=function(e,t){switch(e){case"levels":return ar.createElement(Rk,{application:t});case"subjects":return ar.createElement(xk,{application:t});case"summary":return ar.createElement(Dk,{application:t,onboarding:!0});default:return null}}(n,r);return ar.createElement("div",{className:"bg-white box-shadow p-3 position-relative ".concat(DO.a.preferencesContainer)},ar.createElement(IO,{steps:MO(n,r)}),ar.createElement("main",null,o))}var VO=Fn.CLASSIFICATION,zO=function(){return"/api/domain/v1/subjects/preferences?query=".concat(VO)},HO=function(){return"/api/domain/v1/subjects/classifications/following?query=".concat(VO)},BO=function(){return"/api/domain/v1/subjects/classifications/following"},qO=function(e){return Dp.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},$O=function(){return"/api/domain/v1/subjects/audiences"},YO=function(){return"/api/domain/v1/subjects/audiences/following"},GO=function(){return"/api/domain/v1/subjects/audiences/following"},KO=function(e){return Dp.urlBuilder("/api/domain/v1/subjects/audiences/following",{id:e})},WO=function(){return{url:zO(),key:"subject:preference:options"}},JO=function(){return{url:HO(),key:"my:subject:preferences",normalize:!1}},XO=function(e,t,n){return{url:BO(),key:"follow:subjects",data:e,type:$r.POST,success:t,always:n,invalidationKeys:["my:subject:preferences"]}},ZO=function(e,t,n){return{url:qO(e),key:"unfollow:subjects",type:$r.DELETE,success:t,always:n,invalidationKeys:["my:subject:preferences"]}},QO=function(){return{url:$O(),key:"level:preference:options",normalize:!1}},ek=function(){return{url:YO(),key:"my:level:preferences",normalize:!1}},tk=function(e,t,n){return{url:GO(),key:"follow:levels",data:e,type:$r.POST,success:t,always:n,invalidationKeys:["my:level:preferences"]}},nk=function(e,t,n){return{url:KO(e),key:"unfollow:levels",type:$r.DELETE,success:t,always:n,invalidationKeys:["my:level:preferences"]}},rk=Object(ar.createContext)(void 0),ok=n(241),ik=n.n(ok);function ak(e){var t=wS(),n=t===Qm.SM||t===Qm.XS?"w-100":"w-75",r="justify-content-between";return"right"===e.align?r="justify-content-end":"center"===e.align&&(r="justify-content-center"),ar.createElement("div",{className:"".concat(n," ").concat(r," ").concat(ik.a.preferenceFooter," d-flex px-3")},e.children)}var ck=n(10),uk=n.n(ck),sk=function(e){return e.selectedChildrenCount?ar.createElement("div",{className:"".concat(uk.a.itemStatus," ").concat(uk.a.green)},e.selectedChildrenCount):ar.createElement(ar.Fragment,null)},lk=function(e){return ar.createElement("div",{className:"".concat(uk.a.itemStatus," ").concat(e.selected?uk.a.green:uk.a.unchecked)},e.selected?ar.createElement(Zm,{svgName:Km.Check}):ar.createElement(Zm,{svgName:Km.Plus}))};function fk(e){var t,n,r,o,i=ar.useContext(rk);var a,c=e.subject.cover?zp.createUrl(e.subject.cover.url,{size:Lp.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(uk.a.expandCaret," ").concat(f?uk.a.up:uk.a.down);return ar.createElement("li",{className:(a=uk.a.subjectPreferenceItem,e.extraClasses&&(a+=" "+e.extraClasses),e.disabled&&(a+=" "+uk.a.disabled),e.selected&&(a+=" "+uk.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},ar.createElement("div",{className:"".concat(uk.a.textBox," p-2")},ar.createElement("p",{className:"m-0 text-truncate"},e.subject.name,ar.createElement("span",{className:e.subject.isExpandableOption?p:""})),e.subject.isExpandableOption?ar.createElement(sk,{selectedChildrenCount:s}):ar.createElement(lk,{selected:e.selected})))}var pk=n(46),dk=n.n(pk),hk=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 yk(e,t){return!(!t||e.id===t.id)&&!t.children.find((function(t){return t.id===e.id}))}function mk(e){var t=ar.useContext(rk);return ar.createElement(ar.Fragment,null,e.subjects.map((function(n){var r=n.isExpandableOption?e.onExpand:e.onSelect;return ar.createElement(fk,{key:n.id,subject:n,selected:t.selectedSubjects.includes(n.id),disabled:yk(n,t.expandedSubject),onClick:function(e){return r(n)}})})))}function vk(e){var t=e.subjects,n=hk(e,["subjects"]),r=ar.useContext(rk).expandedSubject,o=function(){switch(wS()){case Qm.LG:default:return 5;case Qm.MD:return 4;case Qm.SM:return 3;case Qm.XS:return 2}}(),i=t.reduce((function(e,t,n){return n%o==0?e.push([t]):Yo(e).push(t),e}),[]);return ar.createElement("ul",{className:dk.a.grid},i.map((function(e,t){var o=r&&!!e.find((function(e){return r.id===e.id&&e.isExpandableOption}));return ar.createElement(ar.Fragment,{key:t},ar.createElement(mk,Object.assign({subjects:e},n)),o&&ar.createElement("li",{className:"".concat(dk.a.subgrid," m-0")},ar.createElement(vk,Object.assign({subjects:r.children},n))))})))}var bk=n(96),gk=n.n(bk);function wk(e){var t="grid"===e.style?dk.a.grid:gk.a.partialSubjectList;return ar.createElement("ul",{className:t},Array(e.count).fill(ar.createElement("li",{className:"".concat(gk.a.partialSubject," partial-loading-background")})))}function Ek(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)||Ok(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 Sk(e){return function(e){if(Array.isArray(e))return kk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ok(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 Ok(e,t){if(e){if("string"==typeof e)return kk(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)?kk(e,t):void 0}}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}function xk(e){var t=e.application,n=Ek(ar.useState([]),2),i=n[0],a=n[1],c=Ek(ar.useState(null),2),u=c[0],s=c[1],l=Ek(ar.useState(!1),2),f=l[0],p=l[1],d=Object(sr.useDispatch)(),h=o.useBasicFetch(WO()),y=o.useBasicFetch(JO());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"}})}ar.useEffect((function(){y.data&&a(Zo([].concat(Sk(i),Sk(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:Ur.getPhrase("subjects.subjectPreferencesView","allOfParent",{parent:e.name}),isBulkOption:!0});n.push(Object.assign(Object.assign({},e),{isExpandableOption:!0,children:[t].concat(Sk(e.children))}))}else n.push(Object.assign({},e))})),n}(h.data);return ar.createElement(vp.Provider,{value:"subjects.subjectPreferencesView"},ar.createElement(rk.Provider,{value:{selectedSubjects:i,expandedSubject:u}},ar.createElement("form",{className:"p-3 pb-5"},ar.createElement("div",{className:"text-center mb-4"},ar.createElement("h1",{className:"mb-3"},ar.createElement(bp,{phrase:"heading",options:{highlightClass:"text-primary"}})),ar.createElement("p",{className:"m-0 h6"},ar.createElement(bp,{phrase:"infoRow1"})),ar.createElement("p",{className:"h6"},ar.createElement(bp,{phrase:"infoRow2"}))),h.data&&y.data?ar.createElement(vk,{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)})):Zo([].concat(Sk(i),[e.id],Sk(n)))}else t=Xo(i,e.id);a(t)},onExpand:function(e){s(u&&u.id===e.id?null:e)}}):ar.createElement(wk,{style:"grid",count:7}),ar.createElement(ak,null,ar.createElement("div",null,ar.createElement(ud,{appLink:{application:jn,action:bn.PREFERENCES,params:{step:"levels"}},className:"btn btn-light"},ar.createElement(bp,{phrase:"back"}))),ar.createElement("div",{className:"d-flex justify-content-right"},ar.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"},ar.createElement(bp,{phrase:"allSubjects"})),ar.createElement(Ja.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,XO(a,(function(){}),v)),c.length&&o.fetch(d,ZO(c.map((function(e){return e.id})),(function(){}),v))}else r.AppLinkHelper.trigger({application:t,action:bn.PREFERENCES,params:{step:"summary"}})}},f?ar.createElement(Ja.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):ar.createElement(bp,{phrase:m()?"followSubjects":"next",options:{smartCount:i.length}})))))))}function Ck(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 ar.createElement("ul",{className:"d-flex flex-wrap pl-0 m-0 ".concat(u)},Array(a).fill(ar.createElement("li",{className:"partial-loading-background mx-1 mb-1 badge-pill list-unstyled",style:{height:"".concat(o,"px"),width:"".concat(n,"px")}})))}var Ak=n(242),jk=n.n(Ak);function _k(e){return function(e){if(Array.isArray(e))return Nk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Pk(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 Lk(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)||Pk(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 Pk(e,t){if(e){if("string"==typeof e)return Nk(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)?Nk(e,t):void 0}}function Nk(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 Rk(e){var t=e.application,n=Lk(ar.useState([]),2),i=n[0],a=n[1],c=Lk(ar.useState(!1),2),u=c[0],s=c[1],l=Object(sr.useDispatch)(),f=o.useBasicFetch(QO()),p=o.useBasicFetch(ek());function d(e){var t=Xo(i,e.masterId);a(t)}function h(){s(!1),r.AppLinkHelper.trigger({application:jn,action:bn.PREFERENCES,params:{step:"subjects"}})}return ar.useEffect((function(){if(p.data){var e=p.data.map((function(e){return e.masterId}));a(Zo([].concat(_k(i),_k(e))))}}),[p.data]),ar.createElement(vp.Provider,{value:"subjects.levelPreferences"},ar.createElement("form",{className:"p-3"},ar.createElement("div",{className:"text-center mb-4"},ar.createElement("h1",{className:"mb-3"},ar.createElement(bp,{phrase:"heading",options:{highlightClass:"text-primary"}}))),f.data?ar.createElement("ul",{className:"d-flex flex-wrap justify-content-center mx-auto mb-0 pl-0 pt-3 pb-5 ".concat(jk.a.levelList)},f.data.map((function(e){return ar.createElement(Yg,{key:e.masterId,audience:e,highlight:i.includes(e.masterId),setAudience:d,extraClasses:"h4 py-1 px-3 mx-1 mb-1"})}))):ar.createElement("div",{className:"w-33 mx-auto pb-5 pt-3"},ar.createElement(Ck,{align:"center"})),ar.createElement(ak,{align:"right"},ar.createElement("div",{className:"d-flex justify-content-right"},ar.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"},ar.createElement(bp,{phrase:"allLevels"})),ar.createElement(Ja.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,tk(a,(function(){}),h)),c.length&&o.fetch(l,nk(c.map((function(e){return e.masterId})),(function(){}),h))}else r.AppLinkHelper.trigger({application:t,action:bn.PREFERENCES,params:{step:"subjects"}})}},u?ar.createElement(Ja.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):ar.createElement(bp,{phrase:"next"}))))))}var Tk=n(243),Ik=n.n(Tk);function Fk(){r.AppLinkHelper.trigger({application:Pn,action:En.HOME})}function Dk(e){var t=o.useBasicFetch(ek()),n=o.useBasicFetch(JO());return ar.createElement(vp.Provider,{value:"subjects.preferencesSummary"},ar.createElement("div",{className:"p-3 pb-5 mx-auto ".concat(Ik.a.container)},ar.createElement("div",{className:"text-center"},ar.createElement("h1",{className:"mb-3"},ar.createElement(bp,{phrase:"heading",options:{highlightClass:"text-primary"}})),ar.createElement("p",{className:"w-25 mx-auto h6"},ar.createElement(bp,{phrase:"info"}))),ar.createElement("div",{className:"pb-3"},ar.createElement("div",{className:"pb-1 d-flex align-items-center"},ar.createElement("h2",{className:"h3 mb-0 pr-1"},ar.createElement(bp,{phrase:"levels"})),ar.createElement(ud,{appLink:{application:e.application,action:bn.PREFERENCES,params:{step:"levels"}}},ar.createElement(Zm,{svgName:Km.Edit}))),t.data?t.data.length?ar.createElement("ul",{className:"m-0 p-0"},t.data.map((function(e){return ar.createElement(Yg,{key:e.masterId,audience:e,extraClasses:"h4 py-1 px-3 mx-1 cursor-default",highlight:!0})}))):ar.createElement("p",null,ar.createElement(bp,{phrase:"noLevelPreferences"})):ar.createElement(Ck,{count:2})),ar.createElement("div",{className:"pb-3"},ar.createElement("div",{className:"pb-1 d-flex align-items-center"},ar.createElement("h2",{className:"h3 mb-0 pr-1"},ar.createElement(bp,{phrase:"subjects"})),ar.createElement(ud,{appLink:{application:e.application,action:bn.PREFERENCES,params:{step:"subjects"}}},ar.createElement(Zm,{svgName:Km.Edit}))),n.data?n.data.length?ar.createElement("ul",{className:"m-0 p-0 d-flex flex-wrap"},n.data.map((function(e){return ar.createElement(fk,{key:e.id,subject:e,extraClasses:"m-1 cursor-default",selected:!0})}))):ar.createElement("p",null,ar.createElement(bp,{phrase:"noSubjectPreferences"})):ar.createElement(wk,{style:"list",count:5})),e.onboarding&&ar.createElement(ak,{align:"center"},ar.createElement(Ja.Button,{variant:"dark",onClick:Fk,className:"px-4"},ar.createElement(bp,{phrase:"getStarted"})))))}function Mk(e){return(Mk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zk(e,t,n){return t&&Vk(e.prototype,t),n&&Vk(e,n),e}function Hk(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bk(e,t)}function Bk(e,t){return(Bk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qk(e){var 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=Yk(e);if(t){var o=Yk(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"!==Mk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yk(e){return(Yk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gk=function(e){Hk(n,e);var t=qk(n);function n(){return Uk(this,n),t.apply(this,arguments)}return zk(n,[{key:"channelName",get:function(){return jn}},{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),Kk=function(e){Hk(n,e);var t=qk(n);function n(){return Uk(this,n),t.apply(this,arguments)}return zk(n,[{key:"classification",value:function(e,t,n){this.layout.showChildView(gr,cr.a.createElement(NO,{key:e,id:e,queryParams:n}))}},{key:"classificationSeries",value:function(e,t,n){this.layout.showChildView(gr,cr.a.createElement(Kw,{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(gr,cr.a.createElement(UO,{step:e.step,application:this.channelName}))}},{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return jn}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:Kr,hideLeftNav:!0}}}}],[{key:"router",get:function(){return Gk}}]),n}($b);function Wk(e){var t,n=o.useBasicFetch(Qd(e.subjectId));return ar.createElement(ab,{playlistId:e.playlistId,application:jn,getVideoAppLink:e.getVideoAppLink,getSeriesAppLink:function(e){return{application:jn,action:vn.SERIES,args:[e.id]}},getPlayAllAppLink:(t=e.subjectId,function(e){return{application:_n,action:gn.PLAY_CLASSIFICATION_PLAYLIST,args:e?[t,e.id,Pa(e.name)]:[]}}),returnAppLink:!!n.data&&{label:n.data.name,appLink:{application:_n,action:gn.CLASSIFICATION,args:[e.subjectId,Pa(n.data.name)]}}})}function Jk(e){return(Jk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qk(e,t,n){return t&&Zk(e.prototype,t),n&&Zk(e,n),e}function ex(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tx(e,t)}function tx(e,t){return(tx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nx(e){var 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=ox(e);if(t){var o=ox(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rx(this,n)}}function rx(e,t){return!t||"object"!==Jk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ox(e){return(ox=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ix=function(e){ex(n,e);var t=nx(n);function n(){return Xk(this,n),t.apply(this,arguments)}return Qk(n,[{key:"channelName",get:function(){return _n}},{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),ax=function(e){ex(n,e);var t=nx(n);function n(){return Xk(this,n),t.apply(this,arguments)}return Qk(n,[{key:"classificationPlaylist",value:function(e,t,n){var r=this;this.layout.showChildView(gr,cr.a.createElement(Wk,{subjectId:e,playlistId:t,getVideoAppLink:function(n){return r.getVideoAppLink(e,t,n.id,Pa(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(gr,cr.a.createElement(rh,Object.assign({},i))),this.layout.hideLeftNav()}},{key:"getPlaylistAppLink",value:function(e,t){var n=[e.toString()];return t&&n.push(Pa(t)),{application:An,action:vn.PLAYLIST,args:n}}},{key:"getVideoAppLink",value:function(e,t,n,r){return{application:_n,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 _n}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:Kr,hideLeftNav:!0}}}}],[{key:"router",get:function(){return ix}}]),n}($b),cx=function(e){var t=e.children;return ar.createElement(Kr,null,t)};var ux=function(e,t){return{url:"/api/domain/v1/subjects/content-updates?from=".concat(e,"&to=").concat(t)+"&query=".concat(Fn.VIDEO_COLLECTION),key:"content:updates",normalize:!1}},sx=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(","))}},lx=function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),key:"classification:".concat(e)}};function fx(e){return ar.createElement("div",{className:"breadcrumbs-container border-bottom"},ar.createElement("ul",{className:"breadcrumbs"},ar.createElement("li",null,ar.createElement(ud,{appLink:e.dashboardAppLink},ar.createElement(bp,{namespace:"playlists.onlineWhatsNewBreadcrumbs",phrase:"dashboard"}))),ar.createElement("li",null,ar.createElement(bp,{namespace:"playlists.onlineWhatsNewBreadcrumbs",phrase:"whatsNew"}))),ar.createElement("a",{href:"/latest-releases",className:"switch-back"},ar.createElement(bp,{namespace:"playlists.onlineWhatsNewBreadcrumbs",phrase:"switchBack"})))}function px(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 dx(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 dx(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 dx(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 hx(e){var t=e.classification,n=e.backgroundUrl,r=e.followed,o=px(ar.useState(r),2),i=o[0],a=o[1];return ar.createElement("div",{className:"classification-banner",style:{backgroundImage:"url('".concat(n,"')")}},ar.createElement(ud,{appLink:e.getClassificationAppLink(t)},ar.createElement("h2",null,t.name)),ar.createElement("button",{className:"btn grey",onClick:function(){a(!i),e.follow(t.id,!i)}},ar.createElement(qf,{svgName:i?Ha.BellFilled:Ha.Bell}),ar.createElement(bp,{namespace:"playlists.onlineClassificationBanner",phrase:i?"following":"follow"})))}function yx(e){var t=e.classification;return ar.createElement("div",{className:"breadcrumbs-container border-bottom"},ar.createElement("ul",{className:"breadcrumbs"},ar.createElement("li",null,ar.createElement(ud,{appLink:e.dashboardAppLink},ar.createElement(bp,{namespace:"playlists.onlineClassificationUpdateBreadcrumbs",phrase:"dashboard"}))),ar.createElement("li",null,ar.createElement(ud,{appLink:e.contentUpdatesAppLink},ar.createElement(bp,{namespace:"playlists.onlineClassificationUpdateBreadcrumbs",phrase:"whatsNew"}))),ar.createElement("li",null,ar.createElement("span",null,t.name))))}function mx(e){var t=e.classification,n=e.videos,r=e.imageCdnUrl,o=e.showMore,i=e.followed,a=zp.createBannerUrl(t.banner,{fallbackBaseUrl:r,fallbackCategoryName:t.name,type:Pp.Banners});return ar.createElement("div",{className:"mb-3"},ar.createElement(hx,{classification:t,backgroundUrl:zp.createUrl(a,{size:Lp.Small}),getClassificationAppLink:e.appLinks.getClassificationAppLink,followed:i,follow:e.follow}),ar.createElement(Fd,{playlistId:"0",isUserSignedIn:!0,onSortComplete:function(){},videos:n,getVideoAppLink:e.appLinks.getVideoAppLink,getSeriesAppLink:e.appLinks.getSeriesAppLink}),o&&ar.createElement("div",{className:"show-more"},ar.createElement(ud,{className:"info-link",appLink:e.appLinks.getClassificationUpdateAppLink(t)},ar.createElement(bp,{namespace:"contentUpdates.contentUpdatesView",phrase:"showMore",options:{classificationName:t.name}}))))}var vx=n(50),bx=n.n(vx);function gx(){return cr.a.createElement("div",{className:"bg-white padding-gutter content-updates"},cr.a.createElement("div",{className:"breadcrumbs-container border-bottom"},cr.a.createElement("ul",{className:"breadcrumbs"},cr.a.createElement("li",{className:"partial-loading-item ".concat(bx.a.partialDashboardBreadcrumb)}),cr.a.createElement("li",{className:"partial-loading-item ".concat(bx.a.partialWhatsNewBreadcrumb)})),cr.a.createElement("div",{className:"switch-back partial-loading-item ".concat(bx.a.partialOldLookBreadcrumb)})),Array(4).fill(null).map((function(e,t){return cr.a.createElement("div",{key:t,className:"mb-3"},cr.a.createElement("div",{className:"classification-banner partial-loading-item ".concat(bx.a.partialBanner)}),cr.a.createElement(Td,null),";")})))}function wx(e){var t=Object(sr.useDispatch)(),n=kE(),r=Tp().subtract(1,"year").toISOString(),i=Tp().toISOString(),a=o.useBasicFetch(Wv),c=o.useBasicFetch(ux(r,i)),u=o.useBasicFetch(JO()),s=[];c.data&&c.data.forEach((function(e){return s.push(e.classificationId)}));var l=function(e,t){var n=Object(sr.useDispatch)();return Object(sr.useSelector)((function(r){var i;if(!(null===(i=e)||void 0===i?void 0:i.length))return null;for(var a=Zo(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 sx(e)}));function f(e,r){var i=function(){n.success(Ur.getPhrase("contentUpdates.contentUpdatesView",r?"followed":"unfollowed",{classification:l[e].name}))},a=r?XO([e],(function(){}),i):ZO([e],(function(){}),i);o.fetch(t,a)}if(!(c.data&&a.data&&u.data&&l))return ar.createElement(gx,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 ar.createElement("div",{className:"bg-white padding-gutter content-updates"},ar.createElement(fx,{dashboardAppLink:e.appLinks.dashboardAppLink}),p.map((function(t){return ar.createElement(mx,{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 Ex(e){var t,n=e.classificationId,r=Tp().subtract(1,"year").toISOString(),i=Tp().toISOString(),a=o.useBasicFetch(lx(n)),c=o.useBasicFetch(ux(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?ar.createElement("div",{className:"bg-white padding-gutter content-updates"},ar.createElement(yx,{classification:a.data,dashboardAppLink:e.appLinks.dashboardAppLink,contentUpdatesAppLink:e.appLinks.contentUpdatesAppLink}),ar.createElement(Fd,{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})):ar.createElement(ar.Fragment,null)}var Sx={getVideoAppLink:function(e){return{application:Cn,action:mn.VIDEO,args:[e.id]}},getSeriesAppLink:function(e){return{application:Cn,action:mn.SERIES,args:[e.id,Pa(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:Ln,action:wn.CLASSIFICATION_UPDATE,args:[e.id,Pa(e.name)]}},getClassificationAppLink:function(e){return{application:Ln,action:wn.CLASSIFICATION,args:[e.id,Pa(e.name)]}},dashboardAppLink:{application:Cn,action:mn.HOME},contentUpdatesAppLink:{application:Ln,action:wn.CONTENT_UPDATES}};function Ox(e){return(Ox="function"==typeof Symbol&&"symbol"==typeof Symbol.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 xx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cx(e,t,n){return t&&xx(e.prototype,t),n&&xx(e,n),e}function Ax(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jx(e,t)}function jx(e,t){return(jx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Px(e);if(t){var o=Px(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lx(this,n)}}function Lx(e,t){return!t||"object"!==Ox(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Px(e){return(Px=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nx,Rx=function(e){Ax(n,e);var t=_x(n);function n(){return kx(this,n),t.apply(this,arguments)}return Cx(n,[{key:"channelName",get:function(){return Ln}},{key:"appRoutes",get:function(){return{"content-updates":"contentUpdates","content-updates/:id(/:slug)":"classificationUpdate"}}},{key:"externalRoutes",get:function(){return{"subjects/:id(/:slug)":"classification"}}}]),n}(r.AppRouter),Tx=function(e){Ax(n,e);var t=_x(n);function n(){return kx(this,n),t.apply(this,arguments)}return Cx(n,[{key:"contentUpdates",value:function(){this.layout.showChildView(gr,ar.createElement(wx,{appLinks:Sx}))}},{key:"classificationUpdate",value:function(e,t){this.layout.showChildView(gr,ar.createElement(Ex,{classificationId:e,appLinks:Sx}))}},{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(Er,ar.createElement($f,{alerts:n,removeAlert:r}))}},{key:"name",get:function(){return"Content Updates Application"}},{key:"channelName",get:function(){return Ln}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:cx,hideLeftNav:!0}}}}],[{key:"router",get:function(){return Rx}}]),n}(r.Application);!function(e){e.Learner="learner",e.Staff="staff"}(Nx||(Nx={}));var Ix,Fx=function(e){return e===Gd.Student?Nx.Learner:Nx.Staff};!function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(Ix||(Ix={}));var Dx=function(){return Yf(Jf)};function Mx(e){var t="".concat(mE.a.editSubjectsItem," d-flex position-relative px-3 justify-content-center align-items-center");return ar.createElement(ud,{appLink:e.appLink,className:"text-decoration-none"},ar.createElement("div",{className:t},ar.createElement(Zm,{svgName:Km.Edit,className:"mr-2 align-middle d-inline-block svg-container"}),ar.createElement("p",{className:"h6 mb-0 align-middle text-truncate"},ar.createElement(bp,{namespace:"shared.subjectWidgetItem",phrase:"edit"}))))}var Ux=n(51),Vx=n.n(Ux);function zx(e){var t=e.data,n=e.appLink,r=e.preloadImage,o=Object.assign(Object.assign({},n),{args:[t.id]});return cr.a.createElement("div",{className:"flex-shrink-0 p-1 col-6 col-sm-4 col-md-3 col-xl-2"},cr.a.createElement("div",{className:"position-relative ".concat(Vx.a.itemContainer)},cr.a.createElement("div",{className:Vx.a.image},cr.a.createElement(ud,{appLink:o},cr.a.createElement(dw,{src:t.thumbnail.url,forceLoad:r})))),cr.a.createElement("div",{className:"p-2 bg-white ".concat(Vx.a.textBoxContainer)},cr.a.createElement("h3",{className:"h6 text-center clamp-2 mb-0 ".concat(Vx.a.textBox)},cr.a.createElement(ud,{appLink:o},t.name))))}var Hx=function(e,t,n,r){return Dp.urlBuilder("api/domain/v2/dashboards/widgets",{libraryType:e,customerType:t,userRole:n,countryCode:r})},Bx=function(e,t,n,r,o){var i="api/domain/v2/dashboards/playlists/".concat(e,"/videos");return Dp.urlBuilder(i,{maxRatingValue:t,userGroup:n,page:r,limit:o})},qx=function(e,t,n,r){return{url:Hx(e,t,n,r),key:"widgets:".concat(e,":").concat(t,":").concat(r)}},$x=function(e,t,n,r,o){return{url:Bx(e,t,n,r,o),key:"widget:".concat(e,":").concat(t,":").concat(n,":").concat(r)}},Yx=function(){return{key:"content:updates",url:"/api/latest-releases?limit=25&removeRestrictions=true"}},Gx=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)}))}}},Kx=n(14),Wx=n.n(Kx);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)||function(e,t){if(!e)return;if("string"==typeof e)return Xx(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 Xx(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 Xx(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 Zx=Ur.encloseNamespace("dashboard.heroWidget");function Qx(e){var t,n,r,o,i,a=e.childAppLink,c=e.childSeriesAppLink,u=e.playlistAppLink,s=e.fetch,l=(t=s,n=Jx(Object(ar.useState)(null),2),r=n[0],o=n[1],i=t(!0),Object(ar.useEffect)((function(){i.data&&o(i.data)}),[i.data]),r);if(!l)return ar.createElement(eC,null);var f=l.videos.data.slice(0,5);return ar.createElement("div",{id:"heroCarousel",className:"carousel slide carousel-fade","data-interval":2e4,"data-ride":"carousel","data-pause":"hover"},ar.createElement("div",{className:"carousel-inner"},f.map((function(e,t){return ar.createElement(tC,{data:e,appLink:a,seriesAppLink:c,playlistAppLink:u,key:t,active:0===t})}))),f.length>1&&ar.createElement(ar.Fragment,null,ar.createElement(nC,{count:f.length}),ar.createElement(rC,{name:Zx("previous"),type:"prev"}),ar.createElement(rC,{name:Zx("next"),type:"next"})))}var eC=function(){return ar.createElement("div",{className:"".concat(Wx.a.partial," partial-loading-background")})};function tC(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 ar.createElement("div",{className:"carousel-item ".concat(Wx.a.bannerImage," ").concat(i?"active":""),style:{backgroundImage:"url(".concat(t.thumbnail.url,")")}},ar.createElement("div",{className:"".concat(Wx.a.metadataContainer," text-white")},ar.createElement("h2",{className:"mb-2 h1 text-shadow"},ar.createElement(NE,{video:t,appLink:n,className:"".concat(Wx.a.series," text-reset text-truncate")}),ar.createElement(ud,{appLink:a,className:"text-reset clamp-2"},t.name)),ar.createElement("p",{className:"mb-3 font-weight-500 text-shadow clamp-3 ".concat(Wx.a.description)},t.description),ar.createElement("div",{className:"d-flex"},ar.createElement(Zb,{appLink:a,svgName:Km.Play,className:"btn btn-dark font-weight-500"},ar.createElement(bp,{namespace:"dashboard.heroWidget",phrase:"play"})),ar.createElement(Zb,{appLink:c,svgName:Km.Plus,className:"btn btn-white ml-2 font-weight-500"},ar.createElement(bp,{namespace:"dashboard.heroWidget",phrase:"addToPlaylist"})))))}function nC(e){for(var t=e.count,n=[],r=0;r<t;r++){var o="".concat(Wx.a.indicator);0===r&&(o+=" active"),n.push(ar.createElement("li",{className:o,key:r,"data-target":"#heroCarousel","data-slide-to":r}))}return ar.createElement("ol",{className:"carousel-indicators ".concat(Wx.a.indicatorContainer)},n)}var rC=function(e){return ar.createElement("a",{className:"carousel-control-".concat(e.type),href:"#heroCarousel",role:"button","data-slide":e.type,style:{width:"3rem"}},ar.createElement("span",{className:"carousel-control-".concat(e.type,"-icon"),"aria-hidden":"true"}),ar.createElement("span",{className:"sr-only"},e.name))},oC={dashboardVideo:{application:Pn,action:En.VIDEO},dashboardCollection:{application:Pn,action:En.DASHBOARD},curriculum:{application:Pn,action:En.CURRICULUM},classification:{application:jn,action:bn.CLASSIFICATION},series:{application:jn,action:bn.SERIES},subjectPreferences:{application:jn,action:bn.PREFERENCES,params:{step:"subjects"}},addToPlaylist:{application:Pn,action:En.ADD_TO_PLAYLIST},contentUpdates:{application:Pn,action:En.CONTENT_UPDATES},latestReleases:{application:Pn,action:En.LATEST_RELEASES},userChannels:{application:Pn,action:En.USER_CHANNELS},userChannel:{application:Pn,action:En.USER_CHANNEL}};function iC(e,t,n){var r=Dx().onlineRole;return o.useBasicFetch(n?$x(e,Zd(t),Fx(r),1,25):null)}function aC(){return o.useBasicFetch(Ag()).data}function cC(){return o.useBasicFetch(Yx())}function uC(){return o.useBasicFetch(Gx())}function sC(){var e,t,n,r=Dx().hasCurriculum,i=o.useBasicFetch(ri),a=function(e){var t,n,r=Dx(),i=r.onlineCustomerType,a=r.onlineRole,c=(null===(t=e)||void 0===t?void 0:t.countryCode)&&qx(Ix.HostedLibrary,i,a,null===(n=e)||void 0===n?void 0:n.countryCode);return o.useBasicFetch(c)}(i.data),c=(null===(e=i.data)||void 0===e?void 0:e.onlineRole)===Gd.Student;return ar.createElement("main",{className:"dashboard-widgets bg-white overflow-hidden-x box-shadow"},function(){var e;if(a.isFetching)return ar.createElement(eC,null);var t=null===(e=a.data)||void 0===e?void 0:e.find((function(e){return e.type===Yw.Hero}));return t?ar.createElement(Qx,{fetch:Object(u.partial)(iC,t.collectionId.toString(),i.data),childAppLink:oC.dashboardVideo,childSeriesAppLink:oC.series,playlistAppLink:oC.addToPlaylist}):ar.createElement(ar.Fragment,null)}(),ar.createElement("div",{className:"py-3 px-4"},!c&&ClickView.currentUser.hasSubjects()&&ar.createElement("div",{className:"pb-3"},ar.createElement(oO,{fetch:aC,childAppLink:oC.classification,childComponent:gE,endComponent:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ar.createElement(Mx,Object.assign({},t,{appLink:oC.subjectPreferences}))},headingPhraseKey:"teach",lazyLoad:!0})),r&&ar.createElement(ud,{appLink:oC.curriculum,className:"pb-3 pl-1 d-inline-block text-info"},ar.createElement(bp,{namespace:"dashboard.dashboard",phrase:"curriculum"})),!c&&ar.createElement(zS,{name:Ur.getPhrase("dashboard.dashboard","contentUpdates"),type:Yw.LargeRow,contents:Ww.Videos,fetch:cC,childComponent:function(e){return ar.createElement(fO,Object.assign({},e,{seriesAppLink:oC.series}))},appLink:ClickView.currentUser.hasSubjects()?oC.contentUpdates:oC.latestReleases,childAppLink:oC.dashboardVideo,lazyLoad:!0}),null===(t=a.data)||void 0===t?void 0:t.slice(0,3).map((function(e,t){return e.type!==Yw.Hero&&ar.createElement(zS,{key:t,type:e.type,contents:Ww.Videos,fetch:Object(u.partial)(iC,e.collectionId.toString(),i.data),setData:function(e){return e.videos.data},childComponent:function(e){return ar.createElement(fO,Object.assign({},e,{seriesAppLink:oC.series}))},appLink:oC.dashboardCollection,childAppLink:oC.dashboardVideo,lazyLoad:!0})})),ar.createElement(zS,{name:Ur.getPhrase("dashboard.dashboard","featuredChannels"),type:Yw.Row,contents:Ww.UserChannels,fetch:uC,childComponent:zx,appLink:c?null:oC.userChannels,childAppLink:oC.userChannel,lazyLoad:!0}),null===(n=a.data)||void 0===n?void 0:n.slice(3).map((function(e,t){return e.type!==Yw.Hero&&ar.createElement(zS,{key:t,type:e.type,contents:Ww.Videos,fetch:Object(u.partial)(iC,e.collectionId.toString(),i.data),setData:function(e){return e.videos.data},childComponent:function(e){return ar.createElement(fO,Object.assign({},e,{seriesAppLink:oC.series}))},appLink:oC.dashboardCollection,childAppLink:oC.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 fC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dC(e,t,n){return t&&pC(e.prototype,t),n&&pC(e,n),e}function hC(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("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)}function yC(e,t){return(yC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mC(e){var 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 vC(this,n)}}function vC(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 bC(e){return(bC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gC=function(e){hC(n,e);var t=mC(n);function n(){return fC(this,n),t.apply(this,arguments)}return dC(n,[{key:"channelName",get:function(){return Pn}},{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","latest-releases":"latestReleases"}}}]),n}(r.AppRouter),wC=function(e){hC(n,e);var t=mC(n);function n(){return fC(this,n),t.apply(this,arguments)}return dC(n,[{key:"index",value:function(){this.layout.showChildView(gr,cr.a.createElement(sC,null))}},{key:"addToPlaylist",value:function(e){ClickView.Shared.Utils.FutureCoreHelper.addToPlaylistPopup(e)}},{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return Pn}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:Kr,hideLeftNav:!0}}}}],[{key:"router",get:function(){return gC}}]),n}($b);function EC(e){return cr.a.createElement("div",{className:"bg-info text-white text-center py-2"},cr.a.createElement("p",{className:"mb-0"},e.children))}var SC={series:{application:Nn,action:Sn.SERIES},moviesAndTvWidget:{application:Nn,action:Sn.WIDGET},video:{application:Nn,action:Sn.VIDEO},addToPlaylist:{application:Nn,action:Sn.ADD_TO_PLAYLIST}};function OC(e,t,n){var r=n?$x(e,Zd(t),Nx.Learner,1,25):null;return o.useBasicFetch(r)}function kC(){var e,t,n=o.useBasicFetch(ri),r=o.useBasicFetch(n.data?qx(Ix.MoviesAndTvLibrary,null,Gd.Student,n.data.countryCode):null),i=null===(e=r.data)||void 0===e?void 0:e.find((function(e){return e.type===Yw.Hero}));return cr.a.createElement(cr.a.Fragment,null,(null===(t=n.data)||void 0===t?void 0:t.onlineRole)===Gd.Staff&&cr.a.createElement("div",{className:"mb-3 box-shadow"},cr.a.createElement(EC,null,cr.a.createElement(bp,{namespace:"moviesAndTv.moviesAndTv",phrase:"infoBanner"}))),cr.a.createElement("main",{className:"dashboard-widgets bg-white overflow-hidden-x box-shadow"},i?cr.a.createElement(Qx,{fetch:Object(u.partial)(OC,i.collectionId.toString(),n.data),childAppLink:SC.video,childSeriesAppLink:SC.series,playlistAppLink:SC.addToPlaylist}):cr.a.createElement(eC,null),cr.a.createElement("div",{className:"px-4 py-3"},r.data?r.data.map((function(e,t){return e.type!==Yw.Hero&&cr.a.createElement(zS,{key:t,type:e.type,contents:Ww.Videos,fetch:Object(u.partial)(OC,e.collectionId.toString(),n.data),setData:function(e){return e.videos.data},childComponent:function(e){return cr.a.createElement(fO,Object.assign({},e,{seriesAppLink:SC.series}))},appLink:SC.moviesAndTvWidget,childAppLink:SC.video,lazyLoad:!0})})):cr.a.createElement(cr.a.Fragment,null))))}function xC(e){return(xC="function"==typeof Symbol&&"symbol"==typeof Symbol.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 AC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jC(e,t,n){return t&&AC(e.prototype,t),n&&AC(e,n),e}function _C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&LC(e,t)}function LC(e,t){return(LC=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=RC(e);if(t){var o=RC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return NC(this,n)}}function NC(e,t){return!t||"object"!==xC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function RC(e){return(RC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var TC=function(e){_C(n,e);var t=PC(n);function n(){return CC(this,n),t.apply(this,arguments)}return jC(n,[{key:"channelName",get:function(){return Nn}},{key:"appRoutes",get:function(){return{"movies-and-tv(/)":"index"}}},{key:"appLinks",get:function(){return["addToPlaylist"]}},{key:"externalRoutes",get:function(){return{"movies-and-tv/:id":"widget","videos/:id":"video","series/:id":"series"}}}]),n}(r.AppRouter),IC=function(e){_C(n,e);var t=PC(n);function n(){return CC(this,n),t.apply(this,arguments)}return jC(n,[{key:"index",value:function(){this.layout.showChildView(gr,cr.a.createElement(kC,null))}},{key:"addToPlaylist",value:function(e){ClickView.Shared.Utils.FutureCoreHelper.addToPlaylistPopup(e)}},{key:"name",get:function(){return"Movies + TV Application"}},{key:"channelName",get:function(){return Nn}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:Kr,hideLeftNav:!0}}}}],[{key:"router",get:function(){return TC}}]),n}($b),FC=function(){return{key:"libraries",url:"/api/libraries/all",normalize:!1}},DC=function(){return{key:"interactives",url:"/api/libraries/interactives"}},MC=function(e){return{key:"recent:videos:".concat(e),url:Dp.urlBuilder("/api/libraries/".concat(e,"/recent-videos"),{limit:25})}},UC=function(){return{key:"most:recent:videos",url:"/api/libraries/most-recent-videos",formatData:function(e){return e.data}}};function VC(){return cr.a.createElement("svg",{viewBox:"0 0 434 71"},cr.a.createElement("g",null,cr.a.createElement("path",{fill:"#FFFFFF",d:"M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"}),cr.a.createElement("path",{fill:"#F8981D",d:"M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"})))}var zC={isPrimaryLibrary:function(e){var t;return zC.isHostedLibrary(e)&&(null===(t=e.name)||void 0===t?void 0:t.toLowerCase().indexOf("primary"))>-1},isSecondaryLibrary:function(e){var t;return zC.isHostedLibrary(e)&&(null===(t=e.name)||void 0===t?void 0:t.toLowerCase().indexOf("secondary"))>-1},isMoviesAndTv:function(e){var t;return zC.isHostedLibrary(e)&&(null===(t=e.name)||void 0===t?void 0:t.toLowerCase().indexOf("movies"))>-1},isHostedLibrary:function(e){return"hosted_library"===e.type},isCustomLibrary:function(e){return"custom_library"===e.type},isSupplementaryLibrary:function(e){return"online_supplementary_library"===e.type}},HC=n(71),BC=n.n(HC);function qC(e){if(zC.isMoviesAndTv(e.library)&&!ClickView.currentUser.hasMoviesAndTv())return cr.a.createElement(cr.a.Fragment,null);var t,n=zC.isMoviesAndTv(e.library)?{application:Nn,action:Sn.HOME}:{application:Rn,action:On.LIBRARY,args:[e.library.id,Pa(e.library.name)]};return cr.a.createElement(ud,{appLink:n,className:"".concat((t=e.library,zC.isPrimaryLibrary(t)?"bg-primary-purple":zC.isSecondaryLibrary(t)?"bg-secondary-blue":zC.isMoviesAndTv(t)?"bg-info":"bg-downy")," ").concat(BC.a.tile," ").concat("box-shadow px-2 position-relative my-2 d-block")},cr.a.createElement("div",{className:BC.a.libraryInner},zC.isHostedLibrary(e.library)&&cr.a.createElement("div",{className:"".concat(BC.a.logo," w-100 mb-2")},cr.a.createElement(VC,null)),cr.a.createElement("p",{className:"mb-0 h4 font-weight-500 text-center text-white"},e.library.name)))}function $C(e){switch(e){case 2:default:return"col-sm-6 col-xs-12";case 3:case 4:return"col-sm-4 col-xs-12"}}function YC(e){return cr.a.createElement("div",{className:"d-flex flex-wrap m-n2"},e.libraries.map((function(t){return cr.a.createElement("div",{className:$C(e.libraries.length)},cr.a.createElement(qC,{key:t.id,library:t}))})))}var GC=n(72),KC=n.n(GC);function WC(){return cr.a.createElement("div",{className:"d-flex flex-wrap m-n2"},cr.a.createElement("div",{className:"col-sm-4 col-xs-12"},cr.a.createElement("div",{className:"".concat(KC.a.partialLibraryTile," partial-loading-background my-2")})),cr.a.createElement("div",{className:"col-sm-4 col-xs-12"},cr.a.createElement("div",{className:"".concat(KC.a.partialLibraryTile," partial-loading-background my-2")})),cr.a.createElement("div",{className:"col-sm-4 col-xs-12"},cr.a.createElement("div",{className:"".concat(KC.a.partialLibraryTile," partial-loading-background my-2")})))}function JC(e){return function(e){if(Array.isArray(e))return XC(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 XC(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 XC(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 XC(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 ZC=Ur.encloseNamespace("libraries.libraries"),QC={series:{application:Rn,action:On.SERIES},video:{application:Rn,action:On.VIDEO},interactives:{application:Rn,action:On.INTERACTVIES},contentUpdates:{application:Rn,action:On.CONTENT_UPDATES},latestReleases:{application:Rn,action:On.LATEST_RELEASES},mostRecent:{application:Rn,action:On.MOST_RECENT}};function eA(e,t){return!t||zC.isCustomLibrary(e)?null:zC.isHostedLibrary(e)?ClickView.currentUser.hasSubjects()?QC.contentUpdates:QC.latestReleases:QC.mostRecent}function tA(){var e,t,n=o.useBasicFetch(ri),r=o.useBasicFetch(FC()),i=(null===(e=n.data)||void 0===e?void 0:e.onlineRole)===Gd.Admin||(null===(t=n.data)||void 0===t?void 0:t.onlineRole)===Gd.Staff,a=Array.isArray(r.data)?ClickView.currentUser.hasMoviesAndTv()?[].concat(JC(r.data),[{name:"Movies + TV",type:"hosted_library"}]):r.data:null;return cr.a.createElement("main",null,a?cr.a.createElement(YC,{libraries:a}):cr.a.createElement(WC,null),cr.a.createElement("div",{className:"bg-white overflow-hidden-x box-shadow mt-3 px-3 py-3"},a&&a.map((function(e){return zC.isMoviesAndTv(e)||zC.isSupplementaryLibrary(e)?cr.a.createElement(cr.a.Fragment,null):cr.a.createElement(zS,{type:Yw.Row,name:ZC("recentlyAdded",{name:e.name}),contents:Ww.Videos,fetch:function(){return zC.isHostedLibrary(e)||zC.isCustomLibrary(e)?o.useBasicFetch(MC(e.id)):o.useBasicFetch(UC())},setData:function(e){return e},childComponent:function(e){return cr.a.createElement(fO,Object.assign({},e,{seriesAppLink:QC.series}))},appLink:eA(e,i),childAppLink:QC.video,lazyLoad:!0})})),!!a&&i&&cr.a.createElement(zS,{type:Yw.Row,name:ZC("newInteractives"),contents:Ww.Videos,fetch:function(){return o.useBasicFetch(DC())},setData:function(e){return e.data},childComponent:function(e){return cr.a.createElement(fO,Object.assign({},e,{seriesAppLink:QC.series}))},appLink:QC.interactives,childAppLink:QC.video,lazyLoad:!0})))}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,n){return t&&oA(e.prototype,t),n&&oA(e,n),e}function aA(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("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)}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"!==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 lA(e){return(lA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fA,pA=function(e){aA(n,e);var t=uA(n);function n(){return rA(this,n),t.apply(this,arguments)}return iA(n,[{key:"channelName",get:function(){return Rn}},{key:"appRoutes",get:function(){return{"libraries(/)":"index"}}},{key:"externalRoutes",get:function(){return{"content-updates(/)":"contentUpdates","latest-releases(/)":"latestReleases","series/:id(/)":"series","videos/:id(/)":"video","libraries/interactives(/)":"interactives","libraries/most-recent(/)":"mostRecent","libraries/:id/:slug/categories(/)":"library"}}}]),n}(r.AppRouter),dA=function(e){aA(n,e);var t=uA(n);function n(){return rA(this,n),t.apply(this,arguments)}return iA(n,[{key:"index",value:function(){this.layout.showChildView(gr,cr.a.createElement(tA,null))}},{key:"name",get:function(){return"Libraries Application"}},{key:"channelName",get:function(){return Rn}},{key:"layoutOptions",get:function(){return{name:i.ONLINE_LAYOUT,options:{provider:Kr,hideLeftNav:!0}}}}],[{key:"router",get:function(){return pA}}]),n}($b);function hA(e){return(hA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yA(e){return function(e){if(Array.isArray(e))return mA(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 mA(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 mA(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 mA(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 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 bA(e,t){return(bA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=EA(e);if(t){var o=EA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wA(this,n)}}function wA(e,t){return!t||"object"!==hA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function EA(e){return(EA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Fifo="FifoMemoryCache"}(fA||(fA={}));var SA,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&&bA(e,t)}(i,e);var t,n,r,o=gA(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,yA(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(yA(o))))}},{key:"name",get:function(){return fA.Fifo}}])&&vA(t.prototype,n),r&&vA(t,r),i}(zt);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(SA||(SA={}));var kA=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 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 CA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function AA(e,t){return(AA=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=LA(e);if(t){var o=LA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _A(this,n)}}function _A(e,t){return!t||"object"!==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 LA(e){return(LA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var 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&&AA(e,t)}(i,e);var t,n,r,o=jA(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=$r.GET);var o=u.defaults(r,{forceHttps:!1}),i={url:e,method:n,type:n};t&&(i.data=n===$r.POST||n===$r.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,$r.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,$r.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,$r.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,$r.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=Mi;switch(o.code=e.status,o.message=kA(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),e.status){case 400:o.type=Ii.BadRequest;break;case 401:o.type=Ii.Unauthorized;break;case 403:o.type=Ii.Forbidden;break;case 404:o.type=Ii.NotFound;break;case 500:o.type=Ii.InternalServer}return o}},{key:"name",get:function(){return SA.Ajax}}])&&CA(t.prototype,n),r&&CA(t,r),i}(w.Object);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)}}var RA=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}}])&&NA(t.prototype,n),r&&NA(t,r),e}();function TA(e){return(TA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function IA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function FA(e,t){return(FA=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=UA(e);if(t){var o=UA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return MA(this,n)}}function MA(e,t){return!t||"object"!==TA(t)&&"function"!=typeof t?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 VA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&FA(e,t)}(i,e);var t,n,r,o=DA(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"}}])&&IA(t.prototype,n),r&&IA(t,r),i}(F),zA="UPDATE_VIEW_MODEL";function HA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BA(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),HA({},t.payload.viewModelKey,Object.assign(Object.assign({},e[t.payload.viewModelKey]),HA({},t.payload.dataOrKey,t.payload.keyData)))):Object.assign(Object.assign({},e),HA({},t.payload.viewModelKey,t.payload.dataOrKey))}function qA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case zA:return BA(e,t)}return e}var $A="popup:behavior";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)}var QA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("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)}(i,e);var t,n,r,o=JA(i);function i(){return GA(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($A,"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 Pr.SCROLL}}])&&KA(t.prototype,n),r&&KA(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 kj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xj(e,t){return(xj=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=jj(e);if(t){var o=jj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Aj(this,n)}}function Aj(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 jj(e){return(jj=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&&xj(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 Kf.Config}},{key:"channelName",get:function(){return mj}}])&&kj(t.prototype,n),r&&kj(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 Kf.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 Kf.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 Wf}}])&&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 e_={curriculum:!1},t_=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:e_},t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return Jf}},{key:"hasCurriculum",get:function(){return this.options.onlineModules.curriculum}},{key:"isTeacher",get:function(){return this.options.onlineRole===Gd.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 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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i_(e,t){return(i_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u_(e);if(t){var o=u_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c_(this,n)}}function c_(e,t){return!t||"object"!==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 u_(e){return(u_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i_(e,t)}(i,e);var t,n,r,o=a_(i);function i(){return r_(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"AlertError"}}])&&o_(t.prototype,n),r&&o_(t,r),i}(r.SilentError);function l_(e){return(l_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p_(e,t){return(p_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y_(e);if(t){var o=y_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h_(this,n)}}function h_(e,t){return!t||"object"!==l_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y_(e){return(y_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p_(e,t)}(a,e);var t,n,o,i=d_(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"}}])&&f_(t.prototype,n),o&&f_(t,o),a}(r.SilentError);function v_(e){return(v_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g_(e,t){return(g_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S_(e);if(t){var o=S_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E_(this,n)}}function E_(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 S_(e){return(S_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g_(e,t)}(i,e);var t,n,r,o=w_(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 kt&&!(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 kt(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 kt&&(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 Xd.LocalStorage:return bh;case Xd.SessionStorage:return gh}}},{key:"name",get:function(){return"ViewModelService"}}])&&b_(t.prototype,n),r&&b_(t,r),i}(zt).Instance;function k_(e){return(k_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C_(e,t){return(C_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=__(e);if(t){var o=__(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j_(this,n)}}function j_(e,t){return!t||"object"!==k_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function __(e){return(__=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C_(e,t)}(a,e);var t,n,o,i=A_(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={},O_.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(ac,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 Ye("Classes registered with ".concat(this.name," must have a unique name property.")));var n=function(t){return Or(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){hc.logNavigate(e,t)}},{key:"name",get:function(){return Wa.Analytics}}])&&x_(t.prototype,n),o&&x_(t,o),a}(r.Service);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 N_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R_(e,t){return(R_=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=F_(e);if(t){var o=F_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I_(this,n)}}function I_(e,t){return!t||"object"!==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 F_(e){return(F_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var D_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R_(e,t)}(i,e);var t,n,r,o=T_(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}}])&&N_(t.prototype,n),r&&N_(t,r),i}(r.Service);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 U_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function z_(e,t){return(z_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q_(e);if(t){var o=q_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B_(this,n)}}function B_(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 q_(e){return(q_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}D_.type="BaseAnalyticsClient";var $_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z_(e,t)}(a,e);var t,n,o,i=H_(a);function a(){return U_(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"}}])&&V_(t.prototype,n),o&&V_(t,o),a}(D_);function Y_(e){return(Y_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K_(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&&J_(e,t)}function J_(e,t){return(J_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function X_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q_(e);if(t){var o=Q_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z_(this,n)}}function Z_(e,t){return!t||"object"!==Y_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Q_(e){return(Q_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eL=function(e){W_(i,e);var t,n,r,o=X_(i);function i(){return K_(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){Or(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"}}])&&G_(t.prototype,n),r&&G_(t,r),i}(function(e){W_(n,e);var t=X_(n);function n(){return K_(this,n),t.apply(this,arguments)}return n}(w.Object)),tL="URLSearchParams"in self,nL="Symbol"in self&&"iterator"in Symbol,rL="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),oL="FormData"in self,iL="ArrayBuffer"in self;if(iL)var aL=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],cL=ArrayBuffer.isView||function(e){return e&&aL.indexOf(Object.prototype.toString.call(e))>-1};function uL(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 sL(e){return"string"!=typeof e&&(e=String(e)),e}function lL(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return nL&&(t[Symbol.iterator]=function(){return t}),t}function fL(e){this.map={},e instanceof fL?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 pL(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function dL(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function hL(e){var t=new FileReader,n=dL(t);return t.readAsArrayBuffer(e),n}function yL(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function mL(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:rL&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:oL&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:tL&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():iL&&rL&&function(e){return e&&DataView.prototype.isPrototypeOf(e)}(e)?(this._bodyArrayBuffer=yL(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):iL&&(ArrayBuffer.prototype.isPrototypeOf(e)||cL(e))?this._bodyArrayBuffer=yL(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):tL&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},rL&&(this.blob=function(){var e=pL(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?pL(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(hL)}),this.text=function(){var e,t,n,r=pL(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=dL(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)},oL&&(this.formData=function(){return this.text().then(gL)}),this.json=function(){return this.text().then(JSON.parse)},this}fL.prototype.append=function(e,t){e=uL(e),t=sL(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},fL.prototype.delete=function(e){delete this.map[uL(e)]},fL.prototype.get=function(e){return e=uL(e),this.has(e)?this.map[e]:null},fL.prototype.has=function(e){return this.map.hasOwnProperty(uL(e))},fL.prototype.set=function(e,t){this.map[uL(e)]=sL(t)},fL.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},fL.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),lL(e)},fL.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),lL(e)},fL.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),lL(e)},nL&&(fL.prototype[Symbol.iterator]=fL.prototype.entries);var vL=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function bL(e,t){var n,r,o=(t=t||{}).body;if(e instanceof bL){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new fL(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 fL(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),vL.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 gL(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 wL(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 fL(t.headers),this.url=t.url||"",this._initBody(e)}bL.prototype.clone=function(){return new bL(this,{body:this._bodyInit})},mL.call(bL.prototype),mL.call(wL.prototype),wL.prototype.clone=function(){return new wL(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new fL(this.headers),url:this.url})},wL.error=function(){var e=new wL(null,{status:0,statusText:""});return e.type="error",e};var EL=[301,302,303,307,308];wL.redirect=function(e,t){if(-1===EL.indexOf(t))throw new RangeError("Invalid status code");return new wL(null,{status:t,headers:{location:e}})};var SL=self.DOMException;try{new SL}catch(e){(SL=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),SL.prototype.constructor=SL}function OL(e,t){return new Promise((function(n,r){var o=new bL(e,t);if(o.signal&&o.signal.aborted)return r(new SL("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 fL,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 wL(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 SL("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&&(rL?i.responseType="blob":iL&&-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)}))}OL.polyfill=!0,self.fetch||(self.fetch=OL,self.Headers=fL,self.Request=bL,self.Response=wL);var kL=n(244),xL=n.n(kL),CL=n(245);function AL(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 jL(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 jL(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 jL(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 _L={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 LL(e,t,n){var r=AL(t.exec(n)||[],3),o=(r[0],r[1],r[2]);return o||(o="Unknown"),{name:e,version:o}}function PL(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 NL=function(){var e=window.navigator.userAgent;return _L.linux.test(e)?PL("Linux",null,e):_L.unix.test(e)?PL("Unix",null,e):_L.mac.test(e)?PL("Macintosh",_L.osxVersion,e):_L.windows.test(e)?function(e,t){var n={name:e,version:null};return _L.win2000.test(t)&&(n.version="2000"),_L.winXP.test(t)&&(n.version="XP"),_L.winVista.test(t)&&(n.version="Vista"),_L.win7.test(t)&&(n.version="7"),_L.win8.test(t)&&(n.version="8"),_L.win81.test(t)&&(n.version="8.1"),_L.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):_L.iphone.test(e)||_L.ipad.test(e)?PL("iOS",_L.iosVersion,e):_L.android.test(e)?PL("Android",_L.androidVersion,e):_L.blackberry.test(e)?PL("Android",_L.blackberryVersion,e):_L.windowsPhone.test(e)?PL("Android",_L.windowsPhoneVersion,e):{name:"Unknown",version:"Unknown"}},RL=function(){var e=window.navigator.userAgent;return _L.chrome.test(e)?LL("Chrome",_L.generalVersion,e):_L.firefox.test(e)?LL("Firefox",_L.generalVersion,e):_L.safari.test(e)?LL("Safari",_L.generalVersion,e):_L.ie.test(e)?LL("Internet Explorer",_L.ieVersion,e):_L.edge.test(e)?LL("Edge",_L.edgeVersion,e):_L.opera.test(e)?LL("Opera",_L.operaVersion,e):{name:"Unknown",version:"Unknown"}};function TL(e){return(TL="function"==typeof Symbol&&"symbol"==typeof 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 IL,FL=function(e){var t=TL(e);return"function"===t||"object"===t&&!!e},DL=function(e){return"function"==typeof e},ML=function(e,t){if(e){var n=e;return e.endsWith("/")||(n+="/"),t?n+=t.startsWith("/")?t.slice(1):t:n}};!function(e){e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1"}(IL||(IL={}));var UL,VL,zL={CvApSoutheast1:{displayName:"ClickView Asia Pacific (AU)",systemName:IL.CvApSoutheast1},CvApSoutheast2:{displayName:"ClickView Asia Pacific (NZ)",systemName:IL.CvApSoutheast2},CvEuWest1:{displayName:"ClickView EU West (UK)",systemName:IL.CvEuWest1}};function HL(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"}(UL||(UL={}));var BL=(HL(VL={},UL.AU,IL.CvApSoutheast1),HL(VL,UL.NZ,IL.CvApSoutheast2),HL(VL,UL.UK,IL.CvEuWest1),VL);function qL(e,t){for(var n=0;n<t.length;n++){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 $L=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())}))},YL=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 $L(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(!DL(this.options.getUser))throw new Error("getUser option is required.")}},{key:"shouldLog",value:function(e){return!DL(this.options.shouldLog)||this.options.shouldLog(e)}},{key:"postData",value:function(e){return $L(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(ML(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 xL.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 $L(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===IL.CvEuWest1?6:t.t0===IL.CvApSoutheast2?7:(t.t0,IL.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(!FL(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 $L(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 $L(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 DL(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,n;return $L(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.options.getUser();case 2:if(o=r.sent,null===(e=o)||void 0===e?void 0:e.id){r.next=5;break}return r.abrupt("return");case 5:return r.t0=o.id,r.t1=(null===(t=o.role)||void 0===t?void 0:t.toLowerCase())||"unknown",r.t2=(null===(n=o.userGroup)||void 0===n?void 0:n.toLowerCase())||Oa.Unknown,r.t3=this.normalizeYearGroup(o.yearGroup),r.t4=o.customerId,r.t5=o.customerName,r.t6=o.customerGuid,r.t7=o.crmId,r.t8=o.countryCode,r.next=16,this.getRegion();case 16:return r.t9=r.sent,r.t10=!!o.isOpenCustomer,r.t11={id:r.t4,name:r.t5,customerGuid:r.t6,crmId:r.t7,country:r.t8,region:r.t9,openCustomer:r.t10},r.abrupt("return",{id:r.t0,role:r.t1,userGroup:r.t2,yearGroup:r.t3,customer:r.t11});case 20:case"end":return r.stop()}}),r,this)})))}},{key:"getRegion",value:function(){var e,t;return $L(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?BL[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:RL(),os:NL(),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:CL.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:e.eventVersion}}},{key:"getRegionByName",value:function(e){var t;return Object.values(zL).forEach((function(n){n.systemName===e&&(t=n)})),t}},{key:"normalizeYearGroup",value:function(e){return e?e.toLowerCase().split(" ").join("_"):"unknown"}},{key:"name",get:function(){return"CollectionApiClient"}}])&&qL(t.prototype,n),r&&qL(t,r),e}(),GL=function(){return!0},KL=function(){return!1};var WL=function(e){return e};function JL(e){if(e&&e.code)return e.code}function XL(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 ZL(e){if(e&&e.length){var t=e[0];return{id:t.id,title:t.name}}}var QL,eP,tP,nP=function(e){var t=e.model,n={id:t.id,year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=JL(t.rating),o=XL(t.series),i=ZL(t.categories),a=XL(t.owner,{ignoreTitle:!0}),c=XL(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},rP={getUploadData:function(e,t){var n=t.actionContext.entity;if(n===oa.Video)return rP.formatVideoUpload(e,t);if(n===oa.Resource||n===oa.Subtitle)return rP.formatResourceUpload(e);if(n===oa.Banner||n===oa.Thumbnail)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(e,t){var n=t.actionContext.workflowPhase;return n===aa.Start?rP.getStartVideoUploadData(e):n===aa.Discard?rP.getDiscardVideoUploadData(e):n===aa.Complete?rP.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 FL(e.metadata)&&(t.type=e.metadata.type),t}};function oP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iP=(oP(QL={},ra.Navigate,KL),oP(QL,ra.Click,GL),oP(QL,ra.Search,GL),oP(QL,ra.InstantSearch,GL),oP(QL,ra.Play,GL),oP(QL,ra.Stream,GL),oP(QL,ra.StreamRaw,GL),oP(QL,ra.StreamProgress,GL),oP(QL,ra.Rename,GL),oP(QL,ra.Move,GL),oP(QL,ra.Create,GL),oP(QL,ra.Delete,GL),oP(QL,ra.Associate,GL),oP(QL,ra.Dissociate,GL),oP(QL,ra.Filter,GL),oP(QL,ra.Sort,GL),oP(QL,ra.Approve,GL),oP(QL,ra.Reject,GL),oP(QL,ra.Disable,GL),oP(QL,ra.Upload,GL),oP(QL,ra.Download,KL),oP(QL,ra.SetAccess,GL),oP(QL,ra.AddToLocalCache,KL),oP(QL,ra.Share,GL),oP(QL,ra.Edit,GL),oP(QL,ra.Suggest,GL),oP(QL,ra.ResolveWarning,GL),oP(QL,ra.DismissWarning,GL),oP(QL,ra.EditAssoc,GL),QL),aP=(oP(eP={},ra.Search,WL),oP(eP,ra.InstantSearch,WL),oP(eP,ra.Play,WL),oP(eP,ra.Stream,nP),oP(eP,ra.StreamProgress,WL),oP(eP,ra.Click,WL),oP(eP,ra.Filter,WL),oP(eP,ra.Sort,WL),oP(eP,ra.SetAccess,WL),oP(eP,ra.Approve,WL),oP(eP,ra.Reject,WL),oP(eP,ra.Create,WL),oP(eP,ra.Delete,WL),oP(eP,ra.Rename,WL),oP(eP,ra.Move,WL),oP(eP,ra.Edit,WL),oP(eP,ra.Share,WL),oP(eP,ra.Disable,WL),oP(eP,ra.Suggest,WL),oP(eP,ra.Upload,rP.getUploadData),oP(eP,ra.ResolveWarning,WL),oP(eP,ra.DismissWarning,WL),eP),cP=(oP(tP={},ra.Search,"search"),oP(tP,ra.InstantSearch,"search"),oP(tP,ra.Filter,"filter"),tP),uP={user:"target_user"},sP=oP({},ra.StreamProgress,!0),lP={shouldLog:function(e){return!!iP[e.type](e)},formatData:function(e){var t=aP[e.type],n=DL(t)?t(e.data,e):e.data;if(sP[e.type])return n;var r=e.actionContext.entity;return cP[e.type]&&(r=cP[e.type]),uP[r]&&(r=uP[r]),oP({},r,n)}};function fP(e){return(fP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hP(e,t){return(hP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yP(e){var 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=vP(e);if(t){var o=vP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mP(this,n)}}function mP(e,t){return!t||"object"!==fP(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vP(e){return(vP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hP(e,t)}(i,e);var t,n,r,o=yP(i);function i(){return pP(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}}])&&dP(t.prototype,n),r&&dP(t,r),i}(r.Service);function gP(e){return(gP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function EP(e,t){return(EP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function SP(e){var 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=kP(e);if(t){var o=kP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return OP(this,n)}}function OP(e,t){return!t||"object"!==gP(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kP(e){return(kP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}bP.type="BaseAnalyticsEnricher";var xP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&EP(e,t)}(a,e);var t,n,o,i=SP(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 Tp.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=pS(),t=dS();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"}}])&&wP(t.prototype,n),o&&wP(t,o),a}(bP);function CP(e){return(CP="function"==typeof Symbol&&"symbol"==typeof Symbol.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 jP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _P(e,t){return(_P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function LP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=NP(e);if(t){var o=NP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return PP(this,n)}}function PP(e,t){return!t||"object"!==CP(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function NP(e){return(NP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var RP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_P(e,t)}(i,e);var t,n,r,o=LP(i);function i(){return AP(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.user=O_.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"}}])&&jP(t.prototype,n),r&&jP(t,r),i}(bP);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 ir})),n.d(t,"OnlineLayoutView",(function(){return bi})),n.d(t,"DefaultApplication",(function(){return _i})),n.d(t,"FlightPlaylistDataService",(function(){return ka})),n.d(t,"PlaylistApplication",(function(){return jb})),n.d(t,"OnlinePlaylistsLayoutView",(function(){return Db})),n.d(t,"SubjectApplication",(function(){return Kk})),n.d(t,"SubjectPlaylistsApplication",(function(){return ax})),n.d(t,"ContentUpdatesApplication",(function(){return Tx})),n.d(t,"DashboardApplication",(function(){return wC})),n.d(t,"MoviesAndTvApplication",(function(){return IC})),n.d(t,"LibrariesApplication",(function(){return dA})),n.d(t,"Core",(function(){return r})),n.d(t,"InstanceManager",(function(){return yn})),n.d(t,"BaseAlertService",(function(){return Ba})),n.d(t,"AlertType",(function(){return Ra})),n.d(t,"FifoMemoryCache",(function(){return OA})),n.d(t,"AjaxDataProvider",(function(){return PA})),n.d(t,"ConcurrencyHelper",(function(){return RA})),n.d(t,"UrlHelper",(function(){return Dp})),n.d(t,"DevError",(function(){return Ye})),n.d(t,"NotImplementedError",(function(){return VA})),n.d(t,"CommonServices",(function(){return Pr})),n.d(t,"LanguageService",(function(){return Ur})),n.d(t,"Flight",(function(){return o})),n.d(t,"ViewModelReducer",(function(){return qA})),n.d(t,"ScrollService",(function(){return QA})),n.d(t,"CacheDurations",(function(){return ej})),n.d(t,"SharedDataServices",(function(){return Kf})),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 L_})),n.d(t,"DebuggerClient",(function(){return $_})),n.d(t,"EventTransport",(function(){return eL})),n.d(t,"CollectionApiClient",(function(){return YL})),n.d(t,"CollectionApiClientHelper",(function(){return lP})),n.d(t,"CountryRegionMapping",(function(){return BL})),n.d(t,"CoreContextEnricher",(function(){return xP})),n.d(t,"UserDataEnricher",(function(){return RP})),n.d(t,"AppOptionsService",(function(){return t_})),n.d(t,"AlertError",(function(){return s_})),n.d(t,"DialogError",(function(){return m_})),n.d(t,"ErrorPageError",(function(){return gO}))}])}));
|
|
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,n,r,o,i,a=e.data,c=e.seriesAppLink,u=e.appLink,s=e.playlistAppLink,l=e.active,f=Object.assign(Object.assign({},u),{args:[a.id]}),p=Object.assign(Object.assign({},s),{args:[a.id]}),d=null!=(r=null===(n=null===(t=a)||void 0===t?void 0:t.heroBanner)||void 0===n?void 0:n.url)?r:null===(i=null===(o=a)||void 0===o?void 0:o.thumbnail)||void 0===i?void 0:i.url;return nr.createElement("div",{className:"carousel-item ".concat(Yk.a.bannerImage," ").concat(l?"active":""),style:{backgroundImage:"url(".concat(d,")")}},nr.createElement("div",{className:"".concat(Yk.a.metadataContainer," text-white")},nr.createElement("h2",{className:"mb-2 h1 text-shadow"},nr.createElement(CE,{video:a,appLink:c,className:"".concat(Yk.a.series," text-reset text-truncate")}),nr.createElement(rd,{appLink:f,className:"text-reset clamp-2"},a.name)),nr.createElement("p",{className:"mb-3 font-weight-500 text-shadow clamp-3 ".concat(Yk.a.description)},a.description),nr.createElement("div",{className:"d-flex"},nr.createElement(Gb,{appLink:f,svgName:Bm.Play,className:"btn btn-dark font-weight-500"},nr.createElement(dp,{namespace:"dashboard.heroWidget",phrase:"play"})),nr.createElement(Gb,{appLink:p,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}))}])}));
|